@mdxeditor/editor 1.10.0 → 1.10.2
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/plugins/codeblock/index.d.ts +12 -2
- package/dist/plugins/codemirror/index.d.ts +16 -2
- package/dist/plugins/core/index.d.ts +10 -2
- package/dist/plugins/core/index.js +4 -1
- package/dist/plugins/diff-source/index.d.ts +14 -4
- package/dist/plugins/diff-source/index.js +2 -1
- package/dist/plugins/directives/index.d.ts +12 -2
- package/dist/plugins/frontmatter/index.d.ts +12 -2
- package/dist/plugins/headings/index.d.ts +12 -2
- package/dist/plugins/image/index.d.ts +12 -2
- package/dist/plugins/jsx/index.d.ts +12 -2
- package/dist/plugins/link/index.d.ts +1 -0
- package/dist/plugins/link-dialog/index.d.ts +10 -2
- package/dist/plugins/link-dialog/index.js +0 -6
- package/dist/plugins/lists/index.d.ts +12 -2
- package/dist/plugins/markdown-shortcut/index.d.ts +1 -0
- package/dist/plugins/quote/index.d.ts +9 -2
- package/dist/plugins/sandpack/index.d.ts +16 -2
- package/dist/plugins/table/index.d.ts +12 -2
- package/dist/plugins/thematic-break/index.d.ts +12 -2
- package/dist/plugins/toolbar/index.d.ts +10 -2
- package/package.json +11 -11
|
@@ -40,6 +40,7 @@ export declare const frontmatterSystem: SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
40
40
|
initialMarkdown: RealmNode<string>;
|
|
41
41
|
setMarkdown: RealmNode<string>;
|
|
42
42
|
markdown: RealmNode<string>;
|
|
43
|
+
markdownSignal: RealmNode<string>;
|
|
43
44
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
44
45
|
contentEditableClassName: RealmNode<string>;
|
|
45
46
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -96,6 +97,7 @@ export declare const frontmatterSystem: SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
96
97
|
initialMarkdown: RealmNode<string>;
|
|
97
98
|
setMarkdown: RealmNode<string>;
|
|
98
99
|
markdown: RealmNode<string>;
|
|
100
|
+
markdownSignal: RealmNode<string>;
|
|
99
101
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
100
102
|
contentEditableClassName: RealmNode<string>;
|
|
101
103
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -160,6 +162,7 @@ frontmatterPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
160
162
|
initialMarkdown: RealmNode<string>;
|
|
161
163
|
setMarkdown: RealmNode<string>;
|
|
162
164
|
markdown: RealmNode<string>;
|
|
165
|
+
markdownSignal: RealmNode<string>;
|
|
163
166
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
164
167
|
contentEditableClassName: RealmNode<string>;
|
|
165
168
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -216,6 +219,7 @@ frontmatterPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
216
219
|
initialMarkdown: RealmNode<string>;
|
|
217
220
|
setMarkdown: RealmNode<string>;
|
|
218
221
|
markdown: RealmNode<string>;
|
|
222
|
+
markdownSignal: RealmNode<string>;
|
|
219
223
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
220
224
|
contentEditableClassName: RealmNode<string>;
|
|
221
225
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -285,6 +289,7 @@ frontmatterPluginHooks: {
|
|
|
285
289
|
initialMarkdown: RealmNode<string>;
|
|
286
290
|
setMarkdown: RealmNode<string>;
|
|
287
291
|
markdown: RealmNode<string>;
|
|
292
|
+
markdownSignal: RealmNode<string>;
|
|
288
293
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
289
294
|
contentEditableClassName: RealmNode<string>;
|
|
290
295
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -315,7 +320,7 @@ frontmatterPluginHooks: {
|
|
|
315
320
|
onBlur: RealmNode<FocusEvent>;
|
|
316
321
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
317
322
|
}>;
|
|
318
|
-
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K, callback: (value: ValueForKey<{
|
|
323
|
+
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K, callback: (value: ValueForKey<{
|
|
319
324
|
insertFrontmatter: RealmNode<true>;
|
|
320
325
|
removeFrontmatter: RealmNode<true>;
|
|
321
326
|
hasFrontmatter: RealmNode<boolean>;
|
|
@@ -347,6 +352,7 @@ frontmatterPluginHooks: {
|
|
|
347
352
|
initialMarkdown: RealmNode<string>;
|
|
348
353
|
setMarkdown: RealmNode<string>;
|
|
349
354
|
markdown: RealmNode<string>;
|
|
355
|
+
markdownSignal: RealmNode<string>;
|
|
350
356
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
351
357
|
contentEditableClassName: RealmNode<string>;
|
|
352
358
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -409,6 +415,7 @@ frontmatterPluginHooks: {
|
|
|
409
415
|
initialMarkdown: RealmNode<string>;
|
|
410
416
|
setMarkdown: RealmNode<string>;
|
|
411
417
|
markdown: RealmNode<string>;
|
|
418
|
+
markdownSignal: RealmNode<string>;
|
|
412
419
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
413
420
|
contentEditableClassName: RealmNode<string>;
|
|
414
421
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -470,6 +477,7 @@ frontmatterPluginHooks: {
|
|
|
470
477
|
initialMarkdown: RealmNode<string>;
|
|
471
478
|
setMarkdown: RealmNode<string>;
|
|
472
479
|
markdown: RealmNode<string>;
|
|
480
|
+
markdownSignal: RealmNode<string>;
|
|
473
481
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
474
482
|
contentEditableClassName: RealmNode<string>;
|
|
475
483
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -532,6 +540,7 @@ frontmatterPluginHooks: {
|
|
|
532
540
|
initialMarkdown: RealmNode<string>;
|
|
533
541
|
setMarkdown: RealmNode<string>;
|
|
534
542
|
markdown: RealmNode<string>;
|
|
543
|
+
markdownSignal: RealmNode<string>;
|
|
535
544
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
536
545
|
contentEditableClassName: RealmNode<string>;
|
|
537
546
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -562,7 +571,7 @@ frontmatterPluginHooks: {
|
|
|
562
571
|
onBlur: RealmNode<FocusEvent>;
|
|
563
572
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
564
573
|
}>) => void;
|
|
565
|
-
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K_2) => (value: ValueForKey<{
|
|
574
|
+
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K_2) => (value: ValueForKey<{
|
|
566
575
|
insertFrontmatter: RealmNode<true>;
|
|
567
576
|
removeFrontmatter: RealmNode<true>;
|
|
568
577
|
hasFrontmatter: RealmNode<boolean>;
|
|
@@ -594,6 +603,7 @@ frontmatterPluginHooks: {
|
|
|
594
603
|
initialMarkdown: RealmNode<string>;
|
|
595
604
|
setMarkdown: RealmNode<string>;
|
|
596
605
|
markdown: RealmNode<string>;
|
|
606
|
+
markdownSignal: RealmNode<string>;
|
|
597
607
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
598
608
|
contentEditableClassName: RealmNode<string>;
|
|
599
609
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -44,6 +44,7 @@ export declare const headingsSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
44
44
|
initialMarkdown: RealmNode<string>;
|
|
45
45
|
setMarkdown: RealmNode<string>;
|
|
46
46
|
markdown: RealmNode<string>;
|
|
47
|
+
markdownSignal: RealmNode<string>;
|
|
47
48
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
48
49
|
contentEditableClassName: RealmNode<string>;
|
|
49
50
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -100,6 +101,7 @@ export declare const headingsSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
100
101
|
initialMarkdown: RealmNode<string>;
|
|
101
102
|
setMarkdown: RealmNode<string>;
|
|
102
103
|
markdown: RealmNode<string>;
|
|
104
|
+
markdownSignal: RealmNode<string>;
|
|
103
105
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
104
106
|
contentEditableClassName: RealmNode<string>;
|
|
105
107
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -172,6 +174,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
172
174
|
initialMarkdown: RealmNode<string>;
|
|
173
175
|
setMarkdown: RealmNode<string>;
|
|
174
176
|
markdown: RealmNode<string>;
|
|
177
|
+
markdownSignal: RealmNode<string>;
|
|
175
178
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
176
179
|
contentEditableClassName: RealmNode<string>;
|
|
177
180
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -228,6 +231,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
228
231
|
initialMarkdown: RealmNode<string>;
|
|
229
232
|
setMarkdown: RealmNode<string>;
|
|
230
233
|
markdown: RealmNode<string>;
|
|
234
|
+
markdownSignal: RealmNode<string>;
|
|
231
235
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
232
236
|
contentEditableClassName: RealmNode<string>;
|
|
233
237
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -289,6 +293,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
289
293
|
initialMarkdown: RealmNode<string>;
|
|
290
294
|
setMarkdown: RealmNode<string>;
|
|
291
295
|
markdown: RealmNode<string>;
|
|
296
|
+
markdownSignal: RealmNode<string>;
|
|
292
297
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
293
298
|
contentEditableClassName: RealmNode<string>;
|
|
294
299
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -319,7 +324,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
319
324
|
onBlur: RealmNode<FocusEvent>;
|
|
320
325
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
321
326
|
}>;
|
|
322
|
-
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "allowedHeadingLevels">(key: K, callback: (value: ValueForKey<{
|
|
327
|
+
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "allowedHeadingLevels">(key: K, callback: (value: ValueForKey<{
|
|
323
328
|
allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
|
|
324
329
|
} & {
|
|
325
330
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -348,6 +353,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
348
353
|
initialMarkdown: RealmNode<string>;
|
|
349
354
|
setMarkdown: RealmNode<string>;
|
|
350
355
|
markdown: RealmNode<string>;
|
|
356
|
+
markdownSignal: RealmNode<string>;
|
|
351
357
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
352
358
|
contentEditableClassName: RealmNode<string>;
|
|
353
359
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -407,6 +413,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
407
413
|
initialMarkdown: RealmNode<string>;
|
|
408
414
|
setMarkdown: RealmNode<string>;
|
|
409
415
|
markdown: RealmNode<string>;
|
|
416
|
+
markdownSignal: RealmNode<string>;
|
|
410
417
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
411
418
|
contentEditableClassName: RealmNode<string>;
|
|
412
419
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -465,6 +472,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
465
472
|
initialMarkdown: RealmNode<string>;
|
|
466
473
|
setMarkdown: RealmNode<string>;
|
|
467
474
|
markdown: RealmNode<string>;
|
|
475
|
+
markdownSignal: RealmNode<string>;
|
|
468
476
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
469
477
|
contentEditableClassName: RealmNode<string>;
|
|
470
478
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -524,6 +532,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
524
532
|
initialMarkdown: RealmNode<string>;
|
|
525
533
|
setMarkdown: RealmNode<string>;
|
|
526
534
|
markdown: RealmNode<string>;
|
|
535
|
+
markdownSignal: RealmNode<string>;
|
|
527
536
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
528
537
|
contentEditableClassName: RealmNode<string>;
|
|
529
538
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -554,7 +563,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
554
563
|
onBlur: RealmNode<FocusEvent>;
|
|
555
564
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
556
565
|
}>) => void;
|
|
557
|
-
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "allowedHeadingLevels">(key: K_2) => (value: ValueForKey<{
|
|
566
|
+
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "allowedHeadingLevels">(key: K_2) => (value: ValueForKey<{
|
|
558
567
|
allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
|
|
559
568
|
} & {
|
|
560
569
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -583,6 +592,7 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
|
|
|
583
592
|
initialMarkdown: RealmNode<string>;
|
|
584
593
|
setMarkdown: RealmNode<string>;
|
|
585
594
|
markdown: RealmNode<string>;
|
|
595
|
+
markdownSignal: RealmNode<string>;
|
|
586
596
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
587
597
|
contentEditableClassName: RealmNode<string>;
|
|
588
598
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -61,6 +61,7 @@ export declare const imageSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
61
61
|
initialMarkdown: RealmNode<string>;
|
|
62
62
|
setMarkdown: RealmNode<string>;
|
|
63
63
|
markdown: RealmNode<string>;
|
|
64
|
+
markdownSignal: RealmNode<string>;
|
|
64
65
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
65
66
|
contentEditableClassName: RealmNode<string>;
|
|
66
67
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -117,6 +118,7 @@ export declare const imageSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
117
118
|
initialMarkdown: RealmNode<string>;
|
|
118
119
|
setMarkdown: RealmNode<string>;
|
|
119
120
|
markdown: RealmNode<string>;
|
|
121
|
+
markdownSignal: RealmNode<string>;
|
|
120
122
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
121
123
|
contentEditableClassName: RealmNode<string>;
|
|
122
124
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -193,6 +195,7 @@ imagePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
193
195
|
initialMarkdown: RealmNode<string>;
|
|
194
196
|
setMarkdown: RealmNode<string>;
|
|
195
197
|
markdown: RealmNode<string>;
|
|
198
|
+
markdownSignal: RealmNode<string>;
|
|
196
199
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
197
200
|
contentEditableClassName: RealmNode<string>;
|
|
198
201
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -249,6 +252,7 @@ imagePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
249
252
|
initialMarkdown: RealmNode<string>;
|
|
250
253
|
setMarkdown: RealmNode<string>;
|
|
251
254
|
markdown: RealmNode<string>;
|
|
255
|
+
markdownSignal: RealmNode<string>;
|
|
252
256
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
253
257
|
contentEditableClassName: RealmNode<string>;
|
|
254
258
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -330,6 +334,7 @@ imagePluginHooks: {
|
|
|
330
334
|
initialMarkdown: RealmNode<string>;
|
|
331
335
|
setMarkdown: RealmNode<string>;
|
|
332
336
|
markdown: RealmNode<string>;
|
|
337
|
+
markdownSignal: RealmNode<string>;
|
|
333
338
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
334
339
|
contentEditableClassName: RealmNode<string>;
|
|
335
340
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -360,7 +365,7 @@ imagePluginHooks: {
|
|
|
360
365
|
onBlur: RealmNode<FocusEvent>;
|
|
361
366
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
362
367
|
}>;
|
|
363
|
-
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K, callback: (value: ValueForKey<{
|
|
368
|
+
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K, callback: (value: ValueForKey<{
|
|
364
369
|
imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
|
|
365
370
|
saveImage: RealmNode<InsertImageFormValues>;
|
|
366
371
|
openNewImageDialog: RealmNode<true>;
|
|
@@ -398,6 +403,7 @@ imagePluginHooks: {
|
|
|
398
403
|
initialMarkdown: RealmNode<string>;
|
|
399
404
|
setMarkdown: RealmNode<string>;
|
|
400
405
|
markdown: RealmNode<string>;
|
|
406
|
+
markdownSignal: RealmNode<string>;
|
|
401
407
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
402
408
|
contentEditableClassName: RealmNode<string>;
|
|
403
409
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -466,6 +472,7 @@ imagePluginHooks: {
|
|
|
466
472
|
initialMarkdown: RealmNode<string>;
|
|
467
473
|
setMarkdown: RealmNode<string>;
|
|
468
474
|
markdown: RealmNode<string>;
|
|
475
|
+
markdownSignal: RealmNode<string>;
|
|
469
476
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
470
477
|
contentEditableClassName: RealmNode<string>;
|
|
471
478
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -533,6 +540,7 @@ imagePluginHooks: {
|
|
|
533
540
|
initialMarkdown: RealmNode<string>;
|
|
534
541
|
setMarkdown: RealmNode<string>;
|
|
535
542
|
markdown: RealmNode<string>;
|
|
543
|
+
markdownSignal: RealmNode<string>;
|
|
536
544
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
537
545
|
contentEditableClassName: RealmNode<string>;
|
|
538
546
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -601,6 +609,7 @@ imagePluginHooks: {
|
|
|
601
609
|
initialMarkdown: RealmNode<string>;
|
|
602
610
|
setMarkdown: RealmNode<string>;
|
|
603
611
|
markdown: RealmNode<string>;
|
|
612
|
+
markdownSignal: RealmNode<string>;
|
|
604
613
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
605
614
|
contentEditableClassName: RealmNode<string>;
|
|
606
615
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -631,7 +640,7 @@ imagePluginHooks: {
|
|
|
631
640
|
onBlur: RealmNode<FocusEvent>;
|
|
632
641
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
633
642
|
}>) => void;
|
|
634
|
-
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K_2) => (value: ValueForKey<{
|
|
643
|
+
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K_2) => (value: ValueForKey<{
|
|
635
644
|
imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
|
|
636
645
|
saveImage: RealmNode<InsertImageFormValues>;
|
|
637
646
|
openNewImageDialog: RealmNode<true>;
|
|
@@ -669,6 +678,7 @@ imagePluginHooks: {
|
|
|
669
678
|
initialMarkdown: RealmNode<string>;
|
|
670
679
|
setMarkdown: RealmNode<string>;
|
|
671
680
|
markdown: RealmNode<string>;
|
|
681
|
+
markdownSignal: RealmNode<string>;
|
|
672
682
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
673
683
|
contentEditableClassName: RealmNode<string>;
|
|
674
684
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -115,6 +115,7 @@ export declare const jsxSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
115
115
|
initialMarkdown: RealmNode<string>;
|
|
116
116
|
setMarkdown: RealmNode<string>;
|
|
117
117
|
markdown: RealmNode<string>;
|
|
118
|
+
markdownSignal: RealmNode<string>;
|
|
118
119
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
119
120
|
contentEditableClassName: RealmNode<string>;
|
|
120
121
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -171,6 +172,7 @@ export declare const jsxSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
171
172
|
initialMarkdown: RealmNode<string>;
|
|
172
173
|
setMarkdown: RealmNode<string>;
|
|
173
174
|
markdown: RealmNode<string>;
|
|
175
|
+
markdownSignal: RealmNode<string>;
|
|
174
176
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
175
177
|
contentEditableClassName: RealmNode<string>;
|
|
176
178
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -241,6 +243,7 @@ jsxPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
241
243
|
initialMarkdown: RealmNode<string>;
|
|
242
244
|
setMarkdown: RealmNode<string>;
|
|
243
245
|
markdown: RealmNode<string>;
|
|
246
|
+
markdownSignal: RealmNode<string>;
|
|
244
247
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
245
248
|
contentEditableClassName: RealmNode<string>;
|
|
246
249
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -297,6 +300,7 @@ jsxPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
297
300
|
initialMarkdown: RealmNode<string>;
|
|
298
301
|
setMarkdown: RealmNode<string>;
|
|
299
302
|
markdown: RealmNode<string>;
|
|
303
|
+
markdownSignal: RealmNode<string>;
|
|
300
304
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
301
305
|
contentEditableClassName: RealmNode<string>;
|
|
302
306
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -360,6 +364,7 @@ jsxPluginHooks: {
|
|
|
360
364
|
initialMarkdown: RealmNode<string>;
|
|
361
365
|
setMarkdown: RealmNode<string>;
|
|
362
366
|
markdown: RealmNode<string>;
|
|
367
|
+
markdownSignal: RealmNode<string>;
|
|
363
368
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
364
369
|
contentEditableClassName: RealmNode<string>;
|
|
365
370
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -390,7 +395,7 @@ jsxPluginHooks: {
|
|
|
390
395
|
onBlur: RealmNode<FocusEvent>;
|
|
391
396
|
iconComponentFor: RealmNode<(name: IconKey) => React.ReactNode>;
|
|
392
397
|
}>;
|
|
393
|
-
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertJsx">(key: K, callback: (value: ValueForKey<{
|
|
398
|
+
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertJsx">(key: K, callback: (value: ValueForKey<{
|
|
394
399
|
insertJsx: RealmNode<InsertJsxPayload>;
|
|
395
400
|
} & {
|
|
396
401
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -419,6 +424,7 @@ jsxPluginHooks: {
|
|
|
419
424
|
initialMarkdown: RealmNode<string>;
|
|
420
425
|
setMarkdown: RealmNode<string>;
|
|
421
426
|
markdown: RealmNode<string>;
|
|
427
|
+
markdownSignal: RealmNode<string>;
|
|
422
428
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
423
429
|
contentEditableClassName: RealmNode<string>;
|
|
424
430
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -478,6 +484,7 @@ jsxPluginHooks: {
|
|
|
478
484
|
initialMarkdown: RealmNode<string>;
|
|
479
485
|
setMarkdown: RealmNode<string>;
|
|
480
486
|
markdown: RealmNode<string>;
|
|
487
|
+
markdownSignal: RealmNode<string>;
|
|
481
488
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
482
489
|
contentEditableClassName: RealmNode<string>;
|
|
483
490
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -536,6 +543,7 @@ jsxPluginHooks: {
|
|
|
536
543
|
initialMarkdown: RealmNode<string>;
|
|
537
544
|
setMarkdown: RealmNode<string>;
|
|
538
545
|
markdown: RealmNode<string>;
|
|
546
|
+
markdownSignal: RealmNode<string>;
|
|
539
547
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
540
548
|
contentEditableClassName: RealmNode<string>;
|
|
541
549
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -595,6 +603,7 @@ jsxPluginHooks: {
|
|
|
595
603
|
initialMarkdown: RealmNode<string>;
|
|
596
604
|
setMarkdown: RealmNode<string>;
|
|
597
605
|
markdown: RealmNode<string>;
|
|
606
|
+
markdownSignal: RealmNode<string>;
|
|
598
607
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
599
608
|
contentEditableClassName: RealmNode<string>;
|
|
600
609
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -625,7 +634,7 @@ jsxPluginHooks: {
|
|
|
625
634
|
onBlur: RealmNode<FocusEvent>;
|
|
626
635
|
iconComponentFor: RealmNode<(name: IconKey) => React.ReactNode>;
|
|
627
636
|
}>) => void;
|
|
628
|
-
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertJsx">(key: K_2) => (value: ValueForKey<{
|
|
637
|
+
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "insertJsx">(key: K_2) => (value: ValueForKey<{
|
|
629
638
|
insertJsx: RealmNode<InsertJsxPayload>;
|
|
630
639
|
} & {
|
|
631
640
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -654,6 +663,7 @@ jsxPluginHooks: {
|
|
|
654
663
|
initialMarkdown: RealmNode<string>;
|
|
655
664
|
setMarkdown: RealmNode<string>;
|
|
656
665
|
markdown: RealmNode<string>;
|
|
666
|
+
markdownSignal: RealmNode<string>;
|
|
657
667
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
658
668
|
contentEditableClassName: RealmNode<string>;
|
|
659
669
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -57,6 +57,7 @@ export declare const linkPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r
|
|
|
57
57
|
initialMarkdown: RealmNode<string>;
|
|
58
58
|
setMarkdown: RealmNode<string>;
|
|
59
59
|
markdown: RealmNode<string>;
|
|
60
|
+
markdownSignal: RealmNode<string>;
|
|
60
61
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
61
62
|
contentEditableClassName: RealmNode<string>;
|
|
62
63
|
placeholder: RealmNode<React.ReactNode>;
|
|
@@ -62,6 +62,7 @@ linkDialogPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
62
62
|
initialMarkdown: RealmNode<string>;
|
|
63
63
|
setMarkdown: RealmNode<string>;
|
|
64
64
|
markdown: RealmNode<string>;
|
|
65
|
+
markdownSignal: RealmNode<string>;
|
|
65
66
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
66
67
|
contentEditableClassName: RealmNode<string>;
|
|
67
68
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -118,6 +119,7 @@ linkDialogPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
118
119
|
initialMarkdown: RealmNode<string>;
|
|
119
120
|
setMarkdown: RealmNode<string>;
|
|
120
121
|
markdown: RealmNode<string>;
|
|
122
|
+
markdownSignal: RealmNode<string>;
|
|
121
123
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
122
124
|
contentEditableClassName: RealmNode<string>;
|
|
123
125
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -207,6 +209,7 @@ linkDialogPluginHooks: {
|
|
|
207
209
|
initialMarkdown: RealmNode<string>;
|
|
208
210
|
setMarkdown: RealmNode<string>;
|
|
209
211
|
markdown: RealmNode<string>;
|
|
212
|
+
markdownSignal: RealmNode<string>;
|
|
210
213
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
211
214
|
contentEditableClassName: RealmNode<string>;
|
|
212
215
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -237,7 +240,7 @@ linkDialogPluginHooks: {
|
|
|
237
240
|
onBlur: RealmNode<FocusEvent>;
|
|
238
241
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
239
242
|
}>;
|
|
240
|
-
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "dialogState" | "onWindowChange" | "linkDialogState" | "updateLink" | "switchFromPreviewToLinkEdit" | "cancelLinkEdit" | "removeLink" | "openLinkEditDialog" | "applyLinkChanges" | "linkAutocompleteSuggestions">(key: K, callback: (value: ValueForKey<{
|
|
243
|
+
useEmitter: <K extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "dialogState" | "onWindowChange" | "linkDialogState" | "updateLink" | "switchFromPreviewToLinkEdit" | "cancelLinkEdit" | "removeLink" | "openLinkEditDialog" | "applyLinkChanges" | "linkAutocompleteSuggestions">(key: K, callback: (value: ValueForKey<{
|
|
241
244
|
dialogState: RealmNode<boolean>;
|
|
242
245
|
onWindowChange: RealmNode<true>;
|
|
243
246
|
linkDialogState: RealmNode<InactiveLinkDialog | PreviewLinkDialog | EditLinkDialog>;
|
|
@@ -278,6 +281,7 @@ linkDialogPluginHooks: {
|
|
|
278
281
|
initialMarkdown: RealmNode<string>;
|
|
279
282
|
setMarkdown: RealmNode<string>;
|
|
280
283
|
markdown: RealmNode<string>;
|
|
284
|
+
markdownSignal: RealmNode<string>;
|
|
281
285
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
282
286
|
contentEditableClassName: RealmNode<string>;
|
|
283
287
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -349,6 +353,7 @@ linkDialogPluginHooks: {
|
|
|
349
353
|
initialMarkdown: RealmNode<string>;
|
|
350
354
|
setMarkdown: RealmNode<string>;
|
|
351
355
|
markdown: RealmNode<string>;
|
|
356
|
+
markdownSignal: RealmNode<string>;
|
|
352
357
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
353
358
|
contentEditableClassName: RealmNode<string>;
|
|
354
359
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -419,6 +424,7 @@ linkDialogPluginHooks: {
|
|
|
419
424
|
initialMarkdown: RealmNode<string>;
|
|
420
425
|
setMarkdown: RealmNode<string>;
|
|
421
426
|
markdown: RealmNode<string>;
|
|
427
|
+
markdownSignal: RealmNode<string>;
|
|
422
428
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
423
429
|
contentEditableClassName: RealmNode<string>;
|
|
424
430
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -490,6 +496,7 @@ linkDialogPluginHooks: {
|
|
|
490
496
|
initialMarkdown: RealmNode<string>;
|
|
491
497
|
setMarkdown: RealmNode<string>;
|
|
492
498
|
markdown: RealmNode<string>;
|
|
499
|
+
markdownSignal: RealmNode<string>;
|
|
493
500
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
494
501
|
contentEditableClassName: RealmNode<string>;
|
|
495
502
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -520,7 +527,7 @@ linkDialogPluginHooks: {
|
|
|
520
527
|
onBlur: RealmNode<FocusEvent>;
|
|
521
528
|
iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
|
|
522
529
|
}>) => void;
|
|
523
|
-
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "dialogState" | "onWindowChange" | "linkDialogState" | "updateLink" | "switchFromPreviewToLinkEdit" | "cancelLinkEdit" | "removeLink" | "openLinkEditDialog" | "applyLinkChanges" | "linkAutocompleteSuggestions">(key: K_2) => (value: ValueForKey<{
|
|
530
|
+
usePublisher: <K_2 extends "jsxComponentDescriptors" | "jsxIsAvailable" | "toMarkdownOptions" | "toMarkdownExtensions" | "mdastExtensions" | "syntaxExtensions" | "markdown" | "activeEditor" | "inFocus" | "historyState" | "currentSelection" | "initialRootEditorState" | "rootEditor" | "createRootEditorSubscription" | "createActiveEditorSubscription" | "importVisitors" | "usedLexicalNodes" | "addImportVisitor" | "addLexicalNode" | "addSyntaxExtension" | "addMdastExtension" | "addToMarkdownExtension" | "addExportVisitor" | "exportVisitors" | "initialMarkdown" | "setMarkdown" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "dialogState" | "onWindowChange" | "linkDialogState" | "updateLink" | "switchFromPreviewToLinkEdit" | "cancelLinkEdit" | "removeLink" | "openLinkEditDialog" | "applyLinkChanges" | "linkAutocompleteSuggestions">(key: K_2) => (value: ValueForKey<{
|
|
524
531
|
dialogState: RealmNode<boolean>;
|
|
525
532
|
onWindowChange: RealmNode<true>;
|
|
526
533
|
linkDialogState: RealmNode<InactiveLinkDialog | PreviewLinkDialog | EditLinkDialog>;
|
|
@@ -561,6 +568,7 @@ linkDialogPluginHooks: {
|
|
|
561
568
|
initialMarkdown: RealmNode<string>;
|
|
562
569
|
setMarkdown: RealmNode<string>;
|
|
563
570
|
markdown: RealmNode<string>;
|
|
571
|
+
markdownSignal: RealmNode<string>;
|
|
564
572
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
565
573
|
contentEditableClassName: RealmNode<string>;
|
|
566
574
|
placeholder: RealmNode<ReactNode>;
|
|
@@ -147,12 +147,6 @@ const linkDialogSystem = system(
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
editor == null ? void 0 : editor.dispatchCommand(TOGGLE_LINK_COMMAND, { url, title });
|
|
150
|
-
setTimeout(() => {
|
|
151
|
-
editor == null ? void 0 : editor.update(() => {
|
|
152
|
-
const node = getLinkNodeInSelection($getSelection());
|
|
153
|
-
node == null ? void 0 : node.setTitle(title);
|
|
154
|
-
});
|
|
155
|
-
}, 100);
|
|
156
150
|
r.pub(linkDialogState, {
|
|
157
151
|
type: "preview",
|
|
158
152
|
linkNodeKey: state.linkNodeKey,
|