@harbour-enterprises/superdoc 0.14.9-next.6 → 0.14.9-next.7
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-Bmg-LdrI.es.js → index-BMwK7kM5.es.js} +2 -2
- package/dist/chunks/{index-D8-yLk4l.cjs → index-CZuIe8A3.cjs} +1 -1
- package/dist/chunks/{index-q6mHfs8e.es.js → index-MJ-5Yknb.es.js} +1 -1
- package/dist/chunks/{index-Bx6NTjUr.cjs → index-Oz4X1zyg.cjs} +2 -2
- package/dist/chunks/{super-editor.es-BniGAo5V.es.js → super-editor.es-D0U14nJM.es.js} +6 -6
- package/dist/chunks/{super-editor.es-CQn3Mboc.cjs → super-editor.es-nYlTZyLH.cjs} +6 -6
- package/dist/chunks/{url-f1i5V486.cjs → url-CRVat8D5.cjs} +1 -1
- package/dist/chunks/{url-CZRpBZ8r.es.js → url-Cqg2Hljl.es.js} +1 -1
- package/dist/chunks/{xml-js-DzoGf_HX.es.js → xml-js-D78KIQHL.es.js} +123 -158
- package/dist/chunks/{xml-js-CR_HPgfX.cjs → xml-js-t28wMlyv.cjs} +123 -158
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B1JDclhK.js → converter-C_fU_GdA.js} +5 -5
- package/dist/super-editor/chunks/{docx-zipper-e6p-zLWx.js → docx-zipper-Dxi88tYJ.js} +1 -1
- package/dist/super-editor/chunks/{editor-VmXCRNX0.js → editor-D-IfBoeP.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Bo1J72SK.js → toolbar-DbRwZ5B3.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 +7 -7
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -395,62 +395,55 @@ var eventsExports = events.exports;
|
|
|
395
395
|
const require$$2 = /* @__PURE__ */ jszip.getAugmentedNamespace(jszip.dist);
|
|
396
396
|
var util = {};
|
|
397
397
|
var types = {};
|
|
398
|
-
var shams$1
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
398
|
+
var shams$1 = function hasSymbols() {
|
|
399
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
var obj = {};
|
|
406
|
+
var sym = Symbol("test");
|
|
407
|
+
var symObj = Object(sym);
|
|
408
|
+
if (typeof sym === "string") {
|
|
409
|
+
return false;
|
|
410
|
+
}
|
|
411
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
var symVal = 42;
|
|
418
|
+
obj[sym] = symVal;
|
|
419
|
+
for (var _ in obj) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
429
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
436
|
+
var descriptor = (
|
|
437
|
+
/** @type {PropertyDescriptor} */
|
|
438
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
439
|
+
);
|
|
440
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
438
441
|
return false;
|
|
439
442
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
);
|
|
445
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return true;
|
|
450
|
-
};
|
|
451
|
-
return shams$1;
|
|
452
|
-
}
|
|
453
|
-
var hasSymbols$2 = requireShams();
|
|
443
|
+
}
|
|
444
|
+
return true;
|
|
445
|
+
};
|
|
446
|
+
var hasSymbols$2 = shams$1;
|
|
454
447
|
var shams = function hasToStringTagShams() {
|
|
455
448
|
return hasSymbols$2() && !!Symbol.toStringTag;
|
|
456
449
|
};
|
|
@@ -478,8 +471,8 @@ var sign$1 = function sign(number) {
|
|
|
478
471
|
}
|
|
479
472
|
return number < 0 ? -1 : 1;
|
|
480
473
|
};
|
|
481
|
-
var gOPD$
|
|
482
|
-
var $gOPD$1 = gOPD$
|
|
474
|
+
var gOPD$4 = Object.getOwnPropertyDescriptor;
|
|
475
|
+
var $gOPD$1 = gOPD$4;
|
|
483
476
|
if ($gOPD$1) {
|
|
484
477
|
try {
|
|
485
478
|
$gOPD$1([], "length");
|
|
@@ -503,7 +496,7 @@ function requireHasSymbols() {
|
|
|
503
496
|
if (hasRequiredHasSymbols) return hasSymbols$1;
|
|
504
497
|
hasRequiredHasSymbols = 1;
|
|
505
498
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
506
|
-
var hasSymbolSham =
|
|
499
|
+
var hasSymbolSham = shams$1;
|
|
507
500
|
hasSymbols$1 = function hasNativeSymbols() {
|
|
508
501
|
if (typeof origSymbol !== "function") {
|
|
509
502
|
return false;
|
|
@@ -521,23 +514,9 @@ function requireHasSymbols() {
|
|
|
521
514
|
};
|
|
522
515
|
return hasSymbols$1;
|
|
523
516
|
}
|
|
524
|
-
var Reflect_getPrototypeOf;
|
|
525
|
-
var
|
|
526
|
-
|
|
527
|
-
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
528
|
-
hasRequiredReflect_getPrototypeOf = 1;
|
|
529
|
-
Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
530
|
-
return Reflect_getPrototypeOf;
|
|
531
|
-
}
|
|
532
|
-
var Object_getPrototypeOf;
|
|
533
|
-
var hasRequiredObject_getPrototypeOf;
|
|
534
|
-
function requireObject_getPrototypeOf() {
|
|
535
|
-
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
536
|
-
hasRequiredObject_getPrototypeOf = 1;
|
|
537
|
-
var $Object2 = esObjectAtoms;
|
|
538
|
-
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
539
|
-
return Object_getPrototypeOf;
|
|
540
|
-
}
|
|
517
|
+
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
|
+
var $Object$2 = esObjectAtoms;
|
|
519
|
+
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
541
520
|
var implementation;
|
|
542
521
|
var hasRequiredImplementation;
|
|
543
522
|
function requireImplementation() {
|
|
@@ -655,57 +634,43 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
655
634
|
}
|
|
656
635
|
return $actualApply(bind$2, $call$1, args);
|
|
657
636
|
};
|
|
658
|
-
var
|
|
659
|
-
var
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
668
|
-
[].__proto__ === Array.prototype;
|
|
669
|
-
} catch (e) {
|
|
670
|
-
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
671
|
-
throw e;
|
|
672
|
-
}
|
|
637
|
+
var callBind$2 = callBindApplyHelpers;
|
|
638
|
+
var gOPD$3 = gopd$1;
|
|
639
|
+
var hasProtoAccessor;
|
|
640
|
+
try {
|
|
641
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
642
|
+
[].__proto__ === Array.prototype;
|
|
643
|
+
} catch (e) {
|
|
644
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
645
|
+
throw e;
|
|
673
646
|
}
|
|
674
|
-
var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
|
|
675
|
-
Object.prototype,
|
|
676
|
-
/** @type {keyof typeof Object.prototype} */
|
|
677
|
-
"__proto__"
|
|
678
|
-
);
|
|
679
|
-
var $Object2 = Object;
|
|
680
|
-
var $getPrototypeOf = $Object2.getPrototypeOf;
|
|
681
|
-
get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
682
|
-
/** @type {import('./get')} */
|
|
683
|
-
function getDunder(value) {
|
|
684
|
-
return $getPrototypeOf(value == null ? value : $Object2(value));
|
|
685
|
-
}
|
|
686
|
-
) : false;
|
|
687
|
-
return get;
|
|
688
|
-
}
|
|
689
|
-
var getProto$3;
|
|
690
|
-
var hasRequiredGetProto;
|
|
691
|
-
function requireGetProto() {
|
|
692
|
-
if (hasRequiredGetProto) return getProto$3;
|
|
693
|
-
hasRequiredGetProto = 1;
|
|
694
|
-
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
695
|
-
var originalGetProto = requireObject_getPrototypeOf();
|
|
696
|
-
var getDunderProto = requireGet();
|
|
697
|
-
getProto$3 = reflectGetProto ? function getProto2(O) {
|
|
698
|
-
return reflectGetProto(O);
|
|
699
|
-
} : originalGetProto ? function getProto2(O) {
|
|
700
|
-
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
701
|
-
throw new TypeError("getProto: not an object");
|
|
702
|
-
}
|
|
703
|
-
return originalGetProto(O);
|
|
704
|
-
} : getDunderProto ? function getProto2(O) {
|
|
705
|
-
return getDunderProto(O);
|
|
706
|
-
} : null;
|
|
707
|
-
return getProto$3;
|
|
708
647
|
}
|
|
648
|
+
var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
|
|
649
|
+
Object.prototype,
|
|
650
|
+
/** @type {keyof typeof Object.prototype} */
|
|
651
|
+
"__proto__"
|
|
652
|
+
);
|
|
653
|
+
var $Object$1 = Object;
|
|
654
|
+
var $getPrototypeOf = $Object$1.getPrototypeOf;
|
|
655
|
+
var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
656
|
+
/** @type {import('./get')} */
|
|
657
|
+
function getDunder(value) {
|
|
658
|
+
return $getPrototypeOf(value == null ? value : $Object$1(value));
|
|
659
|
+
}
|
|
660
|
+
) : false;
|
|
661
|
+
var reflectGetProto = Reflect_getPrototypeOf;
|
|
662
|
+
var originalGetProto = Object_getPrototypeOf;
|
|
663
|
+
var getDunderProto = get;
|
|
664
|
+
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
665
|
+
return reflectGetProto(O);
|
|
666
|
+
} : originalGetProto ? function getProto2(O) {
|
|
667
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
668
|
+
throw new TypeError("getProto: not an object");
|
|
669
|
+
}
|
|
670
|
+
return originalGetProto(O);
|
|
671
|
+
} : getDunderProto ? function getProto3(O) {
|
|
672
|
+
return getDunderProto(O);
|
|
673
|
+
} : null;
|
|
709
674
|
var hasown;
|
|
710
675
|
var hasRequiredHasown;
|
|
711
676
|
function requireHasown() {
|
|
@@ -757,10 +722,10 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
757
722
|
}
|
|
758
723
|
}
|
|
759
724
|
}() : throwTypeError;
|
|
760
|
-
var
|
|
761
|
-
var getProto$2 =
|
|
762
|
-
var $ObjectGPO =
|
|
763
|
-
var $ReflectGPO =
|
|
725
|
+
var hasSymbols2 = requireHasSymbols()();
|
|
726
|
+
var getProto$2 = getProto$3;
|
|
727
|
+
var $ObjectGPO = Object_getPrototypeOf;
|
|
728
|
+
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
764
729
|
var $apply$1 = requireFunctionApply();
|
|
765
730
|
var $call = requireFunctionCall();
|
|
766
731
|
var needsEval = {};
|
|
@@ -770,7 +735,7 @@ var INTRINSICS = {
|
|
|
770
735
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
771
736
|
"%Array%": Array,
|
|
772
737
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
773
|
-
"%ArrayIteratorPrototype%":
|
|
738
|
+
"%ArrayIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
774
739
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
775
740
|
"%AsyncFunction%": needsEval,
|
|
776
741
|
"%AsyncGenerator%": needsEval,
|
|
@@ -802,10 +767,10 @@ var INTRINSICS = {
|
|
|
802
767
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
803
768
|
"%isFinite%": isFinite,
|
|
804
769
|
"%isNaN%": isNaN,
|
|
805
|
-
"%IteratorPrototype%":
|
|
770
|
+
"%IteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
806
771
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
807
772
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
808
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !
|
|
773
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
809
774
|
"%Math%": Math,
|
|
810
775
|
"%Number%": Number,
|
|
811
776
|
"%Object%": $Object,
|
|
@@ -819,11 +784,11 @@ var INTRINSICS = {
|
|
|
819
784
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
820
785
|
"%RegExp%": RegExp,
|
|
821
786
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
822
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !
|
|
787
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
823
788
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
824
789
|
"%String%": String,
|
|
825
|
-
"%StringIteratorPrototype%":
|
|
826
|
-
"%Symbol%":
|
|
790
|
+
"%StringIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
|
|
791
|
+
"%Symbol%": hasSymbols2 ? Symbol : undefined$1,
|
|
827
792
|
"%SyntaxError%": $SyntaxError$1,
|
|
828
793
|
"%ThrowTypeError%": ThrowTypeError,
|
|
829
794
|
"%TypedArray%": TypedArray,
|
|
@@ -1022,10 +987,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1022
987
|
return void 0;
|
|
1023
988
|
}
|
|
1024
989
|
if ($gOPD && i + 1 >= parts.length) {
|
|
1025
|
-
var
|
|
1026
|
-
isOwn = !!
|
|
1027
|
-
if (isOwn && "get" in
|
|
1028
|
-
value =
|
|
990
|
+
var desc2 = $gOPD(value, part);
|
|
991
|
+
isOwn = !!desc2;
|
|
992
|
+
if (isOwn && "get" in desc2 && !("originalValue" in desc2.get)) {
|
|
993
|
+
value = desc2.get;
|
|
1029
994
|
} else {
|
|
1030
995
|
value = value[part];
|
|
1031
996
|
}
|
|
@@ -1148,7 +1113,7 @@ var callBound$1 = callBound$5;
|
|
|
1148
1113
|
var safeRegexTest = safeRegexTest$1;
|
|
1149
1114
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
1150
1115
|
var hasToStringTag$2 = shams();
|
|
1151
|
-
var getProto$1 =
|
|
1116
|
+
var getProto$1 = getProto$3;
|
|
1152
1117
|
var toStr$2 = callBound$1("Object.prototype.toString");
|
|
1153
1118
|
var fnToStr$1 = callBound$1("Function.prototype.toString");
|
|
1154
1119
|
var getGeneratorFunc = function() {
|
|
@@ -1400,13 +1365,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
|
1400
1365
|
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
1401
1366
|
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
1402
1367
|
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
1403
|
-
var
|
|
1368
|
+
var desc2 = !!gopd && gopd(obj, property);
|
|
1404
1369
|
if ($defineProperty$1) {
|
|
1405
1370
|
$defineProperty$1(obj, property, {
|
|
1406
|
-
configurable: nonConfigurable === null &&
|
|
1407
|
-
enumerable: nonEnumerable === null &&
|
|
1371
|
+
configurable: nonConfigurable === null && desc2 ? desc2.configurable : !nonConfigurable,
|
|
1372
|
+
enumerable: nonEnumerable === null && desc2 ? desc2.enumerable : !nonEnumerable,
|
|
1408
1373
|
value,
|
|
1409
|
-
writable: nonWritable === null &&
|
|
1374
|
+
writable: nonWritable === null && desc2 ? desc2.writable : !nonWritable
|
|
1410
1375
|
});
|
|
1411
1376
|
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
1412
1377
|
obj[property] = value;
|
|
@@ -1446,11 +1411,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1446
1411
|
var functionLengthIsConfigurable = true;
|
|
1447
1412
|
var functionLengthIsWritable = true;
|
|
1448
1413
|
if ("length" in fn2 && gOPD$1) {
|
|
1449
|
-
var
|
|
1450
|
-
if (
|
|
1414
|
+
var desc2 = gOPD$1(fn2, "length");
|
|
1415
|
+
if (desc2 && !desc2.configurable) {
|
|
1451
1416
|
functionLengthIsConfigurable = false;
|
|
1452
1417
|
}
|
|
1453
|
-
if (
|
|
1418
|
+
if (desc2 && !desc2.writable) {
|
|
1454
1419
|
functionLengthIsWritable = false;
|
|
1455
1420
|
}
|
|
1456
1421
|
}
|
|
@@ -1507,7 +1472,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
|
|
|
1507
1472
|
var callBind = callBindExports;
|
|
1508
1473
|
var callBound = callBound$5;
|
|
1509
1474
|
var gOPD = gopd$1;
|
|
1510
|
-
var
|
|
1475
|
+
var getProto4 = getProto$3;
|
|
1511
1476
|
var $toString = callBound("Object.prototype.toString");
|
|
1512
1477
|
var hasToStringTag = shams();
|
|
1513
1478
|
var g = typeof globalThis === "undefined" ? jszip.commonjsGlobal : globalThis;
|
|
@@ -1522,14 +1487,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
|
|
|
1522
1487
|
return -1;
|
|
1523
1488
|
};
|
|
1524
1489
|
var cache = { __proto__: null };
|
|
1525
|
-
if (hasToStringTag && gOPD &&
|
|
1490
|
+
if (hasToStringTag && gOPD && getProto4) {
|
|
1526
1491
|
forEach2(typedArrays, function(typedArray) {
|
|
1527
1492
|
var arr = new g[typedArray]();
|
|
1528
|
-
if (Symbol.toStringTag in arr &&
|
|
1529
|
-
var proto =
|
|
1493
|
+
if (Symbol.toStringTag in arr && getProto4) {
|
|
1494
|
+
var proto = getProto4(arr);
|
|
1530
1495
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1531
1496
|
if (!descriptor && proto) {
|
|
1532
|
-
var superProto =
|
|
1497
|
+
var superProto = getProto4(proto);
|
|
1533
1498
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1534
1499
|
}
|
|
1535
1500
|
cache["$" + typedArray] = callBind(descriptor.get);
|
|
@@ -2122,16 +2087,16 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2122
2087
|
return output;
|
|
2123
2088
|
}
|
|
2124
2089
|
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2125
|
-
var name, str,
|
|
2126
|
-
|
|
2127
|
-
if (
|
|
2128
|
-
if (
|
|
2090
|
+
var name, str, desc2;
|
|
2091
|
+
desc2 = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2092
|
+
if (desc2.get) {
|
|
2093
|
+
if (desc2.set) {
|
|
2129
2094
|
str = ctx.stylize("[Getter/Setter]", "special");
|
|
2130
2095
|
} else {
|
|
2131
2096
|
str = ctx.stylize("[Getter]", "special");
|
|
2132
2097
|
}
|
|
2133
2098
|
} else {
|
|
2134
|
-
if (
|
|
2099
|
+
if (desc2.set) {
|
|
2135
2100
|
str = ctx.stylize("[Setter]", "special");
|
|
2136
2101
|
}
|
|
2137
2102
|
}
|
|
@@ -2139,11 +2104,11 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2139
2104
|
name = "[" + key + "]";
|
|
2140
2105
|
}
|
|
2141
2106
|
if (!str) {
|
|
2142
|
-
if (ctx.seen.indexOf(
|
|
2107
|
+
if (ctx.seen.indexOf(desc2.value) < 0) {
|
|
2143
2108
|
if (isNull(recurseTimes)) {
|
|
2144
|
-
str = formatValue(ctx,
|
|
2109
|
+
str = formatValue(ctx, desc2.value, null);
|
|
2145
2110
|
} else {
|
|
2146
|
-
str = formatValue(ctx,
|
|
2111
|
+
str = formatValue(ctx, desc2.value, recurseTimes - 1);
|
|
2147
2112
|
}
|
|
2148
2113
|
if (str.indexOf("\n") > -1) {
|
|
2149
2114
|
if (array) {
|
|
@@ -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-C_fU_GdA.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-D-IfBoeP.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 = {}) {
|
|
@@ -20463,9 +20463,9 @@ const getAbstractDefinition = (numId, docx) => {
|
|
|
20463
20463
|
const { elements } = def;
|
|
20464
20464
|
const listData = elements[0];
|
|
20465
20465
|
const numberingElements = listData.elements;
|
|
20466
|
-
const abstractDefinitions = numberingElements
|
|
20467
|
-
const numDefinitions = numberingElements
|
|
20468
|
-
const numDefinition = numDefinitions
|
|
20466
|
+
const abstractDefinitions = numberingElements?.filter((style) => style.name === "w:abstractNum");
|
|
20467
|
+
const numDefinitions = numberingElements?.filter((style) => style.name === "w:num");
|
|
20468
|
+
const numDefinition = numDefinitions?.find((style) => style.attributes["w:numId"] == numId);
|
|
20469
20469
|
const abstractNumId = numDefinition?.elements[0].attributes["w:val"];
|
|
20470
20470
|
let listDefinitionForThisNumId = abstractDefinitions?.find(
|
|
20471
20471
|
(style) => style.attributes["w:abstractNumId"] === abstractNumId
|
|
@@ -26485,7 +26485,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
26485
26485
|
return;
|
|
26486
26486
|
}
|
|
26487
26487
|
}
|
|
26488
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.
|
|
26488
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.7") {
|
|
26489
26489
|
const customLocation = "docProps/custom.xml";
|
|
26490
26490
|
if (!docx[customLocation]) {
|
|
26491
26491
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26964,7 +26964,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26964
26964
|
function generateCustomXml() {
|
|
26965
26965
|
return DEFAULT_CUSTOM_XML;
|
|
26966
26966
|
}
|
|
26967
|
-
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.
|
|
26967
|
+
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.7") {
|
|
26968
26968
|
return {
|
|
26969
26969
|
type: "element",
|
|
26970
26970
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, ar as commonjsGlobal, I as Buffer, as as getDefaultExportFromCjs, at as getContentTypesFromXml, au as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, ar as commonjsGlobal, I as Buffer, as as getDefaultExportFromCjs, at as getContentTypesFromXml, au as xmljs } from "./converter-C_fU_GdA.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
|
}
|
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId } from "./converter-C_fU_GdA.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-Dxi88tYJ.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -13604,7 +13604,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13604
13604
|
* @returns {Object | void} Migration results
|
|
13605
13605
|
*/
|
|
13606
13606
|
processCollaborationMigrations() {
|
|
13607
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
13607
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.7");
|
|
13608
13608
|
if (!this.options.ydoc) return;
|
|
13609
13609
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13610
13610
|
let docVersion = metaMap.get("version");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { H as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { H as process$1 } from "./converter-C_fU_GdA.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D-IfBoeP.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-D-IfBoeP.js";
|
|
2
|
+
import "./chunks/converter-C_fU_GdA.js";
|
|
3
|
+
import "./chunks/docx-zipper-Dxi88tYJ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { as as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, av as vClickOutside, y as findParentNode, aw as getActiveFormatting, ao as isInTable, ax as readFromClipboard, ay as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { a5, d, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, T, i, l, j } from "./chunks/editor-
|
|
12
|
+
import { as as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, av as vClickOutside, y as findParentNode, aw as getActiveFormatting, ao as isInTable, ax as readFromClipboard, ay as handleClipboardPaste, a as Plugin } from "./chunks/converter-C_fU_GdA.js";
|
|
13
|
+
import { a5, d, a2 } from "./chunks/converter-C_fU_GdA.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-D-IfBoeP.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-D-IfBoeP.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, l as linkIconSvg, a as tableIconSvg, b as scissorsIconSvg, c as copyIconSvg, p as pasteIconSvg, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, l as linkIconSvg, a as tableIconSvg, b as scissorsIconSvg, c as copyIconSvg, p as pasteIconSvg, N as NSkeleton } from "./chunks/toolbar-DbRwZ5B3.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-Dxi88tYJ.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-nYlTZyLH.cjs");
|
|
4
4
|
require("./chunks/vue-tQYF719J.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-D0U14nJM.es.js";
|
|
2
2
|
import "./chunks/vue-lU0o_RlU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-nYlTZyLH.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-tQYF719J.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-D5XoMX4C.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -24406,13 +24406,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24406
24406
|
"./chunks/empty-lth7LH78.cjs"
|
|
24407
24407
|
)), http = await Promise.resolve().then(() => require(
|
|
24408
24408
|
/*webpackIgnore: true*/
|
|
24409
|
-
"./chunks/index-
|
|
24409
|
+
"./chunks/index-Oz4X1zyg.cjs"
|
|
24410
24410
|
)).then((n) => n.index), https = await Promise.resolve().then(() => require(
|
|
24411
24411
|
/*webpackIgnore: true*/
|
|
24412
|
-
"./chunks/index-
|
|
24412
|
+
"./chunks/index-CZuIe8A3.cjs"
|
|
24413
24413
|
)).then((n) => n.index), url = await Promise.resolve().then(() => require(
|
|
24414
24414
|
/*webpackIgnore: true*/
|
|
24415
|
-
"./chunks/url-
|
|
24415
|
+
"./chunks/url-CRVat8D5.cjs"
|
|
24416
24416
|
)).then((n) => n.url);
|
|
24417
24417
|
let canvas, path2d;
|
|
24418
24418
|
try {
|
|
@@ -47815,7 +47815,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47815
47815
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47816
47816
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47817
47817
|
this.colorIndex = 0;
|
|
47818
|
-
this.version = "0.14.9-next.
|
|
47818
|
+
this.version = "0.14.9-next.7";
|
|
47819
47819
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47820
47820
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47821
47821
|
this.colors = this.config.colors;
|