superdoc 2.5.1 → 2.6.0-next.2
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/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/run-helpers.d.ts +10 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +7 -0
- package/dist/layout-engine/painters/dom/src/paragraph/indentation.d.ts +1 -0
- 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.
|
|
22
|
+
superdocVersion: "2.6.0-next.2",
|
|
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.
|
|
21
|
+
superdocVersion: "2.6.0-next.2",
|
|
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
|
|
@@ -2807,7 +2807,7 @@ export declare const extractHeaderFooterSpace: (margins?: PageMargins | null) =>
|
|
|
2807
2807
|
};
|
|
2808
2808
|
export type { ResolvedLayout, ResolvedPage, ResolvedPaintItem, ResolvedGroupItem, ResolvedFragmentItem, ResolvedParagraphContent, ResolvedTextLineItem, ResolvedDropCapItem, ResolvedListMarkerItem, ResolvedTableItem, ResolvedImageItem, ResolvedDrawingItem, ResolvedHeaderFooterPage, ResolvedHeaderFooterLayout, } from './resolved-layout.js';
|
|
2809
2809
|
export { isResolvedTableItem, isResolvedImageItem, isResolvedDrawingItem } from './resolved-layout.js';
|
|
2810
|
-
export { expandRunsForInlineNewlines, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, sliceRunsForLine, } from './run-helpers.js';
|
|
2810
|
+
export { expandRunsForInlineNewlines, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, sliceRunsForLine, usesPositionedTextGeometry, } from './run-helpers.js';
|
|
2811
2811
|
export { INLINE_OBJECT_REPLACEMENT_CHARACTER, flattenParagraphVisibleText, mapVisibleRangeToRunSlices, type ParagraphVisibleRunSlice, } from './paragraph-visible-text.js';
|
|
2812
2812
|
export { inlineBoxStyleSignature, isFiniteNonNegativeInteger, normalizeInlineBoxLogicalSides, type InlineBoxLogicalSides, type ResolvedInlineBoxLogicalSides, } from './inline-box.js';
|
|
2813
2813
|
export { PAGE_CHECKPOINT_DEPENDENCY_CLASSES, areValidPageCheckpointDependencyClasses, type NonFlowingPageRelativeAnchorDependencyProof, type PageCheckpointDependencyClass, } from './incremental-dependency.js';
|
|
@@ -21,3 +21,13 @@ export declare function expandRunsForInlineNewlines(runs: Run[]): Run[];
|
|
|
21
21
|
* @returns Array of runs present in the line
|
|
22
22
|
*/
|
|
23
23
|
export declare function sliceRunsForLine(block: FlowBlock, line: Line): Run[];
|
|
24
|
+
/**
|
|
25
|
+
* Whether a line's text must be painted from measured segment coordinates.
|
|
26
|
+
*
|
|
27
|
+
* Explicit tab coordinates require positioned painting. Horizontally scaled
|
|
28
|
+
* text does as well because browser inline flow cannot preserve the measured
|
|
29
|
+
* advance after `scaleX`. Keeping this decision in the shared contracts layer
|
|
30
|
+
* prevents the resolver and painter from disagreeing about whether paragraph
|
|
31
|
+
* indentation is represented by CSS or by the segments' absolute X values.
|
|
32
|
+
*/
|
|
33
|
+
export declare function usesPositionedTextGeometry(line: Line, runsForLine: Run[], isRtl: boolean): boolean;
|
|
@@ -71,6 +71,13 @@ export type ParagraphLayoutContext = {
|
|
|
71
71
|
* vertical layout height.
|
|
72
72
|
*/
|
|
73
73
|
layoutOnlyAnchorCarrier?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Keep positioned objects on the page that owns this zero-height carrier.
|
|
76
|
+
* A carrier immediately before a forcing sectPr belongs to the preceding
|
|
77
|
+
* section; moving its object for page-fit would insert an extra page before
|
|
78
|
+
* the section break and detach it from its authored paragraph anchor.
|
|
79
|
+
*/
|
|
80
|
+
preserveAnchorCarrierPage?: boolean;
|
|
74
81
|
/**
|
|
75
82
|
* True when a split line-break carrier carries paragraph spacing that should
|
|
76
83
|
* remain in the flow. The carrier reserves one line plus spacing instead of
|
|
@@ -10,6 +10,7 @@ export type ParagraphLineIndentationParams = {
|
|
|
10
10
|
continuesFromPrev?: boolean;
|
|
11
11
|
suppressFirstLineIndent: boolean;
|
|
12
12
|
resetContinuationTextIndent?: boolean;
|
|
13
|
+
positionedTextGeometry?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export declare const hasExplicitSegmentPositioning: (line: Line) => boolean;
|
|
15
16
|
export declare const applyParagraphLineIndentation: (params: ParagraphLineIndentationParams) => void;
|
package/dist/superdoc.cjs
CHANGED
|
@@ -43277,7 +43277,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43277
43277
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43278
43278
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43279
43279
|
this.colorIndex = 0;
|
|
43280
|
-
this.version = "2.
|
|
43280
|
+
this.version = "2.6.0-next.2";
|
|
43281
43281
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43282
43282
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43283
43283
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -43210,7 +43210,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43210
43210
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43211
43211
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43212
43212
|
this.colorIndex = 0;
|
|
43213
|
-
this.version = "2.
|
|
43213
|
+
this.version = "2.6.0-next.2";
|
|
43214
43214
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43215
43215
|
this.superdocId = config.superdocId || v4();
|
|
43216
43216
|
this.colors = this.config.colors ?? [];
|