handsontable 0.0.0-next-b8f1220-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/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-b8f1220-20240516";
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-b8f1220-20240516";
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-b8f1220-20240516",
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 (event && event.preventDefault) {
619
- event.preventDefault();
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 (event && event.preventDefault) {
615
- event.preventDefault();
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'), {
@@ -10,5 +10,6 @@ class PasteEvent {
10
10
  constructor() {
11
11
  this.clipboardData = new _clipboardData.default();
12
12
  }
13
+ preventDefault() {}
13
14
  }
14
15
  exports.default = PasteEvent;
@@ -6,4 +6,5 @@ export default class PasteEvent {
6
6
  constructor() {
7
7
  this.clipboardData = new ClipboardData();
8
8
  }
9
+ preventDefault() {}
9
10
  }