superdoc 2.23.1-next.2 → 2.23.1-next.4
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +5 -0
- package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist-cdn/superdoc.min.js +3 -3
- package/package.json +2 -2
|
@@ -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.1-next.
|
|
22
|
+
superdocVersion: "2.23.1-next.4",
|
|
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.1-next.
|
|
21
|
+
superdocVersion: "2.23.1-next.4",
|
|
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
|
|
@@ -274,6 +274,11 @@ export interface ContentControlsPatchInput {
|
|
|
274
274
|
export interface ContentControlsSetLockModeInput {
|
|
275
275
|
target: ContentControlTarget;
|
|
276
276
|
lockMode: LockMode;
|
|
277
|
+
/**
|
|
278
|
+
* When false, preserve this lock mode across retained Undo/Redo without adding
|
|
279
|
+
* a history entry. Supported by non-collaborative V2 sessions; defaults to true.
|
|
280
|
+
*/
|
|
281
|
+
addToHistory?: boolean;
|
|
277
282
|
}
|
|
278
283
|
export interface ContentControlsSetTypeInput {
|
|
279
284
|
target: ContentControlTarget;
|
|
@@ -2319,7 +2319,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
2319
2319
|
};
|
|
2320
2320
|
readonly 'contentControls.setLockMode': {
|
|
2321
2321
|
readonly memberPath: "contentControls.setLockMode";
|
|
2322
|
-
readonly description: "Set the lock mode on a content control.";
|
|
2322
|
+
readonly description: "Set the lock mode on a content control. In non-collaborative V2 sessions, addToHistory: false excludes this lock change while retaining the lock across Undo/Redo.";
|
|
2323
2323
|
readonly expectedResult: "Returns a ContentControlMutationResult; reports NO_OP if lock mode unchanged.";
|
|
2324
2324
|
readonly requiresDocumentContext: true;
|
|
2325
2325
|
readonly metadata: CommandStaticMetadata;
|
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.1-next.
|
|
307
|
+
return "2.23.1-next.4";
|
|
308
308
|
} catch {
|
|
309
309
|
return "unknown";
|
|
310
310
|
}
|
|
@@ -46472,7 +46472,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46472
46472
|
}
|
|
46473
46473
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46474
46474
|
this.colorIndex = 0;
|
|
46475
|
-
this.version = "2.23.1-next.
|
|
46475
|
+
this.version = "2.23.1-next.4";
|
|
46476
46476
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46477
46477
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46478
46478
|
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.1-next.
|
|
305
|
+
return "2.23.1-next.4";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -46401,7 +46401,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46401
46401
|
}
|
|
46402
46402
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46403
46403
|
this.colorIndex = 0;
|
|
46404
|
-
this.version = "2.23.1-next.
|
|
46404
|
+
this.version = "2.23.1-next.4";
|
|
46405
46405
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46406
46406
|
this.superdocId = config.superdocId || v4();
|
|
46407
46407
|
this.colors = this.config.colors ?? [];
|