superdoc 2.19.0-next.5 → 2.19.0-next.6
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-BFJ9Y0YV.cjs → create-super-doc-ui-CSZSAgxc.cjs} +58 -0
- package/dist/chunks/{create-super-doc-ui-Dfw1b6h_.es.js → create-super-doc-ui-DMe-GQEe.es.js} +58 -0
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- 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 +36 -36
- package/package.json +2 -2
|
@@ -8898,6 +8898,7 @@ function createSuperDocUI(options) {
|
|
|
8898
8898
|
syncTrackedChangeFocusFromHostReviewTarget(readHostActiveReviewTarget(readHostReviewSource()));
|
|
8899
8899
|
state = computeState("initial");
|
|
8900
8900
|
lastOptimisticInlineSelectionSignature = selectionInlineValueSignature(state.selection);
|
|
8901
|
+
let scheduleActiveSearchRefresh = () => {};
|
|
8901
8902
|
const syncHostEventsSubscription = () => {
|
|
8902
8903
|
const host = getEditor()?.host;
|
|
8903
8904
|
const events = host?.events;
|
|
@@ -8917,6 +8918,7 @@ function createSuperDocUI(options) {
|
|
|
8917
8918
|
const off = next.subscribe((event) => {
|
|
8918
8919
|
const type = event?.type;
|
|
8919
8920
|
const isStandaloneDocumentMutation = type === "document:mutated" && event.hasCommitEvent !== true;
|
|
8921
|
+
if (isStandaloneDocumentMutation || type === "mutation:committed" && mutationCommittedEventChangedDocument(event) || type === "collaboration:remote-changed" && Array.isArray(event.changedStoryIds) && event.changedStoryIds.length > 0) scheduleActiveSearchRefresh();
|
|
8920
8922
|
if ((type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event)) && host && !dirtyHosts.has(host)) {
|
|
8921
8923
|
dirtyHosts.add(host);
|
|
8922
8924
|
recompute("document-dirty");
|
|
@@ -12318,6 +12320,12 @@ function createSuperDocUI(options) {
|
|
|
12318
12320
|
* session is the one that says how to close it.
|
|
12319
12321
|
*/
|
|
12320
12322
|
let releaseActiveSearchSession = null;
|
|
12323
|
+
let releaseRefreshShellSearch = null;
|
|
12324
|
+
const cancelRefreshShellSearch = () => {
|
|
12325
|
+
const release = releaseRefreshShellSearch;
|
|
12326
|
+
releaseRefreshShellSearch = null;
|
|
12327
|
+
if (release) safeCall(() => release(), null);
|
|
12328
|
+
};
|
|
12321
12329
|
/** Release whatever session is open, then forget it. */
|
|
12322
12330
|
const releaseSearchSession = () => {
|
|
12323
12331
|
const release = releaseActiveSearchSession;
|
|
@@ -12349,6 +12357,7 @@ function createSuperDocUI(options) {
|
|
|
12349
12357
|
searchRequestGeneration += 1;
|
|
12350
12358
|
pendingFallbackGeneration = null;
|
|
12351
12359
|
shellFallbackOutstanding = false;
|
|
12360
|
+
cancelRefreshShellSearch();
|
|
12352
12361
|
releaseSearchSession();
|
|
12353
12362
|
const available = searchIsAvailable();
|
|
12354
12363
|
searchState = {
|
|
@@ -12530,6 +12539,7 @@ function createSuperDocUI(options) {
|
|
|
12530
12539
|
},
|
|
12531
12540
|
close: () => {
|
|
12532
12541
|
searchRequestGeneration += 1;
|
|
12542
|
+
cancelRefreshShellSearch();
|
|
12533
12543
|
if (releaseActiveSearchSession) releaseSearchSession();
|
|
12534
12544
|
else {
|
|
12535
12545
|
const host = getHostSearch();
|
|
@@ -12553,6 +12563,7 @@ function createSuperDocUI(options) {
|
|
|
12553
12563
|
const includeDeletedText = (options?.includeTrackedDeletions ?? options?.includeDeletedText) === true;
|
|
12554
12564
|
const regex = options?.regex === true;
|
|
12555
12565
|
const generation = ++searchRequestGeneration;
|
|
12566
|
+
cancelRefreshShellSearch();
|
|
12556
12567
|
cancelOutstandingShellFallback();
|
|
12557
12568
|
if (!host || typeof host.setSession !== "function") {
|
|
12558
12569
|
const editSearch = getEditCommandSearch();
|
|
@@ -12741,6 +12752,7 @@ function createSuperDocUI(options) {
|
|
|
12741
12752
|
},
|
|
12742
12753
|
clear: () => {
|
|
12743
12754
|
searchRequestGeneration += 1;
|
|
12755
|
+
cancelRefreshShellSearch();
|
|
12744
12756
|
cancelOutstandingShellFallback();
|
|
12745
12757
|
const host = getHostSearch();
|
|
12746
12758
|
if (host && typeof host.clear === "function") safeCall(() => host.clear(), null);
|
|
@@ -12856,6 +12868,49 @@ function createSuperDocUI(options) {
|
|
|
12856
12868
|
return mapHostReplaceResult(result);
|
|
12857
12869
|
}
|
|
12858
12870
|
};
|
|
12871
|
+
let searchRefreshTimer = null;
|
|
12872
|
+
scheduleActiveSearchRefresh = () => {
|
|
12873
|
+
if (searchRefreshTimer !== null) clearTimeout(searchRefreshTimer);
|
|
12874
|
+
if (!searchState.open || !searchState.query) return;
|
|
12875
|
+
const scheduledGeneration = searchRequestGeneration;
|
|
12876
|
+
searchRefreshTimer = setTimeout(() => {
|
|
12877
|
+
searchRefreshTimer = null;
|
|
12878
|
+
if (disposed || scheduledGeneration !== searchRequestGeneration || !searchState.open || !searchState.query) return;
|
|
12879
|
+
const input = {
|
|
12880
|
+
query: searchState.query,
|
|
12881
|
+
caseSensitive: searchState.caseSensitive,
|
|
12882
|
+
includeDeletedText: searchState.includeDeletedText,
|
|
12883
|
+
regex: searchState.regex
|
|
12884
|
+
};
|
|
12885
|
+
const editSearch = getEditCommandSearch();
|
|
12886
|
+
const host = getHostSearch();
|
|
12887
|
+
if (typeof editSearch?.refresh !== "function" && typeof host?.refresh !== "function") return;
|
|
12888
|
+
const generation = ++searchRequestGeneration;
|
|
12889
|
+
cancelOutstandingShellFallback();
|
|
12890
|
+
if (typeof editSearch?.refresh === "function" && typeof editSearch.query === "function") {
|
|
12891
|
+
const capturedSearch = editSearch;
|
|
12892
|
+
releaseRefreshShellSearch = () => {
|
|
12893
|
+
capturedSearch.query({ query: "" });
|
|
12894
|
+
};
|
|
12895
|
+
}
|
|
12896
|
+
const result = typeof editSearch?.refresh === "function" ? safeCall(() => editSearch.refresh(input), null) : safeCall(() => host.refresh(), null);
|
|
12897
|
+
if (isPromiseLike(result)) {
|
|
12898
|
+
pendingFallbackGeneration = generation;
|
|
12899
|
+
Promise.resolve(result).then((resolved) => {
|
|
12900
|
+
if (generation !== searchRequestGeneration || disposed) return;
|
|
12901
|
+
pendingFallbackGeneration = null;
|
|
12902
|
+
applyHostSearchResult(resolved, readEditCommandCanReplace(), readEditCommandCanReplaceAll());
|
|
12903
|
+
}, () => {
|
|
12904
|
+
if (generation !== searchRequestGeneration || disposed) return;
|
|
12905
|
+
pendingFallbackGeneration = null;
|
|
12906
|
+
setSearchState({
|
|
12907
|
+
available: false,
|
|
12908
|
+
reason: SUPERDOC_UI_REASONS.searchUnavailable
|
|
12909
|
+
});
|
|
12910
|
+
});
|
|
12911
|
+
} else if (result !== null) applyHostSearchResult(result);
|
|
12912
|
+
}, 120);
|
|
12913
|
+
};
|
|
12859
12914
|
const stylesSub = sliceHandle((s) => s.styles);
|
|
12860
12915
|
const stylesSnap = snapshotHandle(stylesSub);
|
|
12861
12916
|
const styles = {
|
|
@@ -12903,6 +12958,9 @@ function createSuperDocUI(options) {
|
|
|
12903
12958
|
watermark.destroy();
|
|
12904
12959
|
clearContentControlHighlight();
|
|
12905
12960
|
disposed = true;
|
|
12961
|
+
if (searchRefreshTimer !== null) clearTimeout(searchRefreshTimer);
|
|
12962
|
+
searchRefreshTimer = null;
|
|
12963
|
+
cancelRefreshShellSearch();
|
|
12906
12964
|
releaseSharedUiTrackedChangesCatalog(uiTrackedChangesCatalogHost, uiTrackedChangesCatalogState);
|
|
12907
12965
|
if (foregroundAsyncRetryTimer) {
|
|
12908
12966
|
clearTimeout(foregroundAsyncRetryTimer);
|
package/dist/chunks/{create-super-doc-ui-Dfw1b6h_.es.js → create-super-doc-ui-DMe-GQEe.es.js}
RENAMED
|
@@ -8897,6 +8897,7 @@ function createSuperDocUI(options) {
|
|
|
8897
8897
|
syncTrackedChangeFocusFromHostReviewTarget(readHostActiveReviewTarget(readHostReviewSource()));
|
|
8898
8898
|
state = computeState("initial");
|
|
8899
8899
|
lastOptimisticInlineSelectionSignature = selectionInlineValueSignature(state.selection);
|
|
8900
|
+
let scheduleActiveSearchRefresh = () => {};
|
|
8900
8901
|
const syncHostEventsSubscription = () => {
|
|
8901
8902
|
const host = getEditor()?.host;
|
|
8902
8903
|
const events = host?.events;
|
|
@@ -8916,6 +8917,7 @@ function createSuperDocUI(options) {
|
|
|
8916
8917
|
const off = next.subscribe((event) => {
|
|
8917
8918
|
const type = event?.type;
|
|
8918
8919
|
const isStandaloneDocumentMutation = type === "document:mutated" && event.hasCommitEvent !== true;
|
|
8920
|
+
if (isStandaloneDocumentMutation || type === "mutation:committed" && mutationCommittedEventChangedDocument(event) || type === "collaboration:remote-changed" && Array.isArray(event.changedStoryIds) && event.changedStoryIds.length > 0) scheduleActiveSearchRefresh();
|
|
8919
8921
|
if ((type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event)) && host && !dirtyHosts.has(host)) {
|
|
8920
8922
|
dirtyHosts.add(host);
|
|
8921
8923
|
recompute("document-dirty");
|
|
@@ -12317,6 +12319,12 @@ function createSuperDocUI(options) {
|
|
|
12317
12319
|
* session is the one that says how to close it.
|
|
12318
12320
|
*/
|
|
12319
12321
|
let releaseActiveSearchSession = null;
|
|
12322
|
+
let releaseRefreshShellSearch = null;
|
|
12323
|
+
const cancelRefreshShellSearch = () => {
|
|
12324
|
+
const release = releaseRefreshShellSearch;
|
|
12325
|
+
releaseRefreshShellSearch = null;
|
|
12326
|
+
if (release) safeCall(() => release(), null);
|
|
12327
|
+
};
|
|
12320
12328
|
/** Release whatever session is open, then forget it. */
|
|
12321
12329
|
const releaseSearchSession = () => {
|
|
12322
12330
|
const release = releaseActiveSearchSession;
|
|
@@ -12348,6 +12356,7 @@ function createSuperDocUI(options) {
|
|
|
12348
12356
|
searchRequestGeneration += 1;
|
|
12349
12357
|
pendingFallbackGeneration = null;
|
|
12350
12358
|
shellFallbackOutstanding = false;
|
|
12359
|
+
cancelRefreshShellSearch();
|
|
12351
12360
|
releaseSearchSession();
|
|
12352
12361
|
const available = searchIsAvailable();
|
|
12353
12362
|
searchState = {
|
|
@@ -12529,6 +12538,7 @@ function createSuperDocUI(options) {
|
|
|
12529
12538
|
},
|
|
12530
12539
|
close: () => {
|
|
12531
12540
|
searchRequestGeneration += 1;
|
|
12541
|
+
cancelRefreshShellSearch();
|
|
12532
12542
|
if (releaseActiveSearchSession) releaseSearchSession();
|
|
12533
12543
|
else {
|
|
12534
12544
|
const host = getHostSearch();
|
|
@@ -12552,6 +12562,7 @@ function createSuperDocUI(options) {
|
|
|
12552
12562
|
const includeDeletedText = (options?.includeTrackedDeletions ?? options?.includeDeletedText) === true;
|
|
12553
12563
|
const regex = options?.regex === true;
|
|
12554
12564
|
const generation = ++searchRequestGeneration;
|
|
12565
|
+
cancelRefreshShellSearch();
|
|
12555
12566
|
cancelOutstandingShellFallback();
|
|
12556
12567
|
if (!host || typeof host.setSession !== "function") {
|
|
12557
12568
|
const editSearch = getEditCommandSearch();
|
|
@@ -12740,6 +12751,7 @@ function createSuperDocUI(options) {
|
|
|
12740
12751
|
},
|
|
12741
12752
|
clear: () => {
|
|
12742
12753
|
searchRequestGeneration += 1;
|
|
12754
|
+
cancelRefreshShellSearch();
|
|
12743
12755
|
cancelOutstandingShellFallback();
|
|
12744
12756
|
const host = getHostSearch();
|
|
12745
12757
|
if (host && typeof host.clear === "function") safeCall(() => host.clear(), null);
|
|
@@ -12855,6 +12867,49 @@ function createSuperDocUI(options) {
|
|
|
12855
12867
|
return mapHostReplaceResult(result);
|
|
12856
12868
|
}
|
|
12857
12869
|
};
|
|
12870
|
+
let searchRefreshTimer = null;
|
|
12871
|
+
scheduleActiveSearchRefresh = () => {
|
|
12872
|
+
if (searchRefreshTimer !== null) clearTimeout(searchRefreshTimer);
|
|
12873
|
+
if (!searchState.open || !searchState.query) return;
|
|
12874
|
+
const scheduledGeneration = searchRequestGeneration;
|
|
12875
|
+
searchRefreshTimer = setTimeout(() => {
|
|
12876
|
+
searchRefreshTimer = null;
|
|
12877
|
+
if (disposed || scheduledGeneration !== searchRequestGeneration || !searchState.open || !searchState.query) return;
|
|
12878
|
+
const input = {
|
|
12879
|
+
query: searchState.query,
|
|
12880
|
+
caseSensitive: searchState.caseSensitive,
|
|
12881
|
+
includeDeletedText: searchState.includeDeletedText,
|
|
12882
|
+
regex: searchState.regex
|
|
12883
|
+
};
|
|
12884
|
+
const editSearch = getEditCommandSearch();
|
|
12885
|
+
const host = getHostSearch();
|
|
12886
|
+
if (typeof editSearch?.refresh !== "function" && typeof host?.refresh !== "function") return;
|
|
12887
|
+
const generation = ++searchRequestGeneration;
|
|
12888
|
+
cancelOutstandingShellFallback();
|
|
12889
|
+
if (typeof editSearch?.refresh === "function" && typeof editSearch.query === "function") {
|
|
12890
|
+
const capturedSearch = editSearch;
|
|
12891
|
+
releaseRefreshShellSearch = () => {
|
|
12892
|
+
capturedSearch.query({ query: "" });
|
|
12893
|
+
};
|
|
12894
|
+
}
|
|
12895
|
+
const result = typeof editSearch?.refresh === "function" ? safeCall(() => editSearch.refresh(input), null) : safeCall(() => host.refresh(), null);
|
|
12896
|
+
if (isPromiseLike(result)) {
|
|
12897
|
+
pendingFallbackGeneration = generation;
|
|
12898
|
+
Promise.resolve(result).then((resolved) => {
|
|
12899
|
+
if (generation !== searchRequestGeneration || disposed) return;
|
|
12900
|
+
pendingFallbackGeneration = null;
|
|
12901
|
+
applyHostSearchResult(resolved, readEditCommandCanReplace(), readEditCommandCanReplaceAll());
|
|
12902
|
+
}, () => {
|
|
12903
|
+
if (generation !== searchRequestGeneration || disposed) return;
|
|
12904
|
+
pendingFallbackGeneration = null;
|
|
12905
|
+
setSearchState({
|
|
12906
|
+
available: false,
|
|
12907
|
+
reason: SUPERDOC_UI_REASONS.searchUnavailable
|
|
12908
|
+
});
|
|
12909
|
+
});
|
|
12910
|
+
} else if (result !== null) applyHostSearchResult(result);
|
|
12911
|
+
}, 120);
|
|
12912
|
+
};
|
|
12858
12913
|
const stylesSub = sliceHandle((s) => s.styles);
|
|
12859
12914
|
const stylesSnap = snapshotHandle(stylesSub);
|
|
12860
12915
|
const styles = {
|
|
@@ -12902,6 +12957,9 @@ function createSuperDocUI(options) {
|
|
|
12902
12957
|
watermark.destroy();
|
|
12903
12958
|
clearContentControlHighlight();
|
|
12904
12959
|
disposed = true;
|
|
12960
|
+
if (searchRefreshTimer !== null) clearTimeout(searchRefreshTimer);
|
|
12961
|
+
searchRefreshTimer = null;
|
|
12962
|
+
cancelRefreshShellSearch();
|
|
12905
12963
|
releaseSharedUiTrackedChangesCatalog(uiTrackedChangesCatalogHost, uiTrackedChangesCatalogState);
|
|
12906
12964
|
if (foregroundAsyncRetryTimer) {
|
|
12907
12965
|
clearTimeout(foregroundAsyncRetryTimer);
|
|
@@ -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.6",
|
|
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.6",
|
|
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
|
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-CSZSAgxc.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-DMe-GQEe.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-CSZSAgxc.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-DMe-GQEe.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-CSZSAgxc.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 { i as BUILT_IN_COMMAND_IDS, l as shallowEqual, t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { i as BUILT_IN_COMMAND_IDS, l as shallowEqual, t as createSuperDocUI } from "../chunks/create-super-doc-ui-DMe-GQEe.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-CSZSAgxc.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.19.0-next.
|
|
319
|
+
return "2.19.0-next.6";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -45686,7 +45686,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
45686
45686
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45687
45687
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45688
45688
|
this.colorIndex = 0;
|
|
45689
|
-
this.version = "2.19.0-next.
|
|
45689
|
+
this.version = "2.19.0-next.6";
|
|
45690
45690
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45691
45691
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
45692
45692
|
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 applyV2CommentInvalidationFromMutation, c as resolveImageSrc, d as closeInteractionHistory, f as createInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, p as recordInteraction, r as registerFirstPartyCommandMutation, s as createImageFilePicker, t as createSuperDocUI, u as DOM_CLASS_NAMES } from "./chunks/create-super-doc-ui-
|
|
3
|
+
import { a as applyV2CommentInvalidationFromMutation, c as resolveImageSrc, d as closeInteractionHistory, f as createInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, p as recordInteraction, r as registerFirstPartyCommandMutation, s as createImageFilePicker, t as createSuperDocUI, u as DOM_CLASS_NAMES } from "./chunks/create-super-doc-ui-DMe-GQEe.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.19.0-next.
|
|
318
|
+
return "2.19.0-next.6";
|
|
319
319
|
} catch {
|
|
320
320
|
return "unknown";
|
|
321
321
|
}
|
|
@@ -45617,7 +45617,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
45617
45617
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45618
45618
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45619
45619
|
this.colorIndex = 0;
|
|
45620
|
-
this.version = "2.19.0-next.
|
|
45620
|
+
this.version = "2.19.0-next.6";
|
|
45621
45621
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45622
45622
|
this.superdocId = config.superdocId || v4();
|
|
45623
45623
|
this.colors = this.config.colors ?? [];
|