superdoc 2.19.0-next.9 → 2.19.1-next.1

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.19.0-next.9",
22
+ superdocVersion: "2.19.1-next.1",
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.19.0-next.9",
21
+ superdocVersion: "2.19.1-next.1",
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 { BlockNodeAddress } from '../types/index.js';
2
2
  import { ReceiptInsert } from '../types/receipt.js';
3
3
  import { StoryLocator } from '../types/story.types.js';
4
+ import { ContentControlTarget } from '../content-controls/content-controls.types.js';
4
5
  import { ImageProperties, ImageWrapType, ImageWrapSide, ImageMarginOffset, ImageSize, ImageCropInfo } from '../types/media.types.js';
5
6
  /** Stable address for an image node in the document. */
6
7
  export interface ImageAddress {
@@ -127,7 +128,15 @@ export interface CreateImageInput {
127
128
  alt?: string;
128
129
  title?: string;
129
130
  size?: ImageSize;
130
- at?: ImageCreateLocation;
131
+ at?: ImageCreateLocation | {
132
+ /** Insert into an existing inline content control, even when it is empty. */
133
+ kind: 'inContentControl';
134
+ target: ContentControlTarget;
135
+ /** Position within the control when appending; defaults to 'end'. */
136
+ position?: 'start' | 'end';
137
+ /** Replace the control's current placeholder content with the image. */
138
+ replaceContent?: boolean;
139
+ };
131
140
  }
132
141
  export interface ImagesListInput {
133
142
  offset?: number;
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.19.0-next.9";
319
+ return "2.19.1-next.1";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -45690,7 +45690,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45690
45690
  this.config.colors = shuffleArray(this.config.colors);
45691
45691
  this.userColorMap = /* @__PURE__ */ new Map();
45692
45692
  this.colorIndex = 0;
45693
- this.version = "2.19.0-next.9";
45693
+ this.version = "2.19.1-next.1";
45694
45694
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45695
45695
  this.superdocId = config.superdocId || require_uuid.v4();
45696
45696
  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.19.0-next.9";
318
+ return "2.19.1-next.1";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -45621,7 +45621,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45621
45621
  this.config.colors = shuffleArray(this.config.colors);
45622
45622
  this.userColorMap = /* @__PURE__ */ new Map();
45623
45623
  this.colorIndex = 0;
45624
- this.version = "2.19.0-next.9";
45624
+ this.version = "2.19.1-next.1";
45625
45625
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45626
45626
  this.superdocId = config.superdocId || v4();
45627
45627
  this.colors = this.config.colors ?? [];