@dxos/react-ui-editor 0.8.2-main.fbd8ed0 → 0.8.2-staging.4d6ad0f
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 +1731 -926
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +3 -64
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node/index.cjs +1912 -1111
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +3 -75
- package/dist/lib/node/testing/index.cjs.map +4 -4
- package/dist/lib/node-esm/index.mjs +1731 -926
- 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 +3 -64
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/index.d.ts +1 -1
- package/dist/types/src/components/EditorToolbar/index.d.ts.map +1 -1
- package/dist/types/src/components/EditorToolbar/util.d.ts +4 -6
- package/dist/types/src/components/EditorToolbar/util.d.ts.map +1 -1
- package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +21 -0
- package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +1 -0
- package/dist/types/src/{testing → components/Popover}/RefPopover.d.ts +1 -1
- package/dist/types/src/components/Popover/RefPopover.d.ts.map +1 -0
- package/dist/types/src/components/Popover/index.d.ts +3 -0
- package/dist/types/src/components/Popover/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/defaults.d.ts +2 -5
- package/dist/types/src/defaults.d.ts.map +1 -1
- package/dist/types/src/extensions/annotations.d.ts +4 -1
- package/dist/types/src/extensions/annotations.d.ts.map +1 -1
- package/dist/types/src/extensions/autocomplete.d.ts +1 -2
- package/dist/types/src/extensions/autocomplete.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/automerge/sync.d.ts.map +1 -1
- package/dist/types/src/extensions/awareness/awareness-provider.d.ts.map +1 -1
- package/dist/types/src/extensions/awareness/awareness.d.ts.map +1 -1
- package/dist/types/src/extensions/command/command.d.ts +1 -2
- package/dist/types/src/extensions/command/command.d.ts.map +1 -1
- package/dist/types/src/extensions/command/hint.d.ts +14 -2
- package/dist/types/src/extensions/command/hint.d.ts.map +1 -1
- package/dist/types/src/extensions/command/index.d.ts +2 -0
- package/dist/types/src/extensions/command/index.d.ts.map +1 -1
- package/dist/types/src/extensions/command/menu.d.ts +7 -8
- package/dist/types/src/extensions/command/menu.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 +17 -0
- package/dist/types/src/extensions/command/typeahead.d.ts.map +1 -0
- package/dist/types/src/extensions/comments.d.ts +2 -12
- package/dist/types/src/extensions/comments.d.ts.map +1 -1
- package/dist/types/src/extensions/factories.d.ts +4 -0
- 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/json.d.ts +7 -0
- package/dist/types/src/extensions/json.d.ts.map +1 -0
- package/dist/types/src/extensions/markdown/{editorAction.d.ts → action.d.ts} +1 -1
- package/dist/types/src/extensions/markdown/action.d.ts.map +1 -0
- package/dist/types/src/extensions/markdown/bundle.d.ts +2 -1
- package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/index.d.ts +1 -2
- package/dist/types/src/extensions/markdown/index.d.ts.map +1 -1
- package/dist/types/src/extensions/markdown/styles.d.ts.map +1 -1
- package/dist/types/src/extensions/outliner/commands.d.ts +9 -0
- package/dist/types/src/extensions/outliner/commands.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/editor.d.ts +5 -0
- package/dist/types/src/extensions/outliner/editor.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/editor.test.d.ts +2 -0
- package/dist/types/src/extensions/outliner/editor.test.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/index.d.ts +3 -0
- package/dist/types/src/extensions/outliner/index.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/outliner.d.ts +10 -0
- package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/outliner.test.d.ts +2 -0
- package/dist/types/src/extensions/outliner/outliner.test.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/selection.d.ts +12 -0
- package/dist/types/src/extensions/outliner/selection.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/tree.d.ts +79 -0
- package/dist/types/src/extensions/outliner/tree.d.ts.map +1 -0
- package/dist/types/src/extensions/outliner/tree.test.d.ts +2 -0
- package/dist/types/src/extensions/outliner/tree.test.d.ts.map +1 -0
- package/dist/types/src/stories/Command.stories.d.ts +7 -0
- package/dist/types/src/stories/Command.stories.d.ts.map +1 -0
- package/dist/types/src/stories/{TextEditorComments.stories.d.ts → Comments.stories.d.ts} +3 -3
- package/dist/types/src/stories/Comments.stories.d.ts.map +1 -0
- package/dist/types/src/stories/EditorToolbar.stories.d.ts +12 -0
- package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -0
- package/dist/types/src/stories/{TextEditorSpecial.stories.d.ts → Experimental.stories.d.ts} +3 -6
- package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Markdown.stories.d.ts +46 -0
- package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Outliner.stories.d.ts +26 -0
- package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Preview.stories.d.ts +10 -0
- package/dist/types/src/stories/Preview.stories.d.ts.map +1 -0
- package/dist/types/src/stories/{TextEditorBasic.stories.d.ts → TextEditor.stories.d.ts} +9 -39
- package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -0
- package/dist/types/src/stories/{story-utils.d.ts → util.d.ts} +6 -6
- package/dist/types/src/stories/util.d.ts.map +1 -0
- package/dist/types/src/styles/theme.d.ts.map +1 -1
- package/dist/types/src/styles/tokens.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/util.d.ts +2 -0
- package/dist/types/src/testing/util.d.ts.map +1 -0
- package/package.json +40 -34
- package/src/components/EditorToolbar/EditorToolbar.tsx +81 -57
- package/src/components/EditorToolbar/index.ts +7 -1
- package/src/components/EditorToolbar/util.ts +3 -4
- package/src/components/Popover/RefDropdownMenu.tsx +77 -0
- package/src/{testing → components/Popover}/RefPopover.tsx +5 -4
- package/src/components/Popover/index.ts +6 -0
- package/src/components/index.ts +1 -0
- package/src/defaults.ts +10 -13
- package/src/extensions/annotations.ts +41 -64
- package/src/extensions/autocomplete.ts +5 -6
- package/src/extensions/automerge/automerge.stories.tsx +2 -7
- package/src/extensions/automerge/automerge.test.tsx +3 -2
- package/src/extensions/automerge/sync.ts +3 -3
- package/src/extensions/awareness/awareness-provider.ts +4 -4
- package/src/extensions/awareness/awareness.ts +7 -7
- package/src/extensions/blast.ts +9 -9
- package/src/extensions/command/command.ts +1 -3
- package/src/extensions/command/hint.ts +7 -7
- package/src/extensions/command/index.ts +2 -0
- package/src/extensions/command/menu.ts +43 -49
- package/src/extensions/command/typeahead.ts +116 -0
- package/src/extensions/comments.ts +4 -69
- package/src/extensions/factories.ts +13 -0
- package/src/extensions/index.ts +2 -0
- package/src/extensions/json.ts +56 -0
- package/src/extensions/markdown/bundle.ts +13 -9
- package/src/extensions/markdown/decorate.ts +7 -7
- package/src/extensions/markdown/image.ts +2 -2
- package/src/extensions/markdown/index.ts +1 -2
- package/src/extensions/markdown/styles.ts +2 -1
- package/src/extensions/markdown/table.ts +3 -3
- package/src/extensions/outliner/commands.ts +242 -0
- package/src/extensions/outliner/editor.test.ts +33 -0
- package/src/extensions/outliner/editor.ts +180 -0
- package/src/extensions/outliner/index.ts +6 -0
- package/src/extensions/outliner/outliner.test.ts +99 -0
- package/src/extensions/outliner/outliner.ts +162 -0
- package/src/extensions/outliner/selection.ts +50 -0
- package/src/extensions/outliner/tree.test.ts +164 -0
- package/src/extensions/outliner/tree.ts +315 -0
- package/src/extensions/preview/preview.ts +5 -5
- package/src/stories/Command.stories.tsx +97 -0
- package/src/stories/{TextEditorComments.stories.tsx → Comments.stories.tsx} +13 -14
- package/src/{components/EditorToolbar → stories}/EditorToolbar.stories.tsx +26 -20
- package/src/stories/{TextEditorSpecial.stories.tsx → Experimental.stories.tsx} +9 -30
- package/src/stories/Markdown.stories.tsx +121 -0
- package/src/stories/Outliner.stories.tsx +108 -0
- package/src/stories/{TextEditorPreview.stories.tsx → Preview.stories.tsx} +46 -136
- package/src/stories/TextEditor.stories.tsx +256 -0
- package/src/stories/{story-utils.tsx → util.tsx} +21 -22
- package/src/styles/theme.ts +12 -5
- package/src/styles/tokens.ts +1 -2
- package/src/testing/index.ts +1 -1
- package/src/testing/util.ts +5 -0
- package/dist/types/src/components/EditorToolbar/EditorToolbar.stories.d.ts +0 -53
- package/dist/types/src/components/EditorToolbar/EditorToolbar.stories.d.ts.map +0 -1
- package/dist/types/src/components/EditorToolbar/comment.d.ts +0 -18
- package/dist/types/src/components/EditorToolbar/comment.d.ts.map +0 -1
- package/dist/types/src/extensions/markdown/editorAction.d.ts.map +0 -1
- package/dist/types/src/extensions/markdown/outliner.d.ts +0 -12
- package/dist/types/src/extensions/markdown/outliner.d.ts.map +0 -1
- package/dist/types/src/stories/TextEditorBasic.stories.d.ts.map +0 -1
- package/dist/types/src/stories/TextEditorComments.stories.d.ts.map +0 -1
- package/dist/types/src/stories/TextEditorPreview.stories.d.ts +0 -13
- package/dist/types/src/stories/TextEditorPreview.stories.d.ts.map +0 -1
- package/dist/types/src/stories/TextEditorSpecial.stories.d.ts.map +0 -1
- package/dist/types/src/stories/story-utils.d.ts.map +0 -1
- package/dist/types/src/testing/RefPopover.d.ts.map +0 -1
- package/src/components/EditorToolbar/comment.ts +0 -30
- package/src/extensions/markdown/outliner.ts +0 -235
- package/src/stories/TextEditorBasic.stories.tsx +0 -333
- /package/src/extensions/markdown/{editorAction.ts → action.ts} +0 -0
@@ -1,13 +1,12 @@
|
|
1
1
|
import { type EditorView } from '@codemirror/view';
|
2
|
+
import { type Rx } from '@effect-rx/rx-react';
|
2
3
|
import { type Action } from '@dxos/app-graph';
|
3
4
|
import { type Live } from '@dxos/live-object';
|
4
5
|
import { type ThemedClassName } from '@dxos/react-ui';
|
5
6
|
import { type MenuSeparator, type MenuItemGroup, type ToolbarMenuActionGroupProperties, type ActionGraphProps, type MenuActionProperties } from '@dxos/react-ui-menu';
|
6
7
|
import type { EditorAction, EditorViewMode, Formatting } from '../../extensions';
|
7
8
|
export type EditorToolbarState = Formatting & Partial<{
|
8
|
-
comment: boolean;
|
9
9
|
viewMode: EditorViewMode;
|
10
|
-
selection: boolean;
|
11
10
|
}>;
|
12
11
|
export declare const useEditorToolbarState: (initialState?: Partial<EditorToolbarState>) => Live<EditorToolbarState>;
|
13
12
|
export type EditorToolbarFeatureFlags = Partial<{
|
@@ -16,14 +15,13 @@ export type EditorToolbarFeatureFlags = Partial<{
|
|
16
15
|
lists: boolean;
|
17
16
|
blocks: boolean;
|
18
17
|
search: boolean;
|
19
|
-
comment: boolean;
|
20
18
|
image: () => void;
|
21
19
|
viewMode: (mode: EditorViewMode) => void;
|
22
20
|
}>;
|
23
21
|
export type EditorToolbarActionGraphProps = {
|
24
22
|
state: Live<EditorToolbarState>;
|
25
23
|
getView: () => EditorView;
|
26
|
-
customActions?:
|
24
|
+
customActions?: Rx.Rx<ActionGraphProps>;
|
27
25
|
};
|
28
26
|
export type EditorToolbarProps = ThemedClassName<EditorToolbarActionGraphProps & EditorToolbarFeatureFlags & {
|
29
27
|
attendableId?: string;
|
@@ -39,11 +37,11 @@ export declare const createEditorActionGroup: (id: string, props: Omit<ToolbarMe
|
|
39
37
|
value: string | (string & string[]);
|
40
38
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
41
39
|
hidden?: boolean | undefined;
|
42
|
-
disabled?: boolean | undefined;
|
43
|
-
checked?: boolean | undefined;
|
44
40
|
variant: "dropdownMenu" | "toggleGroup";
|
41
|
+
disabled?: boolean | undefined;
|
45
42
|
iconOnly: boolean;
|
46
43
|
testId?: string | undefined;
|
44
|
+
checked?: boolean | undefined;
|
47
45
|
selectCardinality: "single" | "multiple";
|
48
46
|
icon: string | undefined;
|
49
47
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gCAAgC,EAGrC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE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;;;;;;;;;;;;;;;;CACiD,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
2
|
+
import { type PreviewLinkRef, type PreviewLinkTarget, type PreviewLookup } from '../../extensions';
|
3
|
+
type RefDropdownMenuValue = Partial<{
|
4
|
+
link: PreviewLinkRef;
|
5
|
+
target: PreviewLinkTarget;
|
6
|
+
pending: boolean;
|
7
|
+
}>;
|
8
|
+
declare const useRefDropdownMenu: (consumerName: string) => Partial<{
|
9
|
+
link: PreviewLinkRef;
|
10
|
+
target: PreviewLinkTarget;
|
11
|
+
pending: boolean;
|
12
|
+
}>;
|
13
|
+
type RefDropdownMenuProviderProps = PropsWithChildren<{
|
14
|
+
onLookup?: PreviewLookup;
|
15
|
+
}>;
|
16
|
+
export declare const RefDropdownMenu: {
|
17
|
+
Provider: ({ children, onLookup }: RefDropdownMenuProviderProps) => React.JSX.Element;
|
18
|
+
};
|
19
|
+
export { useRefDropdownMenu };
|
20
|
+
export type { RefDropdownMenuProviderProps, RefDropdownMenuValue };
|
21
|
+
//# sourceMappingURL=RefDropdownMenu.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RefDropdownMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/RefDropdownMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4D,MAAM,OAAO,CAAC;AAMhH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOnG,KAAK,oBAAoB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAG3G,QAAA,MAAuC,kBAAkB;UAHb,cAAc;YAAU,iBAAiB;aAAW,OAAO;EAGgB,CAAC;AAExH,KAAK,4BAA4B,GAAG,iBAAiB,CAAC;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AA+CpF,eAAO,MAAM,eAAe;uCA7C6B,4BAA4B;CA+CpF,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,YAAY,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
2
|
-
import { type PreviewLinkRef, type PreviewLinkTarget, type PreviewLookup } from '
|
2
|
+
import { type PreviewLinkRef, type PreviewLinkTarget, type PreviewLookup } from '../../extensions';
|
3
3
|
type RefPopoverValue = Partial<{
|
4
4
|
link: PreviewLinkRef;
|
5
5
|
target: PreviewLinkTarget;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RefPopover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/RefPopover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4D,MAAM,OAAO,CAAC;AAMhH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnG,KAAK,eAAe,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAGtG,QAAA,MAAkC,aAAa;UAHR,cAAc;YAAU,iBAAiB;aAAW,OAAO;EAGA,CAAC;AAEnG,KAAK,uBAAuB,GAAG,iBAAiB,CAAC;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AA+C/E,eAAO,MAAM,UAAU;uCA7C6B,uBAAuB;CA+C1E,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,YAAY,EAAE,uBAAuB,EAAE,eAAe,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { type ThemeExtensionsOptions } from './extensions';
|
1
2
|
/**
|
2
3
|
* CodeMirror content width.
|
3
4
|
* 40rem = 640px. Corresponds to initial plank width (Google docs, Stashpad, etc.)
|
@@ -5,11 +6,7 @@
|
|
5
6
|
* NOTE: Max width - 4rem = 2rem left/right margin (or 2rem gutter plus 1rem left/right margin).
|
6
7
|
*/
|
7
8
|
export declare const editorWidth = "!mli-auto is-full max-is-[min(50rem,100%-4rem)]";
|
8
|
-
export declare const
|
9
|
-
/**
|
10
|
-
* Margin for numbers.
|
11
|
-
*/
|
12
|
-
export declare const editorFullWidth: string;
|
9
|
+
export declare const editorSlots: ThemeExtensionsOptions['slots'];
|
13
10
|
export declare const editorGutter: import("@codemirror/state").Extension;
|
14
11
|
export declare const editorMonospace: import("@codemirror/state").Extension;
|
15
12
|
export declare const editorWithToolbarLayout = "grid grid-cols-1 grid-rows-[min-content_1fr] data-[toolbar=disabled]:grid-rows-[1fr] justify-center content-start overflow-hidden";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,oDAAoD,CAAC;AAE7E,eAAO,MAAM,WAAW,EAAE,sBAAsB,CAAC,OAAO,CAOvD,CAAC;AAEF,eAAO,MAAM,YAAY,uCAIvB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAI1B,CAAC;AAEH,eAAO,MAAM,uBAAuB,sIACiG,CAAC;AAEtI,eAAO,MAAM,gCAAgC,GAAI,OAAO,MAAM,WAI3D,CAAC;AAEJ,eAAO,MAAM,iCAAiC,GAAI,OAAO,MAAM,WAI5D,CAAC"}
|
@@ -2,5 +2,8 @@ import { type Extension } from '@codemirror/state';
|
|
2
2
|
export type AnnotationOptions = {
|
3
3
|
match?: RegExp;
|
4
4
|
};
|
5
|
-
|
5
|
+
/**
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
export declare const annotations: ({ match }?: AnnotationOptions) => Extension;
|
6
9
|
//# sourceMappingURL=annotations.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../src/extensions/annotations.ts"],"names":[],"mappings":"AAIA,OAAO,
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../src/extensions/annotations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAKpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,YAAW,iBAAsB,KAAG,SAsC/D,CAAC"}
|
@@ -2,7 +2,6 @@ import { type CompletionSource, type Completion } from '@codemirror/autocomplete
|
|
2
2
|
import { type Extension } from '@codemirror/state';
|
3
3
|
export type AutocompleteResult = Completion;
|
4
4
|
export type AutocompleteOptions = {
|
5
|
-
debug?: boolean;
|
6
5
|
activateOnTyping?: boolean;
|
7
6
|
override?: CompletionSource[];
|
8
7
|
onSearch?: (text: string) => Completion[];
|
@@ -10,5 +9,5 @@ export type AutocompleteOptions = {
|
|
10
9
|
/**
|
11
10
|
* Autocomplete extension.
|
12
11
|
*/
|
13
|
-
export declare const autocomplete: ({
|
12
|
+
export declare const autocomplete: ({ activateOnTyping, override, onSearch }?: AutocompleteOptions) => Extension;
|
14
13
|
//# sourceMappingURL=autocomplete.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/extensions/autocomplete.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAGhB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/extensions/autocomplete.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAGhB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,EAAE,CAAC;CAC3C,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,2CAA0C,mBAAwB,KAAG,SAqCjG,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,uBAAuB,CAAC;AAI/B,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,WAAW,EAA+C,KAAK,KAAK,EAAS,MAAM,yBAAyB,CAAC;AACtH,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAgBrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;;;wDAEsD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,uBAAuB,CAAC;AAI/B,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,WAAW,EAA+C,KAAK,KAAK,EAAS,MAAM,yBAAyB,CAAC;AACtH,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAgBrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;;;wDAEsD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDnE,wBAME;AAsBF,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;CAmBpB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAA2D,KAAK,KAAK,EAAe,MAAM,QAAQ,CAAC;AAI1G;;GAEG;AACH,qBAAa,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAS;gBAIN,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IAG5C,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO;
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAA2D,KAAK,KAAK,EAAe,MAAM,QAAQ,CAAC;AAI1G;;GAEG;AACH,qBAAa,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAS;gBAIN,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IAG5C,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAelD,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAatC,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;CAkB1C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"awareness-provider.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/awareness/awareness-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,EAAS,MAAM,aAAa,CAAC;AAIzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAatH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqC;IAEnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IAEtC,OAAO,CAAC,IAAI,CAAC,CAAU;IACvB,OAAO,CAAC,SAAS,CAAC,CAAe;IACjC,OAAO,CAAC,WAAW,CAAC,CAAiB;IAErC,SAAgB,iBAAiB,cAAqB;gBAE1C,MAAM,EAAE,uBAAuB;IAO3C,IAAI;
|
1
|
+
{"version":3,"file":"awareness-provider.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/awareness/awareness-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,EAAS,MAAM,aAAa,CAAC;AAIzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAi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CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAKhC,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,uBAAuB;CAmFhC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { type Extension } from '@codemirror/state';
|
2
2
|
import { type HintOptions } from './hint';
|
3
|
-
import { type FloatingMenuOptions } from './menu';
|
4
3
|
import { type PopupOptions } from './state';
|
5
|
-
export type CommandOptions = Partial<PopupOptions &
|
4
|
+
export type CommandOptions = Partial<PopupOptions & HintOptions>;
|
6
5
|
export declare const command: (options?: CommandOptions) => Extension;
|
7
6
|
//# sourceMappingURL=command.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAOzE,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,YAAY,GAAG,WAAW,CAAC,CAAC;AAEjE,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SAetD,CAAC"}
|
@@ -1,9 +1,21 @@
|
|
1
|
-
import { ViewPlugin, type ViewUpdate } from '@codemirror/view';
|
1
|
+
import { ViewPlugin, type ViewUpdate, WidgetType } from '@codemirror/view';
|
2
2
|
export type HintOptions = {
|
3
3
|
onHint: () => string | undefined;
|
4
4
|
};
|
5
5
|
export declare const hintViewPlugin: ({ onHint }: HintOptions) => ViewPlugin<{
|
6
|
-
|
6
|
+
decorations: import("@codemirror/view").DecorationSet;
|
7
7
|
update(update: ViewUpdate): void;
|
8
8
|
}>;
|
9
|
+
export declare class Hint extends WidgetType {
|
10
|
+
readonly content: string | HTMLElement;
|
11
|
+
constructor(content: string | HTMLElement);
|
12
|
+
toDOM(): HTMLSpanElement;
|
13
|
+
coordsAt(dom: HTMLElement): {
|
14
|
+
left: number;
|
15
|
+
right: number;
|
16
|
+
top: number;
|
17
|
+
bottom: number;
|
18
|
+
} | null;
|
19
|
+
ignoreEvent(): boolean;
|
20
|
+
}
|
9
21
|
//# sourceMappingURL=hint.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hint.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/hint.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,UAAU,EAAE,KAAK,UAAU,
|
1
|
+
{"version":3,"file":"hint.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/hint.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,UAAU,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAKnG,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,YAAY,WAAW;;mBAIjC,UAAU;EAuB5B,CAAC;AAEJ,qBAAa,IAAK,SAAQ,UAAU;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;gBAA7B,OAAO,EAAE,MAAM,GAAG,WAAW;IAIlD,KAAK,IAAI,eAAe;IAcf,QAAQ,CAAC,GAAG,EAAE,WAAW;;;;;;IAgBzB,WAAW,IAAI,OAAO;CAGhC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { type EditorView, ViewPlugin, type ViewUpdate } from '@codemirror/view';
|
2
|
-
import { type RenderCallback } from '../../types';
|
3
2
|
export type FloatingMenuOptions = {
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
icon?: string;
|
4
|
+
height?: number;
|
5
|
+
padding?: number;
|
7
6
|
};
|
8
|
-
export declare const floatingMenu: (options
|
9
|
-
button: HTMLElement;
|
7
|
+
export declare const floatingMenu: (options?: FloatingMenuOptions) => ViewPlugin<{
|
10
8
|
view: EditorView;
|
9
|
+
tag: HTMLElement;
|
11
10
|
rafId: number | null;
|
12
11
|
update(update: ViewUpdate): void;
|
13
|
-
scheduleUpdate(): void;
|
14
12
|
updateButtonPosition(): void;
|
13
|
+
scheduleUpdate(): void;
|
15
14
|
destroy(): void;
|
16
|
-
}
|
15
|
+
}>[];
|
17
16
|
//# sourceMappingURL=menu.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/menu.ts"],"names":[],"mappings":"AAIA,OAAO,
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/menu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAIhF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAS,mBAAwB;UAGlD,UAAU;SACX,WAAW;WACT,MAAM,GAAG,IAAI;mBA6BL,UAAU;;;;IAgD9B,CAAC"}
|
@@ -2,7 +2,7 @@ import { StateField } from '@codemirror/state';
|
|
2
2
|
import { type Tooltip } from '@codemirror/view';
|
3
3
|
import { type Action } from './action';
|
4
4
|
import { type RenderCallback } from '../../types';
|
5
|
-
export declare const commandConfig: import("@codemirror/state").Facet<Partial<PopupOptions & import("./
|
5
|
+
export declare const commandConfig: import("@codemirror/state").Facet<Partial<PopupOptions & import("./hint").HintOptions>, Partial<PopupOptions & import("./hint").HintOptions>>;
|
6
6
|
export type PopupOptions = {
|
7
7
|
renderDialog: RenderCallback<{
|
8
8
|
onAction: (action?: Action) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAgC,KAAK,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAe,KAAK,MAAM,EAAc,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,eAAO,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAgC,KAAK,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAe,KAAK,MAAM,EAAc,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,eAAO,MAAM,aAAa,+IAAqC,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE,cAAc,CAAC;QAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC,CAAC;CACvE,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,0BAmEvB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
export type TypeaheadContext = {
|
3
|
+
line: string;
|
4
|
+
};
|
5
|
+
export type TypeaheadOptions = {
|
6
|
+
onComplete?: (context: TypeaheadContext) => string | undefined;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* CodeMirror extension for typeahead completion.
|
10
|
+
*/
|
11
|
+
export declare const typeahead: ({ onComplete }?: TypeaheadOptions) => Extension;
|
12
|
+
/**
|
13
|
+
* Util to match current line to a static list of completions.
|
14
|
+
*/
|
15
|
+
export declare const staticCompletion: (completions: string[], defaultCompletion?: string) => ({ line }: TypeaheadContext) => string | undefined;
|
16
|
+
export declare const matchCompletion: (completion: string, word: string) => string | undefined;
|
17
|
+
//# sourceMappingURL=typeahead.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/typeahead.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAa3F,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAGhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;CAChE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,iBAAgB,gBAAqB,KAAG,SA4DjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC1B,aAAa,MAAM,EAAE,EAAE,oBAAoB,MAAM,MACjD,UAAU,gBAAgB,uBAe1B,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,MAAM,MAAM,KAAG,MAAM,GAAG,SAI3E,CAAC"}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { type
|
1
|
+
import { type Extension, StateField } from '@codemirror/state';
|
2
2
|
import { type Command, EditorView, type Rect } from '@codemirror/view';
|
3
3
|
import { type CleanupFn } from '@dxos/async';
|
4
|
-
import { type Live } from '@dxos/live-object';
|
5
|
-
import { type EditorToolbarState } from '../components';
|
6
4
|
import { type RenderCallback, type Comment, type Range } from '../types';
|
7
5
|
type CommentState = {
|
8
6
|
comment: Comment;
|
@@ -28,6 +26,7 @@ export declare const setSelection: import("@codemirror/state").StateEffectType<S
|
|
28
26
|
* The ranges are tracked as Automerge cursors from which the absolute indexed ranges can be computed.
|
29
27
|
*/
|
30
28
|
export declare const commentsState: StateField<CommentsState>;
|
29
|
+
export declare const commentClickedEffect: import("@codemirror/state").StateEffectType<string>;
|
31
30
|
/**
|
32
31
|
* Create comment thread action.
|
33
32
|
*/
|
@@ -86,20 +85,11 @@ export type CommentsOptions = {
|
|
86
85
|
*/
|
87
86
|
export declare const comments: (options?: CommentsOptions) => Extension;
|
88
87
|
export declare const scrollThreadIntoView: (view: EditorView, id: string, center?: boolean) => void;
|
89
|
-
/**
|
90
|
-
* Query the editor state for the active formatting at the selection.
|
91
|
-
*/
|
92
|
-
export declare const selectionOverlapsComment: (state: EditorState) => boolean;
|
93
88
|
export declare const createExternalCommentSync: (id: string, subscribe: (sink: () => void) => CleanupFn, getComments: () => Comment[]) => Extension;
|
94
|
-
export declare const useCommentState: (state: Live<EditorToolbarState>) => Extension;
|
95
89
|
/**
|
96
90
|
* @deprecated This hook will be removed in future versions. Use the new comment sync extension instead.
|
97
91
|
* Update comments state field.
|
98
92
|
*/
|
99
93
|
export declare const useComments: (view: EditorView | null | undefined, id: string, comments?: Comment[]) => void;
|
100
|
-
/**
|
101
|
-
* Hook provides an extension to listen for comment clicks and invoke a handler.
|
102
|
-
*/
|
103
|
-
export declare const useCommentClickListener: (onCommentClick: (commentId: string) => void) => Extension;
|
104
94
|
export {};
|
105
95
|
//# sourceMappingURL=comments.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../src/extensions/comments.ts"],"names":[],"mappings":"AAKA,OAAO,
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../src/extensions/comments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,SAAS,EAAe,UAAU,EAAa,MAAM,mBAAmB,CAAC;AACxG,OAAO,EAGL,KAAK,OAAO,EAEZ,UAAU,EACV,KAAK,IAAI,EAGV,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAKvD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAOzE,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,WAAW;QAA4B,MAAM;cAAY,OAAO,EAAE;EAAK,CAAC;AAErF,eAAO,MAAM,YAAY,6DAAuC,CAAC;AAIjE;;;GAGG;AACH,eAAO,MA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AO,MAAM,WAAW,GAAI,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,MAAM,EAAE,WAAW,OAAO,EAAE,SAYhG,CAAC"}
|
@@ -22,6 +22,7 @@ export type BasicExtensionsOptions = {
|
|
22
22
|
indentWithTab?: boolean;
|
23
23
|
keymap?: null | 'default' | 'standard';
|
24
24
|
lineNumbers?: boolean;
|
25
|
+
/** If false then do not set a max-width or side margin on the editor. */
|
25
26
|
lineWrapping?: boolean;
|
26
27
|
placeholder?: string;
|
27
28
|
/** If true user cannot edit the text, but they can still select and copy it. */
|
@@ -40,6 +41,9 @@ export type ThemeExtensionsOptions = {
|
|
40
41
|
editor?: {
|
41
42
|
className?: string;
|
42
43
|
};
|
44
|
+
scroll?: {
|
45
|
+
className?: string;
|
46
|
+
};
|
43
47
|
content?: {
|
44
48
|
className?: string;
|
45
49
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/factories.ts"],"names":[],"mappings":"AAQA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/factories.ts"],"names":[],"mappings":"AAQA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAmBhE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOhD,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,WAAW,CAAC;AAM3D,eAAO,MAAM,cAAc,WAA4E,CAAC;AAExG;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EA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AAG,SAmBhC,CAAC;AAMF,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC5B,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,+BAA+B,mBAAmB,CAAC,CAAC,CAAC,KAAG,SAAS,EA2BxG,CAAC"}
|
@@ -10,10 +10,12 @@ export * from './dnd';
|
|
10
10
|
export * from './factories';
|
11
11
|
export * from './focus';
|
12
12
|
export * from './folding';
|
13
|
+
export * from './json';
|
13
14
|
export * from './listener';
|
14
15
|
export * from './markdown';
|
15
16
|
export * from './mention';
|
16
17
|
export * from './modes';
|
18
|
+
export * from './outliner';
|
17
19
|
export * from './preview';
|
18
20
|
export * from './selection';
|
19
21
|
export * from './typewriter';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
import { type JsonSchemaType } from '@dxos/echo-schema';
|
3
|
+
export type JsonExtensionsOptions = {
|
4
|
+
schema?: JsonSchemaType;
|
5
|
+
};
|
6
|
+
export declare const createJsonExtensions: ({ schema }?: JsonExtensionsOptions) => Extension;
|
7
|
+
//# sourceMappingURL=json.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/extensions/json.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAY,qBAA0B,KAAG,SAS7E,CAAC"}
|
@@ -9,4 +9,4 @@ export type EditorActionPayload = {
|
|
9
9
|
export type EditorAction = Action<MenuActionProperties & EditorActionPayload>;
|
10
10
|
export type EditorPayloadHandler = (view: EditorView, payload: EditorActionPayload) => void;
|
11
11
|
export declare const processEditorPayload: EditorPayloadHandler;
|
12
|
-
//# sourceMappingURL=
|
12
|
+
//# sourceMappingURL=action.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/action.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAsBhE,MAAM,MAAM,WAAW,GACnB,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,aAAa,GACb,cAAc,GACd,WAAW,GACX,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,OAAO,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,oBAAoB,GAAG,mBAAmB,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;AAE5F,eAAO,MAAM,oBAAoB,EAAE,oBAyDlC,CAAC"}
|
@@ -2,6 +2,7 @@ import { type Extension } from '@codemirror/state';
|
|
2
2
|
import { type ThemeMode } from '@dxos/react-ui';
|
3
3
|
export type MarkdownBundleOptions = {
|
4
4
|
themeMode?: ThemeMode;
|
5
|
+
indentWithTab?: boolean;
|
5
6
|
};
|
6
7
|
/**
|
7
8
|
* Creates markdown extensions.
|
@@ -11,5 +12,5 @@ export type MarkdownBundleOptions = {
|
|
11
12
|
* https://codemirror.net/docs/community
|
12
13
|
* https://codemirror.net/docs/ref/#codemirror.basicSetup
|
13
14
|
*/
|
14
|
-
export declare const createMarkdownExtensions: (
|
15
|
+
export declare const createMarkdownExtensions: (options?: MarkdownBundleOptions) => Extension[];
|
15
16
|
//# sourceMappingURL=bundle.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/bundle.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/bundle.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,UAAS,qBAA0B,KAAG,SAAS,EAyCvF,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './
|
1
|
+
export * from './action';
|
2
2
|
export * from './bundle';
|
3
3
|
export * from './debug';
|
4
4
|
export * from './decorate';
|
@@ -6,6 +6,5 @@ export * from './formatting';
|
|
6
6
|
export * from './highlight';
|
7
7
|
export * from './image';
|
8
8
|
export * from './link';
|
9
|
-
export * from './outliner';
|
10
9
|
export * from './table';
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,eAAO,MAAM,gBAAgB,
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,eAAO,MAAM,gBAAgB,uCA2H3B,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
import { type Command } from '@codemirror/view';
|
3
|
+
export declare const indentItemMore: Command;
|
4
|
+
export declare const indentItemLess: Command;
|
5
|
+
export declare const moveItemDown: Command;
|
6
|
+
export declare const moveItemUp: Command;
|
7
|
+
export declare const toggleTask: Command;
|
8
|
+
export declare const commands: () => Extension;
|
9
|
+
//# sourceMappingURL=commands.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,kBAAkB,CAAC;AASzE,eAAO,MAAM,cAAc,EAAE,OAa5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAsB5B,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,OA6B1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OA6BxB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,OAmBxB,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,SA+FxB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/editor.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,eAAO,MAAM,MAAM,+CA0IlB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"editor.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/editor.test.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
2
|
+
/**
|
3
|
+
* Outliner extension.
|
4
|
+
* - Stores outline as a standard markdown document with task and list markers.
|
5
|
+
* - Supports continuation lines and rich formatting (with Shift+Enter).
|
6
|
+
* - Constrains editor to outline structure.
|
7
|
+
* - Supports smart cut-and-paste.
|
8
|
+
*/
|
9
|
+
export declare const outliner: () => Extension;
|
10
|
+
//# sourceMappingURL=outliner.d.ts.map
|
@@ -0,0 +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;AA0BvF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,QAAO,SAwB3B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"outliner.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/outliner.test.ts"],"names":[],"mappings":""}
|