@harbour-enterprises/superdoc 0.29.0-next.16 → 0.29.0-next.17
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-B14Psbm5.cjs → PdfViewer-DYxoL3aX.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CpbPbmhH.es.js → PdfViewer-cB0Wc125.es.js} +1 -1
- package/dist/chunks/{index-BAB9eQRg.es.js → index-BkH3Ewpn.es.js} +3 -3
- package/dist/chunks/{index-BE8ctcJ1-BVHEZaEv.es.js → index-CdXg92JS-CoYVY9yT.es.js} +1 -1
- package/dist/chunks/{index-BE8ctcJ1-BsFfsr_5.cjs → index-CdXg92JS-rI1se8w8.cjs} +1 -1
- package/dist/chunks/{index-BRloVMt4.cjs → index-Cp4ihfTg.cjs} +3 -3
- package/dist/chunks/{super-editor.es-soAIWbdF.es.js → super-editor.es-DbVz9iFq.es.js} +58 -31
- package/dist/chunks/{super-editor.es-hL-1R4Qv.cjs → super-editor.es-GK0HIFwy.cjs} +58 -31
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Dw2FWHjz.js → converter-BxHd90vg.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-B-OgBQQi.js → docx-zipper-DRDqDf4t.js} +1 -1
- package/dist/super-editor/chunks/{editor-CtEAROku.js → editor-BN_AUZwq.js} +65 -38
- package/dist/super-editor/chunks/{index-BE8ctcJ1.js → index-CdXg92JS.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-Bya4b9Yv.js → toolbar-CeJfRy_U.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +6 -6
- package/dist/super-editor/super-editor/src/components/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +14 -13
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +60 -33
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-BQxRC6G7.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-Cp4ihfTg.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, y as h, O as Transition, $ as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, v as createVNode, x as unref } from "./vue-D1vcEBAQ.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-BkH3Ewpn.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-
|
|
1
|
+
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-DbVz9iFq.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-D4gv5QOO.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -17201,7 +17201,7 @@ const _sfc_main = {
|
|
|
17201
17201
|
__name: "SuperDoc",
|
|
17202
17202
|
emits: ["selection-update"],
|
|
17203
17203
|
setup(__props, { emit: __emit }) {
|
|
17204
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17204
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-cB0Wc125.es.js"));
|
|
17205
17205
|
const superdocStore = useSuperdocStore();
|
|
17206
17206
|
const commentsStore = useCommentsStore();
|
|
17207
17207
|
const {
|
|
@@ -17965,7 +17965,7 @@ class SuperDoc extends EventEmitter {
|
|
|
17965
17965
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17966
17966
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17967
17967
|
this.colorIndex = 0;
|
|
17968
|
-
this.version = "0.29.0-next.
|
|
17968
|
+
this.version = "0.29.0-next.17";
|
|
17969
17969
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17970
17970
|
this.superdocId = config.superdocId || v4();
|
|
17971
17971
|
this.colors = this.config.colors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./super-editor.es-
|
|
3
|
+
const superEditor_es = require("./super-editor.es-GK0HIFwy.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-GK0HIFwy.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-BvTILlBo.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
@@ -17218,7 +17218,7 @@ const _sfc_main = {
|
|
|
17218
17218
|
__name: "SuperDoc",
|
|
17219
17219
|
emits: ["selection-update"],
|
|
17220
17220
|
setup(__props, { emit: __emit }) {
|
|
17221
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17221
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-DYxoL3aX.cjs")));
|
|
17222
17222
|
const superdocStore = useSuperdocStore();
|
|
17223
17223
|
const commentsStore = useCommentsStore();
|
|
17224
17224
|
const {
|
|
@@ -17982,7 +17982,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17982
17982
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17983
17983
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17984
17984
|
this.colorIndex = 0;
|
|
17985
|
-
this.version = "0.29.0-next.
|
|
17985
|
+
this.version = "0.29.0-next.17";
|
|
17986
17986
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17987
17987
|
this.superdocId = config.superdocId || uuid.v4();
|
|
17988
17988
|
this.colors = this.config.colors;
|
|
@@ -35764,7 +35764,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35764
35764
|
static getStoredSuperdocVersion(docx) {
|
|
35765
35765
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35766
35766
|
}
|
|
35767
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.
|
|
35767
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.17") {
|
|
35768
35768
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35769
35769
|
}
|
|
35770
35770
|
/**
|
|
@@ -38886,14 +38886,14 @@ class DocxZipper {
|
|
|
38886
38886
|
const zip = await this.zip.loadAsync(file);
|
|
38887
38887
|
return zip;
|
|
38888
38888
|
}
|
|
38889
|
-
async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless }) {
|
|
38889
|
+
async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless: isHeadless2 }) {
|
|
38890
38890
|
let zip;
|
|
38891
38891
|
if (originalDocxFile) {
|
|
38892
38892
|
zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media);
|
|
38893
38893
|
} else {
|
|
38894
38894
|
zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media, fonts);
|
|
38895
38895
|
}
|
|
38896
|
-
const exportType =
|
|
38896
|
+
const exportType = isHeadless2 ? "nodebuffer" : "blob";
|
|
38897
38897
|
return await zip.generateAsync({ type: exportType });
|
|
38898
38898
|
}
|
|
38899
38899
|
/**
|
|
@@ -50629,9 +50629,15 @@ const applyStyleIsolationClass = (target) => {
|
|
|
50629
50629
|
if (!target || !target.classList) return;
|
|
50630
50630
|
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
50631
50631
|
};
|
|
50632
|
+
const isHeadless = (editor) => {
|
|
50633
|
+
return editor?.options?.isHeadless ?? false;
|
|
50634
|
+
};
|
|
50635
|
+
const shouldSkipNodeView = (editor) => {
|
|
50636
|
+
return isHeadless(editor);
|
|
50637
|
+
};
|
|
50632
50638
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
50633
50639
|
const initPaginationData = async (editor) => {
|
|
50634
|
-
if (!editor.converter) return;
|
|
50640
|
+
if (isHeadless(editor) || !editor.converter) return;
|
|
50635
50641
|
const sectionData = { headers: {}, footers: {} };
|
|
50636
50642
|
const headerIds = editor.converter.headerIds.ids;
|
|
50637
50643
|
const footerIds = editor.converter.footerIds.ids;
|
|
@@ -50767,6 +50773,7 @@ const broadcastEditorEvents = (editor, sectionEditor) => {
|
|
|
50767
50773
|
});
|
|
50768
50774
|
};
|
|
50769
50775
|
const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
|
|
50776
|
+
if (isHeadless(editor)) return;
|
|
50770
50777
|
editor.converter.headerEditors.forEach((item) => {
|
|
50771
50778
|
item.editor.setEditable(isEditMode, false);
|
|
50772
50779
|
item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
|
|
@@ -53836,10 +53843,12 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53836
53843
|
};
|
|
53837
53844
|
if ("orientation" in screen && "addEventListener" in screen.orientation) {
|
|
53838
53845
|
screen.orientation.addEventListener("change", handleResize);
|
|
53839
|
-
} else {
|
|
53846
|
+
} else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
53840
53847
|
window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
|
|
53841
53848
|
}
|
|
53842
|
-
window.addEventListener
|
|
53849
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
53850
|
+
window.addEventListener("resize", () => handleResize);
|
|
53851
|
+
}
|
|
53843
53852
|
}
|
|
53844
53853
|
/**
|
|
53845
53854
|
* Get document identifier for telemetry (async - may generate hash)
|
|
@@ -53953,7 +53962,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53953
53962
|
{ default: remarkStringify },
|
|
53954
53963
|
{ default: remarkGfm }
|
|
53955
53964
|
] = await Promise.all([
|
|
53956
|
-
import("./index-
|
|
53965
|
+
import("./index-CdXg92JS-CoYVY9yT.es.js"),
|
|
53957
53966
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
53958
53967
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
53959
53968
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -54005,7 +54014,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54005
54014
|
this.initDefaultStyles();
|
|
54006
54015
|
hasMadeUpdate = true;
|
|
54007
54016
|
}
|
|
54008
|
-
if (hasMadeUpdate) {
|
|
54017
|
+
if (hasMadeUpdate && !isHeadless(this)) {
|
|
54009
54018
|
const newTr = this.view.state.tr;
|
|
54010
54019
|
newTr.setMeta("forceUpdatePagination", true);
|
|
54011
54020
|
this.view.dispatch(newTr);
|
|
@@ -54171,7 +54180,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54171
54180
|
* @returns {Object | void} Migration results
|
|
54172
54181
|
*/
|
|
54173
54182
|
processCollaborationMigrations() {
|
|
54174
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
54183
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.17");
|
|
54175
54184
|
if (!this.options.ydoc) return;
|
|
54176
54185
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
54177
54186
|
let docVersion = metaMap.get("version");
|
|
@@ -54605,16 +54614,18 @@ createView_fn = function(element) {
|
|
|
54605
54614
|
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
54606
54615
|
handleDoubleClick: async (view, pos, event) => {
|
|
54607
54616
|
if (this.options.documentMode !== "editing") return;
|
|
54608
|
-
|
|
54609
|
-
|
|
54610
|
-
|
|
54611
|
-
|
|
54612
|
-
|
|
54613
|
-
|
|
54614
|
-
|
|
54617
|
+
if (!isHeadless(this)) {
|
|
54618
|
+
const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
|
|
54619
|
+
const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
|
|
54620
|
+
if (isHeader || isFooter) {
|
|
54621
|
+
const eventClone = new event.constructor(event.type);
|
|
54622
|
+
event.target.dispatchEvent(eventClone);
|
|
54623
|
+
if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
|
|
54624
|
+
return;
|
|
54625
|
+
}
|
|
54615
54626
|
}
|
|
54616
54627
|
event.stopPropagation();
|
|
54617
|
-
if (!this.options.editable) {
|
|
54628
|
+
if (!this.options.editable && !isHeadless(this)) {
|
|
54618
54629
|
this.setEditable(true, false);
|
|
54619
54630
|
toggleHeaderFooterEditMode({
|
|
54620
54631
|
editor: this,
|
|
@@ -59250,9 +59261,6 @@ function orderedListSync(editor) {
|
|
|
59250
59261
|
}
|
|
59251
59262
|
});
|
|
59252
59263
|
}
|
|
59253
|
-
const shouldSkipNodeView = (editor) => {
|
|
59254
|
-
return editor.options.isHeadless;
|
|
59255
|
-
};
|
|
59256
59264
|
const ListItem = Node$1.create({
|
|
59257
59265
|
name: "listItem",
|
|
59258
59266
|
content: "paragraph* block*",
|
|
@@ -65224,7 +65232,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
65224
65232
|
}
|
|
65225
65233
|
if (dispatch) {
|
|
65226
65234
|
commands2.updateFieldAnnotationsAttributes([annotation], attrs);
|
|
65227
|
-
if (this.editor.options.pagination) {
|
|
65235
|
+
if (this.editor.options.pagination && !isHeadless(this.editor)) {
|
|
65228
65236
|
setTimeout(() => {
|
|
65229
65237
|
const newTr = this.editor.view.state.tr;
|
|
65230
65238
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -67161,7 +67169,9 @@ const PageNumber = Node$1.create({
|
|
|
67161
67169
|
const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
|
|
67162
67170
|
if (dispatch) {
|
|
67163
67171
|
tr.replaceSelectionWith(pageNumberNode, false);
|
|
67164
|
-
|
|
67172
|
+
if (!isHeadless(editor)) {
|
|
67173
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
67174
|
+
}
|
|
67165
67175
|
}
|
|
67166
67176
|
return true;
|
|
67167
67177
|
}
|
|
@@ -75828,6 +75838,10 @@ const Pagination = Extension.create({
|
|
|
75828
75838
|
};
|
|
75829
75839
|
},
|
|
75830
75840
|
addCommands() {
|
|
75841
|
+
const editor = this.editor;
|
|
75842
|
+
if (isHeadless(editor)) {
|
|
75843
|
+
return {};
|
|
75844
|
+
}
|
|
75831
75845
|
return {
|
|
75832
75846
|
insertPageBreak: () => ({ commands: commands2 }) => {
|
|
75833
75847
|
return commands2.insertContent({
|
|
@@ -75838,20 +75852,26 @@ const Pagination = Extension.create({
|
|
|
75838
75852
|
* Toggle pagination on/off
|
|
75839
75853
|
* @returns {void}
|
|
75840
75854
|
*/
|
|
75841
|
-
togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
|
|
75855
|
+
togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
|
|
75842
75856
|
const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
|
|
75843
75857
|
tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
|
|
75844
75858
|
if (dispatch) {
|
|
75845
75859
|
dispatch(tr);
|
|
75846
|
-
|
|
75860
|
+
editor2.initDefaultStyles(editor2.element, !isEnabled);
|
|
75847
75861
|
return true;
|
|
75848
75862
|
}
|
|
75849
75863
|
}
|
|
75850
75864
|
};
|
|
75851
75865
|
},
|
|
75852
75866
|
addShortcuts() {
|
|
75867
|
+
const editor = this.editor;
|
|
75868
|
+
if (isHeadless(editor)) {
|
|
75869
|
+
return {};
|
|
75870
|
+
}
|
|
75853
75871
|
return {
|
|
75854
|
-
"Mod-Enter": () =>
|
|
75872
|
+
"Mod-Enter": () => {
|
|
75873
|
+
return editor.commands.insertPageBreak();
|
|
75874
|
+
}
|
|
75855
75875
|
};
|
|
75856
75876
|
},
|
|
75857
75877
|
/**
|
|
@@ -75859,6 +75879,9 @@ const Pagination = Extension.create({
|
|
|
75859
75879
|
*/
|
|
75860
75880
|
addPmPlugins() {
|
|
75861
75881
|
const editor = this.editor;
|
|
75882
|
+
if (isHeadless(editor)) {
|
|
75883
|
+
return [];
|
|
75884
|
+
}
|
|
75862
75885
|
let isUpdating = false;
|
|
75863
75886
|
let shouldUpdate = false;
|
|
75864
75887
|
let hasInitialized = false;
|
|
@@ -75874,7 +75897,7 @@ const Pagination = Extension.create({
|
|
|
75874
75897
|
isReadyToInit: false,
|
|
75875
75898
|
decorations: DecorationSet.empty,
|
|
75876
75899
|
isDebugging,
|
|
75877
|
-
isEnabled: editor.options.pagination
|
|
75900
|
+
isEnabled: editor.options.pagination && !isHeadless(editor)
|
|
75878
75901
|
};
|
|
75879
75902
|
},
|
|
75880
75903
|
apply(tr, oldState, prevEditorState, newEditorState) {
|
|
@@ -75952,6 +75975,7 @@ const Pagination = Extension.create({
|
|
|
75952
75975
|
let previousDecorations = DecorationSet.empty;
|
|
75953
75976
|
return {
|
|
75954
75977
|
update: (view) => {
|
|
75978
|
+
if (isHeadless(editor)) return;
|
|
75955
75979
|
if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
|
|
75956
75980
|
if (!shouldUpdate || isUpdating) return;
|
|
75957
75981
|
const performPaginationUpdate = () => {
|
|
@@ -75975,6 +75999,7 @@ const Pagination = Extension.create({
|
|
|
75975
75999
|
},
|
|
75976
76000
|
props: {
|
|
75977
76001
|
decorations(state2) {
|
|
76002
|
+
if (isHeadless(editor)) return DecorationSet.empty;
|
|
75978
76003
|
const pluginState = PaginationPluginKey.getState(state2);
|
|
75979
76004
|
return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
|
|
75980
76005
|
}
|
|
@@ -76343,7 +76368,7 @@ const getHeaderFooterEditorKey = ({ pageNumber, isHeader, isFooter, isFirstHeade
|
|
|
76343
76368
|
return void 0;
|
|
76344
76369
|
};
|
|
76345
76370
|
const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
|
|
76346
|
-
if (editor.options.documentMode !== "editing") return;
|
|
76371
|
+
if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
|
|
76347
76372
|
editor.setEditable(false, false);
|
|
76348
76373
|
toggleHeaderFooterEditMode({
|
|
76349
76374
|
editor,
|
|
@@ -76415,6 +76440,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
76415
76440
|
return actualBreak;
|
|
76416
76441
|
}
|
|
76417
76442
|
const onImageLoad = (editor) => {
|
|
76443
|
+
if (isHeadless(editor)) return;
|
|
76418
76444
|
if (typeof requestAnimationFrame !== "function") return;
|
|
76419
76445
|
requestAnimationFrame(() => {
|
|
76420
76446
|
const newTr = editor.view.state.tr;
|
|
@@ -77254,9 +77280,9 @@ const NodeResizer = Extension.create({
|
|
|
77254
77280
|
return {};
|
|
77255
77281
|
},
|
|
77256
77282
|
addPmPlugins() {
|
|
77257
|
-
const
|
|
77283
|
+
const isHeadless2 = this.editor.options.isHeadless;
|
|
77258
77284
|
const hasDocument = typeof document !== "undefined";
|
|
77259
|
-
if (
|
|
77285
|
+
if (isHeadless2 || !hasDocument) return [];
|
|
77260
77286
|
return [nodeResizer(["image"], this.editor)];
|
|
77261
77287
|
}
|
|
77262
77288
|
});
|
|
@@ -92428,7 +92454,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
92428
92454
|
}
|
|
92429
92455
|
});
|
|
92430
92456
|
function adjustPaginationBreaks(editorElem, editor) {
|
|
92431
|
-
if (!editorElem.value || !editor?.value?.options?.scale) return;
|
|
92457
|
+
if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
|
|
92432
92458
|
const zoom = editor.value.options.scale;
|
|
92433
92459
|
const bounds = editorElem.value.getBoundingClientRect();
|
|
92434
92460
|
const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
|
|
@@ -92862,6 +92888,7 @@ const _sfc_main$1 = {
|
|
|
92862
92888
|
...props.options
|
|
92863
92889
|
});
|
|
92864
92890
|
editor.value.on("paginationUpdate", () => {
|
|
92891
|
+
if (isHeadless(editor.value)) return;
|
|
92865
92892
|
adjustPaginationBreaks(editorElem, editor);
|
|
92866
92893
|
});
|
|
92867
92894
|
editor.value.on("collaborationReady", () => {
|
|
@@ -93020,7 +93047,7 @@ const _sfc_main$1 = {
|
|
|
93020
93047
|
};
|
|
93021
93048
|
}
|
|
93022
93049
|
};
|
|
93023
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
93050
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cd3558fe"]]);
|
|
93024
93051
|
const _hoisted_1 = ["innerHTML"];
|
|
93025
93052
|
const _sfc_main = {
|
|
93026
93053
|
__name: "SuperInput",
|
|
@@ -35781,7 +35781,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35781
35781
|
static getStoredSuperdocVersion(docx) {
|
|
35782
35782
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35783
35783
|
}
|
|
35784
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.
|
|
35784
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.17") {
|
|
35785
35785
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35786
35786
|
}
|
|
35787
35787
|
/**
|
|
@@ -38903,14 +38903,14 @@ class DocxZipper {
|
|
|
38903
38903
|
const zip = await this.zip.loadAsync(file);
|
|
38904
38904
|
return zip;
|
|
38905
38905
|
}
|
|
38906
|
-
async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless }) {
|
|
38906
|
+
async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless: isHeadless2 }) {
|
|
38907
38907
|
let zip;
|
|
38908
38908
|
if (originalDocxFile) {
|
|
38909
38909
|
zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media);
|
|
38910
38910
|
} else {
|
|
38911
38911
|
zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media, fonts);
|
|
38912
38912
|
}
|
|
38913
|
-
const exportType =
|
|
38913
|
+
const exportType = isHeadless2 ? "nodebuffer" : "blob";
|
|
38914
38914
|
return await zip.generateAsync({ type: exportType });
|
|
38915
38915
|
}
|
|
38916
38916
|
/**
|
|
@@ -50646,9 +50646,15 @@ const applyStyleIsolationClass = (target) => {
|
|
|
50646
50646
|
if (!target || !target.classList) return;
|
|
50647
50647
|
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
50648
50648
|
};
|
|
50649
|
+
const isHeadless = (editor) => {
|
|
50650
|
+
return editor?.options?.isHeadless ?? false;
|
|
50651
|
+
};
|
|
50652
|
+
const shouldSkipNodeView = (editor) => {
|
|
50653
|
+
return isHeadless(editor);
|
|
50654
|
+
};
|
|
50649
50655
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
50650
50656
|
const initPaginationData = async (editor) => {
|
|
50651
|
-
if (!editor.converter) return;
|
|
50657
|
+
if (isHeadless(editor) || !editor.converter) return;
|
|
50652
50658
|
const sectionData = { headers: {}, footers: {} };
|
|
50653
50659
|
const headerIds = editor.converter.headerIds.ids;
|
|
50654
50660
|
const footerIds = editor.converter.footerIds.ids;
|
|
@@ -50784,6 +50790,7 @@ const broadcastEditorEvents = (editor, sectionEditor) => {
|
|
|
50784
50790
|
});
|
|
50785
50791
|
};
|
|
50786
50792
|
const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
|
|
50793
|
+
if (isHeadless(editor)) return;
|
|
50787
50794
|
editor.converter.headerEditors.forEach((item) => {
|
|
50788
50795
|
item.editor.setEditable(isEditMode, false);
|
|
50789
50796
|
item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
|
|
@@ -53853,10 +53860,12 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53853
53860
|
};
|
|
53854
53861
|
if ("orientation" in screen && "addEventListener" in screen.orientation) {
|
|
53855
53862
|
screen.orientation.addEventListener("change", handleResize);
|
|
53856
|
-
} else {
|
|
53863
|
+
} else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
53857
53864
|
window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
|
|
53858
53865
|
}
|
|
53859
|
-
window.addEventListener
|
|
53866
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
53867
|
+
window.addEventListener("resize", () => handleResize);
|
|
53868
|
+
}
|
|
53860
53869
|
}
|
|
53861
53870
|
/**
|
|
53862
53871
|
* Get document identifier for telemetry (async - may generate hash)
|
|
@@ -53970,7 +53979,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53970
53979
|
{ default: remarkStringify },
|
|
53971
53980
|
{ default: remarkGfm }
|
|
53972
53981
|
] = await Promise.all([
|
|
53973
|
-
Promise.resolve().then(() => require("./index-
|
|
53982
|
+
Promise.resolve().then(() => require("./index-CdXg92JS-rI1se8w8.cjs")),
|
|
53974
53983
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
53975
53984
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
53976
53985
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -54022,7 +54031,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54022
54031
|
this.initDefaultStyles();
|
|
54023
54032
|
hasMadeUpdate = true;
|
|
54024
54033
|
}
|
|
54025
|
-
if (hasMadeUpdate) {
|
|
54034
|
+
if (hasMadeUpdate && !isHeadless(this)) {
|
|
54026
54035
|
const newTr = this.view.state.tr;
|
|
54027
54036
|
newTr.setMeta("forceUpdatePagination", true);
|
|
54028
54037
|
this.view.dispatch(newTr);
|
|
@@ -54188,7 +54197,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54188
54197
|
* @returns {Object | void} Migration results
|
|
54189
54198
|
*/
|
|
54190
54199
|
processCollaborationMigrations() {
|
|
54191
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
54200
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.17");
|
|
54192
54201
|
if (!this.options.ydoc) return;
|
|
54193
54202
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
54194
54203
|
let docVersion = metaMap.get("version");
|
|
@@ -54622,16 +54631,18 @@ createView_fn = function(element) {
|
|
|
54622
54631
|
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
54623
54632
|
handleDoubleClick: async (view, pos, event) => {
|
|
54624
54633
|
if (this.options.documentMode !== "editing") return;
|
|
54625
|
-
|
|
54626
|
-
|
|
54627
|
-
|
|
54628
|
-
|
|
54629
|
-
|
|
54630
|
-
|
|
54631
|
-
|
|
54634
|
+
if (!isHeadless(this)) {
|
|
54635
|
+
const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
|
|
54636
|
+
const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
|
|
54637
|
+
if (isHeader || isFooter) {
|
|
54638
|
+
const eventClone = new event.constructor(event.type);
|
|
54639
|
+
event.target.dispatchEvent(eventClone);
|
|
54640
|
+
if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
|
|
54641
|
+
return;
|
|
54642
|
+
}
|
|
54632
54643
|
}
|
|
54633
54644
|
event.stopPropagation();
|
|
54634
|
-
if (!this.options.editable) {
|
|
54645
|
+
if (!this.options.editable && !isHeadless(this)) {
|
|
54635
54646
|
this.setEditable(true, false);
|
|
54636
54647
|
toggleHeaderFooterEditMode({
|
|
54637
54648
|
editor: this,
|
|
@@ -59267,9 +59278,6 @@ function orderedListSync(editor) {
|
|
|
59267
59278
|
}
|
|
59268
59279
|
});
|
|
59269
59280
|
}
|
|
59270
|
-
const shouldSkipNodeView = (editor) => {
|
|
59271
|
-
return editor.options.isHeadless;
|
|
59272
|
-
};
|
|
59273
59281
|
const ListItem = Node$1.create({
|
|
59274
59282
|
name: "listItem",
|
|
59275
59283
|
content: "paragraph* block*",
|
|
@@ -65241,7 +65249,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
65241
65249
|
}
|
|
65242
65250
|
if (dispatch) {
|
|
65243
65251
|
commands2.updateFieldAnnotationsAttributes([annotation], attrs);
|
|
65244
|
-
if (this.editor.options.pagination) {
|
|
65252
|
+
if (this.editor.options.pagination && !isHeadless(this.editor)) {
|
|
65245
65253
|
setTimeout(() => {
|
|
65246
65254
|
const newTr = this.editor.view.state.tr;
|
|
65247
65255
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -67178,7 +67186,9 @@ const PageNumber = Node$1.create({
|
|
|
67178
67186
|
const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
|
|
67179
67187
|
if (dispatch) {
|
|
67180
67188
|
tr.replaceSelectionWith(pageNumberNode, false);
|
|
67181
|
-
|
|
67189
|
+
if (!isHeadless(editor)) {
|
|
67190
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
67191
|
+
}
|
|
67182
67192
|
}
|
|
67183
67193
|
return true;
|
|
67184
67194
|
}
|
|
@@ -75845,6 +75855,10 @@ const Pagination = Extension.create({
|
|
|
75845
75855
|
};
|
|
75846
75856
|
},
|
|
75847
75857
|
addCommands() {
|
|
75858
|
+
const editor = this.editor;
|
|
75859
|
+
if (isHeadless(editor)) {
|
|
75860
|
+
return {};
|
|
75861
|
+
}
|
|
75848
75862
|
return {
|
|
75849
75863
|
insertPageBreak: () => ({ commands: commands2 }) => {
|
|
75850
75864
|
return commands2.insertContent({
|
|
@@ -75855,20 +75869,26 @@ const Pagination = Extension.create({
|
|
|
75855
75869
|
* Toggle pagination on/off
|
|
75856
75870
|
* @returns {void}
|
|
75857
75871
|
*/
|
|
75858
|
-
togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
|
|
75872
|
+
togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
|
|
75859
75873
|
const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
|
|
75860
75874
|
tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
|
|
75861
75875
|
if (dispatch) {
|
|
75862
75876
|
dispatch(tr);
|
|
75863
|
-
|
|
75877
|
+
editor2.initDefaultStyles(editor2.element, !isEnabled);
|
|
75864
75878
|
return true;
|
|
75865
75879
|
}
|
|
75866
75880
|
}
|
|
75867
75881
|
};
|
|
75868
75882
|
},
|
|
75869
75883
|
addShortcuts() {
|
|
75884
|
+
const editor = this.editor;
|
|
75885
|
+
if (isHeadless(editor)) {
|
|
75886
|
+
return {};
|
|
75887
|
+
}
|
|
75870
75888
|
return {
|
|
75871
|
-
"Mod-Enter": () =>
|
|
75889
|
+
"Mod-Enter": () => {
|
|
75890
|
+
return editor.commands.insertPageBreak();
|
|
75891
|
+
}
|
|
75872
75892
|
};
|
|
75873
75893
|
},
|
|
75874
75894
|
/**
|
|
@@ -75876,6 +75896,9 @@ const Pagination = Extension.create({
|
|
|
75876
75896
|
*/
|
|
75877
75897
|
addPmPlugins() {
|
|
75878
75898
|
const editor = this.editor;
|
|
75899
|
+
if (isHeadless(editor)) {
|
|
75900
|
+
return [];
|
|
75901
|
+
}
|
|
75879
75902
|
let isUpdating = false;
|
|
75880
75903
|
let shouldUpdate = false;
|
|
75881
75904
|
let hasInitialized = false;
|
|
@@ -75891,7 +75914,7 @@ const Pagination = Extension.create({
|
|
|
75891
75914
|
isReadyToInit: false,
|
|
75892
75915
|
decorations: DecorationSet.empty,
|
|
75893
75916
|
isDebugging,
|
|
75894
|
-
isEnabled: editor.options.pagination
|
|
75917
|
+
isEnabled: editor.options.pagination && !isHeadless(editor)
|
|
75895
75918
|
};
|
|
75896
75919
|
},
|
|
75897
75920
|
apply(tr, oldState, prevEditorState, newEditorState) {
|
|
@@ -75969,6 +75992,7 @@ const Pagination = Extension.create({
|
|
|
75969
75992
|
let previousDecorations = DecorationSet.empty;
|
|
75970
75993
|
return {
|
|
75971
75994
|
update: (view) => {
|
|
75995
|
+
if (isHeadless(editor)) return;
|
|
75972
75996
|
if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
|
|
75973
75997
|
if (!shouldUpdate || isUpdating) return;
|
|
75974
75998
|
const performPaginationUpdate = () => {
|
|
@@ -75992,6 +76016,7 @@ const Pagination = Extension.create({
|
|
|
75992
76016
|
},
|
|
75993
76017
|
props: {
|
|
75994
76018
|
decorations(state2) {
|
|
76019
|
+
if (isHeadless(editor)) return DecorationSet.empty;
|
|
75995
76020
|
const pluginState = PaginationPluginKey.getState(state2);
|
|
75996
76021
|
return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
|
|
75997
76022
|
}
|
|
@@ -76360,7 +76385,7 @@ const getHeaderFooterEditorKey = ({ pageNumber, isHeader, isFooter, isFirstHeade
|
|
|
76360
76385
|
return void 0;
|
|
76361
76386
|
};
|
|
76362
76387
|
const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
|
|
76363
|
-
if (editor.options.documentMode !== "editing") return;
|
|
76388
|
+
if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
|
|
76364
76389
|
editor.setEditable(false, false);
|
|
76365
76390
|
toggleHeaderFooterEditMode({
|
|
76366
76391
|
editor,
|
|
@@ -76432,6 +76457,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
76432
76457
|
return actualBreak;
|
|
76433
76458
|
}
|
|
76434
76459
|
const onImageLoad = (editor) => {
|
|
76460
|
+
if (isHeadless(editor)) return;
|
|
76435
76461
|
if (typeof requestAnimationFrame !== "function") return;
|
|
76436
76462
|
requestAnimationFrame(() => {
|
|
76437
76463
|
const newTr = editor.view.state.tr;
|
|
@@ -77271,9 +77297,9 @@ const NodeResizer = Extension.create({
|
|
|
77271
77297
|
return {};
|
|
77272
77298
|
},
|
|
77273
77299
|
addPmPlugins() {
|
|
77274
|
-
const
|
|
77300
|
+
const isHeadless2 = this.editor.options.isHeadless;
|
|
77275
77301
|
const hasDocument = typeof document !== "undefined";
|
|
77276
|
-
if (
|
|
77302
|
+
if (isHeadless2 || !hasDocument) return [];
|
|
77277
77303
|
return [nodeResizer(["image"], this.editor)];
|
|
77278
77304
|
}
|
|
77279
77305
|
});
|
|
@@ -92445,7 +92471,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
92445
92471
|
}
|
|
92446
92472
|
});
|
|
92447
92473
|
function adjustPaginationBreaks(editorElem, editor) {
|
|
92448
|
-
if (!editorElem.value || !editor?.value?.options?.scale) return;
|
|
92474
|
+
if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
|
|
92449
92475
|
const zoom = editor.value.options.scale;
|
|
92450
92476
|
const bounds = editorElem.value.getBoundingClientRect();
|
|
92451
92477
|
const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
|
|
@@ -92879,6 +92905,7 @@ const _sfc_main$1 = {
|
|
|
92879
92905
|
...props.options
|
|
92880
92906
|
});
|
|
92881
92907
|
editor.value.on("paginationUpdate", () => {
|
|
92908
|
+
if (isHeadless(editor.value)) return;
|
|
92882
92909
|
adjustPaginationBreaks(editorElem, editor);
|
|
92883
92910
|
});
|
|
92884
92911
|
editor.value.on("collaborationReady", () => {
|
|
@@ -93037,7 +93064,7 @@ const _sfc_main$1 = {
|
|
|
93037
93064
|
};
|
|
93038
93065
|
}
|
|
93039
93066
|
};
|
|
93040
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
93067
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cd3558fe"]]);
|
|
93041
93068
|
const _hoisted_1 = ["innerHTML"];
|
|
93042
93069
|
const _sfc_main = {
|
|
93043
93070
|
__name: "SuperInput",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAsBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA0ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA9ED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IAAI,EAAE,CACX;IAEN,4CAA4C;IAC5C,MADW,OAAO,KAAK,EAAE,GAAG,GAAG,SAAS,CACnC;IAEL,4EAA4E;IAC5E,UADW,OAAO,sBAAsB,EAAE,kBAAkB,GAAG,SAAS,CAC/D;IAET,qBAAqB;IACrB,QADW,MAAM,CA0Df;IAmCA,4BAA6B;IAC7B,mBAAmB;IAMnB,gBAA+C;IAC/C,iBAAgC;IAehC,6BAA4B;IAE5B,YAAkB;IAElB,eAAuC;IAEvC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAsBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D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