pxx-vue-quill 1.0.135 → 1.0.136

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-10T09:01:46.360Z
10
+ * Date: 2025-09-10T09:04:18.293Z
11
11
  */
12
12
  (function (global, factory) {
13
13
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -18994,11 +18994,11 @@
18994
18994
  value: true
18995
18995
  });
18996
18996
 
18997
- 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; }; }();
18997
+ var _createClass$2 = 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; }; }();
18998
18998
 
18999
18999
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19000
19000
 
19001
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19001
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19002
19002
 
19003
19003
  var LEFT_ALIGN = 'left';
19004
19004
  var CENTER_ALIGN = 'center';
@@ -19009,7 +19009,7 @@
19009
19009
  var _this = this,
19010
19010
  _alignments;
19011
19011
 
19012
- _classCallCheck$1(this, DefaultAligner);
19012
+ _classCallCheck$2(this, DefaultAligner);
19013
19013
 
19014
19014
  this.applyStyle = options.aligner.applyStyle;
19015
19015
  this.alignAttribute = options.attribute;
@@ -19037,7 +19037,7 @@
19037
19037
  }), _alignments);
19038
19038
  }
19039
19039
 
19040
- _createClass$1(DefaultAligner, [{
19040
+ _createClass$2(DefaultAligner, [{
19041
19041
  key: 'getAlignments',
19042
19042
  value: function getAlignments() {
19043
19043
  var _this2 = this;
@@ -19346,31 +19346,31 @@
19346
19346
  value: true
19347
19347
  });
19348
19348
 
19349
- 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; }; }();
19349
+ 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; }; }();
19350
19350
 
19351
19351
  var _Action2 = requireAction();
19352
19352
 
19353
- var _Action3 = _interopRequireDefault(_Action2);
19353
+ var _Action3 = _interopRequireDefault$1(_Action2);
19354
19354
 
19355
- var _BlotFormatter = requireBlotFormatter();
19355
+ var _BlotFormatter$1 = requireBlotFormatter();
19356
19356
 
19357
- _interopRequireDefault(_BlotFormatter);
19357
+ _interopRequireDefault$1(_BlotFormatter$1);
19358
19358
 
19359
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19359
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19360
19360
 
19361
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19361
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19362
19362
 
19363
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
19363
+ function _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
19364
19364
 
19365
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19365
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19366
19366
 
19367
19367
  var ResizeAction = function (_Action) {
19368
- _inherits(ResizeAction, _Action);
19368
+ _inherits$1(ResizeAction, _Action);
19369
19369
 
19370
19370
  function ResizeAction(formatter) {
19371
- _classCallCheck(this, ResizeAction);
19371
+ _classCallCheck$1(this, ResizeAction);
19372
19372
 
19373
- var _this = _possibleConstructorReturn(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
19373
+ var _this = _possibleConstructorReturn$1(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
19374
19374
 
19375
19375
  _this.onMouseDown = function (event) {
19376
19376
  if (!(event.target instanceof HTMLElement)) {
@@ -19442,7 +19442,7 @@
19442
19442
  return _this;
19443
19443
  }
19444
19444
 
19445
- _createClass(ResizeAction, [{
19445
+ _createClass$1(ResizeAction, [{
19446
19446
  key: 'onCreate',
19447
19447
  value: function onCreate() {
19448
19448
  this.formatter.overlay.appendChild(this.topLeftHandle);
@@ -19754,156 +19754,148 @@
19754
19754
 
19755
19755
  var IframeVideoSpec = {};
19756
19756
 
19757
- var UnclickableBlotSpec = {};
19758
-
19759
- var hasRequiredUnclickableBlotSpec;
19760
-
19761
- function requireUnclickableBlotSpec () {
19762
- if (hasRequiredUnclickableBlotSpec) return UnclickableBlotSpec;
19763
- hasRequiredUnclickableBlotSpec = 1;
19757
+ var UnclickableBlotSpec$1 = {};
19764
19758
 
19765
- Object.defineProperty(UnclickableBlotSpec, "__esModule", {
19766
- value: true
19767
- });
19768
-
19769
- 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; }; }();
19759
+ Object.defineProperty(UnclickableBlotSpec$1, "__esModule", {
19760
+ value: true
19761
+ });
19770
19762
 
19771
- var _BlotSpec2 = requireBlotSpec();
19763
+ 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; }; }();
19772
19764
 
19773
- var _BlotSpec3 = _interopRequireDefault(_BlotSpec2);
19765
+ var _BlotSpec2 = requireBlotSpec();
19774
19766
 
19775
- var _BlotFormatter = requireBlotFormatter();
19767
+ var _BlotSpec3 = _interopRequireDefault(_BlotSpec2);
19776
19768
 
19777
- _interopRequireDefault(_BlotFormatter);
19769
+ var _BlotFormatter = requireBlotFormatter();
19778
19770
 
19779
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19771
+ _interopRequireDefault(_BlotFormatter);
19780
19772
 
19781
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19773
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19782
19774
 
19783
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
19775
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19784
19776
 
19785
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19777
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
19786
19778
 
19787
- var MOUSE_ENTER_ATTRIBUTE = 'data-blot-formatter-unclickable-bound';
19788
- var PROXY_IMAGE_CLASS = 'blot-formatter__proxy-image';
19779
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19789
19780
 
19790
- var UnclickableBlotSpec$1 = function (_BlotSpec) {
19791
- _inherits(UnclickableBlotSpec, _BlotSpec);
19781
+ var MOUSE_ENTER_ATTRIBUTE = 'data-blot-formatter-unclickable-bound';
19782
+ var PROXY_IMAGE_CLASS = 'blot-formatter__proxy-image';
19792
19783
 
19793
- function UnclickableBlotSpec(formatter, selector) {
19794
- _classCallCheck(this, UnclickableBlotSpec);
19784
+ var UnclickableBlotSpec = function (_BlotSpec) {
19785
+ _inherits(UnclickableBlotSpec, _BlotSpec);
19795
19786
 
19796
- var _this = _possibleConstructorReturn(this, (UnclickableBlotSpec.__proto__ || Object.getPrototypeOf(UnclickableBlotSpec)).call(this, formatter));
19787
+ function UnclickableBlotSpec(formatter, selector) {
19788
+ _classCallCheck(this, UnclickableBlotSpec);
19797
19789
 
19798
- _this.onTextChange = function () {
19799
- Array.from(document.querySelectorAll(_this.selector + ':not([' + MOUSE_ENTER_ATTRIBUTE + '])')).forEach(function (unclickable) {
19800
- unclickable.setAttribute(MOUSE_ENTER_ATTRIBUTE, 'true');
19801
- unclickable.addEventListener('mouseenter', _this.onMouseEnter);
19802
- });
19803
- };
19790
+ var _this = _possibleConstructorReturn(this, (UnclickableBlotSpec.__proto__ || Object.getPrototypeOf(UnclickableBlotSpec)).call(this, formatter));
19804
19791
 
19805
- _this.onMouseEnter = function (event) {
19806
- var unclickable = event.target;
19807
- if (!(unclickable instanceof HTMLElement)) {
19808
- return;
19809
- }
19792
+ _this.onTextChange = function () {
19793
+ Array.from(document.querySelectorAll(_this.selector + ':not([' + MOUSE_ENTER_ATTRIBUTE + '])')).forEach(function (unclickable) {
19794
+ unclickable.setAttribute(MOUSE_ENTER_ATTRIBUTE, 'true');
19795
+ unclickable.addEventListener('mouseenter', _this.onMouseEnter);
19796
+ });
19797
+ };
19810
19798
 
19811
- _this.nextUnclickable = unclickable;
19812
- _this.repositionProxyImage(_this.nextUnclickable);
19813
- };
19799
+ _this.onMouseEnter = function (event) {
19800
+ var unclickable = event.target;
19801
+ if (!(unclickable instanceof HTMLElement)) {
19802
+ return;
19803
+ }
19814
19804
 
19815
- _this.onProxyImageClick = function () {
19816
- _this.unclickable = _this.nextUnclickable;
19817
- _this.nextUnclickable = null;
19818
- _this.formatter.show(_this);
19819
- _this.hideProxyImage();
19820
- };
19805
+ _this.nextUnclickable = unclickable;
19806
+ _this.repositionProxyImage(_this.nextUnclickable);
19807
+ };
19821
19808
 
19822
- _this.selector = selector;
19823
- _this.unclickable = null;
19824
- _this.nextUnclickable = null;
19825
- return _this;
19826
- }
19809
+ _this.onProxyImageClick = function () {
19810
+ _this.unclickable = _this.nextUnclickable;
19811
+ _this.nextUnclickable = null;
19812
+ _this.formatter.show(_this);
19813
+ _this.hideProxyImage();
19814
+ };
19827
19815
 
19828
- _createClass(UnclickableBlotSpec, [{
19829
- key: 'init',
19830
- value: function init() {
19831
- if (document.body) {
19832
- /*
19833
- it's important that this is attached to the body instead of the root quill element.
19834
- this prevents the click event from overlapping with ImageSpec
19835
- */
19836
- document.body.appendChild(this.createProxyImage());
19837
- }
19816
+ _this.selector = selector;
19817
+ _this.unclickable = null;
19818
+ _this.nextUnclickable = null;
19819
+ return _this;
19820
+ }
19838
19821
 
19839
- this.hideProxyImage();
19840
- this.proxyImage.addEventListener('click', this.onProxyImageClick);
19841
- this.formatter.quill.on('text-change', this.onTextChange);
19842
- }
19843
- }, {
19844
- key: 'getTargetElement',
19845
- value: function getTargetElement() {
19846
- return this.unclickable;
19847
- }
19848
- }, {
19849
- key: 'getOverlayElement',
19850
- value: function getOverlayElement() {
19851
- return this.unclickable;
19852
- }
19853
- }, {
19854
- key: 'onHide',
19855
- value: function onHide() {
19856
- this.hideProxyImage();
19857
- this.nextUnclickable = null;
19858
- this.unclickable = null;
19859
- }
19860
- }, {
19861
- key: 'createProxyImage',
19862
- value: function createProxyImage() {
19863
- var canvas = document.createElement('canvas');
19864
- var context = canvas.getContext('2d');
19865
- context.globalAlpha = 0;
19866
- context.fillRect(0, 0, 1, 1);
19867
-
19868
- this.proxyImage = document.createElement('img');
19869
- this.proxyImage.src = canvas.toDataURL('image/png');
19870
- this.proxyImage.classList.add(PROXY_IMAGE_CLASS);
19871
-
19872
- Object.assign(this.proxyImage.style, {
19873
- position: 'absolute',
19874
- margin: '0'
19875
- });
19822
+ _createClass(UnclickableBlotSpec, [{
19823
+ key: 'init',
19824
+ value: function init() {
19825
+ if (document.body) {
19826
+ /*
19827
+ it's important that this is attached to the body instead of the root quill element.
19828
+ this prevents the click event from overlapping with ImageSpec
19829
+ */
19830
+ document.body.appendChild(this.createProxyImage());
19831
+ }
19876
19832
 
19877
- return this.proxyImage;
19878
- }
19879
- }, {
19880
- key: 'hideProxyImage',
19881
- value: function hideProxyImage() {
19882
- Object.assign(this.proxyImage.style, {
19883
- display: 'none'
19884
- });
19885
- }
19886
- }, {
19887
- key: 'repositionProxyImage',
19888
- value: function repositionProxyImage(unclickable) {
19889
- var rect = unclickable.getBoundingClientRect();
19833
+ this.hideProxyImage();
19834
+ this.proxyImage.addEventListener('click', this.onProxyImageClick);
19835
+ this.formatter.quill.on('text-change', this.onTextChange);
19836
+ }
19837
+ }, {
19838
+ key: 'getTargetElement',
19839
+ value: function getTargetElement() {
19840
+ return this.unclickable;
19841
+ }
19842
+ }, {
19843
+ key: 'getOverlayElement',
19844
+ value: function getOverlayElement() {
19845
+ return this.unclickable;
19846
+ }
19847
+ }, {
19848
+ key: 'onHide',
19849
+ value: function onHide() {
19850
+ this.hideProxyImage();
19851
+ this.nextUnclickable = null;
19852
+ this.unclickable = null;
19853
+ }
19854
+ }, {
19855
+ key: 'createProxyImage',
19856
+ value: function createProxyImage() {
19857
+ var canvas = document.createElement('canvas');
19858
+ var context = canvas.getContext('2d');
19859
+ context.globalAlpha = 0;
19860
+ context.fillRect(0, 0, 1, 1);
19861
+
19862
+ this.proxyImage = document.createElement('img');
19863
+ this.proxyImage.src = canvas.toDataURL('image/png');
19864
+ this.proxyImage.classList.add(PROXY_IMAGE_CLASS);
19865
+
19866
+ Object.assign(this.proxyImage.style, {
19867
+ position: 'absolute',
19868
+ margin: '0'
19869
+ });
19890
19870
 
19891
- Object.assign(this.proxyImage.style, {
19892
- display: 'block',
19893
- left: rect.left + window.pageXOffset + 'px',
19894
- top: rect.top + window.pageYOffset + 'px',
19895
- width: rect.width + 'px',
19896
- height: rect.height + 'px'
19897
- });
19898
- }
19899
- }]);
19871
+ return this.proxyImage;
19872
+ }
19873
+ }, {
19874
+ key: 'hideProxyImage',
19875
+ value: function hideProxyImage() {
19876
+ Object.assign(this.proxyImage.style, {
19877
+ display: 'none'
19878
+ });
19879
+ }
19880
+ }, {
19881
+ key: 'repositionProxyImage',
19882
+ value: function repositionProxyImage(unclickable) {
19883
+ var rect = unclickable.getBoundingClientRect();
19884
+
19885
+ Object.assign(this.proxyImage.style, {
19886
+ display: 'block',
19887
+ left: rect.left + window.pageXOffset + 'px',
19888
+ top: rect.top + window.pageYOffset + 'px',
19889
+ width: rect.width + 'px',
19890
+ height: rect.height + 'px'
19891
+ });
19892
+ }
19893
+ }]);
19900
19894
 
19901
- return UnclickableBlotSpec;
19902
- }(_BlotSpec3.default);
19895
+ return UnclickableBlotSpec;
19896
+ }(_BlotSpec3.default);
19903
19897
 
19904
- UnclickableBlotSpec.default = UnclickableBlotSpec$1;
19905
- return UnclickableBlotSpec;
19906
- }
19898
+ UnclickableBlotSpec$1.default = UnclickableBlotSpec;
19907
19899
 
19908
19900
  var hasRequiredIframeVideoSpec;
19909
19901
 
@@ -19915,7 +19907,7 @@
19915
19907
  value: true
19916
19908
  });
19917
19909
 
19918
- var _UnclickableBlotSpec2 = requireUnclickableBlotSpec();
19910
+ var _UnclickableBlotSpec2 = UnclickableBlotSpec$1;
19919
19911
 
19920
19912
  var _UnclickableBlotSpec3 = _interopRequireDefault(_UnclickableBlotSpec2);
19921
19913
 
@@ -20142,7 +20134,7 @@
20142
20134
  }
20143
20135
  });
20144
20136
 
20145
- var _UnclickableBlotSpec = requireUnclickableBlotSpec();
20137
+ var _UnclickableBlotSpec = UnclickableBlotSpec$1;
20146
20138
 
20147
20139
  Object.defineProperty(exports, 'UnclickableBlotSpec', {
20148
20140
  enumerable: true,