platejs 54.0.0-beta.16 → 54.0.0-beta.17
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-Ct9HgFxN.d.ts → EditorStatic-C2vnO5Wd.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-DzRRkQEw-CgYPu3VD.d.ts → authored-Bx55e8NK-B-3-7x2a.d.ts} +3 -3
- package/dist/clipboard-format-key-UUQwwD7--BvFhdd3c.d.ts +1 -0
- package/dist/code-block/codemirror/index.d.ts +2 -2
- package/dist/{comment-anchor.internal-BQwum_e0.d.ts → comment-anchor.internal-BOS8OnAc.d.ts} +2 -2
- package/dist/compiler/index.d.ts +3 -3
- package/dist/{core-CKK1Wcvx.d.ts → core-Cd7dbk4H.d.ts} +4 -4
- package/dist/core.js +2 -2
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/business/security-kernel.md +1 -1
- package/dist/docs/business/security-proof.md +4 -4
- package/dist/docs/business/verify.md +3 -2
- package/dist/docs/business.md +8 -6
- package/dist/docs/comparison.md +1 -1
- package/dist/docs/license.md +1 -1
- package/dist/docs/llms.txt +3 -3
- package/dist/docs/prompt-editor.md +21 -2
- package/dist/docs/suggestion.md +5 -4
- package/dist/docx/export/index.d.ts +6 -6
- 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/facade.js +2 -2
- 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/footnote/lib/BaseFootnotePlugin.js +56 -47
- 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 +3 -3
- package/dist/features/table/index.d.ts +2 -2
- package/dist/features/toc/index.d.ts +2 -2
- package/dist/features/toc/index.js +2 -2
- package/dist/features/toc/lib/BaseTocPlugin.js +43 -3
- 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-CaciFctG.d.ts → htmlConversion-B_pxnQjT.d.ts} +2 -2
- package/dist/{htmlTypes-B_I5Lssd.d.ts → htmlTypes-BNz6ylqQ.d.ts} +3 -3
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-CACNwJEu.d.ts → index-B3UDn5_N.d.ts} +3 -3
- package/dist/{index-DindJhGn.d.ts → index-BBL9Mqec.d.ts} +3 -3
- package/dist/{index-BSNVp4gy.d.ts → index-BLoL3-VF.d.ts} +3 -3
- package/dist/{index-bl-hlU9F.d.ts → index-BVFPEGBD.d.ts} +3 -3
- package/dist/{index-BGVOWM3m.d.ts → index-BcrleRIo.d.ts} +2 -2
- package/dist/{index-BTkXPdV9.d.ts → index-BphzyHPD.d.ts} +3 -3
- package/dist/{index-DxVI7KtY.d.ts → index-BxSXY0kj.d.ts} +5 -5
- package/dist/{index-CnuAsH-Z-Dq6qg9gj.d.ts → index-C3tSB92f-D0tqBxnQ.d.ts} +4 -4
- package/dist/{index-qqzQ6zTT.d.ts → index-C7vqVA4I.d.ts} +4 -4
- package/dist/index-CNEotALg.d.ts +1 -0
- package/dist/{index-B7jiy8UB.d.ts → index-COzkHycB.d.ts} +3 -3
- package/dist/{index-DQifDOdN.d.ts → index-CQhh6Byb.d.ts} +3 -3
- package/dist/{index-B-9dXekI.d.ts → index-CTsfhXok.d.ts} +11 -3
- package/dist/{index-Bd0SE9lP.d.ts → index-CvAdLvBh.d.ts} +3 -3
- package/dist/{index-D2jmlDrZ.d.ts → index-D9mlOgk4.d.ts} +3 -3
- package/dist/index-DH5TuEJa.d.ts +3 -0
- package/dist/{index-ByUPDmsI.d.ts → index-DPQEcaX7.d.ts} +7 -7
- package/dist/index-DPh3NMjm.d.ts +1 -0
- package/dist/{index-Cg-q8Ss-.d.ts → index-DYqSYQxA.d.ts} +3 -3
- package/dist/{index-B271U8r2.d.ts → index-DhwbLtre.d.ts} +1 -1
- package/dist/{index-DH9bh6YY.d.ts → index-Dpf8e1Y4.d.ts} +3 -3
- package/dist/{index-Cqq_b-Sn-TBEDudEV.d.ts → index-Er5BwoQd-CULo8twl.d.ts} +2 -2
- package/dist/{index-CRh68kEf.d.ts → index-LCIv8Dt5.d.ts} +10 -6
- package/dist/{index-DqALj9XZ-BCheiTLA.d.ts → index-Y6ZYqjYI-C1ZpAURM.d.ts} +1 -1
- package/dist/{index-BzR26EE7.d.ts → index-opUVqmJA.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- 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/index.d.ts +4 -4
- package/dist/{protocol-CK20UFyh-C2Tx1BdV.d.ts → protocol-D7JsIu14-DYm2shgH.d.ts} +1 -1
- package/dist/react/authored/index.d.ts +4 -4
- package/dist/react/core.js +3 -3
- 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 +7 -7
- package/dist/react/index.js +3 -3
- package/dist/react/stores/plate/useEditor.js +36 -1
- package/dist/react/virtualized.d.ts +3 -3
- package/dist/refusal-CA1A2E_8-BvFhdd3c.d.ts +1 -0
- package/dist/{registerEditorTools-4030DIdA.d.ts → registerEditorTools-BqW9lr_K.d.ts} +4 -4
- package/dist/root.js +2 -2
- package/dist/shared-room-Mvp6W5j0-BvFhdd3c.d.ts +1 -0
- package/dist/skills/plate/references/pricing.md +1 -1
- package/dist/skills/plate/references/testing.md +2 -2
- package/dist/{source-DVbe2p_m.d.ts → source-CVQeCWQ6.d.ts} +3 -3
- package/dist/static/index.d.ts +5 -5
- package/dist/{storage-olMCaEsK-D-BEdj8v.d.ts → storage-C9UY_rG8-BEd5yMOY.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-CBtHTR56-BBnLzCIF.d.ts → transport-LHPF4fmj-DrGlFZ_L.d.ts} +1 -1
- package/dist/{tx-only-SGgp28Qz-D9c5XITh.d.ts → tx-only-BYWUDN_r-CyQXNQp-.d.ts} +217 -2
- package/dist/{widths-CaPLQ7uL.d.ts → widths-BmkP0i8h.d.ts} +5 -5
- package/package.json +2 -2
- package/dist/clipboard-format-key-BW_q3N5b-DqQHyBaw.d.ts +0 -1
- package/dist/index-BQLwM85z.d.ts +0 -1
- package/dist/index-CeuLyH8k.d.ts +0 -1
- package/dist/index-q8_e5vep.d.ts +0 -3
- package/dist/refusal-C-X4EzJN-DqQHyBaw.d.ts +0 -1
- package/dist/shared-room-gdk53TV5-DqQHyBaw.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 { Aa as NodeKey, Ao as PluginDependencyReferenceFor, Cu as Value, Li as HistoryOutcome, Oo as PluginDependencyContractReference, Ql as TransferCheck, Ti as Element$1, Vs as RootKey, Zl as TransferApi, au as TransferOutcome, bt as EditorDocumentValue, cr as EditorSelectorDependencies, d as AnyEditor, da as NamedRootKey, hs as Range, k as DecorationAttributes, kl as Text, li as EditorUpdatePolicy, lu as TransferPlugin, mo as Plugin, nu as TransferIntent, oo as Path, qa as NodeTarget, tu as TransferInput, xl as StateFieldValueInput } from "./tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import "./htmlTypes-BNz6ylqQ.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-BcrleRIo.js";
|
|
4
|
+
import { o as Editor$2, st as BasePluginInput } from "./core-Cd7dbk4H.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-BqW9lr_K.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 {
|
|
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 {
|
|
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 { Aa as NodeKey, Cu as Value, P as Descendant, Vs as RootKey, bu as TxDeclaredMethod, hs as Range } from "../../tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import "../../htmlTypes-BNz6ylqQ.js";
|
|
3
|
+
import { Ra as DefinitionOf, ao as NormalizePluginSelectors, fo as PluginReference, p as BasePlugin, uo as PluginDependency, xo as PluginSelectorMethods } from "../../core-Cd7dbk4H.js";
|
|
4
|
+
import { Dt as Plugin, ct as Editor } from "../../index-LCIv8Dt5.js";
|
|
5
|
+
import { V as EditorVisibilityFilter, _ as EditorAgentPresence, g as EditorAgentOptions, i as AILockedBlockRef, p as EditorAgent, t as RegisterEditorToolsOptions } from "../../registerEditorTools-BqW9lr_K.js";
|
|
6
|
+
import { dt as RangeGeometry } from "../../EditorStatic-C2vnO5Wd.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-BphzyHPD.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-BYWUDN_r-CyQXNQp-.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-Bx55e8NK-B-3-7x2a.js";
|
|
3
|
+
import { n as projectAuthoredDocument, t as AuthoredFormatProjection } from "../index-opUVqmJA.js";
|
|
4
|
+
import { n as suggestionColorOf, r as AuthoredPlugin, t as AUTHORED_COLOR_COUNT } from "../index-DPQEcaX7.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 {
|
|
2
|
-
import "./refusal-
|
|
3
|
-
import { r as Comparison } from "./index-
|
|
1
|
+
import { Aa as NodeKey, Ao as PluginDependencyReferenceFor, Ci as EditorViewOptions, Dc as SchemaPropertyCopyPolicy, Ic as SchemaPropertyRole, Lc as SchemaPropertySplitPolicy, Lt as EditorJsonObject, Pc as SchemaPropertyLandingPolicy, Rc as SchemaPropertyTypeChangePolicy, Rt as EditorJsonValue, Su as TxOnlyMethod, T as ContentSlice, Xo as Point, bu as TxDeclaredMethod, d as AnyEditor, hs as Range, kc as SchemaPropertyExclusiveGroup, mo as Plugin, na as Location, oo as Path, rs as PropertyJsonDescriptor, ss as PropertySetDescriptor } from "./tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import "./refusal-CA1A2E_8-BvFhdd3c.js";
|
|
3
|
+
import { r as Comparison } from "./index-Er5BwoQd-CULo8twl.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-BYWUDN_r-CyQXNQp-.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../index-
|
|
2
|
-
import { S as ExternalTextAdapter } from "../../EditorStatic-
|
|
1
|
+
import "../../index-LCIv8Dt5.js";
|
|
2
|
+
import { S as ExternalTextAdapter } from "../../EditorStatic-C2vnO5Wd.js";
|
|
3
3
|
import { Extension } from "@codemirror/state";
|
|
4
4
|
type CodeBlockCodeMirrorConfig = Readonly<{
|
|
5
5
|
language?: string;
|
package/dist/{comment-anchor.internal-BQwum_e0.d.ts → comment-anchor.internal-BOS8OnAc.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./core-
|
|
1
|
+
import { da as NamedRootKey } from "./tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import "./core-Cd7dbk4H.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 {
|
|
2
|
-
import { h as EditorApplicationSchema } from "../htmlTypes-
|
|
3
|
-
import { ft as EditorPropertyTypes, st as BasePluginInput, tt as EditorCompilation } from "../core-
|
|
1
|
+
import { Cn as EditorSchemaContractContentProgram, Dn as EditorSchemaContractRoot, En as EditorSchemaContractElement, Ku as diffEditorSchemaContracts, Sn as EditorSchemaContractChangeKind, Tn as EditorSchemaContractDiff, _d as readEditorSchemaContract, bn as EditorSchemaContract, wn as EditorSchemaContractContentRoot, xn as EditorSchemaContractChange } from "../tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "../htmlTypes-BNz6ylqQ.js";
|
|
3
|
+
import { ft as EditorPropertyTypes, st as BasePluginInput, tt as EditorCompilation } from "../core-Cd7dbk4H.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
|
|
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 { $r as EditorTransactionSpecBuilder, $t as EditorNodesReadOptions, A as DecorationRefresh, Ac as SchemaPropertyHandle, Ao as PluginDependencyReferenceFor, Ar as EditorTextChangeContext, Bt as EditorLevelsOptions, Cc as SchemaNodeTypeProvider, Cu as Value, Do as PluginDefinitionInput, Dr as EditorStateView, E as ContentSlice$1, Ea as NodeInsertNodesOptions, Ec as SchemaProperty, Eo as PluginDefinition, Fo as PluginPortal, Ft as EditorInstalledUpdateGroups, Ga as NodeSetNodesOptions, Gc as SchemaText, Gl as TextTarget, Gs as SchemaContentDefault, Gt as EditorNextOptions, H as Editor$1, Hn as EditorSchemaPlugin, Ho as PluginReference$1, Hs as SchemaBlockContentOptions, Ht as EditorLifecycleErrorSink, Ii as HistoryApi, Jc as SchemaTextProperty, Ji as InitialValue, Jo as PluginWitnessFor, Kt as EditorNodeChangeContext, M as DefinitionOf$1, Mn as EditorSchemaDerivedDefinition, Mo as PluginInstalledCapabilitiesOf, Mr as EditorToggleBlockOptions, Na as NodeMatch, Nc as SchemaPropertyKey, Ni as ElementOf, Nn as EditorSchemaElement, O as Decoration, Oc as SchemaPropertyDefinition, On as EditorSchemaContribution, Oo as PluginDependencyContractReference, P as Descendant, Pa as NodeMatchPredicate, Qc as SchemaTypesTarget, Qn as EditorSchemaSourceProvider, R as DescendantIn, Rt as EditorJsonValue, Sc as SchemaKeyPrefix, Sl as StripTxOnly, Sr as EditorStateSelectionApi, Ta as NodeIn, Tc as SchemaPluginsOf, Ti as Element$1, Tu as WithNodeTarget, U as EditorAboveOptions, Ua as NodeSelection, Un as EditorSchemaPluginProvider, Uo as PluginTypeProvider, Va as NodeRemoveNodesOptions, Vs as RootKey, W as EditorBlockOptions, Wc as SchemaTarget, Wo as PluginTypeProviderOf, Ws as SchemaContent, Xo as Point$1, Xs as SchemaContentRootContribution, Xt as EditorNodeTypeProvider, Yc as SchemaTextPropertyDefinition, Yl as TransactionSpec, Yt as EditorNodeGetOptions, Zc as SchemaTextPropertyOptions, Zl as TransferApi, Zr as EditorTransactionSelectionApi, Zt as EditorNodeUnsetOptions, _i as EditorUpdateTransactionProvider, ac as SchemaElementFor, as as PropertyNumberDescriptor, ba as NodeEntry, bn as EditorSchemaContract, bo as PluginCapabilities, bt as EditorDocumentValue, bu as TxDeclaredMethod, ca as MaximizeMode, ci as EditorUpdateMethods, cn as EditorReadMethodTree, dc as SchemaElementPropertyDefinition, ds as PropertyValueDescriptor, ea as LeafPosition, en as EditorParentOptions, eo as NodeTypeSelector, es as PropertyBooleanDescriptor, fa as Node$1, fi as EditorUpdateResult, fo as PersistedSelection, gi as EditorUpdateTransactionOf, hi as EditorUpdateTransaction, hs as Range, ic as SchemaElementConstructionPropertiesFor, k as DecorationAttributes, kl as Text$1, kn as EditorSchemaDeclaration, ko as PluginDependencyReference, kr as EditorStateViewProvider, kt as EditorGenericMethod, lc as SchemaElementPropertiesFor, li as EditorUpdatePolicy, ln as EditorReadMethods, ls as PropertyStringDescriptor, lt as EditorCommitContext, lu as TransferPlugin$1, mo as Plugin, ms as PropertyValueOptions, mt as EditorCoreStateView, na as Location, ns as PropertyEnumDescriptor, oo as Path, os as PropertyOptionsOf, p as AuthoredProjectionDiagnostic, ps as PropertyValueOf, qa as NodeTarget, qc as SchemaTextProperties, rc as SchemaElement, rs as PropertyJsonDescriptor, si as EditorUpdateContext, sn as EditorReadMethodRecord, sr as EditorSelectionBlockOptions, tc as SchemaContentRule, tn as EditorPreviousOptions, tt as EditorCommandDispatch, uc as SchemaElementProperty, uu as TransferRead, v as BlockInsertOptions$1, vc as SchemaElementTypes, vi as EditorUpdateValueFromPlugin, vt as EditorDirectUpdate, wo as PluginContribution, xi as EditorValueTypeProvider, xr as EditorStateSchemaApi, xu as TxMethodDeclarations, yt as EditorDocumentRecords, zl as TextInsertTextOptions, zr as EditorTransactionChangeContext } from "./tx-only-BYWUDN_r-CyQXNQp-.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-BNz6ylqQ.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-BcrleRIo.js";
|
|
4
|
+
import { a as HistoryStateApi, i as HistoryPlugin$1, o as HistoryTxApi } from "./index-DhwbLtre.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";
|
package/dist/core.js
CHANGED
|
@@ -20,6 +20,6 @@ import { PLUGINS } from "./utils/plate-keys.js";
|
|
|
20
20
|
import { SingleBlockPlugin } from "./utils/plugins/SingleBlockPlugin.js";
|
|
21
21
|
import { SingleLinePlugin } from "./utils/plugins/SingleLinePlugin.js";
|
|
22
22
|
import { TrailingBlockPlugin } from "./utils/plugins/TrailingBlockPlugin.js";
|
|
23
|
-
import { ContentSlice, DocumentChange, EditorSchemaValidationError, ElementApi, LocationApi, NodeApi, PathApi, PluginPublicationError, PointApi, RangeApi, SelectionApi, TextApi, applyRecordCrdtOp, authoredVeto, compareFractionalKeys, compareRecordStamp, createEditorView, createRecordCrdtState, createRecordStamp, defineCommand, defineEditorSchema, defineEffect, definePluginCompartment, definePluginPoint, defineRecordSet, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, fractionalKeyBetween, fractionalKeysBetween, getEditorRuntimeOwner, isEditor, isValidFractionalKey, locateAt, materializeRecordCrdtState, mergeRecordCrdtState, nodeWriteVeto, property, schema, screenReaderAnnouncementEffect, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection } from "plitejs";
|
|
23
|
+
import { ContentSlice, DocumentChange, EditorIndexCycleError, EditorSchemaValidationError, ElementApi, LocationApi, NodeApi, PathApi, PluginPublicationError, PointApi, RangeApi, SelectionApi, TextApi, applyRecordCrdtOp, authoredVeto, compareFractionalKeys, compareRecordStamp, createEditorView, createRecordCrdtState, createRecordStamp, defineCommand, defineEditorSchema, defineEffect, defineIndex, definePluginCompartment, definePluginPoint, defineRecordSet, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, fractionalKeyBetween, fractionalKeysBetween, getEditorRuntimeOwner, isEditor, isValidFractionalKey, locateAt, materializeRecordCrdtState, mergeRecordCrdtState, nodeWriteVeto, property, schema, screenReaderAnnouncementEffect, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection } from "plitejs";
|
|
24
24
|
export * from "plitejs";
|
|
25
|
-
export { AffinityPlugin, BaseParagraphPlugin, ContentSlice, DebugPlugin, DocumentChange, EditorError, EditorSchemaValidationError, ElementApi, HistoryPlugin, HtmlPlugin, IS_APPLE, LocationApi, NodeApi, PLUGINS, PathApi, PluginPublicationError, PointApi, RangeApi, SelectionApi, SingleBlockPlugin, SingleLinePlugin, TextApi, TrailingBlockPlugin, TransferPlugin, applyRecordCrdtOp, authoredVeto, compareFractionalKeys, compareRecordStamp, createBlockFenceInputRule, createEditor, createEditorView, createMarkInputRule, createRecordCrdtState, createRecordStamp, createTextSubstitutionInputRule, defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginCompartment, definePluginPoint, defineRecordSet, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, fractionalKeyBetween, fractionalKeysBetween, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, inputRuleVeto, isDefined, isEditor, isUrl, isValidFractionalKey, locateAt, matchBlockStart, matchDelimitedInline, materializeRecordCrdtState, mergeRecordCrdtState, nanoid, nodeWriteVeto, property, schema, screenReaderAnnouncementEffect, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection };
|
|
25
|
+
export { AffinityPlugin, BaseParagraphPlugin, ContentSlice, DebugPlugin, DocumentChange, EditorError, EditorIndexCycleError, EditorSchemaValidationError, ElementApi, HistoryPlugin, HtmlPlugin, IS_APPLE, LocationApi, NodeApi, PLUGINS, PathApi, PluginPublicationError, PointApi, RangeApi, SelectionApi, SingleBlockPlugin, SingleLinePlugin, TextApi, TrailingBlockPlugin, TransferPlugin, applyRecordCrdtOp, authoredVeto, compareFractionalKeys, compareRecordStamp, createBlockFenceInputRule, createEditor, createEditorView, createMarkInputRule, createRecordCrdtState, createRecordStamp, createTextSubstitutionInputRule, defineCommand, defineEditorSchema, defineEffect, defineIndex, defineInputRule, definePlugin, definePluginCompartment, definePluginPoint, defineRecordSet, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, fractionalKeyBetween, fractionalKeysBetween, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, inputRuleVeto, isDefined, isEditor, isUrl, isValidFractionalKey, locateAt, matchBlockStart, matchDelimitedInline, materializeRecordCrdtState, mergeRecordCrdtState, nanoid, nodeWriteVeto, property, schema, screenReaderAnnouncementEffect, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection };
|
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-Er5BwoQd-CULo8twl.js";
|
|
2
|
+
import "../index-CNEotALg.js";
|
|
3
3
|
export { ApplyDiffResult, ComparedChange, Comparison, ComparisonCorrespondence, ComparisonDiagnostic, ComparisonEffect, ComparisonSnapshot, ComparisonSpan, MergeConflict, MergeConflictProperty, MergeConflictReason, MergeRegion, MergeResolution, MergeResult, PrepareDiffResult, PreparedDiff, applyDiff, compare, merge, prepareDiff };
|
|
@@ -14,7 +14,7 @@ Enforce server-side redaction, propose-only AI agent sandboxes, mutation budgets
|
|
|
14
14
|
## What it enforces
|
|
15
15
|
|
|
16
16
|
- **Wire-level read redaction, field ACLs, and aggregate oracle guards:** Strips restricted blocks, heading sections, named document tabs, synced components, comments, backlinks, ink passages and rounds, and record fields before bytes leave the server, and enforces contributor-level `k`-anonymity, `(1, k)`/`p%` dominance, and 2D complementary pivot suppression on aggregate-only chart and pivot queries (`evaluateSecureAggregateQuery`).
|
|
17
|
-
- **Propose-only AI agent sandboxes, context-chip ACLs, and
|
|
17
|
+
- **Propose-only AI agent sandboxes, context-chip ACLs, Agent Composer, and Managed Workspace Policy:** Confines agent grants to `access: 'suggest'` and `decide: false`, enforces fail-closed `@` and `#` context-chip ref expansion with untrusted-data framing (`expandContextRefs`), parameterized command allowlists (`authorizeCommand`), unified Agent Composer turn admission (`authorizeComposerTurn`), and fail-closed Managed Workspace Policy (`policy.agentWorkspace`) enforcing monotonic runtime/interaction mode ceilings, child-agent non-escalation (`authorizeDelegatedAgent`), zero-oracle sanitize-before-redact `@`/`#` Spotlighting (`expandWorkspaceContext`), unconditional secret-taint egress denial (`authorizeUntrustedEgressUrl`), hash-chained WORM workspace audits, and domain-separated `paw1.` receipts.
|
|
18
18
|
- **Mutation budgets and pre-parse frame limits:** Caps ops per commit, change bytes, deleted character ratio, touched blocks, per-actor and room-wide commit rates, and raw WebSocket frame sizes before JSON parsing.
|
|
19
19
|
- **Revision-pinned approvals and signed receipts:** Mints and verifies single-use Ed25519 or HMAC-SHA256 tokens for approvals, change-request comparisons, voting quorums, template signing packets, ink-loop review execution gates (`policy.inkLoop` with `pir1.` receipts), and Git/MDX sync gates.
|
|
20
20
|
- **Tamper-evident WORM audit chains:** Seals admitted commits, refusals, governance sign-offs, and exports into SHA-256 hash chains backed by PostgreSQL or Cloudflare D1, with crash recovery and compaction vetoes before archival.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Security Proof
|
|
2
2
|
|
|
3
|
-
Run
|
|
3
|
+
Run 35 deterministic must-fail security canaries and validate your live security profile in CI before shipping changes.
|
|
4
4
|
|
|
5
5
|
- **Module:** `@plate-business/security-proof` (Plate Business)
|
|
6
6
|
- **Infrastructure:** Local runner or GitHub Actions / CI
|
|
@@ -9,15 +9,15 @@ Run 33 deterministic must-fail security canaries and validate your live security
|
|
|
9
9
|
- **Install / sync:** `npx @platejs/cli sync @plate-business/security-proof`
|
|
10
10
|
- **Setup & pricing:** [Pro Installation](/docs/pro/installation), [Pricing](/pricing), [Account](/account)
|
|
11
11
|
|
|
12
|
-
`@plate-business/security-proof` installs a copy-owned verification suite into `src/server/plate-security/security-proof/`. It checks that your live `PlateSecurityKernel` configuration has core protections enabled and executes all
|
|
12
|
+
`@plate-business/security-proof` installs a copy-owned verification suite into `src/server/plate-security/security-proof/`. It checks that your live `PlateSecurityKernel` configuration has core protections enabled and executes all 35 must-fail security canaries against your real policy and PDF renderer.
|
|
13
13
|
|
|
14
14
|
## What it enforces
|
|
15
15
|
|
|
16
16
|
- **Fail-fast profile readiness gate:** `assertSecurityProfileReady(kernel.profile)` rejects policies missing a non-empty `policyVersion`, redaction, propose-only agent confinement, audit hash chaining, approval gates, or media allowlists before CI runs deeper suites.
|
|
17
|
-
- **
|
|
17
|
+
- **35 deterministic must-fail security canaries:** `runPlateSecurityCanaries(target)` tests wire redaction, agent confinement, mutation budgets, revision-pinned approvals, WORM audit chains, Compliance PDF zero-leak output, multi-agent rooms, section and tab ACLs, context chips, agent composer skill/DLP/steer guards, agent workspace Managed Policy and trust kernel (`agent-workspace-trust-kernel`), press feeds, procedures, sources, records field ACLs, relational rollups, workbook attestation, aggregate oracle small-bucket suppression, role-scoped database portals and Row Owners, row automation SoD locks and SSRF signed webhooks, quarantined CSV/XLSX imports and redacted multi-sheet XLSX exports, decks, comparison receipts, guardrails, playbooks, formal approvals, templates, comments, synced components, Git sync, citations, smart chips, email broadcasts, ink review gates, and board overlay isolation with frame write locks.
|
|
18
18
|
- **Paired positive and negative controls:** Each canary verifies both that your configured guard blocks unauthorized behavior and that removing or omitting the guard trips the check, preventing silent false-green CI runs.
|
|
19
19
|
- **Single-line profile summary for CI logs:** `describeSecurityProfile(kernel.profile)` prints a compact key-value summary of active security boundaries for build logs and compliance evidence.
|
|
20
|
-
- **Direct handoff to `plate verify` CI:** Exports `kernel.profile` directly into `plate-verify.config.ts` so `plate verify --suite sync-security,ai-sandbox` probes the exact same live policy on every pull request.
|
|
20
|
+
- **Direct handoff to `plate verify` CI:** Exports `kernel.profile` directly into `plate-verify.config.ts` so `plate verify --suite sync-security,ai-sandbox,agent-workspace` probes the exact same live policy on every pull request.
|
|
21
21
|
- **Honest scope limits:** Canaries verify the policy, redaction rules, stores, and renderer you wire into `SecurityProofTarget`; they cannot catch bypasses introduced in external application routes that skip the kernel.
|
|
22
22
|
|
|
23
23
|
## Quickstart
|
|
@@ -8,7 +8,8 @@ Run zero-PII formal editor, sync-security, AI-sandbox, and Chromium IME checks i
|
|
|
8
8
|
|
|
9
9
|
- **`editor` suite:** Generates deterministic documents and stateful edit histories from your compiled editor schema to verify crash freedom, schema validity, undo/redo restoration, and Markdown round-trips.
|
|
10
10
|
- **`sync-security` suite:** Spawns in-memory multi-peer sync rooms against your configured policy to check read projection isolation, expired token refusal, forged wire-submit blocking, and `suggest`-only confinement.
|
|
11
|
-
- **`ai-sandbox` suite:** Runs deterministic, zero-LLM-cost confinement checks against server agents to verify hidden and locked block isolation, `suggest`-only writes, stale-revision refusal, ink-loop review execution gates (`ink-loop-review-gate`), media URL allowlists, and (when configured via `--config`) context-chip ACL/injection guards (`expandContextRefs`)
|
|
11
|
+
- **`ai-sandbox` suite:** Runs deterministic, zero-LLM-cost confinement checks against server agents to verify hidden and locked block isolation, `suggest`-only writes, stale-revision refusal, ink-loop review execution gates (`ink-loop-review-gate`), media URL allowlists, and (when configured via `--config`) context-chip ACL/injection guards (`expandContextRefs`), parameterized command allowlists (`authorizeCommand`), and Agent Composer probes (`COMPOSER-SKILL-TOOL-ESCALATION`, `COMPOSER-HASH-REF-ORACLE-LEAK`, `COMPOSER-DLP-PASTE-VOICE-LEAK`, `COMPOSER-STEER-RECEIPT-TAMPER`).
|
|
12
|
+
- **`agent-workspace` suite (opt-in):** Probes `policy.agentWorkspace` Managed Workspace Policy enforcement across five positive-controlled adversarial checks: zero-oracle `@`/`#` context ACLs, Unicode/Spotlighting smuggling and secret-taint egress denial, `$` skill and MCP server allowlists, monotonic mode/child-agent/revoked-`jti`/revision-receipt non-escalation, and hash-chained WORM audit plus `paw1.` receipt tamper detection.
|
|
12
13
|
- **`browser-ime` suite (opt-in):** Runs headless Chromium IME composition, dead-key commit, and clipboard paste round-trip probes against an ephemeral harness or `--url <previewUrl>`.
|
|
13
14
|
- **Monotonic baselines and shrunk counterexamples:** Tracks existing findings with `--baseline`, shrinks new failures to minimal reproducible cases, replays them with `--replay`, emits regression tests with `--emit-test`, and writes SARIF 2.1.0 for GitHub Code Scanning.
|
|
14
15
|
- **Honest scope limits:** `browser-ime` verifies Chromium Blink CDP IME composition, preedit event ordering, dead-key commits, and clipboard paste round-trips only. It does not claim physical Android Gboard, iOS UIKit keyboard, WebKit, or Gecko coverage.
|
|
@@ -50,7 +51,7 @@ PLATE_VERIFY_KEY=$PLATE_API_KEY npx @platejs/cli verify src/editor.ts \
|
|
|
50
51
|
| Flag | Purpose |
|
|
51
52
|
| --- | --- |
|
|
52
53
|
| `--export <name>` | Select one named plugin tuple export when an entry file exports multiple kits. |
|
|
53
|
-
| `--suite <list>` | Comma-separated suites from `editor`, `sync-security`, `ai-sandbox`, and `browser-ime` (default: `editor,sync-security,ai-sandbox`). |
|
|
54
|
+
| `--suite <list>` | Comma-separated suites from `editor`, `sync-security`, `ai-sandbox`, `agent-workspace`, and `browser-ime` (default: `editor,sync-security,ai-sandbox`). |
|
|
54
55
|
| `--config <path>` | Load a `plate-verify.config.ts` file exporting `securityProfile` from [`@plate-business/security-proof`](/docs/business/security-proof) and [`@plate-business/security-kernel`](/docs/business/security-kernel). |
|
|
55
56
|
| `--url <url>`, `--selector <css>` | Target a running preview URL and editable CSS selector in `browser-ime` mode. |
|
|
56
57
|
| `--format <fmt>`, `--out <file>` | Write `text`, `json`, or `sarif` output to stdout or a file; `--summary-out <file>` writes a GitHub Step Summary. |
|
package/dist/docs/business.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Plate Business
|
|
2
2
|
|
|
3
|
-
Enforce self-hosted server security boundaries, run
|
|
3
|
+
Enforce self-hosted server security boundaries, run 35 must-fail security canaries, and gate PRs with plate verify CI.
|
|
4
4
|
|
|
5
|
-
Plate Business (`$4,990/yr` annual, `$416/mo` equiv, Beta rate locked for early organizations, no monthly plan, flat per organization with unlimited developers and own apps) includes everything in [Plate Pro](/docs/pro) plus copy-owned TypeScript server security modules,
|
|
5
|
+
Plate Business (`$4,990/yr` annual, `$416/mo` equiv, Beta rate locked for early organizations, no monthly plan, flat per organization with unlimited developers and own apps) includes everything in [Plate Pro](/docs/pro) plus copy-owned TypeScript server security modules, 35 deterministic must-fail security canaries, and `plate verify` CI running inside your own infrastructure.
|
|
6
6
|
|
|
7
7
|
- **Zero customer PII:** Plate never hosts production sync rooms, never inspects end-user documents, and never phones home at runtime.
|
|
8
8
|
- **Copy-owned TypeScript:** Security modules install into `src/server/plate-security/` via `@platejs/cli sync` with Bearer auth and zero private `.npmrc` packages.
|
|
@@ -26,15 +26,15 @@ npx @platejs/cli skills sync --registry https://api.platejs.org/skills/business
|
|
|
26
26
|
| --- | --- | --- | --- |
|
|
27
27
|
| `@plate-business/security-kernel` | `src/server/plate-security/security-kernel/*` | Unified `createPlateSecurity(policy)` kernel: wire-level `projectRead` redaction, multi-root document tab and synced-block ACLs, propose-only AI agent sandboxes, mutation budgets, revision-pinned approvals, signed comparison receipts, WORM SHA-256 audit chains, and `PlateSecurityProfile` export. | [Security Kernel](/docs/business/security-kernel) |
|
|
28
28
|
| `@plate-business/compliance-pdf` | `src/server/plate-security/compliance-pdf/*` | Zero-network `renderCompliancePdf` worker: irreversible AST redaction before HTML/Typst render, SSRF-hardened media inlining, JS-disabled offline Chromium/Playwright or Typst PDF/A-2b rendering, forensic watermarks, `/Info` and `/ID` metadata scrubbing, and signed SHA-256 attestations. | [Compliance PDF](/docs/business/compliance-pdf) |
|
|
29
|
-
| `@plate-business/security-proof` | `src/server/plate-security/security-proof/*` | All
|
|
29
|
+
| `@plate-business/security-proof` | `src/server/plate-security/security-proof/*` | All 35 deterministic must-fail security canaries (`runPlateSecurityCanaries`) and `assertSecurityProfileReady` verifier wired to `plate verify --suite sync-security,ai-sandbox,agent-workspace`. | [Security Proof](/docs/business/security-proof) |
|
|
30
30
|
|
|
31
31
|
### Honest wire-redaction scope
|
|
32
32
|
|
|
33
33
|
`SyncServerOptions.projectRead` isolates `access: 'read'` WebSocket peers, `server.getDocument`, server-side `createSyncServerAgent`, and Compliance PDF/Markdown exports. Live `access: 'suggest'` peers sharing one canonical room receive canonical room state; use `kernel.createSubRoomConfig(...)` whenever counterparties require isolated live co-editing.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## 35 must-fail security canaries
|
|
36
36
|
|
|
37
|
-
`@plate-business/security-proof` ships
|
|
37
|
+
`@plate-business/security-proof` ships 35 deterministic canaries. Every canary asserts both that your configured policy blocks the attack and that its negative control trips when the guard is removed.
|
|
38
38
|
|
|
39
39
|
| # | Canary ID | Security boundary proved |
|
|
40
40
|
| --- | --- | --- |
|
|
@@ -71,6 +71,8 @@ npx @platejs/cli skills sync --registry https://api.platejs.org/skills/business
|
|
|
71
71
|
| 31 | `row-automation-policy` | Separation-of-duties row-approval locks (blocking self/agent approval and Admin overrides), loop/hop caps, Update Request field firewall and projection redaction, SSRF-fenced signed webhooks, and `pra1.` WORM audit chain verification. |
|
|
72
72
|
| 32 | `table-io-quarantine-and-redacted-xlsx` | Quarantined `.csv`/`.xlsx`/Airtable imports (ZIP-bomb, XXE, external-rel, zero-echo DLP block/redact, column/PK/replace/schema-evolution ACLs), two-world byte-identical redacted multi-sheet `.xlsx` exports with formula/DDE neutralization, and domain-separated `pti1.`/`ptx1.` receipts. |
|
|
73
73
|
| 33 | `board-overlay-isolation` | Per-viewer board agent overlay projection derived from `projectRead` with zero hidden-frame existence oracles, actor-bound and XSS-safe overlay publication, and `onAdmit` write locks on restricted board frames, member moves, and bound arrows. |
|
|
74
|
+
| 34 | `agent-composer-security` | Reserved `skill:` denial on raw context expansion, server-side `$` skill and `/` command tool intersection on runtime `allow`, zero-echo full-egress DLP across slots, raw paste, and voice cleanup, and WORM-first `pcs1.` steer receipts. |
|
|
75
|
+
| 35 | `agent-workspace-trust-kernel` | Fail-closed Managed Workspace Policy (`policy.agentWorkspace`), agent-scoped `onAdmit` caps, mandatory `jti` check, zero-oracle `@`/`#` Spotlighting, unconditional secret-taint egress denial, child-agent non-escalation, and hash-chained WORM + `paw1.` receipts. |
|
|
74
76
|
|
|
75
77
|
## `plate verify` CI and GitHub Action
|
|
76
78
|
|
|
@@ -82,7 +84,7 @@ PLATE_VERIFY_KEY=$PLATE_API_KEY npx @platejs/cli verify --suite editor,sync-secu
|
|
|
82
84
|
|
|
83
85
|
Supported suites and outputs:
|
|
84
86
|
|
|
85
|
-
- `--suite`: Comma-separated list from `editor`, `sync-security`, `ai-sandbox`, and `browser-ime` (defaults to `editor,sync-security,ai-sandbox`).
|
|
87
|
+
- `--suite`: Comma-separated list from `editor`, `sync-security`, `ai-sandbox`, `agent-workspace`, and `browser-ime` (defaults to `editor,sync-security,ai-sandbox`).
|
|
86
88
|
- `--format`: `text`, `json`, or `sarif` (uploads directly to GitHub Code Scanning).
|
|
87
89
|
- `--baseline <path>`, `--init-baseline`, `--update-baseline`: Pin known findings and block regressions on every PR.
|
|
88
90
|
- `--seed <int>`, `--replay <file>`, `--emit-test <dir>`: Deterministically replay shrunk counterexamples and emit regression tests.
|
package/dist/docs/comparison.md
CHANGED
|
@@ -111,7 +111,7 @@ For DOCX details, see [DOCX](/docs/docx) and [Pagination](/docs/pagination).
|
|
|
111
111
|
|
|
112
112
|
## Pro and Business
|
|
113
113
|
|
|
114
|
-
Every Plate package, plugin, codec, sync server, and copied shadcn UI kit stays MIT. Paid tiers use annual-only licensing (no monthly plan) with Beta rates locked for early organizations, 1 org scope (unlimited developers and own apps; no OEM/client redistribution), and perpetual fallback on installed code. Plate Pro (`$1,490/yr`, `$124/mo` equiv, early access) adds the `Potion` and `Paper` blueprints, 24 `@plate-pro/*` copy-owned slices, and deploy and upgrade skills. Plate Business (`$4,990/yr`, `$416/mo` equiv, early access) adds self-hosted `@plate-business/*` server security modules and `plate verify` CI with
|
|
114
|
+
Every Plate package, plugin, codec, sync server, and copied shadcn UI kit stays MIT. Paid tiers use annual-only licensing (no monthly plan) with Beta rates locked for early organizations, 1 org scope (unlimited developers and own apps; no OEM/client redistribution), and perpetual fallback on installed code. Plate Pro (`$1,490/yr`, `$124/mo` equiv, early access) adds the `Potion` and `Paper` blueprints, 24 `@plate-pro/*` copy-owned slices, and deploy and upgrade skills. Plate Business (`$4,990/yr`, `$416/mo` equiv, early access) adds self-hosted `@plate-business/*` server security modules and `plate verify` CI with 35 must-fail security canaries, with zero customer PII sent to Plate. Enterprise / OEM (`Custom`) covers multi-entity licensing, OEM redistribution, and custom compliance terms asynchronously by email with no sales calls. See [Pricing](/pricing).
|
|
115
115
|
|
|
116
116
|
## Sources
|
|
117
117
|
|
package/dist/docs/license.md
CHANGED
|
@@ -19,7 +19,7 @@ Commercial licenses are granted by **UDECODE SRL** (`Rue du Villageois 69, 1160
|
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| **Free** | `$0` | Unlimited | All MIT packages, codecs, sync engine, and `@plate/*` copied UI kits. |
|
|
21
21
|
| **Pro** | `$1,490/yr` (`$124/mo` equiv, annual-only Beta rate) | 1 org (unlimited devs & own apps) | `Potion`, `Paper`, `Potion Mobile`, all 24 `@plate-pro/*` copy-owned slices, and all 4 Pro deploy and upgrade skills. |
|
|
22
|
-
| **Business** | `$4,990/yr` (`$416/mo` equiv, annual-only Beta rate) | 1 org (unlimited devs & own apps) | Everything in Pro, plus `@plate-business/security-kernel`, `@plate-business/compliance-pdf`, `@plate-business/security-proof` (
|
|
22
|
+
| **Business** | `$4,990/yr` (`$416/mo` equiv, annual-only Beta rate) | 1 org (unlimited devs & own apps) | Everything in Pro, plus `@plate-business/security-kernel`, `@plate-business/compliance-pdf`, `@plate-business/security-proof` (35 must-fail security canaries), `plate-security-hardening`, and `plate verify` CI. |
|
|
23
23
|
| **Enterprise / OEM** | `Custom` (async quote, no sales calls) | Multi-entity & OEM redistribution | Everything in Business, plus OEM and client source redistribution rights, custom DPA, security questionnaires, and compliance attestation. |
|
|
24
24
|
|
|
25
25
|
### Founding Plus grandfathering
|
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.17
|
|
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
|
|
|
@@ -41,10 +41,10 @@ These pages match the installed `platejs` version. A `/docs/<path>` link in a pa
|
|
|
41
41
|
- [Board](board.md) (`platejs/board`): Create whiteboard blocks with notes, free text, shapes, pictures, arrows, frames, and pen lines.
|
|
42
42
|
- [Bold](bold.md): Add strong inline text formatting.
|
|
43
43
|
- [Browser](browser.md): Use the first-party browser proof harness for editor behavior tests.
|
|
44
|
-
- [Plate Business](business.md): Enforce self-hosted server security boundaries, run
|
|
44
|
+
- [Plate Business](business.md): Enforce self-hosted server security boundaries, run 35 must-fail security canaries, and gate PRs with plate verify CI.
|
|
45
45
|
- [Compliance PDF](business/compliance-pdf.md): Render irreversibly redacted, zero-network, metadata-scrubbed, and cryptographically attested PDFs inside your own infrastructure.
|
|
46
46
|
- [Security Kernel](business/security-kernel.md): Enforce server-side redaction, propose-only AI agent sandboxes, mutation budgets, revision-pinned approvals, and WORM audit chains from one policy.
|
|
47
|
-
- [Security Proof](business/security-proof.md): Run
|
|
47
|
+
- [Security Proof](business/security-proof.md): Run 35 deterministic must-fail security canaries and validate your live security profile in CI before shipping changes.
|
|
48
48
|
- [Plate Verify CI](business/verify.md): Run zero-PII formal editor, sync-security, AI-sandbox, and Chromium IME checks in local CI and GitHub Actions.
|
|
49
49
|
- [Callout](callout.md) (`platejs/callout`): Highlight important information or notes inside styled callout blocks.
|
|
50
50
|
- [Clear Formatting](clear-formatting.md): Remove text and block styles from a selection.
|
|
@@ -12,7 +12,7 @@ _Type @ to insert a context chip, select text from an assistant reply to quote i
|
|
|
12
12
|
|
|
13
13
|
_Registry item `prompt-editor`: `npx shadcn@latest add @plate/prompt-editor`._
|
|
14
14
|
|
|
15
|
-
The registry item adds `prompt-editor.tsx`, the server-safe `prompt-message.ts` codec,
|
|
15
|
+
The registry item adds `prompt-editor.tsx`, the server-safe `prompt-message.ts` codec, `prompt-queue.tsx` for Queue & Steer and Quote-to-Composer, `prompt-composer-engine.ts`, `prompt-markdown-reveal.ts`, and the `mention` and `inline-combobox` items it imports. Install `@plate/agent-composer` to add the composable `prompt-composer-bar.tsx` chrome for pinned Custom Modes, slot strips, stash drawer, paste attachments, voice cleanup, and Queue & Steer.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
@@ -99,6 +99,14 @@ Import `usePromptQueue`, `PromptQueueRail`, `PromptComposerActions`, `PromptQuot
|
|
|
99
99
|
- **Edit queued items:** `Alt+Up` at the start of the field pulls the last queued item back into the composer (stashing any existing draft until you save with `Enter` or cancel with `Escape`).
|
|
100
100
|
- **Quote-to-Composer:** Mark assistant message elements with `data-assistant-quote-source` and mount `PromptSelectionQuotePopover` to float a `Quote` action over selected reply text, or render `PromptQuoteReplyButton` for one-click quoting. `AgentChat` also adds a `Quote` button beside active document selections.
|
|
101
101
|
|
|
102
|
+
### Rich-text Agent Composer (`$` skills, `#` refs, slots, stash, voice & Queue/Steer)
|
|
103
|
+
|
|
104
|
+
Enable `markdownReveal` for dimmed-delimiter live Markdown styling (zero hidden text and zero layout shift), pass `skills` and `onPinSkill` for `$` skills with `Alt+Enter` pinned Custom Modes, pass `refSources` for `#` PR/issue/commit pickers, pass `slots` for declared `{{slot}}` Tab-fill, and pair `PromptEditor` with `prompt-composer-bar.tsx` for `Cmd+S` Prompt Stash, `ArrowUp` chip-preserving history, paste folding (`Cmd+Shift+V` raw paste), voice dictionary cleanup, and Queue & Steer.
|
|
105
|
+
|
|
106
|
+
_Registry item `agent-composer-demo`: `npx shadcn@latest add @plate/agent-composer-demo`._
|
|
107
|
+
|
|
108
|
+
_Type **bold**, $review (Alt+Enter to pin), #pr, press Tab across {{slot}} placeholders, Cmd+S to stash, or submit during a simulated run to Queue or Steer._
|
|
109
|
+
|
|
102
110
|
### AI SDK chat
|
|
103
111
|
|
|
104
112
|
The demo sends messages, quotes, and attached files through the AI SDK's `useChat` with an abortable local transport. Pasted and dropped files go to `onFiles`, large plain-text pastes fold into attachments through `onPaste`, and removing an attachment or quote moves focus back to the field through its `ref`.
|
|
@@ -224,6 +232,17 @@ Edit `PromptEditorPlugin` in the copied `prompt-editor.tsx` to change these rule
|
|
|
224
232
|
- `items` (`readonly PromptEditorItem[]` *(optional)*): What the @ menu offers (`{ label, ref, description?, group?, keywords?, preview? }`). The menu displays `description` under `label` when provided and matches the start of any word in `label`, `ref`, `group`, `keywords`, or `description`.
|
|
225
233
|
- `sources` (`readonly PromptContextSource[]` *(optional)*): Multi-source `@` context categories (`{ id, label, icon?, items?, search?(query, signal) }`) with category drill-down (`Escape` pops back to all sources) and abortable async search.
|
|
226
234
|
- `commands` (`readonly PromptCommand[]` *(optional)*): Parameterized `/` commands (`{ name, label, arguments?, onRun({ args, insertMention, insertText, message, setMessage }) }`) rendered with a caret-anchored argument popover.
|
|
235
|
+
- `markdownReveal` (`boolean` *(optional)*): Enables linear-time dimmed-delimiter live Markdown styling over text leaves without hiding characters or shifting layout.
|
|
236
|
+
- `skills` (`readonly PromptSkill[]` *(optional)*): `$` skills and pinnable Custom Modes (`{ name, label, description?, group?, icon?, keywords?, template? }`). Currency queries such as `$100` auto-dismiss.
|
|
237
|
+
- `pinnedSkills` (`readonly string[]` *(optional)*): Currently pinned `$` skill names rendered with a Pinned indicator.
|
|
238
|
+
- `onPinSkill` (`(skill: PromptSkill) => void` *(optional)*): Called when the user pins a `$` skill via `Alt+Enter` or the row Pin button.
|
|
239
|
+
- `refSources` (`readonly PromptContextSource[]` *(optional)*): Multi-source `#` reference pickers (`pr:`, `issue:`, `commit:`, `branch:`) isolated from `##` Markdown headings.
|
|
240
|
+
- `slots` (`readonly PromptSlotSpec[]` *(optional)*): Declared `{{slot}}` specs highlighted and navigated with non-trapping `Tab` / `Shift+Tab`.
|
|
241
|
+
- `slotValues` (`Readonly<Record<string, string>>` *(optional)*): Current values for declared slots.
|
|
242
|
+
- `onSlotChange` (`(name: string, value: string) => void` *(optional)*): Called when slot navigation targets a declared slot.
|
|
243
|
+
- `history` (`readonly PromptDraftSnapshot[]` *(optional)*): Submitted drafts navigated with `ArrowUp` / `ArrowDown` at draft boundaries while preserving `<mention>` chips.
|
|
244
|
+
- `onStash` (`(draft: PromptDraftSnapshot) => boolean | void` *(optional)*): Called on `Cmd/Ctrl+S` to stash the current draft. Returning `false` keeps the draft intact.
|
|
245
|
+
- `rawPasteShortcut` (`boolean` *(optional)*): Arms a short `data-raw-paste="true"` window on `Cmd/Ctrl+Shift+V` without blocking native browser paste so host `onPaste` handlers can bypass auto-folding.
|
|
227
246
|
- `loadChipPreview` (`(element: { label?: string; ref: string }, signal: AbortSignal) => Promise<React.ReactNode>` *(optional)*): Async preview loader for expanded chips with cancellation on close, unmount, or ref change.
|
|
228
247
|
- `searchTimeoutMs` (`number` *(optional)*): Timeout in milliseconds for async `sources[].search` calls. Defaults to `5000`.
|
|
229
248
|
- `name` (`string` *(optional)*): The key the message takes in the form's `FormData`.
|
|
@@ -261,4 +280,4 @@ Server-safe helpers in `@/components/editor/prompt-message` that prepend and ext
|
|
|
261
280
|
|
|
262
281
|
## Pro and Business
|
|
263
282
|
|
|
264
|
-
Plate Pro ships [`@plate-pro/context-chips`](/docs/pro/slices/context-chips) for multi-source
|
|
283
|
+
Plate Pro ships [`@plate-pro/context-chips`](/docs/pro/slices/context-chips) for multi-source `@`/`#` context registries, server-side `<mention>` XML context expansion with reserved `$` skill partitioning, validated parameterized commands, and a fail-closed Cloudflare Worker + D1 durable Queue & Steer handler (`createComposerWorkerHandler` / `D1ComposerStore`), plus `@plate-pro/playwright-suite` (`defineComposerProofSuite`). Plate Business adds [`@plate-business/security-kernel`](/docs/business/security-kernel) for fail-closed context-chip ACLs, unified Agent Composer turn admission (`authorizeComposerTurn`) intersecting `$` skill and `/` command tool allowlists, zero-echo full-egress DLP (`scrubComposerIngress`), and WORM-first `pcs1.` steer receipts (`recordComposerSteer`), verified in CI by `plate verify --suite ai-sandbox --config <path>`. See [Pricing](/pricing).
|
package/dist/docs/suggestion.md
CHANGED
|
@@ -4,9 +4,9 @@ Propose text, formatting, and block edits, then review them with copied Plate UI
|
|
|
4
4
|
|
|
5
5
|
_Registry item `suggestion-demo`: `npx shadcn@latest add @plate/suggestion-demo`._
|
|
6
6
|
|
|
7
|
-
_Type in Suggesting mode to propose edits,
|
|
7
|
+
_Type in Suggesting mode to propose edits, hover a suggestion for quick Accept/Reject/Comment actions, or open a block card._
|
|
8
8
|
|
|
9
|
-
The demo starts in Suggestion mode with a proposed insertion and deletion.
|
|
9
|
+
The demo starts in Suggestion mode with a proposed insertion and deletion. Rest the pointer on a highlighted span to accept, reject, or comment from the hover pill, open a paragraph's discussion button to inspect its full card, or choose **Accept all suggestions** or **Reject all suggestions** in the mode menu, then try undo and redo. Switch to Editing to keep the pending changes visible while ordinary edits apply directly, or type in Suggestion mode to propose an edit.
|
|
10
10
|
|
|
11
11
|
Typing inside struck text, or confirming a word with an input method there, lands at the caret and splits the pending deletion around it. Pasting inside struck text lands after the pending deletion, and typing in a line deleted whole lands at the end of the line before. In Suggestion mode the new text is a proposed insertion of its own; in Editing mode it applies directly. In Editing mode, deleting or typing over a selection that holds another author's whole pending deletion accepts that deletion, as Google Docs does, and one Undo brings both back. A selection that holds only part of the deletion leaves it pending, and so does any edit in a shared sync room. Dragging struck text in Suggestion mode lands it as your insertion and leaves its old place struck, as Google Docs does.
|
|
12
12
|
|
|
@@ -14,6 +14,7 @@ Typing inside struck text, or confirming a word with an input method there, land
|
|
|
14
14
|
|
|
15
15
|
- Switch a mounted editor view between editing and suggesting
|
|
16
16
|
- Decorate proposed text, formatting, and structural edits
|
|
17
|
+
- Accept or reject pending spans in one click from a hover quick-action pill (plus Comment when `DiscussionKit` is installed)
|
|
17
18
|
- Keep the active card local to each mounted view
|
|
18
19
|
- Read native authored changes and review cards for custom review UI
|
|
19
20
|
- Save pending changes with the complete document
|
|
@@ -31,7 +32,7 @@ npx shadcn@latest add @plate/basic-blocks @plate/suggestion @plate/discussion @p
|
|
|
31
32
|
|
|
32
33
|
_Registry item `suggestion`: `npx shadcn@latest add @plate/suggestion`._
|
|
33
34
|
|
|
34
|
-
`SuggestionKit` configures `AuthoredReactPlugin` with `render.contentAttributes` for its default styles. `platejs/authored` supplies semantic attributes, and `platejs/authored/react` supplies active-card behavior and authored-change hooks. Core applies the kit's classes to the existing content root, including when you render `EditorContent` directly. `DiscussionKit` adds block buttons, Accept and Reject cards, and comment replies.
|
|
35
|
+
`SuggestionKit` configures `AuthoredReactPlugin` with `render.contentAttributes` for its default styles and mounts a hover quick-action pill above suggested spans after a 250ms hover-intent delay. Standalone `SuggestionKit` offers one-click **Accept** and **Reject** without `DiscussionKit`; installing `CommentsPlugin` or `DiscussionKit` adds a **Comment** button that opens the review card and focuses its reply composer. The pill stays hidden while typing, during non-collapsed selection, in Viewing or preview modes, and while a review card is already open for that change. For click-only apps, opt out with `createSuggestionKit({ hoverActions: false })`. `platejs/authored` supplies semantic attributes, and `platejs/authored/react` supplies active-card behavior and authored-change hooks. Core applies the kit's classes to the existing content root, including when you render `EditorContent` directly. `DiscussionKit` adds block buttons, Accept and Reject cards, and comment replies.
|
|
35
36
|
|
|
36
37
|
### Add the kits
|
|
37
38
|
|
|
@@ -348,7 +349,7 @@ Import from `platejs/authored/react`. It extends `AuthoredPlugin` with exact-vie
|
|
|
348
349
|
|
|
349
350
|
### `SuggestionKit`
|
|
350
351
|
|
|
351
|
-
The copied registry kit configures `AuthoredReactPlugin` with content-root styles
|
|
352
|
+
The copied registry kit configures `AuthoredReactPlugin` with content-root styles, refusal toasts, and `SuggestionHoverActions`. Use `createSuggestionKit({ hoverActions: false })` to disable the hover quick-action pill in click-only apps, or mount `SuggestionHoverActions` directly with `enabled`. Generic editor components remain independent of suggestions. Review cards, Comments integration, toolbars, and popovers remain in registry code.
|
|
352
353
|
|
|
353
354
|
## Pro and Business
|
|
354
355
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as EditorApplicationSchema } from "../../htmlTypes-
|
|
3
|
-
import { o as Editor } from "../../core-
|
|
4
|
-
import { a as DocxDiagnostic, i as DocxCommentReaction, l as DocxWarningDiagnostic, n as DocxComment, o as DocxErrorDiagnostic, r as DocxCommentAuthor, t as DocxSource } from "../../source-
|
|
5
|
-
import "../../index-
|
|
6
|
-
import "../../widths-
|
|
1
|
+
import { Ho as PluginReference, bt as EditorDocumentValue } from "../../tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "../../htmlTypes-BNz6ylqQ.js";
|
|
3
|
+
import { o as Editor } from "../../core-Cd7dbk4H.js";
|
|
4
|
+
import { a as DocxDiagnostic, i as DocxCommentReaction, l as DocxWarningDiagnostic, n as DocxComment, o as DocxErrorDiagnostic, r as DocxCommentAuthor, t as DocxSource } from "../../source-CVQeCWQ6.js";
|
|
5
|
+
import "../../index-Dpf8e1Y4.js";
|
|
6
|
+
import "../../widths-BmkP0i8h.js";
|
|
7
7
|
/**
|
|
8
8
|
* Character-level visual styling for Word runs in `DocxExportStyles`.
|
|
9
9
|
* All color values accept CSS hex, rgb/rgba, hsl/hsla, or standard CSS named colors.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as EditorApplicationSchema } from "../../htmlTypes-
|
|
3
|
-
import { o as Editor } from "../../core-
|
|
4
|
-
import { y as CommentRemoteUpsert } from "../../index-
|
|
5
|
-
import { a as DocxDiagnostic, c as DocxSourceLocation, i as DocxCommentReaction, l as DocxWarningDiagnostic, n as DocxComment, o as DocxErrorDiagnostic, r as DocxCommentAuthor, s as DocxImportLimits, t as DocxSource } from "../../source-
|
|
1
|
+
import { Cu as Value, Ho as PluginReference, bt as EditorDocumentValue } from "../../tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "../../htmlTypes-BNz6ylqQ.js";
|
|
3
|
+
import { o as Editor } from "../../core-Cd7dbk4H.js";
|
|
4
|
+
import { y as CommentRemoteUpsert } from "../../index-C7vqVA4I.js";
|
|
5
|
+
import { a as DocxDiagnostic, c as DocxSourceLocation, i as DocxCommentReaction, l as DocxWarningDiagnostic, n as DocxComment, o as DocxErrorDiagnostic, r as DocxCommentAuthor, s as DocxImportLimits, t as DocxSource } from "../../source-CVQeCWQ6.js";
|
|
6
6
|
/** Author profile generated for one imported Word comment. */
|
|
7
7
|
type DocxCommentUser = Readonly<{
|
|
8
8
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult } from "../../htmlTypes-
|
|
3
|
-
import { fo as PluginReference, p as BasePlugin, uo as PluginDependency } from "../../core-
|
|
4
|
-
import "../../index-
|
|
1
|
+
import { Cu as Value, yt as EditorDocumentRecords } from "../../tx-only-BYWUDN_r-CyQXNQp-.js";
|
|
2
|
+
import { d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult } from "../../htmlTypes-BNz6ylqQ.js";
|
|
3
|
+
import { fo as PluginReference, p as BasePlugin, uo as PluginDependency } from "../../core-Cd7dbk4H.js";
|
|
4
|
+
import "../../index-DH5TuEJa.js";
|
|
5
5
|
/** Normalizes Word clipboard payloads before the installed HTML parser runs. */
|
|
6
6
|
declare const WordPastePlugin: BasePlugin<Readonly<{
|
|
7
7
|
readonly dependencies: readonly [PluginReference<"html"> & PluginDependency<Readonly<{
|
package/dist/dom/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as DOMVisualPoint, B as ScrollMargin, C as DOMElement, D as DOMSelection, E as DOMRange, F as DataTransferFormat, G as HotkeyMatchOptions, H as dataTransferFormats, I as DataTransferSchemaClaim, J as KeyboardEventLike, K as HotkeyPlatform, L as DataTransferSnapshot, M as DataTransferDecodeContext, N as DataTransferDiagnostic, O as DOMStaticRange, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, T as DOMPoint, U as domCommands, V as ViewportRect, W as writeDataTransferFragment, Y as ariaKeyShortcuts, _ as DOMDragStart, a as usesAppleDOMHotkeys, b as DOMDropTargetInput, c as DOMApi, g as DOMDragApi, i as isHotkey, j as DOMVisualPointOptions, k as DOMText, l as DOMClipboardApi, o as ClipboardSliceRead, q as HotkeySpec, r as DropIndicator, s as ClipboardSliceWrite, v as DOMDropEdge, w as DOMNode, x as DOMDropTargetOptions, y as DOMDropTarget, z as ScrollIntoViewTarget } from "../index-
|
|
1
|
+
import { A as DOMVisualPoint, B as ScrollMargin, C as DOMElement, D as DOMSelection, E as DOMRange, F as DataTransferFormat, G as HotkeyMatchOptions, H as dataTransferFormats, I as DataTransferSchemaClaim, J as KeyboardEventLike, K as HotkeyPlatform, L as DataTransferSnapshot, M as DataTransferDecodeContext, N as DataTransferDiagnostic, O as DOMStaticRange, P as DataTransferEncodeContext, R as ScrollIntoViewOptions, T as DOMPoint, U as domCommands, V as ViewportRect, W as writeDataTransferFragment, Y as ariaKeyShortcuts, _ as DOMDragStart, a as usesAppleDOMHotkeys, b as DOMDropTargetInput, c as DOMApi, g as DOMDragApi, i as isHotkey, j as DOMVisualPointOptions, k as DOMText, l as DOMClipboardApi, o as ClipboardSliceRead, q as HotkeySpec, r as DropIndicator, s as ClipboardSliceWrite, v as DOMDropEdge, w as DOMNode, x as DOMDropTargetOptions, y as DOMDropTarget, z as ScrollIntoViewTarget } from "../index-BcrleRIo.js";
|
|
2
2
|
export { type ClipboardSliceRead, type ClipboardSliceWrite, type DOMApi, type DOMClipboardApi, type DOMDragApi, type DOMDragStart, type DOMDropEdge, type DOMDropTarget, type DOMDropTargetInput, type DOMDropTargetOptions, type DOMElement, type DOMNode, type DOMPoint, type DOMRange, type DOMSelection, type DOMStaticRange, type DOMText, type DOMVisualPoint, type DOMVisualPointOptions, type DataTransferDecodeContext, type DataTransferDiagnostic, type DataTransferEncodeContext, type DataTransferFormat, type DataTransferSchemaClaim, type DataTransferSnapshot, type DropIndicator, type HotkeyMatchOptions, type HotkeyPlatform, type HotkeySpec, type KeyboardEventLike, type ScrollIntoViewOptions, type ScrollIntoViewTarget, type ScrollMargin, type ViewportRect, ariaKeyShortcuts, dataTransferFormats, domCommands, isHotkey, usesAppleDOMHotkeys, writeDataTransferFragment };
|
package/dist/facade.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ContentSlice, DocumentChange, EditorSchemaValidationError, ElementApi, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, createEditor, createEditorView, defineEditorSchema, definePlugin as defineRuntimePlugin, definePluginPoint, editorCommands, editorReads, getEditorRuntimeOwner, locateAt, property, schema, transfer, txLocate } from "plitejs";
|
|
2
|
-
import { EDITOR_DOCUMENT_FIELDS, EditorRefusalError, FOREIGN_CONTENTEDITABLE_SELECTOR, HISTORY_ABSORB_DELETED_TAG, MAIN_ROOT_KEY, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, authoredDirectProperties, brandPluginDescriptor as brandRuntimePluginDescriptor, buildDefaultChild, canPlaceBlocksAtPath, captureHistoryAnchor, claimsHistoryReplay, cloneEditorJsonValue, closestShadowAware, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createCompiledHotkeyMatcher, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorOwner, createEditorSelectorStore, createPluginUpdateProxy, didCommitChangePersistedValue, exportContentSlice, findEndMatterLandingIndex, fingerprintEditorDocumentValue, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateIds, getActiveEditorUpdateTags, getActiveElement, getActiveTransactionEndedHandlers, getAnchorRuntimeId, getAuthoredUpdateView, getAuthoredViewCommit, getCaretOwner, getCarriedCaretEditor, getCarriedRootEditor, getCommitDocumentValue, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getInternalEditorRuntimeOwner, getMutationVersion, getPluginCompartmentInput, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSnapshotVersion, getStateFieldEqualityFn, getStateViewPresentation, getTextSearchScope, getUpdateStartValue, getValueRecords, getViewAuthor, getViewCommitSource, getViewPresentation, hasAuthoredPendingInsertion, hasAuthoredRuntime, hasNonWritableAt, hasNonWritableContributors, holdsCaret, initializePluginEntries, isAuthorId, isAuthoredFormatOnlyPropertyWrite, isAuthoredPreview, isDocumentView, isEditorClosingOrDestroyed, isEditorDraftView, isEditorDryRun, isEditorPublishingCommit, isEnvelopeInput, isGeckoDOMHost, isPersistedEffect, isPlugin as isRuntimePlugin, isProposeOnlyView, isRootSelectionChanged, isTextRun, isTxOnlyMethod, joinKeepsPrefixOccupant, landNodePropertiesAt, liftAuthoredRange, liftAuthoredViewRange, mapDetachedSelectionThroughChange, mapHistoryAnchor, mapSemanticUpdateMethodArguments, markRootViewInteraction, nonWritableContent, nonWritableRoot, normalizeSelectorDependencies, normalizeSetValues, notePasteLoss, notifyEditorAdmissionChange, notifyObservers, onPresentationRelease, preserveCompiledSchemaPropertyIdentity, projectEditorView, projectEditorViewCommit, readAuthoredChangeBridge, readAuthoredProjectedRoot, readAuthoredView,
|
|
3
|
-
export { ContentSlice, DocumentChange, EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaValidationError, ElementApi, FOREIGN_CONTENTEDITABLE_SELECTOR, HISTORY_ABSORB_DELETED_TAG, MAIN_ROOT_KEY, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, authoredDirectProperties, brandRuntimePluginDescriptor, buildDefaultChild, canPlaceBlocksAtPath, captureHistoryAnchor, claimsHistoryReplay, cloneEditorJsonValue, closestShadowAware, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createCompiledHotkeyMatcher, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditor, createEditorOwner, createEditorSelectorStore, createEditorView, createPluginUpdateProxy, defineEditorSchema, definePluginPoint, defineRuntimePlugin, didCommitChangePersistedValue, editorCommands, editorReads, exportContentSlice, findEndMatterLandingIndex, fingerprintEditorDocumentValue, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateIds, getActiveEditorUpdateTags, getActiveElement, getActiveTransactionEndedHandlers, getAnchorRuntimeId, getAuthoredUpdateView, getAuthoredViewCommit, getCaretOwner, getCarriedCaretEditor, getCarriedRootEditor, getCommitDocumentValue, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeOwner, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getInternalEditorRuntimeOwner, getMutationVersion, getPluginCompartmentInput, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSnapshotVersion, getStateFieldEqualityFn, getStateViewPresentation, getTextSearchScope, getUpdateStartValue, getValueRecords, getViewAuthor, getViewCommitSource, getViewPresentation, hasAuthoredPendingInsertion, hasAuthoredRuntime, hasNonWritableAt, hasNonWritableContributors, holdsCaret, initializePluginEntries, isAuthorId, isAuthoredFormatOnlyPropertyWrite, isAuthoredPreview, isDocumentView, isEditorClosingOrDestroyed, isEditorDraftView, isEditorDryRun, isEditorPublishingCommit, isEnvelopeInput, isGeckoDOMHost, isPersistedEffect, isProposeOnlyView, isRootSelectionChanged, isRuntimePlugin, isTextRun, isTxOnlyMethod, joinKeepsPrefixOccupant, landNodePropertiesAt, liftAuthoredRange, liftAuthoredViewRange, locateAt, mapDetachedSelectionThroughChange, mapHistoryAnchor, mapSemanticUpdateMethodArguments, markRootViewInteraction, nonWritableContent, nonWritableRoot, normalizeSelectorDependencies, normalizeSetValues, notePasteLoss, notifyEditorAdmissionChange, notifyObservers, onPresentationRelease, preserveCompiledSchemaPropertyIdentity, projectEditorView, projectEditorViewCommit, property, readAuthoredChangeBridge, readAuthoredProjectedRoot, readAuthoredView,
|
|
2
|
+
import { EDITOR_DOCUMENT_FIELDS, EditorRefusalError, FOREIGN_CONTENTEDITABLE_SELECTOR, HISTORY_ABSORB_DELETED_TAG, MAIN_ROOT_KEY, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, authoredDirectProperties, brandPluginDescriptor as brandRuntimePluginDescriptor, buildDefaultChild, canPlaceBlocksAtPath, captureHistoryAnchor, claimsHistoryReplay, cloneEditorJsonValue, closestShadowAware, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createCompiledHotkeyMatcher, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorOwner, createEditorSelectorStore, createPluginUpdateProxy, didCommitChangePersistedValue, exportContentSlice, findEndMatterLandingIndex, fingerprintEditorDocumentValue, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateIds, getActiveEditorUpdateTags, getActiveElement, getActiveTransactionEndedHandlers, getAnchorRuntimeId, getAuthoredUpdateView, getAuthoredViewCommit, getCaretOwner, getCarriedCaretEditor, getCarriedRootEditor, getCommitDocumentValue, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getInternalEditorRuntimeOwner, getMutationVersion, getPluginCompartmentInput, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSnapshotVersion, getStateFieldEqualityFn, getStateViewPresentation, getTextSearchScope, getUpdateStartValue, getValueRecords, getViewAuthor, getViewCommitSource, getViewPresentation, hasAuthoredPendingInsertion, hasAuthoredRuntime, hasNonWritableAt, hasNonWritableContributors, holdsCaret, initializePluginEntries, isAuthorId, isAuthoredFormatOnlyPropertyWrite, isAuthoredPreview, isDocumentView, isEditorClosingOrDestroyed, isEditorDraftView, isEditorDryRun, isEditorPublishingCommit, isEnvelopeInput, isGeckoDOMHost, isPersistedEffect, isPlugin as isRuntimePlugin, isProposeOnlyView, isRootSelectionChanged, isTextRun, isTxOnlyMethod, joinKeepsPrefixOccupant, landNodePropertiesAt, liftAuthoredRange, liftAuthoredViewRange, mapDetachedSelectionThroughChange, mapHistoryAnchor, mapSemanticUpdateMethodArguments, markRootViewInteraction, nonWritableContent, nonWritableRoot, normalizeSelectorDependencies, normalizeSetValues, notePasteLoss, notifyEditorAdmissionChange, notifyObservers, onPresentationRelease, preserveCompiledSchemaPropertyIdentity, projectEditorView, projectEditorViewCommit, readAuthoredChangeBridge, readAuthoredProjectedRoot, readAuthoredView, readCaretViewIn, readCommitRootIndex, readComposedSelectionRange, readDocumentRange, readDocumentRecord, readDocumentRootChildren, readEditorCommitChangesHistoryTopStep, readEditorCommitHistoryEntry, readEditorOptions, readEditorSyncAccess, readElementPropertyWrites, readNamedRootChildren, readOptionalRuntimeRootEditorLookup, readPersistedEnvelope, readRecord, readRootViewUse, readShownDocument, readShownElementById, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordEditorHistoryEffect, recordSetChanges, recordSetIds, refuseWritePolicy, registerEditableKeyDownFallback, registerEditorAdmissionCheck, registerEditorTransactionGuard, rejectEditorRecord, reportEditorLifecycleError, resolveInstalledPlugin, resolveLocationRoot, resolvePluginMethod, resolveStoredAnchor, restoreHistoryAnchor, runEditableKeyDownFallback, runEditorObserver, sameResult, scheduleAfterCommitNotification, selectorDependenciesSubscriptionKey, serializeStructuralPlainText, setDOMClipboardFormatKey, setDOMTextSyncRendererCapability, setEditorPluginInputValidator, setEditorStateViewTransform, setEditorTransactionViewTransform, setPluginPortalFactory, setRetainedTextFlowRendererCapability, setSelectionAsView, setShownSelectionAsView, skipHistoryIfOnlyProperties, snapshotEditorJsonValue, splitTopLevelEndMatter, subscribeCaretTarget, subscribeEditorNodeChange, subscribeEditorRefusals, subscribeEditorTextChange, subscribeEditorViewState, subscribePublishedCommits, subscribeSharedEditorViewState, subscribeShownViewUse, txStored, vetoesWrite, visitDocumentChangeSections, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMintingFitDocument, withMountedPresentation, withPliteReactPreservedSelection, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead } from "plitejs/internal";
|
|
3
|
+
export { ContentSlice, DocumentChange, EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaValidationError, ElementApi, FOREIGN_CONTENTEDITABLE_SELECTOR, HISTORY_ABSORB_DELETED_TAG, MAIN_ROOT_KEY, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, authoredDirectProperties, brandRuntimePluginDescriptor, buildDefaultChild, canPlaceBlocksAtPath, captureHistoryAnchor, claimsHistoryReplay, cloneEditorJsonValue, closestShadowAware, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createCompiledHotkeyMatcher, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditor, createEditorOwner, createEditorSelectorStore, createEditorView, createPluginUpdateProxy, defineEditorSchema, definePluginPoint, defineRuntimePlugin, didCommitChangePersistedValue, editorCommands, editorReads, exportContentSlice, findEndMatterLandingIndex, fingerprintEditorDocumentValue, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateIds, getActiveEditorUpdateTags, getActiveElement, getActiveTransactionEndedHandlers, getAnchorRuntimeId, getAuthoredUpdateView, getAuthoredViewCommit, getCaretOwner, getCarriedCaretEditor, getCarriedRootEditor, getCommitDocumentValue, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeOwner, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getInternalEditorRuntimeOwner, getMutationVersion, getPluginCompartmentInput, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSnapshotVersion, getStateFieldEqualityFn, getStateViewPresentation, getTextSearchScope, getUpdateStartValue, getValueRecords, getViewAuthor, getViewCommitSource, getViewPresentation, hasAuthoredPendingInsertion, hasAuthoredRuntime, hasNonWritableAt, hasNonWritableContributors, holdsCaret, initializePluginEntries, isAuthorId, isAuthoredFormatOnlyPropertyWrite, isAuthoredPreview, isDocumentView, isEditorClosingOrDestroyed, isEditorDraftView, isEditorDryRun, isEditorPublishingCommit, isEnvelopeInput, isGeckoDOMHost, isPersistedEffect, isProposeOnlyView, isRootSelectionChanged, isRuntimePlugin, isTextRun, isTxOnlyMethod, joinKeepsPrefixOccupant, landNodePropertiesAt, liftAuthoredRange, liftAuthoredViewRange, locateAt, mapDetachedSelectionThroughChange, mapHistoryAnchor, mapSemanticUpdateMethodArguments, markRootViewInteraction, nonWritableContent, nonWritableRoot, normalizeSelectorDependencies, normalizeSetValues, notePasteLoss, notifyEditorAdmissionChange, notifyObservers, onPresentationRelease, preserveCompiledSchemaPropertyIdentity, projectEditorView, projectEditorViewCommit, property, readAuthoredChangeBridge, readAuthoredProjectedRoot, readAuthoredView, readCaretViewIn, readCommitRootIndex, readComposedSelectionRange, readDocumentRange, readDocumentRecord, readDocumentRootChildren, readEditorCommitChangesHistoryTopStep, readEditorCommitHistoryEntry, readEditorOptions, readEditorSyncAccess, readElementPropertyWrites, readNamedRootChildren, readOptionalRuntimeRootEditorLookup, readPersistedEnvelope, readRecord, readRootViewUse, readShownDocument, readShownElementById, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordEditorHistoryEffect, recordSetChanges, recordSetIds, refuseWritePolicy, registerEditableKeyDownFallback, registerEditorAdmissionCheck, registerEditorTransactionGuard, rejectEditorRecord, reportEditorLifecycleError, resolveInstalledPlugin, resolveLocationRoot, resolvePluginMethod, resolveStoredAnchor, restoreHistoryAnchor, runEditableKeyDownFallback, runEditorObserver, sameResult, scheduleAfterCommitNotification, schema, selectorDependenciesSubscriptionKey, serializeStructuralPlainText, setDOMClipboardFormatKey, setDOMTextSyncRendererCapability, setEditorPluginInputValidator, setEditorStateViewTransform, setEditorTransactionViewTransform, setPluginPortalFactory, setRetainedTextFlowRendererCapability, setSelectionAsView, setShownSelectionAsView, skipHistoryIfOnlyProperties, snapshotEditorJsonValue, splitTopLevelEndMatter, subscribeCaretTarget, subscribeEditorNodeChange, subscribeEditorRefusals, subscribeEditorTextChange, subscribeEditorViewState, subscribePublishedCommits, subscribeSharedEditorViewState, subscribeShownViewUse, transfer, txLocate, txStored, vetoesWrite, visitDocumentChangeSections, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMintingFitDocument, withMountedPresentation, withPliteReactPreservedSelection, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead };
|