superdoc 2.0.0-next.52 → 2.0.0-next.53

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.
@@ -6172,10 +6172,7 @@ function createSuperDocUI(options) {
6172
6172
  const change = trackChangesItemPayload(item);
6173
6173
  const type = change.type;
6174
6174
  const grouping = change.grouping;
6175
- if (type === "replacement" && grouping === "replacement-pair") {
6176
- if (typeof change.insertedText === "string" && state.selection.quotedText === change.insertedText) return "id";
6177
- return "range";
6178
- }
6175
+ if (type === "replacement" && grouping === "replacement-pair") return "range";
6179
6176
  return (type === "insertion" || type === "deletion" || type === "insert" || type === "delete") && grouping === "standalone" ? "range" : "id";
6180
6177
  }
6181
6178
  function resolveTrackDecisionTarget(command, payload) {
@@ -5950,10 +5950,7 @@ function createSuperDocUI(options) {
5950
5950
  const change = trackChangesItemPayload(item);
5951
5951
  const type = change.type;
5952
5952
  const grouping = change.grouping;
5953
- if (type === "replacement" && grouping === "replacement-pair") {
5954
- if (typeof change.insertedText === "string" && state.selection.quotedText === change.insertedText) return "id";
5955
- return "range";
5956
- }
5953
+ if (type === "replacement" && grouping === "replacement-pair") return "range";
5957
5954
  return (type === "insertion" || type === "deletion" || type === "insert" || type === "delete") && grouping === "standalone" ? "range" : "id";
5958
5955
  }
5959
5956
  function resolveTrackDecisionTarget(command, payload) {
@@ -7,7 +7,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
7
7
  var PRIVATE_ENGINE_INFO = (0, __superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
8
8
  var ENGINE_INFO = Object.freeze({
9
9
  ...PRIVATE_ENGINE_INFO,
10
- superdocVersion: "2.0.0-next.52",
10
+ superdocVersion: "2.0.0-next.53",
11
11
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
12
12
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
13
13
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -6,7 +6,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
6
6
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
7
7
  var ENGINE_INFO = Object.freeze({
8
8
  ...PRIVATE_ENGINE_INFO,
9
- superdocVersion: "2.0.0-next.52",
9
+ superdocVersion: "2.0.0-next.53",
10
10
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
11
11
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
12
12
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../chunks/rolldown-runtime-_dR15c8t.cjs");
3
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CMnnWkHC.cjs");
3
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-BWFYti_W.cjs");
4
4
  let react = require("react");
5
5
  var SuperDocUIContext = (0, react.createContext)(null);
6
6
  function disposeOwnedUi(ref) {
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-9N3-Jxnj.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Bqkk1Ios.es.js";
2
2
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
3
3
  var SuperDocUIContext = createContext(null);
4
4
  function disposeOwnedUi(ref) {
@@ -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-CMnnWkHC.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-BWFYti_W.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;
@@ -1,2 +1,2 @@
1
- import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-9N3-Jxnj.es.js";
1
+ import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-Bqkk1Ios.es.js";
2
2
  export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
package/dist/superdoc.cjs CHANGED
@@ -6,7 +6,7 @@ const require_uuid = require("./chunks/uuid-CFp0WGVU.cjs");
6
6
  const require_jszip = require("./chunks/jszip-BdUBlUeG.cjs");
7
7
  const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-BTwbGDKw.cjs");
8
8
  const require_constants = require("./chunks/constants-sbCZ2O_A.cjs");
9
- const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-CMnnWkHC.cjs");
9
+ const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-BWFYti_W.cjs");
10
10
  let vue = require("vue");
11
11
  vue = require_rolldown_runtime.__toESM(vue);
12
12
  require("y-websocket");
@@ -34877,7 +34877,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
34877
34877
  this.config.colors = shuffleArray(this.config.colors);
34878
34878
  this.userColorMap = /* @__PURE__ */ new Map();
34879
34879
  this.colorIndex = 0;
34880
- this.version = "2.0.0-next.52";
34880
+ this.version = "2.0.0-next.53";
34881
34881
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
34882
34882
  this.superdocId = config.superdocId || require_uuid.v4_default();
34883
34883
  this.colors = this.config.colors ?? [];
@@ -5,7 +5,7 @@ import { t as v4_default } from "./chunks/uuid-B2Sqk-3p.es.js";
5
5
  import { a as init_dist, i as global, n as init_dist$1, r as process$1, t as require_jszip_min } from "./chunks/jszip-DzmwAHr3.es.js";
6
6
  import { t as __plugin_vue_export_helper_default } from "./chunks/_plugin-vue_export-helper-CInC0bKI.es.js";
7
7
  import { n as PDF_TO_CSS_UNITS } from "./chunks/constants-CY3R3_kF.es.js";
8
- import { a as createV2ReviewMutationReconciler, i as isV2EditableTextMutationEvent, o as getV2TrackedChangeMutationImpact, s as composeAuthorColorResolver, t as createSuperDocUI } from "./chunks/create-super-doc-ui-9N3-Jxnj.es.js";
8
+ import { a as createV2ReviewMutationReconciler, i as isV2EditableTextMutationEvent, o as getV2TrackedChangeMutationImpact, s as composeAuthorColorResolver, t as createSuperDocUI } from "./chunks/create-super-doc-ui-Bqkk1Ios.es.js";
9
9
  import * as Vue from "vue";
10
10
  import { Fragment, Teleport, Transition, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, h, inject, markRaw, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onDeactivated, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, unref, useAttrs, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
11
11
  import "y-websocket";
@@ -34814,7 +34814,7 @@ var SuperDoc = class extends import_eventemitter3.default {
34814
34814
  this.config.colors = shuffleArray(this.config.colors);
34815
34815
  this.userColorMap = /* @__PURE__ */ new Map();
34816
34816
  this.colorIndex = 0;
34817
- this.version = "2.0.0-next.52";
34817
+ this.version = "2.0.0-next.53";
34818
34818
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
34819
34819
  this.superdocId = config.superdocId || v4_default();
34820
34820
  this.colors = this.config.colors ?? [];