quoin-editor 1.5.0 → 1.7.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.
Files changed (148) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +4 -3
  3. package/dist/ai.cjs +21 -23
  4. package/dist/ai.js +1 -1
  5. package/dist/catalogue.cjs +18 -18
  6. package/dist/catalogue.d.cts +2 -0
  7. package/dist/catalogue.d.ts +2 -0
  8. package/dist/catalogue.js +11 -9
  9. package/dist/catalogue.js.map +1 -1
  10. package/dist/chunk-2SWLD6R5.cjs +0 -2
  11. package/dist/chunk-4T4TJ2QS.cjs +0 -2
  12. package/dist/{chunk-2AVGGPLT.js → chunk-5JEQZIRI.js} +3 -3
  13. package/dist/{chunk-2AVGGPLT.js.map → chunk-5JEQZIRI.js.map} +1 -1
  14. package/dist/{chunk-UUSZGUXJ.cjs → chunk-6T5YGCZ5.cjs} +1 -2
  15. package/dist/{chunk-B5OMWOVI.js → chunk-7GU25Z6L.js} +3 -3
  16. package/dist/{chunk-B5OMWOVI.js.map → chunk-7GU25Z6L.js.map} +1 -1
  17. package/dist/chunk-A6PGQVTR.cjs +0 -2
  18. package/dist/chunk-AZF7B2AE.cjs +0 -2
  19. package/dist/{chunk-FNZGXL3O.cjs → chunk-BF7733XS.cjs} +17 -19
  20. package/dist/chunk-BM2GRZNM.cjs +0 -2
  21. package/dist/{chunk-T7O3BROK.cjs → chunk-FNJOPGMN.cjs} +38 -40
  22. package/dist/chunk-H3C3MJW5.cjs +0 -2
  23. package/dist/{chunk-32OZ2WM2.js → chunk-HSLOPJVT.js} +3 -3
  24. package/dist/{chunk-32OZ2WM2.js.map → chunk-HSLOPJVT.js.map} +1 -1
  25. package/dist/{chunk-L6RB43YM.cjs → chunk-I722LBD3.cjs} +19 -21
  26. package/dist/{chunk-46JH34SR.cjs → chunk-JY5VUHKN.cjs} +7 -9
  27. package/dist/{chunk-TKCPXUPP.cjs → chunk-KDK2ATMB.cjs} +15 -17
  28. package/dist/chunk-LE5XMIFJ.cjs +0 -2
  29. package/dist/chunk-LKZJ2TDU.cjs +90 -0
  30. package/dist/{chunk-KF3KKN4N.js → chunk-MNA7MBCH.js} +3 -3
  31. package/dist/{chunk-KF3KKN4N.js.map → chunk-MNA7MBCH.js.map} +1 -1
  32. package/dist/{chunk-LOP66FVU.cjs → chunk-MZXW2HXP.cjs} +8 -10
  33. package/dist/{chunk-HVT5HAAZ.js → chunk-OJ4O6HWC.js} +4 -4
  34. package/dist/{chunk-HVT5HAAZ.js.map → chunk-OJ4O6HWC.js.map} +1 -1
  35. package/dist/{chunk-HT7OF52E.js → chunk-PLUMKN4B.js} +3 -3
  36. package/dist/{chunk-HT7OF52E.js.map → chunk-PLUMKN4B.js.map} +1 -1
  37. package/dist/{chunk-N2SCDXTI.js → chunk-PWUFFHAQ.js} +3 -3
  38. package/dist/{chunk-N2SCDXTI.js.map → chunk-PWUFFHAQ.js.map} +1 -1
  39. package/dist/chunk-QJ34MOFV.cjs +0 -2
  40. package/dist/chunk-QR2NIDUK.cjs +0 -2
  41. package/dist/chunk-RQXJKJ5S.js +88 -0
  42. package/dist/chunk-RQXJKJ5S.js.map +1 -0
  43. package/dist/chunk-STKGRXSA.cjs +0 -2
  44. package/dist/{chunk-O7XZFXPE.js → chunk-UZS3TW75.js} +3 -3
  45. package/dist/{chunk-O7XZFXPE.js.map → chunk-UZS3TW75.js.map} +1 -1
  46. package/dist/chunk-VZZPCYA3.cjs +0 -2
  47. package/dist/chunk-WN7BZDNH.cjs +0 -2
  48. package/dist/chunk-WZA5S5EJ.cjs +0 -2
  49. package/dist/chunk-XZ4NC3Q7.cjs +0 -2
  50. package/dist/{chunk-XFR7QGSN.cjs → chunk-YEFPH27F.cjs} +39 -41
  51. package/dist/comments.cjs +18 -20
  52. package/dist/comments.js +1 -1
  53. package/dist/diagram-extension-D573COJv.d.cts +38 -0
  54. package/dist/diagram-extension-Da7hp-tv.d.ts +38 -0
  55. package/dist/diagram.cjs +25 -0
  56. package/dist/diagram.d.cts +8 -0
  57. package/dist/diagram.d.ts +8 -0
  58. package/dist/diagram.js +10 -0
  59. package/dist/diagram.js.map +1 -0
  60. package/dist/diff.cjs +0 -2
  61. package/dist/docx.cjs +0 -2
  62. package/dist/embed.cjs +4 -6
  63. package/dist/embed.js +2 -2
  64. package/dist/emoji-data.cjs +0 -2
  65. package/dist/emoji.cjs +5 -7
  66. package/dist/emoji.js +2 -2
  67. package/dist/engine.cjs +0 -2
  68. package/dist/engine.d.cts +3 -15
  69. package/dist/engine.d.ts +3 -15
  70. package/dist/find.cjs +6 -8
  71. package/dist/find.js +2 -2
  72. package/dist/headless.cjs +0 -2
  73. package/dist/headless.d.cts +2 -1
  74. package/dist/headless.d.ts +2 -1
  75. package/dist/highlight.cjs +2 -4
  76. package/dist/highlight.js +1 -1
  77. package/dist/index.cjs +12 -14
  78. package/dist/index.d.cts +2 -1
  79. package/dist/index.d.ts +2 -1
  80. package/dist/index.js +1 -1
  81. package/dist/math.cjs +5 -7
  82. package/dist/math.js +3 -3
  83. package/dist/mention.cjs +4 -6
  84. package/dist/mention.js +2 -2
  85. package/dist/presence.cjs +1 -3
  86. package/dist/presence.js +1 -1
  87. package/dist/prism-grammars.cjs +0 -2
  88. package/dist/source.cjs +97 -0
  89. package/dist/source.d.cts +56 -0
  90. package/dist/source.d.ts +56 -0
  91. package/dist/source.js +94 -0
  92. package/dist/source.js.map +1 -0
  93. package/dist/stats.cjs +1 -3
  94. package/dist/stats.js +1 -1
  95. package/dist/styles.css +1 -1
  96. package/dist/table.cjs +21 -23
  97. package/dist/table.js +2 -2
  98. package/dist/to-markdown-BVOzhgVM.d.ts +17 -0
  99. package/dist/to-markdown-CFPMbbiX.d.cts +17 -0
  100. package/dist/toc.cjs +5 -7
  101. package/dist/toc.js +2 -2
  102. package/dist/view.cjs +0 -2
  103. package/dist/yjs.cjs +0 -2
  104. package/package.json +22 -2
  105. package/dist/ai.cjs.map +0 -1
  106. package/dist/catalogue.cjs.map +0 -1
  107. package/dist/chunk-2SWLD6R5.cjs.map +0 -1
  108. package/dist/chunk-46JH34SR.cjs.map +0 -1
  109. package/dist/chunk-4T4TJ2QS.cjs.map +0 -1
  110. package/dist/chunk-A6PGQVTR.cjs.map +0 -1
  111. package/dist/chunk-AZF7B2AE.cjs.map +0 -1
  112. package/dist/chunk-BM2GRZNM.cjs.map +0 -1
  113. package/dist/chunk-FNZGXL3O.cjs.map +0 -1
  114. package/dist/chunk-H3C3MJW5.cjs.map +0 -1
  115. package/dist/chunk-L6RB43YM.cjs.map +0 -1
  116. package/dist/chunk-LE5XMIFJ.cjs.map +0 -1
  117. package/dist/chunk-LOP66FVU.cjs.map +0 -1
  118. package/dist/chunk-QJ34MOFV.cjs.map +0 -1
  119. package/dist/chunk-QR2NIDUK.cjs.map +0 -1
  120. package/dist/chunk-STKGRXSA.cjs.map +0 -1
  121. package/dist/chunk-T7O3BROK.cjs.map +0 -1
  122. package/dist/chunk-TKCPXUPP.cjs.map +0 -1
  123. package/dist/chunk-UUSZGUXJ.cjs.map +0 -1
  124. package/dist/chunk-VZZPCYA3.cjs.map +0 -1
  125. package/dist/chunk-WN7BZDNH.cjs.map +0 -1
  126. package/dist/chunk-WZA5S5EJ.cjs.map +0 -1
  127. package/dist/chunk-XFR7QGSN.cjs.map +0 -1
  128. package/dist/chunk-XZ4NC3Q7.cjs.map +0 -1
  129. package/dist/comments.cjs.map +0 -1
  130. package/dist/diff.cjs.map +0 -1
  131. package/dist/docx.cjs.map +0 -1
  132. package/dist/embed.cjs.map +0 -1
  133. package/dist/emoji-data.cjs.map +0 -1
  134. package/dist/emoji.cjs.map +0 -1
  135. package/dist/engine.cjs.map +0 -1
  136. package/dist/find.cjs.map +0 -1
  137. package/dist/headless.cjs.map +0 -1
  138. package/dist/highlight.cjs.map +0 -1
  139. package/dist/index.cjs.map +0 -1
  140. package/dist/math.cjs.map +0 -1
  141. package/dist/mention.cjs.map +0 -1
  142. package/dist/presence.cjs.map +0 -1
  143. package/dist/prism-grammars.cjs.map +0 -1
  144. package/dist/stats.cjs.map +0 -1
  145. package/dist/table.cjs.map +0 -1
  146. package/dist/toc.cjs.map +0 -1
  147. package/dist/view.cjs.map +0 -1
  148. package/dist/yjs.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkH3C3MJW5_cjs = require('./chunk-H3C3MJW5.cjs');
4
- var chunkUUSZGUXJ_cjs = require('./chunk-UUSZGUXJ.cjs');
4
+ var chunk6T5YGCZ5_cjs = require('./chunk-6T5YGCZ5.cjs');
5
5
  var chunkQJ34MOFV_cjs = require('./chunk-QJ34MOFV.cjs');
6
6
  var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
7
7
  var chunkVZZPCYA3_cjs = require('./chunk-VZZPCYA3.cjs');
@@ -16,7 +16,7 @@ function LinkCard({ controller, blockId, url, title, description, image, readOnl
16
16
  const domain = chunkH3C3MJW5_cjs.domainOf(url);
17
17
  const picture = chunkH3C3MJW5_cjs.webAddress(image);
18
18
  const name = title || url;
19
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: card, className: "quoin-link-card", ...readOnly ? void 0 : chunkUUSZGUXJ_cjs.selectHandlers(controller, blockId, card), children: [
19
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: card, className: "quoin-link-card", ...readOnly ? void 0 : chunk6T5YGCZ5_cjs.selectHandlers(controller, blockId, card), children: [
20
20
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "quoin-link-card-text", children: [
21
21
  href === null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "quoin-link-card-title", children: name }) : /* @__PURE__ */ jsxRuntime.jsx(
22
22
  "a",
@@ -51,7 +51,7 @@ function useLinkCardKeys(controller, blockId, url, editable) {
51
51
  const root = react.useRef(null);
52
52
  const link = react.useRef(null);
53
53
  const keys = react.useMemo(() => ({ enter: () => link.current?.focus() }), []);
54
- chunkUUSZGUXJ_cjs.useNodeKeys(controller, blockId, editable, chunkWZA5S5EJ_cjs.sanitizeHref(url) !== null, root, keys);
54
+ chunk6T5YGCZ5_cjs.useNodeKeys(controller, blockId, editable, chunkWZA5S5EJ_cjs.sanitizeHref(url) !== null, root, keys);
55
55
  return { root, link };
56
56
  }
57
57
 
@@ -93,7 +93,7 @@ async function unfurlInto(controller, blockId, url, unfurl, onError) {
93
93
  try {
94
94
  found = await unfurl(url);
95
95
  } catch (cause) {
96
- if (bookmarkAt(controller, blockId, url) && drawn.get(blockId)) onError(chunkUUSZGUXJ_cjs.toError(cause));
96
+ if (bookmarkAt(controller, blockId, url) && drawn.get(blockId)) onError(chunk6T5YGCZ5_cjs.toError(cause));
97
97
  return;
98
98
  }
99
99
  const patch = unfurledPatch(found);
@@ -108,7 +108,7 @@ async function unfurlInto(controller, blockId, url, unfurl, onError) {
108
108
  editor.dispatch(editor.createTransaction().step(chunkVZZPCYA3_cjs.setAttrsStep(blockId, patch)).setMeta("addToHistory", false));
109
109
  }
110
110
  function useUnfurl(controller, blockId, url, unfurl) {
111
- const { onError } = chunkUUSZGUXJ_cjs.useQuoin();
111
+ const { onError } = chunk6T5YGCZ5_cjs.useQuoin();
112
112
  react.useEffect(() => {
113
113
  const { drawn } = asksOf(controller);
114
114
  drawn.set(blockId, (drawn.get(blockId) ?? 0) + 1);
@@ -187,7 +187,7 @@ function EmbedFrame({ blockId, controller, match, title, readOnly }) {
187
187
  );
188
188
  const cover = useCoverPress(controller);
189
189
  const keys = react.useMemo(() => ({ enter: () => void setTimeout(() => frame.current?.focus()) }), []);
190
- chunkUUSZGUXJ_cjs.useNodeKeys(controller, blockId, !readOnly, true, root, keys);
190
+ chunk6T5YGCZ5_cjs.useNodeKeys(controller, blockId, !readOnly, true, root, keys);
191
191
  const height = playerHeight(match.provider);
192
192
  return /* @__PURE__ */ jsxRuntime.jsxs(
193
193
  "div",
@@ -215,7 +215,7 @@ function EmbedFrame({ blockId, controller, match, title, readOnly }) {
215
215
  className: "quoin-embed-cover",
216
216
  onPointerDownCapture: cover.onPress,
217
217
  onMouseDown: (event) => event.preventDefault(),
218
- onClick: () => chunkUUSZGUXJ_cjs.focusNode(controller, blockId)
218
+ onClick: () => chunk6T5YGCZ5_cjs.focusNode(controller, blockId)
219
219
  }
220
220
  )
221
221
  ]
@@ -320,7 +320,7 @@ var embedSlashItems = (labels) => [
320
320
  title: labels.embed,
321
321
  description: labels.embedDescription,
322
322
  group: "embeds",
323
- icon: chunkUUSZGUXJ_cjs.AppWindow,
323
+ icon: chunk6T5YGCZ5_cjs.AppWindow,
324
324
  keywords: ["iframe", "video", "youtube", "vimeo", "loom", "figma", "codepen", "spotify", "soundcloud"],
325
325
  run: ({ controller, range }) => requestLink(controller, { kind: "embed", at: range })
326
326
  },
@@ -329,7 +329,7 @@ var embedSlashItems = (labels) => [
329
329
  title: labels.bookmark,
330
330
  description: labels.bookmarkDescription,
331
331
  group: "embeds",
332
- icon: chunkUUSZGUXJ_cjs.Bookmark,
332
+ icon: chunk6T5YGCZ5_cjs.Bookmark,
333
333
  keywords: ["link", "url", "card", "preview", "web"],
334
334
  run: ({ controller, range }) => requestLink(controller, { kind: "bookmark", at: range })
335
335
  }
@@ -381,7 +381,7 @@ function emptyParagraph(blockId) {
381
381
  }
382
382
  function replaceLink(blockId, block) {
383
383
  return (state, dispatch) => {
384
- const { ok, tr } = chunkVZZPCYA3_cjs.runCommands(state, [emptyParagraph(blockId), chunkUUSZGUXJ_cjs.insertBlocks([block], "line", blockId)]);
384
+ const { ok, tr } = chunkVZZPCYA3_cjs.runCommands(state, [emptyParagraph(blockId), chunk6T5YGCZ5_cjs.insertBlocks([block], "line", blockId)]);
385
385
  if (!ok || tr === null) return false;
386
386
  dispatch?.(tr);
387
387
  return true;
@@ -395,7 +395,7 @@ function embedOf(href, providers) {
395
395
  }
396
396
  var bookmarkOf = (href) => ({ type: "BOOKMARK", attrs: { url: href } });
397
397
  function typedLink(kind, typed, providers) {
398
- const href = chunkH3C3MJW5_cjs.webAddress(chunkUUSZGUXJ_cjs.linkAddress(typed));
398
+ const href = chunkH3C3MJW5_cjs.webAddress(chunk6T5YGCZ5_cjs.linkAddress(typed));
399
399
  if (href === null) return { href, block: null, problem: "notALink" };
400
400
  const block = kind === "embed" ? embedOf(href, providers) : bookmarkOf(href);
401
401
  return { href, block, problem: block === null ? "cannotEmbed" : null };
@@ -423,18 +423,18 @@ function useEscapeInText(controller, onEscape) {
423
423
  onEscape();
424
424
  return true;
425
425
  };
426
- return chunkUUSZGUXJ_cjs.interceptKeys(controller, intercept);
426
+ return chunk6T5YGCZ5_cjs.interceptKeys(controller, intercept);
427
427
  }, [controller, onEscape]);
428
428
  }
429
429
  function LinkChoiceToolbar({ controller, feature: { labels, providers }, choice, onDismiss }) {
430
430
  const embed = react.useMemo(() => embedOf(choice.href, providers), [choice.href, providers]);
431
431
  const range = react.useMemo(() => linkEnd(controller.editor.state, choice.block), [controller, choice.block]);
432
- const { anchor } = chunkUUSZGUXJ_cjs.useRangeAnchor(controller, range);
432
+ const { anchor } = chunk6T5YGCZ5_cjs.useRangeAnchor(controller, range);
433
433
  const after = react.useMemo(() => {
434
434
  const host = range && controller.registry.get(range.block, range.region);
435
- return host && chunkUUSZGUXJ_cjs.inlineDirection(host) === "rtl" ? "left" : "right";
435
+ return host && chunk6T5YGCZ5_cjs.inlineDirection(host) === "rtl" ? "left" : "right";
436
436
  }, [controller, range]);
437
- const roving = chunkUUSZGUXJ_cjs.useRovingFocus();
437
+ const roving = chunk6T5YGCZ5_cjs.useRovingFocus();
438
438
  const rovingRef = roving.ref;
439
439
  const content = react.useRef(null);
440
440
  const ref = react.useCallback(
@@ -445,9 +445,9 @@ function LinkChoiceToolbar({ controller, feature: { labels, providers }, choice,
445
445
  [rovingRef]
446
446
  );
447
447
  const ownerDocument = react.useCallback(() => controller.root?.ownerDocument ?? document, [controller]);
448
- chunkUUSZGUXJ_cjs.useFocusKey(controller, roving.focusCurrent);
448
+ chunk6T5YGCZ5_cjs.useFocusKey(controller, roving.focusCurrent);
449
449
  useEscapeInText(controller, onDismiss);
450
- chunkUUSZGUXJ_cjs.useOutsidePress(content, ownerDocument, onDismiss);
450
+ chunk6T5YGCZ5_cjs.useOutsidePress(content, ownerDocument, onDismiss);
451
451
  const choose = (block) => {
452
452
  if (block === null) onDismiss();
453
453
  else controller.run(replaceLink(choice.block, block));
@@ -461,11 +461,11 @@ function LinkChoiceToolbar({ controller, feature: { labels, providers }, choice,
461
461
  controller.focus();
462
462
  } else roving.onKeyDown(event);
463
463
  };
464
- const button = (label, block) => /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.Button, { type: "button", variant: "ghost", size: "sm", onClick: () => choose(block), children: label });
465
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUUSZGUXJ_cjs.Popover, { open: true, modal: false, children: [
466
- /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.PopoverAnchor, { virtualRef: anchor }),
464
+ const button = (label, block) => /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.Button, { type: "button", variant: "ghost", size: "sm", onClick: () => choose(block), children: label });
465
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk6T5YGCZ5_cjs.Popover, { open: true, modal: false, children: [
466
+ /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.PopoverAnchor, { virtualRef: anchor }),
467
467
  /* @__PURE__ */ jsxRuntime.jsxs(
468
- chunkUUSZGUXJ_cjs.PopoverContent,
468
+ chunk6T5YGCZ5_cjs.PopoverContent,
469
469
  {
470
470
  ref,
471
471
  role: "toolbar",
@@ -473,14 +473,14 @@ function LinkChoiceToolbar({ controller, feature: { labels, providers }, choice,
473
473
  side: after,
474
474
  align: "end",
475
475
  sideOffset: 8,
476
- className: chunkUUSZGUXJ_cjs.FLOATING_TOOLBAR,
477
- onOpenAutoFocus: chunkUUSZGUXJ_cjs.preventDefault,
478
- onCloseAutoFocus: chunkUUSZGUXJ_cjs.preventDefault,
479
- onPointerDown: chunkUUSZGUXJ_cjs.keepFocus,
480
- onMouseDown: chunkUUSZGUXJ_cjs.keepFocus,
476
+ className: chunk6T5YGCZ5_cjs.FLOATING_TOOLBAR,
477
+ onOpenAutoFocus: chunk6T5YGCZ5_cjs.preventDefault,
478
+ onCloseAutoFocus: chunk6T5YGCZ5_cjs.preventDefault,
479
+ onPointerDown: chunk6T5YGCZ5_cjs.keepFocus,
480
+ onMouseDown: chunk6T5YGCZ5_cjs.keepFocus,
481
481
  onFocus: roving.onFocus,
482
482
  onKeyDown,
483
- ...chunkUUSZGUXJ_cjs.bubblePart(controller),
483
+ ...chunk6T5YGCZ5_cjs.bubblePart(controller),
484
484
  children: [
485
485
  embed !== null && button(labels.embed, embed),
486
486
  button(labels.bookmark, bookmarkOf(choice.href)),
@@ -498,7 +498,7 @@ function storeAfterPress(controller, request, block) {
498
498
  controller.readSelectionFromDom();
499
499
  const line = request.at.block;
500
500
  const onLine = chunkVZZPCYA3_cjs.headBlockId(editor.state.selection) === line;
501
- const place = onLine ? chunkUUSZGUXJ_cjs.insertBlockToWrite(block, false, line) : chunkUUSZGUXJ_cjs.insertBlocks([block], "stay", line);
501
+ const place = onLine ? chunk6T5YGCZ5_cjs.insertBlockToWrite(block, false, line) : chunk6T5YGCZ5_cjs.insertBlocks([block], "stay", line);
502
502
  place(editor.state, (tr) => editor.dispatch(tr));
503
503
  }
504
504
  function LinkInputOverlay({ controller, feature }) {
@@ -516,12 +516,12 @@ function LinkInputPopover({ controller, feature: { labels, providers }, request,
516
516
  const [problem, setProblem] = react.useState(null);
517
517
  const messageId = react.useId();
518
518
  const content = react.useRef(null);
519
- const { anchor, side } = chunkUUSZGUXJ_cjs.useRangeAnchor(controller, request.at);
519
+ const { anchor, side } = chunk6T5YGCZ5_cjs.useRangeAnchor(controller, request.at);
520
520
  const name = request.kind === "embed" ? labels.embedLink : labels.bookmarkLink;
521
521
  const typed = () => typedLink(request.kind, address, providers);
522
522
  const finish = (block) => {
523
523
  onClose();
524
- if (block !== null && !controller.readOnly) controller.run(chunkUUSZGUXJ_cjs.insertBlockToWrite(block, false, request.at.block));
524
+ if (block !== null && !controller.readOnly) controller.run(chunk6T5YGCZ5_cjs.insertBlockToWrite(block, false, request.at.block));
525
525
  controller.focus();
526
526
  };
527
527
  const submit = (event) => {
@@ -532,7 +532,7 @@ function LinkInputPopover({ controller, feature: { labels, providers }, request,
532
532
  };
533
533
  const bookmarkInstead = () => finish(typedLink("bookmark", address, providers).block);
534
534
  const ownerDocument = react.useCallback(() => controller.root?.ownerDocument ?? document, [controller]);
535
- chunkUUSZGUXJ_cjs.useOutsidePress(content, ownerDocument, () => {
535
+ chunk6T5YGCZ5_cjs.useOutsidePress(content, ownerDocument, () => {
536
536
  onClose();
537
537
  const { block } = typed();
538
538
  if (block !== null) setTimeout(() => storeAfterPress(controller, request, block));
@@ -546,25 +546,25 @@ function LinkInputPopover({ controller, feature: { labels, providers }, request,
546
546
  if (next >= 0 && next < controls.length) controls[next].focus();
547
547
  else finish(typed().block);
548
548
  };
549
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUUSZGUXJ_cjs.Popover, { open: true, modal: false, children: [
550
- /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.PopoverAnchor, { virtualRef: anchor }),
549
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk6T5YGCZ5_cjs.Popover, { open: true, modal: false, children: [
550
+ /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.PopoverAnchor, { virtualRef: anchor }),
551
551
  /* @__PURE__ */ jsxRuntime.jsx(
552
- chunkUUSZGUXJ_cjs.PopoverContent,
552
+ chunk6T5YGCZ5_cjs.PopoverContent,
553
553
  {
554
554
  ref: content,
555
555
  "aria-label": name,
556
556
  side,
557
557
  align: "start",
558
558
  className: "w-80 p-2 shadow-md",
559
- onCloseAutoFocus: chunkUUSZGUXJ_cjs.preventDefault,
559
+ onCloseAutoFocus: chunk6T5YGCZ5_cjs.preventDefault,
560
560
  onEscapeKeyDown: (event) => {
561
561
  event.preventDefault();
562
562
  if (!chunkQJ34MOFV_cjs.isComposingKey(controller, event)) finish(null);
563
563
  },
564
- ...chunkUUSZGUXJ_cjs.bubblePart(controller),
564
+ ...chunk6T5YGCZ5_cjs.bubblePart(controller),
565
565
  children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, className: "quoin-embed-ask", onSubmit: submit, onKeyDown, children: [
566
566
  /* @__PURE__ */ jsxRuntime.jsx(
567
- chunkUUSZGUXJ_cjs.Input,
567
+ chunk6T5YGCZ5_cjs.Input,
568
568
  {
569
569
  type: "url",
570
570
  className: "h-8",
@@ -578,9 +578,9 @@ function LinkInputPopover({ controller, feature: { labels, providers }, request,
578
578
  }
579
579
  }
580
580
  ),
581
- /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.Button, { type: "submit", size: "sm", children: request.kind === "embed" ? labels.embed : labels.bookmark }),
581
+ /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.Button, { type: "submit", size: "sm", children: request.kind === "embed" ? labels.embed : labels.bookmark }),
582
582
  problem !== null && /* @__PURE__ */ jsxRuntime.jsx("p", { id: messageId, role: "alert", className: "quoin-embed-ask-message", children: labels[problem] }),
583
- problem === "cannotEmbed" && /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.Button, { type: "button", variant: "outline", size: "sm", onClick: bookmarkInstead, children: labels.bookmarkInstead })
583
+ problem === "cannotEmbed" && /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.Button, { type: "button", variant: "outline", size: "sm", onClick: bookmarkInstead, children: labels.bookmarkInstead })
584
584
  ] })
585
585
  }
586
586
  )
@@ -607,5 +607,3 @@ function embedExtension(options = {}) {
607
607
 
608
608
  exports.embedExtension = embedExtension;
609
609
  exports.englishEmbedLabels = englishEmbedLabels;
610
- //# sourceMappingURL=chunk-XFR7QGSN.cjs.map
611
- //# sourceMappingURL=chunk-XFR7QGSN.cjs.map
package/dist/comments.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunkH3C3MJW5_cjs = require('./chunk-H3C3MJW5.cjs');
5
5
  var chunkQR2NIDUK_cjs = require('./chunk-QR2NIDUK.cjs');
6
- var chunkUUSZGUXJ_cjs = require('./chunk-UUSZGUXJ.cjs');
6
+ var chunk6T5YGCZ5_cjs = require('./chunk-6T5YGCZ5.cjs');
7
7
  var chunkQJ34MOFV_cjs = require('./chunk-QJ34MOFV.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  var chunkVZZPCYA3_cjs = require('./chunk-VZZPCYA3.cjs');
@@ -185,7 +185,7 @@ function create(editor, pending, onCreate, link) {
185
185
  if (link.mounts === 0) return;
186
186
  const tr = settledTransaction(editor, pending.key, id);
187
187
  editor.dispatch(tr);
188
- if (id === null) link.report(chunkUUSZGUXJ_cjs.toError(error));
188
+ if (id === null) link.report(chunk6T5YGCZ5_cjs.toError(error));
189
189
  else if (!tr.docChanged) link.report(new Error(`Comment thread ${id} has no text: it was deleted meanwhile`));
190
190
  };
191
191
  new Promise((resolve) => resolve(onCreate(input))).then(
@@ -336,10 +336,10 @@ function CommentMarkers({ env, box, entries, onOpen }) {
336
336
  "data-rail-item": "",
337
337
  "data-block": block,
338
338
  "aria-label": env.labels.showComments(ids.length),
339
- className: chunkUUSZGUXJ_cjs.cn("quoin-comments-marker", chunkUUSZGUXJ_cjs.FOCUS_RING),
339
+ className: chunk6T5YGCZ5_cjs.cn("quoin-comments-marker", chunk6T5YGCZ5_cjs.FOCUS_RING),
340
340
  onClick: (event) => onOpen(ids[0], event.currentTarget),
341
341
  children: [
342
- /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.MessageSquare, { "aria-hidden": "true" }),
342
+ /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.MessageSquare, { "aria-hidden": "true" }),
343
343
  ids.length
344
344
  ]
345
345
  },
@@ -353,7 +353,7 @@ async function called(link, call) {
353
353
  await call();
354
354
  return true;
355
355
  } catch (error) {
356
- link.report(chunkUUSZGUXJ_cjs.toError(error));
356
+ link.report(chunk6T5YGCZ5_cjs.toError(error));
357
357
  return false;
358
358
  }
359
359
  }
@@ -446,14 +446,14 @@ function ReplyBox({ env, threadId, first }) {
446
446
  }
447
447
  ),
448
448
  /* @__PURE__ */ jsxRuntime.jsx(
449
- chunkUUSZGUXJ_cjs.Button,
449
+ chunk6T5YGCZ5_cjs.Button,
450
450
  {
451
451
  type: "submit",
452
452
  variant: "ghost",
453
453
  size: "icon-sm",
454
454
  "aria-label": labels.send,
455
455
  "aria-disabled": text === "" || sending || void 0,
456
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.SendHorizontal, {})
456
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.SendHorizontal, {})
457
457
  }
458
458
  )
459
459
  ] });
@@ -485,7 +485,7 @@ function ThreadView({ env, id, thread, onEnded }) {
485
485
  /* @__PURE__ */ jsxRuntime.jsx(ReplyBox, { env, threadId: id, first: comments.length === 0 }),
486
486
  !readOnly && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-1", children: [
487
487
  /* @__PURE__ */ jsxRuntime.jsx(
488
- chunkUUSZGUXJ_cjs.Button,
488
+ chunk6T5YGCZ5_cjs.Button,
489
489
  {
490
490
  type: "button",
491
491
  variant: "ghost",
@@ -496,7 +496,7 @@ function ThreadView({ env, id, thread, onEnded }) {
496
496
  }
497
497
  ),
498
498
  /* @__PURE__ */ jsxRuntime.jsx(
499
- chunkUUSZGUXJ_cjs.Button,
499
+ chunk6T5YGCZ5_cjs.Button,
500
500
  {
501
501
  type: "button",
502
502
  variant: "ghost",
@@ -533,7 +533,7 @@ function ThreadCard({ env, entry, active, expanded, onToggle }) {
533
533
  ref: header,
534
534
  type: "button",
535
535
  "aria-expanded": expanded,
536
- className: chunkUUSZGUXJ_cjs.cn("flex w-full flex-col items-start gap-1 rounded-sm text-start", chunkUUSZGUXJ_cjs.FOCUS_RING),
536
+ className: chunk6T5YGCZ5_cjs.cn("flex w-full flex-col items-start gap-1 rounded-sm text-start", chunk6T5YGCZ5_cjs.FOCUS_RING),
537
537
  onClick: () => onToggle(expanded ? null : thread.id),
538
538
  children: [
539
539
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: removed ? "text-xs text-muted-foreground italic" : "quoin-comments-quote", children: removed ? labels.textRemoved : anchorText2 }),
@@ -599,7 +599,7 @@ function CommentsSheet({ env, entries, value, onToggle, onClose, returnFocus })
599
599
  children: [
600
600
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
601
601
  /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { className: "text-sm font-semibold", children: labels.comments }),
602
- /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.close, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.X, {}) }) })
602
+ /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.close, children: /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.X, {}) }) })
603
603
  ] }),
604
604
  /* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-label": labels.comments, className: "flex flex-col gap-2", children: entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
605
605
  ThreadCard,
@@ -660,8 +660,8 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
660
660
  });
661
661
  const anchor = react.useMemo(
662
662
  () => ({
663
- current: chunkUUSZGUXJ_cjs.virtualAnchor(
664
- () => latest.current ? chunkUUSZGUXJ_cjs.rangeRect(controller, latest.current) : null,
663
+ current: chunk6T5YGCZ5_cjs.virtualAnchor(
664
+ () => latest.current ? chunk6T5YGCZ5_cjs.rangeRect(controller, latest.current) : null,
665
665
  () => latest.current && controller.registry.get(latest.current.block, latest.current.region)
666
666
  )
667
667
  }),
@@ -695,7 +695,7 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
695
695
  };
696
696
  const choices = ids.map((id) => ({ id, anchorText: textOf(id), preview: threads.find(id)?.comments[0]?.body ?? "" }));
697
697
  return /* @__PURE__ */ jsxRuntime.jsxs(
698
- chunkUUSZGUXJ_cjs.Popover,
698
+ chunk6T5YGCZ5_cjs.Popover,
699
699
  {
700
700
  open: true,
701
701
  modal: false,
@@ -703,9 +703,9 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
703
703
  if (!next) onClose();
704
704
  },
705
705
  children: [
706
- /* @__PURE__ */ jsxRuntime.jsx(chunkUUSZGUXJ_cjs.PopoverAnchor, { virtualRef: anchor }),
706
+ /* @__PURE__ */ jsxRuntime.jsx(chunk6T5YGCZ5_cjs.PopoverAnchor, { virtualRef: anchor }),
707
707
  /* @__PURE__ */ jsxRuntime.jsxs(
708
- chunkUUSZGUXJ_cjs.PopoverContent,
708
+ chunk6T5YGCZ5_cjs.PopoverContent,
709
709
  {
710
710
  ref: content,
711
711
  "aria-label": gone ? labels.textRemoved : single ? labels.thread(textOf(ids[0])) : labels.threadsHere,
@@ -770,7 +770,7 @@ function useThreads(threads) {
770
770
  var commentsOf = (state) => chunkVZZPCYA3_cjs.getPluginState(state, commentsKey);
771
771
  var docOf2 = (state) => state.doc;
772
772
  function CommentsOverlay({ controller, host, labels }) {
773
- const { onError } = chunkUUSZGUXJ_cjs.useQuoin();
773
+ const { onError } = chunk6T5YGCZ5_cjs.useQuoin();
774
774
  const link = linkOf(controller.editor);
775
775
  chunkQJ34MOFV_cjs.useIsomorphicLayoutEffect(() => {
776
776
  link.report = onError;
@@ -858,7 +858,7 @@ function watchEnded(editor, threads) {
858
858
  var commentItem = (labels) => ({
859
859
  id: "comment",
860
860
  title: labels.comment,
861
- icon: chunkUUSZGUXJ_cjs.MessageSquarePlus,
861
+ icon: chunk6T5YGCZ5_cjs.MessageSquarePlus,
862
862
  shortcut: "Mod-Alt-m",
863
863
  available: (state) => hasCommentableText(state) && chunkVZZPCYA3_cjs.getPluginState(state, commentsKey).pending.length === 0,
864
864
  // Focus goes back to the text first: the button leaves the toolbar while the thread is being asked for.
@@ -924,5 +924,3 @@ function createCommentThreads(initial = NO_THREADS) {
924
924
  exports.commentsExtension = commentsExtension;
925
925
  exports.createCommentThreads = createCommentThreads;
926
926
  exports.englishCommentsLabels = englishCommentsLabels;
927
- //# sourceMappingURL=comments.cjs.map
928
- //# sourceMappingURL=comments.cjs.map
package/dist/comments.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { webAddress } from './chunk-GHNQKJMD.js';
3
3
  import { ownsNode } from './chunk-R7MYG522.js';
4
- import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-32OZ2WM2.js';
4
+ import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-HSLOPJVT.js';
5
5
  import { useIsomorphicLayoutEffect, useEditorState, useReadOnly } from './chunk-XFEDJEJF.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import { createPluginKey, defineExtension, getPluginState, isCollapsed, markRanges, Transaction, comparePos, textSelection, addMarkStep, sameSelection, removeMarkStep } from './chunk-OS2O6IKX.js';
@@ -0,0 +1,38 @@
1
+ import { E as Extension } from './types-DXF9p4qV.cjs';
2
+
3
+ /** Every string the diagram blocks show or speak. */
4
+ type DiagramLabels = {
5
+ /** Names the block holding a diagram and its source, by the language that draws it. */
6
+ diagram(language: string): string;
7
+ /** What is shown in place of a diagram the host's renderer could not draw. */
8
+ notDrawn: string;
9
+ };
10
+ declare const englishDiagramLabels: DiagramLabels;
11
+
12
+ /**
13
+ * Draws a diagram from the source of a code block and gives the markup to insert, at once or through a promise, as
14
+ * Mermaid's `render` does, which parses and lays out asynchronously. The
15
+ * markup is trusted: the canvas inserts it as it is, so a host that draws from text it did not write sanitises first.
16
+ */
17
+ type RenderDiagram = (code: string, language: string) => string | Promise<string>;
18
+
19
+ type DiagramOptions = {
20
+ /**
21
+ * Draws a diagram from the source of a code block and gives the markup to insert, as Mermaid's `render` does. The
22
+ * markup is inserted as it is, so a host drawing from text it did not write sanitises first. Without one the blocks
23
+ * stay code blocks.
24
+ */
25
+ render?: RenderDiagram;
26
+ /** The code languages drawn as diagrams rather than highlighted. `['mermaid']` by default. */
27
+ languages?: readonly string[];
28
+ /** Every string the feature shows or speaks, English by default. A key left out stays English. */
29
+ labels?: Partial<DiagramLabels>;
30
+ };
31
+ /**
32
+ * Draws a code block whose language names a diagram through the host's renderer, with its source below it. The
33
+ * document is unchanged: a diagram is a fenced code block, and opens as one anywhere else.
34
+ */
35
+ declare function diagramExtension(options?: DiagramOptions): Extension;
36
+
37
+ export { diagramExtension as d, englishDiagramLabels as e };
38
+ export type { DiagramLabels as D, RenderDiagram as R, DiagramOptions as a };
@@ -0,0 +1,38 @@
1
+ import { E as Extension } from './types-BjLcmV00.js';
2
+
3
+ /** Every string the diagram blocks show or speak. */
4
+ type DiagramLabels = {
5
+ /** Names the block holding a diagram and its source, by the language that draws it. */
6
+ diagram(language: string): string;
7
+ /** What is shown in place of a diagram the host's renderer could not draw. */
8
+ notDrawn: string;
9
+ };
10
+ declare const englishDiagramLabels: DiagramLabels;
11
+
12
+ /**
13
+ * Draws a diagram from the source of a code block and gives the markup to insert, at once or through a promise, as
14
+ * Mermaid's `render` does, which parses and lays out asynchronously. The
15
+ * markup is trusted: the canvas inserts it as it is, so a host that draws from text it did not write sanitises first.
16
+ */
17
+ type RenderDiagram = (code: string, language: string) => string | Promise<string>;
18
+
19
+ type DiagramOptions = {
20
+ /**
21
+ * Draws a diagram from the source of a code block and gives the markup to insert, as Mermaid's `render` does. The
22
+ * markup is inserted as it is, so a host drawing from text it did not write sanitises first. Without one the blocks
23
+ * stay code blocks.
24
+ */
25
+ render?: RenderDiagram;
26
+ /** The code languages drawn as diagrams rather than highlighted. `['mermaid']` by default. */
27
+ languages?: readonly string[];
28
+ /** Every string the feature shows or speaks, English by default. A key left out stays English. */
29
+ labels?: Partial<DiagramLabels>;
30
+ };
31
+ /**
32
+ * Draws a code block whose language names a diagram through the host's renderer, with its source below it. The
33
+ * document is unchanged: a diagram is a fenced code block, and opens as one anywhere else.
34
+ */
35
+ declare function diagramExtension(options?: DiagramOptions): Extension;
36
+
37
+ export { diagramExtension as d, englishDiagramLabels as e };
38
+ export type { DiagramLabels as D, RenderDiagram as R, DiagramOptions as a };
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var chunkLKZJ2TDU_cjs = require('./chunk-LKZJ2TDU.cjs');
5
+ require('./chunk-6T5YGCZ5.cjs');
6
+ require('./chunk-QJ34MOFV.cjs');
7
+ require('./chunk-A6PGQVTR.cjs');
8
+ require('./chunk-VZZPCYA3.cjs');
9
+ require('./chunk-BM2GRZNM.cjs');
10
+ require('./chunk-WZA5S5EJ.cjs');
11
+
12
+
13
+
14
+ Object.defineProperty(exports, "DEFAULT_DIAGRAM_LANGUAGES", {
15
+ enumerable: true,
16
+ get: function () { return chunkLKZJ2TDU_cjs.DEFAULT_DIAGRAM_LANGUAGES; }
17
+ });
18
+ Object.defineProperty(exports, "diagramExtension", {
19
+ enumerable: true,
20
+ get: function () { return chunkLKZJ2TDU_cjs.diagramExtension; }
21
+ });
22
+ Object.defineProperty(exports, "englishDiagramLabels", {
23
+ enumerable: true,
24
+ get: function () { return chunkLKZJ2TDU_cjs.englishDiagramLabels; }
25
+ });
@@ -0,0 +1,8 @@
1
+ export { D as DiagramLabels, a as DiagramOptions, R as RenderDiagram, d as diagramExtension, e as englishDiagramLabels } from './diagram-extension-D573COJv.cjs';
2
+ import './types-DXF9p4qV.cjs';
3
+ import './types-CQ8Vw_7N.cjs';
4
+
5
+ /** The language a code fence names when it holds a diagram, unless the host configures its own. */
6
+ declare const DEFAULT_DIAGRAM_LANGUAGES: readonly string[];
7
+
8
+ export { DEFAULT_DIAGRAM_LANGUAGES };
@@ -0,0 +1,8 @@
1
+ export { D as DiagramLabels, a as DiagramOptions, R as RenderDiagram, d as diagramExtension, e as englishDiagramLabels } from './diagram-extension-Da7hp-tv.js';
2
+ import './types-BjLcmV00.js';
3
+ import './types-CQ8Vw_7N.js';
4
+
5
+ /** The language a code fence names when it holds a diagram, unless the host configures its own. */
6
+ declare const DEFAULT_DIAGRAM_LANGUAGES: readonly string[];
7
+
8
+ export { DEFAULT_DIAGRAM_LANGUAGES };
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ export { DEFAULT_DIAGRAM_LANGUAGES, diagramExtension, englishDiagramLabels } from './chunk-RQXJKJ5S.js';
3
+ import './chunk-HSLOPJVT.js';
4
+ import './chunk-XFEDJEJF.js';
5
+ import './chunk-HDJ653LM.js';
6
+ import './chunk-OS2O6IKX.js';
7
+ import './chunk-CSKKSXCE.js';
8
+ import './chunk-BJTOLCRR.js';
9
+ //# sourceMappingURL=diagram.js.map
10
+ //# sourceMappingURL=diagram.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":";","file":"diagram.js"}
package/dist/diff.cjs CHANGED
@@ -323,5 +323,3 @@ Object.defineProperty(exports, "defineBlock", {
323
323
  });
324
324
  exports.QuoinDiff = QuoinDiff;
325
325
  exports.englishDiffLabels = englishDiffLabels;
326
- //# sourceMappingURL=diff.cjs.map
327
- //# sourceMappingURL=diff.cjs.map
package/dist/docx.cjs CHANGED
@@ -857,5 +857,3 @@ async function toDocx(blocks, options = {}) {
857
857
  }
858
858
 
859
859
  exports.toDocx = toDocx;
860
- //# sourceMappingURL=docx.cjs.map
861
- //# sourceMappingURL=docx.cjs.map
package/dist/embed.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkXFR7QGSN_cjs = require('./chunk-XFR7QGSN.cjs');
4
+ var chunkYEFPH27F_cjs = require('./chunk-YEFPH27F.cjs');
5
5
  require('./chunk-H3C3MJW5.cjs');
6
- require('./chunk-UUSZGUXJ.cjs');
6
+ require('./chunk-6T5YGCZ5.cjs');
7
7
  require('./chunk-QJ34MOFV.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  require('./chunk-VZZPCYA3.cjs');
@@ -14,11 +14,9 @@ require('./chunk-WZA5S5EJ.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "embedExtension", {
16
16
  enumerable: true,
17
- get: function () { return chunkXFR7QGSN_cjs.embedExtension; }
17
+ get: function () { return chunkYEFPH27F_cjs.embedExtension; }
18
18
  });
19
19
  Object.defineProperty(exports, "englishEmbedLabels", {
20
20
  enumerable: true,
21
- get: function () { return chunkXFR7QGSN_cjs.englishEmbedLabels; }
21
+ get: function () { return chunkYEFPH27F_cjs.englishEmbedLabels; }
22
22
  });
23
- //# sourceMappingURL=embed.cjs.map
24
- //# sourceMappingURL=embed.cjs.map
package/dist/embed.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { embedExtension, englishEmbedLabels } from './chunk-O7XZFXPE.js';
2
+ export { embedExtension, englishEmbedLabels } from './chunk-UZS3TW75.js';
3
3
  import './chunk-GHNQKJMD.js';
4
- import './chunk-32OZ2WM2.js';
4
+ import './chunk-HSLOPJVT.js';
5
5
  import './chunk-XFEDJEJF.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-OS2O6IKX.js';
@@ -1975,5 +1975,3 @@ var skinTones = ["\u{1F3FB}", "\u{1F3FC}", "\u{1F3FD}", "\u{1F3FE}", "\u{1F3FF}"
1975
1975
  exports.emojiByShortcode = emojiByShortcode;
1976
1976
  exports.searchEmoji = searchEmoji;
1977
1977
  exports.skinTones = skinTones;
1978
- //# sourceMappingURL=emoji-data.cjs.map
1979
- //# sourceMappingURL=emoji-data.cjs.map
package/dist/emoji.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkL6RB43YM_cjs = require('./chunk-L6RB43YM.cjs');
4
+ var chunkI722LBD3_cjs = require('./chunk-I722LBD3.cjs');
5
5
  require('./chunk-2SWLD6R5.cjs');
6
- require('./chunk-UUSZGUXJ.cjs');
6
+ require('./chunk-6T5YGCZ5.cjs');
7
7
  require('./chunk-QJ34MOFV.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  require('./chunk-VZZPCYA3.cjs');
@@ -14,15 +14,13 @@ require('./chunk-WZA5S5EJ.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "emojiExtension", {
16
16
  enumerable: true,
17
- get: function () { return chunkL6RB43YM_cjs.emojiExtension; }
17
+ get: function () { return chunkI722LBD3_cjs.emojiExtension; }
18
18
  });
19
19
  Object.defineProperty(exports, "englishEmojiLabels", {
20
20
  enumerable: true,
21
- get: function () { return chunkL6RB43YM_cjs.englishEmojiLabels; }
21
+ get: function () { return chunkI722LBD3_cjs.englishEmojiLabels; }
22
22
  });
23
23
  Object.defineProperty(exports, "loadEmojiData", {
24
24
  enumerable: true,
25
- get: function () { return chunkL6RB43YM_cjs.loadEmojiData; }
25
+ get: function () { return chunkI722LBD3_cjs.loadEmojiData; }
26
26
  });
27
- //# sourceMappingURL=emoji.cjs.map
28
- //# sourceMappingURL=emoji.cjs.map
package/dist/emoji.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-2AVGGPLT.js';
2
+ export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-5JEQZIRI.js';
3
3
  import './chunk-KTUOPDVO.js';
4
- import './chunk-32OZ2WM2.js';
4
+ import './chunk-HSLOPJVT.js';
5
5
  import './chunk-XFEDJEJF.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-OS2O6IKX.js';