superdoc 2.4.0-next.57 → 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.
- package/README.md +28 -0
- 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 +14 -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 -3
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# superdoc
|
|
2
|
+
|
|
3
|
+
Browser editor for opening, editing, and rendering DOCX files.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install superdoc
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { SuperDoc } from 'superdoc';
|
|
15
|
+
import 'superdoc/style.css';
|
|
16
|
+
|
|
17
|
+
const editor = new SuperDoc({
|
|
18
|
+
selector: '#editor',
|
|
19
|
+
document: '/document.docx',
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
See the [editor quick start](https://docs.superdoc.dev/editor/quickstart) for a complete example and the
|
|
24
|
+
[SuperDoc documentation](https://docs.superdoc.dev) for configuration and APIs.
|
|
25
|
+
|
|
26
|
+
## License
|
|
27
|
+
|
|
28
|
+
AGPL-3.0. Commercial licenses are available from [SuperDoc](https://www.superdoc.dev).
|
|
@@ -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.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.
|
|
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;
|
|
@@ -195,6 +197,8 @@ export type IncrementalLayoutTailAdoption = {
|
|
|
195
197
|
pageIndexDelta: number;
|
|
196
198
|
sectionPageNumberTransform: IncrementalSectionPageNumberTransform | null;
|
|
197
199
|
displayPageNumberTransform?: IncrementalDisplayPageNumberTransform | null;
|
|
200
|
+
/** Exact proof that PAGEREF page/numbering locations are unchanged in the adopted tail. */
|
|
201
|
+
pageReferenceLocationsStable: boolean;
|
|
198
202
|
sourceLayoutEpoch: number | null;
|
|
199
203
|
positionTransforms: readonly LayoutPositionTransform[];
|
|
200
204
|
/** Lazy old->current block-id rekeys for an ordinal-changing structural splice. */
|
|
@@ -286,6 +290,15 @@ export type IncrementalLayoutReuseOptions = {
|
|
|
286
290
|
noteIds: readonly string[];
|
|
287
291
|
bodyReferenceBlockIds: readonly string[];
|
|
288
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
|
+
};
|
|
289
302
|
};
|
|
290
303
|
export declare const measureCache: MeasureCache<Measure>;
|
|
291
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.
|
|
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 ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -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.
|
|
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 ?? [];
|