superdoc 2.16.0-next.5 → 2.16.0-next.7
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-Bg4nEED3.cjs → create-super-doc-ui-D9JWPXRh.cjs} +10 -9
- package/dist/chunks/{create-super-doc-ui-CYjL-fNG.es.js → create-super-doc-ui-qTSa0PbD.es.js} +10 -9
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/types/track-changes.types.d.ts +15 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist-cdn/superdoc.min.js +15 -15
- package/package.json +2 -2
|
@@ -6146,16 +6146,17 @@ function createSuperDocUI(options) {
|
|
|
6146
6146
|
if (command.scope !== "all" && selection.activeChangeIds.length === 0) return SUPERDOC_UI_REASONS.selectionRequired;
|
|
6147
6147
|
};
|
|
6148
6148
|
const findTrackChangeForPermission = (id) => {
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6149
|
+
syncCoordinatorEditor();
|
|
6150
|
+
let items;
|
|
6151
|
+
if (hasV2ReviewWindowFeed()) {
|
|
6152
|
+
const current = readAllStoryTrackChanges()?.find((item) => readEntityId(item) === id);
|
|
6153
|
+
if (current) return trackChangesItemPayload(current);
|
|
6154
|
+
const directory = asyncReads.get("trackChanges");
|
|
6155
|
+
items = directory?.hasSettled && Array.isArray(directory.value) ? directory.value : null;
|
|
6156
|
+
} else items = readTrackChangesDirectory("trackChanges:all").value;
|
|
6157
|
+
const row = items?.find((item) => readEntityId(item) === id);
|
|
6157
6158
|
const projected = projectTrackChangesItem(row);
|
|
6158
|
-
return projected ? trackChangesItemPayload(projected) :
|
|
6159
|
+
return projected ? trackChangesItemPayload(projected) : null;
|
|
6159
6160
|
};
|
|
6160
6161
|
const trackedChangeDecisionPermissionReason = (kind, ids) => {
|
|
6161
6162
|
const canPerform = superdoc.canPerformPermission;
|
package/dist/chunks/{create-super-doc-ui-CYjL-fNG.es.js → create-super-doc-ui-qTSa0PbD.es.js}
RENAMED
|
@@ -6146,16 +6146,17 @@ function createSuperDocUI(options) {
|
|
|
6146
6146
|
if (command.scope !== "all" && selection.activeChangeIds.length === 0) return SUPERDOC_UI_REASONS.selectionRequired;
|
|
6147
6147
|
};
|
|
6148
6148
|
const findTrackChangeForPermission = (id) => {
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6149
|
+
syncCoordinatorEditor();
|
|
6150
|
+
let items;
|
|
6151
|
+
if (hasV2ReviewWindowFeed()) {
|
|
6152
|
+
const current = readAllStoryTrackChanges()?.find((item) => readEntityId(item) === id);
|
|
6153
|
+
if (current) return trackChangesItemPayload(current);
|
|
6154
|
+
const directory = asyncReads.get("trackChanges");
|
|
6155
|
+
items = directory?.hasSettled && Array.isArray(directory.value) ? directory.value : null;
|
|
6156
|
+
} else items = readTrackChangesDirectory("trackChanges:all").value;
|
|
6157
|
+
const row = items?.find((item) => readEntityId(item) === id);
|
|
6157
6158
|
const projected = projectTrackChangesItem(row);
|
|
6158
|
-
return projected ? trackChangesItemPayload(projected) :
|
|
6159
|
+
return projected ? trackChangesItemPayload(projected) : null;
|
|
6159
6160
|
};
|
|
6160
6161
|
const trackedChangeDecisionPermissionReason = (kind, ids) => {
|
|
6161
6162
|
const canPerform = superdoc.canPerformPermission;
|
|
@@ -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.16.0-next.
|
|
22
|
+
superdocVersion: "2.16.0-next.7",
|
|
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.16.0-next.
|
|
21
|
+
superdocVersion: "2.16.0-next.7",
|
|
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
|
|
@@ -54,6 +54,19 @@ export interface TrackChangeWordRevisionIds {
|
|
|
54
54
|
/** Raw imported Word OOXML revision ID (`w:id`) from a `<w:rPrChange>` element when present. */
|
|
55
55
|
format?: string;
|
|
56
56
|
}
|
|
57
|
+
/** Durable membership of one authored text rewrite; children can be decided individually. */
|
|
58
|
+
export interface TrackChangeRewriteReviewGroup {
|
|
59
|
+
kind: 'text-rewrite';
|
|
60
|
+
role: 'parent' | 'child';
|
|
61
|
+
parentId?: string;
|
|
62
|
+
childChangeIds: readonly string[];
|
|
63
|
+
members: readonly {
|
|
64
|
+
id: string;
|
|
65
|
+
type: 'insertion' | 'deletion' | 'replacement';
|
|
66
|
+
subtype: string;
|
|
67
|
+
sourceIds: TrackChangeSourceIds;
|
|
68
|
+
}[];
|
|
69
|
+
}
|
|
57
70
|
/**
|
|
58
71
|
* Canonical multi-side source provenance per spec §3 / §4. Each value is
|
|
59
72
|
* raw, source-format identity (Word `w:id`, `w:rsidR` / `w:rsidDel`, future
|
|
@@ -506,6 +519,7 @@ export interface TrackChangeInfo {
|
|
|
506
519
|
wordRevisionIds?: TrackChangeWordRevisionIds;
|
|
507
520
|
/** Stable revision-group id (spec §3, fragment lineage). */
|
|
508
521
|
revisionGroupId?: string;
|
|
522
|
+
reviewGroup?: TrackChangeRewriteReviewGroup;
|
|
509
523
|
/** Set to the retired source id when this change is a partial-split fragment; otherwise `null`. */
|
|
510
524
|
splitFromId?: string | null;
|
|
511
525
|
/** Replacement side metadata (`grouped` mode replacements only). */
|
|
@@ -637,6 +651,7 @@ export interface TrackChangeDomain {
|
|
|
637
651
|
structuralDescriptor?: TrackChangeStructuralDescriptor;
|
|
638
652
|
/** Stable revision-group id. */
|
|
639
653
|
revisionGroupId?: string;
|
|
654
|
+
reviewGroup?: TrackChangeRewriteReviewGroup;
|
|
640
655
|
/** Set to the retired source id when this list item is a partial-split fragment; otherwise `null`. */
|
|
641
656
|
splitFromId?: string | null;
|
|
642
657
|
/**
|
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-D9JWPXRh.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
//#region src/public/ui/react.ts
|
|
@@ -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-qTSa0PbD.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
4
|
//#region src/public/ui/react.ts
|
package/dist/public/ui-vue.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-D9JWPXRh.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui-vue.es.js
CHANGED
|
@@ -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-qTSa0PbD.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
|
|
4
4
|
//#region src/public/ui/vue.ts
|
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-D9JWPXRh.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-qTSa0PbD.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-74VwNCz7.cjs");
|
|
3
3
|
const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
4
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
4
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-D9JWPXRh.cjs");
|
|
5
5
|
const require_eventemitter3 = require("./chunks/eventemitter3-C_TAnXOl.cjs");
|
|
6
6
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
7
7
|
const require_jszip = require("./chunks/jszip-D8mAFF-r.cjs");
|
|
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
|
|
|
316
316
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
317
317
|
function getSuperdocVersion() {
|
|
318
318
|
try {
|
|
319
|
-
return "2.16.0-next.
|
|
319
|
+
return "2.16.0-next.7";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -45690,7 +45690,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
45690
45690
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45691
45691
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45692
45692
|
this.colorIndex = 0;
|
|
45693
|
-
this.version = "2.16.0-next.
|
|
45693
|
+
this.version = "2.16.0-next.7";
|
|
45694
45694
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45695
45695
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
45696
45696
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM$2 } from "./chunks/rolldown-runtime-0pSA04fp.es.js";
|
|
2
2
|
import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
3
|
-
import { a as getV2TrackedChangeMutationImpact, c as createInteractionHistory, i as applyV2CommentInvalidationFromMutation, l as recordInteraction, o as DOM_CLASS_NAMES, s as closeInteractionHistory, t as createSuperDocUI } from "./chunks/create-super-doc-ui-
|
|
3
|
+
import { a as getV2TrackedChangeMutationImpact, c as createInteractionHistory, i as applyV2CommentInvalidationFromMutation, l as recordInteraction, o as DOM_CLASS_NAMES, s as closeInteractionHistory, t as createSuperDocUI } from "./chunks/create-super-doc-ui-qTSa0PbD.es.js";
|
|
4
4
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-DEIiXiH2.es.js";
|
|
5
5
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
6
6
|
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-BzJ3CyxR.es.js";
|
|
@@ -315,7 +315,7 @@ var shuffleArray = (array) => {
|
|
|
315
315
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
316
316
|
function getSuperdocVersion() {
|
|
317
317
|
try {
|
|
318
|
-
return "2.16.0-next.
|
|
318
|
+
return "2.16.0-next.7";
|
|
319
319
|
} catch {
|
|
320
320
|
return "unknown";
|
|
321
321
|
}
|
|
@@ -45621,7 +45621,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
45621
45621
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45622
45622
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45623
45623
|
this.colorIndex = 0;
|
|
45624
|
-
this.version = "2.16.0-next.
|
|
45624
|
+
this.version = "2.16.0-next.7";
|
|
45625
45625
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45626
45626
|
this.superdocId = config.superdocId || v4();
|
|
45627
45627
|
this.colors = this.config.colors ?? [];
|