superdoc 2.0.0-next.26 → 2.0.0-next.28
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/chunks/{create-super-doc-ui-CBs8xQUw.es.js → create-super-doc-ui-BlnUCtrx.es.js} +634 -115
- package/dist/chunks/{create-super-doc-ui-CHZKlLiH.cjs → create-super-doc-ui-CZBUMdjl.cjs} +634 -115
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/comments/comments.types.d.ts +9 -0
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +13 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/track-changes/track-changes.d.ts +6 -2
- package/dist/document-api/src/types/clipboard.d.ts +5 -1
- package/dist/document-api/src/types/table-operations.types.d.ts +6 -4
- package/dist/document-api/src/types/track-changes.types.d.ts +15 -0
- package/dist/layout-engine/contracts/src/incremental-dependency.d.ts +10 -0
- package/dist/layout-engine/contracts/src/index.d.ts +39 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +23 -1
- package/dist/layout-engine/layout-engine/src/index.d.ts +17 -0
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +16 -0
- package/dist/layout-engine/layout-engine/src/paragraph-layout-eligibility.d.ts +1 -4
- package/dist/layout-engine/style-engine/src/normalize/types.d.ts +1 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +119 -100
- package/dist/style.layered.css +119 -100
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +1 -0
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +1 -1
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +2 -0
- package/dist/superdoc/src/core/types/index.d.ts +7 -0
- package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +12 -0
- package/dist/superdoc/src/public/ui/reasons.d.ts +8 -0
- package/dist/superdoc/src/stores/comments-store.d.ts +9 -9
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +2 -10
- package/dist/superdoc/src/stores/superdoc-store.d.ts +27 -27
- package/dist/superdoc.cjs +286 -82
- package/dist/superdoc.es.js +286 -82
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +37 -37
- package/package.json +3 -2
|
@@ -82,6 +82,14 @@ export declare const SUPERDOC_UI_REASONS: {
|
|
|
82
82
|
* explicit product posture, not a missing-capability accident.
|
|
83
83
|
*/
|
|
84
84
|
readonly replaceUnsupported: "replace-unsupported";
|
|
85
|
+
/**
|
|
86
|
+
* The selection overlaps a content control (SDT) whose lock mode
|
|
87
|
+
* (`contentLocked` / `sdtContentLocked`) forbids styling its content — Word
|
|
88
|
+
* parity (SD-3274): the toolbar must not leave styling controls clickable
|
|
89
|
+
* when the style change cannot apply. Alignment / paragraph-level commands
|
|
90
|
+
* are never gated by this reason.
|
|
91
|
+
*/
|
|
92
|
+
readonly contentControlLocked: "content-control-locked";
|
|
85
93
|
};
|
|
86
94
|
/**
|
|
87
95
|
* Union of stable public reason strings. Surfaced on {@link CommandState} and
|
|
@@ -55,15 +55,15 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
55
55
|
resolvedComments: any[];
|
|
56
56
|
}>;
|
|
57
57
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
58
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
59
|
-
id:
|
|
58
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
59
|
+
id: any;
|
|
60
60
|
threadId: any;
|
|
61
61
|
comment: any;
|
|
62
62
|
positionKey: any;
|
|
63
63
|
pageIndex: any;
|
|
64
64
|
isPrimary: boolean;
|
|
65
65
|
positionEntry: any;
|
|
66
|
-
}
|
|
66
|
+
}[]>;
|
|
67
67
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
68
68
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
69
69
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -278,15 +278,15 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
278
278
|
resolvedComments: any[];
|
|
279
279
|
}>;
|
|
280
280
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
281
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
282
|
-
id:
|
|
281
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
282
|
+
id: any;
|
|
283
283
|
threadId: any;
|
|
284
284
|
comment: any;
|
|
285
285
|
positionKey: any;
|
|
286
286
|
pageIndex: any;
|
|
287
287
|
isPrimary: boolean;
|
|
288
288
|
positionEntry: any;
|
|
289
|
-
}
|
|
289
|
+
}[]>;
|
|
290
290
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
291
291
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
292
292
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -501,15 +501,15 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
501
501
|
resolvedComments: any[];
|
|
502
502
|
}>;
|
|
503
503
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
504
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
505
|
-
id:
|
|
504
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
505
|
+
id: any;
|
|
506
506
|
threadId: any;
|
|
507
507
|
comment: any;
|
|
508
508
|
positionKey: any;
|
|
509
509
|
pageIndex: any;
|
|
510
510
|
isPrimary: boolean;
|
|
511
511
|
positionEntry: any;
|
|
512
|
-
}
|
|
512
|
+
}[]>;
|
|
513
513
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
514
514
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
515
515
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -3,20 +3,12 @@ export function buildFloatingCommentInstances({ comment, positionKey, positionEn
|
|
|
3
3
|
positionKey: any;
|
|
4
4
|
positionEntry: any;
|
|
5
5
|
fallbackId: any;
|
|
6
|
-
}):
|
|
7
|
-
id:
|
|
6
|
+
}): {
|
|
7
|
+
id: any;
|
|
8
8
|
threadId: any;
|
|
9
9
|
comment: any;
|
|
10
10
|
positionKey: any;
|
|
11
11
|
pageIndex: any;
|
|
12
12
|
isPrimary: boolean;
|
|
13
13
|
positionEntry: any;
|
|
14
|
-
} | null)[] | {
|
|
15
|
-
id: any;
|
|
16
|
-
threadId: any;
|
|
17
|
-
comment: any;
|
|
18
|
-
positionKey: any;
|
|
19
|
-
positionEntry: any;
|
|
20
|
-
pageIndex: number | null;
|
|
21
|
-
isPrimary: boolean;
|
|
22
14
|
}[];
|
|
@@ -56,15 +56,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
56
56
|
resolvedComments: any[];
|
|
57
57
|
}>;
|
|
58
58
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
59
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
60
|
-
id:
|
|
59
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
60
|
+
id: any;
|
|
61
61
|
threadId: any;
|
|
62
62
|
comment: any;
|
|
63
63
|
positionKey: any;
|
|
64
64
|
pageIndex: any;
|
|
65
65
|
isPrimary: boolean;
|
|
66
66
|
positionEntry: any;
|
|
67
|
-
}
|
|
67
|
+
}[]>;
|
|
68
68
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
69
69
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
70
70
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -279,15 +279,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
279
279
|
resolvedComments: any[];
|
|
280
280
|
}>;
|
|
281
281
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
282
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
283
|
-
id:
|
|
282
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
283
|
+
id: any;
|
|
284
284
|
threadId: any;
|
|
285
285
|
comment: any;
|
|
286
286
|
positionKey: any;
|
|
287
287
|
pageIndex: any;
|
|
288
288
|
isPrimary: boolean;
|
|
289
289
|
positionEntry: any;
|
|
290
|
-
}
|
|
290
|
+
}[]>;
|
|
291
291
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
292
292
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
293
293
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -502,15 +502,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
502
502
|
resolvedComments: any[];
|
|
503
503
|
}>;
|
|
504
504
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
505
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
506
|
-
id:
|
|
505
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
506
|
+
id: any;
|
|
507
507
|
threadId: any;
|
|
508
508
|
comment: any;
|
|
509
509
|
positionKey: any;
|
|
510
510
|
pageIndex: any;
|
|
511
511
|
isPrimary: boolean;
|
|
512
512
|
positionEntry: any;
|
|
513
|
-
}
|
|
513
|
+
}[]>;
|
|
514
514
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
515
515
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
516
516
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -777,15 +777,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
777
777
|
resolvedComments: any[];
|
|
778
778
|
}>;
|
|
779
779
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
780
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
781
|
-
id:
|
|
780
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
781
|
+
id: any;
|
|
782
782
|
threadId: any;
|
|
783
783
|
comment: any;
|
|
784
784
|
positionKey: any;
|
|
785
785
|
pageIndex: any;
|
|
786
786
|
isPrimary: boolean;
|
|
787
787
|
positionEntry: any;
|
|
788
|
-
}
|
|
788
|
+
}[]>;
|
|
789
789
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
790
790
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
791
791
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -1000,15 +1000,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1000
1000
|
resolvedComments: any[];
|
|
1001
1001
|
}>;
|
|
1002
1002
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1003
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
1004
|
-
id:
|
|
1003
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1004
|
+
id: any;
|
|
1005
1005
|
threadId: any;
|
|
1006
1006
|
comment: any;
|
|
1007
1007
|
positionKey: any;
|
|
1008
1008
|
pageIndex: any;
|
|
1009
1009
|
isPrimary: boolean;
|
|
1010
1010
|
positionEntry: any;
|
|
1011
|
-
}
|
|
1011
|
+
}[]>;
|
|
1012
1012
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
1013
1013
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
1014
1014
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -1223,15 +1223,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1223
1223
|
resolvedComments: any[];
|
|
1224
1224
|
}>;
|
|
1225
1225
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1226
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
1227
|
-
id:
|
|
1226
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1227
|
+
id: any;
|
|
1228
1228
|
threadId: any;
|
|
1229
1229
|
comment: any;
|
|
1230
1230
|
positionKey: any;
|
|
1231
1231
|
pageIndex: any;
|
|
1232
1232
|
isPrimary: boolean;
|
|
1233
1233
|
positionEntry: any;
|
|
1234
|
-
}
|
|
1234
|
+
}[]>;
|
|
1235
1235
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
1236
1236
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
1237
1237
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -1498,15 +1498,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1498
1498
|
resolvedComments: any[];
|
|
1499
1499
|
}>;
|
|
1500
1500
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1501
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
1502
|
-
id:
|
|
1501
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1502
|
+
id: any;
|
|
1503
1503
|
threadId: any;
|
|
1504
1504
|
comment: any;
|
|
1505
1505
|
positionKey: any;
|
|
1506
1506
|
pageIndex: any;
|
|
1507
1507
|
isPrimary: boolean;
|
|
1508
1508
|
positionEntry: any;
|
|
1509
|
-
}
|
|
1509
|
+
}[]>;
|
|
1510
1510
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
1511
1511
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
1512
1512
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -1721,15 +1721,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1721
1721
|
resolvedComments: any[];
|
|
1722
1722
|
}>;
|
|
1723
1723
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1724
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
1725
|
-
id:
|
|
1724
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1725
|
+
id: any;
|
|
1726
1726
|
threadId: any;
|
|
1727
1727
|
comment: any;
|
|
1728
1728
|
positionKey: any;
|
|
1729
1729
|
pageIndex: any;
|
|
1730
1730
|
isPrimary: boolean;
|
|
1731
1731
|
positionEntry: any;
|
|
1732
|
-
}
|
|
1732
|
+
}[]>;
|
|
1733
1733
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
1734
1734
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
1735
1735
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|
|
@@ -1944,15 +1944,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1944
1944
|
resolvedComments: any[];
|
|
1945
1945
|
}>;
|
|
1946
1946
|
getFloatingComments: import('vue').ComputedRef<any[]>;
|
|
1947
|
-
getFloatingCommentInstances: import('vue').ComputedRef<
|
|
1948
|
-
id:
|
|
1947
|
+
getFloatingCommentInstances: import('vue').ComputedRef<{
|
|
1948
|
+
id: any;
|
|
1949
1949
|
threadId: any;
|
|
1950
1950
|
comment: any;
|
|
1951
1951
|
positionKey: any;
|
|
1952
1952
|
pageIndex: any;
|
|
1953
1953
|
isPrimary: boolean;
|
|
1954
1954
|
positionEntry: any;
|
|
1955
|
-
}
|
|
1955
|
+
}[]>;
|
|
1956
1956
|
getCommentAliasIds: (commentOrId: any) => (string | null)[];
|
|
1957
1957
|
getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
|
|
1958
1958
|
getCommentPosition: (commentOrId: Object | string) => Object | null;
|