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
@@ -1,4 +1,4 @@
1
- import { findLastTopLevelCssBang, findTopLevelCssColon, isCssWhitespaceCode, normalizeCssPropertyName, parseCssDeclarationPriority, splitCssDeclarations, splitCssTopLevel } from "../../lib/plugins/html/cssLexer.internal.js";
1
+ import { isCssWhitespaceCode, parseCssDeclaration, skipQuotedCssString, splitCssDeclarations, splitCssTopLevel, stepCssEscape } from "../../lib/plugins/html/cssLexer.internal.js";
2
2
  //#region src/html/server/serverCssParser.internal.ts
3
3
  const CSS_NUMBER_RE = /^\+?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?$/i;
4
4
  const CSS_LENGTH_OR_PERCENT_RE = /^\+?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?(?:%|px|pt|pc|in|cm|mm|q|em|rem|ex|rex|ch|rch|cap|rcap|ic|ric|lh|rlh|vw|vh|vi|vb|vmin|vmax|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax)$/i;
@@ -96,7 +96,6 @@ const LOWERCASE_VALUE_PROPERTIES = /* @__PURE__ */ new Set([
96
96
  "vertical-align",
97
97
  "white-space"
98
98
  ]);
99
- const stripCommentsAndSplitDeclarations = (cssText) => splitCssDeclarations(cssText, { stripComments: true });
100
99
  const splitTopLevelComma = (value) => splitCssTopLevel(value, ",").map((part) => part.trim());
101
100
  const tokenizeTopLevel = (value, splitSlash = false) => {
102
101
  const tokens = [];
@@ -114,30 +113,26 @@ const tokenizeTopLevel = (value, splitSlash = false) => {
114
113
  continue;
115
114
  }
116
115
  const start = index;
117
- let quote = null;
118
116
  let parenDepth = 0;
119
117
  let bracketDepth = 0;
118
+ let braceDepth = 0;
120
119
  while (index < value.length) {
121
120
  const ch = value[index];
122
- if (quote !== null) {
123
- if (ch === "\\" && index + 1 < value.length) {
124
- index += 2;
125
- continue;
126
- }
127
- if (ch === quote) quote = null;
128
- index += 1;
121
+ if (ch === "\"" || ch === "'") {
122
+ index = skipQuotedCssString(value, index);
129
123
  continue;
130
124
  }
131
- if (ch === "\\" && index + 1 < value.length) {
132
- index += 2;
125
+ if (ch === "\\") {
126
+ index = stepCssEscape(value, index);
133
127
  continue;
134
128
  }
135
- if (ch === "\"" || ch === "'") quote = ch;
136
- else if (ch === "(") parenDepth += 1;
129
+ if (ch === "(") parenDepth += 1;
137
130
  else if (ch === ")" && parenDepth > 0) parenDepth -= 1;
138
131
  else if (ch === "[") bracketDepth += 1;
139
132
  else if (ch === "]" && bracketDepth > 0) bracketDepth -= 1;
140
- else if (parenDepth === 0 && bracketDepth === 0 && (isCssWhitespaceCode(ch.charCodeAt(0)) || splitSlash && ch === "/")) break;
133
+ else if (ch === "{") braceDepth += 1;
134
+ else if (ch === "}" && braceDepth > 0) braceDepth -= 1;
135
+ else if (parenDepth === 0 && bracketDepth === 0 && braceDepth === 0 && (isCssWhitespaceCode(ch.charCodeAt(0)) || splitSlash && ch === "/")) break;
141
136
  index += 1;
142
137
  }
143
138
  tokens.push({
@@ -361,16 +356,10 @@ const applyCssDeclaration = (entries, name, value, important, forceOverwrite) =>
361
356
  };
362
357
  const parseCssDeclarationsInto = (cssText, entries) => {
363
358
  entries.clear();
364
- for (const declaration of stripCommentsAndSplitDeclarations(cssText)) {
365
- const colon = findTopLevelCssColon(declaration);
366
- if (colon <= 0) continue;
367
- const name = normalizeCssPropertyName(declaration.slice(0, colon));
368
- if (!name) continue;
369
- const rawValue = declaration.slice(colon + 1).trim();
370
- if (!rawValue) continue;
371
- const parsed = parseCssDeclarationPriority(name, rawValue);
359
+ for (const declaration of splitCssDeclarations(cssText, { stripComments: true })) {
360
+ const parsed = parseCssDeclaration(declaration);
372
361
  if (!parsed) continue;
373
- applyCssDeclaration(entries, name, parsed.value, parsed.important, false);
362
+ applyCssDeclaration(entries, parsed.property, parsed.value, parsed.important, false);
374
363
  }
375
364
  };
376
365
  const serializeCssEntries = (entries) => {
@@ -380,4 +369,4 @@ const serializeCssEntries = (entries) => {
380
369
  return `${parts.join("; ")};`;
381
370
  };
382
371
  //#endregion
383
- export { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration, findLastTopLevelCssBang as findLastTopLevelBang, normalizeCssPropertyName, parseCssDeclarationsInto, serializeCssEntries, stripCommentsAndSplitDeclarations };
372
+ export { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration, parseCssDeclarationsInto, serializeCssEntries };
@@ -1,12 +1,9 @@
1
- import { findLastTopLevelCssBang, normalizeCssPropertyName, scanCssTopLevel, stripCssComments } from "../../lib/plugins/html/cssLexer.internal.js";
1
+ import { findLastTopLevelCssBang, hasUnbalancedCssDelimiters, normalizeCssPropertyName, scanCssTopLevel, stripCssComments } from "../../lib/plugins/html/cssLexer.internal.js";
2
+ import { normalizeStyleName } from "../../lib/plugins/html/htmlMatcher.internal.js";
2
3
  import { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration, parseCssDeclarationsInto, serializeCssEntries } from "./serverCssParser.internal.js";
3
4
  //#region src/html/server/serverCssStyle.internal.ts
4
5
  const INDEX_KEY_RE = /^(?:0|[1-9]\d*)$/;
5
- const camelToKebab = (property) => {
6
- if (property === "cssFloat" || property === "float") return "float";
7
- if (property.startsWith("--")) return property;
8
- return property.replaceAll(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
9
- };
6
+ const camelToKebab = (property) => property === "cssFloat" || property === "float" ? "float" : normalizeStyleName(property);
10
7
  const readBoxShorthand = (entries, prefix) => {
11
8
  const top = entries.get(`${prefix}-top`);
12
9
  const right = entries.get(`${prefix}-right`);
@@ -147,7 +144,7 @@ const createServerCssStyleDeclaration = (element) => {
147
144
  });
148
145
  if (hasTopLevelSemicolon) return;
149
146
  const cleaned = stripped.trim();
150
- if (!cleaned || !name.startsWith("--") && findLastTopLevelCssBang(cleaned) !== -1) return;
147
+ if (!cleaned || hasUnbalancedCssDelimiters(cleaned) || !name.startsWith("--") && findLastTopLevelCssBang(cleaned) !== -1) return;
151
148
  const priorityText = priority ? String(priority).trim().toLowerCase() : "";
152
149
  if (priorityText && priorityText !== "important") return;
153
150
  applyCssDeclaration(entries, name, cleaned, priorityText === "important", true);
@@ -1,5 +1,5 @@
1
- import { _t as EditorDocumentValue } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-CNhoCFjK.js";
1
+ import { _t as EditorDocumentValue } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-3laowz-3.js";
3
3
  declare const parseHtml: (source: string, options: HtmlParseOptions) => HtmlDocumentParseResult;
4
4
  /**
5
5
  * Serialize a Plate document into semantic HTML using the configured plugins'
@@ -1,6 +1,6 @@
1
- import { $s as SchemaPropertyDefinition, Eo as PluginReference, Pi as InternalEditorSchemaApi, Pn as EditorSchemaOverrideInput, T as ContentSlice$1, Wa as Path, Wl as Value, Yn as EditorSchemaValidationDiagnostic, Zs as SchemaProperty, _t as EditorDocumentValue, fs as RootKey, hs as SchemaContent, p as AuthoredProjectionDiagnostic, ys as SchemaContentPrefixSlot } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./refusal-DCzeB9nD-CR00YA0H.js";
3
- import "./clipboard-format-key-D9rnh20X-CR00YA0H.js";
1
+ import { $s as SchemaPropertyDefinition, Eo as PluginReference, Pi as InternalEditorSchemaApi, Pn as EditorSchemaOverrideInput, T as ContentSlice$1, Wa as Path, Wl as Value, Yn as EditorSchemaValidationDiagnostic, Zs as SchemaProperty, _t as EditorDocumentValue, fs as RootKey, hs as SchemaContent, p as AuthoredProjectionDiagnostic, ys as SchemaContentPrefixSlot } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./refusal-CwFxNUf7-BLhtd159.js";
3
+ import "./clipboard-format-key-BBu85J9m-BLhtd159.js";
4
4
  type StructuralPlainTextDiagnostic = Readonly<{
5
5
  code: 'plain-text-unsupported-metadata' | 'plain-text-unsupported-node' | 'plain-text-unsupported-root';
6
6
  message: string;
@@ -1,2 +1,2 @@
1
- import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-CWutqVQ_-BO-UgVeK.js";
1
+ import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-BKPWmnLg-Bp_vItjr.js";
2
2
  export { type HyperscriptCreators, type HyperscriptEditorFixture, type HyperscriptShorthands, createEditor, createEditorFixture, createHyperscript, createText, jsx };
@@ -1,8 +1,8 @@
1
- import { $o as Range, B as DocumentChangeJson, C as ConflictRecords, Fi as JsonEditorValue, Qa as Plugin, Wc as SyncAccess, Yc as SyncStoppedReason, d as AnyEditor } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { A as InternalBasePluginAuthorExtension, Co as PluginSelectors, F as InternalBasePluginAuthorState, I as InternalBasePluginRuntimeExtension, M as InternalBasePluginAuthorStageCompatibility, Ma as InternalPluginDefinitionOf, N as InternalBasePluginAuthorStageInput, Na as AnyBasePluginDefinition, P as InternalBasePluginAuthorStageKeys, S as BasePluginShortcutRecord, fo as PluginReference, h as BasePluginContext, j as InternalBasePluginAuthorRead, p as BasePlugin } from "./core-CTB0OBoh.js";
3
- import "./shared-room-Bg8qMvm1-CR00YA0H.js";
4
- import { c as SyncRoomEvent, r as SyncDocumentSnapshot } from "./protocol-CSuP7AWG-DAorqpaF.js";
5
- import { a as SyncTokenResult, o as SyncTransport, r as SyncPresenceMeta } from "./transport-DAforzBt-BFwAhC-N.js";
1
+ import { $o as Range, B as DocumentChangeJson, C as ConflictRecords, Fi as JsonEditorValue, Qa as Plugin, Wc as SyncAccess, Yc as SyncStoppedReason, d as AnyEditor } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { A as InternalBasePluginAuthorExtension, Co as PluginSelectors, F as InternalBasePluginAuthorState, I as InternalBasePluginRuntimeExtension, M as InternalBasePluginAuthorStageCompatibility, Ma as InternalPluginDefinitionOf, N as InternalBasePluginAuthorStageInput, Na as AnyBasePluginDefinition, P as InternalBasePluginAuthorStageKeys, S as BasePluginShortcutRecord, fo as PluginReference, h as BasePluginContext, j as InternalBasePluginAuthorRead, p as BasePlugin } from "./core-By92GWYW.js";
3
+ import "./shared-room-26tNRhZE-BLhtd159.js";
4
+ import { c as SyncRoomEvent, r as SyncDocumentSnapshot } from "./protocol-Cp9xayOe-0OSfTMnt.js";
5
+ import { a as SyncTokenResult, o as SyncTransport, r as SyncPresenceMeta } from "./transport-B-ON68Y4-DCfT5-eN.js";
6
6
  /** Why a local batch was kept for manual review instead of merging automatically. */
7
7
  type KeptReason = Readonly<{
8
8
  check: 'judge' | 'moved' | 'stale' | 'structure' | 'threw';
@@ -1,5 +1,5 @@
1
- import { $o as Range$1, Da as NodeSelection, Po as Point, Qa as Plugin, T as ContentSlice$1, Tc as SelectionAssociation, V as Editor, Wa as Path, Wl as Value, Xi as Node$1, Y as EditorCommand, Zs as SchemaProperty, d as AnyEditor, dt as EditorCoreStateView, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./clipboard-format-key-D9rnh20X-CR00YA0H.js";
1
+ import { $o as Range$1, Da as NodeSelection, Po as Point, Qa as Plugin, T as ContentSlice$1, Tc as SelectionAssociation, V as Editor, Wa as Path, Wl as Value, Xi as Node$1, Y as EditorCommand, Zs as SchemaProperty, d as AnyEditor, dt as EditorCoreStateView, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./clipboard-format-key-BBu85J9m-BLhtd159.js";
3
3
  type HotkeyPlatform = 'apple' | 'other' | 'windows';
4
4
  type HotkeyMatchOptions = {
5
5
  ignoreModifiers?: boolean;
@@ -1,6 +1,6 @@
1
- import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, Wa as Path, _t as EditorDocumentValue, co as PluginContribution, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { p as BasePlugin } from "./core-CTB0OBoh.js";
1
+ import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, Wa as Path, _t as EditorDocumentValue, co as PluginContribution, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { p as BasePlugin } from "./core-By92GWYW.js";
4
4
  /** Options selecting the target block for a lock, unlock, or toggle command. */
5
5
  type LockTargetOptions = Readonly<{
6
6
  /** Target location, node selection, or node key. Defaults to the current selection. */
@@ -1,4 +1,4 @@
1
- import { Cc as Selection, N as Descendant, V as Editor, Wa as Path, Xc as Text, dl as TextSelection, gi as Element$1 } from "./tx-only-CWT-IURY-BqIFhy44.js";
1
+ import { Cc as Selection, N as Descendant, V as Editor, Wa as Path, Xc as Text, dl as TextSelection, gi as Element$1 } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
2
  /**
3
3
  * All tokens inherit from a single constructor for `instanceof` checking.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, gi as Element$1, ma as NodeKey, wi as ElementOf } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-CTB0OBoh.js";
1
+ import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, gi as Element$1, ma as NodeKey, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-By92GWYW.js";
4
4
  /** Media destination kinds an upload draft can resolve into. */
5
5
  declare const UPLOAD_KINDS: readonly ['audio', 'file', 'image', 'video'];
6
6
  /** Destination media kind carried by an upload draft element. */
@@ -1,4 +1,4 @@
1
- import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-CWT-IURY-BqIFhy44.js";
1
+ import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
2
  /** Supported standard paper page sizes. */
3
3
  type PagePreset = 'a4' | 'letter';
4
4
  /** Uniform or per-side page margins in CSS pixels. */
@@ -1,6 +1,6 @@
1
- import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, gi as Element$1, gs as SchemaContentDefault, ja as NodeTarget, ma as NodeKey, wi as ElementOf } 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";
1
+ import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, gi as Element$1, gs as SchemaContentDefault, ja as NodeTarget, ma as NodeKey, wi as ElementOf } 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
4
  declare const isPositiveFiniteNumber: (value: unknown) => value is number;
5
5
  /** Options for updating a column group's column count or flex weights. */
6
6
  type SetColumnsOptions = {
@@ -1,10 +1,10 @@
1
- import { Qa as Plugin, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, jt as EditorJsonObject } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-CTB0OBoh.js";
4
- import { r as Comparison } from "./index-mcBtG6pK-CitQV9Bq.js";
5
- import { C as AuthoredView, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, l as AuthoredDecision, n as AuthoredChangeDetails, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, x as AuthoredReview, y as AuthoredRefusal } from "./authored-CJL7S8qI-BxC9ip4d.js";
6
- import "./index-UYpvOBXG.js";
7
- import "./index-CxyK4HrT.js";
1
+ import { Qa as Plugin, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, jt as EditorJsonObject } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-By92GWYW.js";
4
+ import { r as Comparison } from "./index-LEcSTRgn-BR_p4GVY.js";
5
+ import { C as AuthoredView, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, l as AuthoredDecision, n as AuthoredChangeDetails, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, x as AuthoredReview, y as AuthoredRefusal } from "./authored-qetvpvU--DSWESzxK.js";
6
+ import "./index-DCTRNYwy.js";
7
+ import "./index-CKSwab_O.js";
8
8
  /**
9
9
  * Suggestions attributed to the author the writing view names with
10
10
  * `createEditorView(editor, { authorId })`, else to the editor's user, or to
@@ -0,0 +1 @@
1
+ import "./index-LEcSTRgn-BR_p4GVY.js";
@@ -1,6 +1,6 @@
1
- import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, _t as EditorDocumentValue, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { p as BasePlugin, vt as NodeInsertOptions } from "./core-CTB0OBoh.js";
1
+ import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, _t as EditorDocumentValue, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { p as BasePlugin, vt as NodeInsertOptions } from "./core-By92GWYW.js";
4
4
  import { nanoid } from "nanoid";
5
5
  type FieldShape = Pick<FieldSettings, 'kind' | 'max' | 'min' | 'options' | 'value'>;
6
6
  declare const FIELD_KINDS: readonly ['checkbox', 'choice', 'date', 'multiple', 'number', 'signature', 'text'];
@@ -0,0 +1,3 @@
1
+ import "./htmlTypes-3laowz-3.js";
2
+ import "./core-By92GWYW.js";
3
+ import "./htmlConversion-CRnxMGw-.js";
@@ -0,0 +1,305 @@
1
+ import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Qo as PropertyValueOptions, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gs as SchemaContentDefault, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-By92GWYW.js";
4
+ /** Declarative workflow action button attached to a callout block. */
5
+ type CalloutAction = Readonly<{
6
+ /** Optional confirmation prompt shown before invoking the action. */
7
+ confirm?: string;
8
+ /** Stable identifier unique within the callout's actions list. */
9
+ id: string;
10
+ /** Optional application-defined action intent discriminator. */
11
+ kind?: string;
12
+ /** Visible button label. */
13
+ label: string;
14
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
15
+ payload?: Readonly<Record<string, EditorJsonValue>>;
16
+ }>;
17
+ declare const isCalloutActions: (value: unknown) => value is readonly CalloutAction[];
18
+ type CalloutProps = Readonly<{
19
+ actions?: readonly CalloutAction[];
20
+ backgroundColor?: string;
21
+ icon?: string;
22
+ variant?: string;
23
+ }>;
24
+ type CalloutWrapOptions = CalloutProps & Readonly<{
25
+ at?: Location | NodeSelection;
26
+ }>;
27
+ /** Enables multi-block callout containers with optional icon, variant, and background color. */
28
+ declare const BaseCalloutPlugin: BasePlugin<Readonly<{
29
+ formats: true;
30
+ rules: true;
31
+ }> & Readonly<{
32
+ name: "callout";
33
+ }> & Readonly<{
34
+ dependencies: readonly [PluginReference<"paragraph"> & PluginDependency<Readonly<{
35
+ name: "paragraph";
36
+ }> & Readonly<{
37
+ __pluginWritableProperties: never;
38
+ }> & Readonly<Record<"schema", {
39
+ readonly element: Readonly<{
40
+ content: Readonly<{
41
+ allowed: Readonly<{
42
+ kind: 'any';
43
+ rules: readonly [Readonly<{
44
+ kind: 'text';
45
+ }>, Readonly<{
46
+ group: 'inline';
47
+ kind: 'group';
48
+ }>];
49
+ }>;
50
+ prefix?: readonly Readonly<{
51
+ element: string | Readonly<{
52
+ source: string;
53
+ type: string;
54
+ }>;
55
+ properties?: Readonly<Record<string, EditorJsonValue>>;
56
+ }>[] | undefined;
57
+ } & Readonly<{
58
+ default: 'text';
59
+ min: 1;
60
+ }> & Readonly<{
61
+ '~schema.content.rule'?: Readonly<{
62
+ kind: 'any';
63
+ rules: readonly [Readonly<{
64
+ kind: 'text';
65
+ }>, Readonly<{
66
+ group: 'inline';
67
+ kind: 'group';
68
+ }>];
69
+ }> | undefined;
70
+ }>>;
71
+ }>;
72
+ }>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
73
+ formats: true;
74
+ rules: true;
75
+ }> & Readonly<{
76
+ name: "paragraph";
77
+ }> & Readonly<Record<never, never>> & Readonly<{
78
+ __pluginWritableProperties: never;
79
+ schema: {
80
+ readonly element: Readonly<{
81
+ content: Readonly<{
82
+ allowed: Readonly<{
83
+ kind: 'any';
84
+ rules: readonly [Readonly<{
85
+ kind: 'text';
86
+ }>, Readonly<{
87
+ group: 'inline';
88
+ kind: 'group';
89
+ }>];
90
+ }>;
91
+ prefix?: readonly Readonly<{
92
+ element: string | Readonly<{
93
+ source: string;
94
+ type: string;
95
+ }>;
96
+ properties?: Readonly<Record<string, EditorJsonValue>>;
97
+ }>[] | undefined;
98
+ } & Readonly<{
99
+ default: 'text';
100
+ min: 1;
101
+ }> & Readonly<{
102
+ '~schema.content.rule'?: Readonly<{
103
+ kind: 'any';
104
+ rules: readonly [Readonly<{
105
+ kind: 'text';
106
+ }>, Readonly<{
107
+ group: 'inline';
108
+ kind: 'group';
109
+ }>];
110
+ }> | undefined;
111
+ }>>;
112
+ }>;
113
+ };
114
+ }>>, "~schema.plugins">];
115
+ }> & Readonly<Record<never, never>> & Readonly<{
116
+ update: {
117
+ readonly toggle: TxDeclaredMethod<(options?: CalloutWrapOptions) => boolean>;
118
+ readonly unwrap: TxDeclaredMethod<({ at }?: {
119
+ at?: Location | NodeSelection;
120
+ }) => boolean>;
121
+ readonly upsert: TxDeclaredMethod<(data?: CalloutProps, options?: BlockUpsertOptions) => boolean>;
122
+ readonly wrap: TxDeclaredMethod<({ at, ...rest }?: CalloutWrapOptions) => boolean>;
123
+ };
124
+ }> & Readonly<{
125
+ __pluginWritableProperties: Readonly<{
126
+ descriptor: PropertyJsonDescriptor<readonly Readonly<{
127
+ /** Optional confirmation prompt shown before invoking the action. */
128
+ confirm?: string;
129
+ /** Stable identifier unique within the callout's actions list. */
130
+ id: string;
131
+ /** Optional application-defined action intent discriminator. */
132
+ kind?: string;
133
+ /** Visible button label. */
134
+ label: string;
135
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
136
+ payload?: Readonly<Record<string, EditorJsonValue>>;
137
+ }>[], {
138
+ readonly validate: typeof isCalloutActions;
139
+ readonly validationVersion: 1;
140
+ } & Readonly<{
141
+ default?: readonly Readonly<{
142
+ /** Optional confirmation prompt shown before invoking the action. */
143
+ confirm?: string;
144
+ /** Stable identifier unique within the callout's actions list. */
145
+ id: string;
146
+ /** Optional application-defined action intent discriminator. */
147
+ kind?: string;
148
+ /** Visible button label. */
149
+ label: string;
150
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
151
+ payload?: Readonly<Record<string, EditorJsonValue>>;
152
+ }>[] | undefined;
153
+ generate?: (() => readonly Readonly<{
154
+ /** Optional confirmation prompt shown before invoking the action. */
155
+ confirm?: string;
156
+ /** Stable identifier unique within the callout's actions list. */
157
+ id: string;
158
+ /** Optional application-defined action intent discriminator. */
159
+ kind?: string;
160
+ /** Visible button label. */
161
+ label: string;
162
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
163
+ payload?: Readonly<Record<string, EditorJsonValue>>;
164
+ }>[]) | undefined;
165
+ omitDefault?: boolean;
166
+ required?: boolean;
167
+ }> & Readonly<{
168
+ validate: (value: unknown) => value is readonly Readonly<{
169
+ /** Optional confirmation prompt shown before invoking the action. */
170
+ confirm?: string;
171
+ /** Stable identifier unique within the callout's actions list. */
172
+ id: string;
173
+ /** Optional application-defined action intent discriminator. */
174
+ kind?: string;
175
+ /** Visible button label. */
176
+ label: string;
177
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
178
+ payload?: Readonly<Record<string, EditorJsonValue>>;
179
+ }>[];
180
+ validationVersion: number;
181
+ }>>;
182
+ key: "actions";
183
+ localId: "actions";
184
+ ownerName: "callout";
185
+ placement: "element";
186
+ unaliased: true;
187
+ value: readonly Readonly<{
188
+ /** Optional confirmation prompt shown before invoking the action. */
189
+ confirm?: string;
190
+ /** Stable identifier unique within the callout's actions list. */
191
+ id: string;
192
+ /** Optional application-defined action intent discriminator. */
193
+ kind?: string;
194
+ /** Visible button label. */
195
+ label: string;
196
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
197
+ payload?: Readonly<Record<string, EditorJsonValue>>;
198
+ }>[];
199
+ }> | Readonly<{
200
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
201
+ key: "backgroundColor";
202
+ localId: "backgroundColor";
203
+ ownerName: "callout";
204
+ placement: "element";
205
+ unaliased: true;
206
+ value: string;
207
+ }> | Readonly<{
208
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
209
+ key: "icon";
210
+ localId: "icon";
211
+ ownerName: "callout";
212
+ placement: "element";
213
+ unaliased: true;
214
+ value: string;
215
+ }> | Readonly<{
216
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
217
+ key: "variant";
218
+ localId: "variant";
219
+ ownerName: "callout";
220
+ placement: "element";
221
+ unaliased: true;
222
+ value: string;
223
+ }>;
224
+ schema: {
225
+ readonly element: {
226
+ content: Readonly<{
227
+ allowed: SchemaContentRule;
228
+ prefix?: readonly Readonly<{
229
+ element: string | Readonly<{
230
+ source: string;
231
+ type: string;
232
+ }>;
233
+ properties?: Readonly<Record<string, EditorJsonValue>>;
234
+ }>[] | undefined;
235
+ } & Readonly<{
236
+ default?: SchemaContentDefault;
237
+ max?: number;
238
+ min?: number;
239
+ }>>;
240
+ properties: {
241
+ actions: PropertyJsonDescriptor<readonly Readonly<{
242
+ /** Optional confirmation prompt shown before invoking the action. */
243
+ confirm?: string;
244
+ /** Stable identifier unique within the callout's actions list. */
245
+ id: string;
246
+ /** Optional application-defined action intent discriminator. */
247
+ kind?: string;
248
+ /** Visible button label. */
249
+ label: string;
250
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
251
+ payload?: Readonly<Record<string, EditorJsonValue>>;
252
+ }>[], {
253
+ readonly validate: typeof isCalloutActions;
254
+ readonly validationVersion: 1;
255
+ } & Readonly<{
256
+ default?: readonly Readonly<{
257
+ /** Optional confirmation prompt shown before invoking the action. */
258
+ confirm?: string;
259
+ /** Stable identifier unique within the callout's actions list. */
260
+ id: string;
261
+ /** Optional application-defined action intent discriminator. */
262
+ kind?: string;
263
+ /** Visible button label. */
264
+ label: string;
265
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
266
+ payload?: Readonly<Record<string, EditorJsonValue>>;
267
+ }>[] | undefined;
268
+ generate?: (() => readonly Readonly<{
269
+ /** Optional confirmation prompt shown before invoking the action. */
270
+ confirm?: string;
271
+ /** Stable identifier unique within the callout's actions list. */
272
+ id: string;
273
+ /** Optional application-defined action intent discriminator. */
274
+ kind?: string;
275
+ /** Visible button label. */
276
+ label: string;
277
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
278
+ payload?: Readonly<Record<string, EditorJsonValue>>;
279
+ }>[]) | undefined;
280
+ omitDefault?: boolean;
281
+ required?: boolean;
282
+ }> & Readonly<{
283
+ validate: (value: unknown) => value is readonly Readonly<{
284
+ /** Optional confirmation prompt shown before invoking the action. */
285
+ confirm?: string;
286
+ /** Stable identifier unique within the callout's actions list. */
287
+ id: string;
288
+ /** Optional application-defined action intent discriminator. */
289
+ kind?: string;
290
+ /** Visible button label. */
291
+ label: string;
292
+ /** Optional JSON-serializable metadata forwarded to the application handler. */
293
+ payload?: Readonly<Record<string, EditorJsonValue>>;
294
+ }>[];
295
+ validationVersion: number;
296
+ }>>;
297
+ backgroundColor: PropertyStringDescriptor<PropertyValueOptions<string>>;
298
+ icon: PropertyStringDescriptor<PropertyValueOptions<string>>;
299
+ variant: PropertyStringDescriptor<PropertyValueOptions<string>>;
300
+ };
301
+ };
302
+ };
303
+ }>>;
304
+ type CalloutElement = ElementOf<typeof BaseCalloutPlugin>;
305
+ export { CalloutAction as n, CalloutElement as r, BaseCalloutPlugin as t };
@@ -1,7 +1,7 @@
1
- import { B as DocumentChangeJson, Fi as JsonEditorValue, Gc as SyncAuthored, Ji as NamedEditorSchemaIdentity, V as Editor, Wl as Value, d as AnyEditor, oi as EditorUpdateTransaction, pi as EditorView, qc as SyncGrant } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { c as SyncRoomEvent, n as SYNC_WEBSOCKET_PROTOCOL, r as SyncDocumentSnapshot, s as SyncReceipt } from "./protocol-CSuP7AWG-DAorqpaF.js";
3
- import { a as SyncTokenResult, c as SyncWireSelection, i as SyncPresencePeerState, o as SyncTransport, r as SyncPresenceMeta, t as Clock } from "./transport-DAforzBt-BFwAhC-N.js";
4
- import { l as StoredRoom, m as SyncStorage, v as SyncStorageLimits } from "./storage-EzfLDqRy-Cu4DQ-Rf.js";
1
+ import { B as DocumentChangeJson, Fi as JsonEditorValue, Gc as SyncAuthored, Ji as NamedEditorSchemaIdentity, V as Editor, Wl as Value, d as AnyEditor, oi as EditorUpdateTransaction, pi as EditorView, qc as SyncGrant } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { c as SyncRoomEvent, n as SYNC_WEBSOCKET_PROTOCOL, r as SyncDocumentSnapshot, s as SyncReceipt } from "./protocol-Cp9xayOe-0OSfTMnt.js";
3
+ import { a as SyncTokenResult, c as SyncWireSelection, i as SyncPresencePeerState, o as SyncTransport, r as SyncPresenceMeta, t as Clock } from "./transport-B-ON68Y4-DCfT5-eN.js";
4
+ import { l as StoredRoom, m as SyncStorage, v as SyncStorageLimits } from "./storage-C7xSH1I5-BJLoUfo9.js";
5
5
  /** Maximum serialized UTF-8 byte size allowed for entry metadata on a sync submission. */
6
6
  declare const SYNC_MAX_ENTRY_META_BYTES = 4096;
7
7
  /** Ephemeral non-socket presence update for a server actor (such as an AI agent). */
@@ -1,5 +1,5 @@
1
- import { _t as EditorDocumentValue, d as AnyEditor, f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./authored-CJL7S8qI-BxC9ip4d.js";
1
+ import { _t as EditorDocumentValue, d as AnyEditor, f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./authored-qetvpvU--DSWESzxK.js";
3
3
  /** `proposed` accepts every pending change; `accepted` rejects every one. */
4
4
  type AuthoredFormatProjection = 'accepted' | 'proposed';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Cc as Selection, Di as HistoryApi, Do as PluginTypeProvider, Lc as SnapshotInput, Qa as Plugin, Ul as TxOnlyMethod, V as Editor, Vl as TxDeclaredMethod, Wl as Value, jn as EditorSchemaIdentity, vt as EditorEffect, z as DocumentChange } from "./tx-only-CWT-IURY-BqIFhy44.js";
1
+ import { Cc as Selection, Di as HistoryApi, Do as PluginTypeProvider, Lc as SnapshotInput, Qa as Plugin, Ul as TxOnlyMethod, V as Editor, Vl as TxDeclaredMethod, Wl as Value, jn as EditorSchemaIdentity, vt as EditorEffect, z as DocumentChange } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
2
  interface Batch<_V extends Value = Value> {
3
3
  /** Canonical change to apply when this batch is consumed. */
4
4
  readonly change: DocumentChange;
@@ -1,6 +1,6 @@
1
- import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-CTB0OBoh.js";
1
+ import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-By92GWYW.js";
4
4
  declare const isNonBlankString: (value: unknown) => value is string;
5
5
  /** Options for inserting a mention node through `BaseMentionPlugin`. */
6
6
  type MentionInsertOptions = NodeInsertOptions & {
@@ -0,0 +1 @@
1
+ import "./widths-9NNziDRW.js";
@@ -1,6 +1,6 @@
1
- import { Mt as EditorJsonValue, N as Descendant, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wl as Value, gi as Element$1, ma as NodeKey, qo as PropertyStringDescriptor, uu as getActiveCommandEditor, wi as ElementOf } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { Qt as BaseInputRule, ct as BlockInsertOptions, gn as InsertDataInputRuleReadContext, lt as BlockUpsertOptions, nn as DefinedInsertDataFollowUpInputRule, o as Editor, p as BasePlugin } from "./core-CTB0OBoh.js";
1
+ import { Mt as EditorJsonValue, N as Descendant, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wl as Value, gi as Element$1, ma as NodeKey, qo as PropertyStringDescriptor, uu as getActiveCommandEditor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { Qt as BaseInputRule, ct as BlockInsertOptions, gn as InsertDataInputRuleReadContext, lt as BlockUpsertOptions, nn as DefinedInsertDataFollowUpInputRule, o as Editor, p as BasePlugin } from "./core-By92GWYW.js";
4
4
  /** Shared URL validation and transform state for media plugins. */
5
5
  type MediaPluginState = {
6
6
  /** Overrides default URL validation for this media plugin. */
@@ -1,6 +1,6 @@
1
- import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-CTB0OBoh.js";
1
+ import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-By92GWYW.js";
4
4
  /** One authored suggestion highlight span inside a passage's live text. */
5
5
  type InkPassageSvgSuggestion = Readonly<{
6
6
  /** Exclusive character offset in the block's `inkText`. */