superdoc 2.4.0-next.40 → 2.4.0-next.41

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.4.0-next.40",
22
+ superdocVersion: "2.4.0-next.41",
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.4.0-next.40",
21
+ superdocVersion: "2.4.0-next.41",
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
@@ -180,6 +180,13 @@ export type IncrementalSectionPageNumberTransform = {
180
180
  /** Difference between target and source section-relative page positions. */
181
181
  delta: number;
182
182
  };
183
+ export type IncrementalDisplayPageNumberTransform = {
184
+ /** First section whose retained display-page values inherit the local page delta. */
185
+ startSectionIndex: number;
186
+ /** First later section with an explicit numbering restart. */
187
+ endSectionIndexExclusive: number;
188
+ delta: number;
189
+ };
183
190
  export type IncrementalLayoutTailAdoption = {
184
191
  startPageIndex: number;
185
192
  endPageIndexExclusive: number;
@@ -187,6 +194,7 @@ export type IncrementalLayoutTailAdoption = {
187
194
  sourcePageEndIndexExclusive: number;
188
195
  pageIndexDelta: number;
189
196
  sectionPageNumberTransform: IncrementalSectionPageNumberTransform | null;
197
+ displayPageNumberTransform?: IncrementalDisplayPageNumberTransform | null;
190
198
  sourceLayoutEpoch: number | null;
191
199
  positionTransforms: readonly LayoutPositionTransform[];
192
200
  /** Lazy old->current block-id rekeys for an ordinal-changing structural splice. */
@@ -32,6 +32,8 @@ export type PageResolver = (pageNumber: number) => {
32
32
  export interface HeaderFooterLayoutExecution extends LayoutExecutionControl {
33
33
  /** Time-aware mounted probe. Null is the allocation-free under-budget path. */
34
34
  checkpointIfDue?: (checkpoint?: LayoutExecutionCheckpoint) => Promise<void> | null;
35
+ /** Exact physical pages whose PAGE contexts are missing from a retained layout entry. */
36
+ pageNumbers?: readonly number[];
35
37
  }
36
38
  /**
37
39
  * Digit bucket for page number caching strategy.
package/dist/superdoc.cjs CHANGED
@@ -43260,7 +43260,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43260
43260
  this.config.colors = shuffleArray(this.config.colors);
43261
43261
  this.userColorMap = /* @__PURE__ */ new Map();
43262
43262
  this.colorIndex = 0;
43263
- this.version = "2.4.0-next.40";
43263
+ this.version = "2.4.0-next.41";
43264
43264
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43265
43265
  this.superdocId = config.superdocId || require_uuid.v4();
43266
43266
  this.colors = this.config.colors ?? [];
@@ -43193,7 +43193,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43193
43193
  this.config.colors = shuffleArray(this.config.colors);
43194
43194
  this.userColorMap = /* @__PURE__ */ new Map();
43195
43195
  this.colorIndex = 0;
43196
- this.version = "2.4.0-next.40";
43196
+ this.version = "2.4.0-next.41";
43197
43197
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43198
43198
  this.superdocId = config.superdocId || v4();
43199
43199
  this.colors = this.config.colors ?? [];