@lowdefy/blocks-basic 4.0.1 → 4.0.2

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.
@@ -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 })=>/*#__PURE__*/ React.createElement("div", {
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',
@@ -24,6 +24,10 @@
24
24
  "onClick": {
25
25
  "type": "array",
26
26
  "description": "Trigger actions when the Box is clicked."
27
+ },
28
+ "onPaste": {
29
+ "type": "array",
30
+ "description": "Trigger actions when the element is focused and a paste event is triggered."
27
31
  }
28
32
  }
29
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-basic",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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": "4.0.1",
44
- "@lowdefy/helpers": "4.0.1",
43
+ "@lowdefy/block-utils": "4.0.2",
44
+ "@lowdefy/helpers": "4.0.2",
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": "4.0.1",
52
- "@lowdefy/jest-yaml-transform": "4.0.1",
51
+ "@lowdefy/block-dev": "4.0.2",
52
+ "@lowdefy/jest-yaml-transform": "4.0.2",
53
53
  "@swc/cli": "0.1.63",
54
54
  "@swc/core": "1.3.99",
55
55
  "@swc/jest": "0.2.29",