@mdxeditor/editor 1.12.1 → 1.13.0

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.
@@ -70,6 +70,14 @@ export declare const frontmatterSystem: SystemSpec<[SystemSpec<[], (r: Realm) =>
70
70
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
71
71
  onBlur: RealmNode<FocusEvent>;
72
72
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
73
+ markdownProcessingError: RealmNode<{
74
+ error: string;
75
+ source: string;
76
+ } | null>;
77
+ markdownErrorSignal: RealmNode<{
78
+ error: string;
79
+ source: string;
80
+ }>;
73
81
  }>], (r: Realm, [{ rootEditor, createRootEditorSubscription }]: [{
74
82
  activeEditor: RealmNode<LexicalEditor | null>;
75
83
  inFocus: RealmNode<boolean>;
@@ -127,6 +135,14 @@ export declare const frontmatterSystem: SystemSpec<[SystemSpec<[], (r: Realm) =>
127
135
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
128
136
  onBlur: RealmNode<FocusEvent>;
129
137
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
138
+ markdownProcessingError: RealmNode<{
139
+ error: string;
140
+ source: string;
141
+ } | null>;
142
+ markdownErrorSignal: RealmNode<{
143
+ error: string;
144
+ source: string;
145
+ }>;
130
146
  }]) => {
131
147
  insertFrontmatter: RealmNode<true>;
132
148
  removeFrontmatter: RealmNode<true>;
@@ -192,6 +208,14 @@ frontmatterPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
192
208
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
193
209
  onBlur: RealmNode<FocusEvent>;
194
210
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
211
+ markdownProcessingError: RealmNode<{
212
+ error: string;
213
+ source: string;
214
+ } | null>;
215
+ markdownErrorSignal: RealmNode<{
216
+ error: string;
217
+ source: string;
218
+ }>;
195
219
  }>], (r: Realm, [{ rootEditor, createRootEditorSubscription }]: [{
196
220
  activeEditor: RealmNode<LexicalEditor | null>;
197
221
  inFocus: RealmNode<boolean>;
@@ -249,6 +273,14 @@ frontmatterPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
249
273
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
250
274
  onBlur: RealmNode<FocusEvent>;
251
275
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
276
+ markdownProcessingError: RealmNode<{
277
+ error: string;
278
+ source: string;
279
+ } | null>;
280
+ markdownErrorSignal: RealmNode<{
281
+ error: string;
282
+ source: string;
283
+ }>;
252
284
  }]) => {
253
285
  insertFrontmatter: RealmNode<true>;
254
286
  removeFrontmatter: RealmNode<true>;
@@ -319,8 +351,16 @@ frontmatterPluginHooks: {
319
351
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
320
352
  onBlur: RealmNode<FocusEvent>;
321
353
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
354
+ markdownProcessingError: RealmNode<{
355
+ error: string;
356
+ source: string;
357
+ } | null>;
358
+ markdownErrorSignal: RealmNode<{
359
+ error: string;
360
+ source: string;
361
+ }>;
322
362
  }>;
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<{
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" | "markdownSignal" | "editorRootElementRef" | "contentEditableClassName" | "placeholder" | "autoFocus" | "readOnly" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "onBlur" | "iconComponentFor" | "markdownProcessingError" | "markdownErrorSignal" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K, callback: (value: ValueForKey<{
324
364
  insertFrontmatter: RealmNode<true>;
325
365
  removeFrontmatter: RealmNode<true>;
326
366
  hasFrontmatter: RealmNode<boolean>;
@@ -382,6 +422,14 @@ frontmatterPluginHooks: {
382
422
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
383
423
  onBlur: RealmNode<FocusEvent>;
384
424
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
425
+ markdownProcessingError: RealmNode<{
426
+ error: string;
427
+ source: string;
428
+ } | null>;
429
+ markdownErrorSignal: RealmNode<{
430
+ error: string;
431
+ source: string;
432
+ }>;
385
433
  }, K>) => void) => void;
386
434
  useEmitterValues: <K_1 extends SystemKeys<{
387
435
  insertFrontmatter: RealmNode<true>;
@@ -445,6 +493,14 @@ frontmatterPluginHooks: {
445
493
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
446
494
  onBlur: RealmNode<FocusEvent>;
447
495
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
496
+ markdownProcessingError: RealmNode<{
497
+ error: string;
498
+ source: string;
499
+ } | null>;
500
+ markdownErrorSignal: RealmNode<{
501
+ error: string;
502
+ source: string;
503
+ }>;
448
504
  }>>(...keys: K_1) => ValuesForKeys<{
449
505
  insertFrontmatter: RealmNode<true>;
450
506
  removeFrontmatter: RealmNode<true>;
@@ -507,6 +563,14 @@ frontmatterPluginHooks: {
507
563
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
508
564
  onBlur: RealmNode<FocusEvent>;
509
565
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
566
+ markdownProcessingError: RealmNode<{
567
+ error: string;
568
+ source: string;
569
+ } | null>;
570
+ markdownErrorSignal: RealmNode<{
571
+ error: string;
572
+ source: string;
573
+ }>;
510
574
  }, K_1>;
511
575
  usePubKeys: () => (values: SystemDict<{
512
576
  insertFrontmatter: RealmNode<true>;
@@ -570,8 +634,16 @@ frontmatterPluginHooks: {
570
634
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
571
635
  onBlur: RealmNode<FocusEvent>;
572
636
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
637
+ markdownProcessingError: RealmNode<{
638
+ error: string;
639
+ source: string;
640
+ } | null>;
641
+ markdownErrorSignal: RealmNode<{
642
+ error: string;
643
+ source: string;
644
+ }>;
573
645
  }>) => void;
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<{
646
+ 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" | "markdownProcessingError" | "markdownErrorSignal" | "insertFrontmatter" | "removeFrontmatter" | "hasFrontmatter" | "frontmatterDialogOpen">(key: K_2) => (value: ValueForKey<{
575
647
  insertFrontmatter: RealmNode<true>;
576
648
  removeFrontmatter: RealmNode<true>;
577
649
  hasFrontmatter: RealmNode<boolean>;
@@ -633,5 +705,13 @@ frontmatterPluginHooks: {
633
705
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
634
706
  onBlur: RealmNode<FocusEvent>;
635
707
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
708
+ markdownProcessingError: RealmNode<{
709
+ error: string;
710
+ source: string;
711
+ } | null>;
712
+ markdownErrorSignal: RealmNode<{
713
+ error: string;
714
+ source: string;
715
+ }>;
636
716
  }, K_2>) => void;
637
717
  };
@@ -74,6 +74,14 @@ export declare const headingsSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
74
74
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
75
75
  onBlur: RealmNode<FocusEvent>;
76
76
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
77
+ markdownProcessingError: RealmNode<{
78
+ error: string;
79
+ source: string;
80
+ } | null>;
81
+ markdownErrorSignal: RealmNode<{
82
+ error: string;
83
+ source: string;
84
+ }>;
77
85
  }>], (r: Realm, [{ createRootEditorSubscription, convertSelectionToNode }]: [{
78
86
  activeEditor: RealmNode<LexicalEditor | null>;
79
87
  inFocus: RealmNode<boolean>;
@@ -131,6 +139,14 @@ export declare const headingsSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
131
139
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
132
140
  onBlur: RealmNode<FocusEvent>;
133
141
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
142
+ markdownProcessingError: RealmNode<{
143
+ error: string;
144
+ source: string;
145
+ } | null>;
146
+ markdownErrorSignal: RealmNode<{
147
+ error: string;
148
+ source: string;
149
+ }>;
134
150
  }]) => {
135
151
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
136
152
  }>;
@@ -204,6 +220,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
204
220
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
205
221
  onBlur: RealmNode<FocusEvent>;
206
222
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
223
+ markdownProcessingError: RealmNode<{
224
+ error: string;
225
+ source: string;
226
+ } | null>;
227
+ markdownErrorSignal: RealmNode<{
228
+ error: string;
229
+ source: string;
230
+ }>;
207
231
  }>], (r: Realm, [{ createRootEditorSubscription, convertSelectionToNode }]: [{
208
232
  activeEditor: RealmNode<LexicalEditor | null>;
209
233
  inFocus: RealmNode<boolean>;
@@ -261,6 +285,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
261
285
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
262
286
  onBlur: RealmNode<FocusEvent>;
263
287
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
288
+ markdownProcessingError: RealmNode<{
289
+ error: string;
290
+ source: string;
291
+ } | null>;
292
+ markdownErrorSignal: RealmNode<{
293
+ error: string;
294
+ source: string;
295
+ }>;
264
296
  }]) => {
265
297
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
266
298
  }>, HeadingsPluginParams>, headingsPluginHooks: {
@@ -323,8 +355,16 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
323
355
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
324
356
  onBlur: RealmNode<FocusEvent>;
325
357
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
358
+ markdownProcessingError: RealmNode<{
359
+ error: string;
360
+ source: string;
361
+ } | null>;
362
+ markdownErrorSignal: RealmNode<{
363
+ error: string;
364
+ source: string;
365
+ }>;
326
366
  }>;
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<{
367
+ 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" | "markdownProcessingError" | "markdownErrorSignal" | "allowedHeadingLevels">(key: K, callback: (value: ValueForKey<{
328
368
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
329
369
  } & {
330
370
  activeEditor: RealmNode<LexicalEditor | null>;
@@ -383,6 +423,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
383
423
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
384
424
  onBlur: RealmNode<FocusEvent>;
385
425
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
426
+ markdownProcessingError: RealmNode<{
427
+ error: string;
428
+ source: string;
429
+ } | null>;
430
+ markdownErrorSignal: RealmNode<{
431
+ error: string;
432
+ source: string;
433
+ }>;
386
434
  }, K>) => void) => void;
387
435
  useEmitterValues: <K_1 extends SystemKeys<{
388
436
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
@@ -443,6 +491,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
443
491
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
444
492
  onBlur: RealmNode<FocusEvent>;
445
493
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
494
+ markdownProcessingError: RealmNode<{
495
+ error: string;
496
+ source: string;
497
+ } | null>;
498
+ markdownErrorSignal: RealmNode<{
499
+ error: string;
500
+ source: string;
501
+ }>;
446
502
  }>>(...keys: K_1) => ValuesForKeys<{
447
503
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
448
504
  } & {
@@ -502,6 +558,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
502
558
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
503
559
  onBlur: RealmNode<FocusEvent>;
504
560
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
561
+ markdownProcessingError: RealmNode<{
562
+ error: string;
563
+ source: string;
564
+ } | null>;
565
+ markdownErrorSignal: RealmNode<{
566
+ error: string;
567
+ source: string;
568
+ }>;
505
569
  }, K_1>;
506
570
  usePubKeys: () => (values: SystemDict<{
507
571
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
@@ -562,8 +626,16 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
562
626
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
563
627
  onBlur: RealmNode<FocusEvent>;
564
628
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
629
+ markdownProcessingError: RealmNode<{
630
+ error: string;
631
+ source: string;
632
+ } | null>;
633
+ markdownErrorSignal: RealmNode<{
634
+ error: string;
635
+ source: string;
636
+ }>;
565
637
  }>) => void;
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<{
638
+ 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" | "markdownProcessingError" | "markdownErrorSignal" | "allowedHeadingLevels">(key: K_2) => (value: ValueForKey<{
567
639
  allowedHeadingLevels: RealmNode<readonly (1 | 2 | 4 | 3 | 5 | 6)[]>;
568
640
  } & {
569
641
  activeEditor: RealmNode<LexicalEditor | null>;
@@ -622,6 +694,14 @@ export declare const headingsPlugin: PluginConstructor<SystemSpec<[SystemSpec<[]
622
694
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
623
695
  onBlur: RealmNode<FocusEvent>;
624
696
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
697
+ markdownProcessingError: RealmNode<{
698
+ error: string;
699
+ source: string;
700
+ } | null>;
701
+ markdownErrorSignal: RealmNode<{
702
+ error: string;
703
+ source: string;
704
+ }>;
625
705
  }, K_2>) => void;
626
706
  };
627
707
  export {};
@@ -91,6 +91,14 @@ export declare const imageSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
91
91
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
92
92
  onBlur: RealmNode<FocusEvent>;
93
93
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
94
+ markdownProcessingError: RealmNode<{
95
+ error: string;
96
+ source: string;
97
+ } | null>;
98
+ markdownErrorSignal: RealmNode<{
99
+ error: string;
100
+ source: string;
101
+ }>;
94
102
  }>], (r: Realm, [{ rootEditor }]: [{
95
103
  activeEditor: RealmNode<LexicalEditor | null>;
96
104
  inFocus: RealmNode<boolean>;
@@ -148,6 +156,14 @@ export declare const imageSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
148
156
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
149
157
  onBlur: RealmNode<FocusEvent>;
150
158
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
159
+ markdownProcessingError: RealmNode<{
160
+ error: string;
161
+ source: string;
162
+ } | null>;
163
+ markdownErrorSignal: RealmNode<{
164
+ error: string;
165
+ source: string;
166
+ }>;
151
167
  }]) => {
152
168
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
153
169
  saveImage: RealmNode<InsertImageFormValues>;
@@ -225,6 +241,14 @@ imagePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
225
241
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
226
242
  onBlur: RealmNode<FocusEvent>;
227
243
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
244
+ markdownProcessingError: RealmNode<{
245
+ error: string;
246
+ source: string;
247
+ } | null>;
248
+ markdownErrorSignal: RealmNode<{
249
+ error: string;
250
+ source: string;
251
+ }>;
228
252
  }>], (r: Realm, [{ rootEditor }]: [{
229
253
  activeEditor: RealmNode<LexicalEditor | null>;
230
254
  inFocus: RealmNode<boolean>;
@@ -282,6 +306,14 @@ imagePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
282
306
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
283
307
  onBlur: RealmNode<FocusEvent>;
284
308
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
309
+ markdownProcessingError: RealmNode<{
310
+ error: string;
311
+ source: string;
312
+ } | null>;
313
+ markdownErrorSignal: RealmNode<{
314
+ error: string;
315
+ source: string;
316
+ }>;
285
317
  }]) => {
286
318
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
287
319
  saveImage: RealmNode<InsertImageFormValues>;
@@ -364,8 +396,16 @@ imagePluginHooks: {
364
396
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
365
397
  onBlur: RealmNode<FocusEvent>;
366
398
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
399
+ markdownProcessingError: RealmNode<{
400
+ error: string;
401
+ source: string;
402
+ } | null>;
403
+ markdownErrorSignal: RealmNode<{
404
+ error: string;
405
+ source: string;
406
+ }>;
367
407
  }>;
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<{
408
+ 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" | "markdownProcessingError" | "markdownErrorSignal" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K, callback: (value: ValueForKey<{
369
409
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
370
410
  saveImage: RealmNode<InsertImageFormValues>;
371
411
  openNewImageDialog: RealmNode<true>;
@@ -433,6 +473,14 @@ imagePluginHooks: {
433
473
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
434
474
  onBlur: RealmNode<FocusEvent>;
435
475
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
476
+ markdownProcessingError: RealmNode<{
477
+ error: string;
478
+ source: string;
479
+ } | null>;
480
+ markdownErrorSignal: RealmNode<{
481
+ error: string;
482
+ source: string;
483
+ }>;
436
484
  }, K>) => void) => void;
437
485
  useEmitterValues: <K_1 extends SystemKeys<{
438
486
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
@@ -502,6 +550,14 @@ imagePluginHooks: {
502
550
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
503
551
  onBlur: RealmNode<FocusEvent>;
504
552
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
553
+ markdownProcessingError: RealmNode<{
554
+ error: string;
555
+ source: string;
556
+ } | null>;
557
+ markdownErrorSignal: RealmNode<{
558
+ error: string;
559
+ source: string;
560
+ }>;
505
561
  }>>(...keys: K_1) => ValuesForKeys<{
506
562
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
507
563
  saveImage: RealmNode<InsertImageFormValues>;
@@ -570,6 +626,14 @@ imagePluginHooks: {
570
626
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
571
627
  onBlur: RealmNode<FocusEvent>;
572
628
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
629
+ markdownProcessingError: RealmNode<{
630
+ error: string;
631
+ source: string;
632
+ } | null>;
633
+ markdownErrorSignal: RealmNode<{
634
+ error: string;
635
+ source: string;
636
+ }>;
573
637
  }, K_1>;
574
638
  usePubKeys: () => (values: SystemDict<{
575
639
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
@@ -639,8 +703,16 @@ imagePluginHooks: {
639
703
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
640
704
  onBlur: RealmNode<FocusEvent>;
641
705
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
706
+ markdownProcessingError: RealmNode<{
707
+ error: string;
708
+ source: string;
709
+ } | null>;
710
+ markdownErrorSignal: RealmNode<{
711
+ error: string;
712
+ source: string;
713
+ }>;
642
714
  }>) => void;
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<{
715
+ 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" | "markdownProcessingError" | "markdownErrorSignal" | "imageDialogState" | "saveImage" | "openNewImageDialog" | "openEditImageDialog" | "closeImageDialog" | "imageUploadHandler" | "imageAutocompleteSuggestions" | "disableImageResize" | "insertImage" | "imagePreviewHandler">(key: K_2) => (value: ValueForKey<{
644
716
  imageDialogState: RealmNode<InactiveImageDialogState | NewImageDialogState | EditingImageDialogState>;
645
717
  saveImage: RealmNode<InsertImageFormValues>;
646
718
  openNewImageDialog: RealmNode<true>;
@@ -708,6 +780,14 @@ imagePluginHooks: {
708
780
  insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
709
781
  onBlur: RealmNode<FocusEvent>;
710
782
  iconComponentFor: RealmNode<(name: IconKey) => ReactNode>;
783
+ markdownProcessingError: RealmNode<{
784
+ error: string;
785
+ source: string;
786
+ } | null>;
787
+ markdownErrorSignal: RealmNode<{
788
+ error: string;
789
+ source: string;
790
+ }>;
711
791
  }, K_2>) => void;
712
792
  };
713
793
  /** @internal */