@harbour-enterprises/superdoc 1.3.0-next.12 → 1.3.0-next.13
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/{PdfViewer-D4-tXW9I.es.js → PdfViewer-DebfKi_n.es.js} +2 -2
- package/dist/chunks/{PdfViewer-B4cw8sRa.cjs → PdfViewer-z2obaZHa.cjs} +2 -2
- package/dist/chunks/{SuperConverter-BQHQ2WON.es.js → SuperConverter-Dh27SFeK.es.js} +1 -1
- package/dist/chunks/{SuperConverter-BauKfBRr.cjs → SuperConverter-Dxl1uYvz.cjs} +1 -1
- package/dist/chunks/{index-BC056HXc.cjs → index-C7p34V06.cjs} +30 -7
- package/dist/chunks/{index-CCWqRqAf.cjs → index-DNdp0AxW.cjs} +4 -4
- package/dist/chunks/{index-BPi2Cjky.es.js → index-DOsTLvRQ.es.js} +30 -7
- package/dist/chunks/{index-BRomAwaA.es.js → index-OlLDoLS-.es.js} +4 -4
- package/dist/style.css +27 -27
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +31 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineComponent, h, T as Transition, p as process$1, w as watchEffect, c as computed, r as ref, f as onMounted, X as onUnmounted, E as createElementBlock, G as openBlock, K as createBaseVNode, M as createCommentVNode, I as createVNode, v as unref } from "./vue-BnBKJwCW.es.js";
|
|
2
|
-
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-
|
|
3
|
-
import { C as derived, r as c, q as cB, aF as fadeInTransition, y as cM, I as warnOnce, J as useConfig, N as useTheme, aG as pxfy, P as createKey, Q as useThemeClass, aH as useCompitable, ai as _export_sfc } from "./index-
|
|
2
|
+
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-DOsTLvRQ.es.js";
|
|
3
|
+
import { C as derived, r as c, q as cB, aF as fadeInTransition, y as cM, I as warnOnce, J as useConfig, N as useTheme, aG as pxfy, P as createKey, Q as useThemeClass, aH as useCompitable, ai as _export_sfc } from "./index-OlLDoLS-.es.js";
|
|
4
4
|
function self(vars) {
|
|
5
5
|
const {
|
|
6
6
|
opacityDisabled,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
5
|
-
const index = require("./index-
|
|
4
|
+
const superdoc = require("./index-C7p34V06.cjs");
|
|
5
|
+
const index = require("./index-DNdp0AxW.cjs");
|
|
6
6
|
function self(vars) {
|
|
7
7
|
const {
|
|
8
8
|
opacityDisabled,
|
|
@@ -31007,7 +31007,7 @@ class SuperConverter {
|
|
|
31007
31007
|
static getStoredSuperdocVersion(docx) {
|
|
31008
31008
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
31009
31009
|
}
|
|
31010
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.3.0-next.
|
|
31010
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.3.0-next.13") {
|
|
31011
31011
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
31012
31012
|
}
|
|
31013
31013
|
/**
|
|
@@ -31008,7 +31008,7 @@ class SuperConverter {
|
|
|
31008
31008
|
static getStoredSuperdocVersion(docx) {
|
|
31009
31009
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
31010
31010
|
}
|
|
31011
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.3.0-next.
|
|
31011
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.3.0-next.13") {
|
|
31012
31012
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
31013
31013
|
}
|
|
31014
31014
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("./index-
|
|
3
|
-
require("./SuperConverter-
|
|
2
|
+
const index = require("./index-DNdp0AxW.cjs");
|
|
3
|
+
require("./SuperConverter-Dxl1uYvz.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
|
|
6
6
|
const provider = require("@hocuspocus/provider");
|
|
@@ -7465,7 +7465,7 @@ const _sfc_main = {
|
|
|
7465
7465
|
__name: "SuperDoc",
|
|
7466
7466
|
emits: ["selection-update"],
|
|
7467
7467
|
setup(__props, { emit: __emit }) {
|
|
7468
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
7468
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-z2obaZHa.cjs")));
|
|
7469
7469
|
const superdocStore = useSuperdocStore();
|
|
7470
7470
|
const commentsStore = useCommentsStore();
|
|
7471
7471
|
const {
|
|
@@ -7506,6 +7506,7 @@ const _sfc_main = {
|
|
|
7506
7506
|
commentsStore.proxy = proxy;
|
|
7507
7507
|
const { isHighContrastMode: isHighContrastMode2 } = useHighContrastMode();
|
|
7508
7508
|
const { uiFontFamily } = useUiFontFamily();
|
|
7509
|
+
const isViewingMode = () => proxy?.$superdoc?.config?.documentMode === "viewing";
|
|
7509
7510
|
const commentsModuleConfig = vue.computed(() => {
|
|
7510
7511
|
const config = modules.comments;
|
|
7511
7512
|
if (config === false || config == null) return null;
|
|
@@ -7600,6 +7601,10 @@ const _sfc_main = {
|
|
|
7600
7601
|
const commentsConfig = proxy.$superdoc.config.modules?.comments;
|
|
7601
7602
|
if (!commentsConfig || commentsConfig === false) return;
|
|
7602
7603
|
if (!positions || Object.keys(positions).length === 0) return;
|
|
7604
|
+
if (isViewingMode()) {
|
|
7605
|
+
commentsStore.clearEditorCommentPositions?.();
|
|
7606
|
+
return;
|
|
7607
|
+
}
|
|
7603
7608
|
const mappedPositions = presentationEditor.getCommentBounds(positions, layers.value);
|
|
7604
7609
|
handleEditorLocationsUpdate(mappedPositions);
|
|
7605
7610
|
});
|
|
@@ -7619,6 +7624,13 @@ const _sfc_main = {
|
|
|
7619
7624
|
const onEditorSelectionChange = ({ editor, transaction }) => {
|
|
7620
7625
|
if (skipSelectionUpdate.value) {
|
|
7621
7626
|
skipSelectionUpdate.value = false;
|
|
7627
|
+
if (isViewingMode()) {
|
|
7628
|
+
resetSelection();
|
|
7629
|
+
}
|
|
7630
|
+
return;
|
|
7631
|
+
}
|
|
7632
|
+
if (isViewingMode()) {
|
|
7633
|
+
resetSelection();
|
|
7622
7634
|
return;
|
|
7623
7635
|
}
|
|
7624
7636
|
const { documentId } = editor.options;
|
|
@@ -7797,6 +7809,10 @@ const _sfc_main = {
|
|
|
7797
7809
|
const onEditorCommentLocationsUpdate = (doc, { allCommentIds: activeThreadId, allCommentPositions } = {}) => {
|
|
7798
7810
|
const commentsConfig = proxy.$superdoc.config.modules?.comments;
|
|
7799
7811
|
if (!commentsConfig || commentsConfig === false) return;
|
|
7812
|
+
if (isViewingMode()) {
|
|
7813
|
+
commentsStore.clearEditorCommentPositions?.();
|
|
7814
|
+
return;
|
|
7815
|
+
}
|
|
7800
7816
|
const presentation = index.PresentationEditor.getInstance(doc.id);
|
|
7801
7817
|
if (!presentation) {
|
|
7802
7818
|
handleEditorLocationsUpdate(allCommentPositions, activeThreadId);
|
|
@@ -7852,11 +7868,12 @@ const _sfc_main = {
|
|
|
7852
7868
|
};
|
|
7853
7869
|
const isCommentsEnabled = vue.computed(() => Boolean(commentsModuleConfig.value));
|
|
7854
7870
|
const showCommentsSidebar = vue.computed(() => {
|
|
7871
|
+
if (isViewingMode()) return false;
|
|
7855
7872
|
return pendingComment.value || getFloatingComments.value?.length > 0 && isReady.value && layers.value && isCommentsEnabled.value && !isCommentsListVisible.value;
|
|
7856
7873
|
});
|
|
7857
7874
|
const showToolsFloatingMenu = vue.computed(() => {
|
|
7858
7875
|
if (!isCommentsEnabled.value) return false;
|
|
7859
|
-
return toolsMenuPosition.top && !getConfig.value?.readOnly;
|
|
7876
|
+
return selectionPosition.value && toolsMenuPosition.top && !getConfig.value?.readOnly;
|
|
7860
7877
|
});
|
|
7861
7878
|
vue.computed(() => {
|
|
7862
7879
|
if (!isCommentsEnabled.value) return false;
|
|
@@ -7904,6 +7921,10 @@ const _sfc_main = {
|
|
|
7904
7921
|
return style2;
|
|
7905
7922
|
});
|
|
7906
7923
|
const handleSelectionChange = (selection) => {
|
|
7924
|
+
if (isViewingMode()) {
|
|
7925
|
+
resetSelection();
|
|
7926
|
+
return;
|
|
7927
|
+
}
|
|
7907
7928
|
if (!selection.selectionBounds || !isCommentsEnabled.value) return;
|
|
7908
7929
|
resetSelection();
|
|
7909
7930
|
const isMobileView = window.matchMedia("(max-width: 768px)").matches;
|
|
@@ -7929,12 +7950,14 @@ const _sfc_main = {
|
|
|
7929
7950
|
};
|
|
7930
7951
|
const resetSelection = () => {
|
|
7931
7952
|
selectionPosition.value = null;
|
|
7953
|
+
toolsMenuPosition.top = null;
|
|
7932
7954
|
};
|
|
7933
7955
|
const updateSelection = ({ startX, startY, x, y, source }) => {
|
|
7934
7956
|
const hasStartCoords = typeof startX === "number" || typeof startY === "number";
|
|
7935
7957
|
const hasEndCoords = typeof x === "number" || typeof y === "number";
|
|
7936
7958
|
if (!hasStartCoords && !hasEndCoords) {
|
|
7937
|
-
|
|
7959
|
+
resetSelection();
|
|
7960
|
+
return;
|
|
7938
7961
|
}
|
|
7939
7962
|
if (!selectionPosition.value) {
|
|
7940
7963
|
if (startY == null || startX == null) return;
|
|
@@ -8187,7 +8210,7 @@ const _sfc_main = {
|
|
|
8187
8210
|
};
|
|
8188
8211
|
}
|
|
8189
8212
|
};
|
|
8190
|
-
const App = /* @__PURE__ */ index._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
8213
|
+
const App = /* @__PURE__ */ index._export_sfc(_sfc_main, [["__scopeId", "data-v-5196811d"]]);
|
|
8191
8214
|
const createSuperdocVueApp = () => {
|
|
8192
8215
|
const app = vue.createApp(App);
|
|
8193
8216
|
const pinia = createPinia();
|
|
@@ -8371,7 +8394,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
8371
8394
|
this.config.colors = shuffleArray(this.config.colors);
|
|
8372
8395
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
8373
8396
|
this.colorIndex = 0;
|
|
8374
|
-
this.version = "1.3.0-next.
|
|
8397
|
+
this.version = "1.3.0-next.13";
|
|
8375
8398
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
8376
8399
|
this.superdocId = config.superdocId || uuid.v4();
|
|
8377
8400
|
this.colors = this.config.colors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-C8_CqJxM.cjs");
|
|
3
3
|
const helpers$1 = require("./helpers-nOdwpmwb.cjs");
|
|
4
|
-
const superEditor_converter = require("./SuperConverter-
|
|
4
|
+
const superEditor_converter = require("./SuperConverter-Dxl1uYvz.cjs");
|
|
5
5
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
6
6
|
require("./jszip.min-BPh2MMAa.cjs");
|
|
7
7
|
const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
|
|
@@ -15451,7 +15451,7 @@ const canUseDOM = () => {
|
|
|
15451
15451
|
return false;
|
|
15452
15452
|
}
|
|
15453
15453
|
};
|
|
15454
|
-
const summaryVersion = "1.3.0-next.
|
|
15454
|
+
const summaryVersion = "1.3.0-next.13";
|
|
15455
15455
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
15456
15456
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
15457
15457
|
function mapAttributes(attrs) {
|
|
@@ -18083,7 +18083,7 @@ class Editor extends EventEmitter {
|
|
|
18083
18083
|
* Process collaboration migrations
|
|
18084
18084
|
*/
|
|
18085
18085
|
processCollaborationMigrations() {
|
|
18086
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.
|
|
18086
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.13");
|
|
18087
18087
|
if (!this.options.ydoc) return;
|
|
18088
18088
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18089
18089
|
let docVersion = metaMap.get("version");
|
|
@@ -54844,7 +54844,7 @@ class PresentationEditor extends EventEmitter {
|
|
|
54844
54844
|
const zoom = this.#layoutOptions.zoom ?? 1;
|
|
54845
54845
|
const layoutMode = this.#layoutOptions.layoutMode ?? "vertical";
|
|
54846
54846
|
const pages = this.#layoutState.layout?.pages;
|
|
54847
|
-
const pageGap = this.#
|
|
54847
|
+
const pageGap = this.#getEffectivePageGap();
|
|
54848
54848
|
const defaultWidth = this.#layoutOptions.pageSize?.w ?? DEFAULT_PAGE_SIZE.w;
|
|
54849
54849
|
const defaultHeight = this.#layoutOptions.pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
|
|
54850
54850
|
let maxWidth = defaultWidth;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-
|
|
2
|
-
import "./SuperConverter-
|
|
1
|
+
import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-OlLDoLS-.es.js";
|
|
2
|
+
import "./SuperConverter-Dh27SFeK.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-CwrdEv8r.es.js";
|
|
5
5
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -7448,7 +7448,7 @@ const _sfc_main = {
|
|
|
7448
7448
|
__name: "SuperDoc",
|
|
7449
7449
|
emits: ["selection-update"],
|
|
7450
7450
|
setup(__props, { emit: __emit }) {
|
|
7451
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
7451
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-DebfKi_n.es.js"));
|
|
7452
7452
|
const superdocStore = useSuperdocStore();
|
|
7453
7453
|
const commentsStore = useCommentsStore();
|
|
7454
7454
|
const {
|
|
@@ -7489,6 +7489,7 @@ const _sfc_main = {
|
|
|
7489
7489
|
commentsStore.proxy = proxy;
|
|
7490
7490
|
const { isHighContrastMode: isHighContrastMode2 } = useHighContrastMode();
|
|
7491
7491
|
const { uiFontFamily } = useUiFontFamily();
|
|
7492
|
+
const isViewingMode = () => proxy?.$superdoc?.config?.documentMode === "viewing";
|
|
7492
7493
|
const commentsModuleConfig = computed(() => {
|
|
7493
7494
|
const config = modules.comments;
|
|
7494
7495
|
if (config === false || config == null) return null;
|
|
@@ -7583,6 +7584,10 @@ const _sfc_main = {
|
|
|
7583
7584
|
const commentsConfig = proxy.$superdoc.config.modules?.comments;
|
|
7584
7585
|
if (!commentsConfig || commentsConfig === false) return;
|
|
7585
7586
|
if (!positions || Object.keys(positions).length === 0) return;
|
|
7587
|
+
if (isViewingMode()) {
|
|
7588
|
+
commentsStore.clearEditorCommentPositions?.();
|
|
7589
|
+
return;
|
|
7590
|
+
}
|
|
7586
7591
|
const mappedPositions = presentationEditor.getCommentBounds(positions, layers.value);
|
|
7587
7592
|
handleEditorLocationsUpdate(mappedPositions);
|
|
7588
7593
|
});
|
|
@@ -7602,6 +7607,13 @@ const _sfc_main = {
|
|
|
7602
7607
|
const onEditorSelectionChange = ({ editor, transaction }) => {
|
|
7603
7608
|
if (skipSelectionUpdate.value) {
|
|
7604
7609
|
skipSelectionUpdate.value = false;
|
|
7610
|
+
if (isViewingMode()) {
|
|
7611
|
+
resetSelection();
|
|
7612
|
+
}
|
|
7613
|
+
return;
|
|
7614
|
+
}
|
|
7615
|
+
if (isViewingMode()) {
|
|
7616
|
+
resetSelection();
|
|
7605
7617
|
return;
|
|
7606
7618
|
}
|
|
7607
7619
|
const { documentId } = editor.options;
|
|
@@ -7780,6 +7792,10 @@ const _sfc_main = {
|
|
|
7780
7792
|
const onEditorCommentLocationsUpdate = (doc, { allCommentIds: activeThreadId, allCommentPositions } = {}) => {
|
|
7781
7793
|
const commentsConfig = proxy.$superdoc.config.modules?.comments;
|
|
7782
7794
|
if (!commentsConfig || commentsConfig === false) return;
|
|
7795
|
+
if (isViewingMode()) {
|
|
7796
|
+
commentsStore.clearEditorCommentPositions?.();
|
|
7797
|
+
return;
|
|
7798
|
+
}
|
|
7783
7799
|
const presentation = PresentationEditor.getInstance(doc.id);
|
|
7784
7800
|
if (!presentation) {
|
|
7785
7801
|
handleEditorLocationsUpdate(allCommentPositions, activeThreadId);
|
|
@@ -7835,11 +7851,12 @@ const _sfc_main = {
|
|
|
7835
7851
|
};
|
|
7836
7852
|
const isCommentsEnabled = computed(() => Boolean(commentsModuleConfig.value));
|
|
7837
7853
|
const showCommentsSidebar = computed(() => {
|
|
7854
|
+
if (isViewingMode()) return false;
|
|
7838
7855
|
return pendingComment.value || getFloatingComments.value?.length > 0 && isReady.value && layers.value && isCommentsEnabled.value && !isCommentsListVisible.value;
|
|
7839
7856
|
});
|
|
7840
7857
|
const showToolsFloatingMenu = computed(() => {
|
|
7841
7858
|
if (!isCommentsEnabled.value) return false;
|
|
7842
|
-
return toolsMenuPosition.top && !getConfig.value?.readOnly;
|
|
7859
|
+
return selectionPosition.value && toolsMenuPosition.top && !getConfig.value?.readOnly;
|
|
7843
7860
|
});
|
|
7844
7861
|
computed(() => {
|
|
7845
7862
|
if (!isCommentsEnabled.value) return false;
|
|
@@ -7887,6 +7904,10 @@ const _sfc_main = {
|
|
|
7887
7904
|
return style2;
|
|
7888
7905
|
});
|
|
7889
7906
|
const handleSelectionChange = (selection) => {
|
|
7907
|
+
if (isViewingMode()) {
|
|
7908
|
+
resetSelection();
|
|
7909
|
+
return;
|
|
7910
|
+
}
|
|
7890
7911
|
if (!selection.selectionBounds || !isCommentsEnabled.value) return;
|
|
7891
7912
|
resetSelection();
|
|
7892
7913
|
const isMobileView = window.matchMedia("(max-width: 768px)").matches;
|
|
@@ -7912,12 +7933,14 @@ const _sfc_main = {
|
|
|
7912
7933
|
};
|
|
7913
7934
|
const resetSelection = () => {
|
|
7914
7935
|
selectionPosition.value = null;
|
|
7936
|
+
toolsMenuPosition.top = null;
|
|
7915
7937
|
};
|
|
7916
7938
|
const updateSelection = ({ startX, startY, x, y, source }) => {
|
|
7917
7939
|
const hasStartCoords = typeof startX === "number" || typeof startY === "number";
|
|
7918
7940
|
const hasEndCoords = typeof x === "number" || typeof y === "number";
|
|
7919
7941
|
if (!hasStartCoords && !hasEndCoords) {
|
|
7920
|
-
|
|
7942
|
+
resetSelection();
|
|
7943
|
+
return;
|
|
7921
7944
|
}
|
|
7922
7945
|
if (!selectionPosition.value) {
|
|
7923
7946
|
if (startY == null || startX == null) return;
|
|
@@ -8170,7 +8193,7 @@ const _sfc_main = {
|
|
|
8170
8193
|
};
|
|
8171
8194
|
}
|
|
8172
8195
|
};
|
|
8173
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
8196
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5196811d"]]);
|
|
8174
8197
|
const createSuperdocVueApp = () => {
|
|
8175
8198
|
const app = createApp(App);
|
|
8176
8199
|
const pinia = createPinia();
|
|
@@ -8354,7 +8377,7 @@ class SuperDoc extends EventEmitter {
|
|
|
8354
8377
|
this.config.colors = shuffleArray(this.config.colors);
|
|
8355
8378
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
8356
8379
|
this.colorIndex = 0;
|
|
8357
|
-
this.version = "1.3.0-next.
|
|
8380
|
+
this.version = "1.3.0-next.13";
|
|
8358
8381
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
8359
8382
|
this.superdocId = config.superdocId || v4();
|
|
8360
8383
|
this.colors = this.config.colors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as Buffer$2 } from "./jszip-B1fkPkPJ.es.js";
|
|
2
2
|
import { t as twipsToInches, i as inchesToTwips, p as ptToTwips, l as linesToTwips, a as twipsToLines, b as pixelsToTwips, h as halfPointToPoints, c as twipsToPixels$2, d as convertSizeToCSS, e as inchesToPixels } from "./helpers-C8e9wR5l.es.js";
|
|
3
|
-
import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, F as Fragment, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName$1, O as TrackInsertMarkName$1, Q as TrackFormatMarkName$1, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as createOoxmlResolver, a0 as translator, a1 as translator$1, a2 as resolveDocxFontFamily, a3 as combineIndentProperties, a4 as _getReferencedTableStyles, a5 as decodeRPrFromMarks, a6 as calculateResolvedParagraphProperties, a7 as encodeCSSFromPPr, a8 as encodeCSSFromRPr, a9 as generateOrderedListIndex, aa as docxNumberingHelpers, ab as InputRule, ac as insertNewRelationship, ad as kebabCase$1, ae as getUnderlineCssString } from "./SuperConverter-
|
|
3
|
+
import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, F as Fragment, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName$1, O as TrackInsertMarkName$1, Q as TrackFormatMarkName$1, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as createOoxmlResolver, a0 as translator, a1 as translator$1, a2 as resolveDocxFontFamily, a3 as combineIndentProperties, a4 as _getReferencedTableStyles, a5 as decodeRPrFromMarks, a6 as calculateResolvedParagraphProperties, a7 as encodeCSSFromPPr, a8 as encodeCSSFromRPr, a9 as generateOrderedListIndex, aa as docxNumberingHelpers, ab as InputRule, ac as insertNewRelationship, ad as kebabCase$1, ae as getUnderlineCssString } from "./SuperConverter-Dh27SFeK.es.js";
|
|
4
4
|
import { p as process$1, r as ref, C as global$1, c as computed, E as createElementBlock, F as Fragment$1, S as renderList, O as withModifiers, G as openBlock, P as normalizeClass, M as createCommentVNode, H as toDisplayString, K as createBaseVNode, U as createApp, f as onMounted, X as onUnmounted, R as withDirectives, v as unref, Y as vModelText, y as nextTick, L as normalizeStyle, u as watch, Z as withKeys, _ as createTextVNode, I as createVNode, h, $ as readonly, s as getCurrentInstance, o as onBeforeUnmount, j as reactive, b as onBeforeMount, i as inject, a0 as onActivated, a1 as onDeactivated, a2 as Comment, d as defineComponent, a as provide, g as Teleport, t as toRef, a3 as renderSlot, a4 as isVNode, D as shallowRef, w as watchEffect, T as Transition, a5 as mergeProps, a6 as vShow, a7 as cloneVNode, a8 as Text$2, m as markRaw, N as createBlock, J as withCtx, a9 as useCssVars, V as resolveDynamicComponent, aa as normalizeProps, ab as guardReactiveProps } from "./vue-BnBKJwCW.es.js";
|
|
5
5
|
import "./jszip.min-DCl8qkFO.es.js";
|
|
6
6
|
import { E as EventEmitter$1 } from "./eventemitter3-CwrdEv8r.es.js";
|
|
@@ -15434,7 +15434,7 @@ const canUseDOM = () => {
|
|
|
15434
15434
|
return false;
|
|
15435
15435
|
}
|
|
15436
15436
|
};
|
|
15437
|
-
const summaryVersion = "1.3.0-next.
|
|
15437
|
+
const summaryVersion = "1.3.0-next.13";
|
|
15438
15438
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
15439
15439
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
15440
15440
|
function mapAttributes(attrs) {
|
|
@@ -18066,7 +18066,7 @@ class Editor extends EventEmitter {
|
|
|
18066
18066
|
* Process collaboration migrations
|
|
18067
18067
|
*/
|
|
18068
18068
|
processCollaborationMigrations() {
|
|
18069
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.
|
|
18069
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.13");
|
|
18070
18070
|
if (!this.options.ydoc) return;
|
|
18071
18071
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18072
18072
|
let docVersion = metaMap.get("version");
|
|
@@ -54827,7 +54827,7 @@ class PresentationEditor extends EventEmitter {
|
|
|
54827
54827
|
const zoom = this.#layoutOptions.zoom ?? 1;
|
|
54828
54828
|
const layoutMode = this.#layoutOptions.layoutMode ?? "vertical";
|
|
54829
54829
|
const pages = this.#layoutState.layout?.pages;
|
|
54830
|
-
const pageGap = this.#
|
|
54830
|
+
const pageGap = this.#getEffectivePageGap();
|
|
54831
54831
|
const defaultWidth = this.#layoutOptions.pageSize?.w ?? DEFAULT_PAGE_SIZE.w;
|
|
54832
54832
|
const defaultHeight = this.#layoutOptions.pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
|
|
54833
54833
|
let maxWidth = defaultWidth;
|
package/dist/style.css
CHANGED
|
@@ -2553,46 +2553,46 @@ img[data-v-7dd69850] {
|
|
|
2553
2553
|
display: none;
|
|
2554
2554
|
}
|
|
2555
2555
|
|
|
2556
|
-
.superdoc[data-v-
|
|
2556
|
+
.superdoc[data-v-5196811d] {
|
|
2557
2557
|
display: flex;
|
|
2558
2558
|
}
|
|
2559
|
-
.right-sidebar[data-v-
|
|
2559
|
+
.right-sidebar[data-v-5196811d] {
|
|
2560
2560
|
min-width: 320px;
|
|
2561
2561
|
}
|
|
2562
|
-
.floating-comments[data-v-
|
|
2562
|
+
.floating-comments[data-v-5196811d] {
|
|
2563
2563
|
min-width: 300px;
|
|
2564
2564
|
width: 300px;
|
|
2565
2565
|
}
|
|
2566
|
-
.superdoc__layers[data-v-
|
|
2566
|
+
.superdoc__layers[data-v-5196811d] {
|
|
2567
2567
|
height: 100%;
|
|
2568
2568
|
position: relative;
|
|
2569
2569
|
box-sizing: border-box;
|
|
2570
2570
|
}
|
|
2571
|
-
.superdoc__document[data-v-
|
|
2571
|
+
.superdoc__document[data-v-5196811d] {
|
|
2572
2572
|
width: 100%;
|
|
2573
2573
|
position: relative;
|
|
2574
2574
|
}
|
|
2575
|
-
.superdoc__sub-document[data-v-
|
|
2575
|
+
.superdoc__sub-document[data-v-5196811d] {
|
|
2576
2576
|
width: 100%;
|
|
2577
2577
|
position: relative;
|
|
2578
2578
|
}
|
|
2579
|
-
.superdoc__selection-layer[data-v-
|
|
2579
|
+
.superdoc__selection-layer[data-v-5196811d] {
|
|
2580
2580
|
position: absolute;
|
|
2581
2581
|
min-width: 100%;
|
|
2582
2582
|
min-height: 100%;
|
|
2583
2583
|
z-index: 10;
|
|
2584
2584
|
pointer-events: none;
|
|
2585
2585
|
}
|
|
2586
|
-
.superdoc__temp-selection[data-v-
|
|
2586
|
+
.superdoc__temp-selection[data-v-5196811d] {
|
|
2587
2587
|
position: absolute;
|
|
2588
2588
|
}
|
|
2589
|
-
.superdoc__comments-layer[data-v-
|
|
2589
|
+
.superdoc__comments-layer[data-v-5196811d] {
|
|
2590
2590
|
/* position: absolute; */
|
|
2591
2591
|
top: 0;
|
|
2592
2592
|
height: 100%;
|
|
2593
2593
|
position: relative;
|
|
2594
2594
|
}
|
|
2595
|
-
.superdoc__right-sidebar[data-v-
|
|
2595
|
+
.superdoc__right-sidebar[data-v-5196811d] {
|
|
2596
2596
|
width: 320px;
|
|
2597
2597
|
min-width: 320px;
|
|
2598
2598
|
padding: 0 10px;
|
|
@@ -2602,14 +2602,14 @@ img[data-v-7dd69850] {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
2604
|
/* Tools styles */
|
|
2605
|
-
.tools[data-v-
|
|
2605
|
+
.tools[data-v-5196811d] {
|
|
2606
2606
|
position: absolute;
|
|
2607
2607
|
z-index: 3;
|
|
2608
2608
|
display: flex;
|
|
2609
2609
|
flex-direction: column;
|
|
2610
2610
|
gap: 6px;
|
|
2611
2611
|
}
|
|
2612
|
-
.tools .tool-icon[data-v-
|
|
2612
|
+
.tools .tool-icon[data-v-5196811d] {
|
|
2613
2613
|
font-size: 20px;
|
|
2614
2614
|
border-radius: 12px;
|
|
2615
2615
|
border: none;
|
|
@@ -2617,7 +2617,7 @@ img[data-v-7dd69850] {
|
|
|
2617
2617
|
background-color: #dbdbdb;
|
|
2618
2618
|
cursor: pointer;
|
|
2619
2619
|
}
|
|
2620
|
-
.tools-item[data-v-
|
|
2620
|
+
.tools-item[data-v-5196811d] {
|
|
2621
2621
|
display: flex;
|
|
2622
2622
|
align-items: center;
|
|
2623
2623
|
justify-content: center;
|
|
@@ -2627,10 +2627,10 @@ img[data-v-7dd69850] {
|
|
|
2627
2627
|
border-radius: 12px;
|
|
2628
2628
|
cursor: pointer;
|
|
2629
2629
|
}
|
|
2630
|
-
.tools-item i[data-v-
|
|
2630
|
+
.tools-item i[data-v-5196811d] {
|
|
2631
2631
|
cursor: pointer;
|
|
2632
2632
|
}
|
|
2633
|
-
.superdoc__tools-icon[data-v-
|
|
2633
|
+
.superdoc__tools-icon[data-v-5196811d] {
|
|
2634
2634
|
width: 20px;
|
|
2635
2635
|
height: 20px;
|
|
2636
2636
|
flex-shrink: 0;
|
|
@@ -2645,15 +2645,15 @@ img[data-v-7dd69850] {
|
|
|
2645
2645
|
|
|
2646
2646
|
/* 834px is iPad screen size in portrait orientation */
|
|
2647
2647
|
@media (max-width: 834px) {
|
|
2648
|
-
.superdoc .superdoc__layers[data-v-
|
|
2648
|
+
.superdoc .superdoc__layers[data-v-5196811d] {
|
|
2649
2649
|
margin: 0;
|
|
2650
2650
|
border: 0 !important;
|
|
2651
2651
|
box-shadow: none;
|
|
2652
2652
|
}
|
|
2653
|
-
.superdoc__sub-document[data-v-
|
|
2653
|
+
.superdoc__sub-document[data-v-5196811d] {
|
|
2654
2654
|
max-width: 100%;
|
|
2655
2655
|
}
|
|
2656
|
-
.superdoc__right-sidebar[data-v-
|
|
2656
|
+
.superdoc__right-sidebar[data-v-5196811d] {
|
|
2657
2657
|
padding: 10px;
|
|
2658
2658
|
width: 55px;
|
|
2659
2659
|
position: relative;
|
|
@@ -2661,7 +2661,7 @@ img[data-v-7dd69850] {
|
|
|
2661
2661
|
}
|
|
2662
2662
|
|
|
2663
2663
|
/* AI Writer styles */
|
|
2664
|
-
.ai-writer-container[data-v-
|
|
2664
|
+
.ai-writer-container[data-v-5196811d] {
|
|
2665
2665
|
position: fixed;
|
|
2666
2666
|
z-index: 1000;
|
|
2667
2667
|
background: white;
|
|
@@ -2679,13 +2679,13 @@ img[data-v-7dd69850] {
|
|
|
2679
2679
|
} */
|
|
2680
2680
|
|
|
2681
2681
|
/* Tools styles */
|
|
2682
|
-
.tools[data-v-
|
|
2682
|
+
.tools[data-v-5196811d] {
|
|
2683
2683
|
position: absolute;
|
|
2684
2684
|
z-index: 3;
|
|
2685
2685
|
display: flex;
|
|
2686
2686
|
gap: 6px;
|
|
2687
2687
|
}
|
|
2688
|
-
.tools .tool-icon[data-v-
|
|
2688
|
+
.tools .tool-icon[data-v-5196811d] {
|
|
2689
2689
|
font-size: 20px;
|
|
2690
2690
|
border-radius: 12px;
|
|
2691
2691
|
border: none;
|
|
@@ -2693,7 +2693,7 @@ img[data-v-7dd69850] {
|
|
|
2693
2693
|
background-color: #dbdbdb;
|
|
2694
2694
|
cursor: pointer;
|
|
2695
2695
|
}
|
|
2696
|
-
.tools-item[data-v-
|
|
2696
|
+
.tools-item[data-v-5196811d] {
|
|
2697
2697
|
display: flex;
|
|
2698
2698
|
align-items: center;
|
|
2699
2699
|
justify-content: center;
|
|
@@ -2704,18 +2704,18 @@ img[data-v-7dd69850] {
|
|
|
2704
2704
|
border-radius: 12px;
|
|
2705
2705
|
cursor: pointer;
|
|
2706
2706
|
}
|
|
2707
|
-
.tools-item i[data-v-
|
|
2707
|
+
.tools-item i[data-v-5196811d] {
|
|
2708
2708
|
cursor: pointer;
|
|
2709
2709
|
}
|
|
2710
|
-
.superdoc__tools-icon[data-v-
|
|
2710
|
+
.superdoc__tools-icon[data-v-5196811d] {
|
|
2711
2711
|
width: 20px;
|
|
2712
2712
|
height: 20px;
|
|
2713
2713
|
flex-shrink: 0;
|
|
2714
2714
|
}
|
|
2715
|
-
.ai-tool > svg[data-v-
|
|
2715
|
+
.ai-tool > svg[data-v-5196811d] {
|
|
2716
2716
|
fill: transparent;
|
|
2717
2717
|
}
|
|
2718
|
-
.ai-tool[data-v-
|
|
2718
|
+
.ai-tool[data-v-5196811d]::before {
|
|
2719
2719
|
content: '';
|
|
2720
2720
|
position: absolute;
|
|
2721
2721
|
width: 20px;
|
|
@@ -2736,7 +2736,7 @@ img[data-v-7dd69850] {
|
|
|
2736
2736
|
filter: brightness(1.2);
|
|
2737
2737
|
transition: filter 0.2s ease;
|
|
2738
2738
|
}
|
|
2739
|
-
.ai-tool[data-v-
|
|
2739
|
+
.ai-tool[data-v-5196811d]:hover::before {
|
|
2740
2740
|
filter: brightness(1.3);
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../chunks/jszip-C8_CqJxM.cjs");
|
|
4
4
|
require("../chunks/helpers-nOdwpmwb.cjs");
|
|
5
|
-
const superEditor_converter = require("../chunks/SuperConverter-
|
|
5
|
+
const superEditor_converter = require("../chunks/SuperConverter-Dxl1uYvz.cjs");
|
|
6
6
|
require("../chunks/uuid-R7L08bOx.cjs");
|
|
7
7
|
exports.SuperConverter = superEditor_converter.SuperConverter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/jszip-B1fkPkPJ.es.js";
|
|
2
2
|
import "../chunks/helpers-C8e9wR5l.es.js";
|
|
3
|
-
import { S } from "../chunks/SuperConverter-
|
|
3
|
+
import { S } from "../chunks/SuperConverter-Dh27SFeK.es.js";
|
|
4
4
|
import "../chunks/uuid-CjlX8hrF.es.js";
|
|
5
5
|
export {
|
|
6
6
|
S as SuperConverter
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-DNdp0AxW.cjs");
|
|
4
4
|
const superEditor_docxZipper = require("./super-editor/docx-zipper.cjs");
|
|
5
5
|
const superEditor_fileZipper = require("./super-editor/file-zipper.cjs");
|
|
6
6
|
const vue = require("./chunks/vue-De9wkgLl.cjs");
|
|
7
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
7
|
+
const superEditor_converter = require("./chunks/SuperConverter-Dxl1uYvz.cjs");
|
|
8
8
|
function isNodeType(node, name) {
|
|
9
9
|
return node.type.name === name;
|
|
10
10
|
}
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ax as Node, ay as Mark } from "./chunks/index-
|
|
2
|
-
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-
|
|
1
|
+
import { ax as Node, ay as Mark } from "./chunks/index-OlLDoLS-.es.js";
|
|
2
|
+
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-OlLDoLS-.es.js";
|
|
3
3
|
import { default as default2 } from "./super-editor/docx-zipper.es.js";
|
|
4
4
|
import { createZip } from "./super-editor/file-zipper.es.js";
|
|
5
5
|
import { d as defineComponent, E as createElementBlock, G as openBlock, K as createBaseVNode } from "./chunks/vue-BnBKJwCW.es.js";
|
|
6
|
-
import { S, r } from "./chunks/SuperConverter-
|
|
6
|
+
import { S, r } from "./chunks/SuperConverter-Dh27SFeK.es.js";
|
|
7
7
|
function isNodeType(node, name) {
|
|
8
8
|
return node.type.name === name;
|
|
9
9
|
}
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
5
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
3
|
+
const index = require("./chunks/index-DNdp0AxW.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-C7p34V06.cjs");
|
|
5
|
+
const superEditor_converter = require("./chunks/SuperConverter-Dxl1uYvz.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
require("./chunks/jszip-C8_CqJxM.cjs");
|
|
8
8
|
require("./chunks/helpers-nOdwpmwb.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-
|
|
2
|
-
import { D, H, P, S, c } from "./chunks/index-
|
|
3
|
-
import { S as S2, r } from "./chunks/SuperConverter-
|
|
1
|
+
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-OlLDoLS-.es.js";
|
|
2
|
+
import { D, H, P, S, c } from "./chunks/index-DOsTLvRQ.es.js";
|
|
3
|
+
import { S as S2, r } from "./chunks/SuperConverter-Dh27SFeK.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
import "./chunks/jszip-B1fkPkPJ.es.js";
|
|
6
6
|
import "./chunks/helpers-C8e9wR5l.es.js";
|