quoin-editor 2.0.2 → 2.0.3

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 (81) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ai.cjs +34 -34
  3. package/dist/ai.js +3 -3
  4. package/dist/catalogue.cjs +21 -21
  5. package/dist/catalogue.js +12 -12
  6. package/dist/{chunk-NZFGAV3L.cjs → chunk-3B5VEXVQ.cjs} +2 -2
  7. package/dist/{chunk-RWSC47L7.cjs → chunk-4EJJ4ZNC.cjs} +18 -18
  8. package/dist/{chunk-F3BC5ITU.cjs → chunk-55MN4QZU.cjs} +8 -5
  9. package/dist/{chunk-TDXQSNFS.cjs → chunk-5URH2Y2L.cjs} +19 -19
  10. package/dist/{chunk-XLR2O4OK.js → chunk-77THE3KY.js} +5 -5
  11. package/dist/{chunk-XLR2O4OK.js.map → chunk-77THE3KY.js.map} +1 -1
  12. package/dist/{chunk-LBP64GKQ.cjs → chunk-BCCFJINI.cjs} +70 -65
  13. package/dist/{chunk-SE36LU6G.js → chunk-BNTRGV4A.js} +27 -10
  14. package/dist/chunk-BNTRGV4A.js.map +1 -0
  15. package/dist/{chunk-AVD2AI47.js → chunk-C4SRLMQJ.js} +3 -3
  16. package/dist/{chunk-AVD2AI47.js.map → chunk-C4SRLMQJ.js.map} +1 -1
  17. package/dist/{chunk-5VBDRJ5Y.cjs → chunk-DZ5XR4O6.cjs} +139 -117
  18. package/dist/{chunk-QIGZ5JAY.js → chunk-FGVTDIHT.js} +42 -19
  19. package/dist/chunk-FGVTDIHT.js.map +1 -0
  20. package/dist/{chunk-XC4WZTMY.cjs → chunk-H3TRVI44.cjs} +50 -50
  21. package/dist/{chunk-Z3GLEAOI.js → chunk-LCGOFL7S.js} +15 -10
  22. package/dist/{chunk-Z3GLEAOI.js.map → chunk-LCGOFL7S.js.map} +1 -1
  23. package/dist/{chunk-OBOIZ7L3.js → chunk-MDIXI7DM.js} +3 -3
  24. package/dist/{chunk-OBOIZ7L3.js.map → chunk-MDIXI7DM.js.map} +1 -1
  25. package/dist/{chunk-UKUAQJME.cjs → chunk-MGN332NY.cjs} +28 -7
  26. package/dist/{chunk-SHZGRFYY.cjs → chunk-NAMZA4NW.cjs} +14 -14
  27. package/dist/{chunk-ZHLNPNE2.js → chunk-NLRSAOCK.js} +5 -5
  28. package/dist/{chunk-ZHLNPNE2.js.map → chunk-NLRSAOCK.js.map} +1 -1
  29. package/dist/{chunk-RR67AKP6.cjs → chunk-OMUXPNCX.cjs} +27 -26
  30. package/dist/{chunk-DGKIKXB7.js → chunk-QVWNUUMJ.js} +3 -3
  31. package/dist/{chunk-DGKIKXB7.js.map → chunk-QVWNUUMJ.js.map} +1 -1
  32. package/dist/{chunk-4VCCGBXW.js → chunk-RNYETN6X.js} +4 -4
  33. package/dist/{chunk-4VCCGBXW.js.map → chunk-RNYETN6X.js.map} +1 -1
  34. package/dist/{chunk-YETMZ27Q.cjs → chunk-SDFJZNYB.cjs} +3 -3
  35. package/dist/{chunk-YYBPQ4TY.cjs → chunk-SQHEZ3JY.cjs} +2 -2
  36. package/dist/{chunk-JM5TRLEC.cjs → chunk-UWCU6PJY.cjs} +30 -30
  37. package/dist/{chunk-M7L444WV.js → chunk-VQDQBMQY.js} +4 -4
  38. package/dist/{chunk-M7L444WV.js.map → chunk-VQDQBMQY.js.map} +1 -1
  39. package/dist/{chunk-5A2MHCYI.js → chunk-WMM56LIB.js} +8 -5
  40. package/dist/{chunk-5A2MHCYI.js.map → chunk-WMM56LIB.js.map} +1 -1
  41. package/dist/{chunk-DT3ODGZ7.js → chunk-YHAVXOAA.js} +6 -5
  42. package/dist/chunk-YHAVXOAA.js.map +1 -0
  43. package/dist/{chunk-ZDNYIQKM.js → chunk-YWYTLNAO.js} +4 -4
  44. package/dist/{chunk-ZDNYIQKM.js.map → chunk-YWYTLNAO.js.map} +1 -1
  45. package/dist/comments.cjs +30 -30
  46. package/dist/comments.js +3 -3
  47. package/dist/diagram.cjs +6 -6
  48. package/dist/diagram.js +3 -3
  49. package/dist/embed.cjs +5 -5
  50. package/dist/embed.js +3 -3
  51. package/dist/emoji.cjs +6 -6
  52. package/dist/emoji.js +3 -3
  53. package/dist/find.cjs +7 -7
  54. package/dist/find.js +3 -3
  55. package/dist/headless.cjs +11 -11
  56. package/dist/headless.js +1 -1
  57. package/dist/highlight.cjs +3 -3
  58. package/dist/highlight.js +2 -2
  59. package/dist/index.cjs +23 -23
  60. package/dist/index.d.cts +1 -1
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +2 -2
  63. package/dist/math.cjs +6 -6
  64. package/dist/math.js +4 -4
  65. package/dist/mention.cjs +6 -6
  66. package/dist/mention.js +4 -4
  67. package/dist/presence.cjs +12 -12
  68. package/dist/presence.js +3 -3
  69. package/dist/source.cjs +2 -2
  70. package/dist/source.js +2 -2
  71. package/dist/stats.cjs +6 -6
  72. package/dist/stats.js +3 -3
  73. package/dist/styles.css +1 -1
  74. package/dist/table.cjs +22 -22
  75. package/dist/table.js +3 -3
  76. package/dist/toc.cjs +6 -6
  77. package/dist/toc.js +3 -3
  78. package/package.json +3 -2
  79. package/dist/chunk-DT3ODGZ7.js.map +0 -1
  80. package/dist/chunk-QIGZ5JAY.js.map +0 -1
  81. package/dist/chunk-SE36LU6G.js.map +0 -1
package/dist/comments.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkLM3DHROX_cjs = require('./chunk-LM3DHROX.cjs');
5
- var chunkNZFGAV3L_cjs = require('./chunk-NZFGAV3L.cjs');
6
- var chunk5VBDRJ5Y_cjs = require('./chunk-5VBDRJ5Y.cjs');
7
- var chunkUKUAQJME_cjs = require('./chunk-UKUAQJME.cjs');
5
+ var chunk3B5VEXVQ_cjs = require('./chunk-3B5VEXVQ.cjs');
6
+ var chunkDZ5XR4O6_cjs = require('./chunk-DZ5XR4O6.cjs');
7
+ var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
8
8
  var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
9
9
  require('./chunk-A6PGQVTR.cjs');
10
10
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
@@ -186,7 +186,7 @@ function create(editor, pending, onCreate, link) {
186
186
  if (link.mounts === 0) return;
187
187
  const tr = settledTransaction(editor, pending.key, id);
188
188
  editor.dispatch(tr);
189
- if (id === null) link.report(chunk5VBDRJ5Y_cjs.toError(error));
189
+ if (id === null) link.report(chunkDZ5XR4O6_cjs.toError(error));
190
190
  else if (!tr.docChanged) link.report(new Error(`Comment thread ${id} has no text: it was deleted meanwhile`));
191
191
  };
192
192
  new Promise((resolve) => resolve(onCreate(input))).then(
@@ -290,7 +290,7 @@ function place(controller, box, gap) {
290
290
  root.style.setProperty(HEIGHT, `${bottom}px`);
291
291
  }
292
292
  function useBlockAligned(controller, box, gap, key) {
293
- chunkUKUAQJME_cjs.useIsomorphicLayoutEffect(() => {
293
+ chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
294
294
  const element = box.current;
295
295
  const view = element?.ownerDocument.defaultView;
296
296
  if (!element || !view) return void 0;
@@ -334,10 +334,10 @@ function CommentMarkers({ env, box, entries, onOpen }) {
334
334
  "data-rail-item": "",
335
335
  "data-block": block,
336
336
  "aria-label": env.labels.showComments(ids.length),
337
- className: chunk5VBDRJ5Y_cjs.cn("quoin-comments-marker", chunk5VBDRJ5Y_cjs.FOCUS_RING),
337
+ className: chunkDZ5XR4O6_cjs.cn("quoin-comments-marker", chunkDZ5XR4O6_cjs.FOCUS_RING),
338
338
  onClick: (event) => onOpen(ids[0], event.currentTarget),
339
339
  children: [
340
- /* @__PURE__ */ jsxRuntime.jsx(chunk5VBDRJ5Y_cjs.MessageSquare, { "aria-hidden": "true" }),
340
+ /* @__PURE__ */ jsxRuntime.jsx(chunkDZ5XR4O6_cjs.MessageSquare, { "aria-hidden": "true" }),
341
341
  ids.length
342
342
  ]
343
343
  },
@@ -351,7 +351,7 @@ async function called(link, call) {
351
351
  await call();
352
352
  return true;
353
353
  } catch (error) {
354
- link.report(chunk5VBDRJ5Y_cjs.toError(error));
354
+ link.report(chunkDZ5XR4O6_cjs.toError(error));
355
355
  return false;
356
356
  }
357
357
  }
@@ -444,21 +444,21 @@ function ReplyBox({ env, threadId, first }) {
444
444
  }
445
445
  ),
446
446
  /* @__PURE__ */ jsxRuntime.jsx(
447
- chunk5VBDRJ5Y_cjs.Button,
447
+ chunkDZ5XR4O6_cjs.Button,
448
448
  {
449
449
  type: "submit",
450
450
  variant: "ghost",
451
451
  size: "icon-sm",
452
452
  "aria-label": labels.send,
453
453
  "aria-disabled": text === "" || sending || void 0,
454
- children: /* @__PURE__ */ jsxRuntime.jsx(chunk5VBDRJ5Y_cjs.SendHorizontal, {})
454
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkDZ5XR4O6_cjs.SendHorizontal, {})
455
455
  }
456
456
  )
457
457
  ] });
458
458
  }
459
459
  function ThreadView({ env, id, thread, onEnded }) {
460
460
  const { controller, host, labels, link } = env;
461
- const readOnly = chunkUKUAQJME_cjs.useReadOnly(controller);
461
+ const readOnly = chunkMGN332NY_cjs.useReadOnly(controller);
462
462
  const [busy, setBusy] = react.useState(false);
463
463
  const alive = react.useRef(true);
464
464
  const root = react.useRef(null);
@@ -483,7 +483,7 @@ function ThreadView({ env, id, thread, onEnded }) {
483
483
  /* @__PURE__ */ jsxRuntime.jsx(ReplyBox, { env, threadId: id, first: comments.length === 0 }),
484
484
  !readOnly && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-1", children: [
485
485
  /* @__PURE__ */ jsxRuntime.jsx(
486
- chunk5VBDRJ5Y_cjs.Button,
486
+ chunkDZ5XR4O6_cjs.Button,
487
487
  {
488
488
  type: "button",
489
489
  variant: "ghost",
@@ -494,7 +494,7 @@ function ThreadView({ env, id, thread, onEnded }) {
494
494
  }
495
495
  ),
496
496
  /* @__PURE__ */ jsxRuntime.jsx(
497
- chunk5VBDRJ5Y_cjs.Button,
497
+ chunkDZ5XR4O6_cjs.Button,
498
498
  {
499
499
  type: "button",
500
500
  variant: "ghost",
@@ -531,7 +531,7 @@ function ThreadCard({ env, entry, active, expanded, onToggle }) {
531
531
  ref: header,
532
532
  type: "button",
533
533
  "aria-expanded": expanded,
534
- className: chunk5VBDRJ5Y_cjs.cn("flex w-full flex-col items-start gap-1 rounded-sm text-start", chunk5VBDRJ5Y_cjs.FOCUS_RING),
534
+ className: chunkDZ5XR4O6_cjs.cn("flex w-full flex-col items-start gap-1 rounded-sm text-start", chunkDZ5XR4O6_cjs.FOCUS_RING),
535
535
  onClick: () => onToggle(expanded ? null : thread.id),
536
536
  children: [
537
537
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: removed ? "text-xs text-muted-foreground italic" : "quoin-comments-quote", children: removed ? labels.textRemoved : anchorText2 }),
@@ -597,7 +597,7 @@ function CommentsSheet({ env, entries, value, onToggle, onClose, returnFocus })
597
597
  children: [
598
598
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
599
599
  /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { className: "text-sm font-semibold", children: labels.comments }),
600
- /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunk5VBDRJ5Y_cjs.Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.close, children: /* @__PURE__ */ jsxRuntime.jsx(chunk5VBDRJ5Y_cjs.X, {}) }) })
600
+ /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkDZ5XR4O6_cjs.Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.close, children: /* @__PURE__ */ jsxRuntime.jsx(chunkDZ5XR4O6_cjs.X, {}) }) })
601
601
  ] }),
602
602
  /* @__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(
603
603
  ThreadCard,
@@ -644,22 +644,22 @@ function ThreadChooser({ env, choices, onChoose }) {
644
644
  var docOf = (state) => state.doc;
645
645
  function focusIsOurs(controller, content) {
646
646
  const active = content?.ownerDocument.activeElement ?? null;
647
- return active === null || active === active.ownerDocument.body || chunkNZFGAV3L_cjs.ownsNode(controller, active);
647
+ return active === null || active === active.ownerDocument.body || chunk3B5VEXVQ_cjs.ownsNode(controller, active);
648
648
  }
649
649
  function ThreadPopover({ env, open, threads, onChoose, onClose }) {
650
650
  const { controller, labels } = env;
651
- const doc = chunkUKUAQJME_cjs.useEditorState(controller, docOf);
651
+ const doc = chunkMGN332NY_cjs.useEditorState(controller, docOf);
652
652
  const anchors = commentAnchors(doc);
653
653
  const { ids } = open;
654
654
  const first = ids.map((id) => anchors.get(id)?.[0]).find(Boolean);
655
655
  const latest = react.useRef(first);
656
- chunkUKUAQJME_cjs.useIsomorphicLayoutEffect(() => {
656
+ chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
657
657
  if (first) latest.current = first;
658
658
  });
659
659
  const anchor = react.useMemo(
660
660
  () => ({
661
- current: chunk5VBDRJ5Y_cjs.virtualAnchor(
662
- () => latest.current ? chunk5VBDRJ5Y_cjs.rangeRect(controller, latest.current) : null,
661
+ current: chunkDZ5XR4O6_cjs.virtualAnchor(
662
+ () => latest.current ? chunkDZ5XR4O6_cjs.rangeRect(controller, latest.current) : null,
663
663
  () => latest.current && controller.registry.get(latest.current.block, latest.current.region)
664
664
  )
665
665
  }),
@@ -672,7 +672,7 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
672
672
  target?.focus();
673
673
  }
674
674
  };
675
- chunkUKUAQJME_cjs.useIsomorphicLayoutEffect(() => {
675
+ chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
676
676
  if (open.focus) focusField();
677
677
  }, [open]);
678
678
  if (first === void 0 && latest.current === void 0) return null;
@@ -693,7 +693,7 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
693
693
  };
694
694
  const choices = ids.map((id) => ({ id, anchorText: textOf(id), preview: threads.find(id)?.comments[0]?.body ?? "" }));
695
695
  return /* @__PURE__ */ jsxRuntime.jsxs(
696
- chunk5VBDRJ5Y_cjs.Popover,
696
+ chunkDZ5XR4O6_cjs.Popover,
697
697
  {
698
698
  open: true,
699
699
  modal: false,
@@ -701,9 +701,9 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
701
701
  if (!next) onClose();
702
702
  },
703
703
  children: [
704
- /* @__PURE__ */ jsxRuntime.jsx(chunk5VBDRJ5Y_cjs.PopoverAnchor, { virtualRef: anchor }),
704
+ /* @__PURE__ */ jsxRuntime.jsx(chunkDZ5XR4O6_cjs.PopoverAnchor, { virtualRef: anchor }),
705
705
  /* @__PURE__ */ jsxRuntime.jsxs(
706
- chunk5VBDRJ5Y_cjs.PopoverContent,
706
+ chunkDZ5XR4O6_cjs.PopoverContent,
707
707
  {
708
708
  ref: content,
709
709
  "aria-label": gone ? labels.textRemoved : single ? labels.thread(textOf(ids[0])) : labels.threadsHere,
@@ -751,7 +751,7 @@ function useAnchorClicks(controller, threads) {
751
751
  var WIDE_CANVAS = 800;
752
752
  function useCanvasWide(box, initial) {
753
753
  const [wide, setWide] = react.useState(initial);
754
- chunkUKUAQJME_cjs.useIsomorphicLayoutEffect(() => {
754
+ chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
755
755
  const canvas = box.current?.parentElement;
756
756
  if (!canvas) return void 0;
757
757
  const measure = () => setWide(canvas.offsetWidth >= WIDE_CANVAS);
@@ -768,15 +768,15 @@ function useThreads(threads) {
768
768
  var commentsOf = (state) => chunkFK7EBZPX_cjs.getPluginState(state, commentsKey);
769
769
  var docOf2 = (state) => state.doc;
770
770
  function CommentsOverlay({ controller, host, labels }) {
771
- const { onError } = chunk5VBDRJ5Y_cjs.useQuoin();
771
+ const { onError } = chunkDZ5XR4O6_cjs.useQuoin();
772
772
  const link = linkOf(controller.editor);
773
- chunkUKUAQJME_cjs.useIsomorphicLayoutEffect(() => {
773
+ chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
774
774
  link.report = onError;
775
775
  }, [link, onError]);
776
776
  useAnchorClicks(controller, host.threads);
777
777
  const threads = useThreads(host.threads);
778
- const value = chunkUKUAQJME_cjs.useEditorState(controller, commentsOf);
779
- const doc = chunkUKUAQJME_cjs.useEditorState(controller, docOf2);
778
+ const value = chunkMGN332NY_cjs.useEditorState(controller, commentsOf);
779
+ const doc = chunkMGN332NY_cjs.useEditorState(controller, docOf2);
780
780
  const entries = react.useMemo(() => railEntries(doc, threads, value.ended), [doc, threads, value.ended]);
781
781
  const box = react.useRef(null);
782
782
  const wide = useCanvasWide(box, host.initialLayout === "wide");
@@ -856,7 +856,7 @@ function watchEnded(editor, threads) {
856
856
  var commentItem = (labels) => ({
857
857
  id: "comment",
858
858
  title: labels.comment,
859
- icon: chunk5VBDRJ5Y_cjs.MessageSquarePlus,
859
+ icon: chunkDZ5XR4O6_cjs.MessageSquarePlus,
860
860
  shortcut: "Mod-Alt-m",
861
861
  available: (state) => hasCommentableText(state) && chunkFK7EBZPX_cjs.getPluginState(state, commentsKey).pending.length === 0,
862
862
  // Focus goes back to the text first: the button leaves the toolbar while the thread is being asked for.
package/dist/comments.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { webAddress } from './chunk-DBOZFNWU.js';
3
- import { ownsNode } from './chunk-AVD2AI47.js';
4
- import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-QIGZ5JAY.js';
5
- import { useIsomorphicLayoutEffect, useEditorState, useReadOnly } from './chunk-SE36LU6G.js';
3
+ import { ownsNode } from './chunk-C4SRLMQJ.js';
4
+ import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-FGVTDIHT.js';
5
+ import { useIsomorphicLayoutEffect, useEditorState, useReadOnly } from './chunk-BNTRGV4A.js';
6
6
  import { mergeLabels } from './chunk-DLQCTGC3.js';
7
7
  import './chunk-HDJ653LM.js';
8
8
  import { createPluginKey, defineExtension, getPluginState, isCollapsed, markRanges, Transaction, comparePos, textSelection, addMarkStep, sameSelection, removeMarkStep } from './chunk-5RBMZGKV.js';
package/dist/diagram.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkYETMZ27Q_cjs = require('./chunk-YETMZ27Q.cjs');
5
- require('./chunk-5VBDRJ5Y.cjs');
6
- require('./chunk-UKUAQJME.cjs');
4
+ var chunkSDFJZNYB_cjs = require('./chunk-SDFJZNYB.cjs');
5
+ require('./chunk-DZ5XR4O6.cjs');
6
+ require('./chunk-MGN332NY.cjs');
7
7
  require('./chunk-ZWTIRGY5.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  require('./chunk-FK7EBZPX.cjs');
@@ -14,13 +14,13 @@ require('./chunk-I7X7B3WD.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "DEFAULT_DIAGRAM_LANGUAGES", {
16
16
  enumerable: true,
17
- get: function () { return chunkYETMZ27Q_cjs.DEFAULT_DIAGRAM_LANGUAGES; }
17
+ get: function () { return chunkSDFJZNYB_cjs.DEFAULT_DIAGRAM_LANGUAGES; }
18
18
  });
19
19
  Object.defineProperty(exports, "diagramExtension", {
20
20
  enumerable: true,
21
- get: function () { return chunkYETMZ27Q_cjs.diagramExtension; }
21
+ get: function () { return chunkSDFJZNYB_cjs.diagramExtension; }
22
22
  });
23
23
  Object.defineProperty(exports, "englishDiagramLabels", {
24
24
  enumerable: true,
25
- get: function () { return chunkYETMZ27Q_cjs.englishDiagramLabels; }
25
+ get: function () { return chunkSDFJZNYB_cjs.englishDiagramLabels; }
26
26
  });
package/dist/diagram.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { DEFAULT_DIAGRAM_LANGUAGES, diagramExtension, englishDiagramLabels } from './chunk-OBOIZ7L3.js';
3
- import './chunk-QIGZ5JAY.js';
4
- import './chunk-SE36LU6G.js';
2
+ export { DEFAULT_DIAGRAM_LANGUAGES, diagramExtension, englishDiagramLabels } from './chunk-MDIXI7DM.js';
3
+ import './chunk-FGVTDIHT.js';
4
+ import './chunk-BNTRGV4A.js';
5
5
  import './chunk-DLQCTGC3.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-5RBMZGKV.js';
package/dist/embed.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkXC4WZTMY_cjs = require('./chunk-XC4WZTMY.cjs');
4
+ var chunkH3TRVI44_cjs = require('./chunk-H3TRVI44.cjs');
5
5
  require('./chunk-LM3DHROX.cjs');
6
- require('./chunk-5VBDRJ5Y.cjs');
7
- require('./chunk-UKUAQJME.cjs');
6
+ require('./chunk-DZ5XR4O6.cjs');
7
+ require('./chunk-MGN332NY.cjs');
8
8
  require('./chunk-ZWTIRGY5.cjs');
9
9
  require('./chunk-A6PGQVTR.cjs');
10
10
  require('./chunk-FK7EBZPX.cjs');
@@ -15,9 +15,9 @@ require('./chunk-I7X7B3WD.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "embedExtension", {
17
17
  enumerable: true,
18
- get: function () { return chunkXC4WZTMY_cjs.embedExtension; }
18
+ get: function () { return chunkH3TRVI44_cjs.embedExtension; }
19
19
  });
20
20
  Object.defineProperty(exports, "englishEmbedLabels", {
21
21
  enumerable: true,
22
- get: function () { return chunkXC4WZTMY_cjs.englishEmbedLabels; }
22
+ get: function () { return chunkH3TRVI44_cjs.englishEmbedLabels; }
23
23
  });
package/dist/embed.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- export { embedExtension, englishEmbedLabels } from './chunk-M7L444WV.js';
2
+ export { embedExtension, englishEmbedLabels } from './chunk-VQDQBMQY.js';
3
3
  import './chunk-DBOZFNWU.js';
4
- import './chunk-QIGZ5JAY.js';
5
- import './chunk-SE36LU6G.js';
4
+ import './chunk-FGVTDIHT.js';
5
+ import './chunk-BNTRGV4A.js';
6
6
  import './chunk-DLQCTGC3.js';
7
7
  import './chunk-HDJ653LM.js';
8
8
  import './chunk-5RBMZGKV.js';
package/dist/emoji.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkRR67AKP6_cjs = require('./chunk-RR67AKP6.cjs');
4
+ var chunkOMUXPNCX_cjs = require('./chunk-OMUXPNCX.cjs');
5
5
  require('./chunk-2SWLD6R5.cjs');
6
- require('./chunk-5VBDRJ5Y.cjs');
7
- require('./chunk-UKUAQJME.cjs');
6
+ require('./chunk-DZ5XR4O6.cjs');
7
+ require('./chunk-MGN332NY.cjs');
8
8
  require('./chunk-ZWTIRGY5.cjs');
9
9
  require('./chunk-A6PGQVTR.cjs');
10
10
  require('./chunk-FK7EBZPX.cjs');
@@ -15,13 +15,13 @@ require('./chunk-I7X7B3WD.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "emojiExtension", {
17
17
  enumerable: true,
18
- get: function () { return chunkRR67AKP6_cjs.emojiExtension; }
18
+ get: function () { return chunkOMUXPNCX_cjs.emojiExtension; }
19
19
  });
20
20
  Object.defineProperty(exports, "englishEmojiLabels", {
21
21
  enumerable: true,
22
- get: function () { return chunkRR67AKP6_cjs.englishEmojiLabels; }
22
+ get: function () { return chunkOMUXPNCX_cjs.englishEmojiLabels; }
23
23
  });
24
24
  Object.defineProperty(exports, "loadEmojiData", {
25
25
  enumerable: true,
26
- get: function () { return chunkRR67AKP6_cjs.loadEmojiData; }
26
+ get: function () { return chunkOMUXPNCX_cjs.loadEmojiData; }
27
27
  });
package/dist/emoji.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-DT3ODGZ7.js';
2
+ export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-YHAVXOAA.js';
3
3
  import './chunk-KTUOPDVO.js';
4
- import './chunk-QIGZ5JAY.js';
5
- import './chunk-SE36LU6G.js';
4
+ import './chunk-FGVTDIHT.js';
5
+ import './chunk-BNTRGV4A.js';
6
6
  import './chunk-DLQCTGC3.js';
7
7
  import './chunk-HDJ653LM.js';
8
8
  import './chunk-5RBMZGKV.js';
package/dist/find.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkTDXQSNFS_cjs = require('./chunk-TDXQSNFS.cjs');
5
- require('./chunk-5VBDRJ5Y.cjs');
6
- require('./chunk-UKUAQJME.cjs');
4
+ var chunk5URH2Y2L_cjs = require('./chunk-5URH2Y2L.cjs');
5
+ require('./chunk-DZ5XR4O6.cjs');
6
+ require('./chunk-MGN332NY.cjs');
7
7
  require('./chunk-ZWTIRGY5.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  require('./chunk-FK7EBZPX.cjs');
@@ -14,17 +14,17 @@ require('./chunk-I7X7B3WD.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "englishFindLabels", {
16
16
  enumerable: true,
17
- get: function () { return chunkTDXQSNFS_cjs.englishFindLabels; }
17
+ get: function () { return chunk5URH2Y2L_cjs.englishFindLabels; }
18
18
  });
19
19
  Object.defineProperty(exports, "findExtension", {
20
20
  enumerable: true,
21
- get: function () { return chunkTDXQSNFS_cjs.findExtension; }
21
+ get: function () { return chunk5URH2Y2L_cjs.findExtension; }
22
22
  });
23
23
  Object.defineProperty(exports, "findMatches", {
24
24
  enumerable: true,
25
- get: function () { return chunkTDXQSNFS_cjs.findMatches; }
25
+ get: function () { return chunk5URH2Y2L_cjs.findMatches; }
26
26
  });
27
27
  Object.defineProperty(exports, "replaceMatches", {
28
28
  enumerable: true,
29
- get: function () { return chunkTDXQSNFS_cjs.replaceMatches; }
29
+ get: function () { return chunk5URH2Y2L_cjs.replaceMatches; }
30
30
  });
package/dist/find.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-4VCCGBXW.js';
3
- import './chunk-QIGZ5JAY.js';
4
- import './chunk-SE36LU6G.js';
2
+ export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-RNYETN6X.js';
3
+ import './chunk-FGVTDIHT.js';
4
+ import './chunk-BNTRGV4A.js';
5
5
  import './chunk-DLQCTGC3.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-5RBMZGKV.js';
package/dist/headless.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkUKUAQJME_cjs = require('./chunk-UKUAQJME.cjs');
4
+ var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
5
5
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
6
6
  var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
7
7
  var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
@@ -10,43 +10,43 @@ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "EditableRegion", {
12
12
  enumerable: true,
13
- get: function () { return chunkUKUAQJME_cjs.EditableRegion; }
13
+ get: function () { return chunkMGN332NY_cjs.EditableRegion; }
14
14
  });
15
15
  Object.defineProperty(exports, "EditorView", {
16
16
  enumerable: true,
17
- get: function () { return chunkUKUAQJME_cjs.EditorView; }
17
+ get: function () { return chunkMGN332NY_cjs.EditorView; }
18
18
  });
19
19
  Object.defineProperty(exports, "ViewController", {
20
20
  enumerable: true,
21
- get: function () { return chunkUKUAQJME_cjs.ViewController; }
21
+ get: function () { return chunkMGN332NY_cjs.ViewController; }
22
22
  });
23
23
  Object.defineProperty(exports, "caretFromPoint", {
24
24
  enumerable: true,
25
- get: function () { return chunkUKUAQJME_cjs.caretFromPoint; }
25
+ get: function () { return chunkMGN332NY_cjs.caretFromPoint; }
26
26
  });
27
27
  Object.defineProperty(exports, "domMapOf", {
28
28
  enumerable: true,
29
- get: function () { return chunkUKUAQJME_cjs.domMapOf; }
29
+ get: function () { return chunkMGN332NY_cjs.domMapOf; }
30
30
  });
31
31
  Object.defineProperty(exports, "hostKey", {
32
32
  enumerable: true,
33
- get: function () { return chunkUKUAQJME_cjs.hostKey; }
33
+ get: function () { return chunkMGN332NY_cjs.hostKey; }
34
34
  });
35
35
  Object.defineProperty(exports, "renderInline", {
36
36
  enumerable: true,
37
- get: function () { return chunkUKUAQJME_cjs.renderInline; }
37
+ get: function () { return chunkMGN332NY_cjs.renderInline; }
38
38
  });
39
39
  Object.defineProperty(exports, "useEditorState", {
40
40
  enumerable: true,
41
- get: function () { return chunkUKUAQJME_cjs.useEditorState; }
41
+ get: function () { return chunkMGN332NY_cjs.useEditorState; }
42
42
  });
43
43
  Object.defineProperty(exports, "useQuoinEditor", {
44
44
  enumerable: true,
45
- get: function () { return chunkUKUAQJME_cjs.useQuoinEditor; }
45
+ get: function () { return chunkMGN332NY_cjs.useQuoinEditor; }
46
46
  });
47
47
  Object.defineProperty(exports, "useViewController", {
48
48
  enumerable: true,
49
- get: function () { return chunkUKUAQJME_cjs.useViewController; }
49
+ get: function () { return chunkMGN332NY_cjs.useViewController; }
50
50
  });
51
51
  Object.defineProperty(exports, "Transaction", {
52
52
  enumerable: true,
package/dist/headless.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-SE36LU6G.js';
2
+ export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-BNTRGV4A.js';
3
3
  export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
4
4
  export { diffBlocks, diffInline } from './chunk-CSPCDVCT.js';
5
5
  export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-7Y4B7NHO.js';
@@ -2,8 +2,8 @@
2
2
  'use strict';
3
3
 
4
4
  var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
5
- var chunk5VBDRJ5Y_cjs = require('./chunk-5VBDRJ5Y.cjs');
6
- require('./chunk-UKUAQJME.cjs');
5
+ var chunkDZ5XR4O6_cjs = require('./chunk-DZ5XR4O6.cjs');
6
+ require('./chunk-MGN332NY.cjs');
7
7
  require('./chunk-ZWTIRGY5.cjs');
8
8
  require('./chunk-A6PGQVTR.cjs');
9
9
  require('./chunk-FK7EBZPX.cjs');
@@ -16,7 +16,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
16
16
  function grammarName(language) {
17
17
  const key = language.trim().toLowerCase();
18
18
  if (key === "") return void 0;
19
- const known = chunk5VBDRJ5Y_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
19
+ const known = chunkDZ5XR4O6_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
20
20
  return known && (NEAREST[known.id] ?? known.id);
21
21
  }
22
22
 
package/dist/highlight.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { lazyLoad } from './chunk-KTUOPDVO.js';
3
- import { CODE_LANGUAGES } from './chunk-QIGZ5JAY.js';
4
- import './chunk-SE36LU6G.js';
3
+ import { CODE_LANGUAGES } from './chunk-FGVTDIHT.js';
4
+ import './chunk-BNTRGV4A.js';
5
5
  import './chunk-DLQCTGC3.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-5RBMZGKV.js';
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunk5VBDRJ5Y_cjs = require('./chunk-5VBDRJ5Y.cjs');
5
- var chunkUKUAQJME_cjs = require('./chunk-UKUAQJME.cjs');
4
+ var chunkDZ5XR4O6_cjs = require('./chunk-DZ5XR4O6.cjs');
5
+ var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
6
6
  require('./chunk-ZWTIRGY5.cjs');
7
7
  var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
8
8
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
@@ -13,87 +13,87 @@ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "BlockCanvas", {
15
15
  enumerable: true,
16
- get: function () { return chunk5VBDRJ5Y_cjs.BlockCanvas; }
16
+ get: function () { return chunkDZ5XR4O6_cjs.BlockCanvas; }
17
17
  });
18
18
  Object.defineProperty(exports, "FilePickerButton", {
19
19
  enumerable: true,
20
- get: function () { return chunk5VBDRJ5Y_cjs.FilePickerButton; }
20
+ get: function () { return chunkDZ5XR4O6_cjs.FilePickerButton; }
21
21
  });
22
22
  Object.defineProperty(exports, "QuoinProvider", {
23
23
  enumerable: true,
24
- get: function () { return chunk5VBDRJ5Y_cjs.QuoinProvider; }
24
+ get: function () { return chunkDZ5XR4O6_cjs.QuoinProvider; }
25
25
  });
26
26
  Object.defineProperty(exports, "UploadField", {
27
27
  enumerable: true,
28
- get: function () { return chunk5VBDRJ5Y_cjs.UploadField; }
28
+ get: function () { return chunkDZ5XR4O6_cjs.UploadField; }
29
29
  });
30
30
  Object.defineProperty(exports, "coreBlocks", {
31
31
  enumerable: true,
32
- get: function () { return chunk5VBDRJ5Y_cjs.coreBlocks; }
32
+ get: function () { return chunkDZ5XR4O6_cjs.coreBlocks; }
33
33
  });
34
34
  Object.defineProperty(exports, "englishLabels", {
35
35
  enumerable: true,
36
- get: function () { return chunk5VBDRJ5Y_cjs.englishLabels; }
36
+ get: function () { return chunkDZ5XR4O6_cjs.englishLabels; }
37
37
  });
38
38
  Object.defineProperty(exports, "formatShortcut", {
39
39
  enumerable: true,
40
- get: function () { return chunk5VBDRJ5Y_cjs.formatShortcut; }
40
+ get: function () { return chunkDZ5XR4O6_cjs.formatShortcut; }
41
41
  });
42
42
  Object.defineProperty(exports, "resolveLabels", {
43
43
  enumerable: true,
44
- get: function () { return chunk5VBDRJ5Y_cjs.resolveLabels; }
44
+ get: function () { return chunkDZ5XR4O6_cjs.resolveLabels; }
45
45
  });
46
46
  Object.defineProperty(exports, "useAutosave", {
47
47
  enumerable: true,
48
- get: function () { return chunk5VBDRJ5Y_cjs.useAutosave; }
48
+ get: function () { return chunkDZ5XR4O6_cjs.useAutosave; }
49
49
  });
50
50
  Object.defineProperty(exports, "useLabels", {
51
51
  enumerable: true,
52
- get: function () { return chunk5VBDRJ5Y_cjs.useLabels; }
52
+ get: function () { return chunkDZ5XR4O6_cjs.useLabels; }
53
53
  });
54
54
  Object.defineProperty(exports, "useQuoin", {
55
55
  enumerable: true,
56
- get: function () { return chunk5VBDRJ5Y_cjs.useQuoin; }
56
+ get: function () { return chunkDZ5XR4O6_cjs.useQuoin; }
57
57
  });
58
58
  Object.defineProperty(exports, "EditableRegion", {
59
59
  enumerable: true,
60
- get: function () { return chunkUKUAQJME_cjs.EditableRegion; }
60
+ get: function () { return chunkMGN332NY_cjs.EditableRegion; }
61
61
  });
62
62
  Object.defineProperty(exports, "EditorView", {
63
63
  enumerable: true,
64
- get: function () { return chunkUKUAQJME_cjs.EditorView; }
64
+ get: function () { return chunkMGN332NY_cjs.EditorView; }
65
65
  });
66
66
  Object.defineProperty(exports, "ViewController", {
67
67
  enumerable: true,
68
- get: function () { return chunkUKUAQJME_cjs.ViewController; }
68
+ get: function () { return chunkMGN332NY_cjs.ViewController; }
69
69
  });
70
70
  Object.defineProperty(exports, "caretFromPoint", {
71
71
  enumerable: true,
72
- get: function () { return chunkUKUAQJME_cjs.caretFromPoint; }
72
+ get: function () { return chunkMGN332NY_cjs.caretFromPoint; }
73
73
  });
74
74
  Object.defineProperty(exports, "domMapOf", {
75
75
  enumerable: true,
76
- get: function () { return chunkUKUAQJME_cjs.domMapOf; }
76
+ get: function () { return chunkMGN332NY_cjs.domMapOf; }
77
77
  });
78
78
  Object.defineProperty(exports, "hostKey", {
79
79
  enumerable: true,
80
- get: function () { return chunkUKUAQJME_cjs.hostKey; }
80
+ get: function () { return chunkMGN332NY_cjs.hostKey; }
81
81
  });
82
82
  Object.defineProperty(exports, "renderInline", {
83
83
  enumerable: true,
84
- get: function () { return chunkUKUAQJME_cjs.renderInline; }
84
+ get: function () { return chunkMGN332NY_cjs.renderInline; }
85
85
  });
86
86
  Object.defineProperty(exports, "useEditorState", {
87
87
  enumerable: true,
88
- get: function () { return chunkUKUAQJME_cjs.useEditorState; }
88
+ get: function () { return chunkMGN332NY_cjs.useEditorState; }
89
89
  });
90
90
  Object.defineProperty(exports, "useQuoinEditor", {
91
91
  enumerable: true,
92
- get: function () { return chunkUKUAQJME_cjs.useQuoinEditor; }
92
+ get: function () { return chunkMGN332NY_cjs.useQuoinEditor; }
93
93
  });
94
94
  Object.defineProperty(exports, "useViewController", {
95
95
  enumerable: true,
96
- get: function () { return chunkUKUAQJME_cjs.useViewController; }
96
+ get: function () { return chunkMGN332NY_cjs.useViewController; }
97
97
  });
98
98
  Object.defineProperty(exports, "blockByType", {
99
99
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -208,7 +208,7 @@ declare function useQuoin(): QuoinConfig;
208
208
  declare const englishLabels: Required<QuoinLabels>;
209
209
 
210
210
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
211
- * English. */
211
+ * English, and so does every entry of a record it overrides only part of. */
212
212
  declare const resolveLabels: (overrides?: Partial<QuoinLabels>) => QuoinLabels;
213
213
 
214
214
  type BlockMenuAction = {
package/dist/index.d.ts CHANGED
@@ -208,7 +208,7 @@ declare function useQuoin(): QuoinConfig;
208
208
  declare const englishLabels: Required<QuoinLabels>;
209
209
 
210
210
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
211
- * English. */
211
+ * English, and so does every entry of a record it overrides only part of. */
212
212
  declare const resolveLabels: (overrides?: Partial<QuoinLabels>) => QuoinLabels;
213
213
 
214
214
  type BlockMenuAction = {