handsontable 0.0.0-next-55e7657-20240516 → 0.0.0-next-9359dd5-20240516
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.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +15 -7
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +15 -7
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/copyPaste/copyPaste.js +9 -2
- package/plugins/copyPaste/copyPaste.mjs +9 -2
- package/plugins/copyPaste/pasteEvent.js +1 -0
- package/plugins/copyPaste/pasteEvent.mjs +1 -0
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-9359dd5-20240516";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-9359dd5-20240516";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-9359dd5-20240516",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -556,6 +556,9 @@ class CopyPaste extends _base.BasePlugin {
|
|
556
556
|
if (!this.hot.isListening() && !_classPrivateFieldGet(_isTriggeredByCopy, this) || this.isEditorOpened()) {
|
557
557
|
return;
|
558
558
|
}
|
559
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
560
|
+
return;
|
561
|
+
}
|
559
562
|
this.setCopyableText();
|
560
563
|
_classPrivateFieldSet(_isTriggeredByCopy, this, false);
|
561
564
|
const data = this.getRangedData(this.copyableRanges);
|
@@ -586,6 +589,9 @@ class CopyPaste extends _base.BasePlugin {
|
|
586
589
|
if (!this.hot.isListening() && !_classPrivateFieldGet(_isTriggeredByCut, this) || this.isEditorOpened()) {
|
587
590
|
return;
|
588
591
|
}
|
592
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
593
|
+
return;
|
594
|
+
}
|
589
595
|
this.setCopyableText();
|
590
596
|
_classPrivateFieldSet(_isTriggeredByCut, this, false);
|
591
597
|
const rangedData = this.getRangedData(this.copyableRanges);
|
@@ -615,9 +621,10 @@ class CopyPaste extends _base.BasePlugin {
|
|
615
621
|
if (!this.hot.isListening() || this.isEditorOpened() || !this.hot.getSelected()) {
|
616
622
|
return;
|
617
623
|
}
|
618
|
-
if (
|
619
|
-
|
624
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
625
|
+
return;
|
620
626
|
}
|
627
|
+
event.preventDefault();
|
621
628
|
let pastedData;
|
622
629
|
if (event && typeof event.clipboardData !== 'undefined') {
|
623
630
|
const textHTML = (0, _string.sanitize)(event.clipboardData.getData('text/html'), {
|
@@ -552,6 +552,9 @@ export class CopyPaste extends BasePlugin {
|
|
552
552
|
if (!this.hot.isListening() && !_classPrivateFieldGet(_isTriggeredByCopy, this) || this.isEditorOpened()) {
|
553
553
|
return;
|
554
554
|
}
|
555
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
556
|
+
return;
|
557
|
+
}
|
555
558
|
this.setCopyableText();
|
556
559
|
_classPrivateFieldSet(_isTriggeredByCopy, this, false);
|
557
560
|
const data = this.getRangedData(this.copyableRanges);
|
@@ -582,6 +585,9 @@ export class CopyPaste extends BasePlugin {
|
|
582
585
|
if (!this.hot.isListening() && !_classPrivateFieldGet(_isTriggeredByCut, this) || this.isEditorOpened()) {
|
583
586
|
return;
|
584
587
|
}
|
588
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
589
|
+
return;
|
590
|
+
}
|
585
591
|
this.setCopyableText();
|
586
592
|
_classPrivateFieldSet(_isTriggeredByCut, this, false);
|
587
593
|
const rangedData = this.getRangedData(this.copyableRanges);
|
@@ -611,9 +617,10 @@ export class CopyPaste extends BasePlugin {
|
|
611
617
|
if (!this.hot.isListening() || this.isEditorOpened() || !this.hot.getSelected()) {
|
612
618
|
return;
|
613
619
|
}
|
614
|
-
if (
|
615
|
-
|
620
|
+
if (!this.hot.getSettings().outsideClickDeselects && event.target !== this.hot.rootDocument.body) {
|
621
|
+
return;
|
616
622
|
}
|
623
|
+
event.preventDefault();
|
617
624
|
let pastedData;
|
618
625
|
if (event && typeof event.clipboardData !== 'undefined') {
|
619
626
|
const textHTML = sanitize(event.clipboardData.getData('text/html'), {
|