@dxos/react-ui-editor 0.8.4-main.c1de068 → 0.8.4-main.e098934
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/dist/lib/browser/index.mjs +2074 -996
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +71 -1
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node-esm/index.mjs +2074 -996
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +71 -1
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/components/{Popover → CommandMenu}/CommandMenu.d.ts +10 -6
- package/dist/types/src/components/CommandMenu/CommandMenu.d.ts.map +1 -0
- package/dist/types/src/components/CommandMenu/index.d.ts +2 -0
- package/dist/types/src/components/CommandMenu/index.d.ts.map +1 -0
- package/dist/types/src/components/Editor/Editor.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/blocks.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/formatting.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/headings.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/image.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/lists.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/search.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/util.d.ts +2 -2
- package/dist/types/src/components/EditorToolbar/util.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/view-mode.d.ts +1 -1
- package/dist/types/src/components/EditorToolbar/view-mode.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/defaults.d.ts.map +1 -1
- package/dist/types/src/extensions/autocomplete.d.ts +20 -7
- package/dist/types/src/extensions/autocomplete.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/automerge.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/automerge.stories.d.ts +9 -18
- package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/defs.d.ts +1 -1
- package/dist/types/src/extensions/automerge/defs.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/sync.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/update-automerge.d.ts.map +1 -1
- package/dist/types/src/extensions/autoscroll.d.ts +10 -0
- package/dist/types/src/extensions/autoscroll.d.ts.map +1 -0
- package/dist/types/src/extensions/command/action.d.ts +1 -1
- package/dist/types/src/extensions/command/action.d.ts.map +1 -1
- package/dist/types/src/extensions/command/command-menu.d.ts +1 -1
- package/dist/types/src/extensions/command/command-menu.d.ts.map +1 -1
- package/dist/types/src/extensions/command/command.d.ts.map +1 -1
- package/dist/types/src/extensions/command/floating-menu.d.ts.map +1 -1
- package/dist/types/src/extensions/command/hint.d.ts +2 -7
- package/dist/types/src/extensions/command/hint.d.ts.map +1 -1
- package/dist/types/src/extensions/command/state.d.ts +1 -1
- package/dist/types/src/extensions/command/state.d.ts.map +1 -1
- package/dist/types/src/extensions/command/typeahead.d.ts.map +1 -1
- package/dist/types/src/extensions/command/useCommandMenu.d.ts +3 -4
- package/dist/types/src/extensions/command/useCommandMenu.d.ts.map +1 -1
- package/dist/types/src/extensions/comments.d.ts +1 -1
- package/dist/types/src/extensions/comments.d.ts.map +1 -1
- package/dist/types/src/extensions/dnd.d.ts.map +1 -1
- package/dist/types/src/extensions/factories.d.ts +2 -7
- package/dist/types/src/extensions/factories.d.ts.map +1 -1
- package/dist/types/src/extensions/index.d.ts +2 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/action.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/bundle.d.ts +8 -2
- package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/changes.d.ts +1 -1
- package/dist/types/src/extensions/markdown/changes.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/decorate.d.ts +9 -1
- package/dist/types/src/extensions/markdown/decorate.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/formatting.d.ts +1 -1
- package/dist/types/src/extensions/markdown/formatting.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/formatting.test.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/highlight.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/image.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/link.d.ts.map +1 -1
- package/dist/types/src/extensions/outliner/outliner.d.ts +1 -1
- package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -1
- package/dist/types/src/extensions/outliner/selection.d.ts.map +1 -1
- package/dist/types/src/extensions/outliner/tree.d.ts +2 -2
- package/dist/types/src/extensions/outliner/tree.d.ts.map +1 -1
- package/dist/types/src/extensions/preview/preview.d.ts +3 -6
- package/dist/types/src/extensions/preview/preview.d.ts.map +1 -1
- package/dist/types/src/extensions/tags/extended-markdown.d.ts +10 -0
- package/dist/types/src/extensions/tags/extended-markdown.d.ts.map +1 -0
- package/dist/types/src/extensions/tags/extended-markdown.test.d.ts +2 -0
- package/dist/types/src/extensions/tags/extended-markdown.test.d.ts.map +1 -0
- package/dist/types/src/extensions/tags/index.d.ts +4 -0
- package/dist/types/src/extensions/tags/index.d.ts.map +1 -0
- package/dist/types/src/extensions/tags/streamer.d.ts +12 -0
- package/dist/types/src/extensions/tags/streamer.d.ts.map +1 -0
- package/dist/types/src/extensions/tags/xml-tags.d.ts +71 -0
- package/dist/types/src/extensions/tags/xml-tags.d.ts.map +1 -0
- package/dist/types/src/extensions/tags/xml-util.d.ts +10 -0
- package/dist/types/src/extensions/tags/xml-util.d.ts.map +1 -0
- package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
- package/dist/types/src/stories/Command.stories.d.ts +12 -4
- package/dist/types/src/stories/Command.stories.d.ts.map +1 -1
- package/dist/types/src/stories/CommandMenu.stories.d.ts +10 -3
- package/dist/types/src/stories/CommandMenu.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Comments.stories.d.ts +21 -9
- package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/stories/EditorToolbar.stories.d.ts +39 -2
- package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Experimental.stories.d.ts +22 -12
- package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Markdown.stories.d.ts +32 -42
- package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Outliner.stories.d.ts +15 -20
- package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Preview.stories.d.ts +21 -6
- package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Tags.stories.d.ts +17 -0
- package/dist/types/src/stories/Tags.stories.d.ts.map +1 -0
- package/dist/types/src/stories/TextEditor.stories.d.ts +38 -51
- package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
- package/dist/types/src/stories/components/EditorStory.d.ts +3 -6
- package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -1
- package/dist/types/src/styles/theme.d.ts.map +1 -1
- package/dist/types/src/testing/PreviewPopover.d.ts +20 -0
- package/dist/types/src/testing/PreviewPopover.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/util.d.ts +1 -0
- package/dist/types/src/testing/util.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -1
- package/dist/types/src/types/types.d.ts +1 -1
- package/dist/types/src/util/cursor.d.ts.map +1 -1
- package/dist/types/src/util/debug.d.ts +1 -1
- package/dist/types/src/util/debug.d.ts.map +1 -1
- package/dist/types/src/util/decorations.d.ts +4 -0
- package/dist/types/src/util/decorations.d.ts.map +1 -0
- package/dist/types/src/util/dom.d.ts +2 -12
- package/dist/types/src/util/dom.d.ts.map +1 -1
- package/dist/types/src/util/domino.d.ts +18 -0
- package/dist/types/src/util/domino.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/react.d.ts +1 -1
- package/dist/types/src/util/react.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +57 -51
- package/src/components/{Popover → CommandMenu}/CommandMenu.tsx +93 -26
- package/src/components/{Popover → CommandMenu}/index.ts +0 -2
- package/src/components/Editor/Editor.tsx +1 -1
- package/src/components/EditorToolbar/EditorToolbar.tsx +40 -30
- package/src/components/EditorToolbar/blocks.ts +21 -24
- package/src/components/EditorToolbar/formatting.ts +22 -25
- package/src/components/EditorToolbar/headings.ts +10 -5
- package/src/components/EditorToolbar/image.ts +8 -4
- package/src/components/EditorToolbar/lists.ts +16 -19
- package/src/components/EditorToolbar/search.ts +8 -4
- package/src/components/EditorToolbar/util.ts +16 -5
- package/src/components/EditorToolbar/view-mode.ts +11 -6
- package/src/components/index.ts +1 -1
- package/src/defaults.ts +5 -2
- package/src/extensions/autocomplete.ts +204 -54
- package/src/extensions/automerge/automerge.stories.tsx +25 -18
- package/src/extensions/automerge/automerge.ts +4 -3
- package/src/extensions/automerge/defs.ts +1 -1
- package/src/extensions/automerge/sync.ts +1 -1
- package/src/extensions/automerge/update-automerge.ts +1 -1
- package/src/extensions/autoscroll.ts +157 -0
- package/src/extensions/awareness/awareness.ts +2 -2
- package/src/extensions/command/action.ts +1 -2
- package/src/extensions/command/command-menu.ts +7 -6
- package/src/extensions/command/command.ts +3 -3
- package/src/extensions/command/floating-menu.ts +10 -15
- package/src/extensions/command/hint.ts +2 -1
- package/src/extensions/command/placeholder.ts +1 -1
- package/src/extensions/command/state.ts +4 -3
- package/src/extensions/command/typeahead.ts +2 -2
- package/src/extensions/command/useCommandMenu.ts +6 -9
- package/src/extensions/comments.ts +18 -13
- package/src/extensions/dnd.ts +1 -1
- package/src/extensions/factories.ts +9 -21
- package/src/extensions/folding.tsx +2 -2
- package/src/extensions/index.ts +2 -0
- package/src/extensions/markdown/action.ts +2 -1
- package/src/extensions/markdown/bundle.ts +25 -3
- package/src/extensions/markdown/changes.ts +1 -1
- package/src/extensions/markdown/decorate.ts +23 -14
- package/src/extensions/markdown/formatting.test.ts +6 -6
- package/src/extensions/markdown/formatting.ts +3 -3
- package/src/extensions/markdown/highlight.ts +1 -1
- package/src/extensions/markdown/image.ts +3 -4
- package/src/extensions/markdown/link.ts +3 -0
- package/src/extensions/markdown/table.ts +7 -1
- package/src/extensions/mention.ts +1 -1
- package/src/extensions/outliner/outliner.test.ts +3 -2
- package/src/extensions/outliner/outliner.ts +6 -5
- package/src/extensions/outliner/selection.ts +1 -1
- package/src/extensions/outliner/tree.test.ts +2 -1
- package/src/extensions/outliner/tree.ts +2 -2
- package/src/extensions/preview/preview.ts +59 -62
- package/src/extensions/tags/extended-markdown.test.ts +261 -0
- package/src/extensions/tags/extended-markdown.ts +78 -0
- package/src/extensions/tags/index.ts +7 -0
- package/src/extensions/tags/streamer.ts +244 -0
- package/src/extensions/tags/xml-tags.ts +335 -0
- package/src/extensions/tags/xml-util.ts +94 -0
- package/src/hooks/useTextEditor.ts +3 -15
- package/src/stories/Command.stories.tsx +24 -31
- package/src/stories/CommandMenu.stories.tsx +28 -29
- package/src/stories/Comments.stories.tsx +10 -6
- package/src/stories/EditorToolbar.stories.tsx +8 -8
- package/src/stories/Experimental.stories.tsx +12 -8
- package/src/stories/Markdown.stories.tsx +21 -17
- package/src/stories/Outliner.stories.tsx +42 -30
- package/src/stories/Preview.stories.tsx +30 -29
- package/src/stories/Tags.stories.tsx +81 -0
- package/src/stories/TextEditor.stories.tsx +40 -34
- package/src/stories/components/EditorStory.tsx +9 -10
- package/src/styles/theme.ts +8 -6
- package/src/testing/PreviewPopover.tsx +78 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/util.ts +2 -0
- package/src/translations.ts +1 -1
- package/src/util/cursor.ts +2 -1
- package/src/util/debug.ts +2 -2
- package/src/util/decorations.ts +21 -0
- package/src/util/dom.ts +5 -27
- package/src/util/domino.ts +51 -0
- package/src/util/index.ts +2 -0
- package/src/util/react.tsx +1 -1
- package/dist/types/src/components/Popover/CommandMenu.d.ts.map +0 -1
- package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +0 -21
- package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +0 -1
- package/dist/types/src/components/Popover/RefPopover.d.ts +0 -34
- package/dist/types/src/components/Popover/RefPopover.d.ts.map +0 -1
- package/dist/types/src/components/Popover/index.d.ts +0 -4
- package/dist/types/src/components/Popover/index.d.ts.map +0 -1
- package/src/components/Popover/RefDropdownMenu.tsx +0 -85
- package/src/components/Popover/RefPopover.tsx +0 -99
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/changes.ts"],"names":[],"mappings":"AAMA,OAAO,
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/changes.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEjF;;GAEG;AAEH,eAAO,MAAM,aAAa;mBAGL,UAAU;aAqF9B,CAAC;AAMF,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,EAAE,OAAO,MAAM,KAAG,MAepD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,GAAG,KAAG,MAW1C,CAAC"}
|
@@ -1,4 +1,11 @@
|
|
1
1
|
import { type RenderCallback } from '../../types';
|
2
|
+
export type NodeData = {
|
3
|
+
name: 'Link';
|
4
|
+
url: string;
|
5
|
+
} | {
|
6
|
+
name: 'Image';
|
7
|
+
url: string;
|
8
|
+
};
|
2
9
|
export interface DecorateOptions {
|
3
10
|
/**
|
4
11
|
* Prevents triggering decorations as the cursor moves through the document.
|
@@ -8,10 +15,11 @@ export interface DecorateOptions {
|
|
8
15
|
from: number;
|
9
16
|
to?: number;
|
10
17
|
};
|
18
|
+
listPaddingLeft?: number;
|
19
|
+
skip?: (node: NodeData) => boolean;
|
11
20
|
renderLinkButton?: RenderCallback<{
|
12
21
|
url: string;
|
13
22
|
}>;
|
14
|
-
listPaddingLeft?: number;
|
15
23
|
}
|
16
24
|
export declare const decorateMarkdown: (options?: DecorateOptions) => import("@codemirror/state").Extension[];
|
17
25
|
//# sourceMappingURL=decorate.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorate.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/decorate.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"decorate.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/decorate.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AA0flD,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtF,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEjD,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IAEnC,gBAAgB,CAAC,EAAE,cAAc,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,gBAAgB,GAAI,UAAS,eAAoB,4CAgE7D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type
|
1
|
+
import { type EditorState, type Extension, type StateCommand } from '@codemirror/state';
|
2
2
|
import { EditorView } from '@codemirror/view';
|
3
3
|
import { type Live } from '@dxos/live-object';
|
4
4
|
import { type EditorToolbarState } from '../../components';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.ts"],"names":[],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatting.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.test.ts"],"names":[],"mappings":"AAQA,OAAO,
|
1
|
+
{"version":3,"file":"formatting.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.test.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,UAAU,EAehB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,eAAe,EAAE,UAU7B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/highlight.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/highlight.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAmB,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,iBAAiB,CAAC;AAI7D;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAexB,CAAC;AAaF,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAKlD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAU,gBAAqB,mBAsHrE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/image.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA4C,MAAM,mBAAmB,CAAC;AAK/G,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,WAAU,YAAiB,KAAG,
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/image.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA4C,MAAM,mBAAmB,CAAC;AAK/G,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,WAAU,YAAiB,KAAG,SAmCnD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/link.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,eAAe,cAAc,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;;
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/link.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,eAAe,cAAc,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;;CAoCzE,CAAC"}
|
@@ -7,5 +7,5 @@ export type OutlinerProps = {};
|
|
7
7
|
* - Constrains editor to outline structure.
|
8
8
|
* - Supports smart cut-and-paste.
|
9
9
|
*/
|
10
|
-
export declare const outliner: (
|
10
|
+
export declare const outliner: (_options?: OutlinerProps) => Extension;
|
11
11
|
//# sourceMappingURL=outliner.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"outliner.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/outliner.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAoB,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"outliner.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/outliner.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAoB,MAAM,mBAAmB,CAAC;AA2BvF,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,WAAU,aAAkB,KAAG,SAwBvD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/selection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/selection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,KAAK,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAIjE,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;AAEjC,eAAO,MAAM,YAAY,GAAI,OAAO,WAAW,KAAG,cAAsC,CAAC;AAEzF,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,YAA2D,CAAC;AAEpH,eAAO,MAAM,cAAc,6BAEzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,aAAoB,CAAC;AAEtD,eAAO,MAAM,UAAU,EAAE,OAMxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAUvB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAEtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAExB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type
|
1
|
+
import { type EditorState, type Extension } from '@codemirror/state';
|
2
2
|
import { Facet } from '@codemirror/state';
|
3
3
|
import { type SyntaxNode } from '@lezer/common';
|
4
4
|
import { type Range } from '../../types';
|
@@ -75,5 +75,5 @@ export type TreeOptions = {};
|
|
75
75
|
* This adds overhead relative to the markdown AST, but allows for efficient traversal of the list items.
|
76
76
|
* NOTE: Requires markdown parser to be enabled.
|
77
77
|
*/
|
78
|
-
export declare const outlinerTree: (
|
78
|
+
export declare const outlinerTree: (_options?: TreeOptions) => Extension;
|
79
79
|
//# sourceMappingURL=tree.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/tree.ts"],"names":[],"mappings":"AAKA,OAAO,
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/tree.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAgC,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,KAAK,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,2DAA2D,IAAI,KAAG,GAE5F,CAAC;AAEF;;GAEG;AACH,qBAAa,IAAK,YAAW,IAAI;IAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAU;IAC5B,KAAK,SAAM;IACX,KAAK,SAAM;IACX,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACnC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAM;gBAEpB,IAAI,EAAE,UAAU;IAM5B,MAAM;IAIN,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS;IAC7E,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS;IAYzF;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAInC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,UAAO,GAAG,IAAI,GAAG,SAAS;IAgBhD;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS;IAQlC;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAGjC;AAED,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,EAAE,MAAM,IAAI,KAAG,CAAC,MAAM,EAAE,MAAM,CAGhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,GAAG,GAAG,EAAE,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,KAAG,CAAC,GAAG,SAoB/F,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,WAAW,EAAE,MAAM,IAAI,KAAG,MAEnE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,EAAE,cAAS,WAerD,CAAC;AAUF,eAAO,MAAM,SAAS,mBAEpB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,WAAU,WAAgB,KAAG,SAuHzD,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import '@dxos/lit-ui/dx-ref-tag.pcss';
|
2
1
|
import { type EditorState, type Extension } from '@codemirror/state';
|
3
2
|
import { type SyntaxNode } from '@lezer/common';
|
4
3
|
export type PreviewLinkRef = {
|
4
|
+
/** @deprecated */
|
5
5
|
suggest?: boolean;
|
6
6
|
block?: boolean;
|
7
7
|
label: string;
|
@@ -12,7 +12,6 @@ export type PreviewLinkTarget = {
|
|
12
12
|
text?: string;
|
13
13
|
object?: any;
|
14
14
|
};
|
15
|
-
export type PreviewLookup = (link: PreviewLinkRef) => Promise<PreviewLinkTarget | null | undefined>;
|
16
15
|
export type PreviewOptions = {
|
17
16
|
addBlockContainer?: (link: PreviewLinkRef, el: HTMLElement) => void;
|
18
17
|
removeBlockContainer?: (link: PreviewLinkRef) => void;
|
@@ -23,10 +22,8 @@ export type PreviewOptions = {
|
|
23
22
|
export declare const preview: (options?: PreviewOptions) => Extension;
|
24
23
|
/**
|
25
24
|
* Link references.
|
26
|
-
*
|
27
|
-
*
|
28
|
-
* ![Label][dxn:echo:123] Block reference
|
29
|
-
* ![Label][?dxn:echo:123] Suggestion
|
25
|
+
* [Label](dxn:echo:123) Inline reference
|
26
|
+
*  Block reference
|
30
27
|
*/
|
31
28
|
export declare const getLinkRef: (state: EditorState, node: SyntaxNode) => PreviewLinkRef | undefined;
|
32
29
|
//# sourceMappingURL=preview.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAA+B,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,kBAAkB;IAElB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC;IACpE,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SAmBtD,CAAC;AA0DF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,EAAE,MAAM,UAAU,KAAG,cAAc,GAAG,SAclF,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
import { type XmlWidgetRegistry } from './xml-tags';
|
3
|
+
export type ExtendedMarkdownOptions = {
|
4
|
+
registry?: XmlWidgetRegistry;
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* Extended markdown parser with mixed parser for custom rendering of XML tags.
|
8
|
+
*/
|
9
|
+
export declare const extendedMarkdown: ({ registry }?: ExtendedMarkdownOptions) => Extension;
|
10
|
+
//# sourceMappingURL=extended-markdown.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extended-markdown.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/extended-markdown.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,eAAc,uBAA4B,KAAG,SAiB7E,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extended-markdown.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/extended-markdown.test.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
export type StreamerOptions = {
|
3
|
+
cursor?: boolean;
|
4
|
+
fadeIn?: boolean | {
|
5
|
+
removalDelay?: number;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Extension that adds a blinking cursor widget at the end of the document.
|
10
|
+
*/
|
11
|
+
export declare const streamer: (options?: StreamerOptions) => Extension;
|
12
|
+
//# sourceMappingURL=streamer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"streamer.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/streamer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,mBAAmB,CAAC;AAS5E,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,OAAO,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAS,eAAoB,KAAG,SAKxD,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
import { WidgetType } from '@codemirror/view';
|
3
|
+
import { type ComponentType, type FC } from 'react';
|
4
|
+
export type StateDispatch<T> = T | ((state: T) => T);
|
5
|
+
/**
|
6
|
+
* Manages widget state.
|
7
|
+
*/
|
8
|
+
export interface XmlWidgetStateManager {
|
9
|
+
updateWidget<T>(id: string, props: StateDispatch<T>): void;
|
10
|
+
}
|
11
|
+
export type XmlEventHandler<TEvent = any> = (event: TEvent) => void;
|
12
|
+
/**
|
13
|
+
* Widget component.
|
14
|
+
*/
|
15
|
+
export type XmlWidgetProps<TContext = any, TProps = any> = TProps & {
|
16
|
+
_tag: string;
|
17
|
+
context: TContext;
|
18
|
+
onEvent?: XmlEventHandler;
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* Factory for creating widgets.
|
22
|
+
*/
|
23
|
+
export type XmlWidgetFactory = (props: XmlWidgetProps, onEvent?: XmlEventHandler) => WidgetType | null;
|
24
|
+
/**
|
25
|
+
* Widget registry definition.
|
26
|
+
*/
|
27
|
+
export type XmlWidgetDef = {
|
28
|
+
block?: boolean;
|
29
|
+
/** Native widget. */
|
30
|
+
factory?: XmlWidgetFactory;
|
31
|
+
/** React widget. */
|
32
|
+
Component?: FC<XmlWidgetProps>;
|
33
|
+
};
|
34
|
+
export type XmlWidgetRegistry = Record<string, XmlWidgetDef>;
|
35
|
+
/**
|
36
|
+
* Update context.
|
37
|
+
*/
|
38
|
+
export declare const xmlTagContextEffect: import("@codemirror/state").StateEffectType<any>;
|
39
|
+
/**
|
40
|
+
* Update widget.
|
41
|
+
*/
|
42
|
+
export declare const xmlTagUpdateEffect: import("@codemirror/state").StateEffectType<{
|
43
|
+
id: string;
|
44
|
+
value: any;
|
45
|
+
}>;
|
46
|
+
/**
|
47
|
+
* Reset all state.
|
48
|
+
*/
|
49
|
+
export declare const xmlTagResetEffect: import("@codemirror/state").StateEffectType<null>;
|
50
|
+
export type XmlWidgetState = {
|
51
|
+
id: string;
|
52
|
+
props: any;
|
53
|
+
root: HTMLElement;
|
54
|
+
Component: ComponentType<any>;
|
55
|
+
};
|
56
|
+
export interface XmlWidgetNotifier {
|
57
|
+
mounted(widget: XmlWidgetState): void;
|
58
|
+
unmounted(id: string): void;
|
59
|
+
}
|
60
|
+
export type XmlTagsOptions = {
|
61
|
+
registry?: XmlWidgetRegistry;
|
62
|
+
/**
|
63
|
+
* Called when a widget is mounted or unmounted.
|
64
|
+
*/
|
65
|
+
setWidgets?: (widgets: XmlWidgetState[]) => void;
|
66
|
+
};
|
67
|
+
/**
|
68
|
+
* Extension that adds thread-related functionality including XML tag decorations.
|
69
|
+
*/
|
70
|
+
export declare const xmlTags: (options?: XmlTagsOptions) => Extension;
|
71
|
+
//# sourceMappingURL=xml-tags.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xml-tags.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/xml-tags.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA4C,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAA8C,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AASpD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED,MAAM,MAAM,eAAe,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,QAAQ,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU,GAAG,IAAI,CAAC;AAEvG;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qBAAqB;IACrB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB;IACpB,SAAS,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB,kDAA4B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,kBAAkB;QAA4B,MAAM;WAAS,GAAG;EAAK,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,iBAAiB,mDAAuB,CAAC;AAStD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SA8HtD,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type EditorState } from '@codemirror/state';
|
2
|
+
import { type SyntaxNode } from '@lezer/common';
|
3
|
+
export type Tag = Record<string, any> & {
|
4
|
+
_tag: string;
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* Parse XML Element.
|
8
|
+
*/
|
9
|
+
export declare const nodeToJson: (state: EditorState, node: SyntaxNode) => Tag | undefined;
|
10
|
+
//# sourceMappingURL=xml-util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xml-util.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/xml-util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,EAAE,MAAM,UAAU,KAAG,GAAG,GAAG,SA6EvE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,
|
1
|
+
{"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,aAAa,EAAgC,MAAM,YAAY,CAAC;AAE9E,OAAO,EAAE,KAAK,eAAe,EAA6D,MAAM,eAAe,CAAC;AAKhH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAE1B,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,eAAe,CAAC,EAAE,YAAY,CAAC,mBAAmB,GAAG;QACnD,QAAQ,EAAE,CAAC,CAAC;QACZ,OAAO,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IACvE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,QAAO,aAAa,CAAC,kBAAkB,CAAM,EAC7C,OAAM,cAAmB,KACxB,aAmHF,CAAC"}
|
@@ -1,7 +1,15 @@
|
|
1
1
|
import '@dxos-theme';
|
2
|
-
import { type
|
3
|
-
import
|
4
|
-
declare const meta:
|
2
|
+
import { type StoryObj } from '@storybook/react-vite';
|
3
|
+
import React from 'react';
|
4
|
+
declare const meta: {
|
5
|
+
title: string;
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
7
|
+
render: () => React.JSX.Element;
|
8
|
+
parameters: {
|
9
|
+
layout: string;
|
10
|
+
};
|
11
|
+
};
|
5
12
|
export default meta;
|
6
|
-
|
13
|
+
type Story = StoryObj<typeof meta>;
|
14
|
+
export declare const Default: Story;
|
7
15
|
//# sourceMappingURL=Command.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Command.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Command.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"Command.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Command.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AA4D5D,QAAA,MAAM,IAAI;;;;;;;CAgBqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
@@ -1,13 +1,20 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import { type StoryObj } from '@storybook/react-vite';
|
3
|
-
import
|
3
|
+
import React from 'react';
|
4
4
|
import { type UseCommandMenuOptions } from '../extensions';
|
5
5
|
type StoryProps = Omit<UseCommandMenuOptions, 'viewRef'> & {
|
6
6
|
text: string;
|
7
7
|
};
|
8
|
-
declare const meta:
|
8
|
+
declare const meta: {
|
9
|
+
title: string;
|
10
|
+
render: ({ text, ...options }: StoryProps) => React.JSX.Element;
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
12
|
+
parameters: {
|
13
|
+
layout: string;
|
14
|
+
};
|
15
|
+
};
|
9
16
|
export default meta;
|
10
|
-
type Story = StoryObj<
|
17
|
+
type Story = StoryObj<typeof meta>;
|
11
18
|
export declare const Slash: Story;
|
12
19
|
export declare const Link: Story;
|
13
20
|
//# sourceMappingURL=CommandMenu.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CommandMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/CommandMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,
|
1
|
+
{"version":3,"file":"CommandMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/CommandMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,OAAO,EAAE,KAAK,qBAAqB,EAAkB,MAAM,eAAe,CAAC;AAQ3E,KAAK,UAAU,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AA8B5E,QAAA,MAAM,IAAI;;mCA5BkC,UAAU;;;;;CAmCjB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,KAAK,EAAE,KAkBnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KA2DlB,CAAC"}
|
@@ -1,13 +1,25 @@
|
|
1
1
|
import '@dxos-theme';
|
2
|
+
import { type StoryObj } from '@storybook/react-vite';
|
2
3
|
import React from 'react';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
declare const meta: {
|
5
|
+
title: string;
|
6
|
+
component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
|
7
|
+
debug?: import("./components").DebugMode;
|
8
|
+
debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
|
9
|
+
text?: string;
|
10
|
+
object?: import("@dxos/echo-schema").Expando;
|
11
|
+
readOnly?: boolean;
|
12
|
+
placeholder?: string;
|
13
|
+
lineNumbers?: boolean;
|
14
|
+
onReady?: (view: import("@codemirror/view").EditorView) => void;
|
15
|
+
} & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
|
16
|
+
decorators: import("@storybook/react").Decorator[];
|
17
|
+
parameters: {
|
18
|
+
layout: string;
|
19
|
+
};
|
12
20
|
};
|
21
|
+
export default meta;
|
22
|
+
type Story = StoryObj<typeof meta>;
|
23
|
+
export declare const Comments: Story;
|
24
|
+
export declare const Annotations: Story;
|
13
25
|
//# sourceMappingURL=Comments.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,
|
1
|
+
{"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAmCtB,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
|
@@ -1,11 +1,48 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import { type StoryObj } from '@storybook/react-vite';
|
3
|
-
import
|
3
|
+
import React from 'react';
|
4
4
|
import { type UseTextEditorProps } from '../hooks';
|
5
5
|
type StoryProps = {
|
6
6
|
placeholder?: string;
|
7
7
|
} & UseTextEditorProps;
|
8
|
-
declare const meta:
|
8
|
+
declare const meta: {
|
9
|
+
title: string;
|
10
|
+
render: ({ autoFocus, initialValue, placeholder }: StoryProps) => React.JSX.Element;
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
12
|
+
parameters: {
|
13
|
+
translations: [{
|
14
|
+
readonly 'en-US': {
|
15
|
+
readonly "react-ui-editor": {
|
16
|
+
readonly 'strong label': "Bold";
|
17
|
+
readonly 'emphasis label': "Italics";
|
18
|
+
readonly 'strikethrough label': "Strikethrough";
|
19
|
+
readonly 'code label': "Code";
|
20
|
+
readonly 'link label': "Link";
|
21
|
+
readonly 'list-bullet label': "Bullet list";
|
22
|
+
readonly 'list-ordered label': "Numbered list";
|
23
|
+
readonly 'list-task label': "Task list";
|
24
|
+
readonly 'blockquote label': "Block quote";
|
25
|
+
readonly 'codeblock label': "Code block";
|
26
|
+
readonly 'comment label': "Create comment";
|
27
|
+
readonly 'selection overlaps existing comment label': "Selection overlaps existing comment";
|
28
|
+
readonly 'select text to comment label': "Select text to comment";
|
29
|
+
readonly 'image label': "Insert image";
|
30
|
+
readonly 'table label': "Create table";
|
31
|
+
readonly 'heading label': "Heading level";
|
32
|
+
readonly 'heading level label_zero': "Paragraph";
|
33
|
+
readonly 'heading level label_one': "Heading level {{count}}";
|
34
|
+
readonly 'heading level label_other': "Heading level {{count}}";
|
35
|
+
readonly 'view mode label': "Editor view";
|
36
|
+
readonly 'preview mode label': "Live preview";
|
37
|
+
readonly 'readonly mode label': "Read only";
|
38
|
+
readonly 'search label': "Search";
|
39
|
+
readonly 'source mode label': "Source";
|
40
|
+
};
|
41
|
+
};
|
42
|
+
}];
|
43
|
+
layout: string;
|
44
|
+
};
|
45
|
+
};
|
9
46
|
export default meta;
|
10
47
|
type Story = StoryObj<typeof meta>;
|
11
48
|
export declare const Default: Story;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditorToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EditorToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,
|
1
|
+
{"version":3,"file":"EditorToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EditorToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,UAAU,CAAC;AAIlE,KAAK,UAAU,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAgDhE,QAAA,MAAM,IAAI;;uDA9CsD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
@@ -1,16 +1,26 @@
|
|
1
1
|
import '@dxos-theme';
|
2
|
+
import { type StoryObj } from '@storybook/react-vite';
|
2
3
|
import React from 'react';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
declare const meta: {
|
5
|
+
title: string;
|
6
|
+
component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
|
7
|
+
debug?: import("./components").DebugMode;
|
8
|
+
debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
|
9
|
+
text?: string;
|
10
|
+
object?: import("@dxos/echo-schema").Expando;
|
11
|
+
readOnly?: boolean;
|
12
|
+
placeholder?: string;
|
13
|
+
lineNumbers?: boolean;
|
14
|
+
onReady?: (view: import("@codemirror/view").EditorView) => void;
|
15
|
+
} & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
|
16
|
+
decorators: import("@storybook/react").Decorator[];
|
17
|
+
parameters: {
|
18
|
+
layout: string;
|
19
|
+
};
|
15
20
|
};
|
21
|
+
export default meta;
|
22
|
+
type Story = StoryObj<typeof meta>;
|
23
|
+
export declare const Typewriter: Story;
|
24
|
+
export declare const Blast: Story;
|
25
|
+
export declare const DND: Story;
|
16
26
|
//# sourceMappingURL=Experimental.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,KAqBnB,CAAC;AAMF,eAAO,MAAM,GAAG,EAAE,KAajB,CAAC"}
|
@@ -1,46 +1,36 @@
|
|
1
1
|
import '@dxos-theme';
|
2
|
+
import { type StoryObj } from '@storybook/react-vite';
|
2
3
|
import React from 'react';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
};
|
19
|
-
export declare const Image: {
|
20
|
-
render: () => React.JSX.Element;
|
21
|
-
};
|
22
|
-
export declare const Code: {
|
23
|
-
render: () => React.JSX.Element;
|
24
|
-
};
|
25
|
-
export declare const Lists: {
|
26
|
-
render: () => React.JSX.Element;
|
27
|
-
};
|
28
|
-
export declare const BulletList: {
|
29
|
-
render: () => React.JSX.Element;
|
30
|
-
};
|
31
|
-
export declare const OrderedList: {
|
32
|
-
render: () => React.JSX.Element;
|
33
|
-
};
|
34
|
-
export declare const TaskList: {
|
35
|
-
render: () => React.JSX.Element;
|
36
|
-
};
|
37
|
-
export declare const TaskListEmpty: {
|
38
|
-
render: () => React.JSX.Element;
|
39
|
-
};
|
40
|
-
export declare const Table: {
|
41
|
-
render: () => React.JSX.Element;
|
42
|
-
};
|
43
|
-
export declare const CommentedOut: {
|
44
|
-
render: () => React.JSX.Element;
|
4
|
+
declare const meta: {
|
5
|
+
title: string;
|
6
|
+
component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
|
7
|
+
debug?: import("./components").DebugMode;
|
8
|
+
debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
|
9
|
+
text?: string;
|
10
|
+
object?: import("@dxos/echo-schema").Expando;
|
11
|
+
readOnly?: boolean;
|
12
|
+
placeholder?: string;
|
13
|
+
lineNumbers?: boolean;
|
14
|
+
onReady?: (view: import("@codemirror/view").EditorView) => void;
|
15
|
+
} & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
|
16
|
+
decorators: import("@storybook/react").Decorator[];
|
17
|
+
parameters: {
|
18
|
+
layout: string;
|
19
|
+
};
|
45
20
|
};
|
21
|
+
export default meta;
|
22
|
+
type Story = StoryObj<typeof meta>;
|
23
|
+
export declare const Default: Story;
|
24
|
+
export declare const Blockquote: Story;
|
25
|
+
export declare const Headings: Story;
|
26
|
+
export declare const Links: Story;
|
27
|
+
export declare const Image: Story;
|
28
|
+
export declare const Code: Story;
|
29
|
+
export declare const Lists: Story;
|
30
|
+
export declare const BulletList: Story;
|
31
|
+
export declare const OrderedList: Story;
|
32
|
+
export declare const TaskList: Story;
|
33
|
+
export declare const TaskListEmpty: Story;
|
34
|
+
export declare const Table: Story;
|
35
|
+
export declare const CommentedOut: Story;
|
46
36
|
//# sourceMappingURL=Markdown.stories.d.ts.map
|