superdoc 2.19.0-next.7 → 2.19.0-next.8
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/document-api/src/diff/diff.types.d.ts +9 -1
- package/dist/document-api/src/diff/index.d.ts +1 -1
- package/dist/document-api/src/index.d.ts +1 -1
- 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
|
@@ -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.19.0-next.
|
|
22
|
+
superdocVersion: "2.19.0-next.8",
|
|
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.19.0-next.
|
|
21
|
+
superdocVersion: "2.19.0-next.8",
|
|
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
|
|
@@ -44,7 +44,7 @@ export interface DiffSummary {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
/** Stable reason code for a compare-time apply blocker. */
|
|
47
|
-
export type DiffApplyEligibilityBlockerCode = 'family-apply-lane-unavailable' | 'header-footer-physical-lifecycle-unsafe' | 'header-footer-tracked-lifecycle-unsupported' | 'comment-replay-unsafe' | 'comment-anchor-marker-semantics-unsafe' | 'styles-replay-unsafe' | 'numbering-replay-unsafe' | 'definition-replay-tracked-unsupported' | 'section-reference-replay-unsafe' | 'structural-paragraph-unsupported';
|
|
47
|
+
export type DiffApplyEligibilityBlockerCode = 'family-apply-lane-unavailable' | 'header-footer-physical-lifecycle-unsafe' | 'header-footer-tracked-lifecycle-unsupported' | 'comment-replay-unsafe' | 'comment-anchor-marker-semantics-unsafe' | 'styles-replay-unsafe' | 'numbering-replay-unsafe' | 'definition-replay-tracked-unsupported' | 'package-graph-tracked-unsupported' | 'section-reference-replay-unsafe' | 'structural-paragraph-unsupported';
|
|
48
48
|
/** A known reason that the complete diff cannot be applied in one change mode. */
|
|
49
49
|
export interface DiffApplyEligibilityBlocker {
|
|
50
50
|
code: DiffApplyEligibilityBlockerCode;
|
|
@@ -71,9 +71,17 @@ export interface DiffPayload {
|
|
|
71
71
|
summary: DiffSummary;
|
|
72
72
|
/** Known compare-time blockers by apply mode. Candidate status is not a live apply guarantee. */
|
|
73
73
|
applyEligibility?: DiffApplyEligibility;
|
|
74
|
+
/** Exhaustive changed OPC parts from the two source-complete snapshots. */
|
|
75
|
+
partChanges?: DiffPartChange[];
|
|
74
76
|
/** Opaque engine-owned diff data. Do not inspect or modify. */
|
|
75
77
|
payload: Record<string, unknown>;
|
|
76
78
|
}
|
|
79
|
+
export interface DiffPartChange {
|
|
80
|
+
partUri: string;
|
|
81
|
+
kind: 'added' | 'removed' | 'modified';
|
|
82
|
+
beforeFingerprint: string | null;
|
|
83
|
+
afterFingerprint: string | null;
|
|
84
|
+
}
|
|
77
85
|
export interface DiffApplyReviewItem {
|
|
78
86
|
id: string;
|
|
79
87
|
story: StoryLocator;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { DiffAdapter, DiffApi } from './diff.js';
|
|
2
2
|
export { executeDiffCapture, executeDiffCompare, executeDiffApply } from './diff.js';
|
|
3
|
-
export type { DiffSnapshot, DiffPayload, DiffApplyResult, DiffSummary, DiffCoverage, DiffEngineId, DiffCompareInput, DiffApplyInput, DiffApplyOptions, DiffChangeMode, DiffApplyOperationReceipt, DiffApplyReviewItem, DiffApplyEligibility, DiffApplyModeEligibility, DiffApplyEligibilityBlocker, DiffApplyEligibilityBlockerCode, } from './diff.types.js';
|
|
3
|
+
export type { DiffSnapshot, DiffPayload, DiffPartChange, DiffApplyResult, DiffSummary, DiffCoverage, DiffEngineId, DiffCompareInput, DiffApplyInput, DiffApplyOptions, DiffChangeMode, DiffApplyOperationReceipt, DiffApplyReviewItem, DiffApplyEligibility, DiffApplyModeEligibility, DiffApplyEligibilityBlocker, DiffApplyEligibilityBlockerCode, } from './diff.types.js';
|
|
@@ -95,7 +95,7 @@ export { executeProjectMarkdown } from './project-markdown/project-markdown.js';
|
|
|
95
95
|
export type { HistoryState, HistoryActionResult, HistoryNoopReason, SDHistoryStatus, SDHistoryCollaborationMeta, } from './history/history.types.js';
|
|
96
96
|
export { executeTrackChangesGet, executeTrackChangesList, executeTrackChangesDecide, } from './track-changes/track-changes.js';
|
|
97
97
|
export { createPlanApi, type PlanApi, type PlanExecuteInput, type PlanExecuteEntry, type PlanExecuteEntryExpect, type PlanExecuteResult, type PlanEntryReceipt, type PlanEntryReceiptStatus, type PlanExecuteFailure, type PlanCaptureRefMarker, type PlanProjectTextOffsetMarker, } from './plan/plan.js';
|
|
98
|
-
export type { DiffSnapshot, DiffPayload, DiffApplyResult, DiffCompareInput, DiffApplyInput, DiffApplyOptions, DiffApplyOperationReceipt, DiffApplyReviewItem, DiffApplyEligibility, DiffApplyModeEligibility, DiffApplyEligibilityBlocker, DiffApplyEligibilityBlockerCode, } from './diff/diff.types.js';
|
|
98
|
+
export type { DiffSnapshot, DiffPayload, DiffPartChange, DiffApplyResult, DiffCompareInput, DiffApplyInput, DiffApplyOptions, DiffApplyOperationReceipt, DiffApplyReviewItem, DiffApplyEligibility, DiffApplyModeEligibility, DiffApplyEligibilityBlocker, DiffApplyEligibilityBlockerCode, } from './diff/diff.types.js';
|
|
99
99
|
export type { GetAdapter } from './get/get.js';
|
|
100
100
|
export type { FindAdapter, FindOptions } from './find/find.js';
|
|
101
101
|
export type { GetNodeAdapter, GetNodeByIdInput } from './get-node/get-node.js';
|
package/dist/superdoc.cjs
CHANGED
|
@@ -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.19.0-next.
|
|
319
|
+
return "2.19.0-next.8";
|
|
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.19.0-next.
|
|
45693
|
+
this.version = "2.19.0-next.8";
|
|
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
|
@@ -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.19.0-next.
|
|
318
|
+
return "2.19.0-next.8";
|
|
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.19.0-next.
|
|
45624
|
+
this.version = "2.19.0-next.8";
|
|
45625
45625
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45626
45626
|
this.superdocId = config.superdocId || v4();
|
|
45627
45627
|
this.colors = this.config.colors ?? [];
|