@lowdefy/blocks-qr 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.
@@ -0,0 +1,103 @@
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
+ # Note: QRScanner requires camera access to function.
16
+ # In the gallery preview, the scanner will not activate without a camera.
17
+ # These examples demonstrate the available configuration options.
18
+
19
+ - title: Default (Inactive)
20
+ blocks:
21
+ - id: qr_scanner_default
22
+ type: QRScanner
23
+ properties:
24
+ inactiveByDefault: true
25
+
26
+ - title: Custom Scan Area
27
+ blocks:
28
+ - id: qr_scanner_qrbox_number
29
+ type: QRScanner
30
+ properties:
31
+ inactiveByDefault: true
32
+ qrbox: 200
33
+ - id: qr_scanner_qrbox_object
34
+ type: QRScanner
35
+ properties:
36
+ inactiveByDefault: true
37
+ qrbox:
38
+ width: 300
39
+ height: 200
40
+
41
+ - title: Custom Aspect Ratio
42
+ blocks:
43
+ - id: qr_scanner_aspect_wide
44
+ type: QRScanner
45
+ properties:
46
+ inactiveByDefault: true
47
+ aspectRatio: 1.777778
48
+ - id: qr_scanner_aspect_square
49
+ type: QRScanner
50
+ properties:
51
+ inactiveByDefault: true
52
+ aspectRatio: 1
53
+
54
+ - title: Custom FPS
55
+ blocks:
56
+ - id: qr_scanner_fps_low
57
+ type: QRScanner
58
+ properties:
59
+ inactiveByDefault: true
60
+ fps: 5
61
+ - id: qr_scanner_fps_high
62
+ type: QRScanner
63
+ properties:
64
+ inactiveByDefault: true
65
+ fps: 30
66
+
67
+ - title: Disable Flip
68
+ blocks:
69
+ - id: qr_scanner_no_flip
70
+ type: QRScanner
71
+ properties:
72
+ inactiveByDefault: true
73
+ disableFlip: true
74
+
75
+ - title: Specific Barcode Formats
76
+ blocks:
77
+ - id: qr_scanner_qr_only
78
+ type: QRScanner
79
+ properties:
80
+ inactiveByDefault: true
81
+ formatsToSupport:
82
+ - QR_CODE
83
+ - id: qr_scanner_ean_codes
84
+ type: QRScanner
85
+ properties:
86
+ inactiveByDefault: true
87
+ formatsToSupport:
88
+ - EAN_13
89
+ - EAN_8
90
+ - UPC_A
91
+ - UPC_E
92
+ - id: qr_scanner_all_1d
93
+ type: QRScanner
94
+ properties:
95
+ inactiveByDefault: true
96
+ formatsToSupport:
97
+ - CODABAR
98
+ - CODE_39
99
+ - CODE_93
100
+ - CODE_128
101
+ - ITF
102
+ - EAN_13
103
+ - EAN_8
@@ -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: qrscanner
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # BASIC RENDERING
21
+ # ============================================
22
+
23
+ - id: qrscanner_basic
24
+ type: QRScanner
25
+ properties:
26
+ inactiveByDefault: true
27
+
28
+ - id: qrscanner_styled
29
+ type: QRScanner
30
+ properties:
31
+ inactiveByDefault: true
32
+ style:
33
+ width: 400
34
+ height: 300
35
+
36
+ # ============================================
37
+ # PROPERTY TESTS
38
+ # ============================================
39
+
40
+ - id: qrscanner_inactive
41
+ type: QRScanner
42
+ properties:
43
+ inactiveByDefault: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-qr",
3
- "version": "5.6.0",
3
+ "version": "6.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy qr blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -43,7 +43,7 @@
43
43
  "dist/*"
44
44
  ],
45
45
  "dependencies": {
46
- "@lowdefy/block-utils": "5.6.0",
46
+ "@lowdefy/block-utils": "6.0.0",
47
47
  "html5-qrcode": "2.3.8"
48
48
  },
49
49
  "peerDependencies": {
@@ -51,11 +51,11 @@
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
  }