platejs 54.0.0-beta.13 → 54.0.0-beta.14

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 (221) hide show
  1. package/dist/{EditorStatic-CKG5xM3y.d.ts → EditorStatic-eXOA489B.d.ts} +4 -4
  2. package/dist/ai/index.d.ts +2 -2
  3. package/dist/ai/lib/aiDraftSession.js +9 -7
  4. package/dist/ai/lib/aiPolicy.internal.js +43 -6
  5. package/dist/ai/lib/editorAgent.js +30 -21
  6. package/dist/ai/lib/editorAgentSync.internal.js +2 -2
  7. package/dist/ai/lib/lockedContext.js +5 -4
  8. package/dist/ai/react/copilotInline.internal.js +6 -5
  9. package/dist/ai/react/index.d.ts +7 -7
  10. package/dist/ai/react/useEditorAgent.js +14 -3
  11. package/dist/authored/index.d.ts +4 -4
  12. package/dist/{authored-CJL7S8qI-BxC9ip4d.d.ts → authored-qetvpvU--DSWESzxK.d.ts} +3 -3
  13. package/dist/clipboard-format-key-BBu85J9m-BLhtd159.d.ts +1 -0
  14. package/dist/code-block/codemirror/index.d.ts +2 -2
  15. package/dist/{comment-anchor.internal-DTBP1huU.d.ts → comment-anchor.internal-CoNK9gTD.d.ts} +2 -2
  16. package/dist/compiler/index.d.ts +3 -3
  17. package/dist/{core-CTB0OBoh.d.ts → core-By92GWYW.d.ts} +45 -20
  18. package/dist/diff/index.d.ts +2 -2
  19. package/dist/docs/agents/skills.md +6 -2
  20. package/dist/docs/agents.md +1 -1
  21. package/dist/docs/ai-agents.md +8 -4
  22. package/dist/docs/ai.md +5 -0
  23. package/dist/docs/api/plate.md +15 -7
  24. package/dist/docs/api/react-hooks.md +32 -2
  25. package/dist/docs/authored-changes.md +4 -0
  26. package/dist/docs/block-menu.md +4 -0
  27. package/dist/docs/board.md +4 -0
  28. package/dist/docs/callout.md +63 -9
  29. package/dist/docs/collaboration.md +6 -1
  30. package/dist/docs/combobox.md +9 -2
  31. package/dist/docs/comment.md +4 -0
  32. package/dist/docs/components/toolbar-buttons.md +1 -1
  33. package/dist/docs/copilot.md +4 -0
  34. package/dist/docs/deck.md +173 -0
  35. package/dist/docs/details.md +4 -0
  36. package/dist/docs/diff.md +4 -0
  37. package/dist/docs/discussion.md +4 -0
  38. package/dist/docs/dnd.md +4 -0
  39. package/dist/docs/docx.md +6 -0
  40. package/dist/docs/emoji.md +2 -2
  41. package/dist/docs/equation.md +4 -0
  42. package/dist/docs/examples/collaboration-example.md +4 -0
  43. package/dist/docs/examples/export.md +40 -28
  44. package/dist/docs/examples/merge.md +4 -0
  45. package/dist/docs/examples/version-history.md +4 -0
  46. package/dist/docs/field.md +4 -0
  47. package/dist/docs/footnote.md +4 -0
  48. package/dist/docs/format-painter.md +1 -1
  49. package/dist/docs/html.md +4 -0
  50. package/dist/docs/index.md +4 -0
  51. package/dist/docs/ink.md +6 -0
  52. package/dist/docs/installation/manual.md +2 -4
  53. package/dist/docs/installation/next.md +1 -3
  54. package/dist/docs/installation/plate-ui.md +6 -2
  55. package/dist/docs/installation/rsc.md +1 -1
  56. package/dist/docs/installation.md +4 -0
  57. package/dist/docs/link.md +4 -0
  58. package/dist/docs/llms.txt +3 -1
  59. package/dist/docs/lock.md +34 -2
  60. package/dist/docs/markdown.md +4 -0
  61. package/dist/docs/media.md +4 -0
  62. package/dist/docs/mention.md +5 -0
  63. package/dist/docs/pagination.md +4 -0
  64. package/dist/docs/prompt-editor.md +17 -1
  65. package/dist/docs/reference.md +192 -0
  66. package/dist/docs/roots.md +4 -0
  67. package/dist/docs/serializing.md +23 -0
  68. package/dist/docs/slash-command.md +58 -4
  69. package/dist/docs/static.md +29 -20
  70. package/dist/docs/suggestion.md +4 -0
  71. package/dist/docs/sync.md +4 -0
  72. package/dist/docs/table.md +31 -0
  73. package/dist/docs/toolbar.md +4 -0
  74. package/dist/docs/unit-testing.md +4 -0
  75. package/dist/docs/upload.md +4 -0
  76. package/dist/docx/export/index.d.ts +5 -5
  77. package/dist/docx/import/index.d.ts +5 -5
  78. package/dist/docx/paste/index.d.ts +4 -4
  79. package/dist/dom/index.d.ts +1 -1
  80. package/dist/features/basic-nodes/lib/BaseMarkPlugins.js +1 -1
  81. package/dist/features/basic-styles/lib/BaseFormattingPlugin.js +61 -28
  82. package/dist/features/basic-styles/lib/BaseStylePlugins.js +28 -7
  83. package/dist/features/board/index.d.ts +1 -1
  84. package/dist/features/callout/index.d.ts +2 -160
  85. package/dist/features/callout/lib/BaseCalloutPlugin.js +109 -9
  86. package/dist/features/column/index.d.ts +1 -1
  87. package/dist/features/comments/index.d.ts +2 -2
  88. package/dist/features/date/index.d.ts +3 -3
  89. package/dist/features/details/index.d.ts +3 -3
  90. package/dist/features/field/index.d.ts +1 -1
  91. package/dist/features/field/lib/BaseFieldPlugin.js +111 -53
  92. package/dist/features/field/lib/fieldCache.internal.js +9 -21
  93. package/dist/features/find/index.d.ts +3 -3
  94. package/dist/features/footnote/index.d.ts +3 -3
  95. package/dist/features/ink/index.d.ts +1 -1
  96. package/dist/features/link/lib/BaseLinkPlugin.js +5 -2
  97. package/dist/features/lint/index.d.ts +3 -3
  98. package/dist/features/list/lib/listKeyboard.internal.js +7 -2
  99. package/dist/features/lock/index.d.ts +1 -1
  100. package/dist/features/media/index.d.ts +1 -1
  101. package/dist/features/mention/index.d.ts +1 -1
  102. package/dist/features/reference/index.d.ts +236 -0
  103. package/dist/features/reference/index.js +2 -0
  104. package/dist/features/reference/lib/BaseReferencePlugin.js +589 -0
  105. package/dist/features/table/index.d.ts +2 -2
  106. package/dist/features/toc/index.d.ts +1 -1
  107. package/dist/features/upload/index.d.ts +1 -1
  108. package/dist/history/index.d.ts +1 -1
  109. package/dist/html/index.d.ts +4 -4
  110. package/dist/html/server/index.d.ts +2 -2
  111. package/dist/html/server/serverCssParser.internal.js +14 -25
  112. package/dist/html/server/serverCssStyle.internal.js +4 -7
  113. package/dist/{htmlConversion-Y-M6PLRi.d.ts → htmlConversion-CRnxMGw-.d.ts} +2 -2
  114. package/dist/{htmlTypes-CNhoCFjK.d.ts → htmlTypes-3laowz-3.d.ts} +3 -3
  115. package/dist/hyperscript/index.d.ts +1 -1
  116. package/dist/{index-B-8L9f6a2.d.ts → index-B3VOCxNR.d.ts} +5 -5
  117. package/dist/{index-B8JeECEk.d.ts → index-B9UlNijk.d.ts} +2 -2
  118. package/dist/{index-Bqva6PJc.d.ts → index-BJPT0Tv_.d.ts} +3 -3
  119. package/dist/{index-CWutqVQ_-BO-UgVeK.d.ts → index-BKPWmnLg-Bp_vItjr.d.ts} +1 -1
  120. package/dist/{index-BFWK852j.d.ts → index-BcD2RAB9.d.ts} +3 -3
  121. package/dist/{index-DhsryaAC.d.ts → index-C5Xw3JDc.d.ts} +1 -1
  122. package/dist/{index-BEXBAmJf.d.ts → index-CAshLTjV.d.ts} +3 -3
  123. package/dist/{index-qqrnWAk_.d.ts → index-CHlITvuq.d.ts} +7 -7
  124. package/dist/index-CKSwab_O.d.ts +1 -0
  125. package/dist/{index-DJhwDkfd.d.ts → index-CRQoHk18.d.ts} +3 -3
  126. package/dist/index-CyY3O6c7.d.ts +3 -0
  127. package/dist/index-D8EGVCeT.d.ts +305 -0
  128. package/dist/{index-B0R9sXv2-T1dxG9oM.d.ts → index-DAKucat0--VOaL_NN.d.ts} +4 -4
  129. package/dist/{index-UYpvOBXG.d.ts → index-DCTRNYwy.d.ts} +2 -2
  130. package/dist/{index-CXd5hwaH.d.ts → index-DQpHoxDX.d.ts} +1 -1
  131. package/dist/{index-BfJKfAwk.d.ts → index-DTd1D-BF.d.ts} +3 -3
  132. package/dist/index-DUhUT9bV.d.ts +1 -0
  133. package/dist/{index-B4aToRMv.d.ts → index-DXm_v0Qq.d.ts} +3 -3
  134. package/dist/{index-D3bhjdRz.d.ts → index-Djwcl0Ff.d.ts} +3 -3
  135. package/dist/{index-DYuqsDrP.d.ts → index-Dyw6BJx8.d.ts} +3 -3
  136. package/dist/{index-CLPMcGC5.d.ts → index-KG95XVaC.d.ts} +4 -4
  137. package/dist/{index-mcBtG6pK-CitQV9Bq.d.ts → index-LEcSTRgn-BR_p4GVY.d.ts} +2 -2
  138. package/dist/{index-D54VPeky.d.ts → index-k-wvVxKl.d.ts} +2 -2
  139. package/dist/{index-CHud6Aa-.d.ts → index-s34W6hUI.d.ts} +3 -3
  140. package/dist/{index-DXCdafUk.d.ts → index-wEkvA-wI.d.ts} +43 -20
  141. package/dist/index.d.ts +3 -3
  142. package/dist/internal/plugin/pluginInjectNodeProps.js +33 -5
  143. package/dist/internal/utils/urlPolicy.js +11 -1
  144. package/dist/lib/editor/withPlite.js +8 -6
  145. package/dist/lib/plugins/html/cssLexer.internal.js +126 -29
  146. package/dist/lib/plugins/html/cssSafety.internal.js +100 -0
  147. package/dist/lib/plugins/html/htmlDecode.internal.js +2 -2
  148. package/dist/lib/plugins/html/htmlMatcher.internal.js +1 -1
  149. package/dist/lib/plugins/html/htmlRules.internal.js +2 -13
  150. package/dist/lib/plugins/html/htmlSafety.js +17 -24
  151. package/dist/lib/plugins/html/htmlSerialize.internal.js +16 -2
  152. package/dist/lib/plugins/html/htmlStyleInline.internal.js +22 -23
  153. package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +27 -1
  154. package/dist/markdown/index.d.ts +1 -1
  155. package/dist/markdown/lib/internal/markdownAttributes.js +16 -7
  156. package/dist/markdown/lib/internal/markdownMappings.js +123 -16
  157. package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +16 -1
  158. package/dist/math/index.d.ts +3 -3
  159. package/dist/math/react/index.d.ts +4 -4
  160. package/dist/migrations/index.d.ts +4 -4
  161. package/dist/migrations/migratePlateV54Urls.internal.js +63 -1
  162. package/dist/pagination/index.d.ts +1 -1
  163. package/dist/pagination/react/index.d.ts +3 -3
  164. package/dist/{protocol-CSuP7AWG-DAorqpaF.d.ts → protocol-Cp9xayOe-0OSfTMnt.d.ts} +1 -1
  165. package/dist/react/authored/index.d.ts +4 -4
  166. package/dist/react/components/PlateView.js +7 -1
  167. package/dist/react/features/board/index.d.ts +5 -5
  168. package/dist/react/features/callout/index.d.ts +93 -4
  169. package/dist/react/features/column/index.d.ts +5 -5
  170. package/dist/react/features/combobox/combobox.internal.js +35 -22
  171. package/dist/react/features/combobox/comboboxOwner.internal.js +29 -2
  172. package/dist/react/features/combobox/index.d.ts +8 -6
  173. package/dist/react/features/comments/index.d.ts +6 -6
  174. package/dist/react/features/date/index.d.ts +4 -4
  175. package/dist/react/features/details/index.d.ts +4 -4
  176. package/dist/react/features/field/FieldPlugin.js +2 -2
  177. package/dist/react/features/field/index.d.ts +5 -5
  178. package/dist/react/features/footnote/index.d.ts +4 -4
  179. package/dist/react/features/format-painter/FormatPainterPlugin.js +27 -34
  180. package/dist/react/features/format-painter/index.d.ts +4 -4
  181. package/dist/react/features/ink/index.d.ts +5 -5
  182. package/dist/react/features/lock/index.d.ts +5 -5
  183. package/dist/react/features/media/index.d.ts +5 -5
  184. package/dist/react/features/mention/index.d.ts +4 -4
  185. package/dist/react/features/table/index.d.ts +6 -6
  186. package/dist/react/features/toc/index.d.ts +2 -2
  187. package/dist/react/features/upload/index.d.ts +5 -5
  188. package/dist/react/index.d.ts +6 -6
  189. package/dist/react/virtualized.d.ts +3 -3
  190. package/dist/refusal-CwFxNUf7-BLhtd159.d.ts +1 -0
  191. package/dist/{registerEditorTools-Cl-o_Wnq.d.ts → registerEditorTools-D_3hPpTx.d.ts} +16 -8
  192. package/dist/shared-room-26tNRhZE-BLhtd159.d.ts +1 -0
  193. package/dist/skills/plate/SKILL.md +4 -3
  194. package/dist/skills/plate/references/ai-and-agents.md +2 -2
  195. package/dist/skills/plate/references/pricing.md +3 -3
  196. package/dist/skills/plate/references/setup.md +6 -0
  197. package/dist/skills/plate/references/ui-and-sync.md +4 -3
  198. package/dist/{source-DUP5aKcT.d.ts → source-BW7JD_oS.d.ts} +3 -3
  199. package/dist/static/index.d.ts +23 -9
  200. package/dist/static/internal/staticPendingMedia.internal.js +2 -1
  201. package/dist/static/internal/staticPresentation.js +1 -0
  202. package/dist/static/renderStaticHtml.js +85 -39
  203. package/dist/{storage-EzfLDqRy-Cu4DQ-Rf.d.ts → storage-C7xSH1I5-BJLoUfo9.d.ts} +2 -2
  204. package/dist/sync/cloudflare/index.d.ts +3 -3
  205. package/dist/sync/index.d.ts +4 -4
  206. package/dist/sync/postgres/index.d.ts +1 -1
  207. package/dist/sync/react/index.d.ts +6 -6
  208. package/dist/sync/server/index.d.ts +5 -5
  209. package/dist/tabbable/react/index.d.ts +4 -4
  210. package/dist/testing/index.d.ts +3 -3
  211. package/dist/{transport-DAforzBt-BFwAhC-N.d.ts → transport-B-ON68Y4-DCfT5-eN.d.ts} +1 -1
  212. package/dist/utils/plate-keys.js +1 -0
  213. package/dist/{widths-BjIZxtaJ.d.ts → widths-9NNziDRW.d.ts} +5 -5
  214. package/package.json +9 -2
  215. package/dist/clipboard-format-key-D9rnh20X-CR00YA0H.d.ts +0 -1
  216. package/dist/index-CKAkaSJK.d.ts +0 -3
  217. package/dist/index-CxyK4HrT.d.ts +0 -1
  218. package/dist/index-zcb_RtZC.d.ts +0 -1
  219. package/dist/refusal-DCzeB9nD-CR00YA0H.d.ts +0 -1
  220. package/dist/shared-room-Bg8qMvm1-CR00YA0H.d.ts +0 -1
  221. /package/dist/{tx-only-CWT-IURY-BqIFhy44.d.ts → tx-only-sIj7BcYh-BMFkGMuq.d.ts} +0 -0
@@ -2,6 +2,19 @@ import { PathApi, PointApi, RangeApi, TextApi } from "../../../core.js";
2
2
  //#region src/react/features/combobox/combobox.internal.ts
3
3
  const stateless = (pattern) => pattern.global || pattern.sticky ? new RegExp(pattern.source, pattern.flags.replace(/[gy]/g, "")) : pattern;
4
4
  const rootOf = (point) => point.root ?? "main";
5
+ const isAdjacentTextBoundary = (read, from, to) => {
6
+ if (rootOf(from) !== rootOf(to) || !PathApi.equals(PathApi.parent(from.path), PathApi.parent(to.path)) || PointApi.isAfter(from, to)) return false;
7
+ const parent = PathApi.parent(from.path);
8
+ const first = from.path.at(-1) ?? 0;
9
+ const last = to.path.at(-1) ?? 0;
10
+ for (let index = first; index <= last; index += 1) {
11
+ const node = read.nodes.get([...parent, index])?.[0];
12
+ if (!TextApi.isText(node)) return false;
13
+ const start = index === first ? from.offset : 0;
14
+ if ((index === last ? to.offset : node.text.length) > start) return false;
15
+ }
16
+ return true;
17
+ };
5
18
  const readTextBeforeCaret = (read, caret, length) => {
6
19
  const parent = PathApi.parent(caret.path);
7
20
  const leaves = [];
@@ -21,10 +34,10 @@ const readTextBeforeCaret = (read, caret, length) => {
21
34
  }
22
35
  leaves.reverse();
23
36
  const text = leaves.map((leaf) => leaf.text).join("");
24
- const pointAt = (offset) => {
37
+ const pointAt = (offset, edge) => {
25
38
  let rest = offset;
26
39
  for (const leaf of leaves) {
27
- if (rest <= leaf.text.length) return {
40
+ if (edge === "start" ? rest < leaf.text.length : leaf.text.length > 0 && rest <= leaf.text.length) return {
28
41
  ...caret,
29
42
  offset: leaf.start + rest,
30
43
  path: leaf.path
@@ -71,29 +84,29 @@ const readTriggerAndQuery = (read, start, end, caret, maxTotalLength) => {
71
84
  trigger: run.slice(0, triggerLen)
72
85
  };
73
86
  };
74
- const findLastTrigger = (text, typedFrom, trigger) => {
75
- if (!trigger) return null;
76
- const start = text.lastIndexOf(trigger);
77
- const end = start + trigger.length;
78
- return start !== -1 && end > typedFrom ? {
79
- end,
80
- start
81
- } : null;
82
- };
83
87
  const findTypedTrigger = (read, { caret, length }, policy) => {
84
88
  if (!policy.trigger) return null;
85
89
  const run = readTextBeforeCaret(read, caret, length + policy.trigger.length + 1);
86
- const found = findLastTrigger(run.text, Math.max(0, run.text.length - length), policy.trigger);
87
- if (!found) return null;
88
- const start = run.pointAt(found.start);
89
- if (policy.triggerPreviousCharPattern) {
90
- const previousChar = found.start > 0 ? run.text.slice(found.start - 1, found.start) : "";
91
- if (!stateless(policy.triggerPreviousCharPattern).test(previousChar)) return null;
90
+ const typedFrom = Math.max(0, run.text.length - length);
91
+ const previousPattern = policy.triggerPreviousCharPattern ? stateless(policy.triggerPreviousCharPattern) : null;
92
+ let searchFrom = run.text.length;
93
+ while (searchFrom >= 0) {
94
+ const start = run.text.lastIndexOf(policy.trigger, searchFrom);
95
+ if (start === -1) return null;
96
+ const end = start + policy.trigger.length;
97
+ if (end <= typedFrom) return null;
98
+ if (!previousPattern) return {
99
+ anchor: run.pointAt(start, "start"),
100
+ focus: run.pointAt(end, "end")
101
+ };
102
+ const previousChar = start > 0 ? run.text.slice(start - 1, start) : "";
103
+ if (previousPattern.test(previousChar)) return {
104
+ anchor: run.pointAt(start, "start"),
105
+ focus: run.pointAt(end, "end")
106
+ };
107
+ searchFrom = start - 1;
92
108
  }
93
- return {
94
- anchor: start,
95
- focus: run.pointAt(found.end)
96
- };
109
+ return null;
97
110
  };
98
111
  const readComboboxQuery = (read, { caret, typedExtentEnd, trigger, triggerText }, policy) => {
99
112
  const [start, end] = RangeApi.edges(trigger);
@@ -103,4 +116,4 @@ const readComboboxQuery = (read, { caret, typedExtentEnd, trigger, triggerText }
103
116
  return isComboboxQuery(run.query, policy) ? run.query : null;
104
117
  };
105
118
  //#endregion
106
- export { findTypedTrigger, isComboboxQuery, readComboboxQuery };
119
+ export { findTypedTrigger, isAdjacentTextBoundary, isComboboxQuery, readComboboxQuery };
@@ -1,8 +1,9 @@
1
1
  import { RangeApi, hasNonWritableAt, subscribeEditorViewState } from "../../../facade.js";
2
+ import { hasInputRuleVetoAt } from "../../../lib/plugins/input-rules/inputRuleVeto.internal.js";
2
3
  import { PointApi } from "../../../core.js";
3
4
  import { isImeConfirmKeyEvent } from "../../utils/dispatchPlateShortcut.internal.js";
4
5
  import { claimEditableKeyDown } from "../../utils/editableKeyDown.internal.js";
5
- import { findTypedTrigger, isComboboxQuery, readComboboxQuery } from "./combobox.internal.js";
6
+ import { findTypedTrigger, isAdjacentTextBoundary, isComboboxQuery, readComboboxQuery } from "./combobox.internal.js";
6
7
  //#region src/react/features/combobox/comboboxOwner.internal.ts
7
8
  const POPUP_KEYS = /* @__PURE__ */ new Set([
8
9
  "ArrowDown",
@@ -62,6 +63,9 @@ var ComboboxOwner = class {
62
63
  if (!trigger || !typedExtent || !selection || !RangeApi.isCollapsed(selection) || !this.isEditable() || hasNonWritableAt(this.view, {
63
64
  anchor: RangeApi.start(trigger),
64
65
  focus: selection.focus
66
+ }) || hasInputRuleVetoAt(this.view, tx, {
67
+ anchor: RangeApi.start(trigger),
68
+ focus: selection.focus
65
69
  }) || readComboboxQuery(tx, {
66
70
  caret: selection.focus,
67
71
  typedExtentEnd: RangeApi.end(typedExtent),
@@ -109,6 +113,7 @@ var ComboboxOwner = class {
109
113
  };
110
114
  syncAria() {
111
115
  const popup = this.match ? this.occurrence?.popup : void 0;
116
+ if (!popup && this.replaced.size === 0) return;
112
117
  const currentLabel = this.element.getAttribute("aria-label");
113
118
  const hasAppLabel = this.element.hasAttribute("aria-labelledby") || currentLabel !== null && !(this.replaced.has("aria-label") && currentLabel === this.written.get("aria-label"));
114
119
  const next = popup ? {
@@ -165,7 +170,10 @@ var ComboboxOwner = class {
165
170
  for (const popup of this.popups) {
166
171
  const { policy } = popup;
167
172
  const trigger = findTypedTrigger(this.view.read, insertion, policy);
168
- if (trigger && (!latest || PointApi.isAfter(RangeApi.start(trigger), RangeApi.start(latest.trigger))) && (!policy.triggerQuery || policy.triggerQuery(this.view))) latest = {
173
+ if (trigger && (!latest || PointApi.isAfter(RangeApi.start(trigger), RangeApi.start(latest.trigger))) && !hasInputRuleVetoAt(this.view, this.view.read, {
174
+ anchor: RangeApi.start(trigger),
175
+ focus: insertion.caret
176
+ }) && (!policy.triggerQuery || policy.triggerQuery(this.view))) latest = {
169
177
  popup,
170
178
  trigger
171
179
  };
@@ -187,6 +195,22 @@ var ComboboxOwner = class {
187
195
  triggerText: this.view.read.text.string(trigger)
188
196
  };
189
197
  this.match = null;
198
+ } else if (this.occurrence) {
199
+ const { occurrence } = this;
200
+ const trigger = occurrence.trigger.resolve(this.view);
201
+ const typedExtent = occurrence.typedExtent.resolve(this.view);
202
+ const insertStart = RangeApi.start(range);
203
+ const insertEnd = RangeApi.end(range);
204
+ if (trigger && typedExtent && PointApi.isAfter(insertEnd, RangeApi.end(typedExtent)) && isAdjacentTextBoundary(this.view.read, RangeApi.end(typedExtent), insertStart)) {
205
+ occurrence.typedExtent.release();
206
+ occurrence.typedExtent = this.view.anchor({
207
+ anchor: RangeApi.start(trigger),
208
+ focus: insertEnd
209
+ }, {
210
+ association: "outward",
211
+ deletion: "nearest"
212
+ });
213
+ }
190
214
  }
191
215
  }
192
216
  }
@@ -211,6 +235,9 @@ var ComboboxOwner = class {
211
235
  if (!occurrence || !trigger || !typedExtent || !policy || !selection || !RangeApi.isCollapsed(selection) || !this.isEditable() || this.isAnotherEditorFocused() || hasNonWritableAt(this.view, {
212
236
  anchor: RangeApi.start(trigger),
213
237
  focus: selection.focus
238
+ }) || hasInputRuleVetoAt(this.view, this.view.read, {
239
+ anchor: RangeApi.start(trigger),
240
+ focus: selection.focus
214
241
  })) return null;
215
242
  const composing = this.view.api.react.isComposing();
216
243
  const query = readComboboxQuery(this.view.read, {
@@ -1,7 +1,7 @@
1
- import { $o as Range } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { Ct as PluginTransaction } from "../../../core-CTB0OBoh.js";
4
- import { ot as Editor } from "../../../index-DXCdafUk.js";
1
+ import { $o as Range } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { Ct as PluginTransaction } from "../../../core-By92GWYW.js";
4
+ import { ot as Editor } from "../../../index-wEkvA-wI.js";
5
5
  import React$1 from "react";
6
6
  /** The open query an autocomplete popup offers options for. */
7
7
  type ComboboxMatch = Readonly<{
@@ -57,8 +57,10 @@ type UseComboboxOptions = {
57
57
  */
58
58
  triggerPreviousCharPattern?: RegExp | null;
59
59
  /**
60
- * Return `false` to keep a typed trigger as plain text, for example inside
61
- * a code block. Defaults to `null`.
60
+ * Optional app predicate; return `false` to keep a typed trigger as plain
61
+ * text in custom contexts. Literal-text elements and marks contributing to
62
+ * `inputRuleVeto` (such as code blocks and inline code) are always skipped.
63
+ * Defaults to `null`.
62
64
  */
63
65
  triggerQuery?: ((editor: Editor) => boolean) | null;
64
66
  };
@@ -1,9 +1,9 @@
1
- import { $o as Range, Bi as Location, Po as Point, Wl as Value, Yi as NamedRootKey, ma as NodeKey } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { i as CommentAnchors } from "../../../comment-anchor.internal-DTBP1huU.js";
6
- import { A as PendingComment, C as CommentsChange, N as CommentAttachmentChange, O as CreateCommentThreadInput, S as CommentThread, b as CommentResolution, d as CommentMessage, f as CommentMutationDecision, h as CommentMutationResult, i as CommentAttachment, l as CommentDataValue, m as CommentMutationRequest, p as CommentMutationOptions, s as CommentData, v as CommentRemoteUpdate, w as CommentsLoadIssue, x as CommentTarget } from "../../../index-CLPMcGC5.js";
1
+ import { $o as Range, Bi as Location, Po as Point, Wl as Value, Yi as NamedRootKey, ma as NodeKey } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { i as CommentAnchors } from "../../../comment-anchor.internal-CoNK9gTD.js";
6
+ import { A as PendingComment, C as CommentsChange, N as CommentAttachmentChange, O as CreateCommentThreadInput, S as CommentThread, b as CommentResolution, d as CommentMessage, f as CommentMutationDecision, h as CommentMutationResult, i as CommentAttachment, l as CommentDataValue, m as CommentMutationRequest, p as CommentMutationOptions, s as CommentData, v as CommentRemoteUpdate, w as CommentsLoadIssue, x as CommentTarget } from "../../../index-KG95XVaC.js";
7
7
  /** Comment data and mapped anchors with interaction for the exact mounted view. */
8
8
  declare const CommentsPlugin: Plugin<Readonly<{
9
9
  readonly initialState: {
@@ -1,7 +1,7 @@
1
- import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { vt as NodeInsertOptions } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
1
+ import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { vt as NodeInsertOptions } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
5
  declare const DatePlugin: Plugin<Readonly<{
6
6
  readonly __pluginWritableProperties: Readonly<{
7
7
  descriptor: PropertyStringDescriptor<{
@@ -1,7 +1,7 @@
1
- import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gs as SchemaContentDefault, ma as NodeKey, ys as SchemaContentPrefixSlot } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { Sa as HeadingLevel, ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
1
+ import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gs as SchemaContentDefault, ma as NodeKey, ys as SchemaContentPrefixSlot } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { Sa as HeadingLevel, ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
5
  declare const DetailsSummaryPlugin: Plugin<Readonly<{
6
6
  formats: true;
7
7
  }> & Readonly<{
@@ -3,7 +3,7 @@ import { useEditorSelector } from "../../stores/plate/useEditorSelector.js";
3
3
  import { useEditor } from "../../stores/plate/useEditor.js";
4
4
  import { usePluginStore } from "../../stores/plate/usePluginStore.js";
5
5
  import { toReactPlugin } from "../../plugin/toReactPlugin.js";
6
- import { isFieldLockInstalled, readWithFieldAccess } from "../../../features/field/lib/fieldCache.internal.js";
6
+ import { isFieldLockInstalled, readFieldWithAccess } from "../../../features/field/lib/fieldCache.internal.js";
7
7
  import { BaseFieldPlugin } from "../../../features/field/lib/BaseFieldPlugin.js";
8
8
  import { c } from "react/compiler-runtime";
9
9
  //#region src/react/features/field/FieldPlugin.tsx
@@ -29,7 +29,7 @@ const useFieldRead = (fieldId) => {
29
29
  const watchAuthored = hasAuthoredRuntime(editor) && (fillRole !== null || isFieldLockInstalled(editor));
30
30
  let t0;
31
31
  if ($[0] !== fieldId) {
32
- t0 = (current) => readWithFieldAccess(() => current.plugin(BaseFieldPlugin).read.field(fieldId));
32
+ t0 = (current) => readFieldWithAccess(current, fieldId);
33
33
  $[0] = fieldId;
34
34
  $[1] = t0;
35
35
  } else t0 = $[1];
@@ -1,8 +1,8 @@
1
- import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, qo as PropertyStringDescriptor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { vt as NodeInsertOptions } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { A as isMinCount, D as isFieldOptions, E as isFieldName, O as isFieldValue, T as isFieldCondition, _ as FieldRead, b as FieldTest, d as FieldConditionTest, h as FieldPatch, k as isMaxCount, u as FieldCondition, v as FieldSettings, x as FieldValue, y as FieldSubmission } from "../../../index-DJhwDkfd.js";
1
+ import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, qo as PropertyStringDescriptor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { vt as NodeInsertOptions } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { A as isMinCount, D as isFieldOptions, E as isFieldName, O as isFieldValue, T as isFieldCondition, _ as FieldRead, b as FieldTest, d as FieldConditionTest, h as FieldPatch, k as isMaxCount, u as FieldCondition, v as FieldSettings, x as FieldValue, y as FieldSubmission } from "../../../index-CRQoHk18.js";
6
6
  /** Live editor access flags for one field chip. */
7
7
  type FieldAccess = Readonly<{
8
8
  /** True when the field sits inside a locked block or root. */
@@ -1,7 +1,7 @@
1
- import { Es as SchemaContentRule, Js as SchemaNodeTypeProvider, Mt as EditorJsonValue, N as Descendant, Vl as TxDeclaredMethod, Wa as Path, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, qo as PropertyStringDescriptor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { fo as PluginReference, p as BasePlugin, uo as PluginDependency, vt as NodeInsertOptions } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
1
+ import { Es as SchemaContentRule, Js as SchemaNodeTypeProvider, Mt as EditorJsonValue, N as Descendant, Vl as TxDeclaredMethod, Wa as Path, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, qo as PropertyStringDescriptor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { fo as PluginReference, p as BasePlugin, uo as PluginDependency, vt as NodeInsertOptions } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
5
  declare const FootnoteDefinitionPlugin: Plugin<Readonly<{
6
6
  formats: true;
7
7
  }> & Readonly<{
@@ -1,3 +1,4 @@
1
+ import { getViewPresentation, onPresentationRelease } from "../../../facade.js";
1
2
  import { PLUGINS } from "../../../utils/plate-keys.js";
2
3
  import { PathApi, PointApi, RangeApi } from "../../../core.js";
3
4
  import { BaseFormattingPlugin } from "../../../features/basic-styles/lib/BaseFormattingPlugin.js";
@@ -5,9 +6,9 @@ import { useIsomorphicLayoutEffect } from "../../internal/react-helpers.js";
5
6
  import { useEditorReadOnly } from "../../stores/plate/useEditor.js";
6
7
  import { useViewStore } from "../../stores/plate/useViewStore.js";
7
8
  import { definePlugin } from "../../plugin/definePlugin.js";
8
- import * as React$1 from "react";
9
9
  import { c } from "react/compiler-runtime";
10
10
  //#region src/react/features/format-painter/FormatPainterPlugin.tsx
11
+ const registeredPresentations = /* @__PURE__ */ new WeakSet();
11
12
  /**
12
13
  * Copy the look of one piece of text onto another. Arm the brush on a
13
14
  * selection, then make a pointer selection (mouse, touch, or pen): the brush
@@ -36,6 +37,15 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
36
37
  association: "inward",
37
38
  deletion: "nearest"
38
39
  });
40
+ const ensurePresentationRelease = () => {
41
+ const presentation = getViewPresentation(editor);
42
+ if (registeredPresentations.has(presentation)) return;
43
+ registeredPresentations.add(presentation);
44
+ onPresentationRelease(presentation, () => {
45
+ registeredPresentations.delete(presentation);
46
+ viewStore.get().source?.release();
47
+ });
48
+ };
39
49
  return {
40
50
  /**
41
51
  * Pick up the brush with the look at the selection's start: `sticky`
@@ -45,6 +55,7 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
45
55
  arm: ({ sticky = false } = {}) => {
46
56
  const captured = !editor.read.view.isReadOnly() && capture();
47
57
  if (!captured) return false;
58
+ ensurePresentationRelease();
48
59
  viewStore.get().source?.release();
49
60
  viewStore.set({
50
61
  armed: sticky ? "sticky" : "once",
@@ -61,7 +72,10 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
61
72
  const captured = capture();
62
73
  if (!captured) return false;
63
74
  const { source } = viewStore.get();
64
- source?.release();
75
+ if (source) {
76
+ ensurePresentationRelease();
77
+ source.release();
78
+ }
65
79
  viewStore.set(source ? {
66
80
  copied: captured.copied,
67
81
  source: anchor(captured.selection)
@@ -92,7 +106,7 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
92
106
  },
93
107
  on: { pointerSelectionEnd: ({ editor, selection }) => {
94
108
  if (editor.read.view.isReadOnly()) return;
95
- editor.update((tx) => {
109
+ const spent = editor.update((tx) => {
96
110
  const store = viewStoreOf(tx);
97
111
  const brush = store.get();
98
112
  if (brush.armed === "off") return null;
@@ -115,12 +129,18 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
115
129
  const target = RangeApi.isCollapsed(selection) ? wordAt(selection.anchor) : selection;
116
130
  const source = brush.source.resolve();
117
131
  if (!target || source && PointApi.equals(RangeApi.start(source), RangeApi.start(target)) && PointApi.equals(RangeApi.end(source), RangeApi.end(target)) || !tx.formatting.apply(brush.copied, { at: target }) || brush.armed === "sticky") return null;
118
- store.set({
132
+ return {
133
+ source: brush.source,
134
+ store
135
+ };
136
+ });
137
+ if (spent) {
138
+ spent.source.release();
139
+ if (spent.store.get().source === spent.source) spent.store.set({
119
140
  armed: "off",
120
141
  source: null
121
142
  });
122
- return brush.source;
123
- })?.release();
143
+ }
124
144
  } }
125
145
  })).extend({
126
146
  shortcuts: {
@@ -128,10 +148,7 @@ const FormatPainterPlugin = definePlugin(PLUGINS.formatPainter, {
128
148
  disarm: { keys: "escape" },
129
149
  paste: { keys: "mod+alt+keyv" }
130
150
  },
131
- slots: {
132
- afterEditable: FormatPainterHostAttribute,
133
- wrapRoot: ReleaseSourceWithView
134
- }
151
+ slots: { afterEditable: FormatPainterHostAttribute }
135
152
  });
136
153
  const FORMAT_PAINTER_ATTRIBUTE = "data-editor-format-painter";
137
154
  function FormatPainterHostAttribute(t0) {
@@ -174,29 +191,5 @@ function FormatPainterHostAttribute(t0) {
174
191
  function _temp(state) {
175
192
  return state.armed;
176
193
  }
177
- function ReleaseSourceWithView(t0) {
178
- const $ = c(3);
179
- const { children } = t0;
180
- const source = useViewStore(FormatPainterPlugin, _temp2);
181
- let t1;
182
- let t2;
183
- if ($[0] !== source) {
184
- t1 = () => () => {
185
- source?.release();
186
- };
187
- t2 = [source];
188
- $[0] = source;
189
- $[1] = t1;
190
- $[2] = t2;
191
- } else {
192
- t1 = $[1];
193
- t2 = $[2];
194
- }
195
- React$1.useInsertionEffect(t1, t2);
196
- return children;
197
- }
198
- function _temp2(state) {
199
- return state.source;
200
- }
201
194
  //#endregion
202
195
  export { FormatPainterPlugin };
@@ -1,7 +1,7 @@
1
- import { $o as Range, Vl as TxDeclaredMethod, o as Anchor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { ea as CapturedFormat, fo as PluginReference, p as BasePlugin, uo as PluginDependency } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
1
+ import { $o as Range, Vl as TxDeclaredMethod, o as Anchor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { ea as CapturedFormat, fo as PluginReference, p as BasePlugin, uo as PluginDependency } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
5
  /**
6
6
  * One view's format painter. An armed brush always holds the look it copied
7
7
  * and an anchor on the range it copied from; `once` puts the brush down after
@@ -1,8 +1,8 @@
1
- import { Qa as Plugin, Vl as TxDeclaredMethod } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { rr as BasePluginDependencyReferenceFor } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin$1, Wt as WrapContentProps } from "../../../index-DXCdafUk.js";
5
- import { S as InkTool, _ as InkRoundRecord, a as InkDigitizedMeta, b as InkSample, c as InkLine, d as InkMarkBlock, f as InkMarkInput, i as InkCopyPlace, l as InkMargin, n as InkBrush, o as InkDigitizedMode, p as InkPassage, s as InkDirection, v as InkRoundStatus, x as InkSubmitRoundOptions } from "../../../index-D3bhjdRz.js";
1
+ import { Qa as Plugin, Vl as TxDeclaredMethod } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { rr as BasePluginDependencyReferenceFor } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin$1, Wt as WrapContentProps } from "../../../index-wEkvA-wI.js";
5
+ import { S as InkTool, _ as InkRoundRecord, a as InkDigitizedMeta, b as InkSample, c as InkLine, d as InkMarkBlock, f as InkMarkInput, i as InkCopyPlace, l as InkMargin, n as InkBrush, o as InkDigitizedMode, p as InkPassage, s as InkDirection, v as InkRoundStatus, x as InkSubmitRoundOptions } from "../../../index-Djwcl0Ff.js";
6
6
  import * as React from "react";
7
7
  /**
8
8
  * The ink plugin's `wrapContent` slot: the slot's content, then a layer with
@@ -1,8 +1,8 @@
1
- import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, ma as NodeKey } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { r as LockTargetOptions } from "../../../index-Bqva6PJc.js";
1
+ import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, ma as NodeKey } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { r as LockTargetOptions } from "../../../index-BJPT0Tv_.js";
6
6
  /** React plugin for client-side per-block locking. */
7
7
  declare const LockPlugin: Plugin<Readonly<{
8
8
  readonly read: {
@@ -1,8 +1,8 @@
1
- import { Mt as EditorJsonValue, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gi as Element$1, qo as PropertyStringDescriptor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { ct as BlockInsertOptions, lt as BlockUpsertOptions } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { _ as FileInsertInput, d as AlignedMediaInsertInput, v as ImageInsertInput, x as ProviderMediaInsertInput, y as MediaInsertInput } from "../../../index-B4aToRMv.js";
1
+ import { Mt as EditorJsonValue, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gi as Element$1, qo as PropertyStringDescriptor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { ct as BlockInsertOptions, lt as BlockUpsertOptions } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { _ as FileInsertInput, d as AlignedMediaInsertInput, v as ImageInsertInput, x as ProviderMediaInsertInput, y as MediaInsertInput } from "../../../index-DXm_v0Qq.js";
6
6
  declare const ImagePlugin: Plugin<Readonly<{
7
7
  readonly initialState: {
8
8
  readonly isUrl: ((text: string) => boolean) | null;
@@ -1,7 +1,7 @@
1
- import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
4
- import { i as MentionInsertOptions } from "../../../index-BfJKfAwk.js";
1
+ import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
4
+ import { i as MentionInsertOptions } from "../../../index-DTd1D-BF.js";
5
5
  declare const MentionPlugin: Plugin<Readonly<{
6
6
  formats: true;
7
7
  }> & Readonly<{
@@ -1,9 +1,9 @@
1
- import { Es as SchemaContentRule, Mt as EditorJsonValue, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Yi as NamedRootKey, gs as SchemaContentDefault, ma as NodeKey, qo as PropertyStringDescriptor, vi as ElementEntry } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { A as TableToggleBordersOptions, D as TableSelectionBounds, F as TableCellElement, I as TableElement, O as TableSetBordersOptions, S as TableResizeTarget, T as TableSelectOptions, _ as TableDistributeColumnsOptions, a as TableAxisMoveOptions, b as TableResize, d as TableCellBorders, g as TableCreateOptions, i as TableAxisInsertOptions, j as TableToggleHeaderOptions, k as TableTargetOptions, l as TableCellBackgroundOptions, p as TableCellReadOptions, r as TableAxisDuplicateOptions, s as TableBorderStates, t as isPositiveFiniteNumber, u as TableCellBorder, v as TableHeaderOptions, w as TableResolvedCellBorders, x as TableResizeOptions, z as isTableColumnSizes } from "../../../widths-BjIZxtaJ.js";
6
- import "../../../index-zcb_RtZC.js";
1
+ import { Es as SchemaContentRule, Mt as EditorJsonValue, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Yi as NamedRootKey, gs as SchemaContentDefault, ma as NodeKey, qo as PropertyStringDescriptor, vi as ElementEntry } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { A as TableToggleBordersOptions, D as TableSelectionBounds, F as TableCellElement, I as TableElement, O as TableSetBordersOptions, S as TableResizeTarget, T as TableSelectOptions, _ as TableDistributeColumnsOptions, a as TableAxisMoveOptions, b as TableResize, d as TableCellBorders, g as TableCreateOptions, i as TableAxisInsertOptions, j as TableToggleHeaderOptions, k as TableTargetOptions, l as TableCellBackgroundOptions, p as TableCellReadOptions, r as TableAxisDuplicateOptions, s as TableBorderStates, t as isPositiveFiniteNumber, u as TableCellBorder, v as TableHeaderOptions, w as TableResolvedCellBorders, x as TableResizeOptions, z as isTableColumnSizes } from "../../../widths-9NNziDRW.js";
6
+ import "../../../index-DUhUT9bV.js";
7
7
  import * as React from "react";
8
8
  declare const TableCellPlugin: Plugin<Readonly<{
9
9
  formats: true;
@@ -1,5 +1,5 @@
1
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
2
- import { n as Heading } from "../../../index-D54VPeky.js";
1
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
2
+ import { n as Heading } from "../../../index-k-wvVxKl.js";
3
3
  /** React table of contents plugin adapted from `BaseTocPlugin`. */
4
4
  declare const TocPlugin: Plugin<Readonly<{
5
5
  readonly read: {
@@ -1,8 +1,8 @@
1
- import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, ma as NodeKey } from "../../../tx-only-CWT-IURY-BqIFhy44.js";
2
- import "../../../htmlTypes-CNhoCFjK.js";
3
- import { Ra as DefinitionOf, ao as NormalizePluginSelectors, xo as PluginSelectorMethods } from "../../../core-CTB0OBoh.js";
4
- import { Tt as Plugin } from "../../../index-DXCdafUk.js";
5
- import { _ as UploadTaskState, f as UploadRefusal, h as UploadSubmitOptions, i as UploadAdmitOptions, l as UploadKind, n as UploadAdmission, o as UploadFailure, s as UploadHandler, u as UploadPluginState } from "../../../index-BFWK852j.js";
1
+ import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, ma as NodeKey } from "../../../tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "../../../htmlTypes-3laowz-3.js";
3
+ import { Ra as DefinitionOf, ao as NormalizePluginSelectors, xo as PluginSelectorMethods } from "../../../core-By92GWYW.js";
4
+ import { Tt as Plugin } from "../../../index-wEkvA-wI.js";
5
+ import { _ as UploadTaskState, f as UploadRefusal, h as UploadSubmitOptions, i as UploadAdmitOptions, l as UploadKind, n as UploadAdmission, o as UploadFailure, s as UploadHandler, u as UploadPluginState } from "../../../index-BcD2RAB9.js";
6
6
  /**
7
7
  * React adapter for upload drafts. A file drop lands where the landing rules
8
8
  * admit it, at a block edge under the pointer; a drop no edge admits is