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,7 +1,7 @@
1
- import { $ as EditorCommandDispatch, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, Al as TransferPlugin$1, As as SchemaElementFor, Bi as Location, Bo as PropertyEnumDescriptor, D as Decoration, Da as NodeSelection, Di as HistoryApi, Do as PluginTypeProvider, En as EditorSchemaElement, Eo as PluginReference$1, Es as SchemaContentRule, Et as EditorGenericMethod, Fn as EditorSchemaPlugin, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Gr as EditorTransactionSpecBuilder, H as EditorAboveOptions, Hl as TxMethodDeclarations, Ht as EditorNodeGetOptions, In as EditorSchemaPluginProvider, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Jt as EditorPreviousOptions, Ki as MaximizeMode, Kl as WithNodeTarget, Kt as EditorNodesReadOptions, L as DescendantIn, Mo as PluginWitnessFor, Mt as EditorJsonValue, N as Descendant, Ni as InitialValue, Nt as EditorLevelsOptions, O as DecorationAttributes, Oo as PluginTypeProviderOf, Os as SchemaElement, Po as Point$1, Ps as SchemaElementPropertiesFor, Qa as Plugin, Qo as PropertyValueOptions, Ra as NodeTypeSelector, Ri as LeafPosition, Ro as PropertyBooleanDescriptor, Rt as EditorNextOptions, Sn as EditorSchemaDeclaration, Sr as EditorTextChangeContext, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tn as EditorSchemaDerivedDefinition, U as EditorBlockOptions, Uc as StripTxOnly, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Ut as EditorNodeTypeProvider, V as Editor$1, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wo as PropertyOptionsOf, Wt as EditorNodeUnsetOptions, Xa as PersistedSelection, Xc as Text$1, Xi as Node$1, Xs as SchemaPluginsOf, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, Zs as SchemaProperty, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _t as EditorDocumentValue, bc as SchemaTypesTarget, ci as EditorUpdateTransactionProvider, co as PluginContribution, do as PluginDefinitionInput, dt as EditorCoreStateView, ei as EditorUpdateMethods, en as EditorReadMethodRecord, er as EditorSelectionBlockOptions, fc as SchemaTarget, fi as EditorValueTypeProvider, fl as TextTarget, fo as PluginDependencyContractReference, fs as RootKey, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, go as PluginInstalledCapabilitiesOf, gs as SchemaContentDefault, gt as EditorDocumentRecords, hc as SchemaTextProperties, hs as SchemaContent, ht as EditorDirectUpdate, ia as NodeEntry, ic as SchemaPropertyKey, io as PluginCapabilities, j as DefinitionOf$1, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, la as NodeIn, li as EditorUpdateValueFromPlugin, mo as PluginDependencyReferenceFor, mr as EditorStateSelectionApi, nn as EditorReadMethods, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, p as AuthoredProjectionDiagnostic, pc as SchemaText, pn as EditorSchemaContract, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, qo as PropertyStringDescriptor, qs as SchemaKeyPrefix, qt as EditorParentOptions, ri as EditorUpdateResult, si as EditorUpdateTransactionOf, st as EditorCommitContext, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tn as EditorReadMethodTree, ua as NodeInsertNodesOptions, uo as PluginDefinition, v as BlockInsertOptions$1, va as NodeMatchPredicate, vl as TransferApi, wi as ElementOf, wr as EditorToggleBlockOptions, xn as EditorSchemaContribution, xr as EditorStateViewProvider, xs as SchemaContentRootContribution, yc as SchemaTextPropertyOptions, yo as PluginPortal, yr as EditorStateView, zt as EditorNodeChangeContext } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { d as HtmlSerializeResult, f as HtmlSliceParseResult, g as StructuralPlainTextDiagnostic, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-CNhoCFjK.js";
3
- import { B as ScrollMargin, M as DataTransferDecodeContext, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, c as DOMApi, l as DOMClipboardApi, q as HotkeySpec } from "./index-B8JeECEk.js";
4
- import { a as HistoryStateApi, i as HistoryPlugin$1, o as HistoryTxApi } from "./index-CXd5hwaH.js";
1
+ import { $ as EditorCommandDispatch, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, Al as TransferPlugin$1, As as SchemaElementFor, Bi as Location, Bo as PropertyEnumDescriptor, D as Decoration, Da as NodeSelection, Di as HistoryApi, Do as PluginTypeProvider, En as EditorSchemaElement, Eo as PluginReference$1, Es as SchemaContentRule, Et as EditorGenericMethod, Fn as EditorSchemaPlugin, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Gr as EditorTransactionSpecBuilder, H as EditorAboveOptions, Hl as TxMethodDeclarations, Ht as EditorNodeGetOptions, In as EditorSchemaPluginProvider, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Jt as EditorPreviousOptions, Ki as MaximizeMode, Kl as WithNodeTarget, Kt as EditorNodesReadOptions, L as DescendantIn, Mo as PluginWitnessFor, Mt as EditorJsonValue, N as Descendant, Ni as InitialValue, Nt as EditorLevelsOptions, O as DecorationAttributes, Oo as PluginTypeProviderOf, Os as SchemaElement, Po as Point$1, Ps as SchemaElementPropertiesFor, Qa as Plugin, Qo as PropertyValueOptions, Ra as NodeTypeSelector, Ri as LeafPosition, Ro as PropertyBooleanDescriptor, Rt as EditorNextOptions, Sn as EditorSchemaDeclaration, Sr as EditorTextChangeContext, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tn as EditorSchemaDerivedDefinition, U as EditorBlockOptions, Uc as StripTxOnly, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Ut as EditorNodeTypeProvider, V as Editor$1, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wo as PropertyOptionsOf, Wt as EditorNodeUnsetOptions, Xa as PersistedSelection, Xc as Text$1, Xi as Node$1, Xs as SchemaPluginsOf, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, Zs as SchemaProperty, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _t as EditorDocumentValue, bc as SchemaTypesTarget, ci as EditorUpdateTransactionProvider, co as PluginContribution, do as PluginDefinitionInput, dt as EditorCoreStateView, ei as EditorUpdateMethods, en as EditorReadMethodRecord, er as EditorSelectionBlockOptions, fc as SchemaTarget, fi as EditorValueTypeProvider, fl as TextTarget, fo as PluginDependencyContractReference, fs as RootKey, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, go as PluginInstalledCapabilitiesOf, gs as SchemaContentDefault, gt as EditorDocumentRecords, hc as SchemaTextProperties, hs as SchemaContent, ht as EditorDirectUpdate, ia as NodeEntry, ic as SchemaPropertyKey, io as PluginCapabilities, j as DefinitionOf$1, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, la as NodeIn, li as EditorUpdateValueFromPlugin, mo as PluginDependencyReferenceFor, mr as EditorStateSelectionApi, nn as EditorReadMethods, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, p as AuthoredProjectionDiagnostic, pc as SchemaText, pn as EditorSchemaContract, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, qo as PropertyStringDescriptor, qs as SchemaKeyPrefix, qt as EditorParentOptions, ri as EditorUpdateResult, si as EditorUpdateTransactionOf, st as EditorCommitContext, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tn as EditorReadMethodTree, ua as NodeInsertNodesOptions, uo as PluginDefinition, v as BlockInsertOptions$1, va as NodeMatchPredicate, vl as TransferApi, wi as ElementOf, wr as EditorToggleBlockOptions, xn as EditorSchemaContribution, xr as EditorStateViewProvider, xs as SchemaContentRootContribution, yc as SchemaTextPropertyOptions, yo as PluginPortal, yr as EditorStateView, zt as EditorNodeChangeContext } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { d as HtmlSerializeResult, f as HtmlSliceParseResult, g as StructuralPlainTextDiagnostic, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-3laowz-3.js";
3
+ import { B as ScrollMargin, M as DataTransferDecodeContext, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, c as DOMApi, l as DOMClipboardApi, q as HotkeySpec } from "./index-B9UlNijk.js";
4
+ import { a as HistoryStateApi, i as HistoryPlugin$1, o as HistoryTxApi } from "./index-DQpHoxDX.js";
5
5
  import { Draft } from "mutative";
6
6
  import { BlockContent, Blockquote, Break, Code, DefinitionContent, Delete, Emphasis, FootnoteDefinition, FootnoteReference, Heading, Html, Image, InlineCode, Link, List, ListItem, Paragraph, PhrasingContent, RootContent, Strong, Table, TableCell, TableRow, Text, ThematicBreak } from "mdast";
7
7
  import { InlineMath, Math } from "mdast-util-math";
@@ -1139,12 +1139,7 @@ declare const BaseItalicPlugin: BasePlugin<Readonly<{
1139
1139
  }>>;
1140
1140
  /** Enables support for keyboard-input formatting. */
1141
1141
  declare const BaseKbdPlugin: BasePlugin<Readonly<{
1142
- formats: true;
1143
- rules: true;
1144
- }> & Readonly<{
1145
- name: "kbd";
1146
- }> & Readonly<Record<never, never>> & Readonly<{
1147
- __pluginWritableProperties: Readonly<{
1142
+ readonly __pluginWritableProperties: Readonly<{
1148
1143
  descriptor: PropertyBooleanDescriptor<{
1149
1144
  readonly default: false;
1150
1145
  readonly omitDefault: true;
@@ -1156,13 +1151,17 @@ declare const BaseKbdPlugin: BasePlugin<Readonly<{
1156
1151
  unaliased: true;
1157
1152
  value: boolean;
1158
1153
  }>;
1159
- schema: {
1154
+ readonly schema: {
1160
1155
  readonly mark: PropertyBooleanDescriptor<{
1161
1156
  readonly default: false;
1162
1157
  readonly omitDefault: true;
1163
1158
  }>;
1164
1159
  };
1165
- }>>;
1160
+ readonly name: "kbd";
1161
+ readonly contributions: true;
1162
+ readonly formats: true;
1163
+ readonly rules: true;
1164
+ }>> & Readonly<Record<never, never>>;
1166
1165
  /** Enables subscript and superscript through one enum-valued mark. */
1167
1166
  declare const BaseScriptPlugin: BasePlugin<Readonly<{
1168
1167
  formats: true;
@@ -1571,6 +1570,7 @@ declare const BaseFormattingPlugin: BasePlugin<Readonly<{}> & Readonly<{
1571
1570
  }>>;
1572
1571
  declare const isLineHeight: (value: unknown) => value is number;
1573
1572
  type Alignment = 'center' | 'end' | 'justify' | 'left' | 'right' | 'start';
1573
+ declare const isSafeStyleString: (value: unknown) => value is string;
1574
1574
  declare const BaseFontBackgroundColorPlugin: BasePlugin<Readonly<{
1575
1575
  formats: true;
1576
1576
  inject: true;
@@ -1578,7 +1578,10 @@ declare const BaseFontBackgroundColorPlugin: BasePlugin<Readonly<{
1578
1578
  name: "backgroundColor";
1579
1579
  }> & Readonly<Record<never, never>> & Readonly<{
1580
1580
  __pluginWritableProperties: Readonly<{
1581
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1581
+ descriptor: PropertyStringDescriptor<{
1582
+ readonly validate: typeof isSafeStyleString;
1583
+ readonly validationVersion: 1;
1584
+ }>;
1582
1585
  key: "backgroundColor";
1583
1586
  localId: "backgroundColor";
1584
1587
  ownerName: "backgroundColor";
@@ -1587,7 +1590,10 @@ declare const BaseFontBackgroundColorPlugin: BasePlugin<Readonly<{
1587
1590
  value: string;
1588
1591
  }>;
1589
1592
  schema: {
1590
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1593
+ readonly mark: PropertyStringDescriptor<{
1594
+ readonly validate: typeof isSafeStyleString;
1595
+ readonly validationVersion: 1;
1596
+ }>;
1591
1597
  };
1592
1598
  }>>;
1593
1599
  declare const BaseFontColorPlugin: BasePlugin<Readonly<{
@@ -1597,7 +1603,10 @@ declare const BaseFontColorPlugin: BasePlugin<Readonly<{
1597
1603
  name: "color";
1598
1604
  }> & Readonly<Record<never, never>> & Readonly<{
1599
1605
  __pluginWritableProperties: Readonly<{
1600
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1606
+ descriptor: PropertyStringDescriptor<{
1607
+ readonly validate: typeof isSafeStyleString;
1608
+ readonly validationVersion: 1;
1609
+ }>;
1601
1610
  key: "color";
1602
1611
  localId: "color";
1603
1612
  ownerName: "color";
@@ -1606,7 +1615,10 @@ declare const BaseFontColorPlugin: BasePlugin<Readonly<{
1606
1615
  value: string;
1607
1616
  }>;
1608
1617
  schema: {
1609
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1618
+ readonly mark: PropertyStringDescriptor<{
1619
+ readonly validate: typeof isSafeStyleString;
1620
+ readonly validationVersion: 1;
1621
+ }>;
1610
1622
  };
1611
1623
  }>>;
1612
1624
  declare const BaseFontFamilyPlugin: BasePlugin<Readonly<{
@@ -1616,7 +1628,10 @@ declare const BaseFontFamilyPlugin: BasePlugin<Readonly<{
1616
1628
  name: "fontFamily";
1617
1629
  }> & Readonly<Record<never, never>> & Readonly<{
1618
1630
  __pluginWritableProperties: Readonly<{
1619
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1631
+ descriptor: PropertyStringDescriptor<{
1632
+ readonly validate: typeof isSafeStyleString;
1633
+ readonly validationVersion: 1;
1634
+ }>;
1620
1635
  key: "fontFamily";
1621
1636
  localId: "fontFamily";
1622
1637
  ownerName: "fontFamily";
@@ -1625,7 +1640,10 @@ declare const BaseFontFamilyPlugin: BasePlugin<Readonly<{
1625
1640
  value: string;
1626
1641
  }>;
1627
1642
  schema: {
1628
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1643
+ readonly mark: PropertyStringDescriptor<{
1644
+ readonly validate: typeof isSafeStyleString;
1645
+ readonly validationVersion: 1;
1646
+ }>;
1629
1647
  };
1630
1648
  }>>;
1631
1649
  declare const BaseFontSizePlugin: BasePlugin<Readonly<{
@@ -1635,7 +1653,10 @@ declare const BaseFontSizePlugin: BasePlugin<Readonly<{
1635
1653
  name: "fontSize";
1636
1654
  }> & Readonly<Record<never, never>> & Readonly<{
1637
1655
  __pluginWritableProperties: Readonly<{
1638
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1656
+ descriptor: PropertyStringDescriptor<{
1657
+ readonly validate: typeof isSafeStyleString;
1658
+ readonly validationVersion: 1;
1659
+ }>;
1639
1660
  key: "fontSize";
1640
1661
  localId: "fontSize";
1641
1662
  ownerName: "fontSize";
@@ -1644,7 +1665,10 @@ declare const BaseFontSizePlugin: BasePlugin<Readonly<{
1644
1665
  value: string;
1645
1666
  }>;
1646
1667
  schema: {
1647
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1668
+ readonly mark: PropertyStringDescriptor<{
1669
+ readonly validate: typeof isSafeStyleString;
1670
+ readonly validationVersion: 1;
1671
+ }>;
1648
1672
  };
1649
1673
  }>>;
1650
1674
  /** Enables configurable line spacing on targeted block elements. */
@@ -8602,6 +8626,7 @@ declare const PLUGINS: {
8602
8626
  readonly mention: 'mention';
8603
8627
  readonly override: 'override';
8604
8628
  readonly paragraph: 'paragraph';
8629
+ readonly reference: 'reference';
8605
8630
  readonly script: 'script';
8606
8631
  readonly singleBlock: 'singleBlock';
8607
8632
  readonly singleLine: 'singleLine';
@@ -1,3 +1,3 @@
1
- import { _ as applyDiff, a as ComparisonDiagnostic, b as prepareDiff, c as ComparisonSpan, d as MergeConflictReason, f as MergeRegion, g as PreparedDiff, h as PrepareDiffResult, i as ComparisonCorrespondence, l as MergeConflict, m as MergeResult, n as ComparedChange, o as ComparisonEffect, p as MergeResolution, r as Comparison, s as ComparisonSnapshot, t as ApplyDiffResult, u as MergeConflictProperty, v as compare, y as merge } from "../index-mcBtG6pK-CitQV9Bq.js";
2
- import "../index-CxyK4HrT.js";
1
+ import { _ as applyDiff, a as ComparisonDiagnostic, b as prepareDiff, c as ComparisonSpan, d as MergeConflictReason, f as MergeRegion, g as PreparedDiff, h as PrepareDiffResult, i as ComparisonCorrespondence, l as MergeConflict, m as MergeResult, n as ComparedChange, o as ComparisonEffect, p as MergeResolution, r as Comparison, s as ComparisonSnapshot, t as ApplyDiffResult, u as MergeConflictProperty, v as compare, y as merge } from "../index-LEcSTRgn-BR_p4GVY.js";
2
+ import "../index-CKSwab_O.js";
3
3
  export { ApplyDiffResult, ComparedChange, Comparison, ComparisonCorrespondence, ComparisonDiagnostic, ComparisonEffect, ComparisonSnapshot, ComparisonSpan, MergeConflict, MergeConflictProperty, MergeConflictReason, MergeRegion, MergeResolution, MergeResult, PrepareDiffResult, PreparedDiff, applyDiff, compare, merge, prepareDiff };
@@ -12,10 +12,10 @@ Install from GitHub:
12
12
  npx skills add udecode/plate --skill plate
13
13
  ```
14
14
 
15
- Or install through well-known site discovery:
15
+ Or install through well-known site discovery (use `https://beta.platejs.org` during v2 beta):
16
16
 
17
17
  ```bash
18
- npx skills add https://platejs.org --skill plate
18
+ npx skills add https://beta.platejs.org --skill plate
19
19
  ```
20
20
 
21
21
  Every `platejs` package release also bundles the exact version-matched skill directory at `node_modules/platejs/dist/skills/plate/`, which works with `npx skills experimental_sync`.
@@ -65,3 +65,7 @@ Follow the plate skill. Read node_modules/platejs/dist/docs/llms.txt first, chec
65
65
  ## Reporting a Plate bug
66
66
 
67
67
  When an agent hits a failure inside `platejs` rather than your app code, `references/report-a-bug.md` instructs it to write a minimal reproduction outside your app, check open issues in `udecode/plate`, show you the draft report, and wait for your confirmation before filing.
68
+
69
+ ## Pro and Business
70
+
71
+ Plate Pro ships `plate-deploy-cloudflare`, `plate-deploy-vercel`, and `plate-upgrade` through `plate skills sync` for 1-command self-host deployment and 3-way upgrades across customized Plate UI files. Plate Business adds the `plate-security-hardening` skill alongside `@plate-business/security-kernel`, `@plate-business/compliance-pdf`, `@plate-business/security-proof`, and `plate verify` CI. See [Pricing](/pricing).
@@ -10,7 +10,7 @@ Copy a setup prompt for your stack. It installs Plate, writes an `AGENTS.md` poi
10
10
 
11
11
  ```text
12
12
  Set up Plate UI in this Next.js project. It needs React 19.2+, Tailwind CSS v4, and shadcn/ui.
13
- If the folder is empty, scaffold the starter first: npx shadcn@latest create @plate/editor-basic --preset b0 --base base --template next
13
+ If the folder is empty, scaffold the starter first: npx shadcn@latest create https://beta.platejs.org/r/base-nova/editor-basic.json --preset b0 --base base --template next
14
14
 
15
15
  1. In an existing project, keep any already-installed platejs version, configure @plate in components.json, and add the basic editor: npx shadcn@latest add @plate/editor-basic
16
16
  If this is a new Plate v2 beta project, install platejs@beta so node_modules/platejs/dist/docs/llms.txt is available, and point @plate in components.json to "https://beta.platejs.org/r/{style}/{name}.json".
@@ -11,7 +11,7 @@ Plate ships AI capabilities for end users inside your editor as a layered stack:
11
11
  | Workflow | Entrypoint or kit | Page |
12
12
  | --- | --- | --- |
13
13
  | Inline Ask AI menu, draft preview, and suggestion diffs | `AIKit`, `AIPlugin`, `AIMenu`, `AILoadingBar` | [AI](/docs/ai) |
14
- | Multi-turn sidebar chat with `@` block mentions and tool markers | `AgentChat`, `PromptEditor` | [AI](/docs/ai), [Prompt Editor](/docs/prompt-editor) |
14
+ | Multi-turn sidebar chat with `@` context chips, parameterized commands, and tool markers | `AgentChat`, `PromptEditor`, `CommandBar` | [AI](/docs/ai), [Prompt Editor](/docs/prompt-editor), [Command Bar](/docs/components/command-bar) |
15
15
  | Headless document tools, traces, and server-side sync agents | `getEditorTools`, `createEditorAgent`, `createSyncServerAgent`, `onTrace` (`platejs/ai`), `@plate/agent-trace-drawer` | [AI](/docs/ai) |
16
16
  | Expose editor tools to browser agents and in-app MCP clients | `registerEditorTools`, `useWebMCP` (`platejs/ai`) | [AI](/docs/ai) |
17
17
  | Pen markup over text and media with 1-tap Send to `AgentChat` | `InkKit`, `useEditorAgent({ ink: true })` | [Ink](/docs/ink) |
@@ -23,7 +23,7 @@ All Plate AI surfaces share the same document model, visibility filters, and rev
23
23
 
24
24
  - **One tool catalog across UI, browser, and server.** `platejs/ai` exports zero-React, zero-AI-SDK document tools (`getEditorTools`) so your sidebar `AgentChat`, WebMCP browser clients (`registerEditorTools`), and headless sync workers (`createSyncServerAgent`) execute the same structured operations against the editor schema.
25
25
  - **Reviewable proposals instead of silent overwrites.** Selection edits, multi-cell table edits, and Ink-to-Agent replies land as authored proposals (`AuthoredPlugin`) or anchored comments (`CommentsPlugin`) so users accept or reject changes with full undo support.
26
- - **Consistent safety boundaries.** Recursive visibility filtering (`filter`), `<Locked ref="lN" />` placeholders for [locked blocks](/docs/lock), and default-deny remote media guards (`allowRemoteMediaUrl`, `InertRemoteMediaPlugin`) prevent hidden content leaks and unsafe writes.
26
+ - **Consistent safety boundaries.** Recursive visibility filtering (`filter` as a per-block `EditorVisibilityPredicate` or document-scoped `{ forDocument }` compiler), `<Locked ref="lN" />` placeholders for [locked blocks](/docs/lock), and default-deny remote media guards (`allowRemoteMediaUrl`, `InertRemoteMediaPlugin`) prevent hidden content leaks and unsafe writes.
27
27
 
28
28
  ## Quick setup
29
29
 
@@ -64,9 +64,9 @@ Add the backing `/api/ai/command` route and model credentials from [AI](/docs/ai
64
64
 
65
65
  ## Pair AI with collaboration and pen markup
66
66
 
67
- - **Run multiple agents inside real-time sync rooms.** Use `createSyncServerAgent` from `platejs/ai` alongside [Sync](/docs/sync) with a `'suggest'` grant so server agents show live presence carets and propose reviewable edits under their own author identity without direct-edit privileges. Forward `onTrace` events through `server.broadcast(room, { name: 'agent-trace', payload: event })` and render `AgentTraceDrawer` (`@plate/agent-trace-drawer`) to inspect each agent's tool calls and jump to affected blocks.
67
+ - **Run multiple agents inside real-time sync rooms.** Use `createSyncServerAgent` from `platejs/ai` alongside [Sync](/docs/sync) with a `'suggest'` grant so server agents show live presence carets and propose reviewable edits under their own author identity without direct-edit privileges. Forward `onTrace` events through `server.broadcast(room, { name: 'agent-trace', payload: event })` and render [Agent Trace Drawer](/docs/components/agent-trace-drawer) (`@plate/agent-trace-drawer`) to inspect each agent's tool calls and jump to affected blocks.
68
68
  - **Send handwritten markup straight to the agent.** Pair [Ink](/docs/ink) with `AgentChat` and `useEditorAgent({ ink: true })` to capture visible passages plus Canvas 2D snapshots and receive inline suggestions or anchored comments without locking typing.
69
- - **Build custom `@`-mention prompt inputs.** Use [Prompt Editor](/docs/prompt-editor) to serialize `@` context chips into `<mention>` tags for any chat form or command bar.
69
+ - **Build multi-source `@` prompt inputs and command palettes.** Use [Prompt Editor](/docs/prompt-editor) with `sources` and parameterized `commands` to serialize `@` context chips into `<mention>` tags, or pair it with [Command Bar](/docs/components/command-bar) (`@plate/command-bar`) for a `Cmd+K` command palette.
70
70
 
71
71
  ## Next steps
72
72
 
@@ -74,3 +74,7 @@ Add the backing `/api/ai/command` route and model credentials from [AI](/docs/ai
74
74
  - Add ghost-text autocomplete in [Copilot](/docs/copilot).
75
75
  - Add pen markup and 1-tap Send to the document agent in [Ink](/docs/ink).
76
76
  - Combine AI suggestions with real-time rooms and permissions in [Collaboration](/docs/collaboration).
77
+
78
+ ## Pro and Business
79
+
80
+ Plate Pro ships `@plate-pro/collab-do` with a Streamable HTTP MCP agent room endpoint, `@plate-pro/context-chips` for multi-source `@` context expansion and parameterized commands, and `@plate-pro/ink-loop` for server-side handwriting review. Plate Business adds `@plate-business/security-kernel` for server-enforced propose-only agent grants, mutation budgets, and trace redaction, paired with `plate verify --suite ai-sandbox` CI. See [Pricing](/pricing).
package/dist/docs/ai.md CHANGED
@@ -771,6 +771,7 @@ Headless exports from `platejs/ai`:
771
771
  - `getEditorTools(options?: GetEditorToolsOptions): readonly EditorToolDefinition[]` builds the JSON Schema tool list (`access` defaults to `'suggest'`, `prefix` defaults to `'editor'`, and `comments`, `debug`, and `ink` default to `false`).
772
772
  - `createEditorAgent(editor, options: EditorAgentOptions): EditorAgent` executes those tools serially against `editor` with required `authorId` and `filter`, plus optional `onTrace?: (event: EditorAgentTraceEvent) => void`.
773
773
  - `createSyncServerAgent(server, options: SyncServerAgentOptions): EditorAgent` executes those tools against an authoritative sync server room (`server.run`) under a fixed `{ access, actor: authorId, decide: false }` grant (`access` defaults to `'suggest'`; `comments` is always `false`) with optional `onTrace?: (event: EditorAgentTraceEvent) => void`.
774
+ - `EditorVisibilityFilter` accepts `'allow-all'`, a per-block `EditorVisibilityPredicate` (`({ block, path, root? }) => boolean`), or `{ forDocument: (document: EditorDocumentValue) => EditorVisibilityPredicate }`. Document-scoped `{ forDocument }` filters compile once per document revision and cache their predicate across block lookups, which supports section-wide heading inheritance and owned `childRoots` checks without rescanning the tree per block.
774
775
  - `EditorAgentTraceEvent` is the structured lifecycle trace payload (`'running' | 'done' | 'denied' | 'error'`) emitted by `onTrace`.
775
776
  - `registerEditorTools(agent, options: RegisterEditorToolsOptions): () => void` registers the agent on `document.modelContext`, `navigator.modelContext`, or explicit `modelContext` targets (no-op on SSR) and returns an idempotent teardown function.
776
777
 
@@ -823,3 +824,7 @@ Review states switch automatically inside `AIMenuItems`:
823
824
  - `hasSuggestion` (`mode === 'suggestion' && changeId !== null`): shows Accept, Discard, and Try again.
824
825
  - `hasDraft` (`draftNodes.length > 0`): shows Accept (or Replace selection and Insert below for edit drafts without `AuthoredPlugin`), Discard, and Try again.
825
826
  - Idle: shows `SELECTION_COMMANDS` when text or blocks are selected, or `CURSOR_COMMANDS` at a collapsed caret.
827
+
828
+ ## Pro and Business
829
+
830
+ Plate Pro ships `@plate-pro/collab-do` with a Streamable HTTP MCP agent room endpoint, `@plate-pro/context-chips` for multi-source `@` context expansion, and the `Potion v2` and `Paper v2` flagship templates. Plate Business adds `@plate-business/security-kernel` for server-enforced propose-only agent sandboxes, mutation budgets, and agent trace redaction, plus `plate verify --suite ai-sandbox` CI. See [Pricing](/pricing).
@@ -20,14 +20,22 @@ the React and static paths need React.
20
20
  | Import | Use | Optional peer |
21
21
  | --- | --- | --- |
22
22
  | `platejs` | Headless editor creation, Plate plugins, editor APIs, core types, and utilities. | None |
23
- | `platejs/react` | React editor creation, components, hooks, stores, and React plugins. | React and React DOM |
24
- | `platejs/react/virtualized` | `VirtualizedEditorContent`, which omits offscreen top-level blocks from the DOM. | `@tanstack/react-virtual`, React, and React DOM |
25
- | `platejs/static` | `EditorStatic`, HTML rendering, and static node renderers. | React and React DOM |
23
+ | `platejs/react` | React editor creation, components, hooks, stores, and React plugins. | `react`, `react-dom` |
24
+ | `platejs/react/virtualized` | `VirtualizedEditorContent`, which omits offscreen top-level blocks from the DOM. | `@tanstack/react-virtual`, `react`, `react-dom` |
25
+ | `platejs/static` | `EditorStatic`, `renderStaticHtml`, and static node renderers. | `react`, `react-dom` |
26
26
  | `platejs/dom`, `platejs/history`, `platejs/hyperscript` | DOM and clipboard integration, history persistence, and JSX fixtures. | None |
27
- | `@platejs/test` | Node-safe editor fixtures and environment-specific test harnesses. | React and Testing Library for `/react`; Playwright for `/playwright` |
28
- | `platejs/pagination` | Page settings codec and pagination layout types. | None |
29
- | `platejs/pagination/react` | `PaginationPlugin`, `PaginationContent`, and page layout hooks. | React and React DOM |
30
- | `platejs/diff` | Document diff helpers. | `diff-match-patch-ts` |
27
+ | `platejs/compiler`, `platejs/migrations`, `platejs/testing` | Schema compiler, storage-boundary document migrations, and headless test utilities. | None |
28
+ | `platejs/ai`, `platejs/ai/react` | Document-agent tools, `createSyncServerAgent`, visibility filters, WebMCP, and React AI hooks. | `react`, `react-dom` for `/react` |
29
+ | `platejs/authored`, `platejs/authored/react` | Authored change projections, proposals, and `useAuthoredGroups` / `useActiveAuthored`. | `react`, `react-dom` for `/react` |
30
+ | `platejs/sync`, `platejs/sync/server`, `platejs/sync/cloudflare`, `platejs/sync/postgres`, `platejs/sync/react` | Real-time sync client, authoritative room server, Durable Objects / PostgreSQL storage adapters, and React sync hooks. | `react`, `react-dom` for `/react` |
31
+ | `platejs/comments`, `platejs/comments/react`, `platejs/lock`, `platejs/lock/react` | Anchored comment threads and client-side block locks. | `react`, `react-dom` for `/react` |
32
+ | `platejs/markdown`, `platejs/html`, `platejs/html/server`, `platejs/docx/export`, `platejs/docx/import`, `platejs/docx/paste` | Markdown, HTML (browser and server), and Word DOCX serialization and import codecs. | `unified`, `remark-parse`, `remark-stringify` for `/markdown`; `linkedom` for `/html/server` |
33
+ | `platejs/pagination`, `platejs/pagination/react` | Page settings codec, `PaginationPlugin`, `PaginationContent`, and page layout hooks. | `react`, `react-dom` for `/react` |
34
+ | `platejs/diff` | Document diff and three-way merge helpers. | `diff-match-patch-ts` |
35
+ | `platejs/<feature>`, `platejs/<feature>/react` | Per-feature plugin subpaths (`board`, `callout`, `code-block/codemirror`, `column`, `combobox/react`, `date`, `details`, `field`, `find`, `footnote`, `format-painter/react`, `ink`, `lint`, `math`, `media`, `mention`, `reference`, `resizable/react`, `tabbable/react`, `table`, `toc`, `upload`). | Feature-specific (`katex` for `/math`, `@codemirror/*` for `/code-block/codemirror`, `tabbable` for `/tabbable/react`, plus `react` / `react-dom` for `/react`) |
36
+ | `@platejs/test` | Node-safe editor fixtures, schema arbitraries, and environment-specific test harnesses. | `react` and Testing Library for `/react`; Playwright for `/playwright` |
37
+
38
+ Inspect `node_modules/platejs/package.json` (`exports`) for the full list of subpaths in your installed version.
31
39
 
32
40
  ## Base runtime
33
41
 
@@ -13,6 +13,7 @@ hooks for rendered nodes, and geometry hooks for anchored floating UI.
13
13
  - [Element And Node Hooks](/docs/api/react-hooks#element-and-node-hooks)
14
14
  - [Geometry Hooks](/docs/api/react-hooks#geometry-hooks)
15
15
  - [Selector Results](/docs/api/react-hooks#selector-results)
16
+ - [Feature Subpath Hooks](/docs/api/react-hooks#feature-subpath-hooks)
16
17
 
17
18
  ## Editor hooks
18
19
 
@@ -68,8 +69,22 @@ room cleanly without holding a duplicate lock.
68
69
  Get the active editor from the nearest `EditorRoot` provider. Inside an
69
70
  `EditorContent`, `useEditor()` returns that editing area's editor. Outside every
70
71
  `EditorContent`, such as in a toolbar, it returns the editor of the root holding
71
- the caret, or the `EditorRoot`'s own root editor while nothing is selected. Use
72
- `useOptionalEditor()` when a component may render outside a provider.
72
+ the caret, or the `EditorRoot`'s own root editor while nothing is selected.
73
+
74
+ #### `useOptionalEditor(): Editor | null`
75
+
76
+ Get the active editor from the nearest `EditorRoot`, `EditorController`, or
77
+ `EditorProvider`, or return `null` when rendered outside every provider.
78
+
79
+ #### `useEditableRef(): React.RefObject<HTMLElement | null>`
80
+
81
+ Get the ref object attached to the selected view's `EditorContent` host element.
82
+ Its `current` value is `null` before mount or outside a mounted view.
83
+
84
+ #### `useEditorContainerRef(): React.RefObject<HTMLDivElement | null>`
85
+
86
+ Get the ref object attached to the selected editor's container element. Its
87
+ `current` value is `null` before mount or outside a provider.
73
88
 
74
89
  #### `useEditorComposing(): boolean`
75
90
 
@@ -690,3 +705,18 @@ const version = useEditorSelector(
690
705
  (editor) => editor.read.runtime.snapshot().version
691
706
  );
692
707
  ```
708
+
709
+ ## Feature subpath hooks
710
+
711
+ Domain-specific hooks ship from their feature React subpaths rather than `platejs/react`:
712
+
713
+ | Hooks | Subpath | Guide |
714
+ | --- | --- | --- |
715
+ | `useEditorAgent`, `useWebMCP` | `platejs/ai/react` | [AI](/docs/ai) |
716
+ | `useAuthoredGroups`, `useActiveAuthored` | `platejs/authored/react` | [Authored Changes](/docs/authored-changes), [Suggestions](/docs/suggestion) |
717
+ | `useSyncApi`, `useSyncStatus`, `useSyncKept` | `platejs/sync/react` | [Sync](/docs/sync) |
718
+ | `useCommentThreadIndex` | `platejs/comments/react` | [Comments](/docs/comment) |
719
+ | `useFieldRead` | `platejs/field/react` | [Field](/docs/field) |
720
+ | `useIsLocked`, `useIsOwnLocked` | `platejs/lock/react` | [Block Lock](/docs/lock) |
721
+ | `useCombobox` | `platejs/combobox/react` | [Combobox](/docs/combobox) |
722
+ | `usePageLayout`, `useTableRowPageBreak` | `platejs/pagination/react` | [Pagination](/docs/pagination) |
@@ -458,3 +458,7 @@ content. With `editor`, a document with pending changes returns an
458
458
  returns one, with the code `authored-uncovered`, when the projection builds an
459
459
  element that needs a generated value and the document stores no spare block for
460
460
  it, such as a document another tool wrote.
461
+
462
+ ## Pro and Business
463
+
464
+ Plate Pro ships `@plate-pro/change-requests` for Word `.docx` tracked-change intake and multi-author review helpers, `@plate-pro/floating-discussion` for margin review cards, and the `Paper v2` flagship template. Plate Business adds `@plate-business/security-kernel` for revision-pinned approval gates and crash-safe SHA-256 WORM audit logs. See [Pricing](/pricing).
@@ -70,3 +70,7 @@ actions disabled when the current selection shape is unsupported.
70
70
 
71
71
  `BlockContextMenu` is the public copied component. There is no menu-state or
72
72
  separate selection package API.
73
+
74
+ ## Pro and Business
75
+
76
+ Plate Pro ships the `Potion v2` and `Paper v2` flagship templates with block menus wired alongside AI actions, block locks, drag and drop, and real-time sync. See [Pricing](/pricing).
@@ -723,3 +723,7 @@ The image shape, `boardImage`: an object block that holds at most one `image` el
723
723
  | `BoardPicture`, `BoardPictureOptions`, `BoardPictureWarning` | `platejs/board/react` | What `exportPicture` resolves, what it takes, and each warning in the picture's `warnings`. A warning's `code` is `content-undrawn`, `downscaled`, `font-missing`, `image-unreadable` or `shape-undrawn`, and the last two also name the `shapeId`. |
724
724
  | `BoardArrowPath`, `BoardArrowhead`, `BoardArrowLabel` | `platejs/board/react` | Draw an arrow inside its `BoardShape`. `BoardArrowPath` is an SVG `path` whose `d` runs between the arrow's ends. `BoardArrowhead` is an SVG `g` that draws its children at the arrow's end, turned so that the positive x axis points along the arrow. It sets its own `transform` and `display`, so style the head through its children. `BoardArrowLabel` is an absolutely positioned `div` that holds the arrow's text, centered on the arrow's middle. It sets its own `left` and `top`, and a `style` can override its `position` and the `translate` that centers it. All three follow a moved, dragged, or resized shape, or a growing note or free text, without a render of the arrow. An arrow's `BoardShape` is an empty box at the board's origin, and `d` is in board coordinates. So draw the path and the head in a 1 by 1 `svg`, because Firefox draws nothing in an `svg` of zero size. Give that `svg` visible overflow and `pointer-events: none`, and put it inside an element with `contentEditable={false}`. A press picks an arrow only when it lands on one of the arrow's elements, so give one path `pointerEvents="stroke"`, such as a wide transparent `BoardArrowPath`. Until the arrow has a drawing, the path has no `d` and the head and the label are hidden. Each throws outside an arrow's `BoardShape`. |
725
725
  | `useStrokePath(element)` | `platejs/board/react` | The drawn path of a pen line in a mounted board. It returns the `BoardStrokePath` that `strokePath(id)` reads, or `undefined` when the element is not a pen line of that board. |
726
+
727
+ ## Pro and Business
728
+
729
+ Plate Pro ships `@plate-pro/board-workspace`, a copy-owned visual canvas workspace combining `BaseBoardPlugin`, all seven shape plugins, `AuthoredPlugin`, confined headless and `SyncServer` board-agent tools (`board_read`, `board_edit` with `$ref` batch ops and propose-only mode), and ephemeral spatial canvas overlay projection (`board-agent-overlay`) wired for real-time sync with `@plate-pro/collab-do`. See [Pricing](/pricing).
@@ -9,19 +9,28 @@ _Edit inside the callout block and pick a variant or emoji icon from its header
9
9
  ## Features
10
10
 
11
11
  - Multi-block callout container holding paragraphs, lists, code blocks, quotes, and nested blocks
12
- - Neutral optional `variant`, `icon`, and `backgroundColor` document properties with copied-UI styling, background color swatches, and emoji picker
12
+ - Neutral optional `variant`, `icon`, `backgroundColor`, and `actions` document properties with copied-UI styling, background color swatches, emoji picker, and clickable workflow buttons
13
13
  - Wrap, unwrap, toggle, insert, and upsert transforms
14
- - Dual Markdown serialization: GitHub Flavored Markdown Alerts (`> [!NOTE]` .. `> [!CAUTION]`) with `<callout>` MDX fallback for custom icons, colors, and extra properties
14
+ - Dual Markdown serialization: GitHub Flavored Markdown Alerts (`> [!NOTE]` .. `> [!CAUTION]`) with `<callout>` MDX fallback for custom icons, colors, workflow actions, and extra properties
15
15
 
16
16
  ## Document model
17
17
 
18
- A Callout node is a block container (`blockContent`, `min: 1`) with optional neutral metadata:
18
+ A Callout node is a block container (`blockContent`, `min: 1`) with optional neutral metadata and optional declarative workflow `actions`:
19
19
 
20
20
  ```tsx
21
21
  const value = [
22
22
  {
23
23
  type: 'callout',
24
- variant: 'note',
24
+ variant: 'warning',
25
+ actions: [
26
+ {
27
+ id: 'trigger-rollback',
28
+ label: 'Rollback release',
29
+ kind: 'webhook',
30
+ confirm: 'Roll back production to the previous build?',
31
+ payload: { webhookKey: 'deploy-rollback' },
32
+ },
33
+ ],
25
34
  children: [
26
35
  { type: 'paragraph', children: [{ text: 'First paragraph.' }] },
27
36
  {
@@ -35,17 +44,46 @@ const value = [
35
44
  ];
36
45
  ```
37
46
 
38
- `BaseCalloutPlugin` sets no default `icon`, `variant`, or `backgroundColor` on the node. Copied UI (`CalloutElement` and `CalloutElementStatic`) owns visual styling and fallback icons. For Word export, `exportDocx` keeps callouts neutral by default and applies per-variant tint shading and a left accent border when `styles.callout.variants` is provided (configured in `DOCX_EXPORT_STYLES`).
47
+ `BaseCalloutPlugin` sets no default `icon`, `variant`, `backgroundColor`, or `actions` on the node. When `actions` is set, it must be a non-empty array of 1 to 16 `CalloutAction` objects with unique non-empty `id` values, non-empty `label` strings, optional `kind` and `confirm` strings, and optional plain-JSON `payload` objects (without prototype-polluting keys). Remove the `actions` property with `unset('actions')` instead of storing an empty array.
48
+
49
+ Copied UI (`CalloutElement` and `CalloutElementStatic`) owns visual styling, fallback icons, and button rendering. HTML serialization stores valid `actions` in `data-editor-html-callout-actions` and omits malformed values on import. For Word export, `exportDocx` keeps callouts neutral by default, applies per-variant tint shading and a left accent border when `styles.callout.variants` is provided (configured in `DOCX_EXPORT_STYLES`), and appends a readable `Actions: [Label]` paragraph with a `lossy-content` diagnostic when `actions` are present.
39
50
 
40
51
  ## Markdown serialization
41
52
 
42
53
  `BaseCalloutPlugin` registers two Markdown mappings:
43
54
 
44
- - **GFM Alerts (priority `5`):** Decodes GitHub alert blockquotes (`> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, `> [!CAUTION]`) into `callout` nodes with lowercase `variant`. Encodes clean alert callouts (one of those five variants and no custom `icon`, `backgroundColor`, or extra block properties) back to GFM alert syntax.
45
- - **`<callout>` MDX fallback (priority `0`):** Decodes and encodes `<callout>` flow elements when custom `icon`, `backgroundColor`, custom `variant`, or extra block properties (such as `indent`) are present.
55
+ - **GFM Alerts (priority `5`):** Decodes GitHub alert blockquotes (`> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, `> [!CAUTION]`) into `callout` nodes with lowercase `variant`. Encodes clean alert callouts (one of those five variants and no custom `icon`, `backgroundColor`, `actions`, or extra block properties) back to GFM alert syntax.
56
+ - **`<callout>` MDX fallback (priority `0`):** Decodes and encodes `<callout>` flow elements when custom `icon`, `backgroundColor`, `actions` (encoded as a quoted JSON attribute), custom `variant`, or extra block properties (such as `indent`) are present.
46
57
 
47
58
  A custom Markdown mapping at priority `10` overrides both built-in mappings.
48
59
 
60
+ ## Workflow actions and run view
61
+
62
+ Wrap an editor in `CalloutActionProvider` from `@/components/editor/callout` to handle clickable workflow buttons, runtime disabled or completed states, and inline confirmation prompts. Set `mode="run"` to hide author-only variant, color, emoji, and action-editing controls while keeping workflow buttons interactive inside a read-only run view.
63
+
64
+ ```tsx
65
+ import { CalloutActionProvider } from '@/components/editor/callout';
66
+
67
+ <CalloutActionProvider
68
+ mode="run"
69
+ getActionState={(calloutId, action) => ({
70
+ disabled: false,
71
+ status: 'idle',
72
+ })}
73
+ onAction={async ({ action, calloutId }) => {
74
+ await runWorkflowAction(calloutId, action);
75
+ }}
76
+ >
77
+ {children}
78
+ </CalloutActionProvider>
79
+ ```
80
+
81
+ For repeatable checklists, diagnostic branches, and runbooks whose runs stay separate from the authored template, install [Procedure Runner](/docs/components/procedure-runner) (`@plate/procedure-runner`, exporting `ProcedureRunView` and pure runner helpers) alongside `CalloutKit`, `ListKit`, `DetailsKit`, and `FieldKit`.
82
+
83
+ _Example `procedure-demo` in the Plate repository: `apps/www/src/registry/examples/procedure-demo.tsx`._
84
+
85
+ _Switch between Template and Run View, complete the Stop Step, answer the diagnostic field to reveal a branch, and trigger the confirmed workflow callout button without mutating the template._
86
+
49
87
  ## Kit usage
50
88
 
51
89
  ### Installation
@@ -135,6 +173,7 @@ Insert a multi-block callout element seeded with one empty paragraph.
135
173
  | `props.variant` | `string` *(optional)* | Optional callout variant token (for example `'note'`, `'tip'`, `'important'`, `'warning'`, `'caution'`). |
136
174
  | `props.icon` | `string` *(optional)* | Optional callout icon or emoji. Omitted unless set. |
137
175
  | `props.backgroundColor` | `string` *(optional)* | Optional background color override. |
176
+ | `props.actions` | `readonly CalloutAction[]` *(optional)* | Optional non-empty list of 1 to 16 declarative workflow actions. |
138
177
  | `options` | `BlockInsertOptions` *(optional)* | Standard block insertion options such as `at`, `after`, `before`, and `select`. |
139
178
 
140
179
  ### `editor.plugin(BaseCalloutPlugin).update.upsert`
@@ -158,10 +197,10 @@ Unwrap when every selected block is inside a callout; otherwise wrap the selecte
158
197
  ### `CalloutElement`
159
198
 
160
199
  ```typescript
161
- import type { CalloutElement } from 'platejs/callout';
200
+ import type { CalloutAction, CalloutElement } from 'platejs/callout';
162
201
  ```
163
202
 
164
- `CalloutElement` is derived from `BaseCalloutPlugin`. Its schema holds block children (`min: 1`) and exposes optional `backgroundColor`, `icon`, and `variant` properties.
203
+ `CalloutElement` is derived from `BaseCalloutPlugin`. Its schema holds block children (`min: 1`) and exposes optional `actions`, `backgroundColor`, `icon`, and `variant` properties.
165
204
 
166
205
  **Attributes**
167
206
 
@@ -170,3 +209,18 @@ import type { CalloutElement } from 'platejs/callout';
170
209
  | `variant` | `string` *(optional)* | Optional variant token of the callout. |
171
210
  | `icon` | `string` *(optional)* | Optional icon or emoji to display. |
172
211
  | `backgroundColor` | `string` *(optional)* | Optional background color override. |
212
+ | `actions` | `readonly CalloutAction[]` *(optional)* | Optional non-empty list of 1 to 16 declarative workflow actions. |
213
+
214
+ ### `CalloutAction`
215
+
216
+ | Name | Type | Description |
217
+ | --- | --- | --- |
218
+ | `id` | `string` | Required unique trimmed action identifier within the callout (up to 64 characters). |
219
+ | `label` | `string` | Required non-empty trimmed button label (up to 120 characters). |
220
+ | `kind` | `string` *(optional)* | Optional action category token such as `'webhook'`, `'approve'`, `'notify'`, or `'run'` (up to 64 characters). |
221
+ | `confirm` | `string` *(optional)* | Optional confirmation prompt text shown before running the action (up to 500 characters). |
222
+ | `payload` | `Readonly<Record<string, EditorJsonValue>>` *(optional)* | Optional plain-JSON metadata object (depth up to 6, up to 64 keys, no prototype-polluting keys). |
223
+
224
+ ## Pro and Business
225
+
226
+ Plate Pro ships `@plate-pro/procedures` with canonical template and rules SHA-256 revision pinning, Stop-Step DAG enforcement, `platejs/field` branch gating, workflow callout builders, and human and agent run tools. Plate Business adds `@plate-business/security-kernel` for server-owned `ProcedureRunStore` persistence (Memory, DO SQLite, Postgres), WORM audit recovery, separation-of-duties sign-offs, and SSRF-safe signed webhooks, verified by `plate verify --suite ai-sandbox`. See [Pricing](/pricing).
@@ -12,7 +12,8 @@ Build collaborative editing by composing independent layers instead of coupling
12
12
  | PostgreSQL or Cloudflare Durable Objects room storage | `platejs/sync/postgres`, `platejs/sync/cloudflare` | [Sync](/docs/sync) |
13
13
  | Proposed edits and review decisions in the document | `platejs/authored`, `SuggestionKit` | [Suggestions](/docs/suggestion), [Authored Changes](/docs/authored-changes) |
14
14
  | Anchored comment threads and replies | `platejs/comments`, `platejs/comments/react` | [Comments](/docs/comment) |
15
- | Combined per-block comment and suggestion cards | `DiscussionKit`, `UserDirectoryProvider` | [Discussion](/docs/discussion) |
15
+ | Combined per-block comment and suggestion cards | `DiscussionKit`, `UserDirectoryProvider`, `SuggestionReviewBar` | [Discussion](/docs/discussion), [Suggestion Review Bar](/docs/components/suggestion-review-bar) |
16
+ | Live multi-agent room trace inspection | `createSyncServerAgent` (`platejs/ai`), `AgentTraceDrawer` | [AI & Editor Agents](/docs/ai-agents), [Agent Trace Drawer](/docs/components/agent-trace-drawer) |
16
17
  | Client-side edit protection on chosen blocks | `LockPlugin`, `LockKit` | [Block Lock](/docs/lock) |
17
18
 
18
19
  ## How the layers compose
@@ -120,3 +121,7 @@ Do not rely on UI mode or client-side plugins for access control:
120
121
  - Configure proposing, accepting, and rejecting edits in [Suggestions](/docs/suggestion) and [Authored Changes](/docs/authored-changes).
121
122
  - Attach threaded conversations to text ranges or proposals in [Comments](/docs/comment) and [Discussion](/docs/discussion).
122
123
  - Protect template regions against accidental edits in [Block Lock](/docs/lock).
124
+
125
+ ## Pro and Business
126
+
127
+ Plate Pro ships `@plate-pro/collab-do` for hibernatable Cloudflare Durable Object rooms with D1 projection, `@plate-pro/synced-block` for cross-document synced roots, and `@plate-pro/disclosure` for audience projection and counterparty sub-rooms, alongside the `Potion v2` and `Paper v2` flagship templates. Plate Business adds `@plate-business/security-kernel` for wire-level read redaction and hash-chained WORM audit logs, plus `@plate-business/security-proof` and `plate verify --suite sync-security` CI. See [Pricing](/pricing).
@@ -149,6 +149,7 @@ _Type : followed by a keyword to filter and insert an emoji from the inline comb
149
149
  ## Behavior
150
150
 
151
151
  - The popup opens when the user types the trigger. Moving the caret after existing trigger text, undo, paste and remote edits never open it.
152
+ - Elements and marks that declare `inputRuleVeto` (such as code blocks and inline code) keep typed triggers as plain text. A trigger that straddles a veto mark never opens, and converting an open query into a veto block closes the popup and refuses completion.
152
153
  - The query is the text from the trigger to the caret, across marks, inside one block. It ends when the caret moves before the trigger or past the typed text, a character fails `queryPattern`, it starts with whitespace or it grows past `maxQueryLength`.
153
154
  - Escape closes the popup and leaves the typed text. Typing more does not reopen it; typing the trigger again does.
154
155
  - Completion deletes the trigger and query and runs your insertion in one transaction. Undo restores the typed text.
@@ -172,7 +173,7 @@ While a typed trigger's query is open, the editor reports itself as a combobox.
172
173
  - **Default:** `/^\s?$/`
173
174
  - `triggerQuery` (`((editor: Editor) => boolean) | null` *(optional)*):
174
175
 
175
- Return `false` to keep a typed trigger as plain text, for example inside code.
176
+ Additional app veto tested after `inputRuleVeto` (code blocks, inline code, and custom veto elements or marks are always skipped). Return `false` to keep a typed trigger as plain text.
176
177
  - **Default:** `null`
177
178
  - `queryPattern` (`RegExp | null` *(optional)*):
178
179
 
@@ -200,6 +201,12 @@ While a typed trigger's query is open, the editor reports itself as a combobox.
200
201
 
201
202
  ## Registry UI
202
203
 
203
- The copied `inline-combobox` component wraps `useCombobox` with a Floating UI listbox. It owns the active option and the popup position at the trigger. Inside the popup, read the query with `useInlineComboboxQuery()` and pass it with the menu's options to `rankOptions(options, query)`. It returns the options that match, best match first: an exact label or keyword, then a label that starts with the query, then a later word of the label, then a keyword or the group. Equal matches keep the list's order, and a blank query keeps every option. Insert the chosen feature in `InlineComboboxItem.onSelect`, using its inferred transaction, and return the command's result, or `false` when the option is no longer available. Use `onClick` for a UI action after a successful completion, such as opening another popover.
204
+ The copied `inline-combobox` component wraps `useCombobox` with a Floating UI listbox. It owns the active option, viewport clipping, and popup placement at the trigger.
205
+
206
+ - **`InlineCombobox`**: accepts `useCombobox` options plus `hideWhenNoValue` (wait for a non-empty query before opening), `loading` (keep Enter and Tab from completing while options load, and hold trailing-space auto-dismiss), and `onKeyDown` (runs before default list keys; return `true` to handle the key, such as Escape to pop a submenu).
207
+ - **`InlineComboboxContent`**: renders the portaled listbox and forwards `aria-busy` so child components can signal async searches while keeping keyboard navigation intact.
208
+ - **`InlineComboboxGroup`** and **`InlineComboboxGroupLabel`**: group options under an accessible label, hide empty groups, and draw dividers only between visible groups.
209
+ - **`InlineComboboxItem`**: inserts the completion in `onSelect` using its inferred transaction (return `false` to refuse and keep the query). Pass `complete={false}` for submenu drill-down or deferred actions that run `onClick` without deleting the trigger, and `focusEditor={false}` to keep focus outside the editor after completion.
210
+ - **Context hooks and ranking**: call `useInlineComboboxQuery()`, `useInlineComboboxMatch()`, and `useInlineComboboxDismiss()` inside the popup. Pass options and the query to `rankOptions(options, query)` to sort exact label or keyword matches first, then label prefix, later word prefix, and keyword or group matches; equal matches keep their input order, and a blank query keeps every option.
204
211
 
205
212
  _Registry item `inline-combobox`: `npx shadcn@latest add @plate/inline-combobox`._
@@ -627,3 +627,7 @@ A listener runs after its action's outcome is decided, except a `subscribeAnchor
627
627
  ### `CommentComposer`
628
628
 
629
629
  `onSubmit(body)` returns `Promise<CommentMutationResult<string | undefined>>`. Return the awaited durable action's result; the composer clears input only for `status: 'applied'`. It preserves rich input while saving and blocks duplicate submissions. Failed actions retain the draft and display a retry message.
630
+
631
+ ## Pro and Business
632
+
633
+ Plate Pro ships `@plate-pro/floating-discussion` for wide-screen collision-free margin comment cards alongside the `Potion v2` and `Paper v2` flagship templates. See [Pricing](/pricing).
@@ -16,7 +16,7 @@ For the container bars that host these buttons, see [Fixed Toolbar](/docs/compon
16
16
  | Draw Toolbar Button | A toolbar button that turns the ink Draw tool on or off with the last tool used, and the brush preferences each tool remembers per editor. | `npx shadcn@latest add @plate/draw-toolbar-button` |
17
17
  | Emoji Toolbar Button | An emoji picker toolbar button. | `npx shadcn@latest add @plate/emoji-toolbar-button` |
18
18
  | Equation Toolbar Button | A toolbar button for inserting and editing equations. | `npx shadcn@latest add @plate/equation-toolbar-button` |
19
- | Export Toolbar Button | A toolbar button that exports HTML, Markdown, or Word named after the document heading, copies Markdown, and prints or saves a PDF. | `npx shadcn@latest add @plate/export-toolbar-button` |
19
+ | Export Toolbar Button | An anchored export popover for Word, PDF/Print, Markdown, and HTML with clean-copy, suggestion, and Word page controls. | `npx shadcn@latest add @plate/export-toolbar-button` |
20
20
  | Field Toolbar Button | A toolbar menu that inserts a field of each kind. | `npx shadcn@latest add @plate/field-toolbar-button` |
21
21
  | Font Color Toolbar Button | A color picker toolbar button with text and background color controls. | `npx shadcn@latest add @plate/font-color-toolbar-button` |
22
22
  | Font Size Toolbar Button | A toolbar control for adjusting font size. | `npx shadcn@latest add @plate/font-size-toolbar-button` |
@@ -449,3 +449,7 @@ Example shortcut: `Ctrl+Space`
449
449
  ### `editor.plugin(CopilotPlugin).api.stop()`
450
450
 
451
451
  Cancels any debounced trigger, aborts the active completion request, and clears loading state.
452
+
453
+ ## Pro and Business
454
+
455
+ Plate Pro ships the `Potion v2` and `Paper v2` flagship templates with Copilot wired alongside inline AI editing, real-time sync, and self-host deploy skills (`plate-deploy-cloudflare`, `plate-deploy-vercel`). See [Pricing](/pricing).