superdoc 2.21.0-next.5 → 2.21.0

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.21.0-next.5",
22
+ superdocVersion: "2.21.0",
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.21.0-next.5",
21
+ superdocVersion: "2.21.0",
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
@@ -2,6 +2,7 @@ import { Position } from '../types/base.js';
2
2
  import { SelectionTarget } from '../types/address.js';
3
3
  import { AdapterMutationFailure } from '../types/adapter-result.js';
4
4
  import { DiscoveryOutput } from '../types/discovery.js';
5
+ import { StoryLocator } from '../types/story.types.js';
5
6
  export type PermissionRangePrincipal = {
6
7
  kind: 'everyone';
7
8
  } | {
@@ -15,6 +16,8 @@ export interface PermissionRangeInfo {
15
16
  kind: PermissionRangeKind;
16
17
  start: Position;
17
18
  end: Position;
19
+ /** Story containing this range. Omit for body (backward compatible). */
20
+ story?: StoryLocator;
18
21
  }
19
22
  export interface PermissionRangesListInput {
20
23
  limit?: number;
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.21.0-next.5";
319
+ return "2.21.0";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -46358,7 +46358,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46358
46358
  this.config.colors = shuffleArray(this.config.colors);
46359
46359
  this.userColorMap = /* @__PURE__ */ new Map();
46360
46360
  this.colorIndex = 0;
46361
- this.version = "2.21.0-next.5";
46361
+ this.version = "2.21.0";
46362
46362
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46363
46363
  this.superdocId = config.superdocId || require_uuid.v4();
46364
46364
  this.colors = this.config.colors ?? [];
@@ -314,7 +314,7 @@ var shuffleArray = (array) => {
314
314
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
315
315
  function getSuperdocVersion() {
316
316
  try {
317
- return "2.21.0-next.5";
317
+ return "2.21.0";
318
318
  } catch {
319
319
  return "unknown";
320
320
  }
@@ -46287,7 +46287,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46287
46287
  this.config.colors = shuffleArray(this.config.colors);
46288
46288
  this.userColorMap = /* @__PURE__ */ new Map();
46289
46289
  this.colorIndex = 0;
46290
- this.version = "2.21.0-next.5";
46290
+ this.version = "2.21.0";
46291
46291
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46292
46292
  this.superdocId = config.superdocId || v4();
46293
46293
  this.colors = this.config.colors ?? [];