snice 3.10.0 → 3.10.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.
- package/bin/templates/pwa/tsconfig.json +9 -12
- package/dist/components/file-gallery/snice-file-gallery.js +1 -1
- package/dist/components/file-gallery/snice-file-gallery.js.map +1 -1
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +13 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +13 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/parts.d.ts +0 -4
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/components/qr-reader.md +1 -0
- package/docs/components/qr-reader.md +10 -0
- package/package.json +1 -1
package/dist/parts.d.ts
CHANGED
|
@@ -126,10 +126,6 @@ export declare function parseKeyboardFilter(spec: string): KeyboardFilter;
|
|
|
126
126
|
* Check if keyboard event matches the filter
|
|
127
127
|
*/
|
|
128
128
|
export declare function matchesKeyboardFilter(event: KeyboardEvent, filter: KeyboardFilter): boolean;
|
|
129
|
-
/**
|
|
130
|
-
* ConditionalIfPart handles <if> conditional rendering
|
|
131
|
-
* Removes/inserts DOM nodes based on condition
|
|
132
|
-
*/
|
|
133
129
|
export declare class ConditionalIfPart extends Part {
|
|
134
130
|
private ifElement;
|
|
135
131
|
private value;
|
package/dist/symbols.cjs
CHANGED
package/dist/symbols.esm.js
CHANGED
package/dist/transitions.cjs
CHANGED
package/dist/transitions.esm.js
CHANGED
|
@@ -10,6 +10,7 @@ QR code scanner using device camera and ZXing WASM decoder.
|
|
|
10
10
|
- `pick-first: boolean = false` - Scan at max speed until first hit, then stop and shutdown
|
|
11
11
|
- `manual-snap: boolean = false` - Photo mode: open camera, manually trigger snapshots
|
|
12
12
|
- `scan-speed: number = 3` - Scan speed 1-10 (higher = faster, more CPU). Ignored when pick-first=true
|
|
13
|
+
- `tap-start: boolean = false` - Enable tap/click on viewport to start/stop scanning
|
|
13
14
|
|
|
14
15
|
### Methods
|
|
15
16
|
- `start()` - Start camera/scanning
|
|
@@ -81,6 +81,16 @@
|
|
|
81
81
|
<snice-qr-reader scan-speed="10"></snice-qr-reader>
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
### `tap-start`
|
|
85
|
+
- **Type**: `boolean`
|
|
86
|
+
- **Default**: `false`
|
|
87
|
+
- **Description**: Enable tap/click interaction on the camera viewport to start/stop scanning. When enabled, clicking or tapping anywhere on the video preview will toggle scanning on/off.
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<!-- Enable tap to start/stop -->
|
|
91
|
+
<snice-qr-reader tap-start></snice-qr-reader>
|
|
92
|
+
```
|
|
93
|
+
|
|
84
94
|
## Methods
|
|
85
95
|
|
|
86
96
|
### `start()`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snice",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.",
|
|
6
6
|
"main": "dist/index.cjs",
|