handsontable 0.0.0-next-0146b3f-20240129 → 0.0.0-next-4a0d0f1-20240131
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/core.d.ts +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +1592 -1796
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +1594 -1798
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +17 -17
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/utils/parseTable.js +1 -9
- package/utils/parseTable.mjs +1 -9
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-4a0d0f1-20240131";
|
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-4a0d0f1-20240131";
|
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-4a0d0f1-20240131",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
package/utils/parseTable.js
CHANGED
@@ -5,7 +5,6 @@ exports._dataToHTML = _dataToHTML;
|
|
5
5
|
exports.htmlToGridSettings = htmlToGridSettings;
|
6
6
|
exports.instanceToHTML = instanceToHTML;
|
7
7
|
require("core-js/modules/es.array.push.js");
|
8
|
-
require("core-js/modules/es.string.replace-all.js");
|
9
8
|
var _mixed = require("./../helpers/mixed");
|
10
9
|
const ESCAPED_HTML_CHARS = {
|
11
10
|
' ': '\x20',
|
@@ -141,14 +140,7 @@ function htmlToGridSettings(element) {
|
|
141
140
|
if (typeof checkElement === 'string') {
|
142
141
|
const escapedAdjacentHTML = checkElement.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g, cellFragment => {
|
143
142
|
const openingTag = cellFragment.match(/<td\b[^>]*?>/g)[0];
|
144
|
-
const
|
145
|
-
const cellValue = cellFragment.substring(openingTag.length, cellFragment.lastIndexOf('<')).trim() // Removing whitespaces from the start and the end of HTML fragment
|
146
|
-
.replaceAll(/\n\s+/g, ' ') // HTML tags may be split using multiple new lines and whitespaces
|
147
|
-
.replaceAll(paragraphRegexp, '\n') // Only paragraphs should split text using new line characters
|
148
|
-
.replace('\n', '') // First paragraph shouldn't start with new line characters
|
149
|
-
.replaceAll(/<\/(.*)>\s+$/mg, '</$1>') // HTML tags may end with whitespace.
|
150
|
-
.replace(/(<(?!br)([^>]+)>)/gi, '') // Removing HTML tags
|
151
|
-
.replaceAll(/^ $/mg, ''); // Removing single characters separating new lines
|
143
|
+
const cellValue = cellFragment.substring(openingTag.length, cellFragment.lastIndexOf('<')).replace(/(<(?!br)([^>]+)>)/gi, '');
|
152
144
|
const closingTag = '</td>';
|
153
145
|
return `${openingTag}${cellValue}${closingTag}`;
|
154
146
|
});
|
package/utils/parseTable.mjs
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import "core-js/modules/es.array.push.js";
|
2
|
-
import "core-js/modules/es.string.replace-all.js";
|
3
2
|
import { isEmpty } from "./../helpers/mixed.mjs";
|
4
3
|
const ESCAPED_HTML_CHARS = {
|
5
4
|
' ': '\x20',
|
@@ -135,14 +134,7 @@ export function htmlToGridSettings(element) {
|
|
135
134
|
if (typeof checkElement === 'string') {
|
136
135
|
const escapedAdjacentHTML = checkElement.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g, cellFragment => {
|
137
136
|
const openingTag = cellFragment.match(/<td\b[^>]*?>/g)[0];
|
138
|
-
const
|
139
|
-
const cellValue = cellFragment.substring(openingTag.length, cellFragment.lastIndexOf('<')).trim() // Removing whitespaces from the start and the end of HTML fragment
|
140
|
-
.replaceAll(/\n\s+/g, ' ') // HTML tags may be split using multiple new lines and whitespaces
|
141
|
-
.replaceAll(paragraphRegexp, '\n') // Only paragraphs should split text using new line characters
|
142
|
-
.replace('\n', '') // First paragraph shouldn't start with new line characters
|
143
|
-
.replaceAll(/<\/(.*)>\s+$/mg, '</$1>') // HTML tags may end with whitespace.
|
144
|
-
.replace(/(<(?!br)([^>]+)>)/gi, '') // Removing HTML tags
|
145
|
-
.replaceAll(/^ $/mg, ''); // Removing single characters separating new lines
|
137
|
+
const cellValue = cellFragment.substring(openingTag.length, cellFragment.lastIndexOf('<')).replace(/(<(?!br)([^>]+)>)/gi, '');
|
146
138
|
const closingTag = '</td>';
|
147
139
|
return `${openingTag}${cellValue}${closingTag}`;
|
148
140
|
});
|