@lowdefy/blocks-native 0.0.0-experimental-20261027111447 → 7.2.0
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.
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
const NUMBER_PATTERN = /^-?\d
|
|
16
|
+
const NUMBER_PATTERN = /^-?\d*(?:\.\d*)?$/;
|
|
17
17
|
/**
|
|
18
18
|
* Reads the number typed in a NumberInput. An empty input is null. Text on its way to a number
|
|
19
19
|
* ("-", "1.") or that is no number at all is not valid, so the value keeps its last number
|
package/dist/htmlToText.js
CHANGED
|
@@ -27,6 +27,6 @@ function htmlToText(html) {
|
|
|
27
27
|
if (!type.isString(html)) {
|
|
28
28
|
return html;
|
|
29
29
|
}
|
|
30
|
-
return html.replace(/<br\s*\/?>/gi, '\n').replace(/<\/p>\s*<p[^>]*>/gi, '\n').replace(/<[
|
|
30
|
+
return html.replace(/<br\s*\/?>/gi, '\n').replace(/<\/p>\s*<p[^>]*>/gi, '\n').replace(/<[^<>]*>/g, '').replace(/&(amp|lt|gt|quot|#39|nbsp);/g, (entity)=>entities[entity]);
|
|
31
31
|
}
|
|
32
32
|
export default htmlToText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy blocks for the native (React Native) runtime.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@ai-sdk/react": "4.0.119",
|
|
45
|
-
"@lowdefy/block-utils": "
|
|
46
|
-
"@lowdefy/client-native": "
|
|
47
|
-
"@lowdefy/helpers": "
|
|
48
|
-
"@lowdefy/style-native": "
|
|
45
|
+
"@lowdefy/block-utils": "7.2.0",
|
|
46
|
+
"@lowdefy/client-native": "7.2.0",
|
|
47
|
+
"@lowdefy/helpers": "7.2.0",
|
|
48
|
+
"@lowdefy/style-native": "7.2.0",
|
|
49
49
|
"ai": "7.0.116",
|
|
50
50
|
"dayjs": "1.11.20",
|
|
51
51
|
"react-native-marked": "8.3.2"
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@babel/plugin-transform-class-static-block": "7.29.7",
|
|
70
70
|
"@expo/ui": "58.0.20",
|
|
71
71
|
"@jest/globals": "29.7.0",
|
|
72
|
-
"@lowdefy/actions-core": "
|
|
73
|
-
"@lowdefy/operators-js": "
|
|
72
|
+
"@lowdefy/actions-core": "7.2.0",
|
|
73
|
+
"@lowdefy/operators-js": "7.2.0",
|
|
74
74
|
"@react-native/babel-preset": "0.88.0",
|
|
75
75
|
"@react-native/jest-preset": "0.88.0",
|
|
76
76
|
"@swc/cli": "0.8.1",
|