superdoc 2.16.0-next.6 → 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.
@@ -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.6",
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.6",
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/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.16.0-next.6";
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.6";
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 ?? [];
@@ -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.6";
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.6";
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 ?? [];