@react-x11/components 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +295 -51
- package/dist/charts/node.d.ts +1 -1
- package/dist/charts/node.d.ts.map +1 -1
- package/dist/charts/node.js +6 -2
- package/dist/charts/node.js.map +1 -1
- package/dist/color-picker/ColorPicker.d.ts.map +1 -1
- package/dist/color-picker/ColorPicker.js +43 -33
- package/dist/color-picker/ColorPicker.js.map +1 -1
- package/dist/embed/client.d.ts +48 -3
- package/dist/embed/client.d.ts.map +1 -1
- package/dist/embed/client.js +79 -5
- package/dist/embed/client.js.map +1 -1
- package/dist/embed/index.d.ts +1 -1
- package/dist/embed/index.d.ts.map +1 -1
- package/dist/embed/index.js +1 -1
- package/dist/embed/index.js.map +1 -1
- package/dist/html/node.d.ts +3 -1
- package/dist/html/node.d.ts.map +1 -1
- package/dist/html/node.js +7 -5
- package/dist/html/node.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{markdown → internal/markdown}/ast.d.ts +12 -0
- package/dist/internal/markdown/ast.d.ts.map +1 -0
- package/dist/internal/markdown/ast.js +22 -0
- package/dist/internal/markdown/ast.js.map +1 -0
- package/dist/internal/markdown/parse.d.ts.map +1 -0
- package/dist/{markdown → internal/markdown}/parse.js +112 -22
- package/dist/internal/markdown/parse.js.map +1 -0
- package/dist/internal/markdown/stringify.d.ts +4 -0
- package/dist/internal/markdown/stringify.d.ts.map +1 -0
- package/dist/internal/markdown/stringify.js +684 -0
- package/dist/internal/markdown/stringify.js.map +1 -0
- package/dist/internal/markdown/tags.d.ts.map +1 -0
- package/dist/internal/markdown/tags.js.map +1 -0
- package/dist/internal/scroll.d.ts +3 -2
- package/dist/internal/scroll.d.ts.map +1 -1
- package/dist/internal/scroll.js +33 -15
- package/dist/internal/scroll.js.map +1 -1
- package/dist/internal/units.d.ts +2 -0
- package/dist/internal/units.d.ts.map +1 -0
- package/dist/internal/units.js +35 -0
- package/dist/internal/units.js.map +1 -0
- package/dist/internal/window.d.ts.map +1 -1
- package/dist/internal/window.js +4 -2
- package/dist/internal/window.js.map +1 -1
- package/dist/maps/anchors.d.ts +98 -0
- package/dist/maps/anchors.d.ts.map +1 -0
- package/dist/maps/anchors.js +531 -0
- package/dist/maps/anchors.js.map +1 -0
- package/dist/maps/controller.d.ts +283 -0
- package/dist/maps/controller.d.ts.map +1 -0
- package/dist/maps/controller.js +743 -0
- package/dist/maps/controller.js.map +1 -0
- package/dist/maps/gl/buckets.d.ts +95 -0
- package/dist/maps/gl/buckets.d.ts.map +1 -0
- package/dist/maps/gl/buckets.js +362 -0
- package/dist/maps/gl/buckets.js.map +1 -0
- package/dist/maps/gl/build-worker.d.ts +13 -0
- package/dist/maps/gl/build-worker.d.ts.map +1 -0
- package/dist/maps/gl/build-worker.js +44 -0
- package/dist/maps/gl/build-worker.js.map +1 -0
- package/dist/maps/gl/color.d.ts +8 -0
- package/dist/maps/gl/color.d.ts.map +1 -0
- package/dist/maps/gl/color.js +57 -0
- package/dist/maps/gl/color.js.map +1 -0
- package/dist/maps/gl/cover.d.ts +51 -0
- package/dist/maps/gl/cover.d.ts.map +1 -0
- package/dist/maps/gl/cover.js +124 -0
- package/dist/maps/gl/cover.js.map +1 -0
- package/dist/maps/gl/index.d.ts +3 -0
- package/dist/maps/gl/index.d.ts.map +1 -0
- package/dist/maps/gl/index.js +20 -0
- package/dist/maps/gl/index.js.map +1 -0
- package/dist/maps/gl/markers.d.ts +28 -0
- package/dist/maps/gl/markers.d.ts.map +1 -0
- package/dist/maps/gl/markers.js +60 -0
- package/dist/maps/gl/markers.js.map +1 -0
- package/dist/maps/gl/overlays.d.ts +68 -0
- package/dist/maps/gl/overlays.d.ts.map +1 -0
- package/dist/maps/gl/overlays.js +300 -0
- package/dist/maps/gl/overlays.js.map +1 -0
- package/dist/maps/gl/pane.d.ts +12 -0
- package/dist/maps/gl/pane.d.ts.map +1 -0
- package/dist/maps/gl/pane.js +37 -0
- package/dist/maps/gl/pane.js.map +1 -0
- package/dist/maps/gl/placement.d.ts +111 -0
- package/dist/maps/gl/placement.d.ts.map +1 -0
- package/dist/maps/gl/placement.js +567 -0
- package/dist/maps/gl/placement.js.map +1 -0
- package/dist/maps/gl/renderer.d.ts +352 -0
- package/dist/maps/gl/renderer.d.ts.map +1 -0
- package/dist/maps/gl/renderer.js +1127 -0
- package/dist/maps/gl/renderer.js.map +1 -0
- package/dist/maps/gl/shaders.d.ts +120 -0
- package/dist/maps/gl/shaders.d.ts.map +1 -0
- package/dist/maps/gl/shaders.js +451 -0
- package/dist/maps/gl/shaders.js.map +1 -0
- package/dist/maps/gl/store.d.ts +115 -0
- package/dist/maps/gl/store.d.ts.map +1 -0
- package/dist/maps/gl/store.js +469 -0
- package/dist/maps/gl/store.js.map +1 -0
- package/dist/maps/gl/text.d.ts +154 -0
- package/dist/maps/gl/text.d.ts.map +1 -0
- package/dist/maps/gl/text.js +382 -0
- package/dist/maps/gl/text.js.map +1 -0
- package/dist/maps/gl/view.d.ts +54 -0
- package/dist/maps/gl/view.d.ts.map +1 -0
- package/dist/maps/gl/view.js +974 -0
- package/dist/maps/gl/view.js.map +1 -0
- package/dist/maps/index.d.ts +1 -1
- package/dist/maps/index.d.ts.map +1 -1
- package/dist/maps/index.js +216 -52
- package/dist/maps/index.js.map +1 -1
- package/dist/maps/labels.d.ts +37 -16
- package/dist/maps/labels.d.ts.map +1 -1
- package/dist/maps/labels.js +188 -119
- package/dist/maps/labels.js.map +1 -1
- package/dist/maps/node.d.ts +162 -56
- package/dist/maps/node.d.ts.map +1 -1
- package/dist/maps/node.js +607 -515
- package/dist/maps/node.js.map +1 -1
- package/dist/maps/overlay.d.ts +72 -9
- package/dist/maps/overlay.d.ts.map +1 -1
- package/dist/maps/overlay.js +108 -28
- package/dist/maps/overlay.js.map +1 -1
- package/dist/maps/paint.d.ts +3 -0
- package/dist/maps/paint.d.ts.map +1 -1
- package/dist/maps/paint.js.map +1 -1
- package/dist/maps/proj.d.ts +14 -0
- package/dist/maps/proj.d.ts.map +1 -1
- package/dist/maps/proj.js +28 -0
- package/dist/maps/proj.js.map +1 -1
- package/dist/maps/renderer.d.ts +69 -0
- package/dist/maps/renderer.d.ts.map +1 -0
- package/dist/maps/renderer.js +66 -0
- package/dist/maps/renderer.js.map +1 -0
- package/dist/maps/sources.d.ts +25 -3
- package/dist/maps/sources.d.ts.map +1 -1
- package/dist/maps/sources.js +17 -0
- package/dist/maps/sources.js.map +1 -1
- package/dist/maps/theme.d.ts +19 -0
- package/dist/maps/theme.d.ts.map +1 -0
- package/dist/maps/theme.js +44 -0
- package/dist/maps/theme.js.map +1 -0
- package/dist/maps/tiles.d.ts +117 -17
- package/dist/maps/tiles.d.ts.map +1 -1
- package/dist/maps/tiles.js +163 -30
- package/dist/maps/tiles.js.map +1 -1
- package/dist/maps/types.d.ts +188 -20
- package/dist/maps/types.d.ts.map +1 -1
- package/dist/markdown/expressions.d.ts +1 -1
- package/dist/markdown/expressions.d.ts.map +1 -1
- package/dist/markdown/expressions.js.map +1 -1
- package/dist/markdown/index.d.ts +7 -6
- package/dist/markdown/index.d.ts.map +1 -1
- package/dist/markdown/index.js +9 -7
- package/dist/markdown/index.js.map +1 -1
- package/dist/markdown/spans.d.ts +1 -1
- package/dist/markdown/spans.d.ts.map +1 -1
- package/dist/media-player/index.d.ts +11 -3
- package/dist/media-player/index.d.ts.map +1 -1
- package/dist/media-player/index.js +13 -2
- package/dist/media-player/index.js.map +1 -1
- package/dist/rich-text-editor/clipboard.d.ts +23 -0
- package/dist/rich-text-editor/clipboard.d.ts.map +1 -0
- package/dist/rich-text-editor/clipboard.js +307 -0
- package/dist/rich-text-editor/clipboard.js.map +1 -0
- package/dist/rich-text-editor/collab.d.ts +32 -0
- package/dist/rich-text-editor/collab.d.ts.map +1 -0
- package/dist/rich-text-editor/collab.js +55 -0
- package/dist/rich-text-editor/collab.js.map +1 -0
- package/dist/rich-text-editor/commands.d.ts +50 -0
- package/dist/rich-text-editor/commands.d.ts.map +1 -0
- package/dist/rich-text-editor/commands.js +376 -0
- package/dist/rich-text-editor/commands.js.map +1 -0
- package/dist/rich-text-editor/drag.d.ts +68 -0
- package/dist/rich-text-editor/drag.d.ts.map +1 -0
- package/dist/rich-text-editor/drag.js +148 -0
- package/dist/rich-text-editor/drag.js.map +1 -0
- package/dist/rich-text-editor/html.d.ts +145 -0
- package/dist/rich-text-editor/html.d.ts.map +1 -0
- package/dist/rich-text-editor/html.js +516 -0
- package/dist/rich-text-editor/html.js.map +1 -0
- package/dist/rich-text-editor/index.d.ts +263 -0
- package/dist/rich-text-editor/index.d.ts.map +1 -0
- package/dist/rich-text-editor/index.js +822 -0
- package/dist/rich-text-editor/index.js.map +1 -0
- package/dist/rich-text-editor/inline.d.ts +94 -0
- package/dist/rich-text-editor/inline.d.ts.map +1 -0
- package/dist/rich-text-editor/inline.js +252 -0
- package/dist/rich-text-editor/inline.js.map +1 -0
- package/dist/rich-text-editor/keymap.d.ts +71 -0
- package/dist/rich-text-editor/keymap.d.ts.map +1 -0
- package/dist/rich-text-editor/keymap.js +393 -0
- package/dist/rich-text-editor/keymap.js.map +1 -0
- package/dist/rich-text-editor/keys.d.ts +29 -0
- package/dist/rich-text-editor/keys.d.ts.map +1 -0
- package/dist/rich-text-editor/keys.js +93 -0
- package/dist/rich-text-editor/keys.js.map +1 -0
- package/dist/rich-text-editor/look.d.ts +71 -0
- package/dist/rich-text-editor/look.d.ts.map +1 -0
- package/dist/rich-text-editor/look.js +342 -0
- package/dist/rich-text-editor/look.js.map +1 -0
- package/dist/rich-text-editor/markdown.d.ts +18 -0
- package/dist/rich-text-editor/markdown.d.ts.map +1 -0
- package/dist/rich-text-editor/markdown.js +496 -0
- package/dist/rich-text-editor/markdown.js.map +1 -0
- package/dist/rich-text-editor/nodes.d.ts +135 -0
- package/dist/rich-text-editor/nodes.d.ts.map +1 -0
- package/dist/rich-text-editor/nodes.js +397 -0
- package/dist/rich-text-editor/nodes.js.map +1 -0
- package/dist/rich-text-editor/render.d.ts +68 -0
- package/dist/rich-text-editor/render.d.ts.map +1 -0
- package/dist/rich-text-editor/render.js +500 -0
- package/dist/rich-text-editor/render.js.map +1 -0
- package/dist/rich-text-editor/schema.d.ts +16 -0
- package/dist/rich-text-editor/schema.d.ts.map +1 -0
- package/dist/rich-text-editor/schema.js +386 -0
- package/dist/rich-text-editor/schema.js.map +1 -0
- package/dist/rich-text-editor/store.d.ts +11 -0
- package/dist/rich-text-editor/store.d.ts.map +1 -0
- package/dist/rich-text-editor/store.js +43 -0
- package/dist/rich-text-editor/store.js.map +1 -0
- package/dist/rich-text-editor/suggest.d.ts +127 -0
- package/dist/rich-text-editor/suggest.d.ts.map +1 -0
- package/dist/rich-text-editor/suggest.js +0 -0
- package/dist/rich-text-editor/suggest.js.map +1 -0
- package/dist/rich-text-editor/tables.d.ts +41 -0
- package/dist/rich-text-editor/tables.d.ts.map +1 -0
- package/dist/rich-text-editor/tables.js +204 -0
- package/dist/rich-text-editor/tables.js.map +1 -0
- package/dist/rich-text-editor/toolbar.d.ts +58 -0
- package/dist/rich-text-editor/toolbar.d.ts.map +1 -0
- package/dist/rich-text-editor/toolbar.js +548 -0
- package/dist/rich-text-editor/toolbar.js.map +1 -0
- package/dist/rich-text-editor/view.d.ts +368 -0
- package/dist/rich-text-editor/view.d.ts.map +1 -0
- package/dist/rich-text-editor/view.js +1968 -0
- package/dist/rich-text-editor/view.js.map +1 -0
- package/dist/rich-text-editor/virtual.d.ts +54 -0
- package/dist/rich-text-editor/virtual.d.ts.map +1 -0
- package/dist/rich-text-editor/virtual.js +262 -0
- package/dist/rich-text-editor/virtual.js.map +1 -0
- package/dist/richtext/node.d.ts +25 -2
- package/dist/richtext/node.d.ts.map +1 -1
- package/dist/richtext/node.js +46 -24
- package/dist/richtext/node.js.map +1 -1
- package/dist/table/index.d.ts.map +1 -1
- package/dist/table/index.js +14 -5
- package/dist/table/index.js.map +1 -1
- package/dist/terminal/backends.d.ts +4 -1
- package/dist/terminal/backends.d.ts.map +1 -1
- package/dist/terminal/backends.js.map +1 -1
- package/dist/terminal/index.d.ts +18 -7
- package/dist/terminal/index.d.ts.map +1 -1
- package/dist/terminal/index.js +28 -11
- package/dist/terminal/index.js.map +1 -1
- package/dist/terminal/vt/node.d.ts +56 -3
- package/dist/terminal/vt/node.d.ts.map +1 -1
- package/dist/terminal/vt/node.js +106 -26
- package/dist/terminal/vt/node.js.map +1 -1
- package/dist/terminal/vt/renderer.d.ts +4 -0
- package/dist/terminal/vt/renderer.d.ts.map +1 -1
- package/dist/terminal/vt/renderer.js +14 -5
- package/dist/terminal/vt/renderer.js.map +1 -1
- package/dist/tree/index.d.ts.map +1 -1
- package/dist/tree/index.js +6 -4
- package/dist/tree/index.js.map +1 -1
- package/package.json +23 -4
- package/src/charts/node.ts +6 -2
- package/src/color-picker/ColorPicker.ts +107 -81
- package/src/embed/client.ts +102 -8
- package/src/embed/index.ts +2 -0
- package/src/html/node.ts +7 -5
- package/src/index.ts +2 -0
- package/src/{markdown → internal/markdown}/ast.ts +24 -7
- package/src/{markdown → internal/markdown}/parse.ts +134 -24
- package/src/internal/markdown/stringify.ts +772 -0
- package/src/internal/scroll.ts +39 -18
- package/src/internal/units.ts +34 -0
- package/src/internal/window.ts +4 -2
- package/src/maps/anchors.ts +607 -0
- package/src/maps/controller.ts +999 -0
- package/src/maps/gl/buckets.ts +457 -0
- package/src/maps/gl/build-worker.ts +55 -0
- package/src/maps/gl/color.ts +62 -0
- package/src/maps/gl/cover.ts +170 -0
- package/src/maps/gl/index.ts +23 -0
- package/src/maps/gl/markers.ts +83 -0
- package/src/maps/gl/overlays.ts +379 -0
- package/src/maps/gl/pane.ts +42 -0
- package/src/maps/gl/placement.ts +816 -0
- package/src/maps/gl/renderer.ts +1576 -0
- package/src/maps/gl/shaders.ts +486 -0
- package/src/maps/gl/store.ts +566 -0
- package/src/maps/gl/text.ts +495 -0
- package/src/maps/gl/view.ts +1224 -0
- package/src/maps/index.ts +270 -81
- package/src/maps/labels.ts +214 -121
- package/src/maps/node.ts +763 -629
- package/src/maps/overlay.ts +148 -43
- package/src/maps/paint.ts +3 -0
- package/src/maps/proj.ts +31 -0
- package/src/maps/renderer.ts +155 -0
- package/src/maps/sources.ts +38 -3
- package/src/maps/theme.ts +51 -0
- package/src/maps/tiles.ts +191 -33
- package/src/maps/types.ts +188 -20
- package/src/markdown/expressions.ts +5 -1
- package/src/markdown/index.ts +14 -11
- package/src/markdown/spans.ts +1 -1
- package/src/media-player/index.ts +18 -4
- package/src/rich-text-editor/clipboard.ts +439 -0
- package/src/rich-text-editor/collab.ts +91 -0
- package/src/rich-text-editor/commands.ts +448 -0
- package/src/rich-text-editor/dom-globals.d.ts +23 -0
- package/src/rich-text-editor/drag.ts +211 -0
- package/src/rich-text-editor/html.ts +619 -0
- package/src/rich-text-editor/index.ts +1331 -0
- package/src/rich-text-editor/inline.ts +345 -0
- package/src/rich-text-editor/keymap.ts +510 -0
- package/src/rich-text-editor/keys.ts +119 -0
- package/src/rich-text-editor/look.ts +427 -0
- package/src/rich-text-editor/markdown.ts +653 -0
- package/src/rich-text-editor/nodes.ts +497 -0
- package/src/rich-text-editor/render.ts +800 -0
- package/src/rich-text-editor/schema.ts +431 -0
- package/src/rich-text-editor/store.ts +39 -0
- package/src/rich-text-editor/suggest.ts +597 -0
- package/src/rich-text-editor/tables.ts +272 -0
- package/src/rich-text-editor/toolbar.ts +724 -0
- package/src/rich-text-editor/view.ts +2287 -0
- package/src/rich-text-editor/virtual.ts +347 -0
- package/src/richtext/node.ts +59 -30
- package/src/table/index.ts +14 -5
- package/src/terminal/backends.ts +4 -1
- package/src/terminal/index.ts +43 -15
- package/src/terminal/vt/node.ts +128 -29
- package/src/terminal/vt/renderer.ts +27 -5
- package/src/tree/index.ts +6 -4
- package/dist/markdown/ast.d.ts.map +0 -1
- package/dist/markdown/ast.js +0 -17
- package/dist/markdown/ast.js.map +0 -1
- package/dist/markdown/parse.d.ts.map +0 -1
- package/dist/markdown/parse.js.map +0 -1
- package/dist/markdown/tags.d.ts.map +0 -1
- package/dist/markdown/tags.js.map +0 -1
- /package/dist/{markdown → internal/markdown}/parse.d.ts +0 -0
- /package/dist/{markdown → internal/markdown}/tags.d.ts +0 -0
- /package/dist/{markdown → internal/markdown}/tags.js +0 -0
- /package/src/{markdown → internal/markdown}/tags.ts +0 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { Slice } from 'prosemirror-model';
|
|
2
|
+
import type { Command, EditorState, Transaction } from 'prosemirror-state';
|
|
3
|
+
import type { DirectEditorProps, EditorProps, EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { Clipboard, DrawnNode, MouseEvent as X11MouseEvent, ScrollableNode } from 'react-x11';
|
|
5
|
+
import type { A11yTextState } from 'react-x11/node';
|
|
6
|
+
import type { ClipboardView } from './clipboard.js';
|
|
7
|
+
import type { DragPayload, DropAnswer, DropLike } from './drag.js';
|
|
8
|
+
import type { InlineDecoration, InlineWidget, RunStyle } from './inline.js';
|
|
9
|
+
import { BlockKeys } from './keys.js';
|
|
10
|
+
import type { PrimaryModifier } from './keymap.js';
|
|
11
|
+
import type { EditorHost, EditorTextNode, RichEditorNode } from './nodes.js';
|
|
12
|
+
import { KeyedStore } from './store.js';
|
|
13
|
+
import type { BlockWindow } from './virtual.js';
|
|
14
|
+
type KeyEvent = Parameters<EditorHost['keyDown']>[0];
|
|
15
|
+
type ComposeEvent = Parameters<EditorHost['composition']>[0];
|
|
16
|
+
/** ProseMirror's direct props, less the state — the view holds that. */
|
|
17
|
+
export type ViewProps = Omit<DirectEditorProps, 'state'>;
|
|
18
|
+
/** What the component tells the view that is not ProseMirror's to say. */
|
|
19
|
+
export interface ViewConfig {
|
|
20
|
+
/** The document changed: React has blocks to render. */
|
|
21
|
+
onRender(): void;
|
|
22
|
+
/** Every state change, with the transactions that made it. */
|
|
23
|
+
onUpdate?(prev: EditorState, transactions: readonly Transaction[]): void;
|
|
24
|
+
onFocusChange?(focused: boolean): void;
|
|
25
|
+
clipboard: Clipboard | null;
|
|
26
|
+
/** Shown, muted, in an empty document. */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
colors: {
|
|
29
|
+
selection: string;
|
|
30
|
+
selectionBlurred: string;
|
|
31
|
+
caret: string;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
preedit: string;
|
|
34
|
+
};
|
|
35
|
+
/** How a decoration's `class` looks — the one part of a DOM decoration
|
|
36
|
+
* this view cannot read off the decoration itself. */
|
|
37
|
+
decorationClasses?: Readonly<Record<string, RunStyle>>;
|
|
38
|
+
}
|
|
39
|
+
/** One block's decorations, as its renderer reads them. `sig` is what makes
|
|
40
|
+
* "the same decorations" the same object, so a block whose decorations did
|
|
41
|
+
* not move does not re-render. */
|
|
42
|
+
export interface BlockDecorations {
|
|
43
|
+
inline: readonly InlineDecoration[];
|
|
44
|
+
widgets: readonly InlineWidget[];
|
|
45
|
+
/** A node decoration's look for the block's own box. */
|
|
46
|
+
box: {
|
|
47
|
+
background?: string;
|
|
48
|
+
border?: string;
|
|
49
|
+
} | null;
|
|
50
|
+
sig: string;
|
|
51
|
+
}
|
|
52
|
+
export type MoveUnit = 'left' | 'right' | 'up' | 'down' | 'wordBackward' | 'wordForward' | 'lineStart' | 'lineEnd' | 'docStart' | 'docEnd' | 'pageUp' | 'pageDown';
|
|
53
|
+
interface Coords {
|
|
54
|
+
left: number;
|
|
55
|
+
right: number;
|
|
56
|
+
top: number;
|
|
57
|
+
bottom: number;
|
|
58
|
+
}
|
|
59
|
+
export declare class RichEditorView implements EditorHost, ClipboardView {
|
|
60
|
+
state: EditorState;
|
|
61
|
+
private direct;
|
|
62
|
+
private config;
|
|
63
|
+
/** The block keys React renders under — see `./keys.ts`. */
|
|
64
|
+
readonly keys: BlockKeys;
|
|
65
|
+
/** Per-block decorations, for the block's own renderer to subscribe to. */
|
|
66
|
+
readonly decorations: KeyedStore<BlockDecorations>;
|
|
67
|
+
/** Which block a node selection has selected, for its renderer. */
|
|
68
|
+
readonly selectedBlocks: KeyedStore<boolean>;
|
|
69
|
+
private root;
|
|
70
|
+
private texts;
|
|
71
|
+
/** Block atoms — a rule, an image block, an atom node view — by key: what
|
|
72
|
+
* a press can land on that is not text. */
|
|
73
|
+
private boxes;
|
|
74
|
+
private scroller;
|
|
75
|
+
/** A long document's window (./virtual.ts): which top-level blocks are
|
|
76
|
+
* drawn, and how one that is not gets drawn. Null while all of them
|
|
77
|
+
* are. */
|
|
78
|
+
private blockWindow;
|
|
79
|
+
private pluginViews;
|
|
80
|
+
/** Whether the component has asked for plugin views
|
|
81
|
+
* (`mountPluginViews`), and whether they are made now: they live while
|
|
82
|
+
* the root element does. */
|
|
83
|
+
private pluginViewsWanted;
|
|
84
|
+
private pluginViewsLive;
|
|
85
|
+
/** Collaborators' carets by block key, from widgets `remoteCaret`
|
|
86
|
+
* built (./collab.ts). */
|
|
87
|
+
private carets;
|
|
88
|
+
private focused;
|
|
89
|
+
private preedit;
|
|
90
|
+
private goalX;
|
|
91
|
+
private keepGoal;
|
|
92
|
+
private drag;
|
|
93
|
+
private dragScroll;
|
|
94
|
+
private pointer;
|
|
95
|
+
/** A press on the selection, until the pointer either comes up there —
|
|
96
|
+
* a click, which places the caret — or core starts a drag from it. */
|
|
97
|
+
private dragCandidate;
|
|
98
|
+
/** What is being dragged out of this editor — prosemirror-view's
|
|
99
|
+
* `dragging` — the range it came from, and its clipboard form once
|
|
100
|
+
* something asked for it. */
|
|
101
|
+
private draggingNow;
|
|
102
|
+
/** The block the drop caret is drawn in. */
|
|
103
|
+
private dropKey;
|
|
104
|
+
private tabEscapes;
|
|
105
|
+
/** Above zero while user input is being handled — a read-only editor
|
|
106
|
+
* drops the document changes that input would make, and only those. */
|
|
107
|
+
private userInput;
|
|
108
|
+
private pending;
|
|
109
|
+
private caretKey;
|
|
110
|
+
private bandKeys;
|
|
111
|
+
private selectedKey;
|
|
112
|
+
private blinkTimer;
|
|
113
|
+
private scrollTick;
|
|
114
|
+
private lastCopy;
|
|
115
|
+
private a11yCache;
|
|
116
|
+
private destroyedFlag;
|
|
117
|
+
private primary;
|
|
118
|
+
constructor(state: EditorState, props: ViewProps, config: ViewConfig);
|
|
119
|
+
/** This object, typed as what a plugin's callbacks are handed. */
|
|
120
|
+
get asEditorView(): EditorView;
|
|
121
|
+
get props(): DirectEditorProps;
|
|
122
|
+
get editable(): boolean;
|
|
123
|
+
get composing(): boolean;
|
|
124
|
+
get isDestroyed(): boolean;
|
|
125
|
+
/** The root element — not a DOM node, which is the one thing a plugin
|
|
126
|
+
* written for a browser may not be given here. */
|
|
127
|
+
get dom(): DrawnNode | null;
|
|
128
|
+
/** prosemirror-view's `dragging`: the slice a drag out of this editor
|
|
129
|
+
* carries, and whether a drop back in here moves it — while there is
|
|
130
|
+
* one. */
|
|
131
|
+
get dragging(): {
|
|
132
|
+
slice: Slice;
|
|
133
|
+
move: boolean;
|
|
134
|
+
} | null;
|
|
135
|
+
/** prosemirror-view's own view description, internal there, which a
|
|
136
|
+
* plugin reads as "is the view drawn?": y-prosemirror's cursor plugin
|
|
137
|
+
* publishes no collaborator's move without it. The root element,
|
|
138
|
+
* while there is one. */
|
|
139
|
+
get docView(): unknown;
|
|
140
|
+
/** The backend's shortcut modifier — Cmd on macOS, Ctrl on X11. */
|
|
141
|
+
get primaryModifier(): PrimaryModifier;
|
|
142
|
+
hasFocus(): boolean;
|
|
143
|
+
focus(): void;
|
|
144
|
+
setProps(props: Partial<ViewProps>): void;
|
|
145
|
+
update(props: ViewProps): void;
|
|
146
|
+
/** The component's half: callbacks, the clipboard, the colours. Called on
|
|
147
|
+
* every render, so it only acts on what changed. */
|
|
148
|
+
configure(config: ViewConfig): void;
|
|
149
|
+
/**
|
|
150
|
+
* ProseMirror's prop lookup, in its order: the view's own props, then its
|
|
151
|
+
* direct plugins, then the state's plugins — the first to give a truthy
|
|
152
|
+
* answer wins.
|
|
153
|
+
*/
|
|
154
|
+
someProp<K extends keyof EditorProps, R>(name: K, f: (value: NonNullable<EditorProps[K]>) => R): R | undefined;
|
|
155
|
+
readonly dispatch: (tr: Transaction) => void;
|
|
156
|
+
/** Replace the state — what an app owning it calls with the result of a
|
|
157
|
+
* transaction this view dispatched. */
|
|
158
|
+
updateState(state: EditorState): void;
|
|
159
|
+
/** Run a command against the current state. */
|
|
160
|
+
run(command: Command): boolean;
|
|
161
|
+
private apply;
|
|
162
|
+
/**
|
|
163
|
+
* Make the plugins' views, once the root element exists: the component
|
|
164
|
+
* calls this after its first commit. A browser's EditorView makes them
|
|
165
|
+
* in its constructor, where it already has its DOM, and a plugin view
|
|
166
|
+
* is written to find `view.dom` there; here that is the root element.
|
|
167
|
+
*/
|
|
168
|
+
mountPluginViews(): void;
|
|
169
|
+
private startPluginViews;
|
|
170
|
+
private stopPluginViews;
|
|
171
|
+
private createPluginViews;
|
|
172
|
+
private resetPluginViews;
|
|
173
|
+
destroy(): void;
|
|
174
|
+
attachRoot(node: RichEditorNode): void;
|
|
175
|
+
detachRoot(node: RichEditorNode): void;
|
|
176
|
+
attachText(key: string, node: EditorTextNode): void;
|
|
177
|
+
detachText(key: string, node: EditorTextNode): void;
|
|
178
|
+
textUpdated(key: string, node: EditorTextNode): void;
|
|
179
|
+
/** A block atom's box, or null when it unmounts. */
|
|
180
|
+
attachBox(key: string, node: DrawnNode | null): void;
|
|
181
|
+
/** The scrolling viewport the document is in. */
|
|
182
|
+
attachScroller(node: ScrollableNode | null): void;
|
|
183
|
+
/** A long document's window, while it draws only some blocks. */
|
|
184
|
+
attachWindow(window: BlockWindow | null): void;
|
|
185
|
+
private selectionColor;
|
|
186
|
+
/** The block the caret is drawn in, if there is one to draw. */
|
|
187
|
+
private caretBlock;
|
|
188
|
+
/**
|
|
189
|
+
* Place whatever of the selection falls in one block: its band, and the
|
|
190
|
+
* caret if the caret is there. A block whose element still shows an older
|
|
191
|
+
* node is skipped — the render bringing the new one calls back.
|
|
192
|
+
*/
|
|
193
|
+
private syncBlock;
|
|
194
|
+
/** Place the whole selection: every block it touches, every block it
|
|
195
|
+
* touched before, the caret, and a selected block's highlight. */
|
|
196
|
+
syncSelection(): void;
|
|
197
|
+
private restartBlink;
|
|
198
|
+
private stopBlink;
|
|
199
|
+
private decorationStyle;
|
|
200
|
+
/**
|
|
201
|
+
* Every plugin's decorations, bucketed by the block they fall in, plus the
|
|
202
|
+
* view's own two widgets — the placeholder and a composition's preedit.
|
|
203
|
+
* Only a block whose bucket changed is told; returns whether any was.
|
|
204
|
+
*
|
|
205
|
+
* What a DOM view would draw that this one cannot: a widget whose only
|
|
206
|
+
* description is a `toDOM` function. A widget draws here when its spec
|
|
207
|
+
* carries `text` (and, optionally, a `run` style) — see the docs page.
|
|
208
|
+
*/
|
|
209
|
+
private recomputeDecorations;
|
|
210
|
+
/** The logical rect of a node — `abs`, already divided (AGENTS.md: ask for
|
|
211
|
+
* the rect, and the arithmetic stays in one unit). */
|
|
212
|
+
private rectOf;
|
|
213
|
+
/** The top-level block `pos` is in, by index — what a long
|
|
214
|
+
* document's window draws or not. */
|
|
215
|
+
private topIndexOf;
|
|
216
|
+
/** Whether the block that draws `pos` is laid out: always, but in a
|
|
217
|
+
* long document scrolled away from it (./virtual.ts). */
|
|
218
|
+
private isDrawnAt;
|
|
219
|
+
/** The nearest block to a point: the one it is in, or the one closest
|
|
220
|
+
* vertically, then horizontally. Text blocks win ties with atoms. */
|
|
221
|
+
private hit;
|
|
222
|
+
private hitIn;
|
|
223
|
+
/** ProseMirror's `posAtCoords`, in window logical pixels — the space a
|
|
224
|
+
* pointer event's `x`/`y` are in. */
|
|
225
|
+
posAtCoords(coords: {
|
|
226
|
+
left: number;
|
|
227
|
+
top: number;
|
|
228
|
+
}): {
|
|
229
|
+
pos: number;
|
|
230
|
+
inside: number;
|
|
231
|
+
} | null;
|
|
232
|
+
/** ProseMirror's `coordsAtPos`: where a caret at `pos` is drawn, in window
|
|
233
|
+
* logical pixels. */
|
|
234
|
+
coordsAtPos(pos: number, _side?: number): Coords;
|
|
235
|
+
/**
|
|
236
|
+
* The textblock element that draws `pos`, and where a caret there is in
|
|
237
|
+
* that element's own logical coordinates — what a `<popup anchor>` hangs
|
|
238
|
+
* off, so it moves with the text when the document scrolls and unmaps
|
|
239
|
+
* when the text scrolls out of view. Null when no mounted block draws it.
|
|
240
|
+
*/
|
|
241
|
+
anchorAt(pos: number): {
|
|
242
|
+
node: DrawnNode;
|
|
243
|
+
at: {
|
|
244
|
+
x: number;
|
|
245
|
+
y: number;
|
|
246
|
+
width: number;
|
|
247
|
+
height: number;
|
|
248
|
+
};
|
|
249
|
+
} | null;
|
|
250
|
+
/** ProseMirror's `endOfTextblock`: would moving `dir` from the selection
|
|
251
|
+
* leave its textblock? Up and down ask the layout which line it is on. */
|
|
252
|
+
endOfTextblock(dir: 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward', state?: EditorState): boolean;
|
|
253
|
+
/** The nearest line that way: blocks whose band holds `y` first, then the
|
|
254
|
+
* first block past the caret's line. For line motion and paging. */
|
|
255
|
+
private near;
|
|
256
|
+
private viewportHeight;
|
|
257
|
+
/**
|
|
258
|
+
* Move the caret — or, with `extend`, the head of the selection — by a
|
|
259
|
+
* unit. Always answers true: a motion key that could not move (Up on the
|
|
260
|
+
* first line of the document) is still the editor's key.
|
|
261
|
+
*/
|
|
262
|
+
move(unit: MoveUnit, extend: boolean): boolean;
|
|
263
|
+
private horizontal;
|
|
264
|
+
private wordTarget;
|
|
265
|
+
/** Where Home or End goes from `pos`: the visual line's edge, read off the
|
|
266
|
+
* layout — so a wrapped paragraph's End stops where the line does. */
|
|
267
|
+
private lineEdge;
|
|
268
|
+
private deleteBy;
|
|
269
|
+
/** Typed text, as ProseMirror's DOM view inserts it: `handleTextInput`
|
|
270
|
+
* first (input rules live there), then the insertion. */
|
|
271
|
+
insertText(text: string): void;
|
|
272
|
+
keyDown(ev: KeyEvent): void;
|
|
273
|
+
/** What a browser's contenteditable does with a key no plugin claimed. */
|
|
274
|
+
private fallbackKey;
|
|
275
|
+
composition(ev: ComposeEvent): void;
|
|
276
|
+
private setPreedit;
|
|
277
|
+
focusChanged(focused: boolean): void;
|
|
278
|
+
/** A press, from the root's `onMouseDown`. Returns whether the editor
|
|
279
|
+
* took it — the component then prevents core's default action. */
|
|
280
|
+
mouseDown(ev: X11MouseEvent): boolean;
|
|
281
|
+
/** ProseMirror's click props, innermost node first: `handleClickOn` for
|
|
282
|
+
* each node around the position, then `handleClick`. */
|
|
283
|
+
private clickHandlers;
|
|
284
|
+
/** Motion while pressed, from the root's `onMouseMove`. */
|
|
285
|
+
mouseMove(ev: X11MouseEvent): boolean;
|
|
286
|
+
mouseUp(): void;
|
|
287
|
+
private extendDrag;
|
|
288
|
+
/** A drag held past the viewport's edge keeps scrolling, and keeps
|
|
289
|
+
* extending, until the pointer comes back or the button comes up. */
|
|
290
|
+
private autoScroll;
|
|
291
|
+
private wordAround;
|
|
292
|
+
private blockAround;
|
|
293
|
+
/** Whether a press lands on what is selected: inside a text selection, or
|
|
294
|
+
* on the block a node selection holds. */
|
|
295
|
+
private onSelection;
|
|
296
|
+
/** Core is starting a drag from the root. It is the selection's when the
|
|
297
|
+
* press was on the selection; false has the drag cancelled, and the
|
|
298
|
+
* gesture goes on as mouse events. */
|
|
299
|
+
dragStart(): boolean;
|
|
300
|
+
private dragContent;
|
|
301
|
+
/** What a drag out of the editor offers another application: what a copy
|
|
302
|
+
* would — its text, and its HTML. */
|
|
303
|
+
dragText(): string;
|
|
304
|
+
dragHTML(): string;
|
|
305
|
+
/** …and a drop in this app, the slice itself. */
|
|
306
|
+
dragPayload(): DragPayload | null;
|
|
307
|
+
/** Each motion of a drag out of this editor: whether the copy
|
|
308
|
+
* modifier — Ctrl, or Option on the Mac backend — is down. Core's drop
|
|
309
|
+
* in this app arrives with no modifiers, so the drag carries them. */
|
|
310
|
+
dragMoved(ctrlKey: boolean, altKey: boolean): void;
|
|
311
|
+
/** The drag out of this editor ended. A move that another editor or
|
|
312
|
+
* application took takes the content out of here; a drop back in here
|
|
313
|
+
* has done that already. */
|
|
314
|
+
dragEnd(action: string | null, dropped: boolean): void;
|
|
315
|
+
/** A drag over the editor at logical window `x`, `y`: a caret drawn where
|
|
316
|
+
* it would go in. False when nothing is taken here. */
|
|
317
|
+
dragOver(x: number, y: number): boolean;
|
|
318
|
+
dragLeave(): void;
|
|
319
|
+
/** The drop caret, on the block a drop would go into: its text element
|
|
320
|
+
* draws it the way it draws the caret, re-rendering nothing. */
|
|
321
|
+
private setDropAt;
|
|
322
|
+
/**
|
|
323
|
+
* A drop on the editor: read, offered to `handleDrop`, and put in where it
|
|
324
|
+
* fits — prosemirror-view's drop. Answers the action to report to the
|
|
325
|
+
* source, or null to refuse it: at once for a drag from this app, which
|
|
326
|
+
* core settles before the source's `onDragEnd` runs, and after a read for
|
|
327
|
+
* HTML from another application.
|
|
328
|
+
*/
|
|
329
|
+
drop(ev: DropLike): DropAnswer | Promise<DropAnswer>;
|
|
330
|
+
/** A slice out of an editor in this app — this one, or another. */
|
|
331
|
+
private dropSlice;
|
|
332
|
+
/** Text, HTML, links or files from another application — or from an
|
|
333
|
+
* element of this one that is not an editor. */
|
|
334
|
+
private dropRead;
|
|
335
|
+
private insertDrop;
|
|
336
|
+
/** Right-click: core's standard edit menu, with the verbs this editor has.
|
|
337
|
+
* A read-only editor offers Copy and Select All and nothing else — a verb
|
|
338
|
+
* left out is a row that is not there (react-x11 docs/extending.md). */
|
|
339
|
+
contextMenu(ev: X11MouseEvent): void;
|
|
340
|
+
/** Copy (or cut) the selection: HTML, plain text, and the slice kept in
|
|
341
|
+
* this process for a paste back — see `./clipboard.ts`. */
|
|
342
|
+
copy(cut: boolean): void;
|
|
343
|
+
/** Paste from the clipboard (or from X11's PRIMARY): its HTML when it has
|
|
344
|
+
* some and the paste is not plain, its text otherwise. */
|
|
345
|
+
paste(plain: boolean, selection?: 'PRIMARY'): Promise<void>;
|
|
346
|
+
/** ProseMirror's `pasteText`. */
|
|
347
|
+
pasteText(text: string): boolean;
|
|
348
|
+
/** ProseMirror's `pasteHTML`. */
|
|
349
|
+
pasteHTML(html: string): boolean;
|
|
350
|
+
private pasteContent;
|
|
351
|
+
/** X11's PRIMARY: whatever is selected is pasteable with the middle
|
|
352
|
+
* button, anywhere. */
|
|
353
|
+
private ownPrimary;
|
|
354
|
+
private scheduleScroll;
|
|
355
|
+
/** Bring the selection's head into the viewport — after the layout the
|
|
356
|
+
* change caused, which is the first moment it has a place. */
|
|
357
|
+
scrollToSelection(): void;
|
|
358
|
+
private textOffset;
|
|
359
|
+
/** The document as a screen reader reads it: one text, a line per block,
|
|
360
|
+
* the caret and selection in code points of it. */
|
|
361
|
+
a11yText(): A11yTextState | null;
|
|
362
|
+
/** The document position at a code-point offset of `a11yText().value`. */
|
|
363
|
+
private posAtTextOffset;
|
|
364
|
+
a11ySelect(start: number, end: number): boolean;
|
|
365
|
+
a11yReplace(start: number, end: number, text: string): boolean;
|
|
366
|
+
}
|
|
367
|
+
export {};
|
|
368
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/view.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAQ1C,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EAEX,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAGV,iBAAiB,EACjB,WAAW,EACX,UAAU,EACX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,UAAU,IAAI,aAAa,EAC3B,cAAc,EACf,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAStE,OAAO,KAAK,EAAE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