@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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 })=>/*#__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
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
package/dist/blocks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/namespace */ /*
2
- Copyright 2020-2023 Lowdefy, Inc
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-basic",
3
- "version": "0.0.0-experimental-20240115131502",
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-20240115131502",
44
- "@lowdefy/helpers": "0.0.0-experimental-20240115131502",
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-20240115131502",
52
- "@lowdefy/jest-yaml-transform": "0.0.0-experimental-20240115131502",
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",