@harbour-enterprises/superdoc 0.13.0-RC2 → 0.13.0-RC3
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/{index-SKpROzLW.es.js → index-CIbdIyV7.es.js} +2 -2
- package/dist/chunks/{index-B1MhwjTC.cjs → index-DRXYX6Gk.cjs} +2 -2
- package/dist/chunks/{index-CMBtuT02.cjs → index-DiSsZq2e.cjs} +1 -1
- package/dist/chunks/{index-BrSjd1Id.es.js → index-xoeJtm87.es.js} +1 -1
- package/dist/chunks/{super-editor.es-B6M3d3ew.es.js → super-editor.es-BNfBtek_.es.js} +4 -9
- package/dist/chunks/{super-editor.es-CG_E8Uh1.cjs → super-editor.es-CzkFh6x_.cjs} +4 -9
- package/dist/chunks/{url-CAZQTNP3.es.js → url-BYg6oUon.es.js} +1 -1
- package/dist/chunks/{url-DuggQ5JR.cjs → url-DCj-FtDL.cjs} +1 -1
- package/dist/chunks/{xml-js-B7Vccv2s.cjs → xml-js-DJKwJc1u.cjs} +79 -100
- package/dist/chunks/{xml-js-BV-kCPOA.es.js → xml-js-Dua_oPCO.es.js} +79 -100
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DdMoUfYl.js → converter-BbSSdo_p.js} +3 -8
- package/dist/super-editor/chunks/{docx-zipper-CaPhHWh0.js → docx-zipper-8FbwdMJc.js} +1 -1
- package/dist/super-editor/chunks/{editor-DfrK7LO9.js → editor-CnYTUN7K.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-h35AzYvu.js → toolbar-DtAngH6V.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +3 -3
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +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 +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +5 -10
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-BmWWPxfF.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-IIIZMHTg.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-Dua_oPCO.es.js";
|
|
4
|
+
import { u as url } from "./url-BYg6oUon.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-Bwu_om3F.cjs");
|
|
3
3
|
const vue = require("./vue-DPZkajuO.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-DJKwJc1u.cjs");
|
|
5
|
+
const url = require("./url-DCj-FtDL.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-BmWWPxfF.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-CIbdIyV7.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -21897,12 +21897,7 @@ const getParagraphIndent = (node2, docx, styleId = "") => {
|
|
|
21897
21897
|
return indent;
|
|
21898
21898
|
};
|
|
21899
21899
|
const getParagraphSpacing = (node2, docx, styleId = "", marks = []) => {
|
|
21900
|
-
const spacing = {
|
|
21901
|
-
lineSpaceAfter: 0,
|
|
21902
|
-
lineSpaceBefore: 0,
|
|
21903
|
-
line: 0,
|
|
21904
|
-
lineRule: null
|
|
21905
|
-
};
|
|
21900
|
+
const spacing = {};
|
|
21906
21901
|
const { spacing: pDefaultSpacing = {} } = getDefaultParagraphStyle(docx, styleId);
|
|
21907
21902
|
let lineSpaceAfter, lineSpaceBefore, line, lineRuleStyle;
|
|
21908
21903
|
const pPr = node2.elements?.find((el) => el.name === "w:pPr");
|
|
@@ -23153,7 +23148,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23153
23148
|
return;
|
|
23154
23149
|
}
|
|
23155
23150
|
}
|
|
23156
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-
|
|
23151
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-RC3") {
|
|
23157
23152
|
const customLocation = "docProps/custom.xml";
|
|
23158
23153
|
if (!docx[customLocation]) {
|
|
23159
23154
|
docx[customLocation] = generateCustomXml();
|
|
@@ -23620,7 +23615,7 @@ function storeSuperdocVersion(docx) {
|
|
|
23620
23615
|
function generateCustomXml() {
|
|
23621
23616
|
return DEFAULT_CUSTOM_XML;
|
|
23622
23617
|
}
|
|
23623
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.0-
|
|
23618
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.0-RC3") {
|
|
23624
23619
|
return {
|
|
23625
23620
|
type: "element",
|
|
23626
23621
|
name: "property",
|
|
@@ -41043,7 +41038,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41043
41038
|
* @returns {Object | void} Migration results
|
|
41044
41039
|
*/
|
|
41045
41040
|
processCollaborationMigrations() {
|
|
41046
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.0-
|
|
41041
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.0-RC3");
|
|
41047
41042
|
if (!this.options.ydoc) return;
|
|
41048
41043
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41049
41044
|
let docVersion = metaMap.get("version");
|
|
@@ -21914,12 +21914,7 @@ const getParagraphIndent = (node2, docx, styleId = "") => {
|
|
|
21914
21914
|
return indent;
|
|
21915
21915
|
};
|
|
21916
21916
|
const getParagraphSpacing = (node2, docx, styleId = "", marks = []) => {
|
|
21917
|
-
const spacing = {
|
|
21918
|
-
lineSpaceAfter: 0,
|
|
21919
|
-
lineSpaceBefore: 0,
|
|
21920
|
-
line: 0,
|
|
21921
|
-
lineRule: null
|
|
21922
|
-
};
|
|
21917
|
+
const spacing = {};
|
|
21923
21918
|
const { spacing: pDefaultSpacing = {} } = getDefaultParagraphStyle(docx, styleId);
|
|
21924
21919
|
let lineSpaceAfter, lineSpaceBefore, line, lineRuleStyle;
|
|
21925
21920
|
const pPr = node2.elements?.find((el) => el.name === "w:pPr");
|
|
@@ -23170,7 +23165,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23170
23165
|
return;
|
|
23171
23166
|
}
|
|
23172
23167
|
}
|
|
23173
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-
|
|
23168
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-RC3") {
|
|
23174
23169
|
const customLocation = "docProps/custom.xml";
|
|
23175
23170
|
if (!docx[customLocation]) {
|
|
23176
23171
|
docx[customLocation] = generateCustomXml();
|
|
@@ -23637,7 +23632,7 @@ function storeSuperdocVersion(docx) {
|
|
|
23637
23632
|
function generateCustomXml() {
|
|
23638
23633
|
return DEFAULT_CUSTOM_XML;
|
|
23639
23634
|
}
|
|
23640
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.0-
|
|
23635
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.0-RC3") {
|
|
23641
23636
|
return {
|
|
23642
23637
|
type: "element",
|
|
23643
23638
|
name: "property",
|
|
@@ -41060,7 +41055,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41060
41055
|
* @returns {Object | void} Migration results
|
|
41061
41056
|
*/
|
|
41062
41057
|
processCollaborationMigrations() {
|
|
41063
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.0-
|
|
41058
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.0-RC3");
|
|
41064
41059
|
if (!this.options.ydoc) return;
|
|
41065
41060
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41066
41061
|
let docVersion = metaMap.get("version");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-BmWWPxfF.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-Dua_oPCO.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-Bwu_om3F.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-DJKwJc1u.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -457,7 +457,7 @@ var type = TypeError;
|
|
|
457
457
|
var uri = URIError;
|
|
458
458
|
var abs$1 = Math.abs;
|
|
459
459
|
var floor$1 = Math.floor;
|
|
460
|
-
var max$
|
|
460
|
+
var max$2 = Math.max;
|
|
461
461
|
var min$1 = Math.min;
|
|
462
462
|
var pow$1 = Math.pow;
|
|
463
463
|
var round$1 = Math.round;
|
|
@@ -517,99 +517,78 @@ function requireHasSymbols() {
|
|
|
517
517
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
518
|
var $Object$2 = esObjectAtoms;
|
|
519
519
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
520
|
-
var
|
|
521
|
-
var
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
var str = "";
|
|
548
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
549
|
-
str += arr[i];
|
|
550
|
-
if (i + 1 < arr.length) {
|
|
551
|
-
str += joiner;
|
|
552
|
-
}
|
|
520
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
521
|
+
var toStr$3 = Object.prototype.toString;
|
|
522
|
+
var max$1 = Math.max;
|
|
523
|
+
var funcType = "[object Function]";
|
|
524
|
+
var concatty = function concatty2(a, b) {
|
|
525
|
+
var arr = [];
|
|
526
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
527
|
+
arr[i] = a[i];
|
|
528
|
+
}
|
|
529
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
530
|
+
arr[j + a.length] = b[j];
|
|
531
|
+
}
|
|
532
|
+
return arr;
|
|
533
|
+
};
|
|
534
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
535
|
+
var arr = [];
|
|
536
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
537
|
+
arr[j] = arrLike[i];
|
|
538
|
+
}
|
|
539
|
+
return arr;
|
|
540
|
+
};
|
|
541
|
+
var joiny = function(arr, joiner) {
|
|
542
|
+
var str = "";
|
|
543
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
544
|
+
str += arr[i];
|
|
545
|
+
if (i + 1 < arr.length) {
|
|
546
|
+
str += joiner;
|
|
553
547
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
);
|
|
569
|
-
if (Object(result) === result) {
|
|
570
|
-
return result;
|
|
571
|
-
}
|
|
572
|
-
return this;
|
|
573
|
-
}
|
|
574
|
-
return target.apply(
|
|
575
|
-
that,
|
|
548
|
+
}
|
|
549
|
+
return str;
|
|
550
|
+
};
|
|
551
|
+
var implementation$1 = function bind(that) {
|
|
552
|
+
var target = this;
|
|
553
|
+
if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
|
|
554
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
555
|
+
}
|
|
556
|
+
var args = slicy(arguments, 1);
|
|
557
|
+
var bound;
|
|
558
|
+
var binder = function() {
|
|
559
|
+
if (this instanceof bound) {
|
|
560
|
+
var result = target.apply(
|
|
561
|
+
this,
|
|
576
562
|
concatty(args, arguments)
|
|
577
563
|
);
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
boundArgs[i] = "$" + i;
|
|
583
|
-
}
|
|
584
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
585
|
-
if (target.prototype) {
|
|
586
|
-
var Empty = function Empty2() {
|
|
587
|
-
};
|
|
588
|
-
Empty.prototype = target.prototype;
|
|
589
|
-
bound.prototype = new Empty();
|
|
590
|
-
Empty.prototype = null;
|
|
564
|
+
if (Object(result) === result) {
|
|
565
|
+
return result;
|
|
566
|
+
}
|
|
567
|
+
return this;
|
|
591
568
|
}
|
|
592
|
-
return
|
|
569
|
+
return target.apply(
|
|
570
|
+
that,
|
|
571
|
+
concatty(args, arguments)
|
|
572
|
+
);
|
|
593
573
|
};
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
574
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
575
|
+
var boundArgs = [];
|
|
576
|
+
for (var i = 0; i < boundLength; i++) {
|
|
577
|
+
boundArgs[i] = "$" + i;
|
|
578
|
+
}
|
|
579
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
580
|
+
if (target.prototype) {
|
|
581
|
+
var Empty = function Empty2() {
|
|
582
|
+
};
|
|
583
|
+
Empty.prototype = target.prototype;
|
|
584
|
+
bound.prototype = new Empty();
|
|
585
|
+
Empty.prototype = null;
|
|
586
|
+
}
|
|
587
|
+
return bound;
|
|
588
|
+
};
|
|
589
|
+
var implementation = implementation$1;
|
|
590
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
591
|
+
var functionCall = Function.prototype.call;
|
|
613
592
|
var functionApply;
|
|
614
593
|
var hasRequiredFunctionApply;
|
|
615
594
|
function requireFunctionApply() {
|
|
@@ -619,14 +598,14 @@ function requireFunctionApply() {
|
|
|
619
598
|
return functionApply;
|
|
620
599
|
}
|
|
621
600
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
622
|
-
var bind$3 =
|
|
601
|
+
var bind$3 = functionBind;
|
|
623
602
|
var $apply$2 = requireFunctionApply();
|
|
624
|
-
var $call$2 =
|
|
603
|
+
var $call$2 = functionCall;
|
|
625
604
|
var $reflectApply = reflectApply$1;
|
|
626
605
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
627
|
-
var bind$2 =
|
|
606
|
+
var bind$2 = functionBind;
|
|
628
607
|
var $TypeError$4 = type;
|
|
629
|
-
var $call$1 =
|
|
608
|
+
var $call$1 = functionCall;
|
|
630
609
|
var $actualApply = actualApply$1;
|
|
631
610
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
632
611
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -678,8 +657,8 @@ function requireHasown() {
|
|
|
678
657
|
hasRequiredHasown = 1;
|
|
679
658
|
var call = Function.prototype.call;
|
|
680
659
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
681
|
-
var
|
|
682
|
-
hasown =
|
|
660
|
+
var bind3 = functionBind;
|
|
661
|
+
hasown = bind3.call(call, $hasOwn);
|
|
683
662
|
return hasown;
|
|
684
663
|
}
|
|
685
664
|
var undefined$1;
|
|
@@ -693,7 +672,7 @@ var $TypeError$3 = type;
|
|
|
693
672
|
var $URIError = uri;
|
|
694
673
|
var abs = abs$1;
|
|
695
674
|
var floor = floor$1;
|
|
696
|
-
var max = max$
|
|
675
|
+
var max = max$2;
|
|
697
676
|
var min = min$1;
|
|
698
677
|
var pow = pow$1;
|
|
699
678
|
var round = round$1;
|
|
@@ -727,7 +706,7 @@ var getProto$2 = getProto$3;
|
|
|
727
706
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
728
707
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
729
708
|
var $apply$1 = requireFunctionApply();
|
|
730
|
-
var $call =
|
|
709
|
+
var $call = functionCall;
|
|
731
710
|
var needsEval = {};
|
|
732
711
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
733
712
|
var INTRINSICS = {
|
|
@@ -898,7 +877,7 @@ var LEGACY_ALIASES = {
|
|
|
898
877
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
899
878
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
900
879
|
};
|
|
901
|
-
var bind$1 =
|
|
880
|
+
var bind$1 = functionBind;
|
|
902
881
|
var hasOwn$1 = requireHasown();
|
|
903
882
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
904
883
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1440,11 +1419,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1440
1419
|
}
|
|
1441
1420
|
return fn2;
|
|
1442
1421
|
};
|
|
1443
|
-
var
|
|
1422
|
+
var bind2 = functionBind;
|
|
1444
1423
|
var $apply = requireFunctionApply();
|
|
1445
1424
|
var actualApply = actualApply$1;
|
|
1446
1425
|
var applyBind = function applyBind2() {
|
|
1447
|
-
return actualApply(
|
|
1426
|
+
return actualApply(bind2, $apply, arguments);
|
|
1448
1427
|
};
|
|
1449
1428
|
(function(module2) {
|
|
1450
1429
|
var setFunctionLength$1 = setFunctionLength;
|
|
@@ -456,7 +456,7 @@ var type = TypeError;
|
|
|
456
456
|
var uri = URIError;
|
|
457
457
|
var abs$1 = Math.abs;
|
|
458
458
|
var floor$1 = Math.floor;
|
|
459
|
-
var max$
|
|
459
|
+
var max$2 = Math.max;
|
|
460
460
|
var min$1 = Math.min;
|
|
461
461
|
var pow$1 = Math.pow;
|
|
462
462
|
var round$1 = Math.round;
|
|
@@ -516,99 +516,78 @@ function requireHasSymbols() {
|
|
|
516
516
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
517
517
|
var $Object$2 = esObjectAtoms;
|
|
518
518
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
519
|
-
var
|
|
520
|
-
var
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
var
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
var str = "";
|
|
547
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
548
|
-
str += arr[i];
|
|
549
|
-
if (i + 1 < arr.length) {
|
|
550
|
-
str += joiner;
|
|
551
|
-
}
|
|
519
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
520
|
+
var toStr$3 = Object.prototype.toString;
|
|
521
|
+
var max$1 = Math.max;
|
|
522
|
+
var funcType = "[object Function]";
|
|
523
|
+
var concatty = function concatty2(a, b) {
|
|
524
|
+
var arr = [];
|
|
525
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
526
|
+
arr[i] = a[i];
|
|
527
|
+
}
|
|
528
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
529
|
+
arr[j + a.length] = b[j];
|
|
530
|
+
}
|
|
531
|
+
return arr;
|
|
532
|
+
};
|
|
533
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
534
|
+
var arr = [];
|
|
535
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
536
|
+
arr[j] = arrLike[i];
|
|
537
|
+
}
|
|
538
|
+
return arr;
|
|
539
|
+
};
|
|
540
|
+
var joiny = function(arr, joiner) {
|
|
541
|
+
var str = "";
|
|
542
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
543
|
+
str += arr[i];
|
|
544
|
+
if (i + 1 < arr.length) {
|
|
545
|
+
str += joiner;
|
|
552
546
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
);
|
|
568
|
-
if (Object(result) === result) {
|
|
569
|
-
return result;
|
|
570
|
-
}
|
|
571
|
-
return this;
|
|
572
|
-
}
|
|
573
|
-
return target.apply(
|
|
574
|
-
that,
|
|
547
|
+
}
|
|
548
|
+
return str;
|
|
549
|
+
};
|
|
550
|
+
var implementation$1 = function bind(that) {
|
|
551
|
+
var target = this;
|
|
552
|
+
if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
|
|
553
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
554
|
+
}
|
|
555
|
+
var args = slicy(arguments, 1);
|
|
556
|
+
var bound;
|
|
557
|
+
var binder = function() {
|
|
558
|
+
if (this instanceof bound) {
|
|
559
|
+
var result = target.apply(
|
|
560
|
+
this,
|
|
575
561
|
concatty(args, arguments)
|
|
576
562
|
);
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
boundArgs[i] = "$" + i;
|
|
582
|
-
}
|
|
583
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
584
|
-
if (target.prototype) {
|
|
585
|
-
var Empty = function Empty2() {
|
|
586
|
-
};
|
|
587
|
-
Empty.prototype = target.prototype;
|
|
588
|
-
bound.prototype = new Empty();
|
|
589
|
-
Empty.prototype = null;
|
|
563
|
+
if (Object(result) === result) {
|
|
564
|
+
return result;
|
|
565
|
+
}
|
|
566
|
+
return this;
|
|
590
567
|
}
|
|
591
|
-
return
|
|
568
|
+
return target.apply(
|
|
569
|
+
that,
|
|
570
|
+
concatty(args, arguments)
|
|
571
|
+
);
|
|
592
572
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
var
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
573
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
574
|
+
var boundArgs = [];
|
|
575
|
+
for (var i = 0; i < boundLength; i++) {
|
|
576
|
+
boundArgs[i] = "$" + i;
|
|
577
|
+
}
|
|
578
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
579
|
+
if (target.prototype) {
|
|
580
|
+
var Empty = function Empty2() {
|
|
581
|
+
};
|
|
582
|
+
Empty.prototype = target.prototype;
|
|
583
|
+
bound.prototype = new Empty();
|
|
584
|
+
Empty.prototype = null;
|
|
585
|
+
}
|
|
586
|
+
return bound;
|
|
587
|
+
};
|
|
588
|
+
var implementation = implementation$1;
|
|
589
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
590
|
+
var functionCall = Function.prototype.call;
|
|
612
591
|
var functionApply;
|
|
613
592
|
var hasRequiredFunctionApply;
|
|
614
593
|
function requireFunctionApply() {
|
|
@@ -618,14 +597,14 @@ function requireFunctionApply() {
|
|
|
618
597
|
return functionApply;
|
|
619
598
|
}
|
|
620
599
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
621
|
-
var bind$3 =
|
|
600
|
+
var bind$3 = functionBind;
|
|
622
601
|
var $apply$2 = requireFunctionApply();
|
|
623
|
-
var $call$2 =
|
|
602
|
+
var $call$2 = functionCall;
|
|
624
603
|
var $reflectApply = reflectApply$1;
|
|
625
604
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
626
|
-
var bind$2 =
|
|
605
|
+
var bind$2 = functionBind;
|
|
627
606
|
var $TypeError$4 = type;
|
|
628
|
-
var $call$1 =
|
|
607
|
+
var $call$1 = functionCall;
|
|
629
608
|
var $actualApply = actualApply$1;
|
|
630
609
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
631
610
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -677,8 +656,8 @@ function requireHasown() {
|
|
|
677
656
|
hasRequiredHasown = 1;
|
|
678
657
|
var call = Function.prototype.call;
|
|
679
658
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
680
|
-
var
|
|
681
|
-
hasown =
|
|
659
|
+
var bind3 = functionBind;
|
|
660
|
+
hasown = bind3.call(call, $hasOwn);
|
|
682
661
|
return hasown;
|
|
683
662
|
}
|
|
684
663
|
var undefined$1;
|
|
@@ -692,7 +671,7 @@ var $TypeError$3 = type;
|
|
|
692
671
|
var $URIError = uri;
|
|
693
672
|
var abs = abs$1;
|
|
694
673
|
var floor = floor$1;
|
|
695
|
-
var max = max$
|
|
674
|
+
var max = max$2;
|
|
696
675
|
var min = min$1;
|
|
697
676
|
var pow = pow$1;
|
|
698
677
|
var round = round$1;
|
|
@@ -726,7 +705,7 @@ var getProto$2 = getProto$3;
|
|
|
726
705
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
727
706
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
728
707
|
var $apply$1 = requireFunctionApply();
|
|
729
|
-
var $call =
|
|
708
|
+
var $call = functionCall;
|
|
730
709
|
var needsEval = {};
|
|
731
710
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
732
711
|
var INTRINSICS = {
|
|
@@ -897,7 +876,7 @@ var LEGACY_ALIASES = {
|
|
|
897
876
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
898
877
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
899
878
|
};
|
|
900
|
-
var bind$1 =
|
|
879
|
+
var bind$1 = functionBind;
|
|
901
880
|
var hasOwn$1 = requireHasown();
|
|
902
881
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
903
882
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1439,11 +1418,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1439
1418
|
}
|
|
1440
1419
|
return fn2;
|
|
1441
1420
|
};
|
|
1442
|
-
var
|
|
1421
|
+
var bind2 = functionBind;
|
|
1443
1422
|
var $apply = requireFunctionApply();
|
|
1444
1423
|
var actualApply = actualApply$1;
|
|
1445
1424
|
var applyBind = function applyBind2() {
|
|
1446
|
-
return actualApply(
|
|
1425
|
+
return actualApply(bind2, $apply, arguments);
|
|
1447
1426
|
};
|
|
1448
1427
|
(function(module) {
|
|
1449
1428
|
var setFunctionLength$1 = setFunctionLength;
|
|
@@ -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-BbSSdo_p.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-CnYTUN7K.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 = {}) {
|