@mdxeditor/editor 1.11.5 → 1.12.1

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.
@@ -33,6 +33,10 @@ type EditLinkDialog = {
33
33
  linkNodeKey: string;
34
34
  rectangle: RectData;
35
35
  };
36
+ type LinkDialogPluginParamsType = {
37
+ LinkDialog?: () => JSX.Element;
38
+ linkAutocompleteSuggestions?: string[];
39
+ };
36
40
  export declare const
37
41
  /** @internal */
38
42
  linkDialogPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
@@ -163,9 +167,7 @@ linkDialogPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
163
167
  openLinkEditDialog: RealmNode<true>;
164
168
  applyLinkChanges: RealmNode<true>;
165
169
  linkAutocompleteSuggestions: RealmNode<string[]>;
166
- }>, {
167
- linkAutocompleteSuggestions?: string[] | undefined;
168
- }>,
170
+ }>, LinkDialogPluginParamsType>,
169
171
  /** @internal */
170
172
  linkDialogPluginHooks: {
171
173
  useRealmContext: () => TypedRealm<{
@@ -244,8 +244,8 @@ const [
244
244
  applyParamsToSystem(r, params = {}) {
245
245
  r.pubKey("linkAutocompleteSuggestions", params.linkAutocompleteSuggestions || []);
246
246
  },
247
- init(r) {
248
- r.pubKey("addComposerChild", LinkDialog);
247
+ init(r, params) {
248
+ r.pubKey("addComposerChild", (params == null ? void 0 : params.LinkDialog) || LinkDialog);
249
249
  }
250
250
  });
251
251
  export {
@@ -77,6 +77,9 @@ const [
77
77
  realm.pubKey("addComposerChild", TabIndentationPlugin);
78
78
  realm.pubKey("addComposerChild", ListPlugin);
79
79
  realm.pubKey("addComposerChild", CheckListPlugin);
80
+ realm.pubKey("addNestedEditorChild", TabIndentationPlugin);
81
+ realm.pubKey("addNestedEditorChild", ListPlugin);
82
+ realm.pubKey("addNestedEditorChild", CheckListPlugin);
80
83
  }
81
84
  });
82
85
  function getElementNodesInSelection(selection) {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "version": "1.11.5",
12
+ "version": "1.12.1",
13
13
  "description": "React component for rich text markdown editing",
14
14
  "scripts": {
15
15
  "build": "vite build",