@harbour-enterprises/superdoc 0.13.3-next.9 → 0.13.4
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-TVMsdSLe.cjs → index-1MFGOw5E.cjs} +1 -1
- package/dist/chunks/{index-DaCu1Bz7.cjs → index-C7OD1PyE.cjs} +2 -2
- package/dist/chunks/{index-D4AAUPzz.es.js → index-DaN_owlg.es.js} +2 -2
- package/dist/chunks/{index-X4cl1Zxp.es.js → index-DrDbu1Lu.es.js} +1 -1
- package/dist/chunks/{super-editor.es-IE6tM8q-.cjs → super-editor.es-BHUbsUJ8.cjs} +3 -3
- package/dist/chunks/{super-editor.es-BAHY2kXJ.es.js → super-editor.es-Dku_HwPp.es.js} +3 -3
- package/dist/chunks/{url-ffpJREtw.es.js → url-CMRvONpz.es.js} +1 -1
- package/dist/chunks/{url-CPIb6bec.cjs → url-CQY43xA2.cjs} +1 -1
- package/dist/chunks/{xml-js-DpAj_P1B.cjs → xml-js-BjAVbxT-.cjs} +113 -92
- package/dist/chunks/{xml-js-BnXIbBYj.es.js → xml-js-DrozhLyq.es.js} +113 -92
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DVGSzwkv.js → converter-C4o4RStl.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CJl1-_iQ.js → docx-zipper-C02wYZX8.js} +1 -1
- package/dist/super-editor/chunks/{editor-2RIzLSI1.js → editor-BQxch2iC.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-FyXLooa_.js → toolbar-Cf-_NucR.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 +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 +4 -4
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-BTAcmbVg.cjs");
|
|
3
3
|
const vue = require("./vue-HIY1g7dm.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-BjAVbxT-.cjs");
|
|
5
|
+
const url = require("./url-CQY43xA2.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-Bi1uWinj.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-DrozhLyq.es.js";
|
|
4
|
+
import { u as url } from "./url-CMRvONpz.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,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-DaN_owlg.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -24005,7 +24005,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24005
24005
|
return;
|
|
24006
24006
|
}
|
|
24007
24007
|
}
|
|
24008
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.
|
|
24008
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.4") {
|
|
24009
24009
|
const customLocation = "docProps/custom.xml";
|
|
24010
24010
|
if (!docx[customLocation]) {
|
|
24011
24011
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24472,7 +24472,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24472
24472
|
function generateCustomXml() {
|
|
24473
24473
|
return DEFAULT_CUSTOM_XML;
|
|
24474
24474
|
}
|
|
24475
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.
|
|
24475
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.4") {
|
|
24476
24476
|
return {
|
|
24477
24477
|
type: "element",
|
|
24478
24478
|
name: "property",
|
|
@@ -41317,7 +41317,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41317
41317
|
* @returns {Object | void} Migration results
|
|
41318
41318
|
*/
|
|
41319
41319
|
processCollaborationMigrations() {
|
|
41320
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.
|
|
41320
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.4");
|
|
41321
41321
|
if (!this.options.ydoc) return;
|
|
41322
41322
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41323
41323
|
let docVersion = metaMap.get("version");
|
|
@@ -23988,7 +23988,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23988
23988
|
return;
|
|
23989
23989
|
}
|
|
23990
23990
|
}
|
|
23991
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.
|
|
23991
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.4") {
|
|
23992
23992
|
const customLocation = "docProps/custom.xml";
|
|
23993
23993
|
if (!docx[customLocation]) {
|
|
23994
23994
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24455,7 +24455,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24455
24455
|
function generateCustomXml() {
|
|
24456
24456
|
return DEFAULT_CUSTOM_XML;
|
|
24457
24457
|
}
|
|
24458
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.
|
|
24458
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.4") {
|
|
24459
24459
|
return {
|
|
24460
24460
|
type: "element",
|
|
24461
24461
|
name: "property",
|
|
@@ -41300,7 +41300,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41300
41300
|
* @returns {Object | void} Migration results
|
|
41301
41301
|
*/
|
|
41302
41302
|
processCollaborationMigrations() {
|
|
41303
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.
|
|
41303
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.4");
|
|
41304
41304
|
if (!this.options.ydoc) return;
|
|
41305
41305
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41306
41306
|
let docVersion = metaMap.get("version");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-DckFs3A7.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-DrozhLyq.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-BTAcmbVg.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-BjAVbxT-.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$1 = Math.max;
|
|
461
461
|
var min$1 = Math.min;
|
|
462
462
|
var pow$1 = Math.pow;
|
|
463
463
|
var round$1 = Math.round;
|
|
@@ -514,88 +514,109 @@ function requireHasSymbols() {
|
|
|
514
514
|
};
|
|
515
515
|
return hasSymbols$1;
|
|
516
516
|
}
|
|
517
|
-
var Reflect_getPrototypeOf;
|
|
518
|
-
var
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
517
|
+
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
|
+
var Object_getPrototypeOf;
|
|
519
|
+
var hasRequiredObject_getPrototypeOf;
|
|
520
|
+
function requireObject_getPrototypeOf() {
|
|
521
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
522
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
523
|
+
var $Object2 = esObjectAtoms;
|
|
524
|
+
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
525
|
+
return Object_getPrototypeOf;
|
|
524
526
|
}
|
|
525
|
-
var
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
var
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
var joiny = function(arr, joiner) {
|
|
549
|
-
var str = "";
|
|
550
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
551
|
-
str += arr[i];
|
|
552
|
-
if (i + 1 < arr.length) {
|
|
553
|
-
str += joiner;
|
|
527
|
+
var implementation;
|
|
528
|
+
var hasRequiredImplementation;
|
|
529
|
+
function requireImplementation() {
|
|
530
|
+
if (hasRequiredImplementation) return implementation;
|
|
531
|
+
hasRequiredImplementation = 1;
|
|
532
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
533
|
+
var toStr2 = Object.prototype.toString;
|
|
534
|
+
var max2 = Math.max;
|
|
535
|
+
var funcType = "[object Function]";
|
|
536
|
+
var concatty = function concatty2(a, b) {
|
|
537
|
+
var arr = [];
|
|
538
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
539
|
+
arr[i] = a[i];
|
|
540
|
+
}
|
|
541
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
542
|
+
arr[j + a.length] = b[j];
|
|
543
|
+
}
|
|
544
|
+
return arr;
|
|
545
|
+
};
|
|
546
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
547
|
+
var arr = [];
|
|
548
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
549
|
+
arr[j] = arrLike[i];
|
|
554
550
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
var args = slicy(arguments, 1);
|
|
564
|
-
var bound;
|
|
565
|
-
var binder = function() {
|
|
566
|
-
if (this instanceof bound) {
|
|
567
|
-
var result = target.apply(
|
|
568
|
-
this,
|
|
569
|
-
concatty(args, arguments)
|
|
570
|
-
);
|
|
571
|
-
if (Object(result) === result) {
|
|
572
|
-
return result;
|
|
551
|
+
return arr;
|
|
552
|
+
};
|
|
553
|
+
var joiny = function(arr, joiner) {
|
|
554
|
+
var str = "";
|
|
555
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
556
|
+
str += arr[i];
|
|
557
|
+
if (i + 1 < arr.length) {
|
|
558
|
+
str += joiner;
|
|
573
559
|
}
|
|
574
|
-
return this;
|
|
575
560
|
}
|
|
576
|
-
return
|
|
577
|
-
that,
|
|
578
|
-
concatty(args, arguments)
|
|
579
|
-
);
|
|
561
|
+
return str;
|
|
580
562
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
var
|
|
563
|
+
implementation = function bind2(that) {
|
|
564
|
+
var target = this;
|
|
565
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
566
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
567
|
+
}
|
|
568
|
+
var args = slicy(arguments, 1);
|
|
569
|
+
var bound;
|
|
570
|
+
var binder = function() {
|
|
571
|
+
if (this instanceof bound) {
|
|
572
|
+
var result = target.apply(
|
|
573
|
+
this,
|
|
574
|
+
concatty(args, arguments)
|
|
575
|
+
);
|
|
576
|
+
if (Object(result) === result) {
|
|
577
|
+
return result;
|
|
578
|
+
}
|
|
579
|
+
return this;
|
|
580
|
+
}
|
|
581
|
+
return target.apply(
|
|
582
|
+
that,
|
|
583
|
+
concatty(args, arguments)
|
|
584
|
+
);
|
|
589
585
|
};
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
};
|
|
596
|
-
|
|
597
|
-
var
|
|
598
|
-
|
|
586
|
+
var boundLength = max2(0, target.length - args.length);
|
|
587
|
+
var boundArgs = [];
|
|
588
|
+
for (var i = 0; i < boundLength; i++) {
|
|
589
|
+
boundArgs[i] = "$" + i;
|
|
590
|
+
}
|
|
591
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
592
|
+
if (target.prototype) {
|
|
593
|
+
var Empty = function Empty2() {
|
|
594
|
+
};
|
|
595
|
+
Empty.prototype = target.prototype;
|
|
596
|
+
bound.prototype = new Empty();
|
|
597
|
+
Empty.prototype = null;
|
|
598
|
+
}
|
|
599
|
+
return bound;
|
|
600
|
+
};
|
|
601
|
+
return implementation;
|
|
602
|
+
}
|
|
603
|
+
var functionBind;
|
|
604
|
+
var hasRequiredFunctionBind;
|
|
605
|
+
function requireFunctionBind() {
|
|
606
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
607
|
+
hasRequiredFunctionBind = 1;
|
|
608
|
+
var implementation2 = requireImplementation();
|
|
609
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
610
|
+
return functionBind;
|
|
611
|
+
}
|
|
612
|
+
var functionCall;
|
|
613
|
+
var hasRequiredFunctionCall;
|
|
614
|
+
function requireFunctionCall() {
|
|
615
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
616
|
+
hasRequiredFunctionCall = 1;
|
|
617
|
+
functionCall = Function.prototype.call;
|
|
618
|
+
return functionCall;
|
|
619
|
+
}
|
|
599
620
|
var functionApply;
|
|
600
621
|
var hasRequiredFunctionApply;
|
|
601
622
|
function requireFunctionApply() {
|
|
@@ -605,14 +626,14 @@ function requireFunctionApply() {
|
|
|
605
626
|
return functionApply;
|
|
606
627
|
}
|
|
607
628
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
608
|
-
var bind$3 =
|
|
629
|
+
var bind$3 = requireFunctionBind();
|
|
609
630
|
var $apply$2 = requireFunctionApply();
|
|
610
|
-
var $call$2 =
|
|
631
|
+
var $call$2 = requireFunctionCall();
|
|
611
632
|
var $reflectApply = reflectApply$1;
|
|
612
633
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
613
|
-
var bind$2 =
|
|
634
|
+
var bind$2 = requireFunctionBind();
|
|
614
635
|
var $TypeError$4 = type;
|
|
615
|
-
var $call$1 =
|
|
636
|
+
var $call$1 = requireFunctionCall();
|
|
616
637
|
var $actualApply = actualApply$1;
|
|
617
638
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
618
639
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -644,8 +665,8 @@ var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : type
|
|
|
644
665
|
return $getPrototypeOf(value == null ? value : $Object$1(value));
|
|
645
666
|
}
|
|
646
667
|
) : false;
|
|
647
|
-
var reflectGetProto =
|
|
648
|
-
var originalGetProto =
|
|
668
|
+
var reflectGetProto = Reflect_getPrototypeOf;
|
|
669
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
649
670
|
var getDunderProto = get;
|
|
650
671
|
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
651
672
|
return reflectGetProto(O);
|
|
@@ -664,8 +685,8 @@ function requireHasown() {
|
|
|
664
685
|
hasRequiredHasown = 1;
|
|
665
686
|
var call = Function.prototype.call;
|
|
666
687
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
667
|
-
var
|
|
668
|
-
hasown =
|
|
688
|
+
var bind2 = requireFunctionBind();
|
|
689
|
+
hasown = bind2.call(call, $hasOwn);
|
|
669
690
|
return hasown;
|
|
670
691
|
}
|
|
671
692
|
var undefined$1;
|
|
@@ -679,7 +700,7 @@ var $TypeError$3 = type;
|
|
|
679
700
|
var $URIError = uri;
|
|
680
701
|
var abs = abs$1;
|
|
681
702
|
var floor = floor$1;
|
|
682
|
-
var max = max$
|
|
703
|
+
var max = max$1;
|
|
683
704
|
var min = min$1;
|
|
684
705
|
var pow = pow$1;
|
|
685
706
|
var round = round$1;
|
|
@@ -710,10 +731,10 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
710
731
|
}() : throwTypeError;
|
|
711
732
|
var hasSymbols2 = requireHasSymbols()();
|
|
712
733
|
var getProto$2 = getProto$3;
|
|
713
|
-
var $ObjectGPO =
|
|
714
|
-
var $ReflectGPO =
|
|
734
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
735
|
+
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
715
736
|
var $apply$1 = requireFunctionApply();
|
|
716
|
-
var $call =
|
|
737
|
+
var $call = requireFunctionCall();
|
|
717
738
|
var needsEval = {};
|
|
718
739
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
719
740
|
var INTRINSICS = {
|
|
@@ -884,7 +905,7 @@ var LEGACY_ALIASES = {
|
|
|
884
905
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
885
906
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
886
907
|
};
|
|
887
|
-
var bind$1 =
|
|
908
|
+
var bind$1 = requireFunctionBind();
|
|
888
909
|
var hasOwn$1 = requireHasown();
|
|
889
910
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
890
911
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1426,11 +1447,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1426
1447
|
}
|
|
1427
1448
|
return fn2;
|
|
1428
1449
|
};
|
|
1429
|
-
var
|
|
1450
|
+
var bind = requireFunctionBind();
|
|
1430
1451
|
var $apply = requireFunctionApply();
|
|
1431
1452
|
var actualApply = actualApply$1;
|
|
1432
1453
|
var applyBind = function applyBind2() {
|
|
1433
|
-
return actualApply(
|
|
1454
|
+
return actualApply(bind, $apply, arguments);
|
|
1434
1455
|
};
|
|
1435
1456
|
(function(module2) {
|
|
1436
1457
|
var setFunctionLength$1 = setFunctionLength;
|