superdoc 2.4.0-next.22 → 2.4.0-next.23
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.
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +2 -0
- package/dist/layout-engine/layout-bridge/src/layoutHeaderFooter.d.ts +5 -1
- package/dist/superdoc.cjs +1 -1
- package/dist/superdoc.es.js +1 -1
- package/dist-cdn/superdoc.min.js +2 -2
- package/package.json +2 -2
|
@@ -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.
|
|
22
|
+
superdocVersion: "2.4.0-next.23",
|
|
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.
|
|
21
|
+
superdocVersion: "2.4.0-next.23",
|
|
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
|
|
@@ -281,6 +281,8 @@ export interface IncrementalLayoutExecutionControl {
|
|
|
281
281
|
yieldToHost?: () => Promise<void>;
|
|
282
282
|
/** Checkpoint cadence for the block measurement loop. Defaults to 32. */
|
|
283
283
|
yieldEveryBlocks?: number;
|
|
284
|
+
/** Time-aware mounted probe. Null is the allocation-free under-budget path. */
|
|
285
|
+
checkpointIfDue?: () => Promise<void> | null;
|
|
284
286
|
}
|
|
285
287
|
export declare function incrementalLayout(previousBlocks: FlowBlock[], _previousLayout: Layout | null, nextBlocks: FlowBlock[], options: LayoutOptions, measureBlock: (block: FlowBlock, constraints: {
|
|
286
288
|
maxWidth: number;
|
|
@@ -28,6 +28,10 @@ export type PageResolver = (pageNumber: number) => {
|
|
|
28
28
|
chapterNumberText?: string;
|
|
29
29
|
chapterSeparator?: PageNumberChapterSeparator;
|
|
30
30
|
};
|
|
31
|
+
/** Optional cooperative execution hook for browser-owned furniture builds. */
|
|
32
|
+
export interface HeaderFooterLayoutExecution {
|
|
33
|
+
checkpointIfDue?: () => Promise<void> | null;
|
|
34
|
+
}
|
|
31
35
|
/**
|
|
32
36
|
* Digit bucket for page number caching strategy.
|
|
33
37
|
* Different digit lengths require different measurements due to width changes.
|
|
@@ -120,4 +124,4 @@ export declare function invalidateHeaderFooterMeasureCache(blockIds: string[]):
|
|
|
120
124
|
* @param pageResolver - Callback to resolve display page info for a physical page number
|
|
121
125
|
* @returns Batch result with layouts, blocks, and measures for each variant
|
|
122
126
|
*/
|
|
123
|
-
export declare function layoutHeaderFooterWithCache(sections: HeaderFooterBatch, constraints: HeaderFooterConstraints, measureBlock: MeasureResolver, cache?: HeaderFooterLayoutCache, totalPages?: number, pageResolver?: PageResolver, kind?: 'header' | 'footer', fontSignature?: string, remeasureParagraph?: (block: ParagraphBlock, maxWidth: number, firstLineIndent?: number) => ParagraphMeasure, options?: ResolveHeaderFooterTokensOptions): Promise<HeaderFooterBatchResult>;
|
|
127
|
+
export declare function layoutHeaderFooterWithCache(sections: HeaderFooterBatch, constraints: HeaderFooterConstraints, measureBlock: MeasureResolver, cache?: HeaderFooterLayoutCache, totalPages?: number, pageResolver?: PageResolver, kind?: 'header' | 'footer', fontSignature?: string, remeasureParagraph?: (block: ParagraphBlock, maxWidth: number, firstLineIndent?: number) => ParagraphMeasure, options?: ResolveHeaderFooterTokensOptions, execution?: HeaderFooterLayoutExecution): Promise<HeaderFooterBatchResult>;
|
package/dist/superdoc.cjs
CHANGED
|
@@ -43268,7 +43268,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43268
43268
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43269
43269
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43270
43270
|
this.colorIndex = 0;
|
|
43271
|
-
this.version = "2.4.0-next.
|
|
43271
|
+
this.version = "2.4.0-next.23";
|
|
43272
43272
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43273
43273
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43274
43274
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -43201,7 +43201,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43201
43201
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43202
43202
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43203
43203
|
this.colorIndex = 0;
|
|
43204
|
-
this.version = "2.4.0-next.
|
|
43204
|
+
this.version = "2.4.0-next.23";
|
|
43205
43205
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43206
43206
|
this.superdocId = config.superdocId || v4();
|
|
43207
43207
|
this.colors = this.config.colors ?? [];
|