@dxos/react-ui-editor 0.3.9-next.7522f7a → 0.3.9
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 +930 -811
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/automerge/automerge-plugin/PatchSemaphore.d.ts +2 -2
- package/dist/types/src/automerge/automerge-plugin/PatchSemaphore.d.ts.map +1 -1
- package/dist/types/src/automerge/automerge-plugin/codeMirrorToAm.d.ts +2 -2
- package/dist/types/src/automerge/automerge-plugin/codeMirrorToAm.d.ts.map +1 -1
- package/dist/types/src/automerge/automerge-plugin/handle.d.ts +9 -0
- package/dist/types/src/automerge/automerge-plugin/handle.d.ts.map +1 -0
- package/dist/types/src/automerge/automerge-plugin/index.d.ts +2 -2
- package/dist/types/src/automerge/automerge-plugin/index.d.ts.map +1 -1
- package/dist/types/src/automerge/automerge-plugin/plugin.d.ts +6 -5
- package/dist/types/src/automerge/automerge-plugin/plugin.d.ts.map +1 -1
- package/dist/types/src/automerge/automerge.stories.d.ts +2 -1
- package/dist/types/src/automerge/automerge.stories.d.ts.map +1 -1
- package/dist/types/src/components/TextEditor/TextEditor.d.ts +24 -20
- package/dist/types/src/components/TextEditor/TextEditor.d.ts.map +1 -1
- package/dist/types/src/components/TextEditor/TextEditor.stories.d.ts +7 -10
- package/dist/types/src/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/types/{stories/html/code-mirror.stories.d.ts → src/components/TextEditor/codemirror.stories.d.ts} +2 -2
- package/dist/types/src/components/TextEditor/codemirror.stories.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/basic/bundle.d.ts +8 -0
- package/dist/types/src/components/TextEditor/extensions/basic/bundle.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/basic/index.d.ts +3 -0
- package/dist/types/src/components/TextEditor/extensions/basic/index.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/{theme.d.ts → extensions/basic/theme.d.ts} +2 -1
- package/dist/types/src/components/TextEditor/extensions/basic/theme.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/change.d.ts +7 -0
- package/dist/types/src/components/TextEditor/extensions/change.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/hyperlink/hyperlinkDecoration.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/hyperlink/hyperlinkTooltip.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/hyperlink/hyperlinkWidget.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/hyperlink/index.d.ts +4 -0
- package/dist/types/src/components/TextEditor/extensions/hyperlink/index.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/index.d.ts +4 -3
- package/dist/types/src/components/TextEditor/extensions/index.d.ts.map +1 -1
- package/dist/types/src/components/TextEditor/extensions/markdown/bundle.d.ts +8 -0
- package/dist/types/src/components/TextEditor/extensions/markdown/bundle.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/markdown/index.d.ts +3 -0
- package/dist/types/src/components/TextEditor/extensions/markdown/index.d.ts.map +1 -0
- package/dist/types/src/components/{Markdown/markdownTags.d.ts → TextEditor/extensions/markdown/tags.d.ts} +1 -1
- package/dist/types/src/components/TextEditor/extensions/markdown/tags.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/extensions/markdown/theme.d.ts +21 -0
- package/dist/types/src/components/TextEditor/extensions/markdown/theme.d.ts.map +1 -0
- package/dist/types/src/components/TextEditor/index.d.ts +1 -3
- package/dist/types/src/components/TextEditor/index.d.ts.map +1 -1
- package/dist/types/src/components/TextEditor/yjs.stories.d.ts +11 -0
- package/dist/types/src/components/TextEditor/yjs.stories.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useCollaboration.d.ts +9 -0
- package/dist/types/src/hooks/useCollaboration.d.ts.map +1 -0
- package/dist/types/src/{model.d.ts → hooks/useTextModel.d.ts} +3 -15
- package/dist/types/src/hooks/useTextModel.d.ts.map +1 -0
- package/dist/types/src/hooks/yjs/cursors.d.ts.map +1 -0
- package/dist/types/src/hooks/yjs/index.d.ts.map +1 -0
- package/dist/types/src/hooks/yjs/space-provider.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/styles/tokens.d.ts +4 -0
- package/dist/types/src/styles/tokens.d.ts.map +1 -1
- package/dist/types/src/testing/replicator.d.ts +1 -1
- package/dist/types/src/testing/replicator.d.ts.map +1 -1
- package/package.json +30 -27
- package/src/automerge/automerge-plugin/PatchSemaphore.ts +5 -5
- package/src/automerge/automerge-plugin/codeMirrorToAm.ts +10 -7
- package/src/automerge/automerge-plugin/handle.ts +14 -0
- package/src/automerge/automerge-plugin/index.ts +2 -2
- package/src/automerge/automerge-plugin/plugin.ts +39 -10
- package/src/automerge/automerge.stories.tsx +32 -47
- package/src/components/TextEditor/TextEditor.stories.tsx +10 -3
- package/src/components/TextEditor/TextEditor.tsx +113 -56
- package/src/components/TextEditor/codemirror.stories.ts +114 -0
- package/src/components/TextEditor/extensions/basic/bundle.ts +28 -0
- package/src/components/TextEditor/extensions/basic/index.ts +6 -0
- package/src/components/TextEditor/{theme.ts → extensions/basic/theme.ts} +22 -8
- package/src/components/TextEditor/extensions/change.ts +22 -0
- package/src/components/TextEditor/extensions/hyperlink/index.ts +7 -0
- package/src/components/TextEditor/extensions/index.ts +4 -3
- package/src/components/TextEditor/extensions/markdown/bundle.ts +99 -0
- package/src/components/TextEditor/extensions/markdown/index.ts +6 -0
- package/src/components/{Markdown/markdownTheme.ts → TextEditor/extensions/markdown/theme.ts} +16 -16
- package/src/components/TextEditor/index.ts +1 -4
- package/src/components/TextEditor/yjs.stories.tsx +55 -0
- package/src/components/index.ts +0 -3
- package/src/hooks/index.ts +7 -0
- package/src/hooks/useCollaboration.ts +45 -0
- package/src/{model.ts → hooks/useTextModel.ts} +42 -17
- package/src/index.ts +3 -3
- package/src/styles/tokens.ts +6 -0
- package/src/testing/replicator.ts +1 -2
- package/dist/types/src/automerge/demo.d.ts +0 -25
- package/dist/types/src/automerge/demo.d.ts.map +0 -1
- package/dist/types/src/components/Editor/Editor.d.ts +0 -14
- package/dist/types/src/components/Editor/Editor.d.ts.map +0 -1
- package/dist/types/src/components/Editor/Editor.stories.d.ts +0 -29
- package/dist/types/src/components/Editor/Editor.stories.d.ts.map +0 -1
- package/dist/types/src/components/Editor/index.d.ts +0 -2
- package/dist/types/src/components/Editor/index.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/Markdown.d.ts +0 -21
- package/dist/types/src/components/Markdown/Markdown.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/Markdown.stories.d.ts +0 -20
- package/dist/types/src/components/Markdown/Markdown.stories.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/index.d.ts +0 -2
- package/dist/types/src/components/Markdown/index.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/markdownTags.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/markdownTheme.d.ts +0 -100
- package/dist/types/src/components/Markdown/markdownTheme.d.ts.map +0 -1
- package/dist/types/src/components/RichText/RichText.d.ts +0 -20
- package/dist/types/src/components/RichText/RichText.d.ts.map +0 -1
- package/dist/types/src/components/RichText/RichText.stories.d.ts +0 -27
- package/dist/types/src/components/RichText/RichText.stories.d.ts.map +0 -1
- package/dist/types/src/components/RichText/index.d.ts +0 -2
- package/dist/types/src/components/RichText/index.d.ts.map +0 -1
- package/dist/types/src/components/TextEditor/extensions/hyperlinkDecoration.d.ts.map +0 -1
- package/dist/types/src/components/TextEditor/extensions/hyperlinkTooltip.d.ts.map +0 -1
- package/dist/types/src/components/TextEditor/extensions/hyperlinkWidget.d.ts.map +0 -1
- package/dist/types/src/components/TextEditor/theme.d.ts.map +0 -1
- package/dist/types/src/model.d.ts.map +0 -1
- package/dist/types/src/yjs/cursors.d.ts.map +0 -1
- package/dist/types/src/yjs/index.d.ts.map +0 -1
- package/dist/types/src/yjs/space-provider.d.ts.map +0 -1
- package/dist/types/stories/html/code-mirror.stories.d.ts.map +0 -1
- package/src/automerge/demo.ts +0 -106
- package/src/components/Editor/Editor.stories.tsx +0 -82
- package/src/components/Editor/Editor.tsx +0 -36
- package/src/components/Editor/index.ts +0 -5
- package/src/components/Markdown/Markdown.stories.tsx +0 -70
- package/src/components/Markdown/Markdown.tsx +0 -239
- package/src/components/Markdown/index.ts +0 -5
- package/src/components/RichText/RichText.stories.tsx +0 -70
- package/src/components/RichText/RichText.tsx +0 -181
- package/src/components/RichText/index.ts +0 -5
- /package/dist/types/src/components/TextEditor/extensions/{hyperlinkDecoration.d.ts → hyperlink/hyperlinkDecoration.d.ts} +0 -0
- /package/dist/types/src/components/TextEditor/extensions/{hyperlinkTooltip.d.ts → hyperlink/hyperlinkTooltip.d.ts} +0 -0
- /package/dist/types/src/components/TextEditor/extensions/{hyperlinkWidget.d.ts → hyperlink/hyperlinkWidget.d.ts} +0 -0
- /package/dist/types/src/{yjs → hooks/yjs}/cursors.d.ts +0 -0
- /package/dist/types/src/{yjs → hooks/yjs}/index.d.ts +0 -0
- /package/dist/types/src/{yjs → hooks/yjs}/space-provider.d.ts +0 -0
- /package/src/components/TextEditor/extensions/{hyperlinkDecoration.ts → hyperlink/hyperlinkDecoration.ts} +0 -0
- /package/src/components/TextEditor/extensions/{hyperlinkTooltip.tsx → hyperlink/hyperlinkTooltip.tsx} +0 -0
- /package/src/components/TextEditor/extensions/{hyperlinkWidget.tsx → hyperlink/hyperlinkWidget.tsx} +0 -0
- /package/src/components/{Markdown/markdownTags.ts → TextEditor/extensions/markdown/tags.ts} +0 -0
- /package/src/{yjs → hooks/yjs}/cursors.ts +0 -0
- /package/src/{yjs → hooks/yjs}/index.ts +0 -0
- /package/src/{yjs → hooks/yjs}/space-provider.ts +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import '@dxosTheme';
|
|
6
|
+
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
|
|
9
|
+
import { PublicKey } from '@dxos/react-client';
|
|
10
|
+
import { TextKind } from '@dxos/react-client/echo';
|
|
11
|
+
import { ClientRepeater, textGenerator, useDataGenerator } from '@dxos/react-client/testing';
|
|
12
|
+
import { useId, Input } from '@dxos/react-ui';
|
|
13
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
14
|
+
|
|
15
|
+
import { MarkdownEditor } from './TextEditor';
|
|
16
|
+
import { Replicator, useYjsModel } from '../../testing';
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
component: MarkdownEditor,
|
|
20
|
+
decorators: [withTheme],
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const replicator = new Replicator(TextKind.PLAIN);
|
|
24
|
+
|
|
25
|
+
const Story = () => {
|
|
26
|
+
const [generate, setGenerate] = useState(false);
|
|
27
|
+
const generateId = useId('generate');
|
|
28
|
+
|
|
29
|
+
const [id] = useState(PublicKey.random().toHex());
|
|
30
|
+
const model = useYjsModel({ id, replicator });
|
|
31
|
+
|
|
32
|
+
useDataGenerator({
|
|
33
|
+
generator: generate ? textGenerator : undefined,
|
|
34
|
+
options: { text: typeof model?.content !== 'string' ? (model?.content as any) : undefined },
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<main className='flex flex-col flex-1 p-4 gap-4'>
|
|
39
|
+
<div id={generateId} className='flex gap-2'>
|
|
40
|
+
<Input.Root>
|
|
41
|
+
<Input.Checkbox checked={generate} onCheckedChange={(checked) => setGenerate(!!checked)} />
|
|
42
|
+
<Input.Label>Start</Input.Label>
|
|
43
|
+
</Input.Root>
|
|
44
|
+
</div>
|
|
45
|
+
<div className='border'>
|
|
46
|
+
<MarkdownEditor model={model} />
|
|
47
|
+
</div>
|
|
48
|
+
</main>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const Default = {
|
|
53
|
+
// TODO(wittjosiah): Decorator for doing this without clients being initialized?
|
|
54
|
+
render: () => <ClientRepeater count={2} Component={Story} />,
|
|
55
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import type { Extension } from '@codemirror/state';
|
|
6
|
+
import { useEffect, useMemo } from 'react';
|
|
7
|
+
import { yCollab } from 'y-codemirror.next';
|
|
8
|
+
|
|
9
|
+
import { generateName } from '@dxos/display-name';
|
|
10
|
+
import { isDocAccessor } from '@dxos/echo-schema';
|
|
11
|
+
import type { ThemeMode } from '@dxos/react-ui';
|
|
12
|
+
import { getColorForValue } from '@dxos/react-ui-theme';
|
|
13
|
+
import { YText } from '@dxos/text-model';
|
|
14
|
+
|
|
15
|
+
import type { EditorModel } from './useTextModel';
|
|
16
|
+
import { automergePlugin } from '../automerge/automerge-plugin';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Replication and awareness (incl. remote selection).
|
|
20
|
+
* https://codemirror.net/docs/ref/#collab
|
|
21
|
+
*/
|
|
22
|
+
export const useCollaboration = (model: EditorModel, themeMode: ThemeMode): Extension | undefined => {
|
|
23
|
+
const { provider, peer, content } = model;
|
|
24
|
+
const extension = useMemo(() => {
|
|
25
|
+
if (content instanceof YText) {
|
|
26
|
+
return yCollab(content, provider?.awareness);
|
|
27
|
+
} else if (isDocAccessor(content)) {
|
|
28
|
+
return automergePlugin(content.handle, content.path);
|
|
29
|
+
} else {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
}, []);
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (provider && peer) {
|
|
36
|
+
provider.awareness.setLocalStateField('user', {
|
|
37
|
+
name: peer.name ?? generateName(peer.id),
|
|
38
|
+
color: getColorForValue({ value: peer.id, type: 'color' }),
|
|
39
|
+
colorLight: getColorForValue({ value: peer.id, themeMode, type: 'highlight' }),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, [provider, peer, themeMode]);
|
|
43
|
+
|
|
44
|
+
return extension;
|
|
45
|
+
};
|
|
@@ -2,34 +2,30 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { type ComponentProps, useMemo } from 'react';
|
|
5
|
+
import { useMemo } from 'react';
|
|
7
6
|
import type * as awarenessProtocol from 'y-protocols/awareness';
|
|
8
7
|
|
|
9
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
type DocAccessor,
|
|
10
|
+
type Space,
|
|
11
|
+
type TextObject,
|
|
12
|
+
type AutomergeTextCompat,
|
|
13
|
+
getRawDoc,
|
|
14
|
+
isActualAutomergeObject,
|
|
15
|
+
} from '@dxos/react-client/echo';
|
|
10
16
|
import { type Identity } from '@dxos/react-client/halo';
|
|
11
17
|
import type { YText, YXmlFragment } from '@dxos/text-model';
|
|
12
18
|
|
|
13
19
|
import { SpaceAwarenessProvider } from './yjs';
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
root?: Omit<ComponentProps<'div'>, 'ref'>;
|
|
17
|
-
editor?: {
|
|
18
|
-
className?: string;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
spellCheck?: boolean;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
markdownTheme?: Parameters<typeof EditorView.theme>[0];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
|
|
21
|
+
// TODO(burdon): Move.
|
|
26
22
|
type Awareness = awarenessProtocol.Awareness;
|
|
27
23
|
type Provider = { awareness: Awareness };
|
|
28
24
|
|
|
29
25
|
// TODO(wittjosiah): Factor out to common package? @dxos/react-client?
|
|
30
26
|
export type EditorModel = {
|
|
31
27
|
id: string;
|
|
32
|
-
content: string | YText | YXmlFragment;
|
|
28
|
+
content: string | YText | YXmlFragment | DocAccessor;
|
|
33
29
|
provider?: Provider;
|
|
34
30
|
peer?: {
|
|
35
31
|
id: string;
|
|
@@ -43,16 +39,45 @@ export type UseTextModelOptions = {
|
|
|
43
39
|
text?: TextObject;
|
|
44
40
|
};
|
|
45
41
|
|
|
46
|
-
// TODO(
|
|
42
|
+
// TODO(burdon): Don't support returning undefined (and remove checks from calling code).
|
|
47
43
|
// TODO(burdon): Decouple space (make Editor less dependent on entire stack)?
|
|
44
|
+
// TODO(wittjosiah): Factor out to common package? @dxos/react-client?
|
|
48
45
|
export const useTextModel = ({ identity, space, text }: UseTextModelOptions): EditorModel | undefined => {
|
|
49
46
|
const provider = useMemo(() => {
|
|
47
|
+
if (isActualAutomergeObject(text)) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
50
51
|
if (!space || !text?.doc) {
|
|
51
52
|
return undefined;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
return new SpaceAwarenessProvider({ space, doc: text.doc, channel: `yjs.awareness.${text.id}` });
|
|
55
|
-
}, [identity, space, text?.doc]);
|
|
56
|
+
}, [identity, space, text, text?.doc]);
|
|
57
|
+
|
|
58
|
+
const content = useMemo(() => {
|
|
59
|
+
if (isActualAutomergeObject(text)) {
|
|
60
|
+
const obj = text as any as AutomergeTextCompat;
|
|
61
|
+
return getRawDoc(obj, [obj.field]);
|
|
62
|
+
} else {
|
|
63
|
+
return text?.content;
|
|
64
|
+
}
|
|
65
|
+
}, [text]);
|
|
66
|
+
|
|
67
|
+
if (isActualAutomergeObject(text)) {
|
|
68
|
+
const obj = text as any as AutomergeTextCompat;
|
|
69
|
+
return {
|
|
70
|
+
id: obj.id,
|
|
71
|
+
content: content!,
|
|
72
|
+
provider: undefined,
|
|
73
|
+
peer: identity
|
|
74
|
+
? {
|
|
75
|
+
id: identity.identityKey.toHex(),
|
|
76
|
+
name: identity.profile?.displayName,
|
|
77
|
+
}
|
|
78
|
+
: undefined,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
56
81
|
|
|
57
82
|
if (!text?.doc || !text?.content) {
|
|
58
83
|
return undefined;
|
package/src/index.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export * from './components';
|
|
6
|
-
export * from './model';
|
|
7
|
-
|
|
8
5
|
export { TextKind } from '@dxos/protocols/proto/dxos/echo/model/text';
|
|
9
6
|
export { Doc, YText, YXmlFragment } from '@dxos/text-model';
|
|
7
|
+
|
|
8
|
+
export * from './components';
|
|
9
|
+
export * from './hooks';
|
package/src/styles/tokens.ts
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import type { StyleSpec } from 'style-mod';
|
|
6
|
+
|
|
5
7
|
import { tailwindConfig, type TailwindConfig } from '@dxos/react-ui-theme';
|
|
6
8
|
|
|
9
|
+
export type ThemeStyles = {
|
|
10
|
+
[selector: string]: StyleSpec;
|
|
11
|
+
};
|
|
12
|
+
|
|
7
13
|
// TODO(thure): Why export the whole theme? Can this be done differently?
|
|
8
14
|
export const tokens: TailwindConfig['theme'] = tailwindConfig({}).theme;
|
|
@@ -15,8 +15,7 @@ import { Event } from '@dxos/async';
|
|
|
15
15
|
import { log } from '@dxos/log';
|
|
16
16
|
import { TextKind } from '@dxos/protocols/proto/dxos/echo/model/text';
|
|
17
17
|
|
|
18
|
-
import { type EditorModel } from '../
|
|
19
|
-
import { cursorColor } from '../yjs';
|
|
18
|
+
import { cursorColor, type EditorModel } from '../hooks';
|
|
20
19
|
|
|
21
20
|
type Awareness = awarenessProtocol.Awareness;
|
|
22
21
|
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Event } from '@dxos/async';
|
|
2
|
-
import { type Doc, next as automerge, type ChangeOptions, type ChangeFn, type Heads } from '@dxos/automerge/automerge';
|
|
3
|
-
export declare class Peer {
|
|
4
|
-
changeEvent: Event<void>;
|
|
5
|
-
storage: Map<string, Uint8Array>;
|
|
6
|
-
stats: {
|
|
7
|
-
messagesSent: number;
|
|
8
|
-
messagesReceived: number;
|
|
9
|
-
bytesSent: number;
|
|
10
|
-
bytesReceived: number;
|
|
11
|
-
snapshotBytes: number;
|
|
12
|
-
incrementalBytes: number;
|
|
13
|
-
};
|
|
14
|
-
doc: Doc<{
|
|
15
|
-
text: string;
|
|
16
|
-
}>;
|
|
17
|
-
change(options: string | ChangeOptions<any> | ChangeFn<any>, callback?: ChangeFn<any>): void;
|
|
18
|
-
changeAt(scope: Heads, options: string | ChangeOptions<any> | ChangeFn<any>, callback?: ChangeFn<any>): automerge.Heads | null;
|
|
19
|
-
replicate(): {
|
|
20
|
-
readable: ReadableStream<Uint8Array>;
|
|
21
|
-
writable: WritableStream<Uint8Array>;
|
|
22
|
-
};
|
|
23
|
-
private _handleChange;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=demo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../../src/automerge/demo.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,KAAK,GAAG,EACR,IAAI,IAAI,SAAS,EACjB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,KAAK,EAEX,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,IAAI;IACf,WAAW,cAAe;IAE1B,OAAO,0BAAiC;IACxC,KAAK;;;;;;;MAOH;IAEF,GAAG,EAAG,GAAG,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAE5B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC;IAKrF,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC;IAOrG,SAAS,IAAI;QAAE,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;QAAC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAA;KAAE;IAgD3F,OAAO,CAAC,aAAa;CAgBtB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type EditorSlots, type UseTextModelOptions } from '../../model';
|
|
3
|
-
import { type MarkdownEditorRef } from '../Markdown';
|
|
4
|
-
export type EditorProps = UseTextModelOptions & {
|
|
5
|
-
slots?: EditorSlots;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Memoized editor which depends on DXOS platform.
|
|
9
|
-
* Determines which editor to render based on the kind of text.
|
|
10
|
-
*/
|
|
11
|
-
export declare const Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<UseTextModelOptions & {
|
|
12
|
-
slots?: EditorSlots | undefined;
|
|
13
|
-
} & React.RefAttributes<MarkdownEditorRef | import("@tiptap/react").Editor>>>;
|
|
14
|
-
//# sourceMappingURL=Editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAI1D,OAAO,EAAE,KAAK,WAAW,EAAgB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrE,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC9C,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,MAAM;;6EAalB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import '@dxosTheme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
component: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("../..").UseTextModelOptions & {
|
|
5
|
-
slots?: import("../..").EditorSlots | undefined;
|
|
6
|
-
} & React.RefAttributes<import("..").MarkdownEditorRef | import("@tiptap/react").Editor>>>;
|
|
7
|
-
decorators: import("@storybook/react").Decorator[];
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export declare const Markdown: {
|
|
11
|
-
render: (args: {
|
|
12
|
-
id: number;
|
|
13
|
-
}) => JSX.Element;
|
|
14
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, any>[];
|
|
15
|
-
};
|
|
16
|
-
export declare const Rich: {
|
|
17
|
-
render: (args: {
|
|
18
|
-
id: number;
|
|
19
|
-
}) => JSX.Element;
|
|
20
|
-
args: {
|
|
21
|
-
slots: {
|
|
22
|
-
editor: {
|
|
23
|
-
className: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, any>[];
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=Editor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAmB,MAAM,OAAO,CAAC;;;;;;;AAYxC,wBAGE;AAoCF,eAAO,MAAM,QAAQ;mBACJ;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;CAE9B,CAAC;AAWF,eAAO,MAAM,IAAI;mBACA;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;;;;CAS9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EditorState, type Extension, type Text } from '@codemirror/state';
|
|
2
|
-
import { EditorView } from '@codemirror/view';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { type EditorModel, type EditorSlots } from '../../model';
|
|
5
|
-
export declare const EditorModes: readonly ["default", "vim"];
|
|
6
|
-
export type EditorMode = (typeof EditorModes)[number];
|
|
7
|
-
export type MarkdownEditorProps = {
|
|
8
|
-
model: EditorModel;
|
|
9
|
-
slots?: EditorSlots;
|
|
10
|
-
editorMode?: EditorMode;
|
|
11
|
-
showWidgets?: boolean;
|
|
12
|
-
extensions?: Extension[];
|
|
13
|
-
onChange?: (content: string | Text) => void;
|
|
14
|
-
};
|
|
15
|
-
export type MarkdownEditorRef = {
|
|
16
|
-
editor: HTMLDivElement | null;
|
|
17
|
-
state?: EditorState;
|
|
18
|
-
view?: EditorView;
|
|
19
|
-
};
|
|
20
|
-
export declare const MarkdownEditor: React.ForwardRefExoticComponent<MarkdownEditorProps & React.RefAttributes<MarkdownEditorRef>>;
|
|
21
|
-
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAc,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAUL,UAAU,EACX,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAQN,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,WAAW,6BAA8B,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,+FAsK1B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import '@dxosTheme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
component: React.ForwardRefExoticComponent<import("./Markdown").MarkdownEditorProps & React.RefAttributes<import("./Markdown").MarkdownEditorRef>>;
|
|
5
|
-
decorators: import("@storybook/react").Decorator[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: {
|
|
9
|
-
args: {
|
|
10
|
-
model: {
|
|
11
|
-
id: string;
|
|
12
|
-
content: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const WithYjs: {
|
|
17
|
-
render: () => JSX.Element;
|
|
18
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, any>[];
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=Markdown.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAmB,MAAM,OAAO,CAAC;;;;;AAWxC,wBAGE;AAYF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAIF,eAAO,MAAM,OAAO;;;CA0BnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdownTags.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/markdownTags.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAgBnC,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { HighlightStyle } from '@codemirror/language';
|
|
2
|
-
export declare const chalky = "#e5c07b";
|
|
3
|
-
export declare const coral = "#e06c75";
|
|
4
|
-
export declare const cyan = "#56b6c2";
|
|
5
|
-
export declare const invalid = "#ffffff";
|
|
6
|
-
export declare const ivory = "#abb2bf";
|
|
7
|
-
export declare const stone = "#7d8799";
|
|
8
|
-
export declare const malibu = "#61afef";
|
|
9
|
-
export declare const sage = "#98c379";
|
|
10
|
-
export declare const whiskey = "#d19a66";
|
|
11
|
-
export declare const violet = "#c678dd";
|
|
12
|
-
export declare const highlightBackground = "#2c313a";
|
|
13
|
-
export declare const tooltipBackground = "#353a42";
|
|
14
|
-
export declare const cursor = "#ffffff";
|
|
15
|
-
export declare const markdownTheme: {
|
|
16
|
-
'.cm-tooltip': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
border: string;
|
|
19
|
-
};
|
|
20
|
-
'&.cm-focused': {
|
|
21
|
-
outline: string;
|
|
22
|
-
};
|
|
23
|
-
'& .cm-line': {
|
|
24
|
-
paddingInline: number;
|
|
25
|
-
minBlockSize: string;
|
|
26
|
-
};
|
|
27
|
-
'& .cm-line *': {
|
|
28
|
-
lineHeight: number;
|
|
29
|
-
};
|
|
30
|
-
'&.cm-focused .cm-selectionBackground, & .cm-selectionBackground': {
|
|
31
|
-
background: any;
|
|
32
|
-
};
|
|
33
|
-
'.dark & .cm-selectionBackground, .dark &.cm-focused .cm-selectionBackground': {
|
|
34
|
-
background: any;
|
|
35
|
-
};
|
|
36
|
-
'& .cm-selectionMatch': {
|
|
37
|
-
background: string;
|
|
38
|
-
};
|
|
39
|
-
'.dark & .cm-selectionMatch': {
|
|
40
|
-
background: string;
|
|
41
|
-
};
|
|
42
|
-
'& .cm-content': {
|
|
43
|
-
caretColor: string;
|
|
44
|
-
};
|
|
45
|
-
'.dark & .cm-content': {
|
|
46
|
-
caretColor: string;
|
|
47
|
-
};
|
|
48
|
-
'& .cm-cursor': {
|
|
49
|
-
borderLeftColor: string;
|
|
50
|
-
};
|
|
51
|
-
'.dark & .cm-cursor': {
|
|
52
|
-
borderLeftColor: string;
|
|
53
|
-
};
|
|
54
|
-
'.cm-placeholder': {
|
|
55
|
-
fontFamily: any;
|
|
56
|
-
};
|
|
57
|
-
'& .cm-scroller': {
|
|
58
|
-
fontFamily: any;
|
|
59
|
-
overflow: string;
|
|
60
|
-
};
|
|
61
|
-
'& .cm-activeLine': {
|
|
62
|
-
backgroundColor: string;
|
|
63
|
-
};
|
|
64
|
-
'.dark & .cm-activeLine': {
|
|
65
|
-
backgroundColor: string;
|
|
66
|
-
};
|
|
67
|
-
'& .cm-ySelectionInfo': {
|
|
68
|
-
fontFamily: any;
|
|
69
|
-
padding: string;
|
|
70
|
-
marginBlockStart: string;
|
|
71
|
-
};
|
|
72
|
-
'& .cm-ySelection, & .cm-selectionMatch': {
|
|
73
|
-
paddingBlockStart: string;
|
|
74
|
-
paddingBlockEnd: string;
|
|
75
|
-
};
|
|
76
|
-
'& .cm-ySelection, & .cm-yLineSelection': {
|
|
77
|
-
mixBlendMode: string;
|
|
78
|
-
};
|
|
79
|
-
'.dark & .cm-ySelection, .dark & .cm-yLineSelection': {
|
|
80
|
-
mixBlendMode: string;
|
|
81
|
-
};
|
|
82
|
-
'& .cm-ySelectionCaret': {
|
|
83
|
-
display: string;
|
|
84
|
-
insetBlockStart: string;
|
|
85
|
-
blockSize: string;
|
|
86
|
-
verticalAlign: string;
|
|
87
|
-
};
|
|
88
|
-
'& .cm-yLineSelection': {
|
|
89
|
-
margin: string;
|
|
90
|
-
};
|
|
91
|
-
'.cm-link': {
|
|
92
|
-
color: string;
|
|
93
|
-
textDecorationLine: string;
|
|
94
|
-
textDecorationThickness: string;
|
|
95
|
-
textUnderlineOffset: string;
|
|
96
|
-
borderRadius: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export declare const markdownHighlightStyle: HighlightStyle;
|
|
100
|
-
//# sourceMappingURL=markdownTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdownTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/markdownTheme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAUtD,eAAO,MAAM,MAAM,YAAY,CAAC;AAChC,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,IAAI,YAAY,CAAC;AAC9B,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,MAAM,YAAY,CAAC;AAChC,eAAO,MAAM,IAAI,YAAY,CAAC;AAC9B,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,MAAM,YAAY,CAAC;AAEhC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,eAAO,MAAM,MAAM,YAAY,CAAC;AAQhC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBA6ElC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type Editor } from '@tiptap/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type EditorModel, type EditorSlots } from '../../model';
|
|
4
|
-
export type TipTapEditor = Editor;
|
|
5
|
-
type UseEditorOptions = {
|
|
6
|
-
model?: EditorModel;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
slots?: Pick<EditorSlots, 'editor'>;
|
|
9
|
-
};
|
|
10
|
-
export type RichTextEditorProps = UseEditorOptions & {
|
|
11
|
-
slots?: EditorSlots;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
export declare const RichTextEditor: React.ForwardRefExoticComponent<UseEditorOptions & {
|
|
17
|
-
slots?: EditorSlots | undefined;
|
|
18
|
-
} & React.RefAttributes<Editor | null>>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=RichText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../../../src/components/RichText/RichText.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAgD,MAAM,eAAe,CAAC;AAE1F,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAkBjE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;CACrC,CAAC;AA2HF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IACnD,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,cAAc;;uCASzB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import '@dxosTheme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type RichTextEditorProps } from './RichText';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
component: React.ForwardRefExoticComponent<{
|
|
6
|
-
model?: import("../..").EditorModel | undefined;
|
|
7
|
-
placeholder?: string | undefined;
|
|
8
|
-
slots?: Pick<import("../..").EditorSlots, "editor"> | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
slots?: import("../..").EditorSlots | undefined;
|
|
11
|
-
} & React.RefAttributes<import("@tiptap/react").Editor | null>>;
|
|
12
|
-
decorators: import("@storybook/react").Decorator[];
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
15
|
-
export declare const Default: {
|
|
16
|
-
args: {
|
|
17
|
-
model: {
|
|
18
|
-
id: string;
|
|
19
|
-
content: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const WithYjs: {
|
|
24
|
-
render: (args: Omit<RichTextEditorProps, 'model'>) => JSX.Element;
|
|
25
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, any>[];
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=RichText.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/RichText/RichText.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;;AAGtE,wBAGE;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAGF,eAAO,MAAM,OAAO;mBACH,KAAK,mBAAmB,EAAE,OAAO,CAAC;;CAmClD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RichText/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hyperlinkDecoration.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextEditor/extensions/hyperlinkDecoration.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,KAAK,QAAQ,EAAmB,UAAU,EAAoB,MAAM,mBAAmB,CAAC;AA6CnH,KAAK,yBAAyB,GAAG;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,cAAc,yBAAyB,8BAMtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hyperlinkTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextEditor/extensions/hyperlinkTooltip.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAElE;;;;GAIG;AAEH,eAAO,MAAM,sBAAsB,YAAa,gBAAgB,2DA0C5D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hyperlinkWidget.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextEditor/extensions/hyperlinkWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAEL,KAAK,aAAa,EAElB,cAAc,EACd,UAAU,EACV,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAuD1B,wBAAgB,kBAAkB;wBAGR,cAAc;;mBAOnB,UAAU;GAwB9B;AAED,eAAO,MAAM,cAAc,WAYzB,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,SAAkD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextEditor/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAM3C;;;GAGG;AAEH,eAAO,MAAM,aAAa,EAAE;IAC1B,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAiB/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,KAAK,cAAc,EAAW,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACxD,CAAC;CACH,CAAC;AAEF,KAAK,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAC7C,KAAK,QAAQ,GAAG;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC;AAGzC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAIF,eAAO,MAAM,YAAY,8BAA+B,mBAAmB,KAAG,WAAW,GAAG,SAwB3F,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cursors.d.ts","sourceRoot":"","sources":["../../../../src/yjs/cursors.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW;;;CAAsD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/yjs/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"space-provider.d.ts","sourceRoot":"","sources":["../../../../src/yjs/space-provider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,iBAAiB,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,KAAK,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAO7C;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,UAAU,CAAC,GAAG,CAAC;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,GAAG,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,SAAS,CAAA;KAAE;IA+BlH,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,YAAY;IAoCpB,OAAO,CAAC,mBAAmB;CAG5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-mirror.stories.d.ts","sourceRoot":"","sources":["../../../../stories/html/code-mirror.stories.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAKhD,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;AAS5D,wBAEE;AAoEF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAoBjF,CAAC"}
|