pxx-vue-quill 1.0.148 → 1.0.150

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.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Copyright (c) 2025 Pxx-Team
9
9
  * Released under the MIT license
10
- * Date: 2025-09-11T02:54:33.526Z
10
+ * Date: 2025-09-11T06:13:42.277Z
11
11
  */
12
12
  (function (global, factory) {
13
13
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -18769,44 +18769,52 @@
18769
18769
 
18770
18770
  var require$$0 = /*@__PURE__*/getAugmentedNamespace(es);
18771
18771
 
18772
- var Action$1 = {};
18772
+ var Action = {};
18773
18773
 
18774
- Object.defineProperty(Action$1, "__esModule", {
18775
- value: true
18776
- });
18774
+ var hasRequiredAction;
18777
18775
 
18778
- var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
18776
+ function requireAction () {
18777
+ if (hasRequiredAction) return Action;
18778
+ hasRequiredAction = 1;
18779
18779
 
18780
- var _BlotFormatter = requireBlotFormatter();
18780
+ Object.defineProperty(Action, "__esModule", {
18781
+ value: true
18782
+ });
18781
18783
 
18782
- _interopRequireDefault(_BlotFormatter);
18784
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
18783
18785
 
18784
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18786
+ var _BlotFormatter = requireBlotFormatter();
18785
18787
 
18786
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18788
+ _interopRequireDefault(_BlotFormatter);
18787
18789
 
18788
- var Action = function () {
18789
- function Action(formatter) {
18790
- _classCallCheck$1(this, Action);
18790
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18791
18791
 
18792
- this.formatter = formatter;
18793
- }
18792
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18794
18793
 
18795
- _createClass$1(Action, [{
18796
- key: 'onCreate',
18797
- value: function onCreate() {}
18798
- }, {
18799
- key: 'onDestroy',
18800
- value: function onDestroy() {}
18801
- }, {
18802
- key: 'onUpdate',
18803
- value: function onUpdate() {}
18804
- }]);
18794
+ var Action$1 = function () {
18795
+ function Action(formatter) {
18796
+ _classCallCheck(this, Action);
18805
18797
 
18806
- return Action;
18807
- }();
18798
+ this.formatter = formatter;
18799
+ }
18800
+
18801
+ _createClass(Action, [{
18802
+ key: 'onCreate',
18803
+ value: function onCreate() {}
18804
+ }, {
18805
+ key: 'onDestroy',
18806
+ value: function onDestroy() {}
18807
+ }, {
18808
+ key: 'onUpdate',
18809
+ value: function onUpdate() {}
18810
+ }]);
18808
18811
 
18809
- Action$1.default = Action;
18812
+ return Action;
18813
+ }();
18814
+
18815
+ Action.default = Action$1;
18816
+ return Action;
18817
+ }
18810
18818
 
18811
18819
  var hasRequiredBlotFormatter;
18812
18820
 
@@ -18828,7 +18836,7 @@
18828
18836
 
18829
18837
  var _Options2 = _interopRequireDefault(_Options);
18830
18838
 
18831
- var _Action = Action$1;
18839
+ var _Action = requireAction();
18832
18840
 
18833
18841
  _interopRequireDefault(_Action);
18834
18842
 
@@ -19267,7 +19275,7 @@
19267
19275
 
19268
19276
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
19269
19277
 
19270
- var _Action2 = Action$1;
19278
+ var _Action2 = requireAction();
19271
19279
 
19272
19280
  var _Action3 = _interopRequireDefault(_Action2);
19273
19281
 
@@ -19346,7 +19354,7 @@
19346
19354
 
19347
19355
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
19348
19356
 
19349
- var _Action2 = Action$1;
19357
+ var _Action2 = requireAction();
19350
19358
 
19351
19359
  var _Action3 = _interopRequireDefault(_Action2);
19352
19360
 
@@ -19535,7 +19543,7 @@
19535
19543
 
19536
19544
  var _quill2 = _interopRequireDefault(_quill);
19537
19545
 
19538
- var _Action2 = Action$1;
19546
+ var _Action2 = requireAction();
19539
19547
 
19540
19548
  var _Action3 = _interopRequireDefault(_Action2);
19541
19549
 
@@ -19614,7 +19622,7 @@
19614
19622
 
19615
19623
  _interopRequireDefault(_BlotFormatter);
19616
19624
 
19617
- var _Action = Action$1;
19625
+ var _Action = requireAction();
19618
19626
 
19619
19627
  _interopRequireDefault(_Action);
19620
19628
 
@@ -20070,7 +20078,7 @@
20070
20078
  }
20071
20079
  });
20072
20080
 
20073
- var _Action = Action$1;
20081
+ var _Action = requireAction();
20074
20082
 
20075
20083
  Object.defineProperty(exports, 'Action', {
20076
20084
  enumerable: true,
@@ -20969,8 +20977,15 @@
20969
20977
  const customLinkWidth = 310;
20970
20978
  const maxLeft = editorWidth - customLinkWidth - 16;
20971
20979
  const left = Math.min(bounds.left, Math.max(0, maxLeft));
20980
+ const editorRect = editorElement === null || editorElement === void 0 ? void 0 : editorElement.getBoundingClientRect();
20981
+ const containerRect = editorContainer === null || editorContainer === void 0 ? void 0 : editorContainer.getBoundingClientRect();
20982
+ if (!editorRect || !containerRect) {
20983
+ return { top: bounds.top + bounds.height + 5, left: left };
20984
+ }
20985
+ const editorOffsetTop = editorRect.top - containerRect.top;
20986
+ const top = editorOffsetTop + bounds.top + bounds.height + 5;
20972
20987
  return {
20973
- top: bounds.top + bounds.height + 5,
20988
+ top: top,
20974
20989
  left: left
20975
20990
  };
20976
20991
  }
@@ -21031,16 +21046,6 @@
21031
21046
  quill.formatText(linkIndex, linkLength, 'link', false);
21032
21047
  }
21033
21048
  }
21034
- if (data.text && data.text.trim()) {
21035
- if (currentRange && currentRange.length > 0) {
21036
- quill.deleteText(currentRange.index, currentRange.length);
21037
- quill.insertText(currentRange.index, data.text);
21038
- }
21039
- else if (currentRange) {
21040
- quill.insertText(currentRange.index, data.text);
21041
- quill.setSelection(currentRange.index + data.text.length, 0);
21042
- }
21043
- }
21044
21049
  }
21045
21050
  else {
21046
21051
  if (range.length > 0) {