plitejs 54.0.0-beta.7 → 54.0.0-beta.8
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/authored/index.d.ts +44 -41
- package/dist/authored/index.js +16489 -16181
- package/dist/{authored-veto-CferDljr.js → authored-veto-DLmBMIcy.js} +1 -1
- package/dist/{clipboard-format-key-CLFcThXH.js → clipboard-format-key-SzffxWqa.js} +1 -1
- package/dist/{comparison-plan-7iIABSWG.js → comparison-plan-BqFJWjO4.js} +36 -14
- package/dist/{create-editor-acDgsovY.js → create-editor-kU8fg-PF.js} +6 -30
- package/dist/diff/index.d.ts +2 -32
- package/dist/diff/index.js +7 -378
- package/dist/dom/index.d.ts +2 -2
- package/dist/dom/index.js +2 -2
- package/dist/{dom-B5bAma7X.js → dom-SUWlnfT9.js} +562 -145
- package/dist/history/index.d.ts +5 -5
- package/dist/history/index.js +2041 -1833
- package/dist/history-skip-CcEhIzak.js +35 -0
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/hyperscript/index.js +1 -1
- package/dist/{hyperscript-BXUV6sdO.js → hyperscript-DdeGYoSc.js} +3 -2
- package/dist/{index-CTTjpWgb.d.ts → index-4PpawhYe.d.ts} +1 -1
- package/dist/{index-DJvrmSRP.d.ts → index-BsOySJwr.d.ts} +9 -9
- package/dist/{index-D8DQ1YFB.d.ts → index-CHEKdrHP.d.ts} +12 -4
- package/dist/{comparison-types-CsmDG5r2.d.ts → index-DM-b6jEe.d.ts} +21 -57
- package/dist/{index-LhVJuuEf.d.ts → index-DqmhcD_0.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +66 -5
- package/dist/law-check-Bvnz2EKh.js +19271 -0
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/react.d.ts +2 -2
- package/dist/pagination/react.js +92 -46
- package/dist/{pagination-CwjmxPoX.js → pagination-XEnxZ1DX.js} +2 -1
- package/dist/{plugin-BZCGtqMI.js → plugin-B8uCi-Hr.js} +8758 -19452
- package/dist/{range-geometry-CZari453.d.ts → range-geometry-B2f67yLv.d.ts} +1 -1
- package/dist/{range-geometry-CqWrwkjH.js → range-geometry-BGKYQHqO.js} +3 -2
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +7 -6
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/react/virtualized.js +59 -38
- package/dist/{react-DO9IETEQ.js → react-B6B-5z7t.js} +24 -55
- package/dist/{retraction-RHEKiF3h.js → retraction-BMzQ2on5.js} +1 -1
- package/dist/scroll-root-DudA40xj.js +25 -0
- package/dist/{src-fLbHzUjC.js → src--BZ7fZY4.js} +60 -26
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +4 -3
- package/dist/{tx-only-1FM45FSj.d.ts → tx-only-D8lpB-sT.d.ts} +338 -147
- package/dist/{update-policy-C32RjjGt.js → update-policy-J-4sHmrg.js} +2 -1
- package/dist/{use-editor-dom-scope-CUBnNAZV.js → use-editor-dom-scope-BFWvutxn.js} +2837 -2093
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/dist/yjs/react/index.d.ts +3 -3
- package/dist/yjs/react/index.js +3 -3
- package/dist/{yjs-BMguSAX_.js → yjs-DPngKQWQ.js} +114 -39
- package/package.json +2 -3
package/dist/authored/index.d.ts
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Bh as SchemaPropertyCopyPolicy, Cc as AuthoredDocumentProjection, F_ as Point, G as EditorDocumentValue, Hh as SchemaPropertyExclusiveGroup, Jm as PropertySetDescriptor, O_ as Location, Tc as AuthoredProjectionRefusal, Wm as PropertyJsonDescriptor, Xh as SchemaPropertySplitPolicy, Yh as SchemaPropertyRole, Zh as SchemaPropertyTypeChangePolicy, _r as Plugin, jr as PluginDependencyReferenceFor, l as AnyEditor, p as ContentSlice, pr as NodeKey, qh as SchemaPropertyLandingPolicy, r as TxOnlyMethod, rr as EditorViewOptions, rv as EditorJsonValue, t as TxDeclaredMethod, w_ as Range, wc as AuthoredProjectionDiagnostic, z_ as Path } from "../tx-only-D8lpB-sT.js";
|
|
2
|
+
import { r as Comparison } from "../index-DM-b6jEe.js";
|
|
3
|
+
//#region src/authored/comparison.d.ts
|
|
4
|
+
/** Outcome of proposing a validated document comparison as one native change. */
|
|
5
|
+
type AuthoredComparisonImportResult = Readonly<{
|
|
6
|
+
ids: readonly string[];
|
|
7
|
+
mappings: ReadonlyArray<Readonly<{
|
|
8
|
+
changeId: string;
|
|
9
|
+
groupId: string;
|
|
10
|
+
}>>;
|
|
11
|
+
status: 'applied' | 'unchanged';
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
reason: 'authored-frontier' | 'document' | 'schema';
|
|
14
|
+
status: 'stale';
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
reason: 'ambiguous-selection' | 'dependency';
|
|
17
|
+
status: 'blocked';
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
reason: 'comparison' | 'selection';
|
|
20
|
+
status: 'invalid';
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
reason: 'actor';
|
|
23
|
+
status: 'unavailable';
|
|
24
|
+
}>;
|
|
25
|
+
//#endregion
|
|
3
26
|
//#region src/authored/tree/layers.d.ts
|
|
4
27
|
type FormatWrite = Readonly<{
|
|
5
28
|
kind: 'remove';
|
|
@@ -497,6 +520,24 @@ type AuthoredUpdate = {
|
|
|
497
520
|
type AuthoredPlugin = Plugin<{
|
|
498
521
|
activate: true;
|
|
499
522
|
api: {
|
|
523
|
+
/**
|
|
524
|
+
* Publish the selected groups of a validated fixed-revision comparison as
|
|
525
|
+
* one native proposal under the calling view's author. Reads the whole
|
|
526
|
+
* document (`editor.read.value()`), validates its schema, content, and
|
|
527
|
+
* envelope (`meta` and `records`), and returns `unchanged` without writing
|
|
528
|
+
* when accepting the importer's own pending changes unmarked in the
|
|
529
|
+
* selection's document already yields that document. Otherwise returns
|
|
530
|
+
* `applied` only when accepting the proposal alone gives the selection's
|
|
531
|
+
* document and rejecting it alone gives the document it started from, with
|
|
532
|
+
* every other suggestion left pending; writes nothing and returns `blocked`
|
|
533
|
+
* when it cannot. Review can still hold the proposal's decision until a
|
|
534
|
+
* pending change it waits on is decided. An error that escapes the update
|
|
535
|
+
* after the proposal commits propagates.
|
|
536
|
+
*/
|
|
537
|
+
proposeComparison: (input: Readonly<{
|
|
538
|
+
comparison: Comparison;
|
|
539
|
+
groupIds?: readonly string[];
|
|
540
|
+
}>) => AuthoredComparisonImportResult;
|
|
500
541
|
setView: (view: AuthoredView) => void;
|
|
501
542
|
/**
|
|
502
543
|
* Calls the listener once for each commit that changes the review, with
|
|
@@ -547,44 +588,6 @@ declare const createAuthoredPlugin: (options: AuthoredTestOptions) => AuthoredPl
|
|
|
547
588
|
/** Suggestions recorded as review marks in the document. */
|
|
548
589
|
declare const authored: (options: AuthoredOptions) => AuthoredPlugin;
|
|
549
590
|
//#endregion
|
|
550
|
-
//#region src/authored/comparison.d.ts
|
|
551
|
-
type AuthoredComparisonImportResult = Readonly<{
|
|
552
|
-
ids: readonly string[];
|
|
553
|
-
mappings: ReadonlyArray<Readonly<{
|
|
554
|
-
changeId: string;
|
|
555
|
-
groupId: string;
|
|
556
|
-
}>>;
|
|
557
|
-
status: 'applied' | 'unchanged';
|
|
558
|
-
}> | Readonly<{
|
|
559
|
-
reason: 'authored-frontier' | 'document' | 'schema';
|
|
560
|
-
status: 'stale';
|
|
561
|
-
}> | Readonly<{
|
|
562
|
-
reason: 'ambiguous-selection' | 'dependency';
|
|
563
|
-
status: 'blocked';
|
|
564
|
-
}> | Readonly<{
|
|
565
|
-
reason: 'comparison' | 'selection';
|
|
566
|
-
status: 'invalid';
|
|
567
|
-
}> | Readonly<{
|
|
568
|
-
reason: 'actor' | 'plugin';
|
|
569
|
-
status: 'unavailable';
|
|
570
|
-
}>;
|
|
571
|
-
/**
|
|
572
|
-
* Publish the selected groups of a validated fixed-revision comparison as one
|
|
573
|
-
* native proposal. Returns `unchanged`, writing nothing, when accepting the
|
|
574
|
-
* importer's own pending changes that the selection's document no longer marks,
|
|
575
|
-
* and keeping every other pending change, already gives that document.
|
|
576
|
-
* Otherwise returns `applied` only when accepting the proposal alone gives the
|
|
577
|
-
* selection's document and rejecting it alone gives the document it started
|
|
578
|
-
* from, with every other suggestion left pending. When it cannot, it writes
|
|
579
|
-
* nothing and returns `blocked`. Review can still hold the proposal's decision
|
|
580
|
-
* until a pending change it waits on is decided. An error that escapes the
|
|
581
|
-
* update after the proposal commits propagates.
|
|
582
|
-
*/
|
|
583
|
-
declare const proposeAuthoredComparison: <V extends Value>(editor: AnyEditor<V>, input: Readonly<{
|
|
584
|
-
comparison: TwoWayComparison<V>;
|
|
585
|
-
groupIds?: readonly string[];
|
|
586
|
-
}>) => AuthoredComparisonImportResult;
|
|
587
|
-
//#endregion
|
|
588
591
|
//#region src/authored/format.d.ts
|
|
589
592
|
/** `proposed` accepts every pending change; `accepted` rejects every one. */
|
|
590
593
|
type AuthoredFormatProjection = 'accepted' | 'proposed';
|
|
@@ -610,4 +613,4 @@ declare function projectAuthoredDocument(document: EditorDocumentValue, options:
|
|
|
610
613
|
*/
|
|
611
614
|
declare const projectAuthoredRange: (document: EditorDocumentValue, projected: EditorDocumentValue, range: Range) => Range | null;
|
|
612
615
|
//#endregion
|
|
613
|
-
export { type AuthoredChange, type AuthoredChangeDetails, type AuthoredChangeGroup, type AuthoredChangeKind, type AuthoredChangePart, type AuthoredChangesDelta, type AuthoredComparisonImportResult, type AuthoredDecision, type AuthoredDocumentProjection, type AuthoredFormatProjection, type AuthoredGroupDetails, type AuthoredGroupPart, type AuthoredMark, type AuthoredOptions, type AuthoredOutcome, type AuthoredPage, AuthoredPlaceError, type AuthoredPlugin, type AuthoredProjectionDiagnostic, type AuthoredProjectionRefusal, type AuthoredQuery, type AuthoredRefusal, type AuthoredResult, type AuthoredReview, type AuthoredTestOptions, type AuthoredView, type GaveWrite, type SplitGave, authored, authoredRecords, createAuthoredPlugin, projectAuthoredDocument, projectAuthoredRange
|
|
616
|
+
export { type AuthoredChange, type AuthoredChangeDetails, type AuthoredChangeGroup, type AuthoredChangeKind, type AuthoredChangePart, type AuthoredChangesDelta, type AuthoredComparisonImportResult, type AuthoredDecision, type AuthoredDocumentProjection, type AuthoredFormatProjection, type AuthoredGroupDetails, type AuthoredGroupPart, type AuthoredMark, type AuthoredOptions, type AuthoredOutcome, type AuthoredPage, AuthoredPlaceError, type AuthoredPlugin, type AuthoredProjectionDiagnostic, type AuthoredProjectionRefusal, type AuthoredQuery, type AuthoredRefusal, type AuthoredResult, type AuthoredReview, type AuthoredTestOptions, type AuthoredView, type GaveWrite, type SplitGave, authored, authoredRecords, createAuthoredPlugin, projectAuthoredDocument, projectAuthoredRange };
|