@mdxeditor/editor 0.12.0 → 0.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.
- package/dist/MDXEditor.d.ts +4 -0
- package/dist/MDXEditor.js +11 -10
- package/dist/plugins/codeblock/index.d.ts +13 -3
- package/dist/plugins/codemirror/index.d.ts +17 -3
- package/dist/plugins/core/NestedLexicalEditor.d.ts +1 -1
- package/dist/plugins/core/NestedLexicalEditor.js +4 -4
- package/dist/plugins/core/SharedHistoryPlugin.js +1 -1
- package/dist/plugins/core/index.d.ts +12 -3
- package/dist/plugins/core/index.js +4 -1
- package/dist/plugins/diff-source/index.d.ts +13 -3
- package/dist/plugins/directives/index.d.ts +13 -3
- package/dist/plugins/frontmatter/index.d.ts +13 -3
- package/dist/plugins/headings/index.d.ts +3 -1
- package/dist/plugins/image/ImageEditor.js +2 -2
- package/dist/plugins/image/index.d.ts +13 -3
- package/dist/plugins/jsx/index.d.ts +12 -2
- package/dist/plugins/link/AutoLinkPlugin.d.ts +9 -0
- package/dist/plugins/link/AutoLinkPlugin.js +18 -0
- package/dist/plugins/link/index.d.ts +21 -4
- package/dist/plugins/link/index.js +16 -5
- package/dist/plugins/link-dialog/index.d.ts +11 -3
- package/dist/plugins/link-dialog/index.js +1 -0
- package/dist/plugins/lists/index.d.ts +13 -3
- package/dist/plugins/lists/index.js +2 -2
- package/dist/plugins/markdown-shortcut/index.d.ts +1 -0
- package/dist/plugins/markdown-shortcut/index.js +1 -1
- package/dist/plugins/quote/index.d.ts +10 -3
- package/dist/plugins/sandpack/index.d.ts +16 -2
- package/dist/plugins/table/TableEditor.js +5 -5
- package/dist/plugins/table/index.d.ts +13 -3
- package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.d.ts +1 -1
- package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.js +1 -1
- package/dist/plugins/thematic-break/MdastThematicBreakVisitor.js +1 -1
- package/dist/plugins/thematic-break/index.d.ts +13 -3
- package/dist/plugins/thematic-break/index.js +2 -2
- package/dist/plugins/toolbar/index.d.ts +10 -2
- package/dist/style.css +184 -165
- package/dist/styles/ui.module.css.js +90 -84
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RefObject,
|
|
1
|
+
import type { RefObject, ReactNode, ComponentType } from 'react';
|
|
2
2
|
import type { Options } from 'mdast-util-to-markdown';
|
|
3
3
|
import type { Config } from 'mdast-util-from-markdown/lib';
|
|
4
4
|
import type { Extension } from 'micromark-util-types';
|
|
@@ -41,6 +41,7 @@ export declare const thematicBreakSystem: SystemSpec<[SystemSpec<[], (r: Realm)
|
|
|
41
41
|
markdown: RealmNode<string>;
|
|
42
42
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
43
43
|
contentEditableClassName: RealmNode<string>;
|
|
44
|
+
placeholder: RealmNode<ReactNode>;
|
|
44
45
|
autoFocus: RealmNode<boolean>;
|
|
45
46
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
46
47
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -90,6 +91,7 @@ export declare const thematicBreakSystem: SystemSpec<[SystemSpec<[], (r: Realm)
|
|
|
90
91
|
markdown: RealmNode<string>;
|
|
91
92
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
92
93
|
contentEditableClassName: RealmNode<string>;
|
|
94
|
+
placeholder: RealmNode<ReactNode>;
|
|
93
95
|
autoFocus: RealmNode<boolean>;
|
|
94
96
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
95
97
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -144,6 +146,7 @@ thematicBreakPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
144
146
|
markdown: RealmNode<string>;
|
|
145
147
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
146
148
|
contentEditableClassName: RealmNode<string>;
|
|
149
|
+
placeholder: RealmNode<ReactNode>;
|
|
147
150
|
autoFocus: RealmNode<boolean>;
|
|
148
151
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
149
152
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -193,6 +196,7 @@ thematicBreakPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
193
196
|
markdown: RealmNode<string>;
|
|
194
197
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
195
198
|
contentEditableClassName: RealmNode<string>;
|
|
199
|
+
placeholder: RealmNode<ReactNode>;
|
|
196
200
|
autoFocus: RealmNode<boolean>;
|
|
197
201
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
198
202
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -249,6 +253,7 @@ thematicBreakPluginHooks: {
|
|
|
249
253
|
markdown: RealmNode<string>;
|
|
250
254
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
251
255
|
contentEditableClassName: RealmNode<string>;
|
|
256
|
+
placeholder: RealmNode<ReactNode>;
|
|
252
257
|
autoFocus: RealmNode<boolean>;
|
|
253
258
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
254
259
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -270,7 +275,7 @@ thematicBreakPluginHooks: {
|
|
|
270
275
|
convertSelectionToNode: RealmNode<() => ElementNode>;
|
|
271
276
|
insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
|
|
272
277
|
}>;
|
|
273
|
-
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" | "autoFocus" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "insertThematicBreak">(key: K, callback: (value: ValueForKey<{
|
|
278
|
+
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" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "insertThematicBreak">(key: K, callback: (value: ValueForKey<{
|
|
274
279
|
insertThematicBreak: RealmNode<true>;
|
|
275
280
|
} & {
|
|
276
281
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -301,6 +306,7 @@ thematicBreakPluginHooks: {
|
|
|
301
306
|
markdown: RealmNode<string>;
|
|
302
307
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
303
308
|
contentEditableClassName: RealmNode<string>;
|
|
309
|
+
placeholder: RealmNode<ReactNode>;
|
|
304
310
|
autoFocus: RealmNode<boolean>;
|
|
305
311
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
306
312
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -353,6 +359,7 @@ thematicBreakPluginHooks: {
|
|
|
353
359
|
markdown: RealmNode<string>;
|
|
354
360
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
355
361
|
contentEditableClassName: RealmNode<string>;
|
|
362
|
+
placeholder: RealmNode<ReactNode>;
|
|
356
363
|
autoFocus: RealmNode<boolean>;
|
|
357
364
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
358
365
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -404,6 +411,7 @@ thematicBreakPluginHooks: {
|
|
|
404
411
|
markdown: RealmNode<string>;
|
|
405
412
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
406
413
|
contentEditableClassName: RealmNode<string>;
|
|
414
|
+
placeholder: RealmNode<ReactNode>;
|
|
407
415
|
autoFocus: RealmNode<boolean>;
|
|
408
416
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
409
417
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -456,6 +464,7 @@ thematicBreakPluginHooks: {
|
|
|
456
464
|
markdown: RealmNode<string>;
|
|
457
465
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
458
466
|
contentEditableClassName: RealmNode<string>;
|
|
467
|
+
placeholder: RealmNode<ReactNode>;
|
|
459
468
|
autoFocus: RealmNode<boolean>;
|
|
460
469
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
461
470
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -477,7 +486,7 @@ thematicBreakPluginHooks: {
|
|
|
477
486
|
convertSelectionToNode: RealmNode<() => ElementNode>;
|
|
478
487
|
insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
|
|
479
488
|
}>) => void;
|
|
480
|
-
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" | "autoFocus" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "insertThematicBreak">(key: K_2) => (value: ValueForKey<{
|
|
489
|
+
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" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "insertThematicBreak">(key: K_2) => (value: ValueForKey<{
|
|
481
490
|
insertThematicBreak: RealmNode<true>;
|
|
482
491
|
} & {
|
|
483
492
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -508,6 +517,7 @@ thematicBreakPluginHooks: {
|
|
|
508
517
|
markdown: RealmNode<string>;
|
|
509
518
|
editorRootElementRef: RealmNode<RefObject<HTMLDivElement> | null>;
|
|
510
519
|
contentEditableClassName: RealmNode<string>;
|
|
520
|
+
placeholder: RealmNode<ReactNode>;
|
|
511
521
|
autoFocus: RealmNode<boolean>;
|
|
512
522
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
513
523
|
addComposerChild: RealmNode<ComponentType<{}>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { coreSystem } from "../core/index.js";
|
|
2
2
|
import { MdastThematicBreakVisitor } from "./MdastThematicBreakVisitor.js";
|
|
3
3
|
import { LexicalThematicBreakVisitor } from "./LexicalThematicBreakVisitor.js";
|
|
4
|
-
import { INSERT_HORIZONTAL_RULE_COMMAND, HorizontalRuleNode } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
5
|
-
import { HorizontalRulePlugin } from "@lexical/react/LexicalHorizontalRulePlugin";
|
|
4
|
+
import { INSERT_HORIZONTAL_RULE_COMMAND, HorizontalRuleNode } from "@lexical/react/LexicalHorizontalRuleNode.js";
|
|
5
|
+
import { HorizontalRulePlugin } from "@lexical/react/LexicalHorizontalRulePlugin.js";
|
|
6
6
|
import { system } from "../../gurx/realmFactory.js";
|
|
7
7
|
import { realmPlugin } from "../../gurx/react.js";
|
|
8
8
|
const thematicBreakSystem = system(
|
|
@@ -40,6 +40,7 @@ export declare const toolbarSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
40
40
|
markdown: RealmNode<string>;
|
|
41
41
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
42
42
|
contentEditableClassName: RealmNode<string>;
|
|
43
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
43
44
|
autoFocus: RealmNode<boolean>;
|
|
44
45
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
45
46
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -94,6 +95,7 @@ toolbarPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
94
95
|
markdown: RealmNode<string>;
|
|
95
96
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
96
97
|
contentEditableClassName: RealmNode<string>;
|
|
98
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
97
99
|
autoFocus: RealmNode<boolean>;
|
|
98
100
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
99
101
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -152,6 +154,7 @@ toolbarPluginHooks: {
|
|
|
152
154
|
markdown: RealmNode<string>;
|
|
153
155
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
154
156
|
contentEditableClassName: RealmNode<string>;
|
|
157
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
155
158
|
autoFocus: RealmNode<boolean>;
|
|
156
159
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
157
160
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -173,7 +176,7 @@ toolbarPluginHooks: {
|
|
|
173
176
|
convertSelectionToNode: RealmNode<() => ElementNode>;
|
|
174
177
|
insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
|
|
175
178
|
}>;
|
|
176
|
-
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" | "autoFocus" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "toolbarContents">(key: K, callback: (value: ValueForKey<{
|
|
179
|
+
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" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "toolbarContents">(key: K, callback: (value: ValueForKey<{
|
|
177
180
|
toolbarContents: RealmNode<() => React.ReactNode>;
|
|
178
181
|
} & {
|
|
179
182
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -204,6 +207,7 @@ toolbarPluginHooks: {
|
|
|
204
207
|
markdown: RealmNode<string>;
|
|
205
208
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
206
209
|
contentEditableClassName: RealmNode<string>;
|
|
210
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
207
211
|
autoFocus: RealmNode<boolean>;
|
|
208
212
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
209
213
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -256,6 +260,7 @@ toolbarPluginHooks: {
|
|
|
256
260
|
markdown: RealmNode<string>;
|
|
257
261
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
258
262
|
contentEditableClassName: RealmNode<string>;
|
|
263
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
259
264
|
autoFocus: RealmNode<boolean>;
|
|
260
265
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
261
266
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -307,6 +312,7 @@ toolbarPluginHooks: {
|
|
|
307
312
|
markdown: RealmNode<string>;
|
|
308
313
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
309
314
|
contentEditableClassName: RealmNode<string>;
|
|
315
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
310
316
|
autoFocus: RealmNode<boolean>;
|
|
311
317
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
312
318
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -359,6 +365,7 @@ toolbarPluginHooks: {
|
|
|
359
365
|
markdown: RealmNode<string>;
|
|
360
366
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
361
367
|
contentEditableClassName: RealmNode<string>;
|
|
368
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
362
369
|
autoFocus: RealmNode<boolean>;
|
|
363
370
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
364
371
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|
|
@@ -380,7 +387,7 @@ toolbarPluginHooks: {
|
|
|
380
387
|
convertSelectionToNode: RealmNode<() => ElementNode>;
|
|
381
388
|
insertDecoratorNode: RealmNode<() => DecoratorNode<unknown>>;
|
|
382
389
|
}>) => void;
|
|
383
|
-
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" | "autoFocus" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "toolbarContents">(key: K_2) => (value: ValueForKey<{
|
|
390
|
+
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" | "composerChildren" | "addComposerChild" | "topAreaChildren" | "addTopAreaChild" | "nestedEditorChildren" | "addNestedEditorChild" | "editorWrappers" | "addEditorWrapper" | "currentFormat" | "editorInFocus" | "applyFormat" | "currentBlockType" | "applyBlockType" | "convertSelectionToNode" | "insertDecoratorNode" | "toolbarContents">(key: K_2) => (value: ValueForKey<{
|
|
384
391
|
toolbarContents: RealmNode<() => React.ReactNode>;
|
|
385
392
|
} & {
|
|
386
393
|
activeEditor: RealmNode<LexicalEditor | null>;
|
|
@@ -411,6 +418,7 @@ toolbarPluginHooks: {
|
|
|
411
418
|
markdown: RealmNode<string>;
|
|
412
419
|
editorRootElementRef: RealmNode<React.RefObject<HTMLDivElement> | null>;
|
|
413
420
|
contentEditableClassName: RealmNode<string>;
|
|
421
|
+
placeholder: RealmNode<React.ReactNode>;
|
|
414
422
|
autoFocus: RealmNode<boolean>;
|
|
415
423
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
416
424
|
addComposerChild: RealmNode<React.ComponentType<{}>>;
|