superdoc 2.4.0-next.58 → 2.4.0-next.59

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.58",
22
+ superdocVersion: "2.4.0-next.59",
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.58",
21
+ superdocVersion: "2.4.0-next.59",
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
@@ -70,9 +70,11 @@ export type IncrementalLayoutResult = {
70
70
  * out no footnotes) — the next run then starts cold.
71
71
  */
72
72
  footnoteReserveSeed?: FootnoteReserveSeed | null;
73
+ /** Canonical pre-layout furniture heights that can affect body margins. */
74
+ headerFooterGeometryFingerprint: string;
73
75
  layoutReuse?: IncrementalLayoutReuseSummary;
74
76
  measureReuse?: {
75
- mode: 'full-scan' | 'proved-dirty-only';
77
+ mode: 'full-scan' | 'proved-dirty-only' | 'body-stable';
76
78
  blocksMeasured: number;
77
79
  measuresAdopted: number;
78
80
  reason: string;
@@ -288,6 +290,15 @@ export type IncrementalLayoutReuseOptions = {
288
290
  noteIds: readonly string[];
289
291
  bodyReferenceBlockIds: readonly string[];
290
292
  };
293
+ /**
294
+ * Host-proved header/footer-only refresh. The bridge still compares the
295
+ * current pre-layout height fingerprint before retaining body pagination.
296
+ */
297
+ provedHeaderFooterOnlyRefresh?: {
298
+ bodyProjectionRetainedExact: true;
299
+ bodyLayoutInputsUnchanged: true;
300
+ previousGeometryFingerprint: string;
301
+ };
291
302
  };
292
303
  export declare const measureCache: MeasureCache<Measure>;
293
304
  /**
package/dist/superdoc.cjs CHANGED
@@ -43261,7 +43261,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43261
43261
  this.config.colors = shuffleArray(this.config.colors);
43262
43262
  this.userColorMap = /* @__PURE__ */ new Map();
43263
43263
  this.colorIndex = 0;
43264
- this.version = "2.4.0-next.58";
43264
+ this.version = "2.4.0-next.59";
43265
43265
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43266
43266
  this.superdocId = config.superdocId || require_uuid.v4();
43267
43267
  this.colors = this.config.colors ?? [];
@@ -43194,7 +43194,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43194
43194
  this.config.colors = shuffleArray(this.config.colors);
43195
43195
  this.userColorMap = /* @__PURE__ */ new Map();
43196
43196
  this.colorIndex = 0;
43197
- this.version = "2.4.0-next.58";
43197
+ this.version = "2.4.0-next.59";
43198
43198
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43199
43199
  this.superdocId = config.superdocId || v4();
43200
43200
  this.colors = this.config.colors ?? [];