@harbour-enterprises/superdoc 0.28.0-next.17 → 0.28.0-next.18
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-C-Ze6JeA.cjs → PdfViewer-Dh7WsKri.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CgO84Z8T.es.js → PdfViewer-lJ94RgIW.es.js} +1 -1
- package/dist/chunks/{index-kTCzN97h.es.js → index-CKuWGcpN.es.js} +2 -2
- package/dist/chunks/{index-D1umTiDg.cjs → index-Cvt_Mp7t.cjs} +2 -2
- package/dist/chunks/{index-cOCdMICZ-DD6pWThu.cjs → index-cOCdMICZ-BikinkL4.cjs} +1 -1
- package/dist/chunks/{index-cOCdMICZ-Ci7PU968.es.js → index-cOCdMICZ-_r2V8YNJ.es.js} +1 -1
- package/dist/chunks/{super-editor.es-Dc0PuIBh.cjs → super-editor.es-CJXnWitG.cjs} +17 -2
- package/dist/chunks/{super-editor.es-CPgOO-fX.es.js → super-editor.es-DAv4HIUO.es.js} +17 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/style.css +10 -0
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{editor-CMem2X8B.js → editor-BTSjpY4Y.js} +16 -1
- package/dist/super-editor/chunks/{toolbar-DhuSaHbu.js → toolbar-Gu_ZGybk.js} +1 -1
- package/dist/super-editor/editor.es.js +1 -1
- package/dist/super-editor/style.css +10 -0
- package/dist/super-editor/super-editor/src/utils/styleIsolation.d.ts +2 -0
- package/dist/super-editor/super-editor.es.js +3 -3
- 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 +16 -1
- 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-DKMj1I9B.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-Cvt_Mp7t.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-ZWZLQtoU.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-CKuWGcpN.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-DAv4HIUO.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-ZWZLQtoU.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-BWEnUdTY.es.js";
|
|
@@ -17156,7 +17156,7 @@ const _sfc_main = {
|
|
|
17156
17156
|
__name: "SuperDoc",
|
|
17157
17157
|
emits: ["selection-update"],
|
|
17158
17158
|
setup(__props, { emit: __emit }) {
|
|
17159
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17159
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-lJ94RgIW.es.js"));
|
|
17160
17160
|
const superdocStore = useSuperdocStore();
|
|
17161
17161
|
const commentsStore = useCommentsStore();
|
|
17162
17162
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-CJXnWitG.cjs");
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-DkXkH2rT.cjs");
|
|
@@ -17173,7 +17173,7 @@ const _sfc_main = {
|
|
|
17173
17173
|
__name: "SuperDoc",
|
|
17174
17174
|
emits: ["selection-update"],
|
|
17175
17175
|
setup(__props, { emit: __emit }) {
|
|
17176
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17176
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Dh7WsKri.cjs")));
|
|
17177
17177
|
const superdocStore = useSuperdocStore();
|
|
17178
17178
|
const commentsStore = useCommentsStore();
|
|
17179
17179
|
const {
|
|
@@ -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-CJXnWitG.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|
|
@@ -50466,6 +50466,11 @@ const updateYdocDocxData = async (editor, ydoc) => {
|
|
|
50466
50466
|
{ event: "docx-update", user: editor.options.user }
|
|
50467
50467
|
);
|
|
50468
50468
|
};
|
|
50469
|
+
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
50470
|
+
const applyStyleIsolationClass = (target) => {
|
|
50471
|
+
if (!target || !target.classList) return;
|
|
50472
|
+
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
50473
|
+
};
|
|
50469
50474
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
50470
50475
|
const initPaginationData = async (editor) => {
|
|
50471
50476
|
if (!editor.converter) return;
|
|
@@ -50501,6 +50506,7 @@ const getSectionHeight = async (editor, data) => {
|
|
|
50501
50506
|
return new Promise((resolve) => {
|
|
50502
50507
|
const editorContainer = document.createElement("div");
|
|
50503
50508
|
editorContainer.className = "super-editor";
|
|
50509
|
+
applyStyleIsolationClass(editorContainer);
|
|
50504
50510
|
editorContainer.style.padding = "0";
|
|
50505
50511
|
editorContainer.style.margin = "0";
|
|
50506
50512
|
const sectionEditor = createHeaderFooterEditor({ editor, data, editorContainer });
|
|
@@ -50528,6 +50534,7 @@ const createHeaderFooterEditor = ({
|
|
|
50528
50534
|
const { fontSizePt, typeface, fontFamilyCss } = parentStyles;
|
|
50529
50535
|
const fontSizeInPixles = fontSizePt * 1.3333;
|
|
50530
50536
|
const lineHeight2 = fontSizeInPixles * 1.2;
|
|
50537
|
+
applyStyleIsolationClass(editorContainer);
|
|
50531
50538
|
Object.assign(editorContainer.style, {
|
|
50532
50539
|
padding: "0",
|
|
50533
50540
|
margin: "0",
|
|
@@ -53780,7 +53787,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53780
53787
|
{ default: remarkStringify },
|
|
53781
53788
|
{ default: remarkGfm }
|
|
53782
53789
|
] = await Promise.all([
|
|
53783
|
-
Promise.resolve().then(() => require("./index-cOCdMICZ-
|
|
53790
|
+
Promise.resolve().then(() => require("./index-cOCdMICZ-BikinkL4.cjs")),
|
|
53784
53791
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
53785
53792
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
53786
53793
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -54189,7 +54196,12 @@ initContainerElement_fn = function(options) {
|
|
|
54189
54196
|
options.element.classList.add("sd-super-editor-html");
|
|
54190
54197
|
}
|
|
54191
54198
|
}
|
|
54192
|
-
|
|
54199
|
+
if (options.isHeadless) {
|
|
54200
|
+
options.element = null;
|
|
54201
|
+
return;
|
|
54202
|
+
}
|
|
54203
|
+
options.element = options.element || document.createElement("div");
|
|
54204
|
+
applyStyleIsolationClass(options.element);
|
|
54193
54205
|
};
|
|
54194
54206
|
init_fn = function() {
|
|
54195
54207
|
__privateMethod$1(this, _Editor_instances, createExtensionService_fn).call(this);
|
|
@@ -74217,6 +74229,7 @@ class Popover {
|
|
|
74217
74229
|
this.view = view;
|
|
74218
74230
|
this.popover = document.createElement("div");
|
|
74219
74231
|
this.popover.className = "sd-editor-popover";
|
|
74232
|
+
applyStyleIsolationClass(this.popover);
|
|
74220
74233
|
document.body.appendChild(this.popover);
|
|
74221
74234
|
this.tippyInstance = tippy(this.popover, {
|
|
74222
74235
|
trigger: "manual",
|
|
@@ -75633,6 +75646,7 @@ const calculatePageBreaks = (view, editor, sectionData) => {
|
|
|
75633
75646
|
const tempContainer = editor.options.element.cloneNode();
|
|
75634
75647
|
if (!tempContainer) return [];
|
|
75635
75648
|
tempContainer.className = "temp-container super-editor";
|
|
75649
|
+
applyStyleIsolationClass(tempContainer);
|
|
75636
75650
|
const HIDDEN_EDITOR_OFFSET_TOP = 0;
|
|
75637
75651
|
const HIDDEN_EDITOR_OFFSET_LEFT = 0;
|
|
75638
75652
|
tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
|
|
@@ -76681,6 +76695,7 @@ const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
|
76681
76695
|
handleEl.style.pointerEvents = "auto";
|
|
76682
76696
|
resizeContainer.appendChild(handleEl);
|
|
76683
76697
|
}
|
|
76698
|
+
applyStyleIsolationClass(resizeContainer);
|
|
76684
76699
|
document.body.appendChild(resizeContainer);
|
|
76685
76700
|
updateHandlePositions(wrapper.firstElementChild);
|
|
76686
76701
|
}
|
|
@@ -50449,6 +50449,11 @@ const updateYdocDocxData = async (editor, ydoc) => {
|
|
|
50449
50449
|
{ event: "docx-update", user: editor.options.user }
|
|
50450
50450
|
);
|
|
50451
50451
|
};
|
|
50452
|
+
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
50453
|
+
const applyStyleIsolationClass = (target) => {
|
|
50454
|
+
if (!target || !target.classList) return;
|
|
50455
|
+
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
50456
|
+
};
|
|
50452
50457
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
50453
50458
|
const initPaginationData = async (editor) => {
|
|
50454
50459
|
if (!editor.converter) return;
|
|
@@ -50484,6 +50489,7 @@ const getSectionHeight = async (editor, data) => {
|
|
|
50484
50489
|
return new Promise((resolve) => {
|
|
50485
50490
|
const editorContainer = document.createElement("div");
|
|
50486
50491
|
editorContainer.className = "super-editor";
|
|
50492
|
+
applyStyleIsolationClass(editorContainer);
|
|
50487
50493
|
editorContainer.style.padding = "0";
|
|
50488
50494
|
editorContainer.style.margin = "0";
|
|
50489
50495
|
const sectionEditor = createHeaderFooterEditor({ editor, data, editorContainer });
|
|
@@ -50511,6 +50517,7 @@ const createHeaderFooterEditor = ({
|
|
|
50511
50517
|
const { fontSizePt, typeface, fontFamilyCss } = parentStyles;
|
|
50512
50518
|
const fontSizeInPixles = fontSizePt * 1.3333;
|
|
50513
50519
|
const lineHeight2 = fontSizeInPixles * 1.2;
|
|
50520
|
+
applyStyleIsolationClass(editorContainer);
|
|
50514
50521
|
Object.assign(editorContainer.style, {
|
|
50515
50522
|
padding: "0",
|
|
50516
50523
|
margin: "0",
|
|
@@ -53763,7 +53770,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53763
53770
|
{ default: remarkStringify },
|
|
53764
53771
|
{ default: remarkGfm }
|
|
53765
53772
|
] = await Promise.all([
|
|
53766
|
-
import("./index-cOCdMICZ-
|
|
53773
|
+
import("./index-cOCdMICZ-_r2V8YNJ.es.js"),
|
|
53767
53774
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
53768
53775
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
53769
53776
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -54172,7 +54179,12 @@ initContainerElement_fn = function(options) {
|
|
|
54172
54179
|
options.element.classList.add("sd-super-editor-html");
|
|
54173
54180
|
}
|
|
54174
54181
|
}
|
|
54175
|
-
|
|
54182
|
+
if (options.isHeadless) {
|
|
54183
|
+
options.element = null;
|
|
54184
|
+
return;
|
|
54185
|
+
}
|
|
54186
|
+
options.element = options.element || document.createElement("div");
|
|
54187
|
+
applyStyleIsolationClass(options.element);
|
|
54176
54188
|
};
|
|
54177
54189
|
init_fn = function() {
|
|
54178
54190
|
__privateMethod$1(this, _Editor_instances, createExtensionService_fn).call(this);
|
|
@@ -74200,6 +74212,7 @@ class Popover {
|
|
|
74200
74212
|
this.view = view;
|
|
74201
74213
|
this.popover = document.createElement("div");
|
|
74202
74214
|
this.popover.className = "sd-editor-popover";
|
|
74215
|
+
applyStyleIsolationClass(this.popover);
|
|
74203
74216
|
document.body.appendChild(this.popover);
|
|
74204
74217
|
this.tippyInstance = tippy(this.popover, {
|
|
74205
74218
|
trigger: "manual",
|
|
@@ -75616,6 +75629,7 @@ const calculatePageBreaks = (view, editor, sectionData) => {
|
|
|
75616
75629
|
const tempContainer = editor.options.element.cloneNode();
|
|
75617
75630
|
if (!tempContainer) return [];
|
|
75618
75631
|
tempContainer.className = "temp-container super-editor";
|
|
75632
|
+
applyStyleIsolationClass(tempContainer);
|
|
75619
75633
|
const HIDDEN_EDITOR_OFFSET_TOP = 0;
|
|
75620
75634
|
const HIDDEN_EDITOR_OFFSET_LEFT = 0;
|
|
75621
75635
|
tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
|
|
@@ -76664,6 +76678,7 @@ const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
|
76664
76678
|
handleEl.style.pointerEvents = "auto";
|
|
76665
76679
|
resizeContainer.appendChild(handleEl);
|
|
76666
76680
|
}
|
|
76681
|
+
applyStyleIsolationClass(resizeContainer);
|
|
76667
76682
|
document.body.appendChild(resizeContainer);
|
|
76668
76683
|
updateHandlePositions(wrapper.firstElementChild);
|
|
76669
76684
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;;WAClB,MAAM;;;;UACN,MAAM;;;;gBACN,OAAO;;;;WACP,OAAO,KAAK,EAAE,GAAG;;;;eACjB,OAAO,sBAAsB,EAAE,kBAAkB;;;;;;eAM5D;QAQqC,kBAAkB,GAR5C,CAAC,MAAM,EAAE;YAClB,UAAU,EAAE,MAAM,CAAC;YACnB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,UAAU,CAAC,EAAE,OAAO,CAAC;YACrB,OAAO,CAAC,EAAE,MAAS,IAAI,CAAC;YACxB,aAAa,CAAC,EAAE,MAAS,IAAI,CAAC;YAC9B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;YAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;SAC5B,KAAK,OAAO,GAAG,SAAS;KACzB;;;;SACA;QAAuB,MAAM,GAAlB,MAAM;QACM,QAAQ,GAApB,MAAM;KACjB;;;;;;;;;;;;gBAGA;QAA6B,WAAW;QACR,YAAY;QACb,mBAAmB,GAAvC,OAAO;KACpB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":"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"}
|
package/dist/style.css
CHANGED
|
@@ -785,6 +785,16 @@ to {
|
|
|
785
785
|
:root {
|
|
786
786
|
/* CSS variables */
|
|
787
787
|
}
|
|
788
|
+
.sd-editor-scoped,
|
|
789
|
+
.sd-editor-scoped :where(*),
|
|
790
|
+
.sd-editor-scoped :where(*::before),
|
|
791
|
+
.sd-editor-scoped :where(*::after) {
|
|
792
|
+
all: revert;
|
|
793
|
+
box-sizing: border-box;
|
|
794
|
+
}
|
|
795
|
+
.sd-editor-scoped {
|
|
796
|
+
display: block;
|
|
797
|
+
}
|
|
788
798
|
.sd-input-active {
|
|
789
799
|
border: 1px solid #1355ff !important;
|
|
790
800
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
2
|
import { T as TextSelection } from "./chunks/converter-DxFe92HN.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-BTSjpY4Y.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -11696,6 +11696,11 @@ const updateYdocDocxData = async (editor, ydoc) => {
|
|
|
11696
11696
|
{ event: "docx-update", user: editor.options.user }
|
|
11697
11697
|
);
|
|
11698
11698
|
};
|
|
11699
|
+
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
11700
|
+
const applyStyleIsolationClass = (target) => {
|
|
11701
|
+
if (!target || !target.classList) return;
|
|
11702
|
+
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
11703
|
+
};
|
|
11699
11704
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
11700
11705
|
const initPaginationData = async (editor) => {
|
|
11701
11706
|
if (!editor.converter) return;
|
|
@@ -11731,6 +11736,7 @@ const getSectionHeight = async (editor, data) => {
|
|
|
11731
11736
|
return new Promise((resolve) => {
|
|
11732
11737
|
const editorContainer = document.createElement("div");
|
|
11733
11738
|
editorContainer.className = "super-editor";
|
|
11739
|
+
applyStyleIsolationClass(editorContainer);
|
|
11734
11740
|
editorContainer.style.padding = "0";
|
|
11735
11741
|
editorContainer.style.margin = "0";
|
|
11736
11742
|
const sectionEditor = createHeaderFooterEditor({ editor, data, editorContainer });
|
|
@@ -11758,6 +11764,7 @@ const createHeaderFooterEditor = ({
|
|
|
11758
11764
|
const { fontSizePt, typeface, fontFamilyCss } = parentStyles;
|
|
11759
11765
|
const fontSizeInPixles = fontSizePt * 1.3333;
|
|
11760
11766
|
const lineHeight = fontSizeInPixles * 1.2;
|
|
11767
|
+
applyStyleIsolationClass(editorContainer);
|
|
11761
11768
|
Object.assign(editorContainer.style, {
|
|
11762
11769
|
padding: "0",
|
|
11763
11770
|
margin: "0",
|
|
@@ -15471,7 +15478,12 @@ initContainerElement_fn = function(options) {
|
|
|
15471
15478
|
options.element.classList.add("sd-super-editor-html");
|
|
15472
15479
|
}
|
|
15473
15480
|
}
|
|
15474
|
-
|
|
15481
|
+
if (options.isHeadless) {
|
|
15482
|
+
options.element = null;
|
|
15483
|
+
return;
|
|
15484
|
+
}
|
|
15485
|
+
options.element = options.element || document.createElement("div");
|
|
15486
|
+
applyStyleIsolationClass(options.element);
|
|
15475
15487
|
};
|
|
15476
15488
|
/**
|
|
15477
15489
|
* Initialize the editor with the given options
|
|
@@ -35615,6 +35627,7 @@ class Popover {
|
|
|
35615
35627
|
this.view = view;
|
|
35616
35628
|
this.popover = document.createElement("div");
|
|
35617
35629
|
this.popover.className = "sd-editor-popover";
|
|
35630
|
+
applyStyleIsolationClass(this.popover);
|
|
35618
35631
|
document.body.appendChild(this.popover);
|
|
35619
35632
|
this.tippyInstance = tippy(this.popover, {
|
|
35620
35633
|
trigger: "manual",
|
|
@@ -37031,6 +37044,7 @@ const calculatePageBreaks = (view, editor, sectionData) => {
|
|
|
37031
37044
|
const tempContainer = editor.options.element.cloneNode();
|
|
37032
37045
|
if (!tempContainer) return [];
|
|
37033
37046
|
tempContainer.className = "temp-container super-editor";
|
|
37047
|
+
applyStyleIsolationClass(tempContainer);
|
|
37034
37048
|
const HIDDEN_EDITOR_OFFSET_TOP = 0;
|
|
37035
37049
|
const HIDDEN_EDITOR_OFFSET_LEFT = 0;
|
|
37036
37050
|
tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
|
|
@@ -38079,6 +38093,7 @@ const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
|
38079
38093
|
handleEl.style.pointerEvents = "auto";
|
|
38080
38094
|
resizeContainer.appendChild(handleEl);
|
|
38081
38095
|
}
|
|
38096
|
+
applyStyleIsolationClass(resizeContainer);
|
|
38082
38097
|
document.body.appendChild(resizeContainer);
|
|
38083
38098
|
updateHandlePositions(wrapper.firstElementChild);
|
|
38084
38099
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
2
|
import { p as process$1 } from "./converter-DxFe92HN.js";
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BTSjpY4Y.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -411,6 +411,16 @@ to {
|
|
|
411
411
|
:root {
|
|
412
412
|
/* CSS variables */
|
|
413
413
|
}
|
|
414
|
+
.sd-editor-scoped,
|
|
415
|
+
.sd-editor-scoped :where(*),
|
|
416
|
+
.sd-editor-scoped :where(*::before),
|
|
417
|
+
.sd-editor-scoped :where(*::after) {
|
|
418
|
+
all: revert;
|
|
419
|
+
box-sizing: border-box;
|
|
420
|
+
}
|
|
421
|
+
.sd-editor-scoped {
|
|
422
|
+
display: block;
|
|
423
|
+
}
|
|
414
424
|
.sd-input-active {
|
|
415
425
|
border: 1px solid #1355ff !important;
|
|
416
426
|
}
|
|
@@ -11,10 +11,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
12
|
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-DxFe92HN.js";
|
|
13
13
|
import { c1, a5, i, a2 } from "./chunks/converter-DxFe92HN.js";
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { v, C, w, T, q, x, t } from "./chunks/editor-
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-BTSjpY4Y.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-BTSjpY4Y.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Gu_ZGybk.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
19
|
import { D } from "./chunks/docx-zipper-cuctY57Z.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-CJXnWitG.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-DAv4HIUO.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-CJXnWitG.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-Cvt_Mp7t.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DAv4HIUO.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-CKuWGcpN.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -58164,6 +58164,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58164
58164
|
{ event: "docx-update", user: editor.options.user }
|
|
58165
58165
|
);
|
|
58166
58166
|
};
|
|
58167
|
+
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
58168
|
+
const applyStyleIsolationClass = (target) => {
|
|
58169
|
+
if (!target || !target.classList) return;
|
|
58170
|
+
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
58171
|
+
};
|
|
58167
58172
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
58168
58173
|
const initPaginationData = async (editor) => {
|
|
58169
58174
|
if (!editor.converter) return;
|
|
@@ -58199,6 +58204,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58199
58204
|
return new Promise((resolve2) => {
|
|
58200
58205
|
const editorContainer = document.createElement("div");
|
|
58201
58206
|
editorContainer.className = "super-editor";
|
|
58207
|
+
applyStyleIsolationClass(editorContainer);
|
|
58202
58208
|
editorContainer.style.padding = "0";
|
|
58203
58209
|
editorContainer.style.margin = "0";
|
|
58204
58210
|
const sectionEditor = createHeaderFooterEditor({ editor, data, editorContainer });
|
|
@@ -58226,6 +58232,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58226
58232
|
const { fontSizePt, typeface, fontFamilyCss } = parentStyles;
|
|
58227
58233
|
const fontSizeInPixles = fontSizePt * 1.3333;
|
|
58228
58234
|
const lineHeight2 = fontSizeInPixles * 1.2;
|
|
58235
|
+
applyStyleIsolationClass(editorContainer);
|
|
58229
58236
|
Object.assign(editorContainer.style, {
|
|
58230
58237
|
padding: "0",
|
|
58231
58238
|
margin: "0",
|
|
@@ -61887,7 +61894,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61887
61894
|
options.element.classList.add("sd-super-editor-html");
|
|
61888
61895
|
}
|
|
61889
61896
|
}
|
|
61890
|
-
|
|
61897
|
+
if (options.isHeadless) {
|
|
61898
|
+
options.element = null;
|
|
61899
|
+
return;
|
|
61900
|
+
}
|
|
61901
|
+
options.element = options.element || document.createElement("div");
|
|
61902
|
+
applyStyleIsolationClass(options.element);
|
|
61891
61903
|
};
|
|
61892
61904
|
init_fn = function() {
|
|
61893
61905
|
__privateMethod$1(this, _Editor_instances, createExtensionService_fn).call(this);
|
|
@@ -81915,6 +81927,7 @@ ${l}
|
|
|
81915
81927
|
this.view = view;
|
|
81916
81928
|
this.popover = document.createElement("div");
|
|
81917
81929
|
this.popover.className = "sd-editor-popover";
|
|
81930
|
+
applyStyleIsolationClass(this.popover);
|
|
81918
81931
|
document.body.appendChild(this.popover);
|
|
81919
81932
|
this.tippyInstance = tippy(this.popover, {
|
|
81920
81933
|
trigger: "manual",
|
|
@@ -83331,6 +83344,7 @@ ${l}
|
|
|
83331
83344
|
const tempContainer = editor.options.element.cloneNode();
|
|
83332
83345
|
if (!tempContainer) return [];
|
|
83333
83346
|
tempContainer.className = "temp-container super-editor";
|
|
83347
|
+
applyStyleIsolationClass(tempContainer);
|
|
83334
83348
|
const HIDDEN_EDITOR_OFFSET_TOP = 0;
|
|
83335
83349
|
const HIDDEN_EDITOR_OFFSET_LEFT = 0;
|
|
83336
83350
|
tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
|
|
@@ -84379,6 +84393,7 @@ ${l}
|
|
|
84379
84393
|
handleEl.style.pointerEvents = "auto";
|
|
84380
84394
|
resizeContainer.appendChild(handleEl);
|
|
84381
84395
|
}
|
|
84396
|
+
applyStyleIsolationClass(resizeContainer);
|
|
84382
84397
|
document.body.appendChild(resizeContainer);
|
|
84383
84398
|
updateHandlePositions(wrapper.firstElementChild);
|
|
84384
84399
|
}
|