@lowdefy/blocks-basic 0.0.0-experimental-20240115131502 → 0.0.0-experimental-20241107140648
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.
- package/dist/blocks/Anchor/Anchor.js +1 -1
- package/dist/blocks/Box/Box.js +7 -2
- package/dist/blocks/Box/schema.json +4 -0
- package/dist/blocks/DangerousHtml/DangerousHtml.js +1 -1
- package/dist/blocks/Html/Html.js +1 -1
- package/dist/blocks/Icon/Icon.js +1 -1
- package/dist/blocks/Img/Img.js +1 -1
- package/dist/blocks/List/List.js +1 -1
- package/dist/blocks/Span/Span.js +1 -1
- package/dist/blocks.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +5 -5
package/dist/blocks/Box/Box.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -14,12 +14,16 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
16
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
17
|
-
const Box = ({ blockId, content, events, methods, properties })
|
|
17
|
+
const Box = ({ blockId, content, events, methods, properties })=>{
|
|
18
|
+
return /*#__PURE__*/ React.createElement("div", {
|
|
18
19
|
id: blockId,
|
|
19
20
|
"data-testid": blockId,
|
|
20
21
|
onClick: ()=>methods.triggerEvent({
|
|
21
22
|
name: 'onClick'
|
|
22
23
|
}),
|
|
24
|
+
onPaste: ()=>methods.triggerEvent({
|
|
25
|
+
name: 'onPaste'
|
|
26
|
+
}),
|
|
23
27
|
className: methods.makeCssClass([
|
|
24
28
|
{
|
|
25
29
|
outline: 'none',
|
|
@@ -28,6 +32,7 @@ const Box = ({ blockId, content, events, methods, properties })=>/*#__PURE__*/ R
|
|
|
28
32
|
properties.style
|
|
29
33
|
])
|
|
30
34
|
}, properties.content || content.content && content.content());
|
|
35
|
+
};
|
|
31
36
|
Box.defaultProps = blockDefaultProps;
|
|
32
37
|
Box.meta = {
|
|
33
38
|
category: 'container',
|
package/dist/blocks/Html/Html.js
CHANGED
package/dist/blocks/Icon/Icon.js
CHANGED
package/dist/blocks/Img/Img.js
CHANGED
package/dist/blocks/List/List.js
CHANGED
package/dist/blocks/Span/Span.js
CHANGED
package/dist/blocks.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-basic",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20241107140648",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Basic html Lowdefy blocks.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"dist/*"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
44
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
43
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20241107140648",
|
|
44
|
+
"@lowdefy/helpers": "0.0.0-experimental-20241107140648",
|
|
45
45
|
"dompurify": "3.0.6",
|
|
46
46
|
"react": "18.2.0",
|
|
47
47
|
"react-dom": "18.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@emotion/jest": "11.10.5",
|
|
51
|
-
"@lowdefy/block-dev": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-
|
|
51
|
+
"@lowdefy/block-dev": "0.0.0-experimental-20241107140648",
|
|
52
|
+
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-20241107140648",
|
|
53
53
|
"@swc/cli": "0.1.63",
|
|
54
54
|
"@swc/core": "1.3.99",
|
|
55
55
|
"@swc/jest": "0.2.29",
|