superdoc 2.7.0-next.1 → 2.7.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/chunks/{create-super-doc-ui-DCjm-_Xo.es.js → create-super-doc-ui-BTNVc3UD.es.js} +7 -3
- package/dist/chunks/{create-super-doc-ui-CwCvqMOa.cjs → create-super-doc-ui-C44xPZxz.cjs} +7 -3
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/types/mutation-plan.types.d.ts +3 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +2 -3
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist-cdn/superdoc.min.js +3 -3
- package/package.json +2 -2
package/dist/chunks/{create-super-doc-ui-DCjm-_Xo.es.js → create-super-doc-ui-BTNVc3UD.es.js}
RENAMED
|
@@ -438,9 +438,8 @@ Object.freeze([
|
|
|
438
438
|
* Classify the tracked-change identities carried by a v2 mutation event.
|
|
439
439
|
*
|
|
440
440
|
* Receipt entities are the durable invalidation contract between the document
|
|
441
|
-
* kernel and derived review UI.
|
|
442
|
-
*
|
|
443
|
-
* the same bounded path and never enumerates invisible review identities.
|
|
441
|
+
* kernel and derived review UI. Direct receipts carry entity refs; mutation
|
|
442
|
+
* plans carry the same identities through `trackedChanges` and per-step ids.
|
|
444
443
|
*/
|
|
445
444
|
function getV2TrackedChangeMutationImpact(event) {
|
|
446
445
|
if (event?.type !== "mutation:committed") return null;
|
|
@@ -461,6 +460,11 @@ function getV2TrackedChangeMutationImpact(event) {
|
|
|
461
460
|
if (Array.isArray(payload.inserted)) payload.inserted.forEach((entry) => collectEntity(entry, upsertIds));
|
|
462
461
|
if (Array.isArray(payload.updated)) payload.updated.forEach((entry) => collectEntity(entry, upsertIds));
|
|
463
462
|
if (Array.isArray(payload.trackedChangeRefs)) payload.trackedChangeRefs.forEach((entry) => collectEntity(entry, upsertIds));
|
|
463
|
+
if (Array.isArray(payload.trackedChanges)) payload.trackedChanges.forEach((entry) => collectEntity(entry, upsertIds));
|
|
464
|
+
if (Array.isArray(payload.steps)) for (const step of payload.steps) {
|
|
465
|
+
if (!Array.isArray(step?.trackedChangeIds)) continue;
|
|
466
|
+
for (const id of step.trackedChangeIds) if (typeof id === "string" && id.length > 0) upsertIds.add(id);
|
|
467
|
+
}
|
|
464
468
|
if (Array.isArray(payload.removed)) payload.removed.forEach((entry) => collectEntity(entry, removedIds));
|
|
465
469
|
if (Array.isArray(payload.invalidatedRefs)) payload.invalidatedRefs.forEach((entry) => collectEntity(entry, removedIds));
|
|
466
470
|
if (Array.isArray(payload.remappedRefs)) for (const mapping of payload.remappedRefs) {
|
|
@@ -438,9 +438,8 @@ Object.freeze([
|
|
|
438
438
|
* Classify the tracked-change identities carried by a v2 mutation event.
|
|
439
439
|
*
|
|
440
440
|
* Receipt entities are the durable invalidation contract between the document
|
|
441
|
-
* kernel and derived review UI.
|
|
442
|
-
*
|
|
443
|
-
* the same bounded path and never enumerates invisible review identities.
|
|
441
|
+
* kernel and derived review UI. Direct receipts carry entity refs; mutation
|
|
442
|
+
* plans carry the same identities through `trackedChanges` and per-step ids.
|
|
444
443
|
*/
|
|
445
444
|
function getV2TrackedChangeMutationImpact(event) {
|
|
446
445
|
if (event?.type !== "mutation:committed") return null;
|
|
@@ -461,6 +460,11 @@ function getV2TrackedChangeMutationImpact(event) {
|
|
|
461
460
|
if (Array.isArray(payload.inserted)) payload.inserted.forEach((entry) => collectEntity(entry, upsertIds));
|
|
462
461
|
if (Array.isArray(payload.updated)) payload.updated.forEach((entry) => collectEntity(entry, upsertIds));
|
|
463
462
|
if (Array.isArray(payload.trackedChangeRefs)) payload.trackedChangeRefs.forEach((entry) => collectEntity(entry, upsertIds));
|
|
463
|
+
if (Array.isArray(payload.trackedChanges)) payload.trackedChanges.forEach((entry) => collectEntity(entry, upsertIds));
|
|
464
|
+
if (Array.isArray(payload.steps)) for (const step of payload.steps) {
|
|
465
|
+
if (!Array.isArray(step?.trackedChangeIds)) continue;
|
|
466
|
+
for (const id of step.trackedChangeIds) if (typeof id === "string" && id.length > 0) upsertIds.add(id);
|
|
467
|
+
}
|
|
464
468
|
if (Array.isArray(payload.removed)) payload.removed.forEach((entry) => collectEntity(entry, removedIds));
|
|
465
469
|
if (Array.isArray(payload.invalidatedRefs)) payload.invalidatedRefs.forEach((entry) => collectEntity(entry, removedIds));
|
|
466
470
|
if (Array.isArray(payload.remappedRefs)) for (const mapping of payload.remappedRefs) {
|
|
@@ -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.7.0-next.
|
|
22
|
+
superdocVersion: "2.7.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.7.0-next.
|
|
21
|
+
superdocVersion: "2.7.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
|
|
@@ -5,6 +5,7 @@ import { InsertStylePolicy, StylePolicy } from './style-policy.types.js';
|
|
|
5
5
|
import { InlineRunPatch } from '../format/inline-run-patch.js';
|
|
6
6
|
import { SDFragment } from './fragment.js';
|
|
7
7
|
import { Placement, NestingPolicy } from './placement.js';
|
|
8
|
+
import { AffectedRef } from './receipt.js';
|
|
8
9
|
import { ChangeMode } from '../write/write.js';
|
|
9
10
|
import { StoryLocator } from './story.types.js';
|
|
10
11
|
export type SelectWhere = {
|
|
@@ -229,6 +230,8 @@ export type PlanReceipt = {
|
|
|
229
230
|
};
|
|
230
231
|
steps: StepOutcome[];
|
|
231
232
|
trackedChanges?: TrackedChangeAddress[];
|
|
233
|
+
/** Caller-held refs that no longer resolve after the plan. */
|
|
234
|
+
invalidatedRefs?: AffectedRef[];
|
|
232
235
|
timing: {
|
|
233
236
|
totalMs: number;
|
|
234
237
|
};
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-C44xPZxz.cjs");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
//#region src/public/ui/react.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-BTNVc3UD.es.js";
|
|
2
2
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
3
3
|
//#region src/public/ui/react.ts
|
|
4
4
|
/**
|
package/dist/public/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-C44xPZxz.cjs");
|
|
3
3
|
exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
|
|
4
4
|
exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
|
|
5
5
|
exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-BTNVc3UD.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Classify the tracked-change identities carried by a v2 mutation event.
|
|
3
3
|
*
|
|
4
4
|
* Receipt entities are the durable invalidation contract between the document
|
|
5
|
-
* kernel and derived review UI.
|
|
6
|
-
*
|
|
7
|
-
* the same bounded path and never enumerates invisible review identities.
|
|
5
|
+
* kernel and derived review UI. Direct receipts carry entity refs; mutation
|
|
6
|
+
* plans carry the same identities through `trackedChanges` and per-step ids.
|
|
8
7
|
*/
|
|
9
8
|
export function getV2TrackedChangeMutationImpact(event: any): {
|
|
10
9
|
allResolved?: any;
|
package/dist/superdoc.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
|
4
4
|
const require_eventemitter3 = require("./chunks/eventemitter3-D38u8ta_.cjs");
|
|
5
5
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
6
6
|
const require_jszip = require("./chunks/jszip-RC64TPzL.cjs");
|
|
7
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
7
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-C44xPZxz.cjs");
|
|
8
8
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-SDR04tiH.cjs");
|
|
9
9
|
const require_constants = require("./chunks/constants-DpXuDx_g.cjs");
|
|
10
10
|
let vue = require("vue");
|
|
@@ -43606,7 +43606,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43606
43606
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43607
43607
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43608
43608
|
this.colorIndex = 0;
|
|
43609
|
-
this.version = "2.7.0-next.
|
|
43609
|
+
this.version = "2.7.0-next.2";
|
|
43610
43610
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43611
43611
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43612
43612
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
|
3
3
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-CMOjDs74.es.js";
|
|
4
4
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
5
5
|
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-VxCFV9YS.es.js";
|
|
6
|
-
import { a as DOM_CLASS_NAMES, i as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-
|
|
6
|
+
import { a as DOM_CLASS_NAMES, i as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-BTNVc3UD.es.js";
|
|
7
7
|
import { t as _plugin_vue_export_helper_default } from "./chunks/_plugin-vue_export-helper-BOaGB7Aw.es.js";
|
|
8
8
|
import { t as PDF_TO_CSS_UNITS } from "./chunks/constants-B6VBlmKp.es.js";
|
|
9
9
|
import * as Vue from "vue";
|
|
@@ -43539,7 +43539,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43539
43539
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43540
43540
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43541
43541
|
this.colorIndex = 0;
|
|
43542
|
-
this.version = "2.7.0-next.
|
|
43542
|
+
this.version = "2.7.0-next.2";
|
|
43543
43543
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43544
43544
|
this.superdocId = config.superdocId || v4();
|
|
43545
43545
|
this.colors = this.config.colors ?? [];
|