@fileverse-dev/ddoc 2.3.0-rtc-patch-18 → 2.3.0-rtc-patch-19

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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-m7EieHJl.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-Doc2hu1k.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -89873,7 +89873,7 @@ async function Ov(e, t) {
89873
89873
  });
89874
89874
  return U === "0x" ? { data: void 0 } : { data: U };
89875
89875
  } catch (N) {
89876
- const H = OAt(N), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-N4j4K9jw.mjs");
89876
+ const H = OAt(N), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-ByiV4Pqj.mjs");
89877
89877
  if (e.ccipRead !== !1 && (H == null ? void 0 : H.slice(0, 10)) === P && x)
89878
89878
  return { data: await O(e, { data: H, to: x }) };
89879
89879
  throw j && (H == null ? void 0 : H.slice(0, 10)) === "0x101bb98d" ? new HEt({ factory: u }) : lre(N, {
@@ -105072,7 +105072,7 @@ const kBt = /* @__PURE__ */ Jd(wBt), zp = () => {
105072
105072
  ),
105073
105073
  children: [
105074
105074
  K,
105075
- u && h && /* @__PURE__ */ k.jsx(
105075
+ u && !p && /* @__PURE__ */ k.jsx(
105076
105076
  Lr,
105077
105077
  {
105078
105078
  side: "bottom",
@@ -105290,7 +105290,10 @@ const kBt = /* @__PURE__ */ Jd(wBt), zp = () => {
105290
105290
  variant: "ghost",
105291
105291
  disabled: !u,
105292
105292
  size: "sm",
105293
- onClick: U.command
105293
+ onClick: U.command,
105294
+ disabled: p,
105295
+ classNames: "disabled:!bg-transparent",
105296
+ tooltip: p ? "Reminders are not available during real-time collaboration" : ""
105294
105297
  }
105295
105298
  ),
105296
105299
  className: "!max-w-[300px] border-none shadow-none",
@@ -221108,12 +221111,13 @@ const Win = ({
221108
221111
  onError: t,
221109
221112
  isConnected: n,
221110
221113
  ipfsImageUploadFn: r,
221111
- editor: o
221114
+ editor: o,
221115
+ enableCollaboration: i
221112
221116
  }) => {
221113
- const i = window.__MODEL_CONTEXT__, a = (i == null ? void 0 : i.isAIAgentEnabled) && (i == null ? void 0 : i.activeModel);
221114
- let s = !1;
221115
- o && o.state && o.state.doc && o.state.doc.descendants((u) => u.type.name === "aiWriter" ? (s = !0, !1) : !0);
221116
- const l = !s && a;
221117
+ const a = window.__MODEL_CONTEXT__, s = (a == null ? void 0 : a.isAIAgentEnabled) && (a == null ? void 0 : a.activeModel);
221118
+ let l = !1;
221119
+ o && o.state && o.state.doc && o.state.doc.descendants((d) => d.type.name === "aiWriter" ? (l = !0, !1) : !0);
221120
+ const c = !l && s;
221117
221121
  return [
221118
221122
  {
221119
221123
  title: "AI Writer",
@@ -221121,12 +221125,12 @@ const Win = ({
221121
221125
  searchTerms: ["ai", "generate", "writer", "assistant", "text"],
221122
221126
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Sparkles", size: "md" }),
221123
221127
  image: "",
221124
- command: ({ editor: u, range: d }) => {
221125
- if (!l) {
221128
+ command: ({ editor: d, range: f }) => {
221129
+ if (!c) {
221126
221130
  t && t("Only one AI Writer can be active at a time.");
221127
221131
  return;
221128
221132
  }
221129
- u.chain().focus().deleteRange(d).run(), u.commands.insertAIWriter ? u.commands.insertAIWriter({
221133
+ d.chain().focus().deleteRange(f).run(), d.commands.insertAIWriter ? d.commands.insertAIWriter({
221130
221134
  prompt: "",
221131
221135
  content: "",
221132
221136
  tone: "neutral"
@@ -221134,7 +221138,7 @@ const Win = ({
221134
221138
  "AIWriter is not available. Make sure the extension is properly configured."
221135
221139
  ));
221136
221140
  },
221137
- isDisabled: !l
221141
+ isDisabled: !c
221138
221142
  },
221139
221143
  {
221140
221144
  title: "Text",
@@ -221142,8 +221146,8 @@ const Win = ({
221142
221146
  searchTerms: ["p", "paragraph"],
221143
221147
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Text", size: "md" }),
221144
221148
  image: "",
221145
- command: ({ editor: u, range: d }) => {
221146
- u.chain().focus().deleteRange(d).toggleNode("paragraph", "paragraph").run();
221149
+ command: ({ editor: d, range: f }) => {
221150
+ d.chain().focus().deleteRange(f).toggleNode("paragraph", "paragraph").run();
221147
221151
  }
221148
221152
  },
221149
221153
  {
@@ -221152,8 +221156,8 @@ const Win = ({
221152
221156
  searchTerms: ["todo", "task", "list", "check", "checkbox"],
221153
221157
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "ListChecks", size: "md" }),
221154
221158
  image: "",
221155
- command: ({ editor: u, range: d }) => {
221156
- u.chain().focus().deleteRange(d).toggleTaskList().run();
221159
+ command: ({ editor: d, range: f }) => {
221160
+ d.chain().focus().deleteRange(f).toggleTaskList().run();
221157
221161
  }
221158
221162
  },
221159
221163
  {
@@ -221162,8 +221166,8 @@ const Win = ({
221162
221166
  searchTerms: ["title", "big", "large"],
221163
221167
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Heading1", size: "md" }),
221164
221168
  image: "",
221165
- command: ({ editor: u, range: d }) => {
221166
- u.chain().focus().deleteRange(d).setNode("heading", { level: 1 }).run();
221169
+ command: ({ editor: d, range: f }) => {
221170
+ d.chain().focus().deleteRange(f).setNode("heading", { level: 1 }).run();
221167
221171
  }
221168
221172
  },
221169
221173
  {
@@ -221172,8 +221176,8 @@ const Win = ({
221172
221176
  searchTerms: ["subtitle", "medium"],
221173
221177
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Heading2", size: "md" }),
221174
221178
  image: "",
221175
- command: ({ editor: u, range: d }) => {
221176
- u.chain().focus().deleteRange(d).setNode("heading", { level: 2 }).run();
221179
+ command: ({ editor: d, range: f }) => {
221180
+ d.chain().focus().deleteRange(f).setNode("heading", { level: 2 }).run();
221177
221181
  }
221178
221182
  },
221179
221183
  {
@@ -221182,8 +221186,8 @@ const Win = ({
221182
221186
  searchTerms: ["subtitle", "small"],
221183
221187
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Heading3", size: "md" }),
221184
221188
  image: "",
221185
- command: ({ editor: u, range: d }) => {
221186
- u.chain().focus().deleteRange(d).setNode("heading", { level: 3 }).run();
221189
+ command: ({ editor: d, range: f }) => {
221190
+ d.chain().focus().deleteRange(f).setNode("heading", { level: 3 }).run();
221187
221191
  }
221188
221192
  },
221189
221193
  {
@@ -221192,8 +221196,8 @@ const Win = ({
221192
221196
  searchTerms: ["unordered", "point"],
221193
221197
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "List", size: "md" }),
221194
221198
  image: "",
221195
- command: ({ editor: u, range: d }) => {
221196
- u.chain().focus().deleteRange(d).toggleBulletList().run();
221199
+ command: ({ editor: d, range: f }) => {
221200
+ d.chain().focus().deleteRange(f).toggleBulletList().run();
221197
221201
  }
221198
221202
  },
221199
221203
  {
@@ -221202,13 +221206,13 @@ const Win = ({
221202
221206
  searchTerms: ["ordered"],
221203
221207
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "ListOrdered", size: "md" }),
221204
221208
  image: "",
221205
- command: ({ editor: u, range: d }) => {
221206
- u.chain().focus().deleteRange(d).toggleOrderedList().run();
221209
+ command: ({ editor: d, range: f }) => {
221210
+ d.chain().focus().deleteRange(f).toggleOrderedList().run();
221207
221211
  }
221208
221212
  },
221209
221213
  {
221210
221214
  title: "Reminder",
221211
- description: n ? "Set a reminder and we'll notify you right on time." : "Log-in to start creating reminders.",
221215
+ description: n ? i ? "Reminders are not available during real-time collaboration." : "Set a reminder and we will notify you right on time." : "Log-in to start creating reminders.",
221212
221216
  searchTerms: ["reminder", "alert", "notification"],
221213
221217
  icon: /* @__PURE__ */ k.jsx(
221214
221218
  Ve,
@@ -221219,10 +221223,10 @@ const Win = ({
221219
221223
  }
221220
221224
  ),
221221
221225
  image: "",
221222
- isDisabled: !n,
221223
- command: ({ editor: u, range: d }) => {
221226
+ isDisabled: !n || i,
221227
+ command: ({ editor: d, range: f }) => {
221224
221228
  if (n)
221225
- return Uin(u, d, "slash", t), !0;
221229
+ return Uin(d, f, "slash", t), !0;
221226
221230
  }
221227
221231
  },
221228
221232
  {
@@ -221231,9 +221235,9 @@ const Win = ({
221231
221235
  searchTerms: ["callout", "note", "highlight", "box"],
221232
221236
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Callout", size: "md" }),
221233
221237
  image: "",
221234
- command: ({ editor: u, range: d }) => {
221235
- const f = u.getAttributes("textStyle");
221236
- u.chain().focus().deleteRange(d).insertContent({
221238
+ command: ({ editor: d, range: f }) => {
221239
+ const h = d.getAttributes("textStyle");
221240
+ d.chain().focus().deleteRange(f).insertContent({
221237
221241
  type: "callout",
221238
221242
  content: [
221239
221243
  {
@@ -221241,7 +221245,7 @@ const Win = ({
221241
221245
  content: []
221242
221246
  }
221243
221247
  ]
221244
- }).run(), f && u.chain().focus().setMark("textStyle", f).run();
221248
+ }).run(), h && d.chain().focus().setMark("textStyle", h).run();
221245
221249
  }
221246
221250
  },
221247
221251
  {
@@ -221250,8 +221254,8 @@ const Win = ({
221250
221254
  searchTerms: ["pagebreak", "break", "line", "page"],
221251
221255
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "PageBreak", size: "md" }),
221252
221256
  image: "",
221253
- command: ({ editor: u, range: d }) => {
221254
- u.chain().focus().deleteRange(d).setPageBreak().run();
221257
+ command: ({ editor: d, range: f }) => {
221258
+ d.chain().focus().deleteRange(f).setPageBreak().run();
221255
221259
  }
221256
221260
  },
221257
221261
  {
@@ -221260,8 +221264,8 @@ const Win = ({
221260
221264
  searchTerms: ["hr", "divider", "break", "line", "delimiter"],
221261
221265
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Minus", size: "md" }),
221262
221266
  image: "",
221263
- command: ({ editor: u, range: d }) => {
221264
- u.chain().focus().deleteRange(d).setHorizontalRule().run();
221267
+ command: ({ editor: d, range: f }) => {
221268
+ d.chain().focus().deleteRange(f).setHorizontalRule().run();
221265
221269
  }
221266
221270
  },
221267
221271
  {
@@ -221270,7 +221274,7 @@ const Win = ({
221270
221274
  searchTerms: ["blockquote"],
221271
221275
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "TextQuote", size: "md" }),
221272
221276
  image: "",
221273
- command: ({ editor: u, range: d }) => u.chain().focus().deleteRange(d).toggleNode("paragraph", "paragraph").toggleBlockquote().run()
221277
+ command: ({ editor: d, range: f }) => d.chain().focus().deleteRange(f).toggleNode("paragraph", "paragraph").toggleBlockquote().run()
221274
221278
  },
221275
221279
  {
221276
221280
  title: "Code",
@@ -221278,7 +221282,7 @@ const Win = ({
221278
221282
  searchTerms: ["codeblock"],
221279
221283
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Code", size: "md" }),
221280
221284
  image: "",
221281
- command: ({ editor: u, range: d }) => u.chain().focus().deleteRange(d).toggleCodeBlock().run()
221285
+ command: ({ editor: d, range: f }) => d.chain().focus().deleteRange(f).toggleCodeBlock().run()
221282
221286
  },
221283
221287
  {
221284
221288
  title: "Table",
@@ -221286,7 +221290,7 @@ const Win = ({
221286
221290
  searchTerms: ["table"],
221287
221291
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Table", size: "md" }),
221288
221292
  image: "",
221289
- command: ({ editor: u, range: d }) => u.chain().focus().deleteRange(d).insertTable({ rows: 3, cols: 2, withHeaderRow: !0 }).run()
221293
+ command: ({ editor: d, range: f }) => d.chain().focus().deleteRange(f).insertTable({ rows: 3, cols: 2, withHeaderRow: !0 }).run()
221290
221294
  },
221291
221295
  {
221292
221296
  title: "Image",
@@ -221294,24 +221298,24 @@ const Win = ({
221294
221298
  searchTerms: ["photo", "picture", "media"],
221295
221299
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "ImageUp", size: "md" }),
221296
221300
  image: "",
221297
- command: ({ editor: u, range: d }) => {
221298
- u.chain().focus().deleteRange(d).run();
221299
- const f = document.createElement("input");
221300
- f.type = "file", f.accept = "image/png, image/jpeg, image/gif", f.onchange = async () => {
221301
- var h;
221302
- if ((h = f.files) != null && h.length) {
221303
- const p = f.files[0];
221304
- if (!Lm(p, t))
221301
+ command: ({ editor: d, range: f }) => {
221302
+ d.chain().focus().deleteRange(f).run();
221303
+ const h = document.createElement("input");
221304
+ h.type = "file", h.accept = "image/png, image/jpeg, image/gif", h.onchange = async () => {
221305
+ var p;
221306
+ if ((p = h.files) != null && p.length) {
221307
+ const m = h.files[0];
221308
+ if (!Lm(m, t))
221305
221309
  return;
221306
- const m = p.size, g = r ? wu.Extended : wu.Base;
221307
- if (m > g.maxSize) {
221308
- t && typeof t == "function" && t(g.errorMsg);
221310
+ const g = m.size, y = r ? wu.Extended : wu.Base;
221311
+ if (g > y.maxSize) {
221312
+ t && typeof t == "function" && t(y.errorMsg);
221309
221313
  return;
221310
221314
  }
221311
- const y = u.view.state.selection.from;
221312
- jm(p, u.view, y, r);
221315
+ const x = d.view.state.selection.from;
221316
+ jm(m, d.view, x, r);
221313
221317
  }
221314
- }, f.click();
221318
+ }, h.click();
221315
221319
  }
221316
221320
  },
221317
221321
  {
@@ -221320,8 +221324,8 @@ const Win = ({
221320
221324
  searchTerms: ["iframe", "embed", "video", "youtube"],
221321
221325
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Youtube", size: "md" }),
221322
221326
  image: "",
221323
- command: ({ editor: u, range: d }) => {
221324
- u.chain().focus().deleteRange(d).setActionButton("iframe").run();
221327
+ command: ({ editor: d, range: f }) => {
221328
+ d.chain().focus().deleteRange(f).setActionButton("iframe").run();
221325
221329
  }
221326
221330
  },
221327
221331
  {
@@ -221330,8 +221334,8 @@ const Win = ({
221330
221334
  searchTerms: ["embed", "twitter", "tweet"],
221331
221335
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "XSocial", size: "md" }),
221332
221336
  image: "",
221333
- command: ({ editor: u, range: d }) => {
221334
- u.chain().focus().deleteRange(d).setActionButton("twitter").run();
221337
+ command: ({ editor: d, range: f }) => {
221338
+ d.chain().focus().deleteRange(f).setActionButton("twitter").run();
221335
221339
  }
221336
221340
  },
221337
221341
  {
@@ -221340,8 +221344,8 @@ const Win = ({
221340
221344
  searchTerms: ["col", "column", "2", "layout"],
221341
221345
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Columns2", size: "md" }),
221342
221346
  image: "",
221343
- command: ({ editor: u }) => {
221344
- u.chain().focus().setColumns(2).focus(u.state.selection.head - 1).run();
221347
+ command: ({ editor: d }) => {
221348
+ d.chain().focus().setColumns(2).focus(d.state.selection.head - 1).run();
221345
221349
  }
221346
221350
  },
221347
221351
  {
@@ -221350,16 +221354,16 @@ const Win = ({
221350
221354
  searchTerms: ["col", "column", "3", "layout"],
221351
221355
  icon: /* @__PURE__ */ k.jsx(Ve, { name: "Columns3", size: "md" }),
221352
221356
  image: "",
221353
- command: ({ editor: u }) => {
221354
- u.chain().focus().setColumns(3).focus(u.state.selection.head - 1).run();
221357
+ command: ({ editor: d }) => {
221358
+ d.chain().focus().setColumns(3).focus(d.state.selection.head - 1).run();
221355
221359
  }
221356
221360
  }
221357
- ].filter((u) => {
221358
- if (u.title === "AI Writer" && u.isDisabled)
221361
+ ].filter((d) => {
221362
+ if (d.title === "AI Writer" && d.isDisabled)
221359
221363
  return !1;
221360
221364
  if (typeof e == "string" && e.length > 0) {
221361
- const d = e.toLowerCase();
221362
- return u.title.toLowerCase().includes(d) || u.description.toLowerCase().includes(d) || u.searchTerms && u.searchTerms.some((f) => f.includes(d));
221365
+ const f = e.toLowerCase();
221366
+ return d.title.toLowerCase().includes(f) || d.description.toLowerCase().includes(f) || d.searchTerms && d.searchTerms.some((h) => h.includes(f));
221363
221367
  }
221364
221368
  return !0;
221365
221369
  });
@@ -221529,17 +221533,18 @@ const Win = ({
221529
221533
  ), t == null || t[0].destroy(), e == null || e.destroy();
221530
221534
  }
221531
221535
  };
221532
- }, uk = (e, t, n) => {
221533
- const r = ({ query: o, editor: i }) => Win({
221534
- query: o,
221536
+ }, uk = (e, t, n, r) => {
221537
+ const o = ({ query: i, editor: a }) => Win({
221538
+ query: i,
221535
221539
  onError: e,
221536
221540
  ipfsImageUploadFn: t,
221537
221541
  isConnected: n,
221538
- editor: i
221542
+ editor: a,
221543
+ enableCollaboration: r
221539
221544
  });
221540
221545
  return Kin.configure({
221541
221546
  suggestion: {
221542
- items: r,
221547
+ items: o,
221543
221548
  render: Jin
221544
221549
  }
221545
221550
  });
@@ -234625,7 +234630,8 @@ const P0n = (e) => e.context.awareness, z0n = (e) => e.context.isReady && e.cont
234625
234630
  uk(
234626
234631
  (Ae) => l == null ? void 0 : l(Ae),
234627
234632
  d,
234628
- E
234633
+ E,
234634
+ n
234629
234635
  ),
234630
234636
  y1e,
234631
234637
  b1e,
@@ -234655,10 +234661,11 @@ const P0n = (e) => e.context.awareness, z0n = (e) => e.context.isReady && e.cont
234655
234661
  uk(
234656
234662
  (Pe) => l == null ? void 0 : l(Pe),
234657
234663
  d,
234658
- E
234664
+ E,
234665
+ n
234659
234666
  )
234660
234667
  ]);
234661
- }, [E]);
234668
+ }, [E, n]);
234662
234669
  const pe = tt(!1), [oe, we] = Le([]), be = (Ae, Pe, Ye) => {
234663
234670
  let ct = !1;
234664
234671
  return Ae.doc.nodesBetween(Pe, Ye, (it) => {
@@ -234767,10 +234774,17 @@ const P0n = (e) => e.context.awareness, z0n = (e) => e.context.isReady && e.cont
234767
234774
  uk(
234768
234775
  (Ae) => l == null ? void 0 : l(Ae),
234769
234776
  d,
234770
- E
234777
+ E,
234778
+ n
234771
234779
  )
234772
234780
  ]);
234773
- }, [j, R, _, E]), _e(() => {
234781
+ }, [
234782
+ j,
234783
+ R,
234784
+ _,
234785
+ E,
234786
+ n
234787
+ ]), _e(() => {
234774
234788
  if (m) {
234775
234789
  fk.setZoom(m);
234776
234790
  const Ae = setTimeout(() => {
@@ -234808,7 +234822,7 @@ const P0n = (e) => e.context.awareness, z0n = (e) => e.context.isReady && e.cont
234808
234822
  }), [K, n, I == null ? void 0 : I.collaborationId]);
234809
234823
  const We = tt(null);
234810
234824
  _e(() => {
234811
- const Ae = ae && (I != null && I.isOwner) ? !e : !1;
234825
+ const Ae = ae ? !!(I != null && I.isOwner) : !e;
234812
234826
  Ee == null || Ee.setEditable(Ae);
234813
234827
  }, [e, Ee, ae, I == null ? void 0 : I.isOwner]), _e(() => {
234814
234828
  ae && O(!K);
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-m7EieHJl.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Doc2hu1k.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -2,5 +2,5 @@ import { Extension } from '@tiptap/core';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
4
  export declare const Command: Extension<any, any>;
5
- declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean) => Extension<any, any>;
5
+ declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean, enableCollaboration?: boolean) => Extension<any, any>;
6
6
  export default SlashCommand;
@@ -1,12 +1,13 @@
1
1
  import { CommandProps } from './types';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
- export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, }: {
4
+ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, enableCollaboration, }: {
5
5
  query: string;
6
6
  onError?: (errorString: string) => void;
7
7
  ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>;
8
8
  isConnected?: boolean;
9
9
  editor?: any;
10
+ enableCollaboration?: boolean;
10
11
  }) => ({
11
12
  title: string;
12
13
  description: string;
@@ -23,5 +24,13 @@ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsIma
23
24
  image: string;
24
25
  command: ({ editor, range }: CommandProps) => void;
25
26
  isDisabled?: undefined;
27
+ } | {
28
+ title: string;
29
+ description: string;
30
+ searchTerms: string[];
31
+ icon: import("react/jsx-runtime").JSX.Element;
32
+ image: string;
33
+ isDisabled: boolean | undefined;
34
+ command: ({ editor, range }: CommandProps) => true | undefined;
26
35
  })[];
27
36
  export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.3.0-rtc-patch-18",
5
+ "version": "2.3.0-rtc-patch-19",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {