@dxos/react-ui-editor 0.8.2 → 0.8.3-main.7f5a14c
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 +936 -274
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +981 -314
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +936 -274
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/EditorToolbar/util.d.ts +2 -2
- package/dist/types/src/components/Popover/CommandMenu.d.ts +34 -0
- package/dist/types/src/components/Popover/CommandMenu.d.ts.map +1 -0
- package/dist/types/src/components/Popover/RefPopover.d.ts +19 -6
- package/dist/types/src/components/Popover/RefPopover.d.ts.map +1 -1
- package/dist/types/src/components/Popover/index.d.ts +1 -0
- package/dist/types/src/components/Popover/index.d.ts.map +1 -1
- package/dist/types/src/defaults.d.ts.map +1 -1
- package/dist/types/src/extensions/command/menu.d.ts +40 -0
- package/dist/types/src/extensions/command/menu.d.ts.map +1 -1
- package/dist/types/src/extensions/factories.d.ts +1 -0
- package/dist/types/src/extensions/factories.d.ts.map +1 -1
- package/dist/types/src/extensions/hashtag.d.ts +3 -0
- package/dist/types/src/extensions/hashtag.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/types/src/extensions/markdown/debug.d.ts +2 -2
- package/dist/types/src/extensions/markdown/debug.d.ts.map +1 -1
- package/dist/types/src/extensions/outliner/outliner.d.ts +1 -3
- package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -1
- package/dist/types/src/extensions/placeholder.d.ts +4 -0
- package/dist/types/src/extensions/placeholder.d.ts.map +1 -0
- package/dist/types/src/extensions/preview/preview.d.ts.map +1 -1
- package/dist/types/src/hooks/useTextEditor.d.ts +8 -9
- package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
- package/dist/types/src/stories/Command.stories.d.ts +1 -1
- package/dist/types/src/stories/Command.stories.d.ts.map +1 -1
- package/dist/types/src/stories/CommandMenu.stories.d.ts +12 -0
- package/dist/types/src/stories/CommandMenu.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Comments.stories.d.ts +1 -1
- package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Experimental.stories.d.ts +1 -1
- package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Markdown.stories.d.ts +1 -1
- package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Preview.stories.d.ts +1 -1
- package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
- package/dist/types/src/stories/TextEditor.stories.d.ts +1 -1
- package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
- package/dist/types/src/stories/components/EditorStory.d.ts +43 -0
- package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -0
- package/dist/types/src/stories/components/index.d.ts +3 -0
- package/dist/types/src/stories/components/index.d.ts.map +1 -0
- package/dist/types/src/stories/{util.d.ts → components/util.d.ts} +3 -18
- package/dist/types/src/stories/components/util.d.ts.map +1 -0
- package/package.json +31 -27
- package/src/components/Popover/CommandMenu.tsx +279 -0
- package/src/components/Popover/RefPopover.tsx +44 -22
- package/src/components/Popover/index.ts +1 -0
- package/src/defaults.ts +1 -0
- package/src/extensions/command/menu.ts +334 -23
- package/src/extensions/factories.ts +4 -1
- package/src/extensions/hashtag.tsx +68 -0
- package/src/extensions/index.ts +2 -0
- package/src/extensions/json.ts +2 -1
- package/src/extensions/markdown/debug.ts +2 -2
- package/src/extensions/outliner/outliner.ts +6 -8
- package/src/extensions/placeholder.ts +82 -0
- package/src/extensions/preview/preview.ts +3 -6
- package/src/hooks/useTextEditor.ts +11 -12
- package/src/stories/Command.stories.tsx +1 -1
- package/src/stories/CommandMenu.stories.tsx +143 -0
- package/src/stories/Comments.stories.tsx +2 -2
- package/src/stories/Experimental.stories.tsx +2 -2
- package/src/stories/Markdown.stories.tsx +2 -2
- package/src/stories/Outliner.stories.tsx +19 -7
- package/src/stories/Preview.stories.tsx +34 -32
- package/src/stories/TextEditor.stories.tsx +3 -3
- package/src/stories/components/EditorStory.tsx +135 -0
- package/src/stories/components/index.ts +6 -0
- package/src/stories/{util.tsx → components/util.tsx} +5 -100
- package/dist/types/src/stories/util.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RefPopover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/RefPopover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"RefPopover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/RefPopover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EACZ,KAAK,iBAAiB,EAOvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAInG,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC,CAAC;AAEH,eAAO,MAAM,UAAU;YANb,OAAO;WACR,OAAO;mBACC,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;iBACzB,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;;;yCAsB/C,CAAC;AAGF,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,oBAAoB,GAAG,iBAAiB,CAAC;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AAE5E,QAAA,MAAM,eAAe,GAAI,wBAAwB,oBAAoB,sBAiCpE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC;AAE1C,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,CAAC"}
|
@@ -1 +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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
@@ -1 +1 @@
|
|
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,
|
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,uCAKvB,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"}
|
@@ -1,7 +1,47 @@
|
|
1
|
+
import { StateField } from '@codemirror/state';
|
2
|
+
import { EditorView } from '@codemirror/view';
|
3
|
+
import { type RefObject } from 'react';
|
4
|
+
import { type DxRefTag, type DxRefTagActivate } from '@dxos/lit-ui';
|
5
|
+
import { type MaybePromise } from '@dxos/util';
|
6
|
+
import { type CommandMenuGroup, type CommandMenuItem } from '../../components';
|
7
|
+
import { type Range } from '../../types';
|
8
|
+
import { multilinePlaceholder } from '../placeholder';
|
1
9
|
export type FloatingMenuOptions = {
|
2
10
|
icon?: string;
|
3
11
|
height?: number;
|
4
12
|
padding?: number;
|
5
13
|
};
|
6
14
|
export declare const floatingMenu: (options?: FloatingMenuOptions) => import("@codemirror/state").Extension[];
|
15
|
+
type CommandState = {
|
16
|
+
trigger: string;
|
17
|
+
range: Range;
|
18
|
+
};
|
19
|
+
export declare const commandRangeEffect: import("@codemirror/state").StateEffectType<CommandState | null>;
|
20
|
+
export type CommandMenuOptions = {
|
21
|
+
trigger: string | string[];
|
22
|
+
placeholder?: Parameters<typeof multilinePlaceholder>[0];
|
23
|
+
onArrowDown?: () => void;
|
24
|
+
onArrowUp?: () => void;
|
25
|
+
onDeactivate?: () => void;
|
26
|
+
onEnter?: () => void;
|
27
|
+
onTextChange?: (trigger: string, text: string) => void;
|
28
|
+
};
|
29
|
+
export declare const commandMenu: (options: CommandMenuOptions) => (import("@codemirror/state").Extension | StateField<CommandState | null>)[];
|
30
|
+
export type UseCommandMenuOptions = {
|
31
|
+
viewRef: RefObject<EditorView | undefined>;
|
32
|
+
trigger: string | string[];
|
33
|
+
placeholder?: Parameters<typeof multilinePlaceholder>[0];
|
34
|
+
getGroups: (trigger: string, query?: string) => MaybePromise<CommandMenuGroup[]>;
|
35
|
+
};
|
36
|
+
export declare const useCommandMenu: ({ viewRef, trigger, placeholder, getGroups }: UseCommandMenuOptions) => {
|
37
|
+
commandMenu: (import("@codemirror/state").Extension | StateField<CommandState | null>)[];
|
38
|
+
currentItem: string | undefined;
|
39
|
+
groupsRef: import("react").MutableRefObject<CommandMenuGroup[]>;
|
40
|
+
ref: import("react").MutableRefObject<DxRefTag | null>;
|
41
|
+
open: boolean;
|
42
|
+
onActivate: (event: DxRefTagActivate) => Promise<void>;
|
43
|
+
onOpenChange: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
44
|
+
onSelect: (item: CommandMenuItem) => void;
|
45
|
+
};
|
46
|
+
export {};
|
7
47
|
//# sourceMappingURL=menu.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/menu.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/command/menu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,UAAU,EAAqB,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAuE,MAAM,kBAAkB,CAAC;AACnH,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,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CAAC,CAAC,CAAC;IACzD,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;CAClF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,8CAA8C,qBAAqB;;;;;;wBAwBhF,gBAAgB;;qBAeQ,eAAe;CA2DxD,CAAC"}
|
@@ -24,6 +24,7 @@ export type BasicExtensionsOptions = {
|
|
24
24
|
lineNumbers?: boolean;
|
25
25
|
/** If false then do not set a max-width or side margin on the editor. */
|
26
26
|
lineWrapping?: boolean;
|
27
|
+
monospace?: boolean;
|
27
28
|
placeholder?: string;
|
28
29
|
/** If true user cannot edit the text, but they can still select and copy it. */
|
29
30
|
readOnly?: boolean;
|
@@ -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;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;
|
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;AAQhD,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,WAAW,CAAC;AAM3D,eAAO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C;SACpB,CAAC;QACF,OAAO,CAAC,EAAE;YACR,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,CAAC;CACH,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,iFAKnC,sBAA2B,KAAG,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hashtag.d.ts","sourceRoot":"","sources":["../../../../src/extensions/hashtag.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAmCnD,eAAO,MAAM,OAAO,QAAO,SA4B1B,CAAC"}
|
@@ -10,12 +10,14 @@ export * from './dnd';
|
|
10
10
|
export * from './factories';
|
11
11
|
export * from './focus';
|
12
12
|
export * from './folding';
|
13
|
+
export * from './hashtag';
|
13
14
|
export * from './json';
|
14
15
|
export * from './listener';
|
15
16
|
export * from './markdown';
|
16
17
|
export * from './mention';
|
17
18
|
export * from './modes';
|
18
19
|
export * from './outliner';
|
20
|
+
export * from './placeholder';
|
19
21
|
export * from './preview';
|
20
22
|
export * from './selection';
|
21
23
|
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,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"}
|
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,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,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
@@ -1 +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,
|
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,SAU7E,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { type EditorState,
|
2
|
-
export declare const debugTree: (cb: (tree: DebugNode) => void) =>
|
1
|
+
import { type EditorState, type Extension } from '@codemirror/state';
|
2
|
+
export declare const debugTree: (cb: (tree: DebugNode) => void) => Extension;
|
3
3
|
export type DebugNode = {
|
4
4
|
type: string;
|
5
5
|
from: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/debug.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/debug.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAc,MAAM,mBAAmB,CAAC;AAGjF,eAAO,MAAM,SAAS,GAAI,IAAI,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,KAAG,SAItD,CAAC;AAEL,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,KAAG,SAqBtD,CAAC"}
|
@@ -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;AA0BvF,MAAM,MAAM,aAAa,GAAG
|
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,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAS,aAAkB,KAAG,SAwBtD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"placeholder.d.ts","sourceRoot":"","sources":["../../../../src/extensions/placeholder.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAc,UAAU,EAA0B,MAAM,kBAAkB,CAAC;AA2ClF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,WAAW,CAAC,GAAG,SAAS,CA+BnH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"AAIA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,mBAAmB,CAAC;A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B,KAAG,SAqBtD,CAAC"}
|
@@ -4,14 +4,6 @@ import { type TabsterTypes } from '@fluentui/react-tabster';
|
|
4
4
|
import { type DependencyList, type KeyboardEventHandler, type RefObject } from 'react';
|
5
5
|
import { type MaybeProvider } from '@dxos/util';
|
6
6
|
import { type EditorSelection } from '../extensions';
|
7
|
-
export type UseTextEditor = {
|
8
|
-
parentRef: RefObject<HTMLDivElement>;
|
9
|
-
view?: EditorView;
|
10
|
-
focusAttributes?: TabsterTypes.TabsterDOMAttribute & {
|
11
|
-
tabIndex: 0;
|
12
|
-
onKeyUp: KeyboardEventHandler<HTMLDivElement>;
|
13
|
-
};
|
14
|
-
};
|
15
7
|
export type CursorInfo = {
|
16
8
|
from: number;
|
17
9
|
to: number;
|
@@ -20,11 +12,18 @@ export type CursorInfo = {
|
|
20
12
|
length: number;
|
21
13
|
after?: string;
|
22
14
|
};
|
15
|
+
export type UseTextEditor = {
|
16
|
+
parentRef: RefObject<HTMLDivElement>;
|
17
|
+
view?: EditorView;
|
18
|
+
focusAttributes?: TabsterTypes.TabsterDOMAttribute & {
|
19
|
+
tabIndex: 0;
|
20
|
+
onKeyUp: KeyboardEventHandler<HTMLDivElement>;
|
21
|
+
};
|
22
|
+
};
|
23
23
|
export type UseTextEditorProps = Pick<EditorStateConfig, 'extensions'> & {
|
24
24
|
id?: string;
|
25
25
|
doc?: Text;
|
26
26
|
initialValue?: string;
|
27
|
-
className?: string;
|
28
27
|
autoFocus?: boolean;
|
29
28
|
scrollTo?: number;
|
30
29
|
selection?: EditorSelection;
|
@@ -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,EAAqB,KAAK,YAAY,EAAE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AAG,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,aA+HF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Command.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Command.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Command.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Command.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAsD3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA0BlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import '@dxos-theme';
|
2
|
+
import { type StoryObj } from '@storybook/react';
|
3
|
+
import { type Meta } from '@dxos/storybook-utils';
|
4
|
+
import { type UseCommandMenuOptions } from '../extensions';
|
5
|
+
type Args = Omit<UseCommandMenuOptions, 'viewRef'> & {
|
6
|
+
text: string;
|
7
|
+
};
|
8
|
+
declare const meta: Meta<Args>;
|
9
|
+
export default meta;
|
10
|
+
export declare const Slash: StoryObj<Args>;
|
11
|
+
export declare const Link: StoryObj<Args>;
|
12
|
+
//# sourceMappingURL=CommandMenu.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CommandMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/CommandMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOjD,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAczE,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAK3E,KAAK,IAAI,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AA+BtE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAKpB,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,IAAI,CAShC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,QAAQ,CAAC,IAAI,CA0D/B,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import React from 'react';
|
3
3
|
import { type Meta } from '@dxos/storybook-utils';
|
4
|
-
import { EditorStory } from './
|
4
|
+
import { EditorStory } from './components';
|
5
5
|
declare const meta: Meta<typeof EditorStory>;
|
6
6
|
export default meta;
|
7
7
|
export declare const Comments: {
|
@@ -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,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAqB,MAAM,
|
1
|
+
{"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAqB,MAAM,cAAc,CAAC;AAM9D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,QAAQ;;CAmCpB,CAAC;AAyBF,eAAO,MAAM,WAAW;;CAIvB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import React from 'react';
|
3
3
|
import { type Meta } from '@dxos/storybook-utils';
|
4
|
-
import { EditorStory } from './
|
4
|
+
import { EditorStory } from './components';
|
5
5
|
declare const meta: Meta<typeof EditorStory>;
|
6
6
|
export default meta;
|
7
7
|
export declare const Typewriter: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAW,MAAM,
|
1
|
+
{"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAW,MAAM,cAAc,CAAC;AAIpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAQpB,eAAO,MAAM,UAAU;;CAOtB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAqBjB,CAAC;AAMF,eAAO,MAAM,GAAG;;CAaf,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import React from 'react';
|
3
3
|
import { type Meta } from '@dxos/storybook-utils';
|
4
|
-
import { EditorStory } from './
|
4
|
+
import { EditorStory } from './components';
|
5
5
|
declare const meta: Meta<typeof EditorStory>;
|
6
6
|
export default meta;
|
7
7
|
export declare const Default: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Markdown.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAiE,MAAM,
|
1
|
+
{"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Markdown.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAiE,MAAM,cAAc,CAAC;AAI1G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAEF,eAAO,MAAM,UAAU;;CAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAOjB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAMF,eAAO,MAAM,WAAW;;CAEvB,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAIpB,CAAC;AAEF,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAWxB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Outliner.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Outliner.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"Outliner.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Outliner.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAOzE,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAwCF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAK1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;CAajB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAalB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAgBxB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import React from 'react';
|
3
3
|
import { type Meta } from '@dxos/storybook-utils';
|
4
|
-
import { EditorStory } from './
|
4
|
+
import { EditorStory } from './components';
|
5
5
|
declare const meta: Meta<typeof EditorStory>;
|
6
6
|
export default meta;
|
7
7
|
export declare const Default: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Preview.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Preview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Preview.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Preview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAgG3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO;;CA+BnB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '@dxos-theme';
|
2
2
|
import React from 'react';
|
3
3
|
import { type Meta } from '@dxos/storybook-utils';
|
4
|
-
import { EditorStory } from './
|
4
|
+
import { EditorStory } from './components';
|
5
5
|
declare const meta: Meta<typeof EditorStory>;
|
6
6
|
export default meta;
|
7
7
|
export declare const Default: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/TextEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EACL,WAAW,EAWZ,MAAM,
|
1
|
+
{"version":3,"file":"TextEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/TextEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EACL,WAAW,EAWZ,MAAM,cAAc,CAAC;AAgBtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAExB,CAAC;AAMF,eAAO,MAAM,GAAG;;CAOf,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAgBpB,CAAC;AAMF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAMF,eAAO,MAAM,SAAS;;CAUrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAI/B,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAepB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAQtB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAcxB,CAAC;AAQF,eAAO,MAAM,SAAS;;CAYrB,CAAC;AAMF,eAAO,MAAM,OAAO;;CAWnB,CAAC;AAMF,eAAO,MAAM,MAAM;;CAQlB,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { type EditorView } from '@codemirror/view';
|
2
|
+
import React, { type ReactNode } from 'react';
|
3
|
+
import { Expando } from '@dxos/echo-schema';
|
4
|
+
import { type ThemeExtensionsOptions } from '../../extensions';
|
5
|
+
import { type UseTextEditorProps } from '../../hooks';
|
6
|
+
export type DebugMode = 'raw' | 'tree' | 'raw+tree';
|
7
|
+
export type StoryProps = Pick<UseTextEditorProps, 'scrollTo' | 'selection' | 'extensions'> & Pick<ThemeExtensionsOptions, 'slots'> & {
|
8
|
+
id?: string;
|
9
|
+
debug?: DebugMode;
|
10
|
+
debugCustom?: (view: EditorView) => ReactNode;
|
11
|
+
text?: string;
|
12
|
+
object?: Expando;
|
13
|
+
readOnly?: boolean;
|
14
|
+
placeholder?: string;
|
15
|
+
lineNumbers?: boolean;
|
16
|
+
onReady?: (view: EditorView) => void;
|
17
|
+
};
|
18
|
+
export declare const EditorStory: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
|
19
|
+
id?: string;
|
20
|
+
debug?: DebugMode;
|
21
|
+
debugCustom?: (view: EditorView) => ReactNode;
|
22
|
+
text?: string;
|
23
|
+
object?: Expando;
|
24
|
+
readOnly?: boolean;
|
25
|
+
placeholder?: string;
|
26
|
+
lineNumbers?: boolean;
|
27
|
+
onReady?: (view: EditorView) => void;
|
28
|
+
} & React.RefAttributes<EditorView | undefined>>;
|
29
|
+
/**
|
30
|
+
* Default story component.
|
31
|
+
*/
|
32
|
+
export declare const EditorComponent: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
|
33
|
+
id?: string;
|
34
|
+
debug?: DebugMode;
|
35
|
+
debugCustom?: (view: EditorView) => ReactNode;
|
36
|
+
text?: string;
|
37
|
+
object?: Expando;
|
38
|
+
readOnly?: boolean;
|
39
|
+
placeholder?: string;
|
40
|
+
lineNumbers?: boolean;
|
41
|
+
onReady?: (view: EditorView) => void;
|
42
|
+
} & React.RefAttributes<EditorView | undefined>>;
|
43
|
+
//# sourceMappingURL=EditorStory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EditorStory.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/EditorStory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AAE7G,OAAO,EAA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,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
@@ -1,9 +1,6 @@
|
|
1
1
|
import { type Completion } from '@codemirror/autocomplete';
|
2
2
|
import { type Extension } from '@codemirror/state';
|
3
|
-
import { type
|
4
|
-
import React, { type ReactNode } from 'react';
|
5
|
-
import { type EditorSelectionState, type ThemeExtensionsOptions } from '../extensions';
|
6
|
-
import { type UseTextEditorProps } from '../hooks';
|
3
|
+
import { type EditorSelectionState } from '../../extensions';
|
7
4
|
export declare const num: () => string;
|
8
5
|
export declare const img = "";
|
9
6
|
export declare const code: string;
|
@@ -26,10 +23,10 @@ export declare const content: {
|
|
26
23
|
export declare const text: string;
|
27
24
|
export declare const links: Completion[];
|
28
25
|
export declare const names: string[];
|
29
|
-
export declare const renderLinkTooltip: import("
|
26
|
+
export declare const renderLinkTooltip: import("../..").RenderCallback<{
|
30
27
|
url: string;
|
31
28
|
}>;
|
32
|
-
export declare const renderLinkButton: import("
|
29
|
+
export declare const renderLinkButton: import("../..").RenderCallback<{
|
33
30
|
url: string;
|
34
31
|
}>;
|
35
32
|
export declare const defaultExtensions: Extension[];
|
@@ -38,16 +35,4 @@ export declare const longText: string;
|
|
38
35
|
export declare const largeWithImages: string;
|
39
36
|
export declare const headings: string;
|
40
37
|
export declare const global: Map<string, EditorSelectionState>;
|
41
|
-
export type DebugMode = 'raw' | 'tree' | 'raw+tree';
|
42
|
-
export type StoryProps = {
|
43
|
-
id?: string;
|
44
|
-
debug?: DebugMode;
|
45
|
-
debugCustom?: (view: EditorView) => ReactNode;
|
46
|
-
text?: string;
|
47
|
-
readOnly?: boolean;
|
48
|
-
placeholder?: string;
|
49
|
-
lineNumbers?: boolean;
|
50
|
-
onReady?: (view: EditorView) => void;
|
51
|
-
} & Pick<UseTextEditorProps, 'scrollTo' | 'selection' | 'extensions'> & Pick<ThemeExtensionsOptions, 'slots'>;
|
52
|
-
export declare const EditorStory: ({ id, debug, debugCustom, text, readOnly, placeholder, lineNumbers, scrollTo, selection, extensions, slots, onReady, }: StoryProps) => React.JSX.Element;
|
53
38
|
//# sourceMappingURL=util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/util.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnD,OAAO,EACL,KAAK,oBAAoB,EAO1B,MAAM,kBAAkB,CAAC;AAI1B,eAAO,MAAM,GAAG,cAAiE,CAAC;AAElF,eAAO,MAAM,GAAG,yDAAyD,CAAC;AAE1E,eAAO,MAAM,IAAI,QAOhB,CAAC;AAGF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CA+FnB,CAAC;AAGF,eAAO,MAAM,IAAI,QAwBhB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAAU,EAM7B,CAAC;AAEF,eAAO,MAAM,KAAK,UAA4E,CAAC;AAe/F,eAAO,MAAM,iBAAiB;SAVD,MAAM;EAUyB,CAAC;AAU7D,eAAO,MAAM,gBAAgB;SARD,MAAM;EAQwB,CAAC;AAG3D,eAAO,MAAM,iBAAiB,EAAE,SAAS,EAIxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,EAOpC,CAAC;AAGF,eAAO,MAAM,QAAQ,QAEN,CAAC;AAEhB,eAAO,MAAM,eAAe,QAGb,CAAC;AAEhB,eAAO,MAAM,QAAQ,QAIpB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAA0C,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dxos/react-ui-editor",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.3-main.7f5a14c",
|
4
4
|
"description": "Document editing experience within a DXOS shell.",
|
5
5
|
"homepage": "https://dxos.org",
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
@@ -59,20 +59,21 @@
|
|
59
59
|
"lodash.merge": "^4.6.2",
|
60
60
|
"lodash.sortby": "^4.7.0",
|
61
61
|
"style-mod": "^4.1.0",
|
62
|
-
"@dxos/
|
63
|
-
"@dxos/
|
64
|
-
"@dxos/context": "0.8.
|
65
|
-
"@dxos/
|
66
|
-
"@dxos/
|
67
|
-
"@dxos/
|
68
|
-
"@dxos/invariant": "0.8.
|
69
|
-
"@dxos/lit-ui": "0.8.
|
70
|
-
"@dxos/
|
71
|
-
"@dxos/
|
72
|
-
"@dxos/
|
73
|
-
"@dxos/
|
74
|
-
"@dxos/react-
|
75
|
-
"@dxos/
|
62
|
+
"@dxos/app-graph": "0.8.3-main.7f5a14c",
|
63
|
+
"@dxos/async": "0.8.3-main.7f5a14c",
|
64
|
+
"@dxos/context": "0.8.3-main.7f5a14c",
|
65
|
+
"@dxos/debug": "0.8.3-main.7f5a14c",
|
66
|
+
"@dxos/echo-schema": "0.8.3-main.7f5a14c",
|
67
|
+
"@dxos/display-name": "0.8.3-main.7f5a14c",
|
68
|
+
"@dxos/invariant": "0.8.3-main.7f5a14c",
|
69
|
+
"@dxos/lit-ui": "0.8.3-main.7f5a14c",
|
70
|
+
"@dxos/live-object": "0.8.3-main.7f5a14c",
|
71
|
+
"@dxos/log": "0.8.3-main.7f5a14c",
|
72
|
+
"@dxos/protocols": "0.8.3-main.7f5a14c",
|
73
|
+
"@dxos/react-hooks": "0.8.3-main.7f5a14c",
|
74
|
+
"@dxos/react-ui-menu": "0.8.3-main.7f5a14c",
|
75
|
+
"@dxos/react-ui-stack": "0.8.3-main.7f5a14c",
|
76
|
+
"@dxos/util": "0.8.3-main.7f5a14c"
|
76
77
|
},
|
77
78
|
"devDependencies": {
|
78
79
|
"@automerge/automerge": "3.0.0-beta.4",
|
@@ -101,15 +102,18 @@
|
|
101
102
|
"vite": "5.4.7",
|
102
103
|
"vite-plugin-top-level-await": "^1.4.1",
|
103
104
|
"vite-plugin-wasm": "^3.3.0",
|
104
|
-
"@dxos/
|
105
|
-
"@dxos/
|
106
|
-
"@dxos/
|
107
|
-
"@dxos/
|
108
|
-
"@dxos/react-
|
109
|
-
"@dxos/react-ui
|
110
|
-
"@dxos/
|
111
|
-
"@dxos/
|
112
|
-
"@dxos/react-ui-theme": "0.8.
|
105
|
+
"@dxos/config": "0.8.3-main.7f5a14c",
|
106
|
+
"@dxos/echo": "0.8.3-main.7f5a14c",
|
107
|
+
"@dxos/keyboard": "0.8.3-main.7f5a14c",
|
108
|
+
"@dxos/random": "0.8.3-main.7f5a14c",
|
109
|
+
"@dxos/react-client": "0.8.3-main.7f5a14c",
|
110
|
+
"@dxos/react-ui": "0.8.3-main.7f5a14c",
|
111
|
+
"@dxos/react-ui-attention": "0.8.3-main.7f5a14c",
|
112
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.3-main.7f5a14c",
|
113
|
+
"@dxos/react-ui-theme": "0.8.3-main.7f5a14c",
|
114
|
+
"@dxos/echo-signals": "0.8.3-main.7f5a14c",
|
115
|
+
"@dxos/storybook-utils": "0.8.3-main.7f5a14c",
|
116
|
+
"@dxos/schema": "0.8.3-main.7f5a14c"
|
113
117
|
},
|
114
118
|
"peerDependencies": {
|
115
119
|
"@effect-rx/rx-react": "^0.34.1",
|
@@ -118,9 +122,9 @@
|
|
118
122
|
"effect": "^3.13.3",
|
119
123
|
"react": "~18.2.0",
|
120
124
|
"react-dom": "~18.2.0",
|
121
|
-
"@dxos/react-ui": "0.8.
|
122
|
-
"@dxos/react-client": "0.8.
|
123
|
-
"@dxos/react-ui
|
125
|
+
"@dxos/react-ui-theme": "0.8.3-main.7f5a14c",
|
126
|
+
"@dxos/react-client": "0.8.3-main.7f5a14c",
|
127
|
+
"@dxos/react-ui": "0.8.3-main.7f5a14c"
|
124
128
|
},
|
125
129
|
"publishConfig": {
|
126
130
|
"access": "public"
|