platejs 54.0.0-beta.13 → 54.0.0-beta.15
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.
- package/dist/{EditorStatic-CKG5xM3y.d.ts → EditorStatic-ldAMJg-F.d.ts} +4 -4
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/lib/aiDraftSession.js +9 -7
- package/dist/ai/lib/aiPolicy.internal.js +43 -6
- package/dist/ai/lib/editorAgent.js +30 -21
- package/dist/ai/lib/editorAgentSync.internal.js +2 -2
- package/dist/ai/lib/lockedContext.js +5 -4
- package/dist/ai/react/copilotInline.internal.js +6 -5
- package/dist/ai/react/index.d.ts +7 -7
- package/dist/ai/react/useEditorAgent.js +14 -3
- package/dist/authored/index.d.ts +4 -4
- package/dist/{authored-CJL7S8qI-BxC9ip4d.d.ts → authored-Cux94E76-fEDdP_BS.d.ts} +3 -3
- package/dist/clipboard-format-key-B_rCped5-BJzbgrSZ.d.ts +1 -0
- package/dist/code-block/codemirror/index.d.ts +2 -2
- package/dist/{comment-anchor.internal-DTBP1huU.d.ts → comment-anchor.internal-Ck30WbG4.d.ts} +2 -2
- package/dist/compiler/index.d.ts +3 -3
- package/dist/{core-CTB0OBoh.d.ts → core-DoxvjG5W.d.ts} +69 -23
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/agents/skills.md +6 -2
- package/dist/docs/agents.md +1 -1
- package/dist/docs/ai-agents.md +8 -4
- package/dist/docs/ai.md +5 -0
- package/dist/docs/api/plate.md +15 -7
- package/dist/docs/api/react-hooks.md +32 -2
- package/dist/docs/authored-changes.md +4 -0
- package/dist/docs/block-menu.md +4 -0
- package/dist/docs/board.md +4 -0
- package/dist/docs/callout.md +63 -9
- package/dist/docs/collaboration.md +6 -1
- package/dist/docs/combobox.md +9 -2
- package/dist/docs/comment.md +8 -4
- package/dist/docs/components/toolbar-buttons.md +1 -1
- package/dist/docs/copilot.md +4 -0
- package/dist/docs/deck.md +173 -0
- package/dist/docs/details.md +4 -0
- package/dist/docs/diff.md +4 -0
- package/dist/docs/discussion.md +4 -0
- package/dist/docs/dnd.md +4 -0
- package/dist/docs/docx.md +6 -0
- package/dist/docs/emoji.md +2 -2
- package/dist/docs/equation.md +4 -0
- package/dist/docs/examples/collaboration-example.md +4 -0
- package/dist/docs/examples/export.md +41 -31
- package/dist/docs/examples/merge.md +4 -0
- package/dist/docs/examples/version-history.md +4 -0
- package/dist/docs/field.md +4 -0
- package/dist/docs/footnote.md +4 -0
- package/dist/docs/format-painter.md +1 -1
- package/dist/docs/html.md +4 -0
- package/dist/docs/index.md +4 -0
- package/dist/docs/ink.md +6 -0
- package/dist/docs/installation/manual.md +2 -4
- package/dist/docs/installation/next.md +1 -3
- package/dist/docs/installation/plate-ui.md +6 -2
- package/dist/docs/installation/rsc.md +1 -1
- package/dist/docs/installation.md +4 -0
- package/dist/docs/link.md +6 -0
- package/dist/docs/lint.md +18 -0
- package/dist/docs/llms.txt +4 -1
- package/dist/docs/lock.md +34 -2
- package/dist/docs/markdown.md +8 -0
- package/dist/docs/media.md +4 -0
- package/dist/docs/mention.md +5 -0
- package/dist/docs/mobile.md +415 -0
- package/dist/docs/pagination.md +4 -0
- package/dist/docs/prompt-editor.md +17 -1
- package/dist/docs/reference.md +192 -0
- package/dist/docs/roots.md +34 -0
- package/dist/docs/serializing.md +23 -0
- package/dist/docs/slash-command.md +58 -4
- package/dist/docs/static.md +29 -20
- package/dist/docs/suggestion.md +4 -0
- package/dist/docs/sync.md +4 -0
- package/dist/docs/table.md +31 -0
- package/dist/docs/toc.md +14 -0
- package/dist/docs/toolbar.md +4 -0
- package/dist/docs/unit-testing.md +4 -0
- package/dist/docs/upload.md +4 -0
- package/dist/docx/export/index.d.ts +5 -5
- package/dist/docx/import/index.d.ts +5 -5
- package/dist/docx/paste/index.d.ts +4 -4
- package/dist/dom/index.d.ts +1 -1
- package/dist/features/basic-nodes/lib/BaseMarkPlugins.js +1 -1
- package/dist/features/basic-styles/lib/BaseFormattingPlugin.js +61 -28
- package/dist/features/basic-styles/lib/BaseStylePlugins.js +28 -7
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/callout/index.d.ts +2 -160
- package/dist/features/callout/lib/BaseCalloutPlugin.js +109 -9
- package/dist/features/column/index.d.ts +1 -1
- package/dist/features/comments/index.d.ts +2 -2
- package/dist/features/date/index.d.ts +3 -3
- package/dist/features/details/index.d.ts +3 -3
- package/dist/features/field/index.d.ts +1 -1
- package/dist/features/field/lib/BaseFieldPlugin.js +111 -53
- package/dist/features/field/lib/fieldCache.internal.js +9 -21
- package/dist/features/find/index.d.ts +3 -3
- package/dist/features/footnote/index.d.ts +3 -3
- package/dist/features/ink/index.d.ts +1 -1
- package/dist/features/link/lib/BaseLinkPlugin.js +5 -2
- package/dist/features/lint/index.d.ts +3 -3
- package/dist/features/list/lib/listKeyboard.internal.js +7 -2
- package/dist/features/lock/index.d.ts +1 -1
- package/dist/features/media/index.d.ts +1 -1
- package/dist/features/mention/index.d.ts +1 -1
- package/dist/features/reference/index.d.ts +240 -0
- package/dist/features/reference/index.js +2 -0
- package/dist/features/reference/lib/BaseReferencePlugin.js +598 -0
- package/dist/features/table/index.d.ts +2 -2
- package/dist/features/toc/index.d.ts +1 -1
- package/dist/features/upload/index.d.ts +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/html/index.d.ts +4 -4
- package/dist/html/server/index.d.ts +2 -2
- package/dist/html/server/serverCssParser.internal.js +14 -25
- package/dist/html/server/serverCssStyle.internal.js +4 -7
- package/dist/{htmlConversion-Y-M6PLRi.d.ts → htmlConversion-CHcWrkh5.d.ts} +2 -2
- package/dist/{htmlTypes-CNhoCFjK.d.ts → htmlTypes-9HQ8p7c5.d.ts} +3 -3
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/index-1JPYTyFo.d.ts +305 -0
- package/dist/index-B-SGl9uM.d.ts +1 -0
- package/dist/{index-qqrnWAk_.d.ts → index-B048Z6JD.d.ts} +7 -7
- package/dist/index-BFkl1TNK.d.ts +1 -0
- package/dist/{index-DYuqsDrP.d.ts → index-BRwhNV78.d.ts} +3 -3
- package/dist/{index-B0R9sXv2-T1dxG9oM.d.ts → index-BYv6zIL_-DWmaXzbX.d.ts} +4 -4
- package/dist/{index-B-8L9f6a2.d.ts → index-Bm8V8SS4.d.ts} +5 -5
- package/dist/{index-B8JeECEk.d.ts → index-BujEk356.d.ts} +2 -2
- package/dist/{index-CHud6Aa-.d.ts → index-C4KIDKwP.d.ts} +3 -3
- package/dist/{index-B4aToRMv.d.ts → index-CAFKQNqu.d.ts} +3 -3
- package/dist/{index-Bqva6PJc.d.ts → index-CXJwwbAJ.d.ts} +3 -3
- package/dist/index-CfqQvdcO.d.ts +3 -0
- package/dist/{index-D54VPeky.d.ts → index-Cj09P2Qp.d.ts} +2 -2
- package/dist/{index-mcBtG6pK-CitQV9Bq.d.ts → index-CnumypT3-DGx8_6Ye.d.ts} +2 -2
- package/dist/{index-CWutqVQ_-BO-UgVeK.d.ts → index-DTTSk3WQ-D0TA0B5z.d.ts} +1 -1
- package/dist/{index-CLPMcGC5.d.ts → index-DsKfZoY4.d.ts} +4 -4
- package/dist/{index-UYpvOBXG.d.ts → index-UrJ6V3_e.d.ts} +2 -2
- package/dist/{index-DXCdafUk.d.ts → index-UuSQ_p3c.d.ts} +43 -20
- package/dist/{index-BEXBAmJf.d.ts → index-YNMmixU5.d.ts} +3 -3
- package/dist/{index-CXd5hwaH.d.ts → index-Zj4bj9bZ.d.ts} +1 -1
- package/dist/{index-BfJKfAwk.d.ts → index-eWzk-bcU.d.ts} +3 -3
- package/dist/{index-DhsryaAC.d.ts → index-h2HH9Rw8.d.ts} +1 -1
- package/dist/{index-DJhwDkfd.d.ts → index-l9R_LyGx.d.ts} +3 -3
- package/dist/{index-BFWK852j.d.ts → index-lD9iIU3j.d.ts} +3 -3
- package/dist/{index-D3bhjdRz.d.ts → index-lgeYbG68.d.ts} +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/internal/plugin/compilePlateModel.js +24 -5
- package/dist/internal/plugin/pluginInjectNodeProps.js +33 -5
- package/dist/internal/utils/urlPolicy.js +11 -1
- package/dist/lib/editor/withPlite.js +8 -6
- package/dist/lib/plugins/html/cssLexer.internal.js +144 -37
- package/dist/lib/plugins/html/cssSafety.internal.js +100 -0
- package/dist/lib/plugins/html/htmlDecode.internal.js +2 -2
- package/dist/lib/plugins/html/htmlMatcher.internal.js +1 -1
- package/dist/lib/plugins/html/htmlRules.internal.js +2 -13
- package/dist/lib/plugins/html/htmlSafety.js +28 -27
- package/dist/lib/plugins/html/htmlSerialize.internal.js +16 -2
- package/dist/lib/plugins/html/htmlStyleInline.internal.js +38 -31
- package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +27 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/lib/internal/markdownAttributes.js +16 -7
- package/dist/markdown/lib/internal/markdownMappings.js +123 -16
- package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +16 -1
- package/dist/math/index.d.ts +3 -3
- package/dist/math/react/index.d.ts +4 -4
- package/dist/migrations/index.d.ts +4 -4
- package/dist/migrations/migratePlateV54Urls.internal.js +63 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/react/PaginationPlugin.js +46 -43
- package/dist/pagination/react/index.d.ts +13 -7
- package/dist/{protocol-CSuP7AWG-DAorqpaF.d.ts → protocol-CYflJUT3-CRJPCqOO.d.ts} +1 -1
- package/dist/react/authored/index.d.ts +4 -4
- package/dist/react/components/PlateView.js +7 -1
- package/dist/react/features/board/index.d.ts +5 -5
- package/dist/react/features/callout/index.d.ts +93 -4
- package/dist/react/features/column/index.d.ts +5 -5
- package/dist/react/features/combobox/combobox.internal.js +35 -22
- package/dist/react/features/combobox/comboboxOwner.internal.js +29 -2
- package/dist/react/features/combobox/index.d.ts +8 -6
- package/dist/react/features/comments/index.d.ts +6 -6
- package/dist/react/features/date/index.d.ts +4 -4
- package/dist/react/features/details/index.d.ts +4 -4
- package/dist/react/features/field/FieldPlugin.js +2 -2
- package/dist/react/features/field/index.d.ts +5 -5
- package/dist/react/features/footnote/index.d.ts +4 -4
- package/dist/react/features/format-painter/FormatPainterPlugin.js +27 -34
- package/dist/react/features/format-painter/index.d.ts +4 -4
- package/dist/react/features/ink/index.d.ts +5 -5
- package/dist/react/features/lock/index.d.ts +5 -5
- package/dist/react/features/media/index.d.ts +5 -5
- package/dist/react/features/mention/index.d.ts +4 -4
- package/dist/react/features/table/index.d.ts +6 -6
- package/dist/react/features/toc/index.d.ts +2 -2
- package/dist/react/features/upload/index.d.ts +5 -5
- package/dist/react/index.d.ts +6 -6
- package/dist/react/virtualized.d.ts +3 -3
- package/dist/refusal-VX2Y6Wmd-BJzbgrSZ.d.ts +1 -0
- package/dist/{registerEditorTools-Cl-o_Wnq.d.ts → registerEditorTools-DoRs57-M.d.ts} +16 -8
- package/dist/shared-room-BZxUmqjV-BJzbgrSZ.d.ts +1 -0
- package/dist/skills/plate/SKILL.md +4 -3
- package/dist/skills/plate/references/ai-and-agents.md +2 -2
- package/dist/skills/plate/references/pricing.md +3 -3
- package/dist/skills/plate/references/setup.md +6 -0
- package/dist/skills/plate/references/ui-and-sync.md +4 -3
- package/dist/{source-DUP5aKcT.d.ts → source-PTxjcq4_.d.ts} +3 -3
- package/dist/static/index.d.ts +23 -9
- package/dist/static/internal/staticPendingMedia.internal.js +2 -1
- package/dist/static/internal/staticPresentation.js +1 -0
- package/dist/static/renderStaticHtml.js +85 -39
- package/dist/{storage-EzfLDqRy-Cu4DQ-Rf.d.ts → storage-CkRL-SHq-CBP6PGqr.d.ts} +2 -2
- package/dist/sync/cloudflare/index.d.ts +3 -3
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/postgres/index.d.ts +1 -1
- package/dist/sync/react/index.d.ts +6 -6
- package/dist/sync/server/index.d.ts +5 -5
- package/dist/tabbable/react/index.d.ts +4 -4
- package/dist/testing/index.d.ts +3 -3
- package/dist/{transport-DAforzBt-BFwAhC-N.d.ts → transport-2koNcrqA-Dp_RYE3n.d.ts} +1 -1
- package/dist/utils/plate-keys.js +1 -0
- package/dist/{widths-BjIZxtaJ.d.ts → widths-DN1W6m66.d.ts} +5 -5
- package/package.json +9 -2
- package/dist/clipboard-format-key-D9rnh20X-CR00YA0H.d.ts +0 -1
- package/dist/index-CKAkaSJK.d.ts +0 -3
- package/dist/index-CxyK4HrT.d.ts +0 -1
- package/dist/index-zcb_RtZC.d.ts +0 -1
- package/dist/refusal-DCzeB9nD-CR00YA0H.d.ts +0 -1
- package/dist/shared-room-Bg8qMvm1-CR00YA0H.d.ts +0 -1
- /package/dist/{tx-only-CWT-IURY-BqIFhy44.d.ts → tx-only-x32UA-pQ-OQbgWQrN.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $o as Range, $r as EditorUpdateContext, Bi as Location, Bo as PropertyEnumDescriptor, Cc as Selection, Cl as TransferIntent, D as Decoration, Da as NodeSelection, Do as PluginTypeProvider, El as TransferOutcome, Eo as PluginReference, Es as SchemaContentRule, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Hl as TxMethodDeclarations, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Ki as MaximizeMode, Kl as WithNodeTarget, Mo as PluginWitnessFor, Mt as EditorJsonValue, Ni as InitialValue, O as DecorationAttributes, Oo as PluginTypeProviderOf, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Sl as TransferInput, Sr as EditorTextChangeContext, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wn as EditorSchemaSource, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fs as RootKey, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, io as PluginCapabilities, j as DefinitionOf, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ll as TextOf, ma as NodeKey, mi as EditorViewOptions, or as EditorStateField, qo as PropertyStringDescriptor, st as EditorCommitContext, vl as TransferApi, wi as ElementOf, yl as TransferCheck, yo as PluginPortal$1, zt as EditorNodeChangeContext } from "./tx-only-
|
|
2
|
-
import { h as EditorApplicationSchema } from "./htmlTypes-
|
|
3
|
-
import { B as ScrollMargin, c as DOMApi, l as DOMClipboardApi } from "./index-
|
|
4
|
-
import { $a as InferRead, An as AutoScrollApi, Ba as EditOnlyConfig, Co as PluginSelectors, Cr as RenderElementProps, Ct as PluginTransaction, D as DefinePluginFormats, Do as SelectionRules, Dt as CorePlugins, Et as SpecializePluginApi, Fa as BasePluginDefinition, Fi as isPositiveSafeInteger, Fo as UnknownObject, G as PluginContributionCompatibility, Ga as InferDependencies, Gi as HighlightResult, Ha as GetInjectNodePropsReturnType, Ia as BaseTransformOptions, Io as Nullable, Ki as Alignment, Ln as DomPluginUpdate, Lt as RenderTextProps, Ma as InternalPluginDefinitionOf, Mi as IndentChangeOptions, Mo as InferPluginNodeTypeProvider, Na as AnyBasePluginDefinition, No as InferPluginSchema, O as EditorShortcut, Pa as BaseInjectProps, Po as InferPluginSchemaContribution, Pt as GetFragmentPropOptions, Qa as InferPluginViewState, R as PluginShortcutInput, Ra as DefinitionOf$1, Rt as RenderLeafProps, Sa as HeadingLevel, So as PluginSelectorReturn, Ta as ToggleHeadingOptions, Ti as isListOrdinal, To as PluginViewStore, Tt as ReactOptionalCorePluginName, U as MergePluginDefinitions, Ua as InferApi, Va as GetInjectNodePropsOptions, W as PluginCompatibilityArguments, Wa as InferConflicts, Za as InferPluginStoreState, Zr as ElementWith, _i as ListStyle, _t as MergeInstalledPluginDefinitions, ao as NormalizePluginSelectors, ar as BasePluginInstalledCapabilityWitness, at as RuntimePluginsFromTuple, bo as PluginSelectorArgs, bt as PluginReadCapability, c as InternalBaseEditorWithInstalledPlugins, co as PluginBaseContext, ct as BlockInsertOptions, d as AnyBasePluginPortal, do as PluginPortalContext, dt as DisabledOptionalCoreNames, ea as CapturedFormat, ei as SchemaPropertySource, eo as InferSelectors, er as PluginInitialStateInput, f as AnyPluginBase, fo as PluginReference$1, g as BasePluginDefinitionInput, gi as ListSetOptions, gt as InternalInstalledSchemaMutationProvider, ho as PluginSchemaDeclaration, ht as InferRuntimePlugins, io as NodeComponent, ir as BasePluginDependencyReferences, it as PlatePluginsFromTuple, ja as ExactPluginSchemaDeclaration, jo as WithAnyName, l as AnyBasePlugin, lo as PluginDefinitionWitness, lt as BlockUpsertOptions, m as BasePluginConfiguration, mo as PluginSchemaContext, mt as InferEditorRuntimePlugins, no as InferUpdate, nr as BasePluginDependencyDescriptors, nt as EditorOptions, oo as NormalizePluginState, or as LowerBasePlugin, p as BasePlugin, pt as ExcludeInstalledNames, rt as GuaranteedPlugins, s as EditorReference, sr as NormalizeBasePluginInput, st as BasePluginInput, tr as RequiredPluginState, u as AnyBasePluginContext, uo as PluginDependency, ut as DisabledExplicitNames, vi as ListToggleOptions, w as ConfiguredPluginDescriptor, wi as isListLevels, wr as HandlerReturnType, xo as PluginSelectorMethods, xt as PluginReadState, yi as ListType, yt as PluginDirectUpdate, zn as ScrollMode } from "./core-
|
|
5
|
-
import { A as ReactApi, B as StateFieldSetter, G as UseEditorSelectorOptions, W as UseEditorHistoryOptions, Y as UseRootEditorOptions, Z as UseStateFieldValueOptions, _ as EditorContentProps$1, d as EditableHandlerResult, g as Editor$1, l as EditableElementSlots, m as EditableInputEventContext$1, n as EditorStaticProps, r as EditableDOMBeforeInputContext$1, u as EditableHandlerContext$1, v as EditorHistoryController } from "./EditorStatic-
|
|
1
|
+
import { $o as Range, $r as EditorUpdateContext, Bi as Location, Bo as PropertyEnumDescriptor, Cc as Selection, Cl as TransferIntent, D as Decoration, Da as NodeSelection, Do as PluginTypeProvider, El as TransferOutcome, Eo as PluginReference, Es as SchemaContentRule, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Hl as TxMethodDeclarations, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Ki as MaximizeMode, Kl as WithNodeTarget, Mo as PluginWitnessFor, Mt as EditorJsonValue, Ni as InitialValue, O as DecorationAttributes, Oo as PluginTypeProviderOf, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Sl as TransferInput, Sr as EditorTextChangeContext, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wn as EditorSchemaSource, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fs as RootKey, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, io as PluginCapabilities, j as DefinitionOf, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ll as TextOf, ma as NodeKey, mi as EditorViewOptions, or as EditorStateField, qo as PropertyStringDescriptor, st as EditorCommitContext, vl as TransferApi, wi as ElementOf, yl as TransferCheck, yo as PluginPortal$1, zt as EditorNodeChangeContext } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { B as ScrollMargin, c as DOMApi, l as DOMClipboardApi } from "./index-BujEk356.js";
|
|
4
|
+
import { $a as InferRead, An as AutoScrollApi, Ba as EditOnlyConfig, Co as PluginSelectors, Cr as RenderElementProps, Ct as PluginTransaction, D as DefinePluginFormats, Do as SelectionRules, Dt as CorePlugins, Et as SpecializePluginApi, Fa as BasePluginDefinition, Fi as isPositiveSafeInteger, Fo as UnknownObject, G as PluginContributionCompatibility, Ga as InferDependencies, Gi as HighlightResult, Ha as GetInjectNodePropsReturnType, Ia as BaseTransformOptions, Io as Nullable, Ki as Alignment, Ln as DomPluginUpdate, Lt as RenderTextProps, Ma as InternalPluginDefinitionOf, Mi as IndentChangeOptions, Mo as InferPluginNodeTypeProvider, Na as AnyBasePluginDefinition, No as InferPluginSchema, O as EditorShortcut, Pa as BaseInjectProps, Po as InferPluginSchemaContribution, Pt as GetFragmentPropOptions, Qa as InferPluginViewState, R as PluginShortcutInput, Ra as DefinitionOf$1, Rt as RenderLeafProps, Sa as HeadingLevel, So as PluginSelectorReturn, Ta as ToggleHeadingOptions, Ti as isListOrdinal, To as PluginViewStore, Tt as ReactOptionalCorePluginName, U as MergePluginDefinitions, Ua as InferApi, Va as GetInjectNodePropsOptions, W as PluginCompatibilityArguments, Wa as InferConflicts, Za as InferPluginStoreState, Zr as ElementWith, _i as ListStyle, _t as MergeInstalledPluginDefinitions, ao as NormalizePluginSelectors, ar as BasePluginInstalledCapabilityWitness, at as RuntimePluginsFromTuple, bo as PluginSelectorArgs, bt as PluginReadCapability, c as InternalBaseEditorWithInstalledPlugins, co as PluginBaseContext, ct as BlockInsertOptions, d as AnyBasePluginPortal, do as PluginPortalContext, dt as DisabledOptionalCoreNames, ea as CapturedFormat, ei as SchemaPropertySource, eo as InferSelectors, er as PluginInitialStateInput, f as AnyPluginBase, fo as PluginReference$1, g as BasePluginDefinitionInput, gi as ListSetOptions, gt as InternalInstalledSchemaMutationProvider, ho as PluginSchemaDeclaration, ht as InferRuntimePlugins, io as NodeComponent, ir as BasePluginDependencyReferences, it as PlatePluginsFromTuple, ja as ExactPluginSchemaDeclaration, jo as WithAnyName, l as AnyBasePlugin, lo as PluginDefinitionWitness, lt as BlockUpsertOptions, m as BasePluginConfiguration, mo as PluginSchemaContext, mt as InferEditorRuntimePlugins, no as InferUpdate, nr as BasePluginDependencyDescriptors, nt as EditorOptions, oo as NormalizePluginState, or as LowerBasePlugin, p as BasePlugin, pt as ExcludeInstalledNames, rt as GuaranteedPlugins, s as EditorReference, sr as NormalizeBasePluginInput, st as BasePluginInput, tr as RequiredPluginState, u as AnyBasePluginContext, uo as PluginDependency, ut as DisabledExplicitNames, vi as ListToggleOptions, w as ConfiguredPluginDescriptor, wi as isListLevels, wr as HandlerReturnType, xo as PluginSelectorMethods, xt as PluginReadState, yi as ListType, yt as PluginDirectUpdate, zn as ScrollMode } from "./core-DoxvjG5W.js";
|
|
5
|
+
import { A as ReactApi, B as StateFieldSetter, G as UseEditorSelectorOptions, W as UseEditorHistoryOptions, Y as UseRootEditorOptions, Z as UseStateFieldValueOptions, _ as EditorContentProps$1, d as EditableHandlerResult, g as Editor$1, l as EditableElementSlots, m as EditableInputEventContext$1, n as EditorStaticProps, r as EditableDOMBeforeInputContext$1, u as EditableHandlerContext$1, v as EditorHistoryController } from "./EditorStatic-ldAMJg-F.js";
|
|
6
6
|
import React$1, { HTMLAttributes } from "react";
|
|
7
7
|
declare const DOM_HANDLERS: readonly ['onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onDOMBeforeInput', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
|
|
8
8
|
type DOMHandlerProp = (typeof DOM_HANDLERS)[number];
|
|
@@ -1581,12 +1581,7 @@ declare const ItalicPlugin: Plugin<Omit<Readonly<{
|
|
|
1581
1581
|
name: "italic";
|
|
1582
1582
|
}> & Readonly<Record<never, never>>>;
|
|
1583
1583
|
declare const KbdPlugin: Plugin<Readonly<{
|
|
1584
|
-
|
|
1585
|
-
rules: true;
|
|
1586
|
-
}> & Readonly<{
|
|
1587
|
-
name: "kbd";
|
|
1588
|
-
}> & Readonly<Record<never, never>> & Readonly<{
|
|
1589
|
-
__pluginWritableProperties: Readonly<{
|
|
1584
|
+
readonly __pluginWritableProperties: Readonly<{
|
|
1590
1585
|
descriptor: PropertyBooleanDescriptor<{
|
|
1591
1586
|
readonly default: false;
|
|
1592
1587
|
readonly omitDefault: true;
|
|
@@ -1598,12 +1593,16 @@ declare const KbdPlugin: Plugin<Readonly<{
|
|
|
1598
1593
|
unaliased: true;
|
|
1599
1594
|
value: boolean;
|
|
1600
1595
|
}>;
|
|
1601
|
-
schema: {
|
|
1596
|
+
readonly schema: {
|
|
1602
1597
|
readonly mark: PropertyBooleanDescriptor<{
|
|
1603
1598
|
readonly default: false;
|
|
1604
1599
|
readonly omitDefault: true;
|
|
1605
1600
|
}>;
|
|
1606
1601
|
};
|
|
1602
|
+
readonly name: "kbd";
|
|
1603
|
+
readonly contributions: true;
|
|
1604
|
+
readonly formats: true;
|
|
1605
|
+
readonly rules: true;
|
|
1607
1606
|
}>>;
|
|
1608
1607
|
declare const ScriptPlugin: Plugin<Omit<Readonly<{
|
|
1609
1608
|
readonly __pluginWritableProperties: Readonly<{
|
|
@@ -1682,7 +1681,10 @@ declare const FontBackgroundColorPlugin: Plugin<Readonly<{
|
|
|
1682
1681
|
name: "backgroundColor";
|
|
1683
1682
|
}> & Readonly<Record<never, never>> & Readonly<{
|
|
1684
1683
|
__pluginWritableProperties: Readonly<{
|
|
1685
|
-
descriptor: PropertyStringDescriptor<
|
|
1684
|
+
descriptor: PropertyStringDescriptor<{
|
|
1685
|
+
readonly validate: (value: unknown) => value is string;
|
|
1686
|
+
readonly validationVersion: 1;
|
|
1687
|
+
}>;
|
|
1686
1688
|
key: "backgroundColor";
|
|
1687
1689
|
localId: "backgroundColor";
|
|
1688
1690
|
ownerName: "backgroundColor";
|
|
@@ -1691,7 +1693,10 @@ declare const FontBackgroundColorPlugin: Plugin<Readonly<{
|
|
|
1691
1693
|
value: string;
|
|
1692
1694
|
}>;
|
|
1693
1695
|
schema: {
|
|
1694
|
-
readonly mark: PropertyStringDescriptor<
|
|
1696
|
+
readonly mark: PropertyStringDescriptor<{
|
|
1697
|
+
readonly validate: (value: unknown) => value is string;
|
|
1698
|
+
readonly validationVersion: 1;
|
|
1699
|
+
}>;
|
|
1695
1700
|
};
|
|
1696
1701
|
}>>;
|
|
1697
1702
|
declare const FontColorPlugin: Plugin<Readonly<{
|
|
@@ -1701,7 +1706,10 @@ declare const FontColorPlugin: Plugin<Readonly<{
|
|
|
1701
1706
|
name: "color";
|
|
1702
1707
|
}> & Readonly<Record<never, never>> & Readonly<{
|
|
1703
1708
|
__pluginWritableProperties: Readonly<{
|
|
1704
|
-
descriptor: PropertyStringDescriptor<
|
|
1709
|
+
descriptor: PropertyStringDescriptor<{
|
|
1710
|
+
readonly validate: (value: unknown) => value is string;
|
|
1711
|
+
readonly validationVersion: 1;
|
|
1712
|
+
}>;
|
|
1705
1713
|
key: "color";
|
|
1706
1714
|
localId: "color";
|
|
1707
1715
|
ownerName: "color";
|
|
@@ -1710,7 +1718,10 @@ declare const FontColorPlugin: Plugin<Readonly<{
|
|
|
1710
1718
|
value: string;
|
|
1711
1719
|
}>;
|
|
1712
1720
|
schema: {
|
|
1713
|
-
readonly mark: PropertyStringDescriptor<
|
|
1721
|
+
readonly mark: PropertyStringDescriptor<{
|
|
1722
|
+
readonly validate: (value: unknown) => value is string;
|
|
1723
|
+
readonly validationVersion: 1;
|
|
1724
|
+
}>;
|
|
1714
1725
|
};
|
|
1715
1726
|
}>>;
|
|
1716
1727
|
declare const FontFamilyPlugin: Plugin<Readonly<{
|
|
@@ -1720,7 +1731,10 @@ declare const FontFamilyPlugin: Plugin<Readonly<{
|
|
|
1720
1731
|
name: "fontFamily";
|
|
1721
1732
|
}> & Readonly<Record<never, never>> & Readonly<{
|
|
1722
1733
|
__pluginWritableProperties: Readonly<{
|
|
1723
|
-
descriptor: PropertyStringDescriptor<
|
|
1734
|
+
descriptor: PropertyStringDescriptor<{
|
|
1735
|
+
readonly validate: (value: unknown) => value is string;
|
|
1736
|
+
readonly validationVersion: 1;
|
|
1737
|
+
}>;
|
|
1724
1738
|
key: "fontFamily";
|
|
1725
1739
|
localId: "fontFamily";
|
|
1726
1740
|
ownerName: "fontFamily";
|
|
@@ -1729,7 +1743,10 @@ declare const FontFamilyPlugin: Plugin<Readonly<{
|
|
|
1729
1743
|
value: string;
|
|
1730
1744
|
}>;
|
|
1731
1745
|
schema: {
|
|
1732
|
-
readonly mark: PropertyStringDescriptor<
|
|
1746
|
+
readonly mark: PropertyStringDescriptor<{
|
|
1747
|
+
readonly validate: (value: unknown) => value is string;
|
|
1748
|
+
readonly validationVersion: 1;
|
|
1749
|
+
}>;
|
|
1733
1750
|
};
|
|
1734
1751
|
}>>;
|
|
1735
1752
|
declare const FontSizePlugin: Plugin<Readonly<{
|
|
@@ -1739,7 +1756,10 @@ declare const FontSizePlugin: Plugin<Readonly<{
|
|
|
1739
1756
|
name: "fontSize";
|
|
1740
1757
|
}> & Readonly<Record<never, never>> & Readonly<{
|
|
1741
1758
|
__pluginWritableProperties: Readonly<{
|
|
1742
|
-
descriptor: PropertyStringDescriptor<
|
|
1759
|
+
descriptor: PropertyStringDescriptor<{
|
|
1760
|
+
readonly validate: (value: unknown) => value is string;
|
|
1761
|
+
readonly validationVersion: 1;
|
|
1762
|
+
}>;
|
|
1743
1763
|
key: "fontSize";
|
|
1744
1764
|
localId: "fontSize";
|
|
1745
1765
|
ownerName: "fontSize";
|
|
@@ -1748,7 +1768,10 @@ declare const FontSizePlugin: Plugin<Readonly<{
|
|
|
1748
1768
|
value: string;
|
|
1749
1769
|
}>;
|
|
1750
1770
|
schema: {
|
|
1751
|
-
readonly mark: PropertyStringDescriptor<
|
|
1771
|
+
readonly mark: PropertyStringDescriptor<{
|
|
1772
|
+
readonly validate: (value: unknown) => value is string;
|
|
1773
|
+
readonly validationVersion: 1;
|
|
1774
|
+
}>;
|
|
1752
1775
|
};
|
|
1753
1776
|
}>>;
|
|
1754
1777
|
declare const LineHeightPlugin: Plugin<Readonly<{
|
|
@@ -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-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-
|
|
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-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-DoxvjG5W.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,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-
|
|
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-x32UA-pQ-OQbgWQrN.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-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-
|
|
1
|
+
import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-DoxvjG5W.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 & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-
|
|
1
|
+
import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-x32UA-pQ-OQbgWQrN.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 { 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-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { p as BasePlugin, vt as NodeInsertOptions } from "./core-
|
|
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-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { p as BasePlugin, vt as NodeInsertOptions } from "./core-DoxvjG5W.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'];
|
|
@@ -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-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-
|
|
1
|
+
import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, gi as Element$1, ma as NodeKey, wi as ElementOf } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-DoxvjG5W.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,6 +1,6 @@
|
|
|
1
|
-
import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-
|
|
1
|
+
import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-DoxvjG5W.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`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EditorCommandDispatch, $a as PluginActivationContext, $c as TextDirection, $i as NodeChildEntry, $l as defineEffect, $n as EditorSelection, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, $t as EditorReadInput, A as DecorationSource, Aa as NodeSplitNodesOptions, Ac as SelectionMutationMethods, Ai as HistoryRecordResult, An as EditorSchemaGetProperty, Ao as PluginUpdateFactory, Ar as EditorTransactionBreakApi, As as SchemaElementFor, At as EditorIsEditorOptions, Au as setDebugValueScrubber, Ba as NodeUnwrapNodesOptions, Bc as StateFieldHistoryPolicy, Bi as Location, Bl as TransferWrap, Bn as EditorSchemaPropertyQuery, Bo as PropertyEnumDescriptor, Br as EditorTransactionRecordsApi, Bs as SchemaElementSlicePolicy, Bt as EditorNodeChangeHandler, Bu as txSelection, Ca as NodeOf, Cc as Selection, Ci as ElementIsElementOptions, Cl as TransferIntent, Cn as EditorSchemaDefinition, Co as PluginReadFactoryContext, Cr as EditorTextChangeHandler, Cs as SchemaContentRootOwnership, Ct as EditorElementBehavior, Cu as nodeWriteVeto, D as Decoration, Da as NodeSelection, Dc as SelectionEdge, Di as HistoryApi, Dl as TransferPatch, Dn as EditorSchemaElementOverride, Do as PluginTypeProvider, Dr as EditorTransactionAnchorApi, Ds as SchemaDescendant, Dt as EditorInstalledApiGroups, E as DebugValueScrubber, Ea as NodeReplaceChildrenOptions, Ec as SelectionCollapseOptions, Ei as ElementOrTextOf, El as TransferOutcome, En as EditorSchemaElement, Er as EditorTransactionAnchor, Es as SchemaContentRule, F as DescendantEntryIn, Fa as NodeTextRangeRoot, Fc as SliceLandingTarget, Fi as JsonEditorValue, Fl as TransferSideInput, Fn as EditorSchemaPlugin, Fo as PointApi, Fr as EditorTransactionDocumentChangeKind, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Fu as target, G as EditorBreakExitOptions, Ga as PathAncestorsOptions, Gi as MarksOf, Gl as ValueOf, Go as PropertySetDescriptor, Gr as EditorTransactionSpecBuilder, Gs as SchemaGroupNames, Gt as EditorNodesOptions, H as EditorAboveOptions, Ha as NodeWriteVeto, Hc as StateFieldValueInput, Hi as LocationInterface, Hl as TxMethodDeclarations, Hn as EditorSchemaReadProperty, Ho as PropertyJsonOptions, Hr as EditorTransactionRootsApi, Hs as SchemaElementTarget, Ht as EditorNodeGetOptions, I as DescendantEntryOf, Ia as NodeTextRangeView, Ic as SnapshotIndex, Ii as JsonNode, Il as TransferSourceInput, Io as PointEntry, Ir as EditorTransactionEffectsApi, Is as SchemaElementPropertyDefinition, It as EditorMarks, Iu as transfer, J as EditorCanonicalUpdateTag, Ja as PathLevelsOptions, Ji as NamedEditorSchemaIdentity, Jl as authoredVeto, Jn as EditorSchemaValidationCode, Jo as PropertyValidation, Jr as EditorTransactionTopLevelRange, Jt as EditorPreviousOptions, K as EditorCan, Ka as PathApi, Ki as MaximizeMode, Kl as WithNodeTarget, Kn as EditorSchemaStructureProperty, Ko as PropertySetOptions, Kr as EditorTransactionTagsApi, Ks as SchemaGroupOptions, Kt as EditorNodesReadOptions, L as DescendantIn, La as NodeTextsOptions, Lc as SnapshotInput, Li as LeafEdge, Ll as TransferTarget, Ln as EditorSchemaProperty, Lo as PointInterface, Lr as EditorTransactionMarksApi, Ls as SchemaElementPropertyKeys, Lt as EditorMarksOf, Lu as transferVeto, M as DerivedEditorSchemaIdentity, Ma as NodeTextRangeEntry, Mc as SharedStateFieldDescriptor, Mi as HistorySettlement, Ml as TransferRefusalReason, Mn as EditorSchemaNamedDefinition, Mr as EditorTransactionChangeHandler, Ms as SchemaElementInput, Mt as EditorJsonValue, Mu as setEditorReadOnly, N as Descendant, Na as NodeTextRangeMatch, Nc as SliceLanding, Ni as InitialValue, Nl as TransferRelation, Nn as EditorSchemaOverride, No as PluginsOf, Nr as EditorTransactionChanged, Ns as SchemaElementProperties, Nt as EditorLevelsOptions, Nu as setEditorViewing, O as DecorationAttributes, Oa as NodeSelectionMode, Oc as SelectionMode, Oi as HistoryOutcome, Ol as TransferPatchProperties, On as EditorSchemaElementOverrideInput, Or as EditorTransactionAnnotationsApi, Os as SchemaElement, Ot as EditorInstalledReadGroups, Ou as schema$1, P as DescendantEntry, Pa as NodeTextRangeQuery, Pc as SliceLandingInput, Pl as TransferSide, Pn as EditorSchemaOverrideInput, Po as Point, Pr as EditorTransactionChangesApi, Ps as SchemaElementPropertiesFor, Pt as EditorLifecycleError, Q as EditorCommandDescriptor, Qc as TextDeleteOptions, Qi as NodeApi, Ql as defineEditorSchema, Qn as EditorSchemaVocabulary, Qo as PropertyValueOptions, Qr as EditorUpdateAnnotation, Qs as SchemaPropertyCopyPolicy, Qt as EditorReadDescriptor, R as DescendantOf, Ra as NodeTypeSelector, Rc as Span, Ri as LeafPosition, Rl as TransferVeto, Rn as EditorSchemaPropertyOverride, Ro as PropertyBooleanDescriptor, Rr as EditorTransactionNodesApi, Rs as SchemaElementPropertyOptions, Rt as EditorNextOptions, Ru as txLocate, S as CompatibleEditorCommand, Sa as NodeNodesOptions, Sc as SchemaValueFromPlugins, Si as ElementInterface, Sl as TransferInput, Sn as EditorSchemaDeclaration, So as PluginReadFactory, Sr as EditorTextChangeContext, Ss as SchemaContentRootInput, St as EditorEffectType, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tc as SelectionAssociation, Ti as ElementOrTextIn, Tl as TransferLandingTarget, Tn as EditorSchemaDerivedDefinition, To as PluginReconfigureOptions, Tr as EditorToggleMarkOptions, Ts as SchemaContentRootStructure, Tt as EditorFragmentReadOptions, Tu as property, U as EditorBlockOptions, Ua as NodeWriteVetoInput, Ui as MarkKeysOf, Ul as TxOnlyMethod, Un as EditorSchemaRepairCode, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Va as NodeWrapNodesOptions, Vc as StateFieldInitial, Vi as LocationApi, Vl as TxDeclaredMethod, Vn as EditorSchemaPropertyReadOptions, Vo as PropertyJsonDescriptor, Vr as EditorTransactionRemoved, Vs as SchemaElementStructure, Vt as EditorNodeChangeKind, W as EditorBlockToggleOptions, Wa as Path, Wi as MarksIn, Wl as Value, Wn as EditorSchemaSource, Wo as PropertyOptionsOf, Wr as EditorTransactionSliceApi, Ws as SchemaGroup, Wt as EditorNodeUnsetOptions, X as EditorCommandAroundHandler, Xa as PersistedSelection, Xc as Text, Xi as Node, Xl as createEditorView, Xn as EditorSchemaValidationError, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Xs as SchemaPluginsOf, Xt as EditorReadAroundHandler, Y as EditorCommand, Ya as PersistedDocument, Yi as NamedRootKey, Yn as EditorSchemaValidationDiagnostic, Yo as PropertyValueDescriptor, Yr as EditorTransactionValueApi, Ys as SchemaPlugin, Yt as EditorRead, Z as EditorCommandContinuation, Za as PlacedTarget, Zc as TextApi, Zi as NodeAncestorsOptions, Zl as defineCommand$1, Zn as EditorSchemaValidationPropertyContext, Zo as PropertyValueOf, Zr as EditorUpdate, Zs as SchemaProperty, Zt as EditorReadContext, _ as BlockDuplicateOptions, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _i as ElementApi, _l as TransferAdoptInput, _o as PluginMigrationContext, _r as EditorStateUniqueApi, _s as SchemaContentInput, _t as EditorDocumentValue, a as AncestorOf, aa as NodeEntryIn, ac as SchemaPropertyLandingPolicy, ai as EditorUpdateTagInput, al as TextInsertFragmentOptions, an as EditorReplaceChildrenOptions, ao as PluginCleanupContext, ar as EditorSnapshot, as as RangeMode, at as EditorCommitChangeKind, b as BooleanMarksOf, ba as NodeMoveNodesOptions, bc as SchemaTypesTarget, bi as ElementIdTarget, bl as TransferDiagnostic, bo as PluginPublicationError, br as EditorStateViewApi, bs as SchemaContentRoot, bt as EditorEffectHistoryReplayContext, c as AnchorDeletionPolicy, ca as NodeHasPropsOptions, cc as SchemaPropertySplitPolicy, cl as TextMutationMethods, cn as EditorRootOwner, co as PluginContribution, cr as EditorStateMarksApi, cs as ReadElement, ct as EditorCommitHandler, cu as editorCommands, da as NodeInsertSplitOptions, dc as SchemaRootNames, di as EditorValuePersistence, dl as TextSelection, dn as EditorSchemaContent, dr as EditorStateRangesApi, ds as ReadonlyAnchor, dt as EditorCoreStateView, ea as NodeChildrenOptions, ec as SchemaPropertyExclusiveGroup, ei as EditorUpdateMethods, el as TextEntry, en as EditorReadMethodRecord, eo as PluginApiFactory, er as EditorSelectionBlockOptions, es as RangeAnchorAssociation, et as EditorCommandHandler, eu as definePluginCompartment, f as AuthoredDocumentProjection, fa as NodeInterface, fc as SchemaTarget, fl as TextTarget, fn as EditorSchemaContentRoot, fr as EditorStateRuntimeApi, fs as RootKey, ft as EditorCoreUpdateMethods, g as AuthoredVeto, ga as NodeLiftNodesOptions, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, gr as EditorStateTextApi, gs as SchemaContentDefault, gt as EditorDocumentRecords, h as AuthoredTouch, ha as NodeLevelsOptions, hc as SchemaTextProperties, hi as EditorViewStateDependency, hl as TopLevelRuntimeRange, ho as PluginInput, hr as EditorStateSliceApi, hs as SchemaContent, i as AncestorIn, ia as NodeEntry, ic as SchemaPropertyKey, ii as EditorUpdateTag, il as TextIn, in as EditorReadResult, io as PluginCapabilities, ir as EditorSliceReadOptions, is as RangeInterface, it as EditorCommit, ja as NodeTarget, jc as SelectionSetPointOptions, ji as HistoryResult, jl as TransferRead, jn as EditorSchemaIdentity, jo as PluginUpdateFactoryContext, jr as EditorTransactionChangeContext, js as SchemaElementHandle, jt as EditorJsonObject, k as DecorationRefresh, ka as NodeSetNodesOptions, kc as SelectionMoveOptions, ki as HistoryRecordOptions, kl as TransferPayload, kn as EditorSchemaElementStructure, ko as PluginTypes, kr as EditorTransactionBlocksApi, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, ku as screenReaderAnnouncementEffect, l as AnchorOptions, la as NodeIn, lc as SchemaPropertyTypeChangePolicy, li as EditorUpdateValueFromPlugin, ll as TextOf, ln as EditorRuntimeCarrier, lo as PluginContributionInput, lr as EditorStateNodesApi, ls as ReadNode, lt as EditorCommitListener, lu as editorReads, ma as NodeKey, mc as SchemaTextBlockOptions, mi as EditorViewOptions, ml as TextUnitAdjustment, mr as EditorStateSelectionApi, ms as SchemaBuiltInGroupName, mt as EditorDirectCommandDispatch, n as AncestorEntry, na as NodeDuplicateOptions, nc as SchemaPropertyHandleValue, ni as EditorUpdatePolicyFor, nl as TextEntryOf, nn as EditorReadMethods, no as PluginCandidateContext, nr as EditorSelectorDependency, ns as RangeDirection, nt as EditorCommandPlace, nu as defineStateField, o as Anchor, oa as NodeEntryOf, oc as SchemaPropertyReferences, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, on as EditorReplaceNodeOptions, oo as PluginCompartment, or as EditorStateField, os as ReadAncestor, ot as EditorCommitChanged, p as AuthoredProjectionDiagnostic, pa as NodeIsNodeOptions, pc as SchemaText, pi as EditorView, pl as TextUnit, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, pt as EditorCoreUpdateTransaction, pu as getPublicEditorRuntimeOwner, q as EditorCanTransaction, qa as PathInterface, qi as MoveUnit, qn as EditorSchemaUnknownPolicy, qo as PropertyStringDescriptor, qr as EditorTransactionTextApi, qs as SchemaKeyPrefix, qt as EditorParentOptions, r as AncestorEntryOf, ra as NodeElementsOptions, rc as SchemaPropertyIds, ri as EditorUpdateResult, rl as TextEqualsOptions, rn as EditorReadRegistration, ro as PluginCandidateEditor, rr as EditorSliceDeletionOptions, rs as RangeEdgesOptions, rt as EditorCommandResult, ru as defineUpdateAnnotation, s as AnchorAssociation, sa as NodeFindTextRangesOptions, sc as SchemaPropertyRole, sl as TextInterface, sn as EditorRootEntry, so as PluginCompartmentValue, sr as EditorStateFragmentApi, ss as ReadDescendant, st as EditorCommitContext, su as documentReplacement, t as Ancestor, ta as NodeDescendantsOptions, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tl as TextEntryIn, tn as EditorReadMethodTree, to as PluginApiFactoryContext, tr as EditorSelectorDependencies, ts as RangeApi, tt as EditorCommandInput, tu as definePluginPoint, u as AnchorValue, ua as NodeInsertNodesOptions, uc as SchemaRecordSet, ui as EditorValueFromPlugins, ul as TextRemoveTextOptions, un as EditorRuntimeOwnerOf, uo as PluginDefinition, ur as EditorStatePointsApi, us as ReadValue, ut as EditorCommitRuntimeChangeKind, va as NodeMatchPredicate, vc as SchemaTextPropertyKeys, vi as ElementEntry, vl as TransferApi, vo as PluginPoint, vr as EditorStateValueApi, vs as SchemaContentOptions, vt as EditorEffect, wa as NodeProps, wc as SelectionApi, wi as ElementOf, wl as TransferLandingInput, wn as EditorSchemaDelta, wo as PluginReadMiddlewareFactory, wr as EditorToggleBlockOptions, ws as SchemaContentRootSlotsFor, wt as EditorElementEntry, x as ChildOf, xa as NodeMutationMethods, xc as SchemaValue, xi as ElementIn, xl as TransferEdge, xn as EditorSchemaContribution, xo as PluginReadContext, xs as SchemaContentRootContribution, xt as EditorEffectHistoryReplayResult, xu as locateAt, y as BooleanMarkKeysOf, ya as NodeMergeNodesOptions, yc as SchemaTextPropertyOptions, yi as ElementEntryOf, yl as TransferCheck, yr as EditorStateView, ys as SchemaContentPrefixSlot, yt as EditorEffectHistoryKind, yu as isEditor, z as DocumentChange, za as NodeUnsetNodesOptions, zc as StateFieldDescriptor, zi as LocalStateFieldDescriptor, zl as TransferVetoInput, zn as EditorSchemaPropertyOverrideInput, zo as PropertyBuilderApi, zr as EditorTransactionPluginsApi, zs as SchemaElementPropertyValue, zt as EditorNodeChangeContext, zu as txOnly } from "./tx-only-CWT-IURY-BqIFhy44.js";
|
|
2
|
-
import { h as EditorApplicationSchema } from "./htmlTypes-
|
|
3
|
-
import { $ as HtmlWrapperSpec, $a as InferRead, $i as BaseFormattingPlugin, $n as definePlugin, $r as SchemaPropertyDescriptorMap, $t as BlockFenceInputRuleConfig, Aa as HorizontalRuleRules, Ai as linkUrlValidation, An as AutoScrollApi, Ao as StructuralRuleState, Ar as DocxEncodedFragment, At as isUrl, Ba as EditOnlyConfig, Bi as CodeBlockElement, Bn as DebugApi, Br as DocxImportTableRow, Bt as BaseParagraphDefinition, C as ConfiguredBasePlugin, Ca as HeadingPluginState, Ci as ListLevels, Cn as MatchBlockStartOptions, Co as PluginSelectors, Ct as PluginTransaction, Da as BaseHorizontalRulePlugin, Di as LinkElement, Dn as TextSubstitutionMatch, Do as SelectionRules, Dr as DocxBorder, E as Decorate, Ea as BaseBlockquotePlugin, Ei as BaseLinkPlugin, En as TextSubstitutionInputRuleConfig, Eo as RuleDecision, Er as DocxBlockProps, Fa as BasePluginDefinition, Fn as DomApi, Fo as UnknownObject, Fr as DocxImportListInfo, Ft as getFragmentProp, Ga as InferDependencies, Gi as HighlightResult, Gn as EditorError, Gr as DocxNodeMappingInput, Gt as createBlockFenceInputRule, H as TransformOptions, Ha as GetInjectNodePropsReturnType, Hi as CodeHighlightLowlight, Hn as DebugErrorType, Hr as DocxMarkDecodeContext, Ht as InputRuleVeto, Ii as CodeBlockRules, In as DomPluginState, Io as Nullable, Ir as DocxImportListLevel, It as IS_APPLE, J as HtmlElementPatch, Ja as InferOwnApi, Ji as BaseFontColorPlugin, Jn as TransferPlugin, Jr as DocxRunMarks, Jt as matchBlockStart, K as HtmlAttributes, Ka as InferEnabled, Ki as Alignment, Kn as LogLevel, Kr as DocxPropertyDecodeContext, Kt as createMarkInputRule, L as PartialBasePlugin, La as BreakRules, Li as BaseCodeBlockPlugin, Ln as DomPluginUpdate, Lr as DocxImportNode, Mi as IndentChangeOptions, Mn as AutoScrollChangesMap, Mr as DocxImportBlock, Mt as getInjectMatch, Ni as IndentDefinition, Nn as AutoScrollOptions, Nr as DocxImportBlockProps, Nt as FragmentPropMode, O as EditorShortcut, Oa as BlockquoteRules, Oi as LinkRules, On as TextSubstitutionPattern, Oo as StructuralRuleContext, Or as DocxDecodeContext, Ot as AffinityDefinition, Pa as BaseInjectProps, Pi as IndentPluginState, Pn as AutoScrollUpdate, Pr as DocxImportInline, Pt as GetFragmentPropOptions, Q as HtmlPrepareDiagnosticInput, Qi as BaseTextAlignPlugin, Qn as nanoid, Qr as PluginFormatNode, Qt as BaseInputRule, R as PluginShortcutInput, Ra as DefinitionOf, Ri as BaseCodeHighlightPlugin, Rn as ScrollIntoViewTarget, Rr as DocxImportNodeKind, Sa as HeadingLevel, Si as ListLevel, Sn as MatchBlockFenceOptions, So as PluginSelectorReturn, Sr as ElementContentRootSlot, St as PluginState, T as DeclaredPluginShortcutInput, Ta as ToggleHeadingOptions, Tn as SelectionInputRuleContext, Tr as DocxBlock, Ua as InferApi, Ui as CodeHighlightPluginState, Un as DebugPlugin, Ur as DocxMarkEncodeContext, Ut as inputRuleVeto, Va as GetInjectNodePropsOptions, Vi as CodeHighlightDefinition, Vn as DebugDefinition, Vr as DocxInline, Vt as BaseParagraphPlugin, Wa as InferConflicts, Wi as HighlightNode, Wn as DebugPluginState, Wr as DocxNodeMapping, Wt as defineInputRule, X as HtmlMatcher, Xa as InferOwnUpdate, Xi as BaseFontSizePlugin, Xn as HistoryPlugin, Xr as DocxTableRow, Xt as HtmlPlugin, Y as HtmlMatchValue, Ya as InferOwnRead, Yi as BaseFontFamilyPlugin, Yn as HistoryDefinition, Yr as DocxTableCell, Yt as matchDelimitedInline, Z as HtmlNodeSpec, Za as InferPluginStoreState, Zi as BaseLineHeightPlugin, Zn as HistoryPluginState, Zr as ElementWith, _ as BasePluginExtendInput, _a as ScriptRules, _i as ListStyle, _n as InsertTextInputRule, _o as PluginSchemaMark, _r as MarkdownNodeMapping, a as PLUGINS, aa as BaseCodePlugin, ai as PluginFormatRegistry, an as InputRuleEditor, b as BasePluginOverride, ba as UnderlineRules, bi as OrderedListRules, bn as MarkInputRuleConfig, bo as PluginSelectorArgs, br as MarkdownTagAttributeView, ca as BaseKbdPlugin, ci as PlainTextDocumentOptions, cn as InputRulesConfig, co as PluginBaseContext, cr as PlainTextEncodeContext, ct as BlockInsertOptions, da as BaseUnderlinePlugin, di as serializePlainText, dn as InsertBreakInputRuleReadContext, dr as MarkdownDecodeContext, ea as CapturedFormat, ei as SchemaPropertySource, en as BlockFenceInputRuleMatch, eo as InferSelectors, et as CreateEditorOptions, fa as BoldRules, fi as BaseListPlugin, fn as InsertDataFollowUpContext, fo as PluginReference, fr as MarkdownEncodeContext, g as BasePluginDefinitionInput, ga as MarkComboRules, gi as ListSetOptions, gn as InsertDataInputRuleReadContext, go as PluginSchemaElement, gr as MarkdownNodeKind, h as BasePluginContext, ha as ItalicRules, hi as ListElement, hn as InsertDataInputRuleContext, ho as PluginSchemaDeclaration, hr as MarkdownMarks, i as SingleBlockPlugin, ia as BaseBoldPlugin, ii as PluginFormatModelView, in as InputRule, io as NodeComponent, ji as BaseIndentPlugin, jn as AutoScrollChangeKind, jo as WithAnyName, jr as DocxFormatDiagnosticInput, jt as isDefined, k as InjectNodeProps, ka as HorizontalRuleMarkdownVariant, ki as getLinkHref, kn as TransformInputRuleContext, ko as StructuralRuleEditor, kr as DocxEncodeContext, kt as AffinityPlugin, la as BaseScriptPlugin, li as PlainTextEditorOptions, ln as InsertBreakInputRule, lr as PlainTextNodeMapping, lt as BlockUpsertOptions, m as BasePluginConfiguration, ma as HighlightRules, mi as ListDefinition, mn as InsertDataInputRule, mo as PluginSchemaContext, mr as MarkdownMarkWrapper, n as TrailingBlockPluginState, na as FormattingContribution, ni as HtmlMappingDiagnosticInput, nn as DefinedInsertDataFollowUpInputRule, no as InferUpdate, o as Editor, oa as BaseHighlightPlugin, oi as PluginFormatSchemaView, on as InputRuleInsertTextOptions, ot as createEditor, p as BasePlugin, pa as CodeRules, pi as BulletedListRules, pn as InsertDataFollowUpInputRule, po as PluginSchema, pr as MarkdownMarkWrapContext, q as HtmlContentToken, qa as InferName, qi as BaseFontBackgroundColorPlugin, qn as TransferDefinition, qr as DocxPropertyEncodeContext, qt as createTextSubstitutionInputRule, r as SingleLinePlugin, ra as formatting, ri as PluginFormatContext, rn as DelimitedInlineInputRuleMatch, ro as MergeRules, s as EditorReference, sa as BaseItalicPlugin, si as PlainTextDiagnostic, sn as InputRuleTarget, so as NormalizeRules, st as BasePluginInput, t as TrailingBlockPlugin, ta as FormattingBlockEntry, ti as TextWith, tn as BlockStartInputRuleMatch, to as InferTargetPlugins, ua as BaseStrikethroughPlugin, ui as PlainTextSerializeResult, un as InsertBreakInputRuleContext, uo as PluginDependency, ur as PlainTextNodeMappingInput, v as BasePluginImplementationContext, va as ScriptValue, vi as ListToggleOptions, vn as InsertTextInputRuleContext, vo as PluginSchemaReferences, vr as MarkdownNodeMappingInput, vt as NodeInsertOptions, wa as HeadingRules, wn as MatchDelimitedInlineOptions, wo as PluginStore, wr as HandlerReturnType, wt as PluginUpdate, x as BasePluginPortal, xa as BaseHeadingPlugin, xi as TaskListRules, xn as MarkInputRuleMatch, xo as PluginSelectorMethods, xr as MarkdownTagNode, xt as PluginReadState, y as BasePluginOn, ya as StrikethroughRules, yi as ListType, yn as InsertTextInputRuleReadContext, yo as PluginSelector, yr as MarkdownRefusal, za as DeleteRules, zi as CodeBlockDefinition, zn as ScrollMode, zr as DocxImportTableCell } from "./core-
|
|
1
|
+
import { $ as EditorCommandDispatch, $a as PluginActivationContext, $c as TextDirection, $i as NodeChildEntry, $l as defineEffect, $n as EditorSelection, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, $t as EditorReadInput, A as DecorationSource, Aa as NodeSplitNodesOptions, Ac as SelectionMutationMethods, Ai as HistoryRecordResult, An as EditorSchemaGetProperty, Ao as PluginUpdateFactory, Ar as EditorTransactionBreakApi, As as SchemaElementFor, At as EditorIsEditorOptions, Au as setDebugValueScrubber, Ba as NodeUnwrapNodesOptions, Bc as StateFieldHistoryPolicy, Bi as Location, Bl as TransferWrap, Bn as EditorSchemaPropertyQuery, Bo as PropertyEnumDescriptor, Br as EditorTransactionRecordsApi, Bs as SchemaElementSlicePolicy, Bt as EditorNodeChangeHandler, Bu as txSelection, Ca as NodeOf, Cc as Selection, Ci as ElementIsElementOptions, Cl as TransferIntent, Cn as EditorSchemaDefinition, Co as PluginReadFactoryContext, Cr as EditorTextChangeHandler, Cs as SchemaContentRootOwnership, Ct as EditorElementBehavior, Cu as nodeWriteVeto, D as Decoration, Da as NodeSelection, Dc as SelectionEdge, Di as HistoryApi, Dl as TransferPatch, Dn as EditorSchemaElementOverride, Do as PluginTypeProvider, Dr as EditorTransactionAnchorApi, Ds as SchemaDescendant, Dt as EditorInstalledApiGroups, E as DebugValueScrubber, Ea as NodeReplaceChildrenOptions, Ec as SelectionCollapseOptions, Ei as ElementOrTextOf, El as TransferOutcome, En as EditorSchemaElement, Er as EditorTransactionAnchor, Es as SchemaContentRule, F as DescendantEntryIn, Fa as NodeTextRangeRoot, Fc as SliceLandingTarget, Fi as JsonEditorValue, Fl as TransferSideInput, Fn as EditorSchemaPlugin, Fo as PointApi, Fr as EditorTransactionDocumentChangeKind, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Fu as target, G as EditorBreakExitOptions, Ga as PathAncestorsOptions, Gi as MarksOf, Gl as ValueOf, Go as PropertySetDescriptor, Gr as EditorTransactionSpecBuilder, Gs as SchemaGroupNames, Gt as EditorNodesOptions, H as EditorAboveOptions, Ha as NodeWriteVeto, Hc as StateFieldValueInput, Hi as LocationInterface, Hl as TxMethodDeclarations, Hn as EditorSchemaReadProperty, Ho as PropertyJsonOptions, Hr as EditorTransactionRootsApi, Hs as SchemaElementTarget, Ht as EditorNodeGetOptions, I as DescendantEntryOf, Ia as NodeTextRangeView, Ic as SnapshotIndex, Ii as JsonNode, Il as TransferSourceInput, Io as PointEntry, Ir as EditorTransactionEffectsApi, Is as SchemaElementPropertyDefinition, It as EditorMarks, Iu as transfer, J as EditorCanonicalUpdateTag, Ja as PathLevelsOptions, Ji as NamedEditorSchemaIdentity, Jl as authoredVeto, Jn as EditorSchemaValidationCode, Jo as PropertyValidation, Jr as EditorTransactionTopLevelRange, Jt as EditorPreviousOptions, K as EditorCan, Ka as PathApi, Ki as MaximizeMode, Kl as WithNodeTarget, Kn as EditorSchemaStructureProperty, Ko as PropertySetOptions, Kr as EditorTransactionTagsApi, Ks as SchemaGroupOptions, Kt as EditorNodesReadOptions, L as DescendantIn, La as NodeTextsOptions, Lc as SnapshotInput, Li as LeafEdge, Ll as TransferTarget, Ln as EditorSchemaProperty, Lo as PointInterface, Lr as EditorTransactionMarksApi, Ls as SchemaElementPropertyKeys, Lt as EditorMarksOf, Lu as transferVeto, M as DerivedEditorSchemaIdentity, Ma as NodeTextRangeEntry, Mc as SharedStateFieldDescriptor, Mi as HistorySettlement, Ml as TransferRefusalReason, Mn as EditorSchemaNamedDefinition, Mr as EditorTransactionChangeHandler, Ms as SchemaElementInput, Mt as EditorJsonValue, Mu as setEditorReadOnly, N as Descendant, Na as NodeTextRangeMatch, Nc as SliceLanding, Ni as InitialValue, Nl as TransferRelation, Nn as EditorSchemaOverride, No as PluginsOf, Nr as EditorTransactionChanged, Ns as SchemaElementProperties, Nt as EditorLevelsOptions, Nu as setEditorViewing, O as DecorationAttributes, Oa as NodeSelectionMode, Oc as SelectionMode, Oi as HistoryOutcome, Ol as TransferPatchProperties, On as EditorSchemaElementOverrideInput, Or as EditorTransactionAnnotationsApi, Os as SchemaElement, Ot as EditorInstalledReadGroups, Ou as schema$1, P as DescendantEntry, Pa as NodeTextRangeQuery, Pc as SliceLandingInput, Pl as TransferSide, Pn as EditorSchemaOverrideInput, Po as Point, Pr as EditorTransactionChangesApi, Ps as SchemaElementPropertiesFor, Pt as EditorLifecycleError, Q as EditorCommandDescriptor, Qc as TextDeleteOptions, Qi as NodeApi, Ql as defineEditorSchema, Qn as EditorSchemaVocabulary, Qo as PropertyValueOptions, Qr as EditorUpdateAnnotation, Qs as SchemaPropertyCopyPolicy, Qt as EditorReadDescriptor, R as DescendantOf, Ra as NodeTypeSelector, Rc as Span, Ri as LeafPosition, Rl as TransferVeto, Rn as EditorSchemaPropertyOverride, Ro as PropertyBooleanDescriptor, Rr as EditorTransactionNodesApi, Rs as SchemaElementPropertyOptions, Rt as EditorNextOptions, Ru as txLocate, S as CompatibleEditorCommand, Sa as NodeNodesOptions, Sc as SchemaValueFromPlugins, Si as ElementInterface, Sl as TransferInput, Sn as EditorSchemaDeclaration, So as PluginReadFactory, Sr as EditorTextChangeContext, Ss as SchemaContentRootInput, St as EditorEffectType, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tc as SelectionAssociation, Ti as ElementOrTextIn, Tl as TransferLandingTarget, Tn as EditorSchemaDerivedDefinition, To as PluginReconfigureOptions, Tr as EditorToggleMarkOptions, Ts as SchemaContentRootStructure, Tt as EditorFragmentReadOptions, Tu as property, U as EditorBlockOptions, Ua as NodeWriteVetoInput, Ui as MarkKeysOf, Ul as TxOnlyMethod, Un as EditorSchemaRepairCode, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Va as NodeWrapNodesOptions, Vc as StateFieldInitial, Vi as LocationApi, Vl as TxDeclaredMethod, Vn as EditorSchemaPropertyReadOptions, Vo as PropertyJsonDescriptor, Vr as EditorTransactionRemoved, Vs as SchemaElementStructure, Vt as EditorNodeChangeKind, W as EditorBlockToggleOptions, Wa as Path, Wi as MarksIn, Wl as Value, Wn as EditorSchemaSource, Wo as PropertyOptionsOf, Wr as EditorTransactionSliceApi, Ws as SchemaGroup, Wt as EditorNodeUnsetOptions, X as EditorCommandAroundHandler, Xa as PersistedSelection, Xc as Text, Xi as Node, Xl as createEditorView, Xn as EditorSchemaValidationError, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Xs as SchemaPluginsOf, Xt as EditorReadAroundHandler, Y as EditorCommand, Ya as PersistedDocument, Yi as NamedRootKey, Yn as EditorSchemaValidationDiagnostic, Yo as PropertyValueDescriptor, Yr as EditorTransactionValueApi, Ys as SchemaPlugin, Yt as EditorRead, Z as EditorCommandContinuation, Za as PlacedTarget, Zc as TextApi, Zi as NodeAncestorsOptions, Zl as defineCommand$1, Zn as EditorSchemaValidationPropertyContext, Zo as PropertyValueOf, Zr as EditorUpdate, Zs as SchemaProperty, Zt as EditorReadContext, _ as BlockDuplicateOptions, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _i as ElementApi, _l as TransferAdoptInput, _o as PluginMigrationContext, _r as EditorStateUniqueApi, _s as SchemaContentInput, _t as EditorDocumentValue, a as AncestorOf, aa as NodeEntryIn, ac as SchemaPropertyLandingPolicy, ai as EditorUpdateTagInput, al as TextInsertFragmentOptions, an as EditorReplaceChildrenOptions, ao as PluginCleanupContext, ar as EditorSnapshot, as as RangeMode, at as EditorCommitChangeKind, b as BooleanMarksOf, ba as NodeMoveNodesOptions, bc as SchemaTypesTarget, bi as ElementIdTarget, bl as TransferDiagnostic, bo as PluginPublicationError, br as EditorStateViewApi, bs as SchemaContentRoot, bt as EditorEffectHistoryReplayContext, c as AnchorDeletionPolicy, ca as NodeHasPropsOptions, cc as SchemaPropertySplitPolicy, cl as TextMutationMethods, cn as EditorRootOwner, co as PluginContribution, cr as EditorStateMarksApi, cs as ReadElement, ct as EditorCommitHandler, cu as editorCommands, da as NodeInsertSplitOptions, dc as SchemaRootNames, di as EditorValuePersistence, dl as TextSelection, dn as EditorSchemaContent, dr as EditorStateRangesApi, ds as ReadonlyAnchor, dt as EditorCoreStateView, ea as NodeChildrenOptions, ec as SchemaPropertyExclusiveGroup, ei as EditorUpdateMethods, el as TextEntry, en as EditorReadMethodRecord, eo as PluginApiFactory, er as EditorSelectionBlockOptions, es as RangeAnchorAssociation, et as EditorCommandHandler, eu as definePluginCompartment, f as AuthoredDocumentProjection, fa as NodeInterface, fc as SchemaTarget, fl as TextTarget, fn as EditorSchemaContentRoot, fr as EditorStateRuntimeApi, fs as RootKey, ft as EditorCoreUpdateMethods, g as AuthoredVeto, ga as NodeLiftNodesOptions, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, gr as EditorStateTextApi, gs as SchemaContentDefault, gt as EditorDocumentRecords, h as AuthoredTouch, ha as NodeLevelsOptions, hc as SchemaTextProperties, hi as EditorViewStateDependency, hl as TopLevelRuntimeRange, ho as PluginInput, hr as EditorStateSliceApi, hs as SchemaContent, i as AncestorIn, ia as NodeEntry, ic as SchemaPropertyKey, ii as EditorUpdateTag, il as TextIn, in as EditorReadResult, io as PluginCapabilities, ir as EditorSliceReadOptions, is as RangeInterface, it as EditorCommit, ja as NodeTarget, jc as SelectionSetPointOptions, ji as HistoryResult, jl as TransferRead, jn as EditorSchemaIdentity, jo as PluginUpdateFactoryContext, jr as EditorTransactionChangeContext, js as SchemaElementHandle, jt as EditorJsonObject, k as DecorationRefresh, ka as NodeSetNodesOptions, kc as SelectionMoveOptions, ki as HistoryRecordOptions, kl as TransferPayload, kn as EditorSchemaElementStructure, ko as PluginTypes, kr as EditorTransactionBlocksApi, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, ku as screenReaderAnnouncementEffect, l as AnchorOptions, la as NodeIn, lc as SchemaPropertyTypeChangePolicy, li as EditorUpdateValueFromPlugin, ll as TextOf, ln as EditorRuntimeCarrier, lo as PluginContributionInput, lr as EditorStateNodesApi, ls as ReadNode, lt as EditorCommitListener, lu as editorReads, ma as NodeKey, mc as SchemaTextBlockOptions, mi as EditorViewOptions, ml as TextUnitAdjustment, mr as EditorStateSelectionApi, ms as SchemaBuiltInGroupName, mt as EditorDirectCommandDispatch, n as AncestorEntry, na as NodeDuplicateOptions, nc as SchemaPropertyHandleValue, ni as EditorUpdatePolicyFor, nl as TextEntryOf, nn as EditorReadMethods, no as PluginCandidateContext, nr as EditorSelectorDependency, ns as RangeDirection, nt as EditorCommandPlace, nu as defineStateField, o as Anchor, oa as NodeEntryOf, oc as SchemaPropertyReferences, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, on as EditorReplaceNodeOptions, oo as PluginCompartment, or as EditorStateField, os as ReadAncestor, ot as EditorCommitChanged, p as AuthoredProjectionDiagnostic, pa as NodeIsNodeOptions, pc as SchemaText, pi as EditorView, pl as TextUnit, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, pt as EditorCoreUpdateTransaction, pu as getPublicEditorRuntimeOwner, q as EditorCanTransaction, qa as PathInterface, qi as MoveUnit, qn as EditorSchemaUnknownPolicy, qo as PropertyStringDescriptor, qr as EditorTransactionTextApi, qs as SchemaKeyPrefix, qt as EditorParentOptions, r as AncestorEntryOf, ra as NodeElementsOptions, rc as SchemaPropertyIds, ri as EditorUpdateResult, rl as TextEqualsOptions, rn as EditorReadRegistration, ro as PluginCandidateEditor, rr as EditorSliceDeletionOptions, rs as RangeEdgesOptions, rt as EditorCommandResult, ru as defineUpdateAnnotation, s as AnchorAssociation, sa as NodeFindTextRangesOptions, sc as SchemaPropertyRole, sl as TextInterface, sn as EditorRootEntry, so as PluginCompartmentValue, sr as EditorStateFragmentApi, ss as ReadDescendant, st as EditorCommitContext, su as documentReplacement, t as Ancestor, ta as NodeDescendantsOptions, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tl as TextEntryIn, tn as EditorReadMethodTree, to as PluginApiFactoryContext, tr as EditorSelectorDependencies, ts as RangeApi, tt as EditorCommandInput, tu as definePluginPoint, u as AnchorValue, ua as NodeInsertNodesOptions, uc as SchemaRecordSet, ui as EditorValueFromPlugins, ul as TextRemoveTextOptions, un as EditorRuntimeOwnerOf, uo as PluginDefinition, ur as EditorStatePointsApi, us as ReadValue, ut as EditorCommitRuntimeChangeKind, va as NodeMatchPredicate, vc as SchemaTextPropertyKeys, vi as ElementEntry, vl as TransferApi, vo as PluginPoint, vr as EditorStateValueApi, vs as SchemaContentOptions, vt as EditorEffect, wa as NodeProps, wc as SelectionApi, wi as ElementOf, wl as TransferLandingInput, wn as EditorSchemaDelta, wo as PluginReadMiddlewareFactory, wr as EditorToggleBlockOptions, ws as SchemaContentRootSlotsFor, wt as EditorElementEntry, x as ChildOf, xa as NodeMutationMethods, xc as SchemaValue, xi as ElementIn, xl as TransferEdge, xn as EditorSchemaContribution, xo as PluginReadContext, xs as SchemaContentRootContribution, xt as EditorEffectHistoryReplayResult, xu as locateAt, y as BooleanMarkKeysOf, ya as NodeMergeNodesOptions, yc as SchemaTextPropertyOptions, yi as ElementEntryOf, yl as TransferCheck, yr as EditorStateView, ys as SchemaContentPrefixSlot, yt as EditorEffectHistoryKind, yu as isEditor, z as DocumentChange, za as NodeUnsetNodesOptions, zc as StateFieldDescriptor, zi as LocalStateFieldDescriptor, zl as TransferVetoInput, zn as EditorSchemaPropertyOverrideInput, zo as PropertyBuilderApi, zr as EditorTransactionPluginsApi, zs as SchemaElementPropertyValue, zt as EditorNodeChangeContext, zu as txOnly } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { $ as HtmlWrapperSpec, $a as InferRead, $i as BaseFormattingPlugin, $n as definePlugin, $r as SchemaPropertyDescriptorMap, $t as BlockFenceInputRuleConfig, Aa as HorizontalRuleRules, Ai as linkUrlValidation, An as AutoScrollApi, Ao as StructuralRuleState, Ar as DocxEncodedFragment, At as isUrl, Ba as EditOnlyConfig, Bi as CodeBlockElement, Bn as DebugApi, Br as DocxImportTableRow, Bt as BaseParagraphDefinition, C as ConfiguredBasePlugin, Ca as HeadingPluginState, Ci as ListLevels, Cn as MatchBlockStartOptions, Co as PluginSelectors, Ct as PluginTransaction, Da as BaseHorizontalRulePlugin, Di as LinkElement, Dn as TextSubstitutionMatch, Do as SelectionRules, Dr as DocxBorder, E as Decorate, Ea as BaseBlockquotePlugin, Ei as BaseLinkPlugin, En as TextSubstitutionInputRuleConfig, Eo as RuleDecision, Er as DocxBlockProps, Fa as BasePluginDefinition, Fn as DomApi, Fo as UnknownObject, Fr as DocxImportListInfo, Ft as getFragmentProp, Ga as InferDependencies, Gi as HighlightResult, Gn as EditorError, Gr as DocxNodeMappingInput, Gt as createBlockFenceInputRule, H as TransformOptions, Ha as GetInjectNodePropsReturnType, Hi as CodeHighlightLowlight, Hn as DebugErrorType, Hr as DocxMarkDecodeContext, Ht as InputRuleVeto, Ii as CodeBlockRules, In as DomPluginState, Io as Nullable, Ir as DocxImportListLevel, It as IS_APPLE, J as HtmlElementPatch, Ja as InferOwnApi, Ji as BaseFontColorPlugin, Jn as TransferPlugin, Jr as DocxRunMarks, Jt as matchBlockStart, K as HtmlAttributes, Ka as InferEnabled, Ki as Alignment, Kn as LogLevel, Kr as DocxPropertyDecodeContext, Kt as createMarkInputRule, L as PartialBasePlugin, La as BreakRules, Li as BaseCodeBlockPlugin, Ln as DomPluginUpdate, Lr as DocxImportNode, Mi as IndentChangeOptions, Mn as AutoScrollChangesMap, Mr as DocxImportBlock, Mt as getInjectMatch, Ni as IndentDefinition, Nn as AutoScrollOptions, Nr as DocxImportBlockProps, Nt as FragmentPropMode, O as EditorShortcut, Oa as BlockquoteRules, Oi as LinkRules, On as TextSubstitutionPattern, Oo as StructuralRuleContext, Or as DocxDecodeContext, Ot as AffinityDefinition, Pa as BaseInjectProps, Pi as IndentPluginState, Pn as AutoScrollUpdate, Pr as DocxImportInline, Pt as GetFragmentPropOptions, Q as HtmlPrepareDiagnosticInput, Qi as BaseTextAlignPlugin, Qn as nanoid, Qr as PluginFormatNode, Qt as BaseInputRule, R as PluginShortcutInput, Ra as DefinitionOf, Ri as BaseCodeHighlightPlugin, Rn as ScrollIntoViewTarget, Rr as DocxImportNodeKind, Sa as HeadingLevel, Si as ListLevel, Sn as MatchBlockFenceOptions, So as PluginSelectorReturn, Sr as ElementContentRootSlot, St as PluginState, T as DeclaredPluginShortcutInput, Ta as ToggleHeadingOptions, Tn as SelectionInputRuleContext, Tr as DocxBlock, Ua as InferApi, Ui as CodeHighlightPluginState, Un as DebugPlugin, Ur as DocxMarkEncodeContext, Ut as inputRuleVeto, Va as GetInjectNodePropsOptions, Vi as CodeHighlightDefinition, Vn as DebugDefinition, Vr as DocxInline, Vt as BaseParagraphPlugin, Wa as InferConflicts, Wi as HighlightNode, Wn as DebugPluginState, Wr as DocxNodeMapping, Wt as defineInputRule, X as HtmlMatcher, Xa as InferOwnUpdate, Xi as BaseFontSizePlugin, Xn as HistoryPlugin, Xr as DocxTableRow, Xt as HtmlPlugin, Y as HtmlMatchValue, Ya as InferOwnRead, Yi as BaseFontFamilyPlugin, Yn as HistoryDefinition, Yr as DocxTableCell, Yt as matchDelimitedInline, Z as HtmlNodeSpec, Za as InferPluginStoreState, Zi as BaseLineHeightPlugin, Zn as HistoryPluginState, Zr as ElementWith, _ as BasePluginExtendInput, _a as ScriptRules, _i as ListStyle, _n as InsertTextInputRule, _o as PluginSchemaMark, _r as MarkdownNodeMapping, a as PLUGINS, aa as BaseCodePlugin, ai as PluginFormatRegistry, an as InputRuleEditor, b as BasePluginOverride, ba as UnderlineRules, bi as OrderedListRules, bn as MarkInputRuleConfig, bo as PluginSelectorArgs, br as MarkdownTagAttributeView, ca as BaseKbdPlugin, ci as PlainTextDocumentOptions, cn as InputRulesConfig, co as PluginBaseContext, cr as PlainTextEncodeContext, ct as BlockInsertOptions, da as BaseUnderlinePlugin, di as serializePlainText, dn as InsertBreakInputRuleReadContext, dr as MarkdownDecodeContext, ea as CapturedFormat, ei as SchemaPropertySource, en as BlockFenceInputRuleMatch, eo as InferSelectors, et as CreateEditorOptions, fa as BoldRules, fi as BaseListPlugin, fn as InsertDataFollowUpContext, fo as PluginReference, fr as MarkdownEncodeContext, g as BasePluginDefinitionInput, ga as MarkComboRules, gi as ListSetOptions, gn as InsertDataInputRuleReadContext, go as PluginSchemaElement, gr as MarkdownNodeKind, h as BasePluginContext, ha as ItalicRules, hi as ListElement, hn as InsertDataInputRuleContext, ho as PluginSchemaDeclaration, hr as MarkdownMarks, i as SingleBlockPlugin, ia as BaseBoldPlugin, ii as PluginFormatModelView, in as InputRule, io as NodeComponent, ji as BaseIndentPlugin, jn as AutoScrollChangeKind, jo as WithAnyName, jr as DocxFormatDiagnosticInput, jt as isDefined, k as InjectNodeProps, ka as HorizontalRuleMarkdownVariant, ki as getLinkHref, kn as TransformInputRuleContext, ko as StructuralRuleEditor, kr as DocxEncodeContext, kt as AffinityPlugin, la as BaseScriptPlugin, li as PlainTextEditorOptions, ln as InsertBreakInputRule, lr as PlainTextNodeMapping, lt as BlockUpsertOptions, m as BasePluginConfiguration, ma as HighlightRules, mi as ListDefinition, mn as InsertDataInputRule, mo as PluginSchemaContext, mr as MarkdownMarkWrapper, n as TrailingBlockPluginState, na as FormattingContribution, ni as HtmlMappingDiagnosticInput, nn as DefinedInsertDataFollowUpInputRule, no as InferUpdate, o as Editor, oa as BaseHighlightPlugin, oi as PluginFormatSchemaView, on as InputRuleInsertTextOptions, ot as createEditor, p as BasePlugin, pa as CodeRules, pi as BulletedListRules, pn as InsertDataFollowUpInputRule, po as PluginSchema, pr as MarkdownMarkWrapContext, q as HtmlContentToken, qa as InferName, qi as BaseFontBackgroundColorPlugin, qn as TransferDefinition, qr as DocxPropertyEncodeContext, qt as createTextSubstitutionInputRule, r as SingleLinePlugin, ra as formatting, ri as PluginFormatContext, rn as DelimitedInlineInputRuleMatch, ro as MergeRules, s as EditorReference, sa as BaseItalicPlugin, si as PlainTextDiagnostic, sn as InputRuleTarget, so as NormalizeRules, st as BasePluginInput, t as TrailingBlockPlugin, ta as FormattingBlockEntry, ti as TextWith, tn as BlockStartInputRuleMatch, to as InferTargetPlugins, ua as BaseStrikethroughPlugin, ui as PlainTextSerializeResult, un as InsertBreakInputRuleContext, uo as PluginDependency, ur as PlainTextNodeMappingInput, v as BasePluginImplementationContext, va as ScriptValue, vi as ListToggleOptions, vn as InsertTextInputRuleContext, vo as PluginSchemaReferences, vr as MarkdownNodeMappingInput, vt as NodeInsertOptions, wa as HeadingRules, wn as MatchDelimitedInlineOptions, wo as PluginStore, wr as HandlerReturnType, wt as PluginUpdate, x as BasePluginPortal, xa as BaseHeadingPlugin, xi as TaskListRules, xn as MarkInputRuleMatch, xo as PluginSelectorMethods, xr as MarkdownTagNode, xt as PluginReadState, y as BasePluginOn, ya as StrikethroughRules, yi as ListType, yn as InsertTextInputRuleReadContext, yo as PluginSelector, yr as MarkdownRefusal, za as DeleteRules, zi as CodeBlockDefinition, zn as ScrollMode, zr as DocxImportTableCell } from "./core-DoxvjG5W.js";
|
|
4
4
|
export { AffinityDefinition, AffinityPlugin, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkPlugin, BaseListPlugin, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BaseScriptPlugin, BaseStrikethroughPlugin, BaseTextAlignPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice$1 as ContentSlice, type CreateEditorOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, DefinedInsertDataFollowUpInputRule, type DefinitionOf, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DocxBlock, type DocxBlockProps, type DocxBorder, type DocxDecodeContext, type DocxEncodeContext, type DocxEncodedFragment, type DocxFormatDiagnosticInput, type DocxImportBlock, type DocxImportBlockProps, type DocxImportInline, type DocxImportListInfo, type DocxImportListLevel, type DocxImportNode, type DocxImportNodeKind, type DocxImportTableCell, type DocxImportTableRow, type DocxInline, type DocxMarkDecodeContext, type DocxMarkEncodeContext, type DocxNodeMapping, type DocxNodeMappingInput, type DocxPropertyDecodeContext, type DocxPropertyEncodeContext, type DocxRunMarks, type DocxTableCell, type DocxTableRow, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCan, type EditorCanTransaction, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectHistoryKind, type EditorEffectHistoryReplayContext, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, type EditorElementEntry, EditorError, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonObject, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReference, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorRuntimeCarrier, type EditorRuntimeOwnerOf, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectorDependencies, type EditorSelectorDependency, type EditorShortcut, type EditorSliceDeletionOptions, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateResult, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromPlugins, type EditorValuePersistence, type EditorView, type EditorViewOptions, type EditorViewStateDependency, Element$1 as Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, type ElementIdTarget, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, type ElementWith, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingPluginState, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryRecordOptions, type HistoryRecordResult, type HistoryResult, type HistorySettlement, HorizontalRuleMarkdownVariant, HorizontalRuleRules, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginStoreState, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRuleVeto, InputRulesConfig, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataFollowUpContext, InsertDataFollowUpInputRule, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, LinkElement, LinkRules, ListDefinition, ListElement, type ListLevel, type ListLevels, ListSetOptions, ListStyle, ListToggleOptions, ListType, type LocalStateFieldDescriptor, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocument, type PersistedSelection, type PlacedTarget, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginCompartment, type PluginCompartmentValue, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, ReadAncestor, ReadDescendant, ReadElement, ReadNode, type ReadValue, type ReadonlyAnchor, type RootKey, type RuleDecision, type SchemaBlockContentOptions, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPlugin, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyDescriptorMap, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySource, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, type SharedStateFieldDescriptor, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type StructuralRuleState, TaskListRules, Text, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextTarget, type TextUnit, type TextUnitAdjustment, type TextWith, ToggleHeadingOptions, type TopLevelRuntimeRange, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, type Value, type ValueOf, type WithAnyName, type WithNodeTarget, authoredVeto, createBlockFenceInputRule, createEditor, createEditorView, createMarkInputRule, createTextSubstitutionInputRule, defineCommand$1 as defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginCompartment, definePluginPoint, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, formatting, getPublicEditorRuntimeOwner as getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, inputRuleVeto, isDefined, isEditor, isUrl, linkUrlValidation, locateAt, matchBlockStart, matchDelimitedInline, nanoid, nodeWriteVeto, property, schema$1 as schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection };
|
|
@@ -155,10 +155,11 @@ const ALLOWED_PLUGIN_SCHEMA_KEYS = /* @__PURE__ */ new Set([
|
|
|
155
155
|
"contentRoots",
|
|
156
156
|
"element",
|
|
157
157
|
"mark",
|
|
158
|
-
"properties"
|
|
158
|
+
"properties",
|
|
159
|
+
"roots"
|
|
159
160
|
]);
|
|
160
161
|
const assertPluginSchemaKeys = (pluginName, declaration) => {
|
|
161
|
-
for (const key of Object.keys(declaration)) if (!ALLOWED_PLUGIN_SCHEMA_KEYS.has(key)) throw new Error(`Plate plugin "${pluginName}" schema key "${key}" is not supported. Use only contentRoots, element, mark, and
|
|
162
|
+
for (const key of Object.keys(declaration)) if (!ALLOWED_PLUGIN_SCHEMA_KEYS.has(key)) throw new Error(`Plate plugin "${pluginName}" schema key "${key}" is not supported. Use only contentRoots, element, mark, properties, and roots.`);
|
|
162
163
|
};
|
|
163
164
|
const isPluginSchemaDeclaration = (value) => typeof value === "object" && value !== null;
|
|
164
165
|
/**
|
|
@@ -369,12 +370,14 @@ const lowerPluginSchemaDeclaration = (declaration, owner, elementTypes, referenc
|
|
|
369
370
|
content: lowerPluginContent(root.content, owner, elementTypes, references),
|
|
370
371
|
target: lowerPluginTarget(root.target, owner, elementTypes, references)
|
|
371
372
|
}))) : void 0;
|
|
373
|
+
const nextRoots = declaration.roots ? Object.freeze(Object.fromEntries(Object.entries(declaration.roots).map(([rootName, content]) => [rootName, lowerPluginContent(content, owner, elementTypes, references)]))) : void 0;
|
|
372
374
|
return freezePluginDescriptorValue({
|
|
373
375
|
...declaration,
|
|
374
376
|
...nextElement ? { element: nextElement } : {},
|
|
375
377
|
...nextMark ? { mark: nextMark } : {},
|
|
376
378
|
...nextProperties ? { properties: nextProperties } : {},
|
|
377
|
-
...nextContentRoots ? { contentRoots: nextContentRoots } : {}
|
|
379
|
+
...nextContentRoots ? { contentRoots: nextContentRoots } : {},
|
|
380
|
+
...nextRoots ? { roots: nextRoots } : {}
|
|
378
381
|
});
|
|
379
382
|
};
|
|
380
383
|
const compilePlateModel = (editor) => {
|
|
@@ -413,6 +416,8 @@ const compilePlateModel = (editor) => {
|
|
|
413
416
|
const bindingsByElementType = /* @__PURE__ */ new Map();
|
|
414
417
|
const contentRoots = [];
|
|
415
418
|
const properties = [];
|
|
419
|
+
const roots = Object.create(null);
|
|
420
|
+
const bindingsByRootName = /* @__PURE__ */ new Map();
|
|
416
421
|
const contributions = Object.create(null);
|
|
417
422
|
const bindings = pluginList.map((plugin) => {
|
|
418
423
|
const declaration = declarations.get(plugin.name) ?? null;
|
|
@@ -475,12 +480,25 @@ const compilePlateModel = (editor) => {
|
|
|
475
480
|
const additionalPropertyHandles = Object.freeze(fromNullProtoEntries(propertyEntries.flatMap(({ localId }) => textProperty && localId === propertyKey ? [] : [[localId, propertyHandles[localId]]])));
|
|
476
481
|
const schemaProperties = Object.freeze([...declaredProperties, ...textProperty ? [textProperty] : []]);
|
|
477
482
|
const ownsPropertyKey = Object.hasOwn(propertyHandles, propertyKey);
|
|
483
|
+
const declaredRootEntries = Object.entries(declaration?.roots ?? {});
|
|
484
|
+
const declaredRoots = Object.create(null);
|
|
485
|
+
for (const [rootName, content] of declaredRootEntries) {
|
|
486
|
+
if (rootName.length === 0 || rootName === "main") throw new Error(`Plate plugin "${plugin.name}" cannot declare reserved or empty root "${rootName}".`);
|
|
487
|
+
if (Object.hasOwn(roots, rootName)) {
|
|
488
|
+
const firstOwner = bindingsByRootName.get(rootName);
|
|
489
|
+
throw new Error(`Plate plugins "${firstOwner}" and "${plugin.name}" both declare named root "${rootName}".`);
|
|
490
|
+
}
|
|
491
|
+
roots[rootName] = content;
|
|
492
|
+
declaredRoots[rootName] = content;
|
|
493
|
+
bindingsByRootName.set(rootName, plugin.name);
|
|
494
|
+
}
|
|
478
495
|
properties.push(...declaredProperties);
|
|
479
496
|
contentRoots.push(...declaredContentRoots);
|
|
480
497
|
contributions[plugin.name] = Object.freeze({
|
|
481
498
|
...declaredContentRoots.length > 0 ? { contentRoots: declaredContentRoots } : {},
|
|
482
499
|
...element ? { elements: Object.freeze({ [elementType]: elements[elementType] }) } : {},
|
|
483
|
-
...schemaProperties.length > 0 ? { properties: schemaProperties } : {}
|
|
500
|
+
...schemaProperties.length > 0 ? { properties: schemaProperties } : {},
|
|
501
|
+
...declaredRootEntries.length > 0 ? { roots: Object.freeze(declaredRoots) } : {}
|
|
484
502
|
});
|
|
485
503
|
return Object.freeze({
|
|
486
504
|
elementPropertyKeys: Object.freeze([...elementPropertyKeys, ...declaredProperties.flatMap((property) => property.placement === "element" && typeof property.key === "string" ? [property.key] : [])]),
|
|
@@ -529,7 +547,8 @@ const compilePlateModel = (editor) => {
|
|
|
529
547
|
contentRoots: Object.freeze(contentRoots),
|
|
530
548
|
elements: Object.freeze(elements),
|
|
531
549
|
groups: Object.freeze({ [PLATE_BLOCK_CONTENT_SCHEMA_GROUP]: Object.freeze({}) }),
|
|
532
|
-
properties: Object.freeze(properties)
|
|
550
|
+
properties: Object.freeze(properties),
|
|
551
|
+
...Object.keys(roots).length > 0 ? { roots: Object.freeze(roots) } : {}
|
|
533
552
|
}),
|
|
534
553
|
contributions: Object.freeze(contributions),
|
|
535
554
|
revision: Object.freeze({})
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { failInvariant } from "../failInvariant.js";
|
|
2
2
|
import { getCompiledPlateModelBinding, getCompiledPlatePlugin, getPlateRuntime } from "./compilePlateModel.js";
|
|
3
3
|
import { createPluginContext } from "../../lib/plugin/createPluginContext.internal.js";
|
|
4
|
+
import { isSafeStyleValue } from "../../lib/plugins/html/cssSafety.internal.js";
|
|
4
5
|
import { matchesPluginInject } from "./matchesPluginInject.internal.js";
|
|
5
6
|
import { isDefined } from "../../lib/utils/isDefined.js";
|
|
6
7
|
//#region src/internal/plugin/pluginInjectNodeProps.ts
|
|
7
8
|
const getNodeProp = (node, key) => key ? node[key] : void 0;
|
|
8
9
|
const getNodePropClassValue = (value) => typeof value === "string" || typeof value === "number" ? String(value) : void 0;
|
|
10
|
+
const isSafeInlineStyleValue = (value) => typeof value === "string" && isSafeStyleValue(value) || typeof value === "number" && Number.isFinite(value);
|
|
11
|
+
const sanitizeInlineStyle = (style) => {
|
|
12
|
+
let changed = false;
|
|
13
|
+
const clean = {};
|
|
14
|
+
for (const [key, entry] of Object.entries(style)) {
|
|
15
|
+
if (entry === void 0) continue;
|
|
16
|
+
if (isSafeInlineStyleValue(entry)) clean[key] = entry;
|
|
17
|
+
else changed = true;
|
|
18
|
+
}
|
|
19
|
+
if (!changed) return style;
|
|
20
|
+
return Object.keys(clean).length > 0 ? clean : void 0;
|
|
21
|
+
};
|
|
9
22
|
const getInjectNodeKey = (editor, { inject, name }) => inject.nodeProps?.nodeKey ?? getCompiledPlateModelBinding(editor, name)?.propertyKey ?? void 0;
|
|
10
23
|
const getTextScopeKey = ({ inject }, nodeKey) => inject.nodeProps?.textScope === "nodeKey" && nodeKey !== "text" ? nodeKey : void 0;
|
|
11
24
|
const getTextInjectionReach = (editor, plugin) => {
|
|
@@ -55,11 +68,26 @@ const pluginInjectNodeProps = (editor, plugin, nodeProps) => {
|
|
|
55
68
|
let newProps = {};
|
|
56
69
|
const nodeValueKey = getNodePropClassValue(nodeValue);
|
|
57
70
|
if (element && nodeKey && nodeValueKey) newProps.className = `editor-${nodeKey}-${nodeValueKey}`;
|
|
58
|
-
if (styleKey &&
|
|
59
|
-
if (typeof transformProps === "function")
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
if (styleKey && isSafeInlineStyleValue(value)) newProps.style = { [styleKey]: value };
|
|
72
|
+
if (typeof transformProps === "function") {
|
|
73
|
+
newProps = Reflect.apply(transformProps, void 0, [{
|
|
74
|
+
...transformOptions,
|
|
75
|
+
props: newProps
|
|
76
|
+
}]) ?? newProps;
|
|
77
|
+
if ("style" in newProps && newProps.style !== void 0) if (typeof newProps.style === "object" && newProps.style !== null && !Array.isArray(newProps.style)) {
|
|
78
|
+
const sanitized = sanitizeInlineStyle(newProps.style);
|
|
79
|
+
if (sanitized !== newProps.style) {
|
|
80
|
+
const { style: _dropped, ...rest } = newProps;
|
|
81
|
+
newProps = sanitized ? {
|
|
82
|
+
...rest,
|
|
83
|
+
style: sanitized
|
|
84
|
+
} : rest;
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
const { style: _dropped, ...rest } = newProps;
|
|
88
|
+
newProps = rest;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
63
91
|
return newProps;
|
|
64
92
|
};
|
|
65
93
|
//#endregion
|
|
@@ -131,5 +131,15 @@ const encodeUrlInput = (url) => {
|
|
|
131
131
|
throw error;
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Trims surrounding ASCII spaces and rejects empty or malformed raw URL input
|
|
136
|
+
* (control characters, backslashes, lone surrogates, `//`) before encoding
|
|
137
|
+
* safe internal spaces and non-ASCII characters.
|
|
138
|
+
*/
|
|
139
|
+
const encodeSafeUrlInput = (url) => {
|
|
140
|
+
const trimmed = trimAsciiSpaces(url);
|
|
141
|
+
if (trimmed === "" || isMalformed(trimmed)) return void 0;
|
|
142
|
+
return encodeUrlInput(trimmed);
|
|
143
|
+
};
|
|
134
144
|
//#endregion
|
|
135
|
-
export { decideUrl, encodeUrlInput, isBareAutolinkLiteral, isScriptCapableUrl, isScriptUrl, isStoredUrl };
|
|
145
|
+
export { decideUrl, encodeSafeUrlInput, encodeUrlInput, isBareAutolinkLiteral, isScriptCapableUrl, isScriptUrl, isStoredUrl };
|
|
@@ -429,16 +429,18 @@ const projectFormatDocument = (document, projection, authored, schema) => {
|
|
|
429
429
|
return projected;
|
|
430
430
|
};
|
|
431
431
|
/** @internal */
|
|
432
|
-
const projectPlateFormatDocument = (editor, document, projection) => {
|
|
432
|
+
const projectPlateFormatDocument = (editor, document, projection, skipInitialAssert = false) => {
|
|
433
433
|
const resolvedProjection = resolveFormatProjection(projection);
|
|
434
434
|
const schema = editor.read.schema;
|
|
435
|
+
const project = () => {
|
|
436
|
+
const projected = projectFormatDocument(document, resolvedProjection, getEditorAuthoredDocumentCapability(editor), getCompiledEditorSchema(editor));
|
|
437
|
+
if (projected.document !== document) schema.assertDocument(projected.document);
|
|
438
|
+
return projected;
|
|
439
|
+
};
|
|
440
|
+
if (skipInitialAssert) return project();
|
|
435
441
|
return readingCovered({
|
|
436
442
|
cover: () => schema.assertDocument(document),
|
|
437
|
-
read:
|
|
438
|
-
const projected = projectFormatDocument(document, resolvedProjection, getEditorAuthoredDocumentCapability(editor), getCompiledEditorSchema(editor));
|
|
439
|
-
if (projected.document !== document) schema.assertDocument(projected.document);
|
|
440
|
-
return projected;
|
|
441
|
-
}
|
|
443
|
+
read: project
|
|
442
444
|
});
|
|
443
445
|
};
|
|
444
446
|
/** @internal */
|