handsontable 0.0.0-next-b307d00-20231030 → 0.0.0-next-f6b3dec-20231030

Sign up to get free protection for your applications and to get access to all the features.

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-b307d00-20231030";
137
+ const hotVersion = "0.0.0-next-f6b3dec-20231030";
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-b307d00-20231030";
127
+ const hotVersion = "0.0.0-next-f6b3dec-20231030";
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-b307d00-20231030",
13
+ "version": "0.0.0-next-f6b3dec-20231030",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
package/pluginHooks.js CHANGED
@@ -2619,7 +2619,7 @@ const REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], [
2619
2619
  * @type {Map<string, string>}
2620
2620
  */
2621
2621
  /* eslint-enable jsdoc/require-description-complete-sentence */
2622
- const DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2622
+ const DEPRECATED_HOOKS = new Map([[]]);
2623
2623
  class Hooks {
2624
2624
  static getSingleton() {
2625
2625
  return getGlobalSingleton();
package/pluginHooks.mjs CHANGED
@@ -2617,7 +2617,7 @@ const REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], [
2617
2617
  * @type {Map<string, string>}
2618
2618
  */
2619
2619
  /* eslint-enable jsdoc/require-description-complete-sentence */
2620
- const DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2620
+ const DEPRECATED_HOOKS = new Map([[]]);
2621
2621
  class Hooks {
2622
2622
  static getSingleton() {
2623
2623
  return getGlobalSingleton();
@@ -188,6 +188,9 @@ class MergeCells extends _base.BasePlugin {
188
188
  this.addHook('afterDrawSelection', function () {
189
189
  return _this.onAfterDrawSelection(...arguments);
190
190
  });
191
+ this.addHook('beforeRemoveCellClassNames', function () {
192
+ return _this.onBeforeRemoveCellClassNames(...arguments);
193
+ });
191
194
  this.addHook('beforeUndoStackChange', (action, source) => {
192
195
  if (source === 'MergeCells') {
193
196
  return false;
@@ -1199,5 +1202,16 @@ class MergeCells extends _base.BasePlugin {
1199
1202
  }
1200
1203
  return this.selectionCalculations.getSelectedMergedCellClassName(currentRow, currentColumn, cornersOfSelection, layerLevel);
1201
1204
  }
1205
+
1206
+ /**
1207
+ * `beforeRemoveCellClassNames` hook callback. Used to remove additional class name from all cells in the table.
1208
+ *
1209
+ * @private
1210
+ * @returns {string[]} An `Array` of `String`s. Each of these strings will act like class names to be removed from
1211
+ * all the cells in the table.
1212
+ */
1213
+ onBeforeRemoveCellClassNames() {
1214
+ return this.selectionCalculations.getSelectedMergedCellClassNameToRemove();
1215
+ }
1202
1216
  }
1203
1217
  exports.MergeCells = MergeCells;
@@ -182,6 +182,9 @@ export class MergeCells extends BasePlugin {
182
182
  this.addHook('afterDrawSelection', function () {
183
183
  return _this.onAfterDrawSelection(...arguments);
184
184
  });
185
+ this.addHook('beforeRemoveCellClassNames', function () {
186
+ return _this.onBeforeRemoveCellClassNames(...arguments);
187
+ });
185
188
  this.addHook('beforeUndoStackChange', (action, source) => {
186
189
  if (source === 'MergeCells') {
187
190
  return false;
@@ -1193,4 +1196,15 @@ export class MergeCells extends BasePlugin {
1193
1196
  }
1194
1197
  return this.selectionCalculations.getSelectedMergedCellClassName(currentRow, currentColumn, cornersOfSelection, layerLevel);
1195
1198
  }
1199
+
1200
+ /**
1201
+ * `beforeRemoveCellClassNames` hook callback. Used to remove additional class name from all cells in the table.
1202
+ *
1203
+ * @private
1204
+ * @returns {string[]} An `Array` of `String`s. Each of these strings will act like class names to be removed from
1205
+ * all the cells in the table.
1206
+ */
1207
+ onBeforeRemoveCellClassNames() {
1208
+ return this.selectionCalculations.getSelectedMergedCellClassNameToRemove();
1209
+ }
1196
1210
  }