superdoc 2.22.0-next.10 → 2.22.0-next.11

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.22.0-next.10",
22
+ superdocVersion: "2.22.0-next.11",
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.22.0-next.10",
21
+ superdocVersion: "2.22.0-next.11",
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
@@ -247,6 +247,8 @@ export interface ContentControlsUnwrapInput {
247
247
  }
248
248
  export interface ContentControlsDeleteInput {
249
249
  target: ContentControlTarget;
250
+ /** Override only this target's deletion lock; document and ancestor protection still apply. */
251
+ overrideDeletionLock?: boolean;
250
252
  }
251
253
  export interface ContentControlsCopyInput {
252
254
  target: ContentControlTarget;
@@ -2283,8 +2283,8 @@ export declare const OPERATION_DEFINITIONS: {
2283
2283
  };
2284
2284
  readonly 'contentControls.delete': {
2285
2285
  readonly memberPath: "contentControls.delete";
2286
- readonly description: "Delete a content control and its content from the document.";
2287
- readonly expectedResult: "Returns a ContentControlMutationResult; reports NO_OP if already removed.";
2286
+ readonly description: "Delete a content control and its content. Set overrideDeletionLock to remove a deletion-locked target without first unlocking it.";
2287
+ readonly expectedResult: "Returns a ContentControlMutationResult; reports NO_OP if already removed. An explicit override deletes in one history entry; Undo restores the original control and lock.";
2288
2288
  readonly requiresDocumentContext: true;
2289
2289
  readonly metadata: CommandStaticMetadata;
2290
2290
  readonly referenceDocPath: "content-controls/delete.mdx";
package/dist/superdoc.cjs CHANGED
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
316
316
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
317
317
  function getSuperdocVersion() {
318
318
  try {
319
- return "2.22.0-next.10";
319
+ return "2.22.0-next.11";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -46382,7 +46382,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46382
46382
  this.config.colors = shuffleArray(this.config.colors);
46383
46383
  this.userColorMap = /* @__PURE__ */ new Map();
46384
46384
  this.colorIndex = 0;
46385
- this.version = "2.22.0-next.10";
46385
+ this.version = "2.22.0-next.11";
46386
46386
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46387
46387
  this.superdocId = config.superdocId || require_uuid.v4();
46388
46388
  this.colors = this.config.colors ?? [];
@@ -314,7 +314,7 @@ var shuffleArray = (array) => {
314
314
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
315
315
  function getSuperdocVersion() {
316
316
  try {
317
- return "2.22.0-next.10";
317
+ return "2.22.0-next.11";
318
318
  } catch {
319
319
  return "unknown";
320
320
  }
@@ -46311,7 +46311,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46311
46311
  this.config.colors = shuffleArray(this.config.colors);
46312
46312
  this.userColorMap = /* @__PURE__ */ new Map();
46313
46313
  this.colorIndex = 0;
46314
- this.version = "2.22.0-next.10";
46314
+ this.version = "2.22.0-next.11";
46315
46315
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46316
46316
  this.superdocId = config.superdocId || v4();
46317
46317
  this.colors = this.config.colors ?? [];