0d83581ab0
* Move Trigger into its own file * Try implement HandlerList * Implement new input handler and handler-list * Use new refocus HandlerList in TextColorButton * Fix TextColorButton on windows * Move ColorPicker to editor-toolbar * Change trigger behavior of overwriteSurround * Fix mathjax-overlay flushCaret * Insert image via bridgeCommand return value * Fix invoking color picker with F8 * Have remove format work even when collapsed * Satisfy formatter * Insert media via callback resolved from python * Replace print with web.eval * Fix python formatting * remove unused function (dae)
15 lines
572 B
TypeScript
15 lines
572 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
// Expose the Svelte runtime bundled with Anki, so that add-ons can require() it.
|
|
// If they were to bundle their own runtime, things like bindings and contexts
|
|
// would not work.
|
|
|
|
import * as svelteRuntime from "svelte/internal";
|
|
import * as svelteStore from "svelte/store";
|
|
|
|
import { registerPackageRaw } from "../lib/runtime-require";
|
|
|
|
registerPackageRaw("svelte/internal", svelteRuntime);
|
|
registerPackageRaw("svelte/store", svelteStore);
|