superdoc 2.18.0-next.12 → 2.18.0-next.13

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.0-next.12",
22
+ superdocVersion: "2.18.0-next.13",
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.0-next.12",
21
+ superdocVersion: "2.18.0-next.13",
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
@@ -181,6 +181,8 @@ export interface CreateImageSuccessResult {
181
181
  success: true;
182
182
  image: ImageAddress;
183
183
  trackedChangeRefs?: ReceiptInsert[];
184
+ /** Commit id for the insertion, including its alt text when that was set in the same call. */
185
+ txId?: string;
184
186
  }
185
187
  export interface CreateImageFailureResult {
186
188
  success: false;
@@ -110,7 +110,26 @@ export type SDPasteLeafInline = {
110
110
  title?: string;
111
111
  sourcePath?: readonly (string | number)[];
112
112
  };
113
- export type SDPasteInline = SDPasteLeafInline | {
113
+ export interface SDPasteSdtInline {
114
+ kind: 'sdt';
115
+ controlType: 'text' | 'richText';
116
+ tag?: string;
117
+ alias?: string;
118
+ lockMode?: 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
119
+ multiline?: boolean;
120
+ sourcePath?: readonly (string | number)[];
121
+ inlines: readonly (SDPasteLeafInline | SDPasteSdtInline)[];
122
+ }
123
+ export interface SDPasteBlockSdt {
124
+ /** Clipboard-local wrapper identity shared by adjacent paragraphs. */
125
+ sourceId: string;
126
+ controlType: 'text' | 'richText';
127
+ tag?: string;
128
+ alias?: string;
129
+ lockMode?: 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
130
+ multiline?: boolean;
131
+ }
132
+ export type SDPasteInline = SDPasteLeafInline | SDPasteSdtInline | {
114
133
  kind: 'hyperlink';
115
134
  target: {
116
135
  kind: 'external';
@@ -176,6 +195,8 @@ export interface SDPasteParagraphBlock {
176
195
  * paste anchor's paragraph, independent of whether they carry formatting.
177
196
  */
178
197
  complete?: boolean;
198
+ /** Outermost-first complete block content-control ancestry. */
199
+ blockSdts?: readonly SDPasteBlockSdt[];
179
200
  /** Transient conversion identity used to map mutation effects back to source nodes. */
180
201
  sourcePath?: readonly (string | number)[];
181
202
  }
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.0-next.12";
319
+ return "2.18.0-next.13";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -45746,7 +45746,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45746
45746
  this.config.colors = shuffleArray(this.config.colors);
45747
45747
  this.userColorMap = /* @__PURE__ */ new Map();
45748
45748
  this.colorIndex = 0;
45749
- this.version = "2.18.0-next.12";
45749
+ this.version = "2.18.0-next.13";
45750
45750
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45751
45751
  this.superdocId = config.superdocId || require_uuid.v4();
45752
45752
  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.0-next.12";
318
+ return "2.18.0-next.13";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -45677,7 +45677,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45677
45677
  this.config.colors = shuffleArray(this.config.colors);
45678
45678
  this.userColorMap = /* @__PURE__ */ new Map();
45679
45679
  this.colorIndex = 0;
45680
- this.version = "2.18.0-next.12";
45680
+ this.version = "2.18.0-next.13";
45681
45681
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45682
45682
  this.superdocId = config.superdocId || v4();
45683
45683
  this.colors = this.config.colors ?? [];