platejs 54.0.0-beta.14 → 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-eXOA489B.d.ts → EditorStatic-ldAMJg-F.d.ts} +4 -4
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/react/index.d.ts +7 -7
- package/dist/authored/index.d.ts +4 -4
- package/dist/{authored-qetvpvU--DSWESzxK.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-CoNK9gTD.d.ts → comment-anchor.internal-Ck30WbG4.d.ts} +2 -2
- package/dist/compiler/index.d.ts +3 -3
- package/dist/{core-By92GWYW.d.ts → core-DoxvjG5W.d.ts} +28 -7
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/agents/skills.md +1 -1
- package/dist/docs/comment.md +5 -5
- package/dist/docs/components/toolbar-buttons.md +1 -1
- package/dist/docs/discussion.md +1 -1
- package/dist/docs/examples/export.md +9 -11
- package/dist/docs/field.md +1 -1
- package/dist/docs/footnote.md +1 -1
- package/dist/docs/link.md +3 -1
- package/dist/docs/lint.md +18 -0
- package/dist/docs/llms.txt +2 -1
- package/dist/docs/lock.md +1 -1
- package/dist/docs/markdown.md +5 -1
- package/dist/docs/mobile.md +415 -0
- package/dist/docs/roots.md +31 -1
- package/dist/docs/toc.md +14 -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/board/index.d.ts +1 -1
- package/dist/features/callout/index.d.ts +1 -1
- 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/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/lint/index.d.ts +3 -3
- 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 +7 -3
- package/dist/features/reference/lib/BaseReferencePlugin.js +29 -20
- 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/{htmlConversion-CRnxMGw-.d.ts → htmlConversion-CHcWrkh5.d.ts} +2 -2
- package/dist/{htmlTypes-3laowz-3.d.ts → htmlTypes-9HQ8p7c5.d.ts} +3 -3
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-D8EGVCeT.d.ts → index-1JPYTyFo.d.ts} +3 -3
- package/dist/index-B-SGl9uM.d.ts +1 -0
- package/dist/{index-CHlITvuq.d.ts → index-B048Z6JD.d.ts} +7 -7
- package/dist/index-BFkl1TNK.d.ts +1 -0
- package/dist/{index-Dyw6BJx8.d.ts → index-BRwhNV78.d.ts} +3 -3
- package/dist/{index-DAKucat0--VOaL_NN.d.ts → index-BYv6zIL_-DWmaXzbX.d.ts} +4 -4
- package/dist/{index-B3VOCxNR.d.ts → index-Bm8V8SS4.d.ts} +5 -5
- package/dist/{index-B9UlNijk.d.ts → index-BujEk356.d.ts} +2 -2
- package/dist/{index-s34W6hUI.d.ts → index-C4KIDKwP.d.ts} +3 -3
- package/dist/{index-DXm_v0Qq.d.ts → index-CAFKQNqu.d.ts} +3 -3
- package/dist/{index-BJPT0Tv_.d.ts → index-CXJwwbAJ.d.ts} +3 -3
- package/dist/index-CfqQvdcO.d.ts +3 -0
- package/dist/{index-k-wvVxKl.d.ts → index-Cj09P2Qp.d.ts} +2 -2
- package/dist/{index-LEcSTRgn-BR_p4GVY.d.ts → index-CnumypT3-DGx8_6Ye.d.ts} +2 -2
- package/dist/{index-BKPWmnLg-Bp_vItjr.d.ts → index-DTTSk3WQ-D0TA0B5z.d.ts} +1 -1
- package/dist/{index-KG95XVaC.d.ts → index-DsKfZoY4.d.ts} +4 -4
- package/dist/{index-DCTRNYwy.d.ts → index-UrJ6V3_e.d.ts} +2 -2
- package/dist/{index-wEkvA-wI.d.ts → index-UuSQ_p3c.d.ts} +5 -5
- package/dist/{index-CAshLTjV.d.ts → index-YNMmixU5.d.ts} +3 -3
- package/dist/{index-DQpHoxDX.d.ts → index-Zj4bj9bZ.d.ts} +1 -1
- package/dist/{index-DTd1D-BF.d.ts → index-eWzk-bcU.d.ts} +3 -3
- package/dist/{index-C5Xw3JDc.d.ts → index-h2HH9Rw8.d.ts} +1 -1
- package/dist/{index-CRQoHk18.d.ts → index-l9R_LyGx.d.ts} +3 -3
- package/dist/{index-BcD2RAB9.d.ts → index-lD9iIU3j.d.ts} +3 -3
- package/dist/{index-Djwcl0Ff.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/lib/plugins/html/cssLexer.internal.js +18 -8
- package/dist/lib/plugins/html/htmlSafety.js +12 -4
- package/dist/lib/plugins/html/htmlStyleInline.internal.js +16 -8
- package/dist/markdown/index.d.ts +1 -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/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-Cp9xayOe-0OSfTMnt.d.ts → protocol-CYflJUT3-CRJPCqOO.d.ts} +1 -1
- package/dist/react/authored/index.d.ts +4 -4
- package/dist/react/features/board/index.d.ts +5 -5
- package/dist/react/features/callout/index.d.ts +5 -5
- package/dist/react/features/column/index.d.ts +5 -5
- package/dist/react/features/combobox/index.d.ts +4 -4
- 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/index.d.ts +5 -5
- package/dist/react/features/footnote/index.d.ts +4 -4
- 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-D_3hPpTx.d.ts → registerEditorTools-DoRs57-M.d.ts} +4 -4
- package/dist/shared-room-BZxUmqjV-BJzbgrSZ.d.ts +1 -0
- package/dist/skills/plate/references/pricing.md +2 -2
- package/dist/{source-BW7JD_oS.d.ts → source-PTxjcq4_.d.ts} +3 -3
- package/dist/static/index.d.ts +5 -5
- package/dist/{storage-C7xSH1I5-BJLoUfo9.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-B-ON68Y4-DCfT5-eN.d.ts → transport-2koNcrqA-Dp_RYE3n.d.ts} +1 -1
- package/dist/{widths-9NNziDRW.d.ts → widths-DN1W6m66.d.ts} +5 -5
- package/package.json +2 -2
- package/dist/clipboard-format-key-BBu85J9m-BLhtd159.d.ts +0 -1
- package/dist/index-CKSwab_O.d.ts +0 -1
- package/dist/index-CyY3O6c7.d.ts +0 -3
- package/dist/index-DUhUT9bV.d.ts +0 -1
- package/dist/refusal-CwFxNUf7-BLhtd159.d.ts +0 -1
- package/dist/shared-room-26tNRhZE-BLhtd159.d.ts +0 -1
- /package/dist/{tx-only-sIj7BcYh-BMFkGMuq.d.ts → tx-only-x32UA-pQ-OQbgWQrN.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $o as Range, Al as TransferPlugin, Cl as TransferIntent, El as TransferOutcome, Hc as StateFieldValueInput, O as DecorationAttributes, Oi as HistoryOutcome, Qa as Plugin, Sl as TransferInput, Wa as Path, Wl as Value, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fo as PluginDependencyContractReference, fs as RootKey, gi as Element$1, ja as NodeTarget, ma as NodeKey, mo as PluginDependencyReferenceFor, ti as EditorUpdatePolicy, tr as EditorSelectorDependencies, vl as TransferApi, yl as TransferCheck } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { N as DataTransferDiagnostic, S as DOMEditor, V as ViewportRect, c as DOMApi, d as DOMCoverageCopyPolicy, f as DOMCoverageMaterializeRangeRole, h as DOMCoverageSelectionPolicy, l as DOMClipboardApi, m as DOMCoverageReason, n as DOMPluginTypes, p as DOMCoverageMaterializeReason, r as DropIndicator, t as DOMPlugin, u as DOMCoverageBoundary } from "./index-
|
|
4
|
-
import { o as Editor$2, st as BasePluginInput } from "./core-
|
|
1
|
+
import { $o as Range, Al as TransferPlugin, Cl as TransferIntent, El as TransferOutcome, Hc as StateFieldValueInput, O as DecorationAttributes, Oi as HistoryOutcome, Qa as Plugin, Sl as TransferInput, Wa as Path, Wl as Value, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fo as PluginDependencyContractReference, fs as RootKey, gi as Element$1, ja as NodeTarget, ma as NodeKey, mo as PluginDependencyReferenceFor, ti as EditorUpdatePolicy, tr as EditorSelectorDependencies, vl as TransferApi, yl as TransferCheck } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { N as DataTransferDiagnostic, S as DOMEditor, V as ViewportRect, c as DOMApi, d as DOMCoverageCopyPolicy, f as DOMCoverageMaterializeRangeRole, h as DOMCoverageSelectionPolicy, l as DOMClipboardApi, m as DOMCoverageReason, n as DOMPluginTypes, p as DOMCoverageMaterializeReason, r as DropIndicator, t as DOMPlugin, u as DOMCoverageBoundary } from "./index-BujEk356.js";
|
|
4
|
+
import { o as Editor$2, st as BasePluginInput } from "./core-DoxvjG5W.js";
|
|
5
5
|
import React$1, { CSSProperties, KeyboardEvent as KeyboardEvent$1, MouseEventHandler, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
6
6
|
type DecorationSlice = Readonly<{
|
|
7
7
|
attributes: DecorationAttributes;
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as SyncServerAgentPresencePoint, A as EditorReadBlock, B as EditorToolResult, C as EditorCommentsListResult, D as EditorIdempotencyStore, E as EditorIdempotencyEntry, F as EditorToolAnnotation, G as createEditorAgent, H as EditorVisibilityPredicate, I as EditorToolCall, J as SyncServerAgentGrant, K as createSyncServerAgent, L as EditorToolDefinition, M as EditorReadResult, N as EditorReadSelection, O as EditorInkPassage, P as EditorSuggestionsListResult, Q as SyncServerAgentPresenceOptions, R as EditorToolErrorCode, S as EditorCommentThreadItem, T as EditorFindResult, U as EditorWriteReceipt, V as EditorVisibilityFilter, W as GetEditorToolsOptions, X as SyncServerAgentOptions, Y as SyncServerAgentHost, Z as SyncServerAgentPresenceInput, _ as EditorAgentPresence, a as HasEditableAISelectionRefs, b as EditorCommentAction, c as SerializeAISelectionMarkdownOptions, d as serializeAIEditContext, et as SyncServerAgentPresenceSelection, f as serializeAISelectionMarkdown, g as EditorAgentOptions, h as EditorAgentExecuteOptions, i as AILockedBlockRef, j as EditorReadInkResult, k as EditorInkPassageImage, l as SerializedAIEditContext, m as EditorAgentAccess, n as WebMCPProducerContext, nt as SyncServerAgentRunResult, o as LOCKED_BLOCK_PLACEHOLDER_TAG, p as EditorAgent, q as getEditorTools, r as registerEditorTools, s as SerializeAIEditContextOptions, t as RegisterEditorToolsOptions, tt as SyncServerAgentReceipt, u as hasEditableAISelection, v as EditorAgentPresenceState, w as EditorDebugResult, x as EditorCommentEntry, y as EditorAgentTraceEvent, z as EditorToolErrorResult } from "../registerEditorTools-
|
|
1
|
+
import { $ as SyncServerAgentPresencePoint, A as EditorReadBlock, B as EditorToolResult, C as EditorCommentsListResult, D as EditorIdempotencyStore, E as EditorIdempotencyEntry, F as EditorToolAnnotation, G as createEditorAgent, H as EditorVisibilityPredicate, I as EditorToolCall, J as SyncServerAgentGrant, K as createSyncServerAgent, L as EditorToolDefinition, M as EditorReadResult, N as EditorReadSelection, O as EditorInkPassage, P as EditorSuggestionsListResult, Q as SyncServerAgentPresenceOptions, R as EditorToolErrorCode, S as EditorCommentThreadItem, T as EditorFindResult, U as EditorWriteReceipt, V as EditorVisibilityFilter, W as GetEditorToolsOptions, X as SyncServerAgentOptions, Y as SyncServerAgentHost, Z as SyncServerAgentPresenceInput, _ as EditorAgentPresence, a as HasEditableAISelectionRefs, b as EditorCommentAction, c as SerializeAISelectionMarkdownOptions, d as serializeAIEditContext, et as SyncServerAgentPresenceSelection, f as serializeAISelectionMarkdown, g as EditorAgentOptions, h as EditorAgentExecuteOptions, i as AILockedBlockRef, j as EditorReadInkResult, k as EditorInkPassageImage, l as SerializedAIEditContext, m as EditorAgentAccess, n as WebMCPProducerContext, nt as SyncServerAgentRunResult, o as LOCKED_BLOCK_PLACEHOLDER_TAG, p as EditorAgent, q as getEditorTools, r as registerEditorTools, s as SerializeAIEditContextOptions, t as RegisterEditorToolsOptions, tt as SyncServerAgentReceipt, u as hasEditableAISelection, v as EditorAgentPresenceState, w as EditorDebugResult, x as EditorCommentEntry, y as EditorAgentTraceEvent, z as EditorToolErrorResult } from "../registerEditorTools-DoRs57-M.js";
|
|
2
2
|
export { AILockedBlockRef, EditorAgent, EditorAgentAccess, EditorAgentExecuteOptions, EditorAgentOptions, EditorAgentPresence, EditorAgentPresenceState, EditorAgentTraceEvent, EditorCommentAction, EditorCommentEntry, EditorCommentThreadItem, EditorCommentsListResult, EditorDebugResult, EditorFindResult, EditorIdempotencyEntry, EditorIdempotencyStore, EditorInkPassage, EditorInkPassageImage, EditorReadBlock, EditorReadInkResult, EditorReadResult, EditorReadSelection, EditorSuggestionsListResult, EditorToolAnnotation, EditorToolCall, EditorToolDefinition, EditorToolErrorCode, EditorToolErrorResult, EditorToolResult, EditorVisibilityFilter, EditorVisibilityPredicate, EditorWriteReceipt, GetEditorToolsOptions, HasEditableAISelectionRefs, LOCKED_BLOCK_PLACEHOLDER_TAG, RegisterEditorToolsOptions, SerializeAIEditContextOptions, SerializeAISelectionMarkdownOptions, SerializedAIEditContext, type SyncServerAgentGrant, type SyncServerAgentHost, type SyncServerAgentOptions, type SyncServerAgentPresenceInput, type SyncServerAgentPresenceOptions, type SyncServerAgentPresencePoint, type SyncServerAgentPresenceSelection, type SyncServerAgentReceipt, type SyncServerAgentRunResult, WebMCPProducerContext, createEditorAgent, createSyncServerAgent, getEditorTools, hasEditableAISelection, registerEditorTools, serializeAIEditContext, serializeAISelectionMarkdown };
|
package/dist/ai/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $o as Range, N as Descendant, Vl as TxDeclaredMethod, Wl as Value, fs as RootKey, ma as NodeKey } from "../../tx-only-
|
|
2
|
-
import "../../htmlTypes-
|
|
3
|
-
import { Ra as DefinitionOf, ao as NormalizePluginSelectors, fo as PluginReference, p as BasePlugin, uo as PluginDependency, xo as PluginSelectorMethods } from "../../core-
|
|
4
|
-
import { Tt as Plugin, ot as Editor } from "../../index-
|
|
5
|
-
import { V as EditorVisibilityFilter, _ as EditorAgentPresence, g as EditorAgentOptions, i as AILockedBlockRef, p as EditorAgent, t as RegisterEditorToolsOptions } from "../../registerEditorTools-
|
|
6
|
-
import { dt as RangeGeometry } from "../../EditorStatic-
|
|
7
|
-
import { T as MarkdownSliceParseResult, b as MarkdownPlaceholderParseResult, c as Unsafe, d as MarkdownDocumentParseResult, f as MarkdownEditorSerializeOptions, g as MarkdownParseLimits, j as MarkdownSyncPlugin, k as MarkdownStreamSnapshot, o as Handle, s as Join, w as MarkdownSerializeResult } from "../../index-
|
|
1
|
+
import { $o as Range, N as Descendant, Vl as TxDeclaredMethod, Wl as Value, fs as RootKey, ma as NodeKey } from "../../tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "../../htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { Ra as DefinitionOf, ao as NormalizePluginSelectors, fo as PluginReference, p as BasePlugin, uo as PluginDependency, xo as PluginSelectorMethods } from "../../core-DoxvjG5W.js";
|
|
4
|
+
import { Tt as Plugin, ot as Editor } from "../../index-UuSQ_p3c.js";
|
|
5
|
+
import { V as EditorVisibilityFilter, _ as EditorAgentPresence, g as EditorAgentOptions, i as AILockedBlockRef, p as EditorAgent, t as RegisterEditorToolsOptions } from "../../registerEditorTools-DoRs57-M.js";
|
|
6
|
+
import { dt as RangeGeometry } from "../../EditorStatic-ldAMJg-F.js";
|
|
7
|
+
import { T as MarkdownSliceParseResult, b as MarkdownPlaceholderParseResult, c as Unsafe, d as MarkdownDocumentParseResult, f as MarkdownEditorSerializeOptions, g as MarkdownParseLimits, j as MarkdownSyncPlugin, k as MarkdownStreamSnapshot, o as Handle, s as Join, w as MarkdownSerializeResult } from "../../index-C4KIDKwP.js";
|
|
8
8
|
import React$1 from "react";
|
|
9
9
|
/** Streaming draft landing mode for inline AI sessions. */
|
|
10
10
|
type AIDraftMode = 'detached' | 'suggestion';
|
package/dist/authored/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal, p as AuthoredProjectionDiagnostic } from "../tx-only-
|
|
2
|
-
import { C as AuthoredView, D as isAuthoredRefusal, T as SplitGave, _ as AuthoredPlaceError, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, d as AuthoredGroupPart, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, i as AuthoredChangeKind, l as AuthoredDecision, m as AuthoredOptions, n as AuthoredChangeDetails, o as AuthoredChangePart, p as AuthoredMark, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, w as GaveWrite, x as AuthoredReview, y as AuthoredRefusal } from "../authored-
|
|
3
|
-
import { n as projectAuthoredDocument, t as AuthoredFormatProjection } from "../index-
|
|
4
|
-
import { n as suggestionColorOf, r as AuthoredPlugin, t as AUTHORED_COLOR_COUNT } from "../index-
|
|
1
|
+
import { f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal, p as AuthoredProjectionDiagnostic } from "../tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import { C as AuthoredView, D as isAuthoredRefusal, T as SplitGave, _ as AuthoredPlaceError, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, d as AuthoredGroupPart, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, i as AuthoredChangeKind, l as AuthoredDecision, m as AuthoredOptions, n as AuthoredChangeDetails, o as AuthoredChangePart, p as AuthoredMark, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, w as GaveWrite, x as AuthoredReview, y as AuthoredRefusal } from "../authored-Cux94E76-fEDdP_BS.js";
|
|
3
|
+
import { n as projectAuthoredDocument, t as AuthoredFormatProjection } from "../index-UrJ6V3_e.js";
|
|
4
|
+
import { n as suggestionColorOf, r as AuthoredPlugin, t as AUTHORED_COLOR_COUNT } from "../index-B048Z6JD.js";
|
|
5
5
|
export { AUTHORED_COLOR_COUNT, type AuthoredChange, type AuthoredChangeDetails, type AuthoredChangeGroup, type AuthoredChangeKind, type AuthoredChangeMember, type AuthoredChangePart, type AuthoredChangesDelta, type AuthoredComparisonImportResult, type AuthoredDecision, type AuthoredDocumentProjection, type AuthoredFormatProjection, type AuthoredGroupDetails, type AuthoredGroupPart, type AuthoredGroupQuery, type AuthoredMark, type AuthoredOptions, type AuthoredOutcome, type AuthoredPage, AuthoredPlaceError, AuthoredPlugin, type AuthoredProjectionDiagnostic, type AuthoredProjectionRefusal, type AuthoredQuery, type AuthoredRefusal, type AuthoredResult, type AuthoredReview, type AuthoredView, type GaveWrite, type SplitGave, isAuthoredRefusal, projectAuthoredDocument, suggestionColorOf };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $o as Range, Bi as Location, Go as PropertySetDescriptor, Mt as EditorJsonValue, Po as Point, Qa as Plugin, Qs as SchemaPropertyCopyPolicy, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, ac as SchemaPropertyLandingPolicy, cc as SchemaPropertySplitPolicy, d as AnyEditor, ec as SchemaPropertyExclusiveGroup, jt as EditorJsonObject, lc as SchemaPropertyTypeChangePolicy, ma as NodeKey, mi as EditorViewOptions, mo as PluginDependencyReferenceFor, sc as SchemaPropertyRole, w as ContentSlice } from "./tx-only-
|
|
2
|
-
import "./refusal-
|
|
3
|
-
import { r as Comparison } from "./index-
|
|
1
|
+
import { $o as Range, Bi as Location, Go as PropertySetDescriptor, Mt as EditorJsonValue, Po as Point, Qa as Plugin, Qs as SchemaPropertyCopyPolicy, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, ac as SchemaPropertyLandingPolicy, cc as SchemaPropertySplitPolicy, d as AnyEditor, ec as SchemaPropertyExclusiveGroup, jt as EditorJsonObject, lc as SchemaPropertyTypeChangePolicy, ma as NodeKey, mi as EditorViewOptions, mo as PluginDependencyReferenceFor, sc as SchemaPropertyRole, w as ContentSlice } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./refusal-VX2Y6Wmd-BJzbgrSZ.js";
|
|
3
|
+
import { r as Comparison } from "./index-CnumypT3-DGx8_6Ye.js";
|
|
4
4
|
/** Outcome of proposing a validated document comparison as one native change. */
|
|
5
5
|
type AuthoredComparisonImportResult = Readonly<{
|
|
6
6
|
ids: readonly string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../index-
|
|
2
|
-
import { S as ExternalTextAdapter } from "../../EditorStatic-
|
|
1
|
+
import "../../index-UuSQ_p3c.js";
|
|
2
|
+
import { S as ExternalTextAdapter } from "../../EditorStatic-ldAMJg-F.js";
|
|
3
3
|
import { Extension } from "@codemirror/state";
|
|
4
4
|
type CodeBlockCodeMirrorConfig = Readonly<{
|
|
5
5
|
language?: string;
|
package/dist/{comment-anchor.internal-CoNK9gTD.d.ts → comment-anchor.internal-Ck30WbG4.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Yi as NamedRootKey } from "./tx-only-
|
|
2
|
-
import "./core-
|
|
1
|
+
import { Yi as NamedRootKey } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import "./core-DoxvjG5W.js";
|
|
3
3
|
/** One endpoint of a durable `CommentAnchor`, identified by stable block `elementId` and character offset. */
|
|
4
4
|
type CommentAnchorEndpoint = Readonly<{
|
|
5
5
|
elementId: string;
|
package/dist/compiler/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Eu as readEditorSchemaContract, _n as EditorSchemaContractContentRoot, bn as EditorSchemaContractRoot, gn as EditorSchemaContractContentProgram, hn as EditorSchemaContractChangeKind, mn as EditorSchemaContractChange, ou as diffEditorSchemaContracts, pn as EditorSchemaContract, vn as EditorSchemaContractDiff, yn as EditorSchemaContractElement } from "../tx-only-
|
|
2
|
-
import { h as EditorApplicationSchema } from "../htmlTypes-
|
|
3
|
-
import { ft as EditorPropertyTypes, st as BasePluginInput, tt as EditorCompilation } from "../core-
|
|
1
|
+
import { Eu as readEditorSchemaContract, _n as EditorSchemaContractContentRoot, bn as EditorSchemaContractRoot, gn as EditorSchemaContractContentProgram, hn as EditorSchemaContractChangeKind, mn as EditorSchemaContractChange, ou as diffEditorSchemaContracts, pn as EditorSchemaContract, vn as EditorSchemaContractDiff, yn as EditorSchemaContractElement } from "../tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "../htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { ft as EditorPropertyTypes, st as BasePluginInput, tt as EditorCompilation } from "../core-DoxvjG5W.js";
|
|
4
4
|
/**
|
|
5
5
|
* Compile nominal plugins and optional application schema into immutable JSON data.
|
|
6
6
|
* Evaluates configuration, API factories and validators without activating plugins
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EditorCommandDispatch, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, Al as TransferPlugin$1, As as SchemaElementFor, Bi as Location, Bo as PropertyEnumDescriptor, D as Decoration, Da as NodeSelection, Di as HistoryApi, Do as PluginTypeProvider, En as EditorSchemaElement, Eo as PluginReference$1, Es as SchemaContentRule, Et as EditorGenericMethod, Fn as EditorSchemaPlugin, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Gr as EditorTransactionSpecBuilder, H as EditorAboveOptions, Hl as TxMethodDeclarations, Ht as EditorNodeGetOptions, In as EditorSchemaPluginProvider, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Jt as EditorPreviousOptions, Ki as MaximizeMode, Kl as WithNodeTarget, Kt as EditorNodesReadOptions, L as DescendantIn, Mo as PluginWitnessFor, Mt as EditorJsonValue, N as Descendant, Ni as InitialValue, Nt as EditorLevelsOptions, O as DecorationAttributes, Oo as PluginTypeProviderOf, Os as SchemaElement, Po as Point$1, Ps as SchemaElementPropertiesFor, Qa as Plugin, Qo as PropertyValueOptions, Ra as NodeTypeSelector, Ri as LeafPosition, Ro as PropertyBooleanDescriptor, Rt as EditorNextOptions, Sn as EditorSchemaDeclaration, Sr as EditorTextChangeContext, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tn as EditorSchemaDerivedDefinition, U as EditorBlockOptions, Uc as StripTxOnly, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Ut as EditorNodeTypeProvider, V as Editor$1, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wo as PropertyOptionsOf, Wt as EditorNodeUnsetOptions, Xa as PersistedSelection, Xc as Text$1, Xi as Node$1, Xs as SchemaPluginsOf, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, Zs as SchemaProperty, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _t as EditorDocumentValue, bc as SchemaTypesTarget, ci as EditorUpdateTransactionProvider, co as PluginContribution, do as PluginDefinitionInput, dt as EditorCoreStateView, ei as EditorUpdateMethods, en as EditorReadMethodRecord, er as EditorSelectionBlockOptions, fc as SchemaTarget, fi as EditorValueTypeProvider, fl as TextTarget, fo as PluginDependencyContractReference, fs as RootKey, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, go as PluginInstalledCapabilitiesOf, gs as SchemaContentDefault, gt as EditorDocumentRecords, hc as SchemaTextProperties, hs as SchemaContent, ht as EditorDirectUpdate, ia as NodeEntry, ic as SchemaPropertyKey, io as PluginCapabilities, j as DefinitionOf$1, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, la as NodeIn, li as EditorUpdateValueFromPlugin, mo as PluginDependencyReferenceFor, mr as EditorStateSelectionApi, nn as EditorReadMethods, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, p as AuthoredProjectionDiagnostic, pc as SchemaText, pn as EditorSchemaContract, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, qo as PropertyStringDescriptor, qs as SchemaKeyPrefix, qt as EditorParentOptions, ri as EditorUpdateResult, si as EditorUpdateTransactionOf, st as EditorCommitContext, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tn as EditorReadMethodTree, ua as NodeInsertNodesOptions, uo as PluginDefinition, v as BlockInsertOptions$1, va as NodeMatchPredicate, vl as TransferApi, wi as ElementOf, wr as EditorToggleBlockOptions, xn as EditorSchemaContribution, xr as EditorStateViewProvider, xs as SchemaContentRootContribution, yc as SchemaTextPropertyOptions, yo as PluginPortal, yr as EditorStateView, zt as EditorNodeChangeContext } from "./tx-only-
|
|
2
|
-
import { d as HtmlSerializeResult, f as HtmlSliceParseResult, g as StructuralPlainTextDiagnostic, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-
|
|
3
|
-
import { B as ScrollMargin, M as DataTransferDecodeContext, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, c as DOMApi, l as DOMClipboardApi, q as HotkeySpec } from "./index-
|
|
4
|
-
import { a as HistoryStateApi, i as HistoryPlugin$1, o as HistoryTxApi } from "./index-
|
|
1
|
+
import { $ as EditorCommandDispatch, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, Al as TransferPlugin$1, As as SchemaElementFor, Bi as Location, Bo as PropertyEnumDescriptor, D as Decoration, Da as NodeSelection, Di as HistoryApi, Do as PluginTypeProvider, En as EditorSchemaElement, Eo as PluginReference$1, Es as SchemaContentRule, Et as EditorGenericMethod, Fn as EditorSchemaPlugin, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Gr as EditorTransactionSpecBuilder, H as EditorAboveOptions, Hl as TxMethodDeclarations, Ht as EditorNodeGetOptions, In as EditorSchemaPluginProvider, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Jt as EditorPreviousOptions, Ki as MaximizeMode, Kl as WithNodeTarget, Kt as EditorNodesReadOptions, L as DescendantIn, Mo as PluginWitnessFor, Mt as EditorJsonValue, N as Descendant, Ni as InitialValue, Nt as EditorLevelsOptions, O as DecorationAttributes, Oo as PluginTypeProviderOf, Os as SchemaElement, Po as Point$1, Ps as SchemaElementPropertiesFor, Qa as Plugin, Qo as PropertyValueOptions, Ra as NodeTypeSelector, Ri as LeafPosition, Ro as PropertyBooleanDescriptor, Rt as EditorNextOptions, Sn as EditorSchemaDeclaration, Sr as EditorTextChangeContext, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tn as EditorSchemaDerivedDefinition, U as EditorBlockOptions, Uc as StripTxOnly, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Ut as EditorNodeTypeProvider, V as Editor$1, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wo as PropertyOptionsOf, Wt as EditorNodeUnsetOptions, Xa as PersistedSelection, Xc as Text$1, Xi as Node$1, Xs as SchemaPluginsOf, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, Zs as SchemaProperty, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _t as EditorDocumentValue, bc as SchemaTypesTarget, ci as EditorUpdateTransactionProvider, co as PluginContribution, do as PluginDefinitionInput, dt as EditorCoreStateView, ei as EditorUpdateMethods, en as EditorReadMethodRecord, er as EditorSelectionBlockOptions, fc as SchemaTarget, fi as EditorValueTypeProvider, fl as TextTarget, fo as PluginDependencyContractReference, fs as RootKey, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, go as PluginInstalledCapabilitiesOf, gs as SchemaContentDefault, gt as EditorDocumentRecords, hc as SchemaTextProperties, hs as SchemaContent, ht as EditorDirectUpdate, ia as NodeEntry, ic as SchemaPropertyKey, io as PluginCapabilities, j as DefinitionOf$1, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, la as NodeIn, li as EditorUpdateValueFromPlugin, mo as PluginDependencyReferenceFor, mr as EditorStateSelectionApi, nn as EditorReadMethods, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, p as AuthoredProjectionDiagnostic, pc as SchemaText, pn as EditorSchemaContract, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, qo as PropertyStringDescriptor, qs as SchemaKeyPrefix, qt as EditorParentOptions, ri as EditorUpdateResult, si as EditorUpdateTransactionOf, st as EditorCommitContext, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tn as EditorReadMethodTree, ua as NodeInsertNodesOptions, uo as PluginDefinition, v as BlockInsertOptions$1, va as NodeMatchPredicate, vl as TransferApi, wi as ElementOf, wr as EditorToggleBlockOptions, xn as EditorSchemaContribution, xr as EditorStateViewProvider, xs as SchemaContentRootContribution, yc as SchemaTextPropertyOptions, yo as PluginPortal, yr as EditorStateView, zt as EditorNodeChangeContext } from "./tx-only-x32UA-pQ-OQbgWQrN.js";
|
|
2
|
+
import { d as HtmlSerializeResult, f as HtmlSliceParseResult, g as StructuralPlainTextDiagnostic, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-9HQ8p7c5.js";
|
|
3
|
+
import { B as ScrollMargin, M as DataTransferDecodeContext, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, c as DOMApi, l as DOMClipboardApi, q as HotkeySpec } from "./index-BujEk356.js";
|
|
4
|
+
import { a as HistoryStateApi, i as HistoryPlugin$1, o as HistoryTxApi } from "./index-Zj4bj9bZ.js";
|
|
5
5
|
import { Draft } from "mutative";
|
|
6
6
|
import { BlockContent, Blockquote, Break, Code, DefinitionContent, Delete, Emphasis, FootnoteDefinition, FootnoteReference, Heading, Html, Image, InlineCode, Link, List, ListItem, Paragraph, PhrasingContent, RootContent, Strong, Table, TableCell, TableRow, Text, ThematicBreak } from "mdast";
|
|
7
7
|
import { InlineMath, Math } from "mdast-util-math";
|
|
@@ -93,6 +93,11 @@ type PluginDeclarationProperties<TDeclaration> = TDeclaration extends Readonly<{
|
|
|
93
93
|
type PluginDeclarationContentRoots<TDeclaration> = TDeclaration extends Readonly<{
|
|
94
94
|
contentRoots: infer TContentRoots extends readonly SchemaContentRootContribution[];
|
|
95
95
|
}> ? TContentRoots : readonly [];
|
|
96
|
+
type PluginDeclarationRoots<TDeclaration> = TDeclaration extends Readonly<{
|
|
97
|
+
roots: infer TRoots extends Readonly<Record<string, SchemaContent>>;
|
|
98
|
+
}> ? Readonly<{
|
|
99
|
+
roots: TRoots;
|
|
100
|
+
}> : unknown;
|
|
96
101
|
type PluginMarkDescriptor<TMark> = TMark extends PropertyValueDescriptor ? TMark : TMark extends Readonly<{
|
|
97
102
|
property: infer TDescriptor extends PropertyValueDescriptor;
|
|
98
103
|
}> ? TDescriptor : never;
|
|
@@ -108,7 +113,7 @@ type LowerPluginSchemaDeclaration<TDeclaration, TElementType extends string, TPr
|
|
|
108
113
|
element: infer TElement extends SchemaElement;
|
|
109
114
|
}> ? Readonly<{ [TKey in TElementType]: TElement; }> : Readonly<Record<never, never>>;
|
|
110
115
|
properties: readonly [...PluginDeclarationProperties<TDeclaration>, ...PluginMarkProperties<TDeclaration, TPropertyKey>];
|
|
111
|
-
}>;
|
|
116
|
+
}> & PluginDeclarationRoots<TDeclaration>;
|
|
112
117
|
type InferExactPluginSchemaContributionForDefinition<C extends AnyBasePluginDefinition> = C extends Readonly<{
|
|
113
118
|
schema: infer TSchema extends PluginSchemaDeclaration;
|
|
114
119
|
}> ? LowerPluginSchemaDeclaration<ResolvePluginSchemaDeclaration<TSchema>, InferPluginElementType<C>, InferPluginMarkKey<C>> : never;
|
|
@@ -398,31 +403,44 @@ type PluginSchemaElement = SchemaElement & Readonly<{
|
|
|
398
403
|
type?: string;
|
|
399
404
|
}>;
|
|
400
405
|
type PluginSchemaPropertyMap = Readonly<Record<string, SchemaPropertyDefinition | SchemaProperty>>;
|
|
406
|
+
/** Named secondary document roots contributed by a plugin schema (excluding reserved `main`). */
|
|
407
|
+
type PluginSchemaRootMap = Readonly<Record<string, SchemaContent>>;
|
|
401
408
|
type PluginElementSchemaDeclaration = Readonly<{
|
|
402
409
|
contentRoots?: readonly SchemaContentRootContribution[];
|
|
403
410
|
element: PluginSchemaElement;
|
|
404
411
|
mark?: never;
|
|
405
412
|
properties?: PluginSchemaPropertyMap;
|
|
413
|
+
roots?: PluginSchemaRootMap;
|
|
406
414
|
}>;
|
|
407
415
|
type PluginSchemaText = Readonly<{
|
|
408
416
|
contentRoots?: readonly SchemaContentRootContribution[];
|
|
409
417
|
element?: never;
|
|
410
418
|
mark: PluginSchemaMark;
|
|
411
419
|
properties?: PluginSchemaPropertyMap;
|
|
420
|
+
roots?: PluginSchemaRootMap;
|
|
412
421
|
}>;
|
|
413
422
|
type PluginSchemaProperties = Readonly<{
|
|
414
423
|
contentRoots?: readonly SchemaContentRootContribution[];
|
|
415
424
|
element?: never;
|
|
416
425
|
mark?: never;
|
|
417
426
|
properties: PluginSchemaPropertyMap;
|
|
427
|
+
roots?: PluginSchemaRootMap;
|
|
418
428
|
}>;
|
|
419
429
|
type PluginSchemaContentRoots = Readonly<{
|
|
420
430
|
contentRoots: readonly SchemaContentRootContribution[];
|
|
421
431
|
element?: never;
|
|
422
432
|
mark?: never;
|
|
423
433
|
properties?: PluginSchemaPropertyMap;
|
|
434
|
+
roots?: PluginSchemaRootMap;
|
|
435
|
+
}>;
|
|
436
|
+
type PluginSchemaRoots = Readonly<{
|
|
437
|
+
contentRoots?: readonly SchemaContentRootContribution[];
|
|
438
|
+
element?: never;
|
|
439
|
+
mark?: never;
|
|
440
|
+
properties?: PluginSchemaPropertyMap;
|
|
441
|
+
roots: PluginSchemaRootMap;
|
|
424
442
|
}>;
|
|
425
|
-
type PluginSchemaDeclaration = PluginSchemaContentRoots | PluginElementSchemaDeclaration | PluginSchemaProperties | PluginSchemaText;
|
|
443
|
+
type PluginSchemaDeclaration = PluginSchemaContentRoots | PluginElementSchemaDeclaration | PluginSchemaProperties | PluginSchemaRoots | PluginSchemaText;
|
|
426
444
|
/** A frozen schema contribution or a pure configured contribution factory. */
|
|
427
445
|
type PluginSchema<C extends AnyBasePluginDefinition = BasePluginDefinition> = ((context: PluginSchemaContext<C>) => PluginSchemaDeclaration) | PluginSchemaDeclaration;
|
|
428
446
|
type PluginRuntimeContext<C extends AnyBasePluginDefinition = BasePluginDefinition> = Readonly<{
|
|
@@ -6855,6 +6873,9 @@ type ExactSchemaContribution<C> = C extends Readonly<{
|
|
|
6855
6873
|
type SchemaContributionElements<TContribution> = TContribution extends Readonly<{
|
|
6856
6874
|
elements?: infer TElements;
|
|
6857
6875
|
}> ? Extract<NonNullable<TElements>, Readonly<Record<string, SchemaElement>>> : never;
|
|
6876
|
+
type SchemaContributionRoots<TContribution> = TContribution extends Readonly<{
|
|
6877
|
+
roots?: infer TRoots;
|
|
6878
|
+
}> ? Extract<NonNullable<TRoots>, NonNullable<EditorSchemaContribution['roots']>> : never;
|
|
6858
6879
|
type ThreeValuedTruth = 'no' | 'unknown' | 'yes';
|
|
6859
6880
|
type NegateThreeValuedTruth<TTruth extends ThreeValuedTruth> = [TTruth] extends ['yes'] ? 'no' : [TTruth] extends ['no'] ? 'yes' : 'unknown';
|
|
6860
6881
|
type AndThreeValuedTruth<TTruth extends ThreeValuedTruth> = [TTruth] extends [never] ? 'yes' : 'no' extends TTruth ? 'no' : 'unknown' extends TTruth ? 'unknown' : 'yes';
|
|
@@ -6948,7 +6969,7 @@ type InstalledPluginElementTypesForPlugins<D, TPlugins extends ReadonlyArray<Plu
|
|
|
6948
6969
|
type ResolvePluginTargetProperty<TInstalledDefinition, D extends AnyBasePluginDefinition, TProperty> = TProperty extends SchemaElementProperty<infer TKey, infer TDescriptor, infer TTarget> ? TTarget extends SchemaTypesTarget<infer TTypes> ? string extends TTypes[number] ? InferTargetPlugins<D> extends (infer TPlugins extends ReadonlyArray<PluginReference | string>) ? TPlugins extends readonly [] ? TProperty : SchemaElementProperty<TKey, TDescriptor, SchemaTypesTarget<InstalledPluginElementTypesForPlugins<TInstalledDefinition, TPlugins>>> : never : TProperty : TProperty : TProperty;
|
|
6949
6970
|
type ExactComposedSchemaProperty<TProperty> = TProperty extends SchemaProperty ? string extends TProperty['key'] ? never : TProperty : never;
|
|
6950
6971
|
type ResolvedSchemaContributionProperty<D, TInstalledDefinition = D> = D extends AnyBasePluginDefinition ? SchemaContributionProperty<ExactSchemaContribution<D>> extends (infer TProperty) ? ExactComposedSchemaProperty<ResolvePluginTargetProperty<TInstalledDefinition, D, TProperty>> : never : never;
|
|
6951
|
-
type RawSchemaDeclaration<D> = true extends IsBroadPluginDefinition<D> ? EditorSchemaContribution : EditorSchemaContribution<MergeObjectIntersection<SchemaContributionElements<ExactSchemaContribution<D>>>, ReadonlyArray<ResolvedSchemaContributionProperty<D>>, NonNullable<EditorSchemaContribution['groups']>, NonNullable<EditorSchemaContribution['roots']
|
|
6972
|
+
type RawSchemaDeclaration<D> = true extends IsBroadPluginDefinition<D> ? EditorSchemaContribution : EditorSchemaContribution<MergeObjectIntersection<SchemaContributionElements<ExactSchemaContribution<D>>>, ReadonlyArray<ResolvedSchemaContributionProperty<D>>, NonNullable<EditorSchemaContribution['groups']>, [SchemaContributionRoots<ExactSchemaContribution<D>>] extends [never] ? NonNullable<EditorSchemaContribution['roots']> : MergeObjectIntersection<SchemaContributionRoots<ExactSchemaContribution<D>>>, ReadonlyArray<SchemaContributionContentRoot<ExactSchemaContribution<D>>>>;
|
|
6952
6973
|
type SchemaDefinition<D> = EditorSchemaDerivedDefinition<NonNullable<RawSchemaDeclaration<D>['elements']>, NonNullable<RawSchemaDeclaration<D>['properties']>, NonNullable<RawSchemaDeclaration<D>['groups']>, NonNullable<RawSchemaDeclaration<D>['roots']>, NonNullable<RawSchemaDeclaration<D>['contentRoots']>>;
|
|
6953
6974
|
type SchemaPlugin<D> = EditorSchemaPlugin<SchemaDefinition<D>, 'installed-plugins'>;
|
|
6954
6975
|
type DependencySchemaProviders<TDependencies extends readonly unknown[]> = { readonly [TIndex in keyof TDependencies]: TDependencies[TIndex] extends EditorSchemaPluginProvider<infer TSchema> ? EditorSchemaPluginProvider<TSchema> : never; };
|
package/dist/diff/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as applyDiff, a as ComparisonDiagnostic, b as prepareDiff, c as ComparisonSpan, d as MergeConflictReason, f as MergeRegion, g as PreparedDiff, h as PrepareDiffResult, i as ComparisonCorrespondence, l as MergeConflict, m as MergeResult, n as ComparedChange, o as ComparisonEffect, p as MergeResolution, r as Comparison, s as ComparisonSnapshot, t as ApplyDiffResult, u as MergeConflictProperty, v as compare, y as merge } from "../index-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { _ as applyDiff, a as ComparisonDiagnostic, b as prepareDiff, c as ComparisonSpan, d as MergeConflictReason, f as MergeRegion, g as PreparedDiff, h as PrepareDiffResult, i as ComparisonCorrespondence, l as MergeConflict, m as MergeResult, n as ComparedChange, o as ComparisonEffect, p as MergeResolution, r as Comparison, s as ComparisonSnapshot, t as ApplyDiffResult, u as MergeConflictProperty, v as compare, y as merge } from "../index-CnumypT3-DGx8_6Ye.js";
|
|
2
|
+
import "../index-B-SGl9uM.js";
|
|
3
3
|
export { ApplyDiffResult, ComparedChange, Comparison, ComparisonCorrespondence, ComparisonDiagnostic, ComparisonEffect, ComparisonSnapshot, ComparisonSpan, MergeConflict, MergeConflictProperty, MergeConflictReason, MergeRegion, MergeResolution, MergeResult, PrepareDiffResult, PreparedDiff, applyDiff, compare, merge, prepareDiff };
|
|
@@ -68,4 +68,4 @@ When an agent hits a failure inside `platejs` rather than your app code, `refere
|
|
|
68
68
|
|
|
69
69
|
## Pro and Business
|
|
70
70
|
|
|
71
|
-
Plate Pro ships `plate-deploy-cloudflare`, `plate-deploy-vercel`, and `plate-upgrade` through `plate skills sync` for 1-command self-host deployment and 3-way upgrades across customized Plate UI files. Plate Business adds the `plate-security-hardening` skill alongside `@plate-business/security-kernel`, `@plate-business/compliance-pdf`, `@plate-business/security-proof`, and `plate verify` CI. See [Pricing](/pricing).
|
|
71
|
+
Plate Pro ships `plate-deploy-cloudflare`, `plate-deploy-expo`, `plate-deploy-vercel`, and `plate-upgrade` through `plate skills sync` for 1-command self-host deployment, Expo EAS builds, and 3-way upgrades across customized Plate UI files. Plate Business adds the `plate-security-hardening` skill alongside `@plate-business/security-kernel`, `@plate-business/compliance-pdf`, `@plate-business/security-proof`, and `plate verify` CI. See [Pricing](/pricing).
|
package/dist/docs/comment.md
CHANGED
|
@@ -16,10 +16,10 @@ For comments alongside proposed edits, see [Discussion](/docs/discussion).
|
|
|
16
16
|
- Highlights that follow document edits, undo, and redo
|
|
17
17
|
- Session undo and redo for successful local thread creation
|
|
18
18
|
- Overlapping threads and comments spanning text segments
|
|
19
|
-
- Document-level discovery
|
|
19
|
+
- Document-level discovery with instant search and **All**, **Open**, **Mine**, and **Resolved** filters
|
|
20
20
|
- Thread rows in your own tables, and quote-verified `CommentAnchor` records saved with each document revision
|
|
21
21
|
- Incremental remote sync via versioned `applyRemote({ upserts, deletes })`
|
|
22
|
-
- App data on threads and messages
|
|
22
|
+
- App data on threads and messages, including per-message emoji reactions in the copied UI
|
|
23
23
|
- Comments under another author, such as an AI
|
|
24
24
|
- Read-only and preview-view commenting plus static highlights
|
|
25
25
|
|
|
@@ -197,7 +197,7 @@ The `data` passed to `createThread` belongs to the thread; its first message get
|
|
|
197
197
|
|
|
198
198
|
### Discover conversations
|
|
199
199
|
|
|
200
|
-
Render `AllCommentsButton` inside a toolbar whenever the editor installs Comments. It opens a lazy, paginated dialog over published records and works without a document selection, in read-only views, and without Suggestions. The **All**, **Open**, and **Resolved** filters
|
|
200
|
+
Render `AllCommentsButton` inside a toolbar whenever the editor installs Comments. It opens a lazy, paginated dialog over published records and works without a document selection, in read-only views, and without Suggestions. The **All**, **Open**, **Mine**, and **Resolved** filters show live counts and pair with instant search over quoted excerpts, message text, and author names; target availability does not remove a record from those filters.
|
|
201
201
|
|
|
202
202
|
Each row labels its target. A target the current view can show reads **Attached to document**, and a range it cannot show reads **Target unavailable in this view**. A thread on a suggestion says what the review did once the suggestion is no longer pending: **Suggestion accepted**, **Suggestion rejected**, **Suggestion accepted and rejected** when it holds both verdicts, or **Suggestion deleted** when it left with no verdict, such as when accepting a struck table took it. These labels read the same after a reload. A pending suggestion reads **Target unavailable in this view** under a preview, because its ranges name places of the stored document.
|
|
203
203
|
|
|
@@ -622,7 +622,7 @@ A listener runs after its action's outcome is decided, except a `subscribeAnchor
|
|
|
622
622
|
|
|
623
623
|
### Copied UI
|
|
624
624
|
|
|
625
|
-
`CommentKit` from the copied `comment` item configures highlight styling, and `useActiveCommentIds()` reads the mounted view's `activeIds()`. `DiscussionKit` adds block buttons and the floating thread view. `UserDirectoryProvider`, `useUser`, and `useUserDirectory` from the copied `user-directory` item supply `UserProfile` records above `EditorRoot`. Use the exported `CommentThreadCard` and `CommentComposer` to build a custom thread layout.
|
|
625
|
+
`CommentKit` from the copied `comment` item configures highlight styling, and `useActiveCommentIds()` reads the mounted view's `activeIds()`. `DiscussionKit` adds block buttons and the floating thread view. `UserDirectoryProvider`, `useUser`, and `useUserDirectory` from the copied `user-directory` item supply `UserProfile` records above `EditorRoot`. Use the exported `CommentThreadCard` and `CommentComposer` to build a custom thread layout; `CommentThreadCard` persists per-message emoji reactions under `message.data.reactions` through `api.setData`.
|
|
626
626
|
|
|
627
627
|
### `CommentComposer`
|
|
628
628
|
|
|
@@ -630,4 +630,4 @@ A listener runs after its action's outcome is decided, except a `subscribeAnchor
|
|
|
630
630
|
|
|
631
631
|
## Pro and Business
|
|
632
632
|
|
|
633
|
-
Plate Pro ships `@plate-pro/floating-discussion` for wide-screen collision-free margin comment
|
|
633
|
+
Plate Pro ships `@plate-pro/floating-discussion` for wide-screen collision-free margin cards (`expanded`, `minimal`, and `hidden` density modes, Paged and Pageless zoom geometry, and a fail-closed `platejs/sync` realtime comment bridge) alongside the `Potion v2` and `Paper v2` flagship templates. Plate Business adds `@plate-business/security-kernel` (`policy.comments` quote redaction, internal-only ethical walls, `actorId` spoofing refusal, and zero-PII hash-chained WORM comment audits) verified by `plate verify` CI. See [Pricing](/pricing).
|
|
@@ -16,7 +16,7 @@ For the container bars that host these buttons, see [Fixed Toolbar](/docs/compon
|
|
|
16
16
|
| Draw Toolbar Button | A toolbar button that turns the ink Draw tool on or off with the last tool used, and the brush preferences each tool remembers per editor. | `npx shadcn@latest add @plate/draw-toolbar-button` |
|
|
17
17
|
| Emoji Toolbar Button | An emoji picker toolbar button. | `npx shadcn@latest add @plate/emoji-toolbar-button` |
|
|
18
18
|
| Equation Toolbar Button | A toolbar button for inserting and editing equations. | `npx shadcn@latest add @plate/equation-toolbar-button` |
|
|
19
|
-
| Export Toolbar Button | An anchored export popover for Word, PDF/Print, Markdown, and HTML with clean-copy, suggestion, and
|
|
19
|
+
| Export Toolbar Button | An anchored export popover for Word, PDF/Print, Markdown, and HTML with clean-copy, suggestion, page layout, and theme controls. | `npx shadcn@latest add @plate/export-toolbar-button` |
|
|
20
20
|
| Field Toolbar Button | A toolbar menu that inserts a field of each kind. | `npx shadcn@latest add @plate/field-toolbar-button` |
|
|
21
21
|
| Font Color Toolbar Button | A color picker toolbar button with text and background color controls. | `npx shadcn@latest add @plate/font-color-toolbar-button` |
|
|
22
22
|
| Font Size Toolbar Button | A toolbar control for adjusting font size. | `npx shadcn@latest add @plate/font-size-toolbar-button` |
|
package/dist/docs/discussion.md
CHANGED
|
@@ -181,4 +181,4 @@ For custom composition, pass the complete value to `CommentsPlugin.configure({ s
|
|
|
181
181
|
|
|
182
182
|
## Pro and Business
|
|
183
183
|
|
|
184
|
-
Plate Pro ships `@plate-pro/floating-discussion` for wide-screen margin comment and authored-suggestion columns
|
|
184
|
+
Plate Pro ships `@plate-pro/floating-discussion` for wide-screen margin comment and authored-suggestion columns (`expanded`, `minimal`, and `hidden` density modes, Paged and Pageless zoom geometry, and a `platejs/sync` realtime comment bridge), plus the `Potion v2` and `Paper v2` flagship templates. Plate Business adds `@plate-business/security-kernel` (`policy.comments` quote redaction, internal-only visibility isolation, `actorId` spoofing refusal, and hash-chained WORM comment audits) verified by `plate verify` CI. See [Pricing](/pricing).
|
|
@@ -11,7 +11,7 @@ demo mounts it in the fixed toolbar.
|
|
|
11
11
|
|
|
12
12
|
_Example `export-demo` in the Plate repository: `apps/www/src/registry/examples/export-demo.tsx`._
|
|
13
13
|
|
|
14
|
-
_Open Export to pick a format,
|
|
14
|
+
_Open Export to pick a format, configure page layout, HTML theme, or Clean copy, and download or copy Markdown._
|
|
15
15
|
|
|
16
16
|
## Toolbar source
|
|
17
17
|
|
|
@@ -31,16 +31,16 @@ included metadata before export.
|
|
|
31
31
|
| Format / Action | Implementation | Output |
|
|
32
32
|
| ------------------- | -------------- | ------ |
|
|
33
33
|
| Word (`.docx`) | `exportDocx(model, { comments, pageNumber, pageSize, projection, source, styles })` from `platejs/docx/export` (omits `styles` when `source` is retained for `review`) | `<stem>.docx` |
|
|
34
|
-
| PDF / Print | `renderStaticHtml(...)` rendered in a light-mode hidden iframe with `@page` size
|
|
34
|
+
| PDF / Print | `renderStaticHtml(...)` rendered in a light-mode sandboxed hidden iframe with `@page` size (defaulting to persisted `PaginationPlugin` `layout.page` settings when present, or `Letter`/`A4`), optional `@bottom-center` page numbers, and `window.print()` | Browser print dialog |
|
|
35
35
|
| Markdown (`.md`) | `model.plugin(MarkdownPlugin).api.serialize({ projection })` (shown when `MarkdownPlugin` is installed) | `<stem>.md` |
|
|
36
|
-
| HTML (`.html`) | `renderStaticHtml(model, { component: EditorStatic, presentation: BaseEditorKit, projection })` from `platejs/static` | `<stem>.html` |
|
|
36
|
+
| HTML (`.html`) | `renderStaticHtml(model, { component: EditorStatic, presentation: BaseEditorKit, projection })` from `platejs/static`, with selectable **Theme** (`Match app`, `Light`, `Dark`) and DOM-matched CSS pruning | `<stem>.html` |
|
|
37
37
|
| Copy MD | `model.plugin(MarkdownPlugin).api.serialize({ projection })` written via `navigator.clipboard.writeText` (footer button when `MarkdownPlugin` is installed; forces `projection: 'accepted'` while Word **Clean copy** is enabled) | Clipboard text |
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Format-specific controls adapt to the selected format:
|
|
40
40
|
|
|
41
|
-
- **Clean copy
|
|
42
|
-
- **Page size
|
|
43
|
-
- **
|
|
41
|
+
- **Word (`.docx`)**: **Clean copy** forces `projection: 'accepted'`, skips `toDocxComments`, and omits retained Word source packages so external copies contain accepted text only. **Page size** defaults to **Original** when a retained Word source is present (keeping exact byte-for-byte reuse on unchanged documents) or **Letter** otherwise, with **Letter** and **A4** presets. **Page numbers** enables `pageNumber: true` to add a page-number footer.
|
|
42
|
+
- **PDF / Print**: **Page size** defaults to **Document** when persisted `PaginationPlugin` `layout.page` settings exist (or **Letter** otherwise) with **Letter** and **A4** presets. **Page numbers** adds CSS Paged Media `@bottom-center` page numbering (`counter(page) / counter(pages)`).
|
|
43
|
+
- **HTML (`.html`)**: **Theme** chooses **Match app**, **Light**, or **Dark**, independent of the host app's current dark mode setting.
|
|
44
44
|
|
|
45
45
|
Every format captures the same complete document and explicit authored
|
|
46
46
|
projection from `useModelEditor()`. Export reads model content rather than the
|
|
@@ -55,9 +55,7 @@ static component, HTML export draws its content without one and adds a
|
|
|
55
55
|
`missing-static-presentation` warning. Word export compiles the model directly
|
|
56
56
|
to OOXML through installed `formats.docx` mappings and optional typed `styles`.
|
|
57
57
|
|
|
58
|
-
The HTML file
|
|
59
|
-
classes. Cross-origin stylesheets stay as links. Print / Save as PDF always
|
|
60
|
-
prints on white paper regardless of the app's dark mode setting.
|
|
58
|
+
The HTML file prunes unused host-site CSS rules against the rendered document while keeping theme/base layers, `:root`/`.dark` tokens, `@font-face`, and matched Tailwind rules, and copies the page's `body` classes. Cross-origin stylesheets stay as links. Print / Save as PDF always prints on white paper inside a sandboxed hidden iframe regardless of the app's dark mode setting.
|
|
61
59
|
|
|
62
60
|
## Suggestions
|
|
63
61
|
|
|
@@ -95,4 +93,4 @@ _Registry item `docx-export`: `npx shadcn@latest add @plate/docx-export`._
|
|
|
95
93
|
|
|
96
94
|
## Pro and Business
|
|
97
95
|
|
|
98
|
-
Plate Pro ships `@plate-pro/docs-press` for `/llms.txt`, `.md`, CSS `@page`, and Typst PDF publishing workers, plus `@plate-pro/disclosure` for clean audience exports across DOCX, HTML, Markdown, plain text, and JSON. Plate Business adds `@plate-business/compliance-pdf` for zero-network AST-redacted compliance PDFs with forensic watermarks and signed SHA-256 attestations. See [Pricing](/pricing).
|
|
96
|
+
Plate Pro ships `@plate-pro/docs-press` for `/llms.txt`, `.md`, CSS `@page`, and Typst PDF publishing workers, `@plate-pro/emailpress` for single-source Bento newsletter compilation into Outlook/Gmail/dark-mode table HTML email with Resend Batch, Cloudflare D1, and RFC 8058 one-click unsubscribe, plus `@plate-pro/disclosure` for clean audience exports across DOCX, HTML, Markdown, plain text, and JSON. Plate Business adds `@plate-business/compliance-pdf` for zero-network AST-redacted compliance PDFs with forensic watermarks and signed SHA-256 attestations, plus `@plate-business/security-kernel` server-side subscriber-tier paywall stripping, per-grant broadcast isolation, `pep1.` publication seals, and `plate verify` leak CI probes. See [Pricing](/pricing).
|
package/dist/docs/field.md
CHANGED
|
@@ -680,4 +680,4 @@ Plain text, through `serializePlainText` from `platejs`, writes the same text as
|
|
|
680
680
|
|
|
681
681
|
## Pro and Business
|
|
682
682
|
|
|
683
|
-
Plate Pro ships `@plate-pro/procedures` for conditional workflow branch gating built on `platejs/field`. Plate Business adds `@plate-business/security-kernel`
|
|
683
|
+
For conditional `if`/`else` clauses, repeating table rows, schema-derived intake forms, and local batch mail-merge over `platejs/field` and `platejs/lock`, install the MIT `@plate/template` registry item (previewed at `/blocks/template-demo`). Plate Pro ships `@plate-pro/templates` (Cloudflare Worker/D1 intake, mail-merge, and sequential freeze-at-send signing handlers) and `@plate-pro/procedures` for conditional workflow branch gating built on `platejs/field`. Plate Business adds `@plate-business/security-kernel` (`SchemaFillFirewall`, zero-oracle server clause pruning, cross-row mail-merge isolation, and `pts1.` WORM signing attestation alongside section and field ACL redaction) and `plate verify` CI probes. See [Pricing](/pricing).
|
package/dist/docs/footnote.md
CHANGED
|
@@ -537,4 +537,4 @@ _Verified by 4 automated tests._
|
|
|
537
537
|
|
|
538
538
|
## Pro and Business
|
|
539
539
|
|
|
540
|
-
For
|
|
540
|
+
For multi-target Typst, CSP-locked Tufte HTML, and Word OOXML `SEQ`/`REF` citation compilation with BibTeX and CSL styles, Plate Pro ships `@plate-pro/citations` alongside `@plate-pro/sources` (cross-document backlinks and drift checks) and `@plate-pro/docs-press` (Typst and CSS `@page` PDF publishing). For self-hosted dataroom ethical-wall isolation, corpus-grounded citation admission (`verifyCitations`), WORM citation audit chains, and `plate verify` hallucination probes, Plate Business ships `@plate-business/security-kernel` and `@plate-business/security-proof`. See [Pricing](/pricing).
|
package/dist/docs/link.md
CHANGED
|
@@ -287,4 +287,6 @@ link.api.unlink();
|
|
|
287
287
|
|
|
288
288
|
## Pro and Business
|
|
289
289
|
|
|
290
|
-
For cross-document links that survive page renames, Plate Pro ships `@plate-pro/sources` with a D1 and in-memory backlink index, cycle-guarded transclusion, and workspace citation drift checks alongside the `Potion v2` and `Paper v2` flagship templates.
|
|
290
|
+
For cross-document links that survive page renames, Plate Pro ships `@plate-pro/sources` with a D1 and in-memory backlink index, cycle-guarded transclusion, and workspace citation drift checks alongside the `Potion v2` and `Paper v2` flagship templates.
|
|
291
|
+
|
|
292
|
+
For live inline GitHub PR, Linear issue, and HubSpot CRM status chips (`@plate/smart-chip`, where documents store canonical URLs only and Markdown exports degrade to plain links), Plate Pro ships `@plate-pro/smart-chips` (a self-hosted Cloudflare Worker connector and tenant-bound webhook cache) and Plate Business extends `@plate-business/security-kernel` and `plate verify` CI with AES-256-GCM AAD-bound per-viewer OAuth token isolation, SSRF guards, wire-level field redaction, and CRDT metadata smuggle protection. See [Pricing](/pricing).
|
package/dist/docs/lint.md
CHANGED
|
@@ -432,6 +432,24 @@ Replace a finding's text with one of its fixes, as its own undo step.
|
|
|
432
432
|
| `severity` | `'error' \| 'info' \| 'warning'` | The severity of the rule's findings. |
|
|
433
433
|
| `check` | `(text: string, context: { block: Element; editor: Editor; signal: AbortSignal }) => Iterable<LintMatch> \| PromiseLike<Iterable<LintMatch>>` | Checks one block's content text (with `U+FFFC` at each inline void). Each `LintMatch` is `{ start, end, message, fixes? }`, with UTF-16 offsets into `text` and optional `string \| LintFix` fixes. |
|
|
434
434
|
|
|
435
|
+
## Compliance guardrails
|
|
436
|
+
|
|
437
|
+
Install the copied `guardrails` item alongside `lint` to enforce terminology, banned claims (with optional cross-block disclosures), and checksummed DLP detectors (Luhn credit cards, SSN, IBAN, AWS keys, private keys, and API tokens) over `BaseLintPlugin`:
|
|
438
|
+
|
|
439
|
+
```bash
|
|
440
|
+
npx shadcn@latest add @plate/guardrails
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
_Example `guardrails-demo` in the Plate repository: `apps/www/src/registry/examples/guardrails-demo.tsx`._
|
|
444
|
+
|
|
445
|
+
_Switch compliance presets, inspect the AI draft preview gate before applying, fix evasion-resistant banned claims and test secrets with one click, or add the FINRA disclosure to clear cached claim findings across blocks._
|
|
446
|
+
|
|
447
|
+
`guardrails-engine.ts` normalizes default-ignorable characters, combining marks, `NFKC` compatibility forms, Cyrillic and Greek lookalikes, and bidi override spans back to exact UTF-16 offsets while suppressing fixes that would split multi-character ligatures. In collaborative apps enforcing server-side `onAdmit` policy rules, live `BaseLintPlugin` squiggles flag edits as the user types while refused sync batches surface through the sync client's `keptItems()` review queue.
|
|
448
|
+
|
|
449
|
+
## Pro and Business
|
|
450
|
+
|
|
451
|
+
For teams scaling compliance guardrails into production workflows, [Plate Pro](/pricing) includes `@plate-pro/guardrails` (Vale-compatible rulepack import, org-over-team precedence merging with SHA-256 pinning, LanguageTool `AnnotatedText` and grounded LLM adapters with length-preserving pre-egress DLP scrubbing, and a Cloudflare check Worker deployed via `plate-deploy-cloudflare`). [Plate Business](/pricing) adds server-side `onAdmit`, comment-mutation, and pre-export compliance gates inside `@plate-business/security-kernel` and `@plate-business/compliance-pdf` plus automated evasion and export-leak CI checks in `plate verify`.
|
|
452
|
+
|
|
435
453
|
## Related docs
|
|
436
454
|
|
|
437
455
|
- [Find](/docs/find)
|
package/dist/docs/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Plate docs for platejs@54.0.0-beta.
|
|
1
|
+
# Plate docs for platejs@54.0.0-beta.15
|
|
2
2
|
|
|
3
3
|
These pages match the installed `platejs` version. A `/docs/<path>` link in a page is the file `<path>.md` in this folder when the list below names it, and `/docs` is `index.md`. Read the pages your task needs before you write editor code.
|
|
4
4
|
|
|
@@ -113,6 +113,7 @@ These pages match the installed `platejs` version. A `/docs/<path>` link in a pa
|
|
|
113
113
|
- [Markdown](markdown.md) (`platejs/markdown`): Parse Markdown documents, slices, and inline content, and serialize Plate documents to Markdown.
|
|
114
114
|
- [Media](media.md) (`platejs/media`): Embed and manage images, videos, audio, files, and external embeds.
|
|
115
115
|
- [Mention](mention.md) (`platejs/mention`): Inline markable void mentions completed from text typed after a trigger.
|
|
116
|
+
- [Mobile WebView](mobile.md): Embed a Plate editor in Expo, React Native, SwiftUI, Android, or Flutter through a typed JSON postMessage bridge.
|
|
116
117
|
- [Multi Select](multi-select.md): Select, copy, drag, and delete multiple blocks at once.
|
|
117
118
|
- [Navigation Feedback](navigation-feedback.md): Highlight the destination of a TOC, footnote, search, or custom navigation jump.
|
|
118
119
|
- [Pagination](pagination.md) (`platejs/pagination`): Render a Plate editor on measured pages with zero-remount Pageless and Paged switching.
|
package/dist/docs/lock.md
CHANGED
|
@@ -290,4 +290,4 @@ Helper from `platejs/ai` that serializes the active selection to Markdown withou
|
|
|
290
290
|
|
|
291
291
|
## Pro and Business
|
|
292
292
|
|
|
293
|
-
Plate Pro ships `@plate-pro/disclosure` for audience document projection and compartmentalized counterparty sub-rooms. Plate Business adds `@plate-business/security-kernel` for server-enforced section and field ACLs,
|
|
293
|
+
Plate Pro ships `@plate-pro/disclosure` for audience document projection and compartmentalized counterparty sub-rooms, `@plate-pro/playbooks` for versioned clause playbooks and counterparty Word `.docx` redline round-trips with WebCrypto SHA-256 receipts, and `@plate-pro/approvals` for section `CODEOWNERS` sign-offs, auto-lock on approval, expiring `Verified` freshness cron workers, and revision-pinned read confirmations. Plate Business adds `@plate-business/security-kernel` for server-enforced section and field ACLs, `policy.playbooks` ethical-wall isolation and deviation ledgers, `onAdmit` approved-section lock authority and stale-approval dismissal, 21 CFR Part 11 WORM sign-off and read-confirmation ledgers, spec-to-code execution gates, and wire-level read redaction, verified by `plate verify`. See [Pricing](/pricing).
|
package/dist/docs/markdown.md
CHANGED
|
@@ -817,6 +817,10 @@ Exports from `platejs/markdown`:
|
|
|
817
817
|
| `parseMarkdown` | `const` | `parseMarkdown: (source: string, options: MarkdownParseOptions) => MarkdownDocumentParseResult` | - |
|
|
818
818
|
| `serializeMarkdown` | `const` | `serializeMarkdown: (document: EditorDocumentValue, options: MarkdownSerializeOptions) => MarkdownSerializeResult` | - |
|
|
819
819
|
|
|
820
|
+
## Git/MDX Sync Workbench
|
|
821
|
+
|
|
822
|
+
For visual editing over Git `.md` and `.mdx` repositories without reformatting untouched blocks, YAML/TOML comments, reference definitions, or MDX islands, install the copied MIT workbench (`npx shadcn@latest add @plate/gitsync`) or try the live demo at [Git/MDX Sync & Living RFCs](/blocks/gitsync-demo).
|
|
823
|
+
|
|
820
824
|
## Pro and Business
|
|
821
825
|
|
|
822
|
-
Plate Pro ships `@plate-pro/docs-press` for `llmstxt.org` v2.1 `/llms.txt`, per-page `.md`, and `Accept: text/markdown` content negotiation,
|
|
826
|
+
Plate Pro ships `@plate-pro/docs-press` for `llmstxt.org` v2.1 `/llms.txt`, per-page `.md`, and `Accept: text/markdown` content negotiation, `@plate-pro/disclosure` for clean audience Markdown exports, and `@plate-pro/gitsync` for diff-minimal GitHub and GitLab `.md`/`.mdx` pull requests, frontmatter preservation, and living RFC checklists deployed with `plate-deploy-cloudflare`. Plate Business adds `@plate-business/security-kernel` for redacted `/llms.txt` feeds plus pre-merge secret scanning, internal-section redaction, offline link/anchor checks, signed `pgs1.` seals, and `plate verify` CI probes. See [Pricing](/pricing).
|