@harbour-enterprises/superdoc 0.14.2-next.2 → 0.14.2

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.
Files changed (31) hide show
  1. package/dist/chunks/{index-BMwK7kM5.es.js → index-Bmg-LdrI.es.js} +2 -2
  2. package/dist/chunks/{index-Oz4X1zyg.cjs → index-Bx6NTjUr.cjs} +2 -2
  3. package/dist/chunks/{index-CZuIe8A3.cjs → index-D8-yLk4l.cjs} +1 -1
  4. package/dist/chunks/{index-MJ-5Yknb.es.js → index-q6mHfs8e.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-DDBiIC2f.cjs → super-editor.es-CVXcyA03.cjs} +10 -23
  6. package/dist/chunks/{super-editor.es-BWlm5Ej1.es.js → super-editor.es-uexOEMOI.es.js} +10 -23
  7. package/dist/chunks/{url-Cqg2Hljl.es.js → url-CZRpBZ8r.es.js} +1 -1
  8. package/dist/chunks/{url-CRVat8D5.cjs → url-f1i5V486.cjs} +1 -1
  9. package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-CR_HPgfX.cjs} +158 -123
  10. package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-DzoGf_HX.es.js} +158 -123
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-dFE2Jr2b.js → converter-D4QevHSw.js} +2 -4
  13. package/dist/super-editor/chunks/{docx-zipper-BsY1xnjc.js → docx-zipper-L44d28km.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-CGEU-2b7.js → editor-CUqQDQxM.js} +10 -21
  15. package/dist/super-editor/chunks/{toolbar-R0GEOSnM.js → toolbar--4jgiUTj.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
  21. package/dist/super-editor/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts.map +1 -1
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor.es.js +6 -6
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +5 -5
  28. package/dist/superdoc.es.js +6 -6
  29. package/dist/superdoc.umd.js +11 -24
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
@@ -394,55 +394,62 @@ var eventsExports = events.exports;
394
394
  const require$$2 = /* @__PURE__ */ getAugmentedNamespace(dist);
395
395
  var util = {};
396
396
  var types = {};
397
- var shams$1 = function hasSymbols() {
398
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
399
- return false;
400
- }
401
- if (typeof Symbol.iterator === "symbol") {
402
- return true;
403
- }
404
- var obj = {};
405
- var sym = Symbol("test");
406
- var symObj = Object(sym);
407
- if (typeof sym === "string") {
408
- return false;
409
- }
410
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
411
- return false;
412
- }
413
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
414
- return false;
415
- }
416
- var symVal = 42;
417
- obj[sym] = symVal;
418
- for (var _ in obj) {
419
- return false;
420
- }
421
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
422
- return false;
423
- }
424
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
425
- return false;
426
- }
427
- var syms = Object.getOwnPropertySymbols(obj);
428
- if (syms.length !== 1 || syms[0] !== sym) {
429
- return false;
430
- }
431
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
432
- return false;
433
- }
434
- if (typeof Object.getOwnPropertyDescriptor === "function") {
435
- var descriptor = (
436
- /** @type {PropertyDescriptor} */
437
- Object.getOwnPropertyDescriptor(obj, sym)
438
- );
439
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
397
+ var shams$1;
398
+ var hasRequiredShams;
399
+ function requireShams() {
400
+ if (hasRequiredShams) return shams$1;
401
+ hasRequiredShams = 1;
402
+ shams$1 = function hasSymbols2() {
403
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
440
404
  return false;
441
405
  }
442
- }
443
- return true;
444
- };
445
- var hasSymbols$2 = shams$1;
406
+ if (typeof Symbol.iterator === "symbol") {
407
+ return true;
408
+ }
409
+ var obj = {};
410
+ var sym = Symbol("test");
411
+ var symObj = Object(sym);
412
+ if (typeof sym === "string") {
413
+ return false;
414
+ }
415
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
416
+ return false;
417
+ }
418
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
419
+ return false;
420
+ }
421
+ var symVal = 42;
422
+ obj[sym] = symVal;
423
+ for (var _ in obj) {
424
+ return false;
425
+ }
426
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
427
+ return false;
428
+ }
429
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
430
+ return false;
431
+ }
432
+ var syms = Object.getOwnPropertySymbols(obj);
433
+ if (syms.length !== 1 || syms[0] !== sym) {
434
+ return false;
435
+ }
436
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
437
+ return false;
438
+ }
439
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
440
+ var descriptor = (
441
+ /** @type {PropertyDescriptor} */
442
+ Object.getOwnPropertyDescriptor(obj, sym)
443
+ );
444
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
445
+ return false;
446
+ }
447
+ }
448
+ return true;
449
+ };
450
+ return shams$1;
451
+ }
452
+ var hasSymbols$2 = requireShams();
446
453
  var shams = function hasToStringTagShams() {
447
454
  return hasSymbols$2() && !!Symbol.toStringTag;
448
455
  };
@@ -470,8 +477,8 @@ var sign$1 = function sign(number) {
470
477
  }
471
478
  return number < 0 ? -1 : 1;
472
479
  };
473
- var gOPD$4 = Object.getOwnPropertyDescriptor;
474
- var $gOPD$1 = gOPD$4;
480
+ var gOPD$3 = Object.getOwnPropertyDescriptor;
481
+ var $gOPD$1 = gOPD$3;
475
482
  if ($gOPD$1) {
476
483
  try {
477
484
  $gOPD$1([], "length");
@@ -495,7 +502,7 @@ function requireHasSymbols() {
495
502
  if (hasRequiredHasSymbols) return hasSymbols$1;
496
503
  hasRequiredHasSymbols = 1;
497
504
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
498
- var hasSymbolSham = shams$1;
505
+ var hasSymbolSham = requireShams();
499
506
  hasSymbols$1 = function hasNativeSymbols() {
500
507
  if (typeof origSymbol !== "function") {
501
508
  return false;
@@ -513,9 +520,23 @@ function requireHasSymbols() {
513
520
  };
514
521
  return hasSymbols$1;
515
522
  }
516
- var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
517
- var $Object$2 = esObjectAtoms;
518
- var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
523
+ var Reflect_getPrototypeOf;
524
+ var hasRequiredReflect_getPrototypeOf;
525
+ function requireReflect_getPrototypeOf() {
526
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
527
+ hasRequiredReflect_getPrototypeOf = 1;
528
+ Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
529
+ return Reflect_getPrototypeOf;
530
+ }
531
+ var Object_getPrototypeOf;
532
+ var hasRequiredObject_getPrototypeOf;
533
+ function requireObject_getPrototypeOf() {
534
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
535
+ hasRequiredObject_getPrototypeOf = 1;
536
+ var $Object2 = esObjectAtoms;
537
+ Object_getPrototypeOf = $Object2.getPrototypeOf || null;
538
+ return Object_getPrototypeOf;
539
+ }
519
540
  var implementation;
520
541
  var hasRequiredImplementation;
521
542
  function requireImplementation() {
@@ -633,43 +654,57 @@ var callBindApplyHelpers = function callBindBasic(args) {
633
654
  }
634
655
  return $actualApply(bind$2, $call$1, args);
635
656
  };
636
- var callBind$2 = callBindApplyHelpers;
637
- var gOPD$3 = gopd$1;
638
- var hasProtoAccessor;
639
- try {
640
- hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
641
- [].__proto__ === Array.prototype;
642
- } catch (e) {
643
- if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
644
- throw e;
657
+ var get;
658
+ var hasRequiredGet;
659
+ function requireGet() {
660
+ if (hasRequiredGet) return get;
661
+ hasRequiredGet = 1;
662
+ var callBind2 = callBindApplyHelpers;
663
+ var gOPD2 = gopd$1;
664
+ var hasProtoAccessor;
665
+ try {
666
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
667
+ [].__proto__ === Array.prototype;
668
+ } catch (e) {
669
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
670
+ throw e;
671
+ }
645
672
  }
673
+ var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
674
+ Object.prototype,
675
+ /** @type {keyof typeof Object.prototype} */
676
+ "__proto__"
677
+ );
678
+ var $Object2 = Object;
679
+ var $getPrototypeOf = $Object2.getPrototypeOf;
680
+ get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
681
+ /** @type {import('./get')} */
682
+ function getDunder(value) {
683
+ return $getPrototypeOf(value == null ? value : $Object2(value));
684
+ }
685
+ ) : false;
686
+ return get;
687
+ }
688
+ var getProto$3;
689
+ var hasRequiredGetProto;
690
+ function requireGetProto() {
691
+ if (hasRequiredGetProto) return getProto$3;
692
+ hasRequiredGetProto = 1;
693
+ var reflectGetProto = requireReflect_getPrototypeOf();
694
+ var originalGetProto = requireObject_getPrototypeOf();
695
+ var getDunderProto = requireGet();
696
+ getProto$3 = reflectGetProto ? function getProto2(O) {
697
+ return reflectGetProto(O);
698
+ } : originalGetProto ? function getProto2(O) {
699
+ if (!O || typeof O !== "object" && typeof O !== "function") {
700
+ throw new TypeError("getProto: not an object");
701
+ }
702
+ return originalGetProto(O);
703
+ } : getDunderProto ? function getProto2(O) {
704
+ return getDunderProto(O);
705
+ } : null;
706
+ return getProto$3;
646
707
  }
647
- var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
648
- Object.prototype,
649
- /** @type {keyof typeof Object.prototype} */
650
- "__proto__"
651
- );
652
- var $Object$1 = Object;
653
- var $getPrototypeOf = $Object$1.getPrototypeOf;
654
- var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
655
- /** @type {import('./get')} */
656
- function getDunder(value) {
657
- return $getPrototypeOf(value == null ? value : $Object$1(value));
658
- }
659
- ) : false;
660
- var reflectGetProto = Reflect_getPrototypeOf;
661
- var originalGetProto = Object_getPrototypeOf;
662
- var getDunderProto = get;
663
- var getProto$3 = reflectGetProto ? function getProto(O) {
664
- return reflectGetProto(O);
665
- } : originalGetProto ? function getProto2(O) {
666
- if (!O || typeof O !== "object" && typeof O !== "function") {
667
- throw new TypeError("getProto: not an object");
668
- }
669
- return originalGetProto(O);
670
- } : getDunderProto ? function getProto3(O) {
671
- return getDunderProto(O);
672
- } : null;
673
708
  var hasown;
674
709
  var hasRequiredHasown;
675
710
  function requireHasown() {
@@ -721,10 +756,10 @@ var ThrowTypeError = $gOPD ? function() {
721
756
  }
722
757
  }
723
758
  }() : throwTypeError;
724
- var hasSymbols2 = requireHasSymbols()();
725
- var getProto$2 = getProto$3;
726
- var $ObjectGPO = Object_getPrototypeOf;
727
- var $ReflectGPO = Reflect_getPrototypeOf;
759
+ var hasSymbols = requireHasSymbols()();
760
+ var getProto$2 = requireGetProto();
761
+ var $ObjectGPO = requireObject_getPrototypeOf();
762
+ var $ReflectGPO = requireReflect_getPrototypeOf();
728
763
  var $apply$1 = requireFunctionApply();
729
764
  var $call = requireFunctionCall();
730
765
  var needsEval = {};
@@ -734,7 +769,7 @@ var INTRINSICS = {
734
769
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
735
770
  "%Array%": Array,
736
771
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
737
- "%ArrayIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
772
+ "%ArrayIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
738
773
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
739
774
  "%AsyncFunction%": needsEval,
740
775
  "%AsyncGenerator%": needsEval,
@@ -766,10 +801,10 @@ var INTRINSICS = {
766
801
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
767
802
  "%isFinite%": isFinite,
768
803
  "%isNaN%": isNaN,
769
- "%IteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
804
+ "%IteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
770
805
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
771
806
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
772
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
807
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
773
808
  "%Math%": Math,
774
809
  "%Number%": Number,
775
810
  "%Object%": $Object,
@@ -783,11 +818,11 @@ var INTRINSICS = {
783
818
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
784
819
  "%RegExp%": RegExp,
785
820
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
786
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
821
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
787
822
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
788
823
  "%String%": String,
789
- "%StringIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
790
- "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
824
+ "%StringIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
825
+ "%Symbol%": hasSymbols ? Symbol : undefined$1,
791
826
  "%SyntaxError%": $SyntaxError$1,
792
827
  "%ThrowTypeError%": ThrowTypeError,
793
828
  "%TypedArray%": TypedArray,
@@ -986,10 +1021,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
986
1021
  return void 0;
987
1022
  }
988
1023
  if ($gOPD && i + 1 >= parts.length) {
989
- var desc2 = $gOPD(value, part);
990
- isOwn = !!desc2;
991
- if (isOwn && "get" in desc2 && !("originalValue" in desc2.get)) {
992
- value = desc2.get;
1024
+ var desc = $gOPD(value, part);
1025
+ isOwn = !!desc;
1026
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
1027
+ value = desc.get;
993
1028
  } else {
994
1029
  value = value[part];
995
1030
  }
@@ -1112,7 +1147,7 @@ var callBound$1 = callBound$5;
1112
1147
  var safeRegexTest = safeRegexTest$1;
1113
1148
  var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
1114
1149
  var hasToStringTag$2 = shams();
1115
- var getProto$1 = getProto$3;
1150
+ var getProto$1 = requireGetProto();
1116
1151
  var toStr$2 = callBound$1("Object.prototype.toString");
1117
1152
  var fnToStr$1 = callBound$1("Function.prototype.toString");
1118
1153
  var getGeneratorFunc = function() {
@@ -1364,13 +1399,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
1364
1399
  var nonWritable = arguments.length > 4 ? arguments[4] : null;
1365
1400
  var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
1366
1401
  var loose = arguments.length > 6 ? arguments[6] : false;
1367
- var desc2 = !!gopd && gopd(obj, property);
1402
+ var desc = !!gopd && gopd(obj, property);
1368
1403
  if ($defineProperty$1) {
1369
1404
  $defineProperty$1(obj, property, {
1370
- configurable: nonConfigurable === null && desc2 ? desc2.configurable : !nonConfigurable,
1371
- enumerable: nonEnumerable === null && desc2 ? desc2.enumerable : !nonEnumerable,
1405
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
1406
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
1372
1407
  value,
1373
- writable: nonWritable === null && desc2 ? desc2.writable : !nonWritable
1408
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
1374
1409
  });
1375
1410
  } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
1376
1411
  obj[property] = value;
@@ -1410,11 +1445,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
1410
1445
  var functionLengthIsConfigurable = true;
1411
1446
  var functionLengthIsWritable = true;
1412
1447
  if ("length" in fn2 && gOPD$1) {
1413
- var desc2 = gOPD$1(fn2, "length");
1414
- if (desc2 && !desc2.configurable) {
1448
+ var desc = gOPD$1(fn2, "length");
1449
+ if (desc && !desc.configurable) {
1415
1450
  functionLengthIsConfigurable = false;
1416
1451
  }
1417
- if (desc2 && !desc2.writable) {
1452
+ if (desc && !desc.writable) {
1418
1453
  functionLengthIsWritable = false;
1419
1454
  }
1420
1455
  }
@@ -1471,7 +1506,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
1471
1506
  var callBind = callBindExports;
1472
1507
  var callBound = callBound$5;
1473
1508
  var gOPD = gopd$1;
1474
- var getProto4 = getProto$3;
1509
+ var getProto = requireGetProto();
1475
1510
  var $toString = callBound("Object.prototype.toString");
1476
1511
  var hasToStringTag = shams();
1477
1512
  var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
@@ -1486,14 +1521,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
1486
1521
  return -1;
1487
1522
  };
1488
1523
  var cache = { __proto__: null };
1489
- if (hasToStringTag && gOPD && getProto4) {
1524
+ if (hasToStringTag && gOPD && getProto) {
1490
1525
  forEach2(typedArrays, function(typedArray) {
1491
1526
  var arr = new g[typedArray]();
1492
- if (Symbol.toStringTag in arr && getProto4) {
1493
- var proto = getProto4(arr);
1527
+ if (Symbol.toStringTag in arr && getProto) {
1528
+ var proto = getProto(arr);
1494
1529
  var descriptor = gOPD(proto, Symbol.toStringTag);
1495
1530
  if (!descriptor && proto) {
1496
- var superProto = getProto4(proto);
1531
+ var superProto = getProto(proto);
1497
1532
  descriptor = gOPD(superProto, Symbol.toStringTag);
1498
1533
  }
1499
1534
  cache["$" + typedArray] = callBind(descriptor.get);
@@ -2086,16 +2121,16 @@ var isBufferBrowser = function isBuffer(arg) {
2086
2121
  return output;
2087
2122
  }
2088
2123
  function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
2089
- var name, str, desc2;
2090
- desc2 = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
2091
- if (desc2.get) {
2092
- if (desc2.set) {
2124
+ var name, str, desc;
2125
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
2126
+ if (desc.get) {
2127
+ if (desc.set) {
2093
2128
  str = ctx.stylize("[Getter/Setter]", "special");
2094
2129
  } else {
2095
2130
  str = ctx.stylize("[Getter]", "special");
2096
2131
  }
2097
2132
  } else {
2098
- if (desc2.set) {
2133
+ if (desc.set) {
2099
2134
  str = ctx.stylize("[Setter]", "special");
2100
2135
  }
2101
2136
  }
@@ -2103,11 +2138,11 @@ var isBufferBrowser = function isBuffer(arg) {
2103
2138
  name = "[" + key + "]";
2104
2139
  }
2105
2140
  if (!str) {
2106
- if (ctx.seen.indexOf(desc2.value) < 0) {
2141
+ if (ctx.seen.indexOf(desc.value) < 0) {
2107
2142
  if (isNull(recurseTimes)) {
2108
- str = formatValue(ctx, desc2.value, null);
2143
+ str = formatValue(ctx, desc.value, null);
2109
2144
  } else {
2110
- str = formatValue(ctx, desc2.value, recurseTimes - 1);
2145
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
2111
2146
  }
2112
2147
  if (str.indexOf("\n") > -1) {
2113
2148
  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-dFE2Jr2b.js";
3
- import { _ as _export_sfc } from "./chunks/editor-CGEU-2b7.js";
2
+ import { T as TextSelection } from "./chunks/converter-D4QevHSw.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-CUqQDQxM.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 = {}) {
@@ -22439,11 +22439,9 @@ const handleAnnotationNode = (params) => {
22439
22439
  textHighlight: parsedAttrs.fieldTextHighlight
22440
22440
  };
22441
22441
  attrs = attrsFromJSON;
22442
- console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
22443
22442
  } else {
22444
22443
  const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
22445
22444
  attrs = attrsFromElements;
22446
- console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
22447
22445
  }
22448
22446
  const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
22449
22447
  const allAttrs = { ...attrs, ...marksAsAttrs };
@@ -24319,7 +24317,7 @@ const _SuperConverter = class _SuperConverter {
24319
24317
  return;
24320
24318
  }
24321
24319
  }
24322
- static updateDocumentVersion(docx = this.convertedXml, version = "0.14.2-next.2") {
24320
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.14.2") {
24323
24321
  const customLocation = "docProps/custom.xml";
24324
24322
  if (!docx[customLocation]) {
24325
24323
  docx[customLocation] = generateCustomXml();
@@ -24798,7 +24796,7 @@ function storeSuperdocVersion(docx) {
24798
24796
  function generateCustomXml() {
24799
24797
  return DEFAULT_CUSTOM_XML;
24800
24798
  }
24801
- function generateSuperdocVersion(pid = 2, version = "0.14.2-next.2") {
24799
+ function generateSuperdocVersion(pid = 2, version = "0.14.2") {
24802
24800
  return {
24803
24801
  type: "element",
24804
24802
  name: "property",
@@ -1,4 +1,4 @@
1
- import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-dFE2Jr2b.js";
1
+ import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-D4QevHSw.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, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, e as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-dFE2Jr2b.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, e as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-D4QevHSw.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-BsY1xnjc.js";
17
+ import { D as DocxZipper } from "./docx-zipper-L44d28km.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -15015,7 +15015,7 @@ const _Editor = class _Editor extends EventEmitter {
15015
15015
  * @returns {Object | void} Migration results
15016
15016
  */
15017
15017
  processCollaborationMigrations() {
15018
- console.debug("[checkVersionMigrations] Current editor version", "0.14.2-next.2");
15018
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.2");
15019
15019
  if (!this.options.ydoc) return;
15020
15020
  const metaMap = this.options.ydoc.getMap("meta");
15021
15021
  let docVersion = metaMap.get("version");
@@ -17439,7 +17439,7 @@ init_fn2 = function() {
17439
17439
  this.contentDOM.className = "sd-editor-list-item-content-dom";
17440
17440
  let contentLeft = visibleIndent.left;
17441
17441
  if (visibleIndent.left === absoluteLeft) {
17442
- absoluteLeft -= 24;
17442
+ contentLeft = absoluteLeft + 48;
17443
17443
  }
17444
17444
  this.contentDOM.style.marginLeft = `${contentLeft}px`;
17445
17445
  this.numberingDOM.style.left = `${absoluteLeft}px`;
@@ -17523,16 +17523,9 @@ function orderedListSync(editor) {
17523
17523
  if (!shouldProcess) return null;
17524
17524
  newState.doc.descendants((node, pos) => {
17525
17525
  if (node.type.name !== "listItem") return;
17526
- const { level: attrLvl, numId: attrNumId, styleId } = node.attrs;
17526
+ const { level: attrLvl, numId: attrNumId, styleId, start: start2 } = node.attrs;
17527
17527
  const level = parseInt(attrLvl);
17528
17528
  const numId = parseInt(attrNumId);
17529
- const {
17530
- lvlText,
17531
- customFormat,
17532
- listNumberingType,
17533
- start: numberingDefStart
17534
- } = ListHelpers.getListDefinitionDetails({ numId, level, editor });
17535
- const start2 = parseInt(numberingDefStart) || 1;
17536
17529
  if (!listMap.has(numId)) {
17537
17530
  const generatedLevels = {};
17538
17531
  const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
@@ -17542,15 +17535,6 @@ function orderedListSync(editor) {
17542
17535
  let currentListLevels = [...listMap.get(numId)];
17543
17536
  if (!listInitialized.get(numId)) {
17544
17537
  listInitialized.set(numId, true);
17545
- if (typeof start2 === "number") {
17546
- while (currentListLevels.length <= level) {
17547
- currentListLevels.push(0);
17548
- }
17549
- currentListLevels[level] = start2;
17550
- for (let i = level + 1; i < currentListLevels.length; i++) {
17551
- currentListLevels[i] = 0;
17552
- }
17553
- }
17554
17538
  } else {
17555
17539
  while (currentListLevels.length <= level) {
17556
17540
  currentListLevels.push(0);
@@ -17564,6 +17548,11 @@ function orderedListSync(editor) {
17564
17548
  currentListLevels = [1];
17565
17549
  }
17566
17550
  listMap.set(numId, currentListLevels);
17551
+ const {
17552
+ lvlText,
17553
+ customFormat,
17554
+ listNumberingType
17555
+ } = ListHelpers.getListDefinitionDetails({ numId, level, editor });
17567
17556
  const updatedAttrs = {
17568
17557
  ...node.attrs,
17569
17558
  listLevel: [...currentListLevels],
@@ -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 { C as process$1 } from "./converter-dFE2Jr2b.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CGEU-2b7.js";
2
+ import { C as process$1 } from "./converter-D4QevHSw.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CUqQDQxM.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { X } from "./chunks/converter-dFE2Jr2b.js";
1
+ import { X } from "./chunks/converter-D4QevHSw.js";
2
2
  export {
3
3
  X as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"annotationImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/annotationImporter.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,uCAuEE;AAOK,yDA2CN;AAoCD;;GAEG;AACH,8CAGE"}
1
+ {"version":3,"file":"annotationImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/annotationImporter.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,uCAqEE;AAOK,yDA2CN;AAoCD;;GAEG;AACH,8CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-dFE2Jr2b.js";
2
- import { D } from "./chunks/docx-zipper-BsY1xnjc.js";
1
+ import "./chunks/converter-D4QevHSw.js";
2
+ import { D } from "./chunks/docx-zipper-L44d28km.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CGEU-2b7.js";
2
- import "./chunks/converter-dFE2Jr2b.js";
3
- import "./chunks/docx-zipper-BsY1xnjc.js";
1
+ import { E } from "./chunks/editor-CUqQDQxM.js";
2
+ import "./chunks/converter-D4QevHSw.js";
3
+ import "./chunks/docx-zipper-L44d28km.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemNodeView.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/ListItemNodeView.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH;IACE,mEASC;IARC,UAAgB;IAChB,YAAoB;IACpB,iBAA8B;IAC9B,UAAuB;IACvB,YAAoB;IAsCpB,mBAAuC;IAWvC,8BAAkD;IAOlD,2BAA+C;IAsBjD,uBAAwB,UAAK,UAG5B;IAED,gBAEC;;CACF;AAkGM,2CAJI,QAAQ,aACR,QAAQ,sBACN,YAAY,CAgBxB;;;;;WA1Na,MAAM;;;;YACN,MAAM;;;;gBACN,MAAM;;;;cACN,MAAM"}
1
+ {"version":3,"file":"ListItemNodeView.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/ListItemNodeView.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH;IACE,mEASC;IARC,UAAgB;IAChB,YAAoB;IACpB,iBAA8B;IAC9B,UAAuB;IACvB,YAAoB;IAsCpB,mBAAuC;IAWvC,8BAAkD;IAOlD,2BAA+C;IAiBjD,uBAAwB,UAAK,UAG5B;IAED,gBAEC;;CACF;AAkGM,2CAJI,QAAQ,aACR,QAAQ,sBACN,YAAY,CAgBxB;;;;;WArNa,MAAM;;;;YACN,MAAM;;;;gBACN,MAAM;;;;cACN,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"orderedListSyncPlugin.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ordered-list/helpers/orderedListSyncPlugin.js"],"names":[],"mappings":"AAMA,0DAyHC;AAED,mCAEC;AA/HD,sDAAyE;uBAJvC,mBAAmB;0BAAnB,mBAAmB"}
1
+ {"version":3,"file":"orderedListSyncPlugin.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ordered-list/helpers/orderedListSyncPlugin.js"],"names":[],"mappings":"AAMA,0DA2GC;AAED,mCAEC;AAjHD,sDAAyE;uBAJvC,mBAAmB;0BAAnB,mBAAmB"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-BsY1xnjc.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-L44d28km.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -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 { ab as getDefaultExportFromCjs, J as v4, ae as vClickOutside, af as readFromClipboard, T as TextSelection, ag as serializeSelectionToClipboard, ah as writeToClipboard, a as Plugin } from "./chunks/converter-dFE2Jr2b.js";
13
- import { X } from "./chunks/converter-dFE2Jr2b.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, f as findParentNode, c as getFileOpener, s as startImageUpload, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-CGEU-2b7.js";
15
- import { o, C, T, m, q, p, l, n } from "./chunks/editor-CGEU-2b7.js";
12
+ import { ab as getDefaultExportFromCjs, J as v4, ae as vClickOutside, af as readFromClipboard, T as TextSelection, ag as serializeSelectionToClipboard, ah as writeToClipboard, a as Plugin } from "./chunks/converter-D4QevHSw.js";
13
+ import { X } from "./chunks/converter-D4QevHSw.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, f as findParentNode, c as getFileOpener, s as startImageUpload, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-CUqQDQxM.js";
15
+ import { o, C, T, m, q, p, l, n } from "./chunks/editor-CUqQDQxM.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, createTextVNode, createVNode, h, withDirectives, withKeys, vModelText, createApp, markRaw, watch, 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-R0GEOSnM.js";
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--4jgiUTj.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-BsY1xnjc.js";
19
+ import { D } from "./chunks/docx-zipper-L44d28km.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  (function(module) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-R0GEOSnM.js";
3
- import "./chunks/editor-CGEU-2b7.js";
2
+ import { T } from "./chunks/toolbar--4jgiUTj.js";
3
+ import "./chunks/editor-CUqQDQxM.js";
4
4
  export {
5
5
  T as default
6
6
  };