@harbour-enterprises/superdoc 0.14.0-next.13 → 0.14.0-next.15

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 (30) hide show
  1. package/dist/chunks/{index-BJnbahW5.cjs → index-BYM9Q-5k.cjs} +2 -2
  2. package/dist/chunks/{index-DyPsU2Hr.es.js → index-CtKTO471.es.js} +2 -2
  3. package/dist/chunks/{index-D-GSlEOx.es.js → index-CtmwketW.es.js} +1 -1
  4. package/dist/chunks/{index-DgitWKaA.cjs → index-NNBaoa7m.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-Bk90ggjl.es.js → super-editor.es-BY1XaMEL.es.js} +6 -3
  6. package/dist/chunks/{super-editor.es-3UQe1A8v.cjs → super-editor.es-t9RYqB12.cjs} +6 -3
  7. package/dist/chunks/{url-mOsDfBsV.es.js → url-CGuSEi6H.es.js} +1 -1
  8. package/dist/chunks/{url-D_eIx0lS.cjs → url-CHbZrfPf.cjs} +1 -1
  9. package/dist/chunks/{xml-js-Clnb4wCO.cjs → xml-js-BjZxwY3_.cjs} +86 -121
  10. package/dist/chunks/{xml-js-Bl1Wa-pJ.es.js → xml-js-pilYeQmG.es.js} +86 -121
  11. package/dist/style.css +5 -0
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-DP6yMp7L.js → converter-Dm6WxbX5.js} +2 -2
  14. package/dist/super-editor/chunks/{docx-zipper-ByemBF_t.js → docx-zipper-BzAwwfY1.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-Chp3Wa1c.js → editor-DkxMqUJO.js} +3 -3
  16. package/dist/super-editor/chunks/{toolbar-h0ljQt19.js → toolbar-BWgTyiEK.js} +2 -2
  17. package/dist/super-editor/converter.es.js +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/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +5 -0
  22. package/dist/super-editor/super-editor.es.js +9 -6
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +5 -5
  27. package/dist/superdoc.es.js +6 -6
  28. package/dist/superdoc.umd.js +7 -4
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-D5XoMX4C.cjs");
3
3
  const vue = require("./vue-tQYF719J.cjs");
4
- const xmlJs = require("./xml-js-Clnb4wCO.cjs");
5
- const url = require("./url-D_eIx0lS.cjs");
4
+ const xmlJs = require("./xml-js-BjZxwY3_.cjs");
5
+ const url = require("./url-CHbZrfPf.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-CYDYUNnI.es.js";
2
2
  import { p as process$1 } from "./vue-lU0o_RlU.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-Bl1Wa-pJ.es.js";
4
- import { u as url } from "./url-mOsDfBsV.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-pilYeQmG.es.js";
4
+ import { u as url } from "./url-CGuSEi6H.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-CYDYUNnI.es.js";
2
- import { s as streamHttp, r as require$$1 } from "./index-DyPsU2Hr.es.js";
2
+ import { s as streamHttp, r as require$$1 } from "./index-CtKTO471.es.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-D5XoMX4C.cjs");
3
- const index$2 = require("./index-BJnbahW5.cjs");
3
+ const index$2 = require("./index-BYM9Q-5k.cjs");
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -24057,7 +24057,7 @@ const _SuperConverter = class _SuperConverter2 {
24057
24057
  return;
24058
24058
  }
24059
24059
  }
24060
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.13") {
24060
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.15") {
24061
24061
  const customLocation = "docProps/custom.xml";
24062
24062
  if (!docx[customLocation]) {
24063
24063
  docx[customLocation] = generateCustomXml();
@@ -24524,7 +24524,7 @@ function storeSuperdocVersion(docx) {
24524
24524
  function generateCustomXml() {
24525
24525
  return DEFAULT_CUSTOM_XML;
24526
24526
  }
24527
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.13") {
24527
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.15") {
24528
24528
  return {
24529
24529
  type: "element",
24530
24530
  name: "property",
@@ -41446,7 +41446,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41446
41446
  * @returns {Object | void} Migration results
41447
41447
  */
41448
41448
  processCollaborationMigrations() {
41449
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.13");
41449
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.15");
41450
41450
  if (!this.options.ydoc) return;
41451
41451
  const metaMap = this.options.ydoc.getMap("meta");
41452
41452
  let docVersion = metaMap.get("version");
@@ -70161,6 +70161,9 @@ const _sfc_main$5 = {
70161
70161
  }
70162
70162
  };
70163
70163
  const handleRightClick = async (event) => {
70164
+ if (event.ctrlKey) {
70165
+ return;
70166
+ }
70164
70167
  event.preventDefault();
70165
70168
  props.editor.view.dispatch(
70166
70169
  props.editor.view.state.tr.setMeta(SlashMenuPluginKey, {
@@ -24074,7 +24074,7 @@ const _SuperConverter = class _SuperConverter2 {
24074
24074
  return;
24075
24075
  }
24076
24076
  }
24077
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.13") {
24077
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.15") {
24078
24078
  const customLocation = "docProps/custom.xml";
24079
24079
  if (!docx[customLocation]) {
24080
24080
  docx[customLocation] = generateCustomXml();
@@ -24541,7 +24541,7 @@ function storeSuperdocVersion(docx) {
24541
24541
  function generateCustomXml() {
24542
24542
  return DEFAULT_CUSTOM_XML;
24543
24543
  }
24544
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.13") {
24544
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.15") {
24545
24545
  return {
24546
24546
  type: "element",
24547
24547
  name: "property",
@@ -41463,7 +41463,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41463
41463
  * @returns {Object | void} Migration results
41464
41464
  */
41465
41465
  processCollaborationMigrations() {
41466
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.13");
41466
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.15");
41467
41467
  if (!this.options.ydoc) return;
41468
41468
  const metaMap = this.options.ydoc.getMap("meta");
41469
41469
  let docVersion = metaMap.get("version");
@@ -70178,6 +70178,9 @@ const _sfc_main$5 = {
70178
70178
  }
70179
70179
  };
70180
70180
  const handleRightClick = async (event) => {
70181
+ if (event.ctrlKey) {
70182
+ return;
70183
+ }
70181
70184
  event.preventDefault();
70182
70185
  props.editor.view.dispatch(
70183
70186
  props.editor.view.state.tr.setMeta(SlashMenuPluginKey, {
@@ -1,5 +1,5 @@
1
1
  import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
2
- import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-Bl1Wa-pJ.es.js";
2
+ import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-pilYeQmG.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-D5XoMX4C.cjs");
3
- const xmlJs = require("./xml-js-Clnb4wCO.cjs");
3
+ const xmlJs = require("./xml-js-BjZxwY3_.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$1 = Math.max;
460
+ var max$2 = Math.max;
461
461
  var min$1 = Math.min;
462
462
  var pow$1 = Math.pow;
463
463
  var round$1 = Math.round;
@@ -514,116 +514,81 @@ function requireHasSymbols() {
514
514
  };
515
515
  return hasSymbols$1;
516
516
  }
517
- var Reflect_getPrototypeOf;
518
- var hasRequiredReflect_getPrototypeOf;
519
- function requireReflect_getPrototypeOf() {
520
- if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
521
- hasRequiredReflect_getPrototypeOf = 1;
522
- Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
523
- return Reflect_getPrototypeOf;
524
- }
525
- var Object_getPrototypeOf;
526
- var hasRequiredObject_getPrototypeOf;
527
- function requireObject_getPrototypeOf() {
528
- if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
529
- hasRequiredObject_getPrototypeOf = 1;
530
- var $Object2 = esObjectAtoms;
531
- Object_getPrototypeOf = $Object2.getPrototypeOf || null;
532
- return Object_getPrototypeOf;
533
- }
534
- var implementation;
535
- var hasRequiredImplementation;
536
- function requireImplementation() {
537
- if (hasRequiredImplementation) return implementation;
538
- hasRequiredImplementation = 1;
539
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
540
- var toStr2 = Object.prototype.toString;
541
- var max2 = Math.max;
542
- var funcType = "[object Function]";
543
- var concatty = function concatty2(a, b) {
544
- var arr = [];
545
- for (var i = 0; i < a.length; i += 1) {
546
- arr[i] = a[i];
547
- }
548
- for (var j = 0; j < b.length; j += 1) {
549
- arr[j + a.length] = b[j];
550
- }
551
- return arr;
552
- };
553
- var slicy = function slicy2(arrLike, offset) {
554
- var arr = [];
555
- for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
556
- arr[j] = arrLike[i];
557
- }
558
- return arr;
559
- };
560
- var joiny = function(arr, joiner) {
561
- var str = "";
562
- for (var i = 0; i < arr.length; i += 1) {
563
- str += arr[i];
564
- if (i + 1 < arr.length) {
565
- str += joiner;
566
- }
517
+ var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
518
+ var $Object$2 = esObjectAtoms;
519
+ var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
520
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
521
+ var toStr$3 = Object.prototype.toString;
522
+ var max$1 = Math.max;
523
+ var funcType = "[object Function]";
524
+ var concatty = function concatty2(a, b) {
525
+ var arr = [];
526
+ for (var i = 0; i < a.length; i += 1) {
527
+ arr[i] = a[i];
528
+ }
529
+ for (var j = 0; j < b.length; j += 1) {
530
+ arr[j + a.length] = b[j];
531
+ }
532
+ return arr;
533
+ };
534
+ var slicy = function slicy2(arrLike, offset) {
535
+ var arr = [];
536
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
537
+ arr[j] = arrLike[i];
538
+ }
539
+ return arr;
540
+ };
541
+ var joiny = function(arr, joiner) {
542
+ var str = "";
543
+ for (var i = 0; i < arr.length; i += 1) {
544
+ str += arr[i];
545
+ if (i + 1 < arr.length) {
546
+ str += joiner;
567
547
  }
568
- return str;
569
- };
570
- implementation = function bind2(that) {
571
- var target = this;
572
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
573
- throw new TypeError(ERROR_MESSAGE + target);
574
- }
575
- var args = slicy(arguments, 1);
576
- var bound;
577
- var binder = function() {
578
- if (this instanceof bound) {
579
- var result = target.apply(
580
- this,
581
- concatty(args, arguments)
582
- );
583
- if (Object(result) === result) {
584
- return result;
585
- }
586
- return this;
587
- }
588
- return target.apply(
589
- that,
548
+ }
549
+ return str;
550
+ };
551
+ var implementation$1 = function bind(that) {
552
+ var target = this;
553
+ if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
554
+ throw new TypeError(ERROR_MESSAGE + target);
555
+ }
556
+ var args = slicy(arguments, 1);
557
+ var bound;
558
+ var binder = function() {
559
+ if (this instanceof bound) {
560
+ var result = target.apply(
561
+ this,
590
562
  concatty(args, arguments)
591
563
  );
592
- };
593
- var boundLength = max2(0, target.length - args.length);
594
- var boundArgs = [];
595
- for (var i = 0; i < boundLength; i++) {
596
- boundArgs[i] = "$" + i;
597
- }
598
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
599
- if (target.prototype) {
600
- var Empty = function Empty2() {
601
- };
602
- Empty.prototype = target.prototype;
603
- bound.prototype = new Empty();
604
- Empty.prototype = null;
564
+ if (Object(result) === result) {
565
+ return result;
566
+ }
567
+ return this;
605
568
  }
606
- return bound;
569
+ return target.apply(
570
+ that,
571
+ concatty(args, arguments)
572
+ );
607
573
  };
608
- return implementation;
609
- }
610
- var functionBind;
611
- var hasRequiredFunctionBind;
612
- function requireFunctionBind() {
613
- if (hasRequiredFunctionBind) return functionBind;
614
- hasRequiredFunctionBind = 1;
615
- var implementation2 = requireImplementation();
616
- functionBind = Function.prototype.bind || implementation2;
617
- return functionBind;
618
- }
619
- var functionCall;
620
- var hasRequiredFunctionCall;
621
- function requireFunctionCall() {
622
- if (hasRequiredFunctionCall) return functionCall;
623
- hasRequiredFunctionCall = 1;
624
- functionCall = Function.prototype.call;
625
- return functionCall;
626
- }
574
+ var boundLength = max$1(0, target.length - args.length);
575
+ var boundArgs = [];
576
+ for (var i = 0; i < boundLength; i++) {
577
+ boundArgs[i] = "$" + i;
578
+ }
579
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
580
+ if (target.prototype) {
581
+ var Empty = function Empty2() {
582
+ };
583
+ Empty.prototype = target.prototype;
584
+ bound.prototype = new Empty();
585
+ Empty.prototype = null;
586
+ }
587
+ return bound;
588
+ };
589
+ var implementation = implementation$1;
590
+ var functionBind = Function.prototype.bind || implementation;
591
+ var functionCall = Function.prototype.call;
627
592
  var functionApply;
628
593
  var hasRequiredFunctionApply;
629
594
  function requireFunctionApply() {
@@ -633,14 +598,14 @@ function requireFunctionApply() {
633
598
  return functionApply;
634
599
  }
635
600
  var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
636
- var bind$3 = requireFunctionBind();
601
+ var bind$3 = functionBind;
637
602
  var $apply$2 = requireFunctionApply();
638
- var $call$2 = requireFunctionCall();
603
+ var $call$2 = functionCall;
639
604
  var $reflectApply = reflectApply$1;
640
605
  var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
641
- var bind$2 = requireFunctionBind();
606
+ var bind$2 = functionBind;
642
607
  var $TypeError$4 = type;
643
- var $call$1 = requireFunctionCall();
608
+ var $call$1 = functionCall;
644
609
  var $actualApply = actualApply$1;
645
610
  var callBindApplyHelpers = function callBindBasic(args) {
646
611
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -672,8 +637,8 @@ var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : type
672
637
  return $getPrototypeOf(value == null ? value : $Object$1(value));
673
638
  }
674
639
  ) : false;
675
- var reflectGetProto = requireReflect_getPrototypeOf();
676
- var originalGetProto = requireObject_getPrototypeOf();
640
+ var reflectGetProto = Reflect_getPrototypeOf;
641
+ var originalGetProto = Object_getPrototypeOf;
677
642
  var getDunderProto = get;
678
643
  var getProto$3 = reflectGetProto ? function getProto(O) {
679
644
  return reflectGetProto(O);
@@ -692,8 +657,8 @@ function requireHasown() {
692
657
  hasRequiredHasown = 1;
693
658
  var call = Function.prototype.call;
694
659
  var $hasOwn = Object.prototype.hasOwnProperty;
695
- var bind2 = requireFunctionBind();
696
- hasown = bind2.call(call, $hasOwn);
660
+ var bind3 = functionBind;
661
+ hasown = bind3.call(call, $hasOwn);
697
662
  return hasown;
698
663
  }
699
664
  var undefined$1;
@@ -707,7 +672,7 @@ var $TypeError$3 = type;
707
672
  var $URIError = uri;
708
673
  var abs = abs$1;
709
674
  var floor = floor$1;
710
- var max = max$1;
675
+ var max = max$2;
711
676
  var min = min$1;
712
677
  var pow = pow$1;
713
678
  var round = round$1;
@@ -738,10 +703,10 @@ var ThrowTypeError = $gOPD ? function() {
738
703
  }() : throwTypeError;
739
704
  var hasSymbols2 = requireHasSymbols()();
740
705
  var getProto$2 = getProto$3;
741
- var $ObjectGPO = requireObject_getPrototypeOf();
742
- var $ReflectGPO = requireReflect_getPrototypeOf();
706
+ var $ObjectGPO = Object_getPrototypeOf;
707
+ var $ReflectGPO = Reflect_getPrototypeOf;
743
708
  var $apply$1 = requireFunctionApply();
744
- var $call = requireFunctionCall();
709
+ var $call = functionCall;
745
710
  var needsEval = {};
746
711
  var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
747
712
  var INTRINSICS = {
@@ -912,7 +877,7 @@ var LEGACY_ALIASES = {
912
877
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
913
878
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
914
879
  };
915
- var bind$1 = requireFunctionBind();
880
+ var bind$1 = functionBind;
916
881
  var hasOwn$1 = requireHasown();
917
882
  var $concat = bind$1.call($call, Array.prototype.concat);
918
883
  var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
@@ -1454,11 +1419,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
1454
1419
  }
1455
1420
  return fn2;
1456
1421
  };
1457
- var bind = requireFunctionBind();
1422
+ var bind2 = functionBind;
1458
1423
  var $apply = requireFunctionApply();
1459
1424
  var actualApply = actualApply$1;
1460
1425
  var applyBind = function applyBind2() {
1461
- return actualApply(bind, $apply, arguments);
1426
+ return actualApply(bind2, $apply, arguments);
1462
1427
  };
1463
1428
  (function(module2) {
1464
1429
  var setFunctionLength$1 = setFunctionLength;