superdoc 2.23.0-next.15 → 2.23.0-next.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.
|
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
19
19
|
var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
20
20
|
var ENGINE_INFO = Object.freeze({
|
|
21
21
|
...PRIVATE_ENGINE_INFO,
|
|
22
|
-
superdocVersion: "2.23.0-next.
|
|
22
|
+
superdocVersion: "2.23.0-next.17",
|
|
23
23
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
24
24
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
25
25
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
18
18
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
19
19
|
var ENGINE_INFO = Object.freeze({
|
|
20
20
|
...PRIVATE_ENGINE_INFO,
|
|
21
|
-
superdocVersion: "2.23.0-next.
|
|
21
|
+
superdocVersion: "2.23.0-next.17",
|
|
22
22
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
23
23
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
24
24
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -48,6 +48,7 @@ export interface SDPasteRunMarks {
|
|
|
48
48
|
italic?: boolean;
|
|
49
49
|
underline?: boolean;
|
|
50
50
|
strike?: boolean;
|
|
51
|
+
/** Six-digit RGB color, or `auto` to reset an inherited text color. */
|
|
51
52
|
color?: string;
|
|
52
53
|
highlight?: string;
|
|
53
54
|
fontSizePt?: number;
|
|
@@ -57,6 +58,12 @@ export interface SDPasteRunMarks {
|
|
|
57
58
|
export interface SDPasteRun {
|
|
58
59
|
text: string;
|
|
59
60
|
marks?: SDPasteRunMarks;
|
|
61
|
+
/**
|
|
62
|
+
* Named character style identity (`w:rStyle`) from the source run. Same-
|
|
63
|
+
* document paste must emit this reference rather than only baking the
|
|
64
|
+
* style's effective font/size/color into direct marks.
|
|
65
|
+
*/
|
|
66
|
+
styleRef?: string;
|
|
60
67
|
/** Transient conversion identity used to map mutation effects back to source nodes. */
|
|
61
68
|
sourcePath?: readonly (string | number)[];
|
|
62
69
|
/**
|
|
@@ -94,6 +101,8 @@ export type SDPasteLeafInline = {
|
|
|
94
101
|
kind: 'text';
|
|
95
102
|
text: string;
|
|
96
103
|
marks?: SDPasteRunMarks;
|
|
104
|
+
/** Named character style identity (`w:rStyle`) for this text leaf. */
|
|
105
|
+
styleRef?: string;
|
|
97
106
|
sourcePath?: readonly (string | number)[];
|
|
98
107
|
commentIds?: readonly string[];
|
|
99
108
|
trackedInsertion?: boolean;
|
|
@@ -213,6 +222,8 @@ export interface SDPasteTableCell {
|
|
|
213
222
|
blocks: readonly SDPasteParagraphBlock[];
|
|
214
223
|
/** Horizontal merge span (colspan). */
|
|
215
224
|
gridSpan?: number;
|
|
225
|
+
/** Vertical merge carrier: start a merged cell or continue the preceding row's merge. */
|
|
226
|
+
vMerge?: 'restart' | 'continue';
|
|
216
227
|
/** Direct cell shading fill as canonical hex RRGGBB. */
|
|
217
228
|
shadingColor?: string;
|
|
218
229
|
/** Direct cell padding in points. At least one side must be present. */
|
|
@@ -265,6 +276,12 @@ export interface SDPasteTableBlock {
|
|
|
265
276
|
blockSdts?: readonly SDPasteBlockSdt[];
|
|
266
277
|
/** Direct between-cell spacing in points (not cell padding). */
|
|
267
278
|
cellSpacingPt?: number;
|
|
279
|
+
/**
|
|
280
|
+
* Positive finite relative shares for the table's grid columns. The shares
|
|
281
|
+
* scale to the destination section's content width, rather than source page
|
|
282
|
+
* dimensions. One share is required per grid column when supplied.
|
|
283
|
+
*/
|
|
284
|
+
columnWidthShares?: readonly number[];
|
|
268
285
|
rows: readonly SDPasteTableRow[];
|
|
269
286
|
sourcePath?: readonly (string | number)[];
|
|
270
287
|
}
|
|
@@ -312,6 +329,17 @@ export interface ClipboardInsertPlan {
|
|
|
312
329
|
fragment: SDPasteFragment;
|
|
313
330
|
diagnostics: readonly ClipboardInsertDiagnostic[];
|
|
314
331
|
summary: ClipboardInsertPlanSummary;
|
|
332
|
+
/**
|
|
333
|
+
* Style provenance retained by generated native clipboard plans. `null`
|
|
334
|
+
* denotes unknown source context. Conflicting contexts reject source-format
|
|
335
|
+
* insertion of named character references; use the original payload for
|
|
336
|
+
* portable HTML recovery when it can retain the content. Manually
|
|
337
|
+
* authored destination-local plans may omit this field.
|
|
338
|
+
*/
|
|
339
|
+
sourceStyleContext?: {
|
|
340
|
+
documentEpoch: string;
|
|
341
|
+
digest: string;
|
|
342
|
+
} | null;
|
|
315
343
|
}
|
|
316
344
|
export type ClipboardTarget = SelectionTarget | {
|
|
317
345
|
kind: 'block';
|
package/dist/superdoc.cjs
CHANGED
|
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
304
304
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
305
305
|
function getSuperdocVersion() {
|
|
306
306
|
try {
|
|
307
|
-
return "2.23.0-next.
|
|
307
|
+
return "2.23.0-next.17";
|
|
308
308
|
} catch {
|
|
309
309
|
return "unknown";
|
|
310
310
|
}
|
|
@@ -46469,7 +46469,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46469
46469
|
}
|
|
46470
46470
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46471
46471
|
this.colorIndex = 0;
|
|
46472
|
-
this.version = "2.23.0-next.
|
|
46472
|
+
this.version = "2.23.0-next.17";
|
|
46473
46473
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46474
46474
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46475
46475
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
302
302
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
303
303
|
function getSuperdocVersion() {
|
|
304
304
|
try {
|
|
305
|
-
return "2.23.0-next.
|
|
305
|
+
return "2.23.0-next.17";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -46398,7 +46398,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46398
46398
|
}
|
|
46399
46399
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46400
46400
|
this.colorIndex = 0;
|
|
46401
|
-
this.version = "2.23.0-next.
|
|
46401
|
+
this.version = "2.23.0-next.17";
|
|
46402
46402
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46403
46403
|
this.superdocId = config.superdocId || v4();
|
|
46404
46404
|
this.colors = this.config.colors ?? [];
|