superdoc 0.20.0-next.13 → 0.20.0-next.14
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-Cdw_Rxtl.cjs → PdfViewer-D-erp24R.cjs} +1 -1
- package/dist/chunks/{PdfViewer-UKMeGyCc.es.js → PdfViewer-_NPRPRHl.es.js} +1 -1
- package/dist/chunks/{index-ByynlgNA.es.js → index-dMbV_syB.es.js} +27 -13
- package/dist/chunks/{index-QAHP9Hp3.cjs → index-duHcNiwD.cjs} +27 -13
- package/dist/chunks/{super-editor.es-D9-ZMXnA.es.js → super-editor.es-BKurmwFy.es.js} +25 -14
- package/dist/chunks/{super-editor.es-BFcP4oFS.cjs → super-editor.es-ly_a915J.cjs} +25 -14
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{editor-27QWXfk-.js → editor-N0dhAC41.js} +6 -5
- package/dist/super-editor/chunks/{toolbar-BPRbNqgL.js → toolbar-CXinz1gO.js} +20 -10
- package/dist/super-editor/editor.es.js +1 -1
- 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 +50 -25
- 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-DWle4Cai.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-duHcNiwD.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-CXxsqYcP.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-dMbV_syB.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index$1, 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$1, 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-BKurmwFy.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-CXxsqYcP.es.js";
|
|
3
3
|
import { B as Buffer$2 } from "./jszip-B8KIZSNe.es.js";
|
|
4
4
|
import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
|
|
@@ -6607,7 +6607,7 @@ function resolveTo(selector) {
|
|
|
6607
6607
|
if (typeof selector === "string") {
|
|
6608
6608
|
return document.querySelector(selector);
|
|
6609
6609
|
}
|
|
6610
|
-
return selector();
|
|
6610
|
+
return selector() || null;
|
|
6611
6611
|
}
|
|
6612
6612
|
const LazyTeleport = defineComponent({
|
|
6613
6613
|
name: "LazyTeleport",
|
|
@@ -6695,8 +6695,11 @@ const oppositeAlignCssPositionProps = {
|
|
|
6695
6695
|
};
|
|
6696
6696
|
const keepOffsetDirection = {
|
|
6697
6697
|
top: true,
|
|
6698
|
+
// top++
|
|
6698
6699
|
bottom: false,
|
|
6700
|
+
// top--
|
|
6699
6701
|
left: true,
|
|
6702
|
+
// left++
|
|
6700
6703
|
right: false
|
|
6701
6704
|
// left--
|
|
6702
6705
|
};
|
|
@@ -7813,7 +7816,6 @@ function isFocusable(element) {
|
|
|
7813
7816
|
return !!element.href && element.rel !== "ignore";
|
|
7814
7817
|
case "INPUT":
|
|
7815
7818
|
return element.type !== "hidden" && element.type !== "file";
|
|
7816
|
-
case "BUTTON":
|
|
7817
7819
|
case "SELECT":
|
|
7818
7820
|
case "TEXTAREA":
|
|
7819
7821
|
return true;
|
|
@@ -7832,8 +7834,8 @@ const FocusTrap = defineComponent({
|
|
|
7832
7834
|
default: true
|
|
7833
7835
|
},
|
|
7834
7836
|
onEsc: Function,
|
|
7835
|
-
initialFocusTo: String,
|
|
7836
|
-
finalFocusTo: String,
|
|
7837
|
+
initialFocusTo: [String, Function],
|
|
7838
|
+
finalFocusTo: [String, Function],
|
|
7837
7839
|
returnFocusOnDeactivated: {
|
|
7838
7840
|
type: Boolean,
|
|
7839
7841
|
default: true
|
|
@@ -10616,6 +10618,7 @@ function self$6(vars) {
|
|
|
10616
10618
|
});
|
|
10617
10619
|
}
|
|
10618
10620
|
const scrollbarLight = {
|
|
10621
|
+
name: "Scrollbar",
|
|
10619
10622
|
common: derived,
|
|
10620
10623
|
self: self$6
|
|
10621
10624
|
};
|
|
@@ -12131,11 +12134,14 @@ function self$5(vars) {
|
|
|
12131
12134
|
boxShadow: boxShadow2
|
|
12132
12135
|
});
|
|
12133
12136
|
}
|
|
12134
|
-
const popoverLight = {
|
|
12137
|
+
const popoverLight = createTheme({
|
|
12135
12138
|
name: "Popover",
|
|
12136
12139
|
common: derived,
|
|
12140
|
+
peers: {
|
|
12141
|
+
Scrollbar: scrollbarLight
|
|
12142
|
+
},
|
|
12137
12143
|
self: self$5
|
|
12138
|
-
};
|
|
12144
|
+
});
|
|
12139
12145
|
const oppositePlacement = {
|
|
12140
12146
|
top: "bottom",
|
|
12141
12147
|
bottom: "top",
|
|
@@ -12355,9 +12361,11 @@ const NPopoverBody = defineComponent({
|
|
|
12355
12361
|
const {
|
|
12356
12362
|
namespaceRef,
|
|
12357
12363
|
mergedClsPrefixRef,
|
|
12358
|
-
inlineThemeDisabled
|
|
12364
|
+
inlineThemeDisabled,
|
|
12365
|
+
mergedRtlRef
|
|
12359
12366
|
} = useConfig(props);
|
|
12360
12367
|
const themeRef = useTheme("Popover", "-popover", style$4, popoverLight, props, mergedClsPrefixRef);
|
|
12368
|
+
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
12361
12369
|
const followerRef = ref(null);
|
|
12362
12370
|
const NPopover2 = inject("NPopover");
|
|
12363
12371
|
const bodyRef = ref(null);
|
|
@@ -12555,6 +12563,8 @@ const NPopoverBody = defineComponent({
|
|
|
12555
12563
|
style: props.contentStyle
|
|
12556
12564
|
}, slots);
|
|
12557
12565
|
const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
|
|
12566
|
+
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
12567
|
+
theme: themeRef.value.peers.Scrollbar,
|
|
12558
12568
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
12559
12569
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
12560
12570
|
}, {
|
|
@@ -12570,7 +12580,7 @@ const NPopoverBody = defineComponent({
|
|
|
12570
12580
|
return [maybeScrollableBody, arrow];
|
|
12571
12581
|
};
|
|
12572
12582
|
contentNode = h("div", mergeProps({
|
|
12573
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
12583
|
+
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
12574
12584
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
12575
12585
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
12576
12586
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -12594,7 +12604,7 @@ const NPopoverBody = defineComponent({
|
|
|
12594
12604
|
// The popover class and overlap class must exists, they will be used
|
|
12595
12605
|
// to place the body & transition animation.
|
|
12596
12606
|
// Shadow class exists for reuse box-shadow.
|
|
12597
|
-
[`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
12607
|
+
[`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
12598
12608
|
bodyRef,
|
|
12599
12609
|
styleRef.value,
|
|
12600
12610
|
handleMouseEnter,
|
|
@@ -15045,7 +15055,8 @@ function self$1(vars) {
|
|
|
15045
15055
|
closeIconColorPressedLoading: closeIconColorPressed,
|
|
15046
15056
|
loadingColor: primaryColor,
|
|
15047
15057
|
lineHeight: lineHeight2,
|
|
15048
|
-
borderRadius
|
|
15058
|
+
borderRadius,
|
|
15059
|
+
border: "0"
|
|
15049
15060
|
});
|
|
15050
15061
|
}
|
|
15051
15062
|
const messageLight = {
|
|
@@ -15096,6 +15107,7 @@ const style = c$1([cB("message-wrapper", `
|
|
|
15096
15107
|
margin-bottom .3s var(--n-bezier);
|
|
15097
15108
|
padding: var(--n-padding);
|
|
15098
15109
|
border-radius: var(--n-border-radius);
|
|
15110
|
+
border: var(--n-border);
|
|
15099
15111
|
flex-wrap: nowrap;
|
|
15100
15112
|
overflow: hidden;
|
|
15101
15113
|
max-width: var(--n-max-width);
|
|
@@ -15214,6 +15226,7 @@ const NMessage = defineComponent({
|
|
|
15214
15226
|
fontSize: fontSize2,
|
|
15215
15227
|
lineHeight: lineHeight2,
|
|
15216
15228
|
borderRadius,
|
|
15229
|
+
border,
|
|
15217
15230
|
iconColorInfo,
|
|
15218
15231
|
iconColorSuccess,
|
|
15219
15232
|
iconColorWarning,
|
|
@@ -15257,7 +15270,8 @@ const NMessage = defineComponent({
|
|
|
15257
15270
|
"--n-close-icon-color-pressed": closeIconColorPressed,
|
|
15258
15271
|
"--n-close-icon-color-hover": closeIconColorHover,
|
|
15259
15272
|
"--n-line-height": lineHeight2,
|
|
15260
|
-
"--n-border-radius": borderRadius
|
|
15273
|
+
"--n-border-radius": borderRadius,
|
|
15274
|
+
"--n-border": border
|
|
15261
15275
|
};
|
|
15262
15276
|
});
|
|
15263
15277
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass("message", computed(() => props.type[0]), cssVarsRef, {}) : void 0;
|
|
@@ -17355,7 +17369,7 @@ const _sfc_main = {
|
|
|
17355
17369
|
__name: "SuperDoc",
|
|
17356
17370
|
emits: ["selection-update"],
|
|
17357
17371
|
setup(__props, { emit: __emit }) {
|
|
17358
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17372
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-_NPRPRHl.es.js"));
|
|
17359
17373
|
const superdocStore = useSuperdocStore();
|
|
17360
17374
|
const commentsStore = useCommentsStore();
|
|
17361
17375
|
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-ly_a915J.cjs");
|
|
3
3
|
const vue = require("./vue-DWle4Cai.cjs");
|
|
4
4
|
const jszip = require("./jszip-b7l8QkfH.cjs");
|
|
5
5
|
const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
|
|
@@ -6624,7 +6624,7 @@ function resolveTo(selector) {
|
|
|
6624
6624
|
if (typeof selector === "string") {
|
|
6625
6625
|
return document.querySelector(selector);
|
|
6626
6626
|
}
|
|
6627
|
-
return selector();
|
|
6627
|
+
return selector() || null;
|
|
6628
6628
|
}
|
|
6629
6629
|
const LazyTeleport = vue.defineComponent({
|
|
6630
6630
|
name: "LazyTeleport",
|
|
@@ -6712,8 +6712,11 @@ const oppositeAlignCssPositionProps = {
|
|
|
6712
6712
|
};
|
|
6713
6713
|
const keepOffsetDirection = {
|
|
6714
6714
|
top: true,
|
|
6715
|
+
// top++
|
|
6715
6716
|
bottom: false,
|
|
6717
|
+
// top--
|
|
6716
6718
|
left: true,
|
|
6719
|
+
// left++
|
|
6717
6720
|
right: false
|
|
6718
6721
|
// left--
|
|
6719
6722
|
};
|
|
@@ -7830,7 +7833,6 @@ function isFocusable(element) {
|
|
|
7830
7833
|
return !!element.href && element.rel !== "ignore";
|
|
7831
7834
|
case "INPUT":
|
|
7832
7835
|
return element.type !== "hidden" && element.type !== "file";
|
|
7833
|
-
case "BUTTON":
|
|
7834
7836
|
case "SELECT":
|
|
7835
7837
|
case "TEXTAREA":
|
|
7836
7838
|
return true;
|
|
@@ -7849,8 +7851,8 @@ const FocusTrap = vue.defineComponent({
|
|
|
7849
7851
|
default: true
|
|
7850
7852
|
},
|
|
7851
7853
|
onEsc: Function,
|
|
7852
|
-
initialFocusTo: String,
|
|
7853
|
-
finalFocusTo: String,
|
|
7854
|
+
initialFocusTo: [String, Function],
|
|
7855
|
+
finalFocusTo: [String, Function],
|
|
7854
7856
|
returnFocusOnDeactivated: {
|
|
7855
7857
|
type: Boolean,
|
|
7856
7858
|
default: true
|
|
@@ -10633,6 +10635,7 @@ function self$6(vars) {
|
|
|
10633
10635
|
});
|
|
10634
10636
|
}
|
|
10635
10637
|
const scrollbarLight = {
|
|
10638
|
+
name: "Scrollbar",
|
|
10636
10639
|
common: derived,
|
|
10637
10640
|
self: self$6
|
|
10638
10641
|
};
|
|
@@ -12148,11 +12151,14 @@ function self$5(vars) {
|
|
|
12148
12151
|
boxShadow: boxShadow2
|
|
12149
12152
|
});
|
|
12150
12153
|
}
|
|
12151
|
-
const popoverLight = {
|
|
12154
|
+
const popoverLight = createTheme({
|
|
12152
12155
|
name: "Popover",
|
|
12153
12156
|
common: derived,
|
|
12157
|
+
peers: {
|
|
12158
|
+
Scrollbar: scrollbarLight
|
|
12159
|
+
},
|
|
12154
12160
|
self: self$5
|
|
12155
|
-
};
|
|
12161
|
+
});
|
|
12156
12162
|
const oppositePlacement = {
|
|
12157
12163
|
top: "bottom",
|
|
12158
12164
|
bottom: "top",
|
|
@@ -12372,9 +12378,11 @@ const NPopoverBody = vue.defineComponent({
|
|
|
12372
12378
|
const {
|
|
12373
12379
|
namespaceRef,
|
|
12374
12380
|
mergedClsPrefixRef,
|
|
12375
|
-
inlineThemeDisabled
|
|
12381
|
+
inlineThemeDisabled,
|
|
12382
|
+
mergedRtlRef
|
|
12376
12383
|
} = useConfig(props);
|
|
12377
12384
|
const themeRef = useTheme("Popover", "-popover", style$4, popoverLight, props, mergedClsPrefixRef);
|
|
12385
|
+
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
12378
12386
|
const followerRef = vue.ref(null);
|
|
12379
12387
|
const NPopover2 = vue.inject("NPopover");
|
|
12380
12388
|
const bodyRef = vue.ref(null);
|
|
@@ -12572,6 +12580,8 @@ const NPopoverBody = vue.defineComponent({
|
|
|
12572
12580
|
style: props.contentStyle
|
|
12573
12581
|
}, slots);
|
|
12574
12582
|
const maybeScrollableBody = props.scrollable ? vue.h(XScrollbar, {
|
|
12583
|
+
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
12584
|
+
theme: themeRef.value.peers.Scrollbar,
|
|
12575
12585
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
12576
12586
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
12577
12587
|
}, {
|
|
@@ -12587,7 +12597,7 @@ const NPopoverBody = vue.defineComponent({
|
|
|
12587
12597
|
return [maybeScrollableBody, arrow];
|
|
12588
12598
|
};
|
|
12589
12599
|
contentNode = vue.h("div", vue.mergeProps({
|
|
12590
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
12600
|
+
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
12591
12601
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
12592
12602
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
12593
12603
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -12611,7 +12621,7 @@ const NPopoverBody = vue.defineComponent({
|
|
|
12611
12621
|
// The popover class and overlap class must exists, they will be used
|
|
12612
12622
|
// to place the body & transition animation.
|
|
12613
12623
|
// Shadow class exists for reuse box-shadow.
|
|
12614
|
-
[`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
12624
|
+
[`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
12615
12625
|
bodyRef,
|
|
12616
12626
|
styleRef.value,
|
|
12617
12627
|
handleMouseEnter,
|
|
@@ -15062,7 +15072,8 @@ function self$1(vars) {
|
|
|
15062
15072
|
closeIconColorPressedLoading: closeIconColorPressed,
|
|
15063
15073
|
loadingColor: primaryColor,
|
|
15064
15074
|
lineHeight: lineHeight2,
|
|
15065
|
-
borderRadius
|
|
15075
|
+
borderRadius,
|
|
15076
|
+
border: "0"
|
|
15066
15077
|
});
|
|
15067
15078
|
}
|
|
15068
15079
|
const messageLight = {
|
|
@@ -15113,6 +15124,7 @@ const style = c$1([cB("message-wrapper", `
|
|
|
15113
15124
|
margin-bottom .3s var(--n-bezier);
|
|
15114
15125
|
padding: var(--n-padding);
|
|
15115
15126
|
border-radius: var(--n-border-radius);
|
|
15127
|
+
border: var(--n-border);
|
|
15116
15128
|
flex-wrap: nowrap;
|
|
15117
15129
|
overflow: hidden;
|
|
15118
15130
|
max-width: var(--n-max-width);
|
|
@@ -15231,6 +15243,7 @@ const NMessage = vue.defineComponent({
|
|
|
15231
15243
|
fontSize: fontSize2,
|
|
15232
15244
|
lineHeight: lineHeight2,
|
|
15233
15245
|
borderRadius,
|
|
15246
|
+
border,
|
|
15234
15247
|
iconColorInfo,
|
|
15235
15248
|
iconColorSuccess,
|
|
15236
15249
|
iconColorWarning,
|
|
@@ -15274,7 +15287,8 @@ const NMessage = vue.defineComponent({
|
|
|
15274
15287
|
"--n-close-icon-color-pressed": closeIconColorPressed,
|
|
15275
15288
|
"--n-close-icon-color-hover": closeIconColorHover,
|
|
15276
15289
|
"--n-line-height": lineHeight2,
|
|
15277
|
-
"--n-border-radius": borderRadius
|
|
15290
|
+
"--n-border-radius": borderRadius,
|
|
15291
|
+
"--n-border": border
|
|
15278
15292
|
};
|
|
15279
15293
|
});
|
|
15280
15294
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass("message", vue.computed(() => props.type[0]), cssVarsRef, {}) : void 0;
|
|
@@ -17372,7 +17386,7 @@ const _sfc_main = {
|
|
|
17372
17386
|
__name: "SuperDoc",
|
|
17373
17387
|
emits: ["selection-update"],
|
|
17374
17388
|
setup(__props, { emit: __emit }) {
|
|
17375
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17389
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-D-erp24R.cjs")));
|
|
17376
17390
|
const superdocStore = useSuperdocStore();
|
|
17377
17391
|
const commentsStore = useCommentsStore();
|
|
17378
17392
|
const {
|
|
@@ -36743,17 +36743,18 @@ class NodeViewDesc extends ViewDesc {
|
|
|
36743
36743
|
}
|
|
36744
36744
|
// Mark this node as being the selected node.
|
|
36745
36745
|
selectNode() {
|
|
36746
|
-
if (this.nodeDOM.nodeType == 1)
|
|
36746
|
+
if (this.nodeDOM.nodeType == 1) {
|
|
36747
36747
|
this.nodeDOM.classList.add("ProseMirror-selectednode");
|
|
36748
|
-
|
|
36749
|
-
|
|
36748
|
+
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
36749
|
+
this.nodeDOM.draggable = true;
|
|
36750
|
+
}
|
|
36750
36751
|
}
|
|
36751
36752
|
// Remove selected node marking from this node.
|
|
36752
36753
|
deselectNode() {
|
|
36753
36754
|
if (this.nodeDOM.nodeType == 1) {
|
|
36754
36755
|
this.nodeDOM.classList.remove("ProseMirror-selectednode");
|
|
36755
36756
|
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
36756
|
-
this.
|
|
36757
|
+
this.nodeDOM.removeAttribute("draggable");
|
|
36757
36758
|
}
|
|
36758
36759
|
}
|
|
36759
36760
|
get domAtom() {
|
|
@@ -38413,7 +38414,7 @@ class MouseDown {
|
|
|
38413
38414
|
}
|
|
38414
38415
|
const target = flushed ? null : event.target;
|
|
38415
38416
|
const targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
38416
|
-
this.target = targetDesc && targetDesc.
|
|
38417
|
+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
38417
38418
|
let { selection } = view.state;
|
|
38418
38419
|
if (event.button == 0 && targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false || selection instanceof NodeSelection && selection.from <= targetPos && selection.to > targetPos)
|
|
38419
38420
|
this.mightDrag = {
|
|
@@ -70221,7 +70222,7 @@ function resolveTo(selector) {
|
|
|
70221
70222
|
if (typeof selector === "string") {
|
|
70222
70223
|
return document.querySelector(selector);
|
|
70223
70224
|
}
|
|
70224
|
-
return selector();
|
|
70225
|
+
return selector() || null;
|
|
70225
70226
|
}
|
|
70226
70227
|
const LazyTeleport = defineComponent({
|
|
70227
70228
|
name: "LazyTeleport",
|
|
@@ -70309,8 +70310,11 @@ const oppositeAlignCssPositionProps = {
|
|
|
70309
70310
|
};
|
|
70310
70311
|
const keepOffsetDirection = {
|
|
70311
70312
|
top: true,
|
|
70313
|
+
// top++
|
|
70312
70314
|
bottom: false,
|
|
70315
|
+
// top--
|
|
70313
70316
|
left: true,
|
|
70317
|
+
// left++
|
|
70314
70318
|
right: false
|
|
70315
70319
|
// left--
|
|
70316
70320
|
};
|
|
@@ -71427,7 +71431,6 @@ function isFocusable(element) {
|
|
|
71427
71431
|
return !!element.href && element.rel !== "ignore";
|
|
71428
71432
|
case "INPUT":
|
|
71429
71433
|
return element.type !== "hidden" && element.type !== "file";
|
|
71430
|
-
case "BUTTON":
|
|
71431
71434
|
case "SELECT":
|
|
71432
71435
|
case "TEXTAREA":
|
|
71433
71436
|
return true;
|
|
@@ -71446,8 +71449,8 @@ const FocusTrap = defineComponent({
|
|
|
71446
71449
|
default: true
|
|
71447
71450
|
},
|
|
71448
71451
|
onEsc: Function,
|
|
71449
|
-
initialFocusTo: String,
|
|
71450
|
-
finalFocusTo: String,
|
|
71452
|
+
initialFocusTo: [String, Function],
|
|
71453
|
+
finalFocusTo: [String, Function],
|
|
71451
71454
|
returnFocusOnDeactivated: {
|
|
71452
71455
|
type: Boolean,
|
|
71453
71456
|
default: true
|
|
@@ -73545,6 +73548,7 @@ function self$6(vars) {
|
|
|
73545
73548
|
});
|
|
73546
73549
|
}
|
|
73547
73550
|
const scrollbarLight = {
|
|
73551
|
+
name: "Scrollbar",
|
|
73548
73552
|
common: derived,
|
|
73549
73553
|
self: self$6
|
|
73550
73554
|
};
|
|
@@ -75060,11 +75064,14 @@ function self$5(vars) {
|
|
|
75060
75064
|
boxShadow: boxShadow2
|
|
75061
75065
|
});
|
|
75062
75066
|
}
|
|
75063
|
-
const popoverLight = {
|
|
75067
|
+
const popoverLight = createTheme({
|
|
75064
75068
|
name: "Popover",
|
|
75065
75069
|
common: derived,
|
|
75070
|
+
peers: {
|
|
75071
|
+
Scrollbar: scrollbarLight
|
|
75072
|
+
},
|
|
75066
75073
|
self: self$5
|
|
75067
|
-
};
|
|
75074
|
+
});
|
|
75068
75075
|
const oppositePlacement = {
|
|
75069
75076
|
top: "bottom",
|
|
75070
75077
|
bottom: "top",
|
|
@@ -75284,9 +75291,11 @@ const NPopoverBody = defineComponent({
|
|
|
75284
75291
|
const {
|
|
75285
75292
|
namespaceRef,
|
|
75286
75293
|
mergedClsPrefixRef,
|
|
75287
|
-
inlineThemeDisabled
|
|
75294
|
+
inlineThemeDisabled,
|
|
75295
|
+
mergedRtlRef
|
|
75288
75296
|
} = useConfig(props);
|
|
75289
75297
|
const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
|
|
75298
|
+
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
75290
75299
|
const followerRef = ref$1(null);
|
|
75291
75300
|
const NPopover2 = inject("NPopover");
|
|
75292
75301
|
const bodyRef = ref$1(null);
|
|
@@ -75484,6 +75493,8 @@ const NPopoverBody = defineComponent({
|
|
|
75484
75493
|
style: props.contentStyle
|
|
75485
75494
|
}, slots);
|
|
75486
75495
|
const maybeScrollableBody = props.scrollable ? h$1(XScrollbar, {
|
|
75496
|
+
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
75497
|
+
theme: themeRef.value.peers.Scrollbar,
|
|
75487
75498
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
75488
75499
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
75489
75500
|
}, {
|
|
@@ -75499,7 +75510,7 @@ const NPopoverBody = defineComponent({
|
|
|
75499
75510
|
return [maybeScrollableBody, arrow2];
|
|
75500
75511
|
};
|
|
75501
75512
|
contentNode = h$1("div", mergeProps({
|
|
75502
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
|
|
75513
|
+
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
|
|
75503
75514
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
75504
75515
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
75505
75516
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -75523,7 +75534,7 @@ const NPopoverBody = defineComponent({
|
|
|
75523
75534
|
// The popover class and overlap class must exists, they will be used
|
|
75524
75535
|
// to place the body & transition animation.
|
|
75525
75536
|
// Shadow class exists for reuse box-shadow.
|
|
75526
|
-
[`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
75537
|
+
[`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
75527
75538
|
bodyRef,
|
|
75528
75539
|
styleRef.value,
|
|
75529
75540
|
handleMouseEnter,
|
|
@@ -36760,17 +36760,18 @@ class NodeViewDesc extends ViewDesc {
|
|
|
36760
36760
|
}
|
|
36761
36761
|
// Mark this node as being the selected node.
|
|
36762
36762
|
selectNode() {
|
|
36763
|
-
if (this.nodeDOM.nodeType == 1)
|
|
36763
|
+
if (this.nodeDOM.nodeType == 1) {
|
|
36764
36764
|
this.nodeDOM.classList.add("ProseMirror-selectednode");
|
|
36765
|
-
|
|
36766
|
-
|
|
36765
|
+
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
36766
|
+
this.nodeDOM.draggable = true;
|
|
36767
|
+
}
|
|
36767
36768
|
}
|
|
36768
36769
|
// Remove selected node marking from this node.
|
|
36769
36770
|
deselectNode() {
|
|
36770
36771
|
if (this.nodeDOM.nodeType == 1) {
|
|
36771
36772
|
this.nodeDOM.classList.remove("ProseMirror-selectednode");
|
|
36772
36773
|
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
36773
|
-
this.
|
|
36774
|
+
this.nodeDOM.removeAttribute("draggable");
|
|
36774
36775
|
}
|
|
36775
36776
|
}
|
|
36776
36777
|
get domAtom() {
|
|
@@ -38430,7 +38431,7 @@ class MouseDown {
|
|
|
38430
38431
|
}
|
|
38431
38432
|
const target = flushed ? null : event.target;
|
|
38432
38433
|
const targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
38433
|
-
this.target = targetDesc && targetDesc.
|
|
38434
|
+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
38434
38435
|
let { selection } = view.state;
|
|
38435
38436
|
if (event.button == 0 && targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false || selection instanceof NodeSelection && selection.from <= targetPos && selection.to > targetPos)
|
|
38436
38437
|
this.mightDrag = {
|
|
@@ -70238,7 +70239,7 @@ function resolveTo(selector) {
|
|
|
70238
70239
|
if (typeof selector === "string") {
|
|
70239
70240
|
return document.querySelector(selector);
|
|
70240
70241
|
}
|
|
70241
|
-
return selector();
|
|
70242
|
+
return selector() || null;
|
|
70242
70243
|
}
|
|
70243
70244
|
const LazyTeleport = vue.defineComponent({
|
|
70244
70245
|
name: "LazyTeleport",
|
|
@@ -70326,8 +70327,11 @@ const oppositeAlignCssPositionProps = {
|
|
|
70326
70327
|
};
|
|
70327
70328
|
const keepOffsetDirection = {
|
|
70328
70329
|
top: true,
|
|
70330
|
+
// top++
|
|
70329
70331
|
bottom: false,
|
|
70332
|
+
// top--
|
|
70330
70333
|
left: true,
|
|
70334
|
+
// left++
|
|
70331
70335
|
right: false
|
|
70332
70336
|
// left--
|
|
70333
70337
|
};
|
|
@@ -71444,7 +71448,6 @@ function isFocusable(element) {
|
|
|
71444
71448
|
return !!element.href && element.rel !== "ignore";
|
|
71445
71449
|
case "INPUT":
|
|
71446
71450
|
return element.type !== "hidden" && element.type !== "file";
|
|
71447
|
-
case "BUTTON":
|
|
71448
71451
|
case "SELECT":
|
|
71449
71452
|
case "TEXTAREA":
|
|
71450
71453
|
return true;
|
|
@@ -71463,8 +71466,8 @@ const FocusTrap = vue.defineComponent({
|
|
|
71463
71466
|
default: true
|
|
71464
71467
|
},
|
|
71465
71468
|
onEsc: Function,
|
|
71466
|
-
initialFocusTo: String,
|
|
71467
|
-
finalFocusTo: String,
|
|
71469
|
+
initialFocusTo: [String, Function],
|
|
71470
|
+
finalFocusTo: [String, Function],
|
|
71468
71471
|
returnFocusOnDeactivated: {
|
|
71469
71472
|
type: Boolean,
|
|
71470
71473
|
default: true
|
|
@@ -73562,6 +73565,7 @@ function self$6(vars) {
|
|
|
73562
73565
|
});
|
|
73563
73566
|
}
|
|
73564
73567
|
const scrollbarLight = {
|
|
73568
|
+
name: "Scrollbar",
|
|
73565
73569
|
common: derived,
|
|
73566
73570
|
self: self$6
|
|
73567
73571
|
};
|
|
@@ -75077,11 +75081,14 @@ function self$5(vars) {
|
|
|
75077
75081
|
boxShadow: boxShadow2
|
|
75078
75082
|
});
|
|
75079
75083
|
}
|
|
75080
|
-
const popoverLight = {
|
|
75084
|
+
const popoverLight = createTheme({
|
|
75081
75085
|
name: "Popover",
|
|
75082
75086
|
common: derived,
|
|
75087
|
+
peers: {
|
|
75088
|
+
Scrollbar: scrollbarLight
|
|
75089
|
+
},
|
|
75083
75090
|
self: self$5
|
|
75084
|
-
};
|
|
75091
|
+
});
|
|
75085
75092
|
const oppositePlacement = {
|
|
75086
75093
|
top: "bottom",
|
|
75087
75094
|
bottom: "top",
|
|
@@ -75301,9 +75308,11 @@ const NPopoverBody = vue.defineComponent({
|
|
|
75301
75308
|
const {
|
|
75302
75309
|
namespaceRef,
|
|
75303
75310
|
mergedClsPrefixRef,
|
|
75304
|
-
inlineThemeDisabled
|
|
75311
|
+
inlineThemeDisabled,
|
|
75312
|
+
mergedRtlRef
|
|
75305
75313
|
} = useConfig(props);
|
|
75306
75314
|
const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
|
|
75315
|
+
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
75307
75316
|
const followerRef = vue.ref(null);
|
|
75308
75317
|
const NPopover2 = vue.inject("NPopover");
|
|
75309
75318
|
const bodyRef = vue.ref(null);
|
|
@@ -75501,6 +75510,8 @@ const NPopoverBody = vue.defineComponent({
|
|
|
75501
75510
|
style: props.contentStyle
|
|
75502
75511
|
}, slots);
|
|
75503
75512
|
const maybeScrollableBody = props.scrollable ? vue.h(XScrollbar, {
|
|
75513
|
+
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
75514
|
+
theme: themeRef.value.peers.Scrollbar,
|
|
75504
75515
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
75505
75516
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
75506
75517
|
}, {
|
|
@@ -75516,7 +75527,7 @@ const NPopoverBody = vue.defineComponent({
|
|
|
75516
75527
|
return [maybeScrollableBody, arrow2];
|
|
75517
75528
|
};
|
|
75518
75529
|
contentNode = vue.h("div", vue.mergeProps({
|
|
75519
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
|
|
75530
|
+
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
|
|
75520
75531
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
75521
75532
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
75522
75533
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -75540,7 +75551,7 @@ const NPopoverBody = vue.defineComponent({
|
|
|
75540
75551
|
// The popover class and overlap class must exists, they will be used
|
|
75541
75552
|
// to place the body & transition animation.
|
|
75542
75553
|
// Shadow class exists for reuse box-shadow.
|
|
75543
|
-
[`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
75554
|
+
[`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
75544
75555
|
bodyRef,
|
|
75545
75556
|
styleRef.value,
|
|
75546
75557
|
handleMouseEnter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AAEH,2EAA2E;AAE3E;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IAwExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA5ED,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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KAAK,IAAI;;;;2BAC3B,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;qBACpC,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;kBACpC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI;;;;2BAClC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI;;;;8BACzC,CAAC,MAAM,EAAE,EAAE,KAAC,GAAA;;;;aACZ,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;wBACP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;;;;;yBAEP,OAAO;;;;WACP,MAAM;;;;eACN,MAAM;;;;cACN,OAAO;;6BA7GQ,eAAe;0BASlB,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE"}
|
|
@@ -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-Brf9NxwA.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-N0dhAC41.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 = {}) {
|
|
@@ -1872,17 +1872,18 @@ class NodeViewDesc extends ViewDesc {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
// Mark this node as being the selected node.
|
|
1874
1874
|
selectNode() {
|
|
1875
|
-
if (this.nodeDOM.nodeType == 1)
|
|
1875
|
+
if (this.nodeDOM.nodeType == 1) {
|
|
1876
1876
|
this.nodeDOM.classList.add("ProseMirror-selectednode");
|
|
1877
|
-
|
|
1878
|
-
|
|
1877
|
+
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
1878
|
+
this.nodeDOM.draggable = true;
|
|
1879
|
+
}
|
|
1879
1880
|
}
|
|
1880
1881
|
// Remove selected node marking from this node.
|
|
1881
1882
|
deselectNode() {
|
|
1882
1883
|
if (this.nodeDOM.nodeType == 1) {
|
|
1883
1884
|
this.nodeDOM.classList.remove("ProseMirror-selectednode");
|
|
1884
1885
|
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
1885
|
-
this.
|
|
1886
|
+
this.nodeDOM.removeAttribute("draggable");
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
1889
|
get domAtom() {
|
|
@@ -3542,7 +3543,7 @@ class MouseDown {
|
|
|
3542
3543
|
}
|
|
3543
3544
|
const target = flushed ? null : event.target;
|
|
3544
3545
|
const targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
3545
|
-
this.target = targetDesc && targetDesc.
|
|
3546
|
+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
3546
3547
|
let { selection } = view.state;
|
|
3547
3548
|
if (event.button == 0 && targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false || selection instanceof NodeSelection && selection.from <= targetPos && selection.to > targetPos)
|
|
3548
3549
|
this.mightDrag = {
|