superdoc 1.0.0-next.9 → 1.0.1
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-C7Wo4VVN.es.js → PdfViewer-DRwVaKAR.es.js} +2 -2
- package/dist/chunks/{PdfViewer-QwjK1Tx6.cjs → PdfViewer-blXLHgB7.cjs} +2 -2
- package/dist/chunks/{eventemitter3-DQmQUge-.cjs → eventemitter3-DIclNhoR.cjs} +1 -1
- package/dist/chunks/{eventemitter3-44XulWQe.es.js → eventemitter3-D_2kqkfV.es.js} +1 -1
- package/dist/chunks/{index-DNIymDRK-CzsYNHvC.cjs → index-BvhLTOBv-BiV5weR9.cjs} +1 -1
- package/dist/chunks/{index-DNIymDRK-BMrUTNeb.es.js → index-BvhLTOBv-BqXHHksu.es.js} +1 -1
- package/dist/chunks/{index-DI2R4qz8.cjs → index-C75YAr6z.cjs} +26 -17
- package/dist/chunks/{index-CfSkb15j.es.js → index-p_DqFX8u.es.js} +26 -17
- package/dist/chunks/{jszip-VP334ufO.es.js → jszip-B690S4j-.es.js} +1 -1
- package/dist/chunks/{jszip-BdEez1WM.cjs → jszip-qHp7FC78.cjs} +1 -1
- package/dist/chunks/{super-editor.es-B42HV1fg.es.js → super-editor.es-DfwLAyUW.es.js} +1671 -353
- package/dist/chunks/{super-editor.es-BI8ByUNm.cjs → super-editor.es-dXHQ_lfB.cjs} +1671 -353
- package/dist/chunks/{vue-BuPTonTJ.es.js → vue-CLFbn_1r.es.js} +209 -185
- package/dist/chunks/{vue-jWLMl8Ts.cjs → vue-gvuFr0vx.cjs} +209 -185
- package/dist/chunks/xml-js-BXUvL-Mz.es.js +2 -0
- package/dist/chunks/xml-js-CCH4ckfW.cjs +3 -0
- package/dist/packages/superdoc/src/helpers/group-changes.d.ts +1 -1
- package/dist/packages/superdoc/src/helpers/group-changes.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-a3CAItrf.js → converter-xC5Gh59u.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BsmzO0LG.js → docx-zipper-BPQOwtye.js} +1 -1
- package/dist/super-editor/chunks/{editor-qn0f9LDg.js → editor-DhCpqM2w.js} +1635 -288
- package/dist/super-editor/chunks/{index-DNIymDRK.js → index-BvhLTOBv.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DW8hTxsF.js → toolbar-iWV3eW-g.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/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +1919 -574
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-Dz51sEbr.cjs +0 -3
- package/dist/chunks/xml-js-LkEmUa9-.es.js +0 -2
|
@@ -163,7 +163,7 @@ process.umask = function() {
|
|
|
163
163
|
var browserExports = browser.exports;
|
|
164
164
|
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
165
165
|
/**
|
|
166
|
-
* @vue/shared v3.5.
|
|
166
|
+
* @vue/shared v3.5.26
|
|
167
167
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
168
168
|
* @license MIT
|
|
169
169
|
**/
|
|
@@ -928,13 +928,13 @@ function addSub(link) {
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
931
|
-
const ITERATE_KEY = Symbol(
|
|
931
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
932
932
|
!!(process$1.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
933
933
|
);
|
|
934
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
934
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
935
935
|
!!(process$1.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
|
|
936
936
|
);
|
|
937
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
937
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
938
938
|
!!(process$1.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
939
939
|
);
|
|
940
940
|
function track(target, type, key) {
|
|
@@ -2878,7 +2878,163 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
2881
|
-
|
|
2881
|
+
function provide(key, value) {
|
|
2882
|
+
if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
2883
|
+
if (!currentInstance || currentInstance.isMounted) {
|
|
2884
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
if (currentInstance) {
|
|
2888
|
+
let provides = currentInstance.provides;
|
|
2889
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
2890
|
+
if (parentProvides === provides) {
|
|
2891
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
2892
|
+
}
|
|
2893
|
+
provides[key] = value;
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
2897
|
+
const instance = getCurrentInstance();
|
|
2898
|
+
if (instance || currentApp) {
|
|
2899
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
2900
|
+
if (provides && key in provides) {
|
|
2901
|
+
return provides[key];
|
|
2902
|
+
} else if (arguments.length > 1) {
|
|
2903
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
2904
|
+
} else if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
2905
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
2906
|
+
}
|
|
2907
|
+
} else if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
2908
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
function hasInjectionContext() {
|
|
2912
|
+
return !!(getCurrentInstance() || currentApp);
|
|
2913
|
+
}
|
|
2914
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
2915
|
+
const useSSRContext = () => {
|
|
2916
|
+
{
|
|
2917
|
+
const ctx = inject(ssrContextKey);
|
|
2918
|
+
if (!ctx) {
|
|
2919
|
+
!!(process$1.env.NODE_ENV !== "production") && warn$1(
|
|
2920
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
2921
|
+
);
|
|
2922
|
+
}
|
|
2923
|
+
return ctx;
|
|
2924
|
+
}
|
|
2925
|
+
};
|
|
2926
|
+
function watchEffect(effect2, options) {
|
|
2927
|
+
return doWatch(effect2, null, options);
|
|
2928
|
+
}
|
|
2929
|
+
function watch(source, cb, options) {
|
|
2930
|
+
if (!!(process$1.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
2931
|
+
warn$1(
|
|
2932
|
+
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
2933
|
+
);
|
|
2934
|
+
}
|
|
2935
|
+
return doWatch(source, cb, options);
|
|
2936
|
+
}
|
|
2937
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
2938
|
+
const { immediate, deep, flush, once } = options;
|
|
2939
|
+
if (!!(process$1.env.NODE_ENV !== "production") && !cb) {
|
|
2940
|
+
if (immediate !== void 0) {
|
|
2941
|
+
warn$1(
|
|
2942
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
2943
|
+
);
|
|
2944
|
+
}
|
|
2945
|
+
if (deep !== void 0) {
|
|
2946
|
+
warn$1(
|
|
2947
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
2948
|
+
);
|
|
2949
|
+
}
|
|
2950
|
+
if (once !== void 0) {
|
|
2951
|
+
warn$1(
|
|
2952
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
2953
|
+
);
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
const baseWatchOptions = extend({}, options);
|
|
2957
|
+
if (!!(process$1.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
|
|
2958
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
2959
|
+
let ssrCleanup;
|
|
2960
|
+
if (isInSSRComponentSetup) {
|
|
2961
|
+
if (flush === "sync") {
|
|
2962
|
+
const ctx = useSSRContext();
|
|
2963
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
2964
|
+
} else if (!runsImmediately) {
|
|
2965
|
+
const watchStopHandle = () => {
|
|
2966
|
+
};
|
|
2967
|
+
watchStopHandle.stop = NOOP;
|
|
2968
|
+
watchStopHandle.resume = NOOP;
|
|
2969
|
+
watchStopHandle.pause = NOOP;
|
|
2970
|
+
return watchStopHandle;
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
const instance = currentInstance;
|
|
2974
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
2975
|
+
let isPre = false;
|
|
2976
|
+
if (flush === "post") {
|
|
2977
|
+
baseWatchOptions.scheduler = (job) => {
|
|
2978
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
2979
|
+
};
|
|
2980
|
+
} else if (flush !== "sync") {
|
|
2981
|
+
isPre = true;
|
|
2982
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
2983
|
+
if (isFirstRun) {
|
|
2984
|
+
job();
|
|
2985
|
+
} else {
|
|
2986
|
+
queueJob(job);
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
2991
|
+
if (cb) {
|
|
2992
|
+
job.flags |= 4;
|
|
2993
|
+
}
|
|
2994
|
+
if (isPre) {
|
|
2995
|
+
job.flags |= 2;
|
|
2996
|
+
if (instance) {
|
|
2997
|
+
job.id = instance.uid;
|
|
2998
|
+
job.i = instance;
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
};
|
|
3002
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
3003
|
+
if (isInSSRComponentSetup) {
|
|
3004
|
+
if (ssrCleanup) {
|
|
3005
|
+
ssrCleanup.push(watchHandle);
|
|
3006
|
+
} else if (runsImmediately) {
|
|
3007
|
+
watchHandle();
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
return watchHandle;
|
|
3011
|
+
}
|
|
3012
|
+
function instanceWatch(source, value, options) {
|
|
3013
|
+
const publicThis = this.proxy;
|
|
3014
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3015
|
+
let cb;
|
|
3016
|
+
if (isFunction(value)) {
|
|
3017
|
+
cb = value;
|
|
3018
|
+
} else {
|
|
3019
|
+
cb = value.handler;
|
|
3020
|
+
options = value;
|
|
3021
|
+
}
|
|
3022
|
+
const reset = setCurrentInstance(this);
|
|
3023
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3024
|
+
reset();
|
|
3025
|
+
return res;
|
|
3026
|
+
}
|
|
3027
|
+
function createPathGetter(ctx, path) {
|
|
3028
|
+
const segments = path.split(".");
|
|
3029
|
+
return () => {
|
|
3030
|
+
let cur = ctx;
|
|
3031
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3032
|
+
cur = cur[segments[i]];
|
|
3033
|
+
}
|
|
3034
|
+
return cur;
|
|
3035
|
+
};
|
|
3036
|
+
}
|
|
3037
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
2882
3038
|
const isTeleport = (type) => type.__isTeleport;
|
|
2883
3039
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
2884
3040
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3237,8 +3393,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
3237
3393
|
}
|
|
3238
3394
|
return targetAnchor;
|
|
3239
3395
|
}
|
|
3240
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3241
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
3396
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
3397
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3242
3398
|
function useTransitionState() {
|
|
3243
3399
|
const state = {
|
|
3244
3400
|
isMounted: false,
|
|
@@ -4024,7 +4180,7 @@ function onErrorCaptured(hook, target = currentInstance) {
|
|
|
4024
4180
|
}
|
|
4025
4181
|
const COMPONENTS = "components";
|
|
4026
4182
|
const DIRECTIVES = "directives";
|
|
4027
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4183
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
4028
4184
|
function resolveDynamicComponent(component) {
|
|
4029
4185
|
if (isString(component)) {
|
|
4030
4186
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -5017,162 +5173,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5017
5173
|
};
|
|
5018
5174
|
}
|
|
5019
5175
|
let currentApp = null;
|
|
5020
|
-
function provide(key, value) {
|
|
5021
|
-
if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
5022
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
5023
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
5024
|
-
}
|
|
5025
|
-
}
|
|
5026
|
-
if (currentInstance) {
|
|
5027
|
-
let provides = currentInstance.provides;
|
|
5028
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
5029
|
-
if (parentProvides === provides) {
|
|
5030
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
5031
|
-
}
|
|
5032
|
-
provides[key] = value;
|
|
5033
|
-
}
|
|
5034
|
-
}
|
|
5035
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
5036
|
-
const instance = getCurrentInstance();
|
|
5037
|
-
if (instance || currentApp) {
|
|
5038
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
5039
|
-
if (provides && key in provides) {
|
|
5040
|
-
return provides[key];
|
|
5041
|
-
} else if (arguments.length > 1) {
|
|
5042
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
5043
|
-
} else if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
5044
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
5045
|
-
}
|
|
5046
|
-
} else if (!!(process$1.env.NODE_ENV !== "production")) {
|
|
5047
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
5048
|
-
}
|
|
5049
|
-
}
|
|
5050
|
-
function hasInjectionContext() {
|
|
5051
|
-
return !!(getCurrentInstance() || currentApp);
|
|
5052
|
-
}
|
|
5053
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
5054
|
-
const useSSRContext = () => {
|
|
5055
|
-
{
|
|
5056
|
-
const ctx = inject(ssrContextKey);
|
|
5057
|
-
if (!ctx) {
|
|
5058
|
-
!!(process$1.env.NODE_ENV !== "production") && warn$1(
|
|
5059
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
5060
|
-
);
|
|
5061
|
-
}
|
|
5062
|
-
return ctx;
|
|
5063
|
-
}
|
|
5064
|
-
};
|
|
5065
|
-
function watchEffect(effect2, options) {
|
|
5066
|
-
return doWatch(effect2, null, options);
|
|
5067
|
-
}
|
|
5068
|
-
function watch(source, cb, options) {
|
|
5069
|
-
if (!!(process$1.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
5070
|
-
warn$1(
|
|
5071
|
-
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
5072
|
-
);
|
|
5073
|
-
}
|
|
5074
|
-
return doWatch(source, cb, options);
|
|
5075
|
-
}
|
|
5076
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
5077
|
-
const { immediate, deep, flush, once } = options;
|
|
5078
|
-
if (!!(process$1.env.NODE_ENV !== "production") && !cb) {
|
|
5079
|
-
if (immediate !== void 0) {
|
|
5080
|
-
warn$1(
|
|
5081
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
5082
|
-
);
|
|
5083
|
-
}
|
|
5084
|
-
if (deep !== void 0) {
|
|
5085
|
-
warn$1(
|
|
5086
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
5087
|
-
);
|
|
5088
|
-
}
|
|
5089
|
-
if (once !== void 0) {
|
|
5090
|
-
warn$1(
|
|
5091
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
5092
|
-
);
|
|
5093
|
-
}
|
|
5094
|
-
}
|
|
5095
|
-
const baseWatchOptions = extend({}, options);
|
|
5096
|
-
if (!!(process$1.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
|
|
5097
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
5098
|
-
let ssrCleanup;
|
|
5099
|
-
if (isInSSRComponentSetup) {
|
|
5100
|
-
if (flush === "sync") {
|
|
5101
|
-
const ctx = useSSRContext();
|
|
5102
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
5103
|
-
} else if (!runsImmediately) {
|
|
5104
|
-
const watchStopHandle = () => {
|
|
5105
|
-
};
|
|
5106
|
-
watchStopHandle.stop = NOOP;
|
|
5107
|
-
watchStopHandle.resume = NOOP;
|
|
5108
|
-
watchStopHandle.pause = NOOP;
|
|
5109
|
-
return watchStopHandle;
|
|
5110
|
-
}
|
|
5111
|
-
}
|
|
5112
|
-
const instance = currentInstance;
|
|
5113
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
5114
|
-
let isPre = false;
|
|
5115
|
-
if (flush === "post") {
|
|
5116
|
-
baseWatchOptions.scheduler = (job) => {
|
|
5117
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
5118
|
-
};
|
|
5119
|
-
} else if (flush !== "sync") {
|
|
5120
|
-
isPre = true;
|
|
5121
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
5122
|
-
if (isFirstRun) {
|
|
5123
|
-
job();
|
|
5124
|
-
} else {
|
|
5125
|
-
queueJob(job);
|
|
5126
|
-
}
|
|
5127
|
-
};
|
|
5128
|
-
}
|
|
5129
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
5130
|
-
if (cb) {
|
|
5131
|
-
job.flags |= 4;
|
|
5132
|
-
}
|
|
5133
|
-
if (isPre) {
|
|
5134
|
-
job.flags |= 2;
|
|
5135
|
-
if (instance) {
|
|
5136
|
-
job.id = instance.uid;
|
|
5137
|
-
job.i = instance;
|
|
5138
|
-
}
|
|
5139
|
-
}
|
|
5140
|
-
};
|
|
5141
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
5142
|
-
if (isInSSRComponentSetup) {
|
|
5143
|
-
if (ssrCleanup) {
|
|
5144
|
-
ssrCleanup.push(watchHandle);
|
|
5145
|
-
} else if (runsImmediately) {
|
|
5146
|
-
watchHandle();
|
|
5147
|
-
}
|
|
5148
|
-
}
|
|
5149
|
-
return watchHandle;
|
|
5150
|
-
}
|
|
5151
|
-
function instanceWatch(source, value, options) {
|
|
5152
|
-
const publicThis = this.proxy;
|
|
5153
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
5154
|
-
let cb;
|
|
5155
|
-
if (isFunction(value)) {
|
|
5156
|
-
cb = value;
|
|
5157
|
-
} else {
|
|
5158
|
-
cb = value.handler;
|
|
5159
|
-
options = value;
|
|
5160
|
-
}
|
|
5161
|
-
const reset = setCurrentInstance(this);
|
|
5162
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
5163
|
-
reset();
|
|
5164
|
-
return res;
|
|
5165
|
-
}
|
|
5166
|
-
function createPathGetter(ctx, path) {
|
|
5167
|
-
const segments = path.split(".");
|
|
5168
|
-
return () => {
|
|
5169
|
-
let cur = ctx;
|
|
5170
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
5171
|
-
cur = cur[segments[i]];
|
|
5172
|
-
}
|
|
5173
|
-
return cur;
|
|
5174
|
-
};
|
|
5175
|
-
}
|
|
5176
5176
|
const getModelModifiers = (props, modelName) => {
|
|
5177
5177
|
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
5178
5178
|
};
|
|
@@ -6308,7 +6308,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6308
6308
|
} else {
|
|
6309
6309
|
const el = n2.el = n1.el;
|
|
6310
6310
|
if (n2.children !== n1.children) {
|
|
6311
|
-
|
|
6311
|
+
if (!!(process$1.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
6312
|
+
const childNodes = container.childNodes;
|
|
6313
|
+
const newChild = hostCreateText(n2.children);
|
|
6314
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
6315
|
+
hostInsert(newChild, container, oldChild);
|
|
6316
|
+
hostRemove(oldChild);
|
|
6317
|
+
} else {
|
|
6318
|
+
hostSetText(el, n2.children);
|
|
6319
|
+
}
|
|
6312
6320
|
}
|
|
6313
6321
|
}
|
|
6314
6322
|
};
|
|
@@ -6692,7 +6700,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6692
6700
|
} else {
|
|
6693
6701
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
6694
6702
|
// of renderSlot() with no valid children
|
|
6695
|
-
n1.dynamicChildren) {
|
|
6703
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
6696
6704
|
patchBlockChildren(
|
|
6697
6705
|
n1.dynamicChildren,
|
|
6698
6706
|
dynamicChildren,
|
|
@@ -7262,8 +7270,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7262
7270
|
const nextChild = c2[nextIndex];
|
|
7263
7271
|
const anchorVNode = c2[nextIndex + 1];
|
|
7264
7272
|
const anchor = nextIndex + 1 < l2 ? (
|
|
7265
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
7266
|
-
anchorVNode.el || anchorVNode
|
|
7273
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
7274
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
7267
7275
|
) : parentAnchor;
|
|
7268
7276
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
7269
7277
|
patch(
|
|
@@ -7519,9 +7527,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7519
7527
|
};
|
|
7520
7528
|
let isFlushing = false;
|
|
7521
7529
|
const render = (vnode, container, namespace) => {
|
|
7530
|
+
let instance;
|
|
7522
7531
|
if (vnode == null) {
|
|
7523
7532
|
if (container._vnode) {
|
|
7524
7533
|
unmount(container._vnode, null, null, true);
|
|
7534
|
+
instance = container._vnode.component;
|
|
7525
7535
|
}
|
|
7526
7536
|
} else {
|
|
7527
7537
|
patch(
|
|
@@ -7537,7 +7547,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7537
7547
|
container._vnode = vnode;
|
|
7538
7548
|
if (!isFlushing) {
|
|
7539
7549
|
isFlushing = true;
|
|
7540
|
-
flushPreFlushCbs();
|
|
7550
|
+
flushPreFlushCbs(instance);
|
|
7541
7551
|
flushPostFlushCbs();
|
|
7542
7552
|
isFlushing = false;
|
|
7543
7553
|
}
|
|
@@ -7591,9 +7601,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
7591
7601
|
if (!shallow && c2.patchFlag !== -2)
|
|
7592
7602
|
traverseStaticChildren(c1, c2);
|
|
7593
7603
|
}
|
|
7594
|
-
if (c2.type === Text
|
|
7595
|
-
|
|
7596
|
-
|
|
7604
|
+
if (c2.type === Text) {
|
|
7605
|
+
if (c2.patchFlag !== -1) {
|
|
7606
|
+
c2.el = c1.el;
|
|
7607
|
+
} else {
|
|
7608
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
7609
|
+
(n1.type === Fragment ? 1 : 0);
|
|
7610
|
+
}
|
|
7597
7611
|
}
|
|
7598
7612
|
if (c2.type === Comment && !c2.el) {
|
|
7599
7613
|
c2.el = c1.el;
|
|
@@ -7660,6 +7674,16 @@ function invalidateMount(hooks) {
|
|
|
7660
7674
|
hooks[i].flags |= 8;
|
|
7661
7675
|
}
|
|
7662
7676
|
}
|
|
7677
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
7678
|
+
if (anchorVnode.placeholder) {
|
|
7679
|
+
return anchorVnode.placeholder;
|
|
7680
|
+
}
|
|
7681
|
+
const instance = anchorVnode.component;
|
|
7682
|
+
if (instance) {
|
|
7683
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
7684
|
+
}
|
|
7685
|
+
return null;
|
|
7686
|
+
}
|
|
7663
7687
|
const isSuspense = (type) => type.__isSuspense;
|
|
7664
7688
|
function queueEffectWithSuspense(fn, suspense) {
|
|
7665
7689
|
if (suspense && suspense.pendingBranch) {
|
|
@@ -7672,10 +7696,10 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
7672
7696
|
queuePostFlushCb(fn);
|
|
7673
7697
|
}
|
|
7674
7698
|
}
|
|
7675
|
-
const Fragment = Symbol.for("v-fgt");
|
|
7676
|
-
const Text = Symbol.for("v-txt");
|
|
7677
|
-
const Comment = Symbol.for("v-cmt");
|
|
7678
|
-
const Static = Symbol.for("v-stc");
|
|
7699
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
7700
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
7701
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
7702
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
7679
7703
|
const blockStack = [];
|
|
7680
7704
|
let currentBlock = null;
|
|
7681
7705
|
function openBlock(disableTracking = false) {
|
|
@@ -8656,7 +8680,7 @@ function initCustomFormatter() {
|
|
|
8656
8680
|
window.devtoolsFormatters = [formatter];
|
|
8657
8681
|
}
|
|
8658
8682
|
}
|
|
8659
|
-
const version = "3.5.
|
|
8683
|
+
const version = "3.5.26";
|
|
8660
8684
|
const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8661
8685
|
!!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
8662
8686
|
!!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
@@ -8742,7 +8766,7 @@ const nodeOps = {
|
|
|
8742
8766
|
};
|
|
8743
8767
|
const TRANSITION = "transition";
|
|
8744
8768
|
const ANIMATION = "animation";
|
|
8745
|
-
const vtcKey = Symbol("_vtc");
|
|
8769
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
8746
8770
|
const DOMTransitionPropsValidators = {
|
|
8747
8771
|
name: String,
|
|
8748
8772
|
type: String,
|
|
@@ -9033,8 +9057,8 @@ function patchClass(el, value, isSVG) {
|
|
|
9033
9057
|
el.className = value;
|
|
9034
9058
|
}
|
|
9035
9059
|
}
|
|
9036
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
9037
|
-
const vShowHidden = Symbol("_vsh");
|
|
9060
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
9061
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
9038
9062
|
const vShow = {
|
|
9039
9063
|
// used for prop mismatch check during hydration
|
|
9040
9064
|
name: "show",
|
|
@@ -9075,7 +9099,7 @@ function setDisplay(el, value) {
|
|
|
9075
9099
|
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
9076
9100
|
el[vShowHidden] = !value;
|
|
9077
9101
|
}
|
|
9078
|
-
const CSS_VAR_TEXT = Symbol(!!(process$1.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
9102
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol(!!(process$1.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
9079
9103
|
function useCssVars(getter) {
|
|
9080
9104
|
const instance = getCurrentInstance();
|
|
9081
9105
|
if (!instance) {
|
|
@@ -9321,7 +9345,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
9321
9345
|
function removeEventListener(el, event, handler, options) {
|
|
9322
9346
|
el.removeEventListener(event, handler, options);
|
|
9323
9347
|
}
|
|
9324
|
-
const veiKey = Symbol("_vei");
|
|
9348
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
9325
9349
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
9326
9350
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
9327
9351
|
const existingInvoker = invokers[rawName];
|
|
@@ -9469,8 +9493,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
9469
9493
|
}
|
|
9470
9494
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
9471
9495
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
9472
|
-
const moveCbKey = Symbol("_moveCb");
|
|
9473
|
-
const enterCbKey = Symbol("_enterCb");
|
|
9496
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
9497
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
9474
9498
|
const decorate = (t) => {
|
|
9475
9499
|
delete t.props.mode;
|
|
9476
9500
|
return t;
|
|
@@ -9622,7 +9646,7 @@ function onCompositionEnd(e) {
|
|
|
9622
9646
|
target.dispatchEvent(new Event("input"));
|
|
9623
9647
|
}
|
|
9624
9648
|
}
|
|
9625
|
-
const assignKey = Symbol("_assign");
|
|
9649
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
9626
9650
|
function castValue(value, trim, number) {
|
|
9627
9651
|
if (trim) value = value.trim();
|
|
9628
9652
|
if (number) value = looseToNumber(value);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function groupChanges(changes
|
|
1
|
+
export function groupChanges(changes?: any[]): any[];
|
|
2
2
|
//# sourceMappingURL=group-changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-changes.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/group-changes.js"],"names":[],"mappings":"AAQO,
|
|
1
|
+
{"version":3,"file":"group-changes.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/group-changes.js"],"names":[],"mappings":"AAQO,qDAmCN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-xC5Gh59u.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-DhCpqM2w.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 = {}) {
|
|
@@ -42727,7 +42727,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
42727
42727
|
static getStoredSuperdocVersion(docx) {
|
|
42728
42728
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42729
42729
|
}
|
|
42730
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.
|
|
42730
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.1") {
|
|
42731
42731
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
42732
42732
|
}
|
|
42733
42733
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-xC5Gh59u.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|