@lowdefy/blocks-basic 5.6.0 → 6.0.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.
Files changed (33) hide show
  1. package/dist/blocks/Anchor/gallery.yaml +316 -0
  2. package/dist/blocks/Anchor/tests/Anchor.e2e.yaml +78 -0
  3. package/dist/blocks/Anchor/tests.yaml +109 -0
  4. package/dist/blocks/Box/gallery.yaml +1369 -0
  5. package/dist/blocks/Box/tests/Box.e2e.yaml +78 -0
  6. package/dist/blocks/Box/tests.yaml +43 -0
  7. package/dist/blocks/DangerousHtml/gallery.yaml +182 -0
  8. package/dist/blocks/DangerousHtml/tests/DangerousHtml.e2e.yaml +33 -0
  9. package/dist/blocks/DangerousHtml/tests.yaml +83 -0
  10. package/dist/blocks/Dynamic/Dynamic.js +35 -0
  11. package/dist/blocks/Dynamic/e2e.js +16 -0
  12. package/dist/blocks/Dynamic/meta.js +76 -0
  13. package/dist/blocks/Html/gallery.yaml +239 -0
  14. package/dist/blocks/Html/tests/Html.e2e.yaml +56 -0
  15. package/dist/blocks/Html/tests.yaml +75 -0
  16. package/dist/blocks/Icon/gallery.yaml +702 -0
  17. package/dist/blocks/Icon/tests/Icon.e2e.yaml +43 -0
  18. package/dist/blocks/Icon/tests.yaml +54 -0
  19. package/dist/blocks/Img/gallery.yaml +446 -0
  20. package/dist/blocks/Img/tests/Img.e2e.yaml +61 -0
  21. package/dist/blocks/Img/tests.yaml +74 -0
  22. package/dist/blocks/List/gallery.yaml +523 -0
  23. package/dist/blocks/List/tests/List.e2e.yaml +199 -0
  24. package/dist/blocks/List/tests.yaml +471 -0
  25. package/dist/blocks/Span/gallery.yaml +664 -0
  26. package/dist/blocks/Span/tests/Span.e2e.yaml +59 -0
  27. package/dist/blocks/Span/tests.yaml +43 -0
  28. package/dist/blocks/Throw/gallery.yaml +40 -0
  29. package/dist/blocks/Throw/tests.yaml +20 -0
  30. package/dist/blocks.js +1 -0
  31. package/dist/e2e.js +1 -0
  32. package/dist/metas.js +1 -0
  33. package/package.json +10 -10
@@ -0,0 +1,43 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - id: default
16
+ type: Span
17
+ - id: properties.content
18
+ type: Span
19
+ properties:
20
+ content: Foo
21
+ - id: properties.style
22
+ type: Span
23
+ properties:
24
+ style:
25
+ border: '1px solid blue'
26
+ - id: areas.content
27
+ type: Span
28
+ areas:
29
+ content:
30
+ blocks:
31
+ - id: testArea
32
+ type: Test
33
+ - id: events.onClick
34
+ type: Span
35
+ areas:
36
+ content:
37
+ blocks:
38
+ - id: testArea
39
+ type: Test
40
+ events:
41
+ onClick:
42
+ - id: testAction
43
+ type: Text
@@ -0,0 +1,40 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - title: Default Error
16
+ blocks:
17
+ - id: throw_default
18
+ type: Throw
19
+
20
+ - title: Custom Error Message
21
+ blocks:
22
+ - id: throw_custom
23
+ type: Throw
24
+ properties:
25
+ message: This is a custom error message thrown by the Throw block.
26
+
27
+ - title: Simulated Error Scenarios
28
+ blocks:
29
+ - id: throw_not_found
30
+ type: Throw
31
+ properties:
32
+ message: 'Error: Resource not found (404)'
33
+ - id: throw_permission
34
+ type: Throw
35
+ properties:
36
+ message: 'Error: Permission denied. You do not have access to this resource.'
37
+ - id: throw_timeout
38
+ type: Throw
39
+ properties:
40
+ message: 'Error: Request timed out after 30 seconds.'
@@ -0,0 +1,20 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - id: default
16
+ type: Throw
17
+ - id: properties.message
18
+ type: Throw
19
+ properties:
20
+ message: Custom error message
package/dist/blocks.js CHANGED
@@ -15,6 +15,7 @@
15
15
  */ export { default as Anchor } from './blocks/Anchor/Anchor.js';
16
16
  export { default as Box } from './blocks/Box/Box.js';
17
17
  export { default as DangerousHtml } from './blocks/DangerousHtml/DangerousHtml.js';
18
+ export { default as Dynamic } from './blocks/Dynamic/Dynamic.js';
18
19
  export { default as Html } from './blocks/Html/Html.js';
19
20
  export { default as Icon } from './blocks/Icon/Icon.js';
20
21
  export { default as Img } from './blocks/Img/Img.js';
package/dist/e2e.js CHANGED
@@ -15,6 +15,7 @@
15
15
  */ export { default as Anchor } from './blocks/Anchor/e2e.js';
16
16
  export { default as Box } from './blocks/Box/e2e.js';
17
17
  export { default as DangerousHtml } from './blocks/DangerousHtml/e2e.js';
18
+ export { default as Dynamic } from './blocks/Dynamic/e2e.js';
18
19
  export { default as Html } from './blocks/Html/e2e.js';
19
20
  export { default as Icon } from './blocks/Icon/e2e.js';
20
21
  export { default as Img } from './blocks/Img/e2e.js';
package/dist/metas.js CHANGED
@@ -15,6 +15,7 @@
15
15
  */ export { default as Anchor } from './blocks/Anchor/meta.js';
16
16
  export { default as Box } from './blocks/Box/meta.js';
17
17
  export { default as DangerousHtml } from './blocks/DangerousHtml/meta.js';
18
+ export { default as Dynamic } from './blocks/Dynamic/meta.js';
18
19
  export { default as Html } from './blocks/Html/meta.js';
19
20
  export { default as Icon } from './blocks/Icon/meta.js';
20
21
  export { default as Img } from './blocks/Img/meta.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-basic",
3
- "version": "5.6.0",
3
+ "version": "6.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Basic html Lowdefy blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -42,20 +42,20 @@
42
42
  "dist/*"
43
43
  ],
44
44
  "dependencies": {
45
- "@lowdefy/block-utils": "5.6.0",
46
- "@lowdefy/helpers": "5.6.0",
47
- "dompurify": "3.2.4"
45
+ "@lowdefy/block-utils": "6.0.0",
46
+ "@lowdefy/helpers": "6.0.0",
47
+ "dompurify": "3.4.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=18",
51
51
  "react-dom": ">=18"
52
52
  },
53
53
  "devDependencies": {
54
- "@lowdefy/block-dev-e2e": "5.6.0",
55
- "@lowdefy/e2e-utils": "5.6.0",
56
- "@playwright/test": "1.50.1",
57
- "@swc/cli": "0.8.0",
58
- "@swc/core": "1.15.18",
54
+ "@lowdefy/block-dev-e2e": "6.0.0",
55
+ "@lowdefy/e2e-utils": "6.0.0",
56
+ "@playwright/test": "1.59.1",
57
+ "@swc/cli": "0.8.1",
58
+ "@swc/core": "1.15.32",
59
59
  "copyfiles": "2.4.1"
60
60
  },
61
61
  "publishConfig": {
@@ -64,7 +64,7 @@
64
64
  "scripts": {
65
65
  "build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json && pnpm copyfiles",
66
66
  "clean": "rm -rf dist",
67
- "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
67
+ "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.snap\"",
68
68
  "e2e": "playwright test --config e2e/playwright.config.js",
69
69
  "e2e:ui": "playwright test --config e2e/playwright.config.js --ui"
70
70
  }