@lowdefy/blocks-basic 4.0.0-rc.0 → 4.0.0-rc.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.
@@ -1,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,7 +12,21 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { get } from '@lowdefy/helpers';
31
31
  import { blockDefaultProps } from '@lowdefy/block-utils';
32
32
  const AnchorBlock = ({ blockId , events , components: { Icon , Link } , methods , properties })=>{
@@ -39,7 +39,7 @@ const AnchorBlock = ({ blockId , events , components: { Icon , Link } , methods
39
39
  disabled && {
40
40
  color: '#BEBEBE',
41
41
  cursor: 'not-allowed'
42
- },
42
+ }
43
43
  ]),
44
44
  disabled: disabled,
45
45
  onClick: ()=>methods.triggerEvent({
@@ -46,6 +46,10 @@
46
46
  "type": "string",
47
47
  "description": "When the link is clicked, route to the provided Lowdefy page."
48
48
  },
49
+ "href": {
50
+ "type": "string",
51
+ "description": "The href to link to when the anchor link is clicked."
52
+ },
49
53
  "url": {
50
54
  "type": "string",
51
55
  "description": "External url to link to when the anchor link is clicked."
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
@@ -25,7 +25,7 @@ const Box = ({ blockId , content , events , methods , properties })=>/*#__PURE_
25
25
  outline: 'none',
26
26
  cursor: events.onClick && 'pointer'
27
27
  },
28
- properties.style,
28
+ properties.style
29
29
  ])
30
30
  }, properties.content || content.content && content.content());
31
31
  Box.defaultProps = blockDefaultProps;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,7 +12,21 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { blockDefaultProps } from '@lowdefy/block-utils';
31
31
  const IconBlock = ({ components: { Icon } , ...props })=>/*#__PURE__*/ React.createElement(Icon, _extends({}, props));
32
32
  IconBlock.defaultProps = blockDefaultProps;
@@ -1,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,7 +12,21 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { blockDefaultProps } from '@lowdefy/block-utils';
31
31
  const ImgBlock = ({ blockId , events , properties , methods })=>{
32
32
  const { style , ...allProps } = properties;
@@ -41,7 +41,7 @@ const ImgBlock = ({ blockId , events , properties , methods })=>{
41
41
  outline: 'none',
42
42
  cursor: events.onClick && 'pointer'
43
43
  },
44
- style,
44
+ style
45
45
  ])
46
46
  }));
47
47
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
@@ -25,7 +25,7 @@ const Span = ({ blockId , content , events , methods , properties })=>/*#__PURE
25
25
  outline: 'none',
26
26
  cursor: events.onClick && 'pointer'
27
27
  },
28
- properties.style,
28
+ properties.style
29
29
  ])
30
30
  }, properties.content || content.content && content.content());
31
31
  Span.defaultProps = blockDefaultProps;
package/dist/blocks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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": "4.0.0-rc.0",
3
+ "version": "4.0.0-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Basic html Lowdefy blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -44,26 +44,25 @@
44
44
  "clean": "rm -rf dist",
45
45
  "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
46
46
  "prepublishOnly": "pnpm build",
47
- "test:watch": "jest --coverage --watch",
48
- "test": "jest --coverage"
47
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
49
48
  },
50
49
  "dependencies": {
51
- "@lowdefy/block-utils": "4.0.0-rc.0",
52
- "@lowdefy/helpers": "4.0.0-rc.0",
53
- "dompurify": "2.3.8",
50
+ "@lowdefy/block-utils": "4.0.0-rc.2",
51
+ "@lowdefy/helpers": "4.0.0-rc.2",
52
+ "dompurify": "2.4.1",
54
53
  "react": "18.2.0",
55
54
  "react-dom": "18.2.0"
56
55
  },
57
56
  "devDependencies": {
58
- "@emotion/jest": "11.9.1",
59
- "@lowdefy/block-dev": "4.0.0-rc.0",
60
- "@lowdefy/jest-yaml-transform": "4.0.0-rc.0",
61
- "@swc/cli": "0.1.57",
62
- "@swc/core": "1.2.194",
63
- "@swc/jest": "0.2.21",
64
- "@testing-library/dom": "8.13.0",
65
- "@testing-library/react": "13.3.0",
66
- "@testing-library/user-event": "14.2.0",
57
+ "@emotion/jest": "11.10.5",
58
+ "@lowdefy/block-dev": "4.0.0-rc.2",
59
+ "@lowdefy/jest-yaml-transform": "4.0.0-rc.2",
60
+ "@swc/cli": "0.1.59",
61
+ "@swc/core": "1.3.24",
62
+ "@swc/jest": "0.2.24",
63
+ "@testing-library/dom": "8.19.1",
64
+ "@testing-library/react": "13.4.0",
65
+ "@testing-library/user-event": "14.4.3",
67
66
  "copyfiles": "2.4.1",
68
67
  "jest": "28.1.0",
69
68
  "jest-environment-jsdom": "28.1.0",
@@ -72,5 +71,5 @@
72
71
  "publishConfig": {
73
72
  "access": "public"
74
73
  },
75
- "gitHead": "f6872d7ff6da421710096536fce7b2016ef8f35c"
74
+ "gitHead": "ac0dec732efb3b3cb06c82941d8f829c9fa65dff"
76
75
  }