superdoc 2.23.0-next.15 → 2.23.0-next.16
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.16",
|
|
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.16",
|
|
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;
|
|
@@ -312,6 +321,17 @@ export interface ClipboardInsertPlan {
|
|
|
312
321
|
fragment: SDPasteFragment;
|
|
313
322
|
diagnostics: readonly ClipboardInsertDiagnostic[];
|
|
314
323
|
summary: ClipboardInsertPlanSummary;
|
|
324
|
+
/**
|
|
325
|
+
* Style provenance retained by generated native clipboard plans. `null`
|
|
326
|
+
* denotes unknown source context. Conflicting contexts reject source-format
|
|
327
|
+
* insertion of named character references; use the original payload for
|
|
328
|
+
* portable HTML recovery when it can retain the content. Manually
|
|
329
|
+
* authored destination-local plans may omit this field.
|
|
330
|
+
*/
|
|
331
|
+
sourceStyleContext?: {
|
|
332
|
+
documentEpoch: string;
|
|
333
|
+
digest: string;
|
|
334
|
+
} | null;
|
|
315
335
|
}
|
|
316
336
|
export type ClipboardTarget = SelectionTarget | {
|
|
317
337
|
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.16";
|
|
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.16";
|
|
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.16";
|
|
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.16";
|
|
46402
46402
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46403
46403
|
this.superdocId = config.superdocId || v4();
|
|
46404
46404
|
this.colors = this.config.colors ?? [];
|