30bbbaf00b
* Make eslint sort our imports * fix missing deps in eslint rule (dae) Caught on Linux due to the stricter sandboxing * Remove exports-last eslint rule (for now?) * Adjust browserslist settings - We use ResizeObserver which is not supported in browsers like KaiOS, Baidu or Android UC * Raise minimum iOS version 13.4 - It's the first version that supports ResizeObserver * Apply new eslint rules to sort imports
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
/**
|
|
* Code that is shared among all entry points in /ts/editor
|
|
*/
|
|
import "./legacy.css";
|
|
import "./editor-base.css";
|
|
import "../lib/runtime-require";
|
|
import "../sveltelib/export-runtime";
|
|
|
|
declare global {
|
|
interface Selection {
|
|
modify(s: string, t: string, u: string): void;
|
|
addRange(r: Range): void;
|
|
removeAllRanges(): void;
|
|
getRangeAt(n: number): Range;
|
|
}
|
|
}
|
|
|
|
import { ModuleName } from "../lib/i18n";
|
|
|
|
export const editorModules = [
|
|
ModuleName.EDITING,
|
|
ModuleName.KEYBOARD,
|
|
ModuleName.ACTIONS,
|
|
ModuleName.BROWSING,
|
|
];
|
|
|
|
import * as contextKeys from "../components/context-keys";
|
|
import IconButton from "../components/IconButton.svelte";
|
|
import LabelButton from "../components/LabelButton.svelte";
|
|
import WithContext from "../components/WithContext.svelte";
|
|
import WithState from "../components/WithState.svelte";
|
|
import * as editorContextKeys from "./NoteEditor.svelte";
|
|
|
|
export const components = {
|
|
IconButton,
|
|
LabelButton,
|
|
WithContext,
|
|
WithState,
|
|
contextKeys: { ...contextKeys, ...editorContextKeys },
|
|
};
|
|
|
|
export { editorToolbar } from "./editor-toolbar";
|