superdoc 2.18.1-next.1 → 2.18.1-next.3
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-C_NS0Kbv.es.js → create-super-doc-ui-C3HDE1IE.es.js} +34 -4
- package/dist/chunks/{create-super-doc-ui-DteEHfc7.cjs → create-super-doc-ui-Gxk1m05U.cjs} +34 -4
- 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/src/public/ui/types.d.ts +12 -2
- package/dist/superdoc/src/public/ui.d.cts +2 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist-cdn/superdoc.min.js +35 -35
- package/package.json +2 -2
package/dist/chunks/{create-super-doc-ui-C_NS0Kbv.es.js → create-super-doc-ui-C3HDE1IE.es.js}
RENAMED
|
@@ -9632,6 +9632,31 @@ function createSuperDocUI(options) {
|
|
|
9632
9632
|
};
|
|
9633
9633
|
}
|
|
9634
9634
|
},
|
|
9635
|
+
placeAroundContentControl: async (input) => {
|
|
9636
|
+
if (!getEditor()) return {
|
|
9637
|
+
ok: false,
|
|
9638
|
+
reason: SUPERDOC_UI_REASONS.notReady
|
|
9639
|
+
};
|
|
9640
|
+
const resolved = getSelectionApplyHelper();
|
|
9641
|
+
if (!("helper" in resolved)) return {
|
|
9642
|
+
ok: false,
|
|
9643
|
+
reason: resolved.reason
|
|
9644
|
+
};
|
|
9645
|
+
if (typeof resolved.helper.placeAroundContentControl !== "function") return {
|
|
9646
|
+
ok: false,
|
|
9647
|
+
reason: SUPERDOC_UI_REASONS.hostCapabilityUnavailable
|
|
9648
|
+
};
|
|
9649
|
+
try {
|
|
9650
|
+
const result = await resolved.helper.placeAroundContentControl(input);
|
|
9651
|
+
recompute();
|
|
9652
|
+
return normalizeHostSelectionApplyResult(result);
|
|
9653
|
+
} catch {
|
|
9654
|
+
return {
|
|
9655
|
+
ok: false,
|
|
9656
|
+
reason: SUPERDOC_UI_REASONS.targetUnresolved
|
|
9657
|
+
};
|
|
9658
|
+
}
|
|
9659
|
+
},
|
|
9635
9660
|
getAnchorRect: (input) => {
|
|
9636
9661
|
const host = getHost();
|
|
9637
9662
|
if (typeof host?.getSelectionAnchorRect === "function") {
|
|
@@ -10848,20 +10873,25 @@ function createSuperDocUI(options) {
|
|
|
10848
10873
|
return target && typeof target === "object" ? target : null;
|
|
10849
10874
|
};
|
|
10850
10875
|
const metadataResolveKey = (id) => `metadata:resolve:${id}`;
|
|
10876
|
+
const metadataResolutionToken = () => {
|
|
10877
|
+
const host = getHost();
|
|
10878
|
+
const localRevision = typeof host?.getLocalMutationRevision === "function" ? safeCall(() => host.getLocalMutationRevision(), null) : null;
|
|
10879
|
+
return `${contentToken()}|local:${typeof localRevision === "number" ? localRevision : "unknown"}`;
|
|
10880
|
+
};
|
|
10851
10881
|
/** Resolve a metadata id to its SelectionTarget, or null when unresolved. */
|
|
10852
10882
|
const resolveMetadataTarget = (id) => {
|
|
10853
10883
|
const metaApi = getDoc()?.metadata;
|
|
10854
10884
|
if (!metaApi || typeof metaApi.resolve !== "function") return null;
|
|
10855
|
-
const { value } = readAsync(metadataResolveKey(id),
|
|
10856
|
-
return value;
|
|
10885
|
+
const { value, status } = readAsync(metadataResolveKey(id), metadataResolutionToken(), () => metaApi.resolve({ id }), readMetadataResolvedTarget);
|
|
10886
|
+
return status === "ready" ? value : null;
|
|
10857
10887
|
};
|
|
10858
10888
|
const resolveMetadataTargetAsync = async (id) => {
|
|
10859
10889
|
const metaApi = getDoc()?.metadata;
|
|
10860
10890
|
if (!metaApi || typeof metaApi.resolve !== "function") return null;
|
|
10861
10891
|
try {
|
|
10862
|
-
const token =
|
|
10892
|
+
const token = metadataResolutionToken();
|
|
10863
10893
|
const resolved = await Promise.resolve(metaApi.resolve({ id }));
|
|
10864
|
-
if (token !==
|
|
10894
|
+
if (token !== metadataResolutionToken()) return null;
|
|
10865
10895
|
const target = readMetadataResolvedTarget(resolved);
|
|
10866
10896
|
asyncReads.set(metadataResolveKey(id), {
|
|
10867
10897
|
token,
|
|
@@ -9632,6 +9632,31 @@ function createSuperDocUI(options) {
|
|
|
9632
9632
|
};
|
|
9633
9633
|
}
|
|
9634
9634
|
},
|
|
9635
|
+
placeAroundContentControl: async (input) => {
|
|
9636
|
+
if (!getEditor()) return {
|
|
9637
|
+
ok: false,
|
|
9638
|
+
reason: SUPERDOC_UI_REASONS.notReady
|
|
9639
|
+
};
|
|
9640
|
+
const resolved = getSelectionApplyHelper();
|
|
9641
|
+
if (!("helper" in resolved)) return {
|
|
9642
|
+
ok: false,
|
|
9643
|
+
reason: resolved.reason
|
|
9644
|
+
};
|
|
9645
|
+
if (typeof resolved.helper.placeAroundContentControl !== "function") return {
|
|
9646
|
+
ok: false,
|
|
9647
|
+
reason: SUPERDOC_UI_REASONS.hostCapabilityUnavailable
|
|
9648
|
+
};
|
|
9649
|
+
try {
|
|
9650
|
+
const result = await resolved.helper.placeAroundContentControl(input);
|
|
9651
|
+
recompute();
|
|
9652
|
+
return normalizeHostSelectionApplyResult(result);
|
|
9653
|
+
} catch {
|
|
9654
|
+
return {
|
|
9655
|
+
ok: false,
|
|
9656
|
+
reason: SUPERDOC_UI_REASONS.targetUnresolved
|
|
9657
|
+
};
|
|
9658
|
+
}
|
|
9659
|
+
},
|
|
9635
9660
|
getAnchorRect: (input) => {
|
|
9636
9661
|
const host = getHost();
|
|
9637
9662
|
if (typeof host?.getSelectionAnchorRect === "function") {
|
|
@@ -10848,20 +10873,25 @@ function createSuperDocUI(options) {
|
|
|
10848
10873
|
return target && typeof target === "object" ? target : null;
|
|
10849
10874
|
};
|
|
10850
10875
|
const metadataResolveKey = (id) => `metadata:resolve:${id}`;
|
|
10876
|
+
const metadataResolutionToken = () => {
|
|
10877
|
+
const host = getHost();
|
|
10878
|
+
const localRevision = typeof host?.getLocalMutationRevision === "function" ? safeCall(() => host.getLocalMutationRevision(), null) : null;
|
|
10879
|
+
return `${contentToken()}|local:${typeof localRevision === "number" ? localRevision : "unknown"}`;
|
|
10880
|
+
};
|
|
10851
10881
|
/** Resolve a metadata id to its SelectionTarget, or null when unresolved. */
|
|
10852
10882
|
const resolveMetadataTarget = (id) => {
|
|
10853
10883
|
const metaApi = getDoc()?.metadata;
|
|
10854
10884
|
if (!metaApi || typeof metaApi.resolve !== "function") return null;
|
|
10855
|
-
const { value } = readAsync(metadataResolveKey(id),
|
|
10856
|
-
return value;
|
|
10885
|
+
const { value, status } = readAsync(metadataResolveKey(id), metadataResolutionToken(), () => metaApi.resolve({ id }), readMetadataResolvedTarget);
|
|
10886
|
+
return status === "ready" ? value : null;
|
|
10857
10887
|
};
|
|
10858
10888
|
const resolveMetadataTargetAsync = async (id) => {
|
|
10859
10889
|
const metaApi = getDoc()?.metadata;
|
|
10860
10890
|
if (!metaApi || typeof metaApi.resolve !== "function") return null;
|
|
10861
10891
|
try {
|
|
10862
|
-
const token =
|
|
10892
|
+
const token = metadataResolutionToken();
|
|
10863
10893
|
const resolved = await Promise.resolve(metaApi.resolve({ id }));
|
|
10864
|
-
if (token !==
|
|
10894
|
+
if (token !== metadataResolutionToken()) return null;
|
|
10865
10895
|
const target = readMetadataResolvedTarget(resolved);
|
|
10866
10896
|
asyncReads.set(metadataResolveKey(id), {
|
|
10867
10897
|
token,
|
|
@@ -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.18.1-next.
|
|
22
|
+
superdocVersion: "2.18.1-next.3",
|
|
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.18.1-next.
|
|
21
|
+
superdocVersion: "2.18.1-next.3",
|
|
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-Gxk1m05U.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-C3HDE1IE.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-Gxk1m05U.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-C3HDE1IE.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-Gxk1m05U.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, s as shallowEqual, t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { i as BUILT_IN_COMMAND_IDS, s as shallowEqual, t as createSuperDocUI } from "../chunks/create-super-doc-ui-C3HDE1IE.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, EntityAddress, TextAddress, TextTarget, ScrollIntoViewInput, ScrollIntoViewOutput, SelectionInfo, SelectionTarget, Receipt, ReceiptFailureCode, ContentControlInfo, StyleCatalogItem, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult } from '../../../../document-api/src/index.js';
|
|
1
|
+
import { CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, EntityAddress, TextAddress, TextTarget, ScrollIntoViewInput, ScrollIntoViewOutput, SelectionInfo, SelectionTarget, Receipt, ReceiptFailureCode, ContentControlInfo, ContentControlTarget, StyleCatalogItem, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult } from '../../../../document-api/src/index.js';
|
|
2
2
|
import { PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
3
3
|
import { ExportParams } from '../export-types.js';
|
|
4
4
|
import { DocumentReplacementResult } from '../document-replacement.js';
|
|
@@ -30,7 +30,7 @@ import { BuiltInCommandId } from './commands.js';
|
|
|
30
30
|
* (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
|
|
31
31
|
* specifier leaks into the emitted `.d.ts`.
|
|
32
32
|
*/
|
|
33
|
-
export type { Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, } from '../../../../document-api/src/index.js';
|
|
33
|
+
export type { Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, } from '../../../../document-api/src/index.js';
|
|
34
34
|
export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
|
|
35
35
|
export type { ListPresetId } from '../../../../document-api/src/index.js';
|
|
36
36
|
export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
@@ -810,6 +810,16 @@ export interface SelectionHandle extends SnapshotSubscribable<SelectionSlice> {
|
|
|
810
810
|
* Fails closed with a stable reason when the host cannot honor the target.
|
|
811
811
|
*/
|
|
812
812
|
apply(target: SelectionTarget): WorkflowActionResult;
|
|
813
|
+
/**
|
|
814
|
+
* Place the browser caret before or after a live inline content control.
|
|
815
|
+
* Placement does not edit the document or create an undo entry.
|
|
816
|
+
*/
|
|
817
|
+
placeAroundContentControl(input: {
|
|
818
|
+
target: ContentControlTarget & {
|
|
819
|
+
kind: 'inline';
|
|
820
|
+
};
|
|
821
|
+
edge: 'before' | 'after';
|
|
822
|
+
}): Promise<WorkflowActionResult>;
|
|
813
823
|
/** Resolve a painted anchor rect for the current selection, when available. */
|
|
814
824
|
getAnchorRect(input?: {
|
|
815
825
|
placement?: 'start' | 'end' | 'center';
|
|
@@ -21,6 +21,7 @@ import type { ContentControlInfo as __Cjs_ContentControlInfo } from './ui.js' wi
|
|
|
21
21
|
import type { ContentControlsHandle as __Cjs_ContentControlsHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
22
22
|
import type { ContentControlsListResult as __Cjs_ContentControlsListResult } from './ui.js' with { "resolution-mode": "import" };
|
|
23
23
|
import type { ContentControlsSlice as __Cjs_ContentControlsSlice } from './ui.js' with { "resolution-mode": "import" };
|
|
24
|
+
import type { ContentControlTarget as __Cjs_ContentControlTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
24
25
|
import type { ContentControlViewportAddress as __Cjs_ContentControlViewportAddress } from './ui.js' with { "resolution-mode": "import" };
|
|
25
26
|
import type { ContextMenuHandle as __Cjs_ContextMenuHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
26
27
|
import type { ContextMenuItem as __Cjs_ContextMenuItem } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -135,6 +136,7 @@ export type { __Cjs_ContentControlInfo as ContentControlInfo };
|
|
|
135
136
|
export type { __Cjs_ContentControlsHandle as ContentControlsHandle };
|
|
136
137
|
export type { __Cjs_ContentControlsListResult as ContentControlsListResult };
|
|
137
138
|
export type { __Cjs_ContentControlsSlice as ContentControlsSlice };
|
|
139
|
+
export type { __Cjs_ContentControlTarget as ContentControlTarget };
|
|
138
140
|
export type { __Cjs_ContentControlViewportAddress as ContentControlViewportAddress };
|
|
139
141
|
export type { __Cjs_ContextMenuHandle as ContextMenuHandle };
|
|
140
142
|
export type { __Cjs_ContextMenuItem as ContextMenuItem };
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
export { createSuperDocUI } from './ui/create-super-doc-ui.js';
|
|
27
27
|
export { shallowEqual } from './ui/equality.js';
|
|
28
28
|
export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
|
|
29
|
-
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, } from './ui/types.js';
|
|
29
|
+
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, } from './ui/types.js';
|
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-Gxk1m05U.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.18.1-next.
|
|
319
|
+
return "2.18.1-next.3";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -45750,7 +45750,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
45750
45750
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45751
45751
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45752
45752
|
this.colorIndex = 0;
|
|
45753
|
-
this.version = "2.18.1-next.
|
|
45753
|
+
this.version = "2.18.1-next.3";
|
|
45754
45754
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45755
45755
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
45756
45756
|
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 DOM_CLASS_NAMES, d as recordInteraction, l as closeInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, r as registerFirstPartyCommandMutation, t as createSuperDocUI, u as createInteractionHistory } from "./chunks/create-super-doc-ui-
|
|
3
|
+
import { a as applyV2CommentInvalidationFromMutation, c as DOM_CLASS_NAMES, d as recordInteraction, l as closeInteractionHistory, n as executeFirstPartyCommandAsync, o as getV2TrackedChangeMutationImpact, r as registerFirstPartyCommandMutation, t as createSuperDocUI, u as createInteractionHistory } from "./chunks/create-super-doc-ui-C3HDE1IE.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.18.1-next.
|
|
318
|
+
return "2.18.1-next.3";
|
|
319
319
|
} catch {
|
|
320
320
|
return "unknown";
|
|
321
321
|
}
|
|
@@ -45681,7 +45681,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
45681
45681
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45682
45682
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45683
45683
|
this.colorIndex = 0;
|
|
45684
|
-
this.version = "2.18.1-next.
|
|
45684
|
+
this.version = "2.18.1-next.3";
|
|
45685
45685
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45686
45686
|
this.superdocId = config.superdocId || v4();
|
|
45687
45687
|
this.colors = this.config.colors ?? [];
|