superdoc 2.18.1-next.3 → 2.18.1-next.5

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.18.1-next.3",
22
+ superdocVersion: "2.18.1-next.5",
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.18.1-next.3",
21
+ superdocVersion: "2.18.1-next.5",
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
@@ -1,6 +1,7 @@
1
1
  import { AdapterMutationFailure } from '../types/adapter-result.js';
2
2
  import { DiscoveryOutput } from '../types/discovery.js';
3
3
  import { SelectionTarget, TextTarget } from '../types/address.js';
4
+ import { StoryLocator } from '../types/story.types.js';
4
5
  /**
5
6
  * Stable opaque identifier for an anchored-metadata entry. Lives in the
6
7
  * anchor SDT's `w:tag` (ECMA-376 Part 1 §17.5.2.34) and links the anchor
@@ -97,9 +98,15 @@ export interface AnchoredMetadataListInput {
97
98
  limit?: number;
98
99
  offset?: number;
99
100
  }
100
- export interface AnchoredMetadataGetInput {
101
+ export type AnchoredMetadataGetInput = {
101
102
  id: AnchoredMetadataId;
102
- }
103
+ } & ({
104
+ contentControlId?: never;
105
+ story?: never;
106
+ } | {
107
+ contentControlId: string;
108
+ story: StoryLocator;
109
+ });
103
110
  export interface AnchoredMetadataUpdateInput {
104
111
  id: AnchoredMetadataId;
105
112
  /**
@@ -111,9 +118,7 @@ export interface AnchoredMetadataUpdateInput {
111
118
  export interface AnchoredMetadataRemoveInput {
112
119
  id: AnchoredMetadataId;
113
120
  }
114
- export interface AnchoredMetadataResolveInput {
115
- id: AnchoredMetadataId;
116
- }
121
+ export type AnchoredMetadataResolveInput = AnchoredMetadataGetInput;
117
122
  /**
118
123
  * Light view of an entry returned by `list()`. Carries identity and the
119
124
  * package coordinates of its backing storage part, but NOT the payload —
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.18.1-next.3";
319
+ return "2.18.1-next.5";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -45750,7 +45750,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45750
45750
  this.config.colors = shuffleArray(this.config.colors);
45751
45751
  this.userColorMap = /* @__PURE__ */ new Map();
45752
45752
  this.colorIndex = 0;
45753
- this.version = "2.18.1-next.3";
45753
+ this.version = "2.18.1-next.5";
45754
45754
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45755
45755
  this.superdocId = config.superdocId || require_uuid.v4();
45756
45756
  this.colors = this.config.colors ?? [];
@@ -315,7 +315,7 @@ var shuffleArray = (array) => {
315
315
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
316
316
  function getSuperdocVersion() {
317
317
  try {
318
- return "2.18.1-next.3";
318
+ return "2.18.1-next.5";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -45681,7 +45681,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45681
45681
  this.config.colors = shuffleArray(this.config.colors);
45682
45682
  this.userColorMap = /* @__PURE__ */ new Map();
45683
45683
  this.colorIndex = 0;
45684
- this.version = "2.18.1-next.3";
45684
+ this.version = "2.18.1-next.5";
45685
45685
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45686
45686
  this.superdocId = config.superdocId || v4();
45687
45687
  this.colors = this.config.colors ?? [];