qrlayout-ui 1.0.7 → 1.0.8
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/README.md +11 -13
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
A framework-agnostic, embeddable UI for designing sticker layouts with QR codes. Part of the [QR Layout Tool](https://github.com/shashi089/qr-code-layout-generate-tool).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- **[ Svelte Live Demo](https://qr-layout-designer-svelte.netlify.app/)**
|
|
7
|
-
- **[ Vue Live Demo](https://qr-layout-designer-vue.netlify.app/)**
|
|
5
|
+
## 🚀 Live Demos & Examples
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
| Framework | Live Demo | Source Code |
|
|
8
|
+
| :--- | :--- | :--- |
|
|
9
|
+
| **React** | [Live Demo](https://qr-layout-designer.netlify.app/) | [Source](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/react-demo) |
|
|
10
|
+
| **Svelte 5** | [Live Demo](https://qr-layout-designer-svelte.netlify.app/) | [Source](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/svelte-demo) |
|
|
11
|
+
| **Vue 3** | [Live Demo](https://qr-layout-designer-vue.netlify.app/) | [Source](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/vue-demo) |
|
|
14
12
|
|
|
15
13
|

|
|
16
14
|
|
|
@@ -102,9 +100,9 @@ const designer = new QRLayoutDesigner({
|
|
|
102
100
|
});
|
|
103
101
|
```
|
|
104
102
|
|
|
105
|
-
###
|
|
103
|
+
### 4. Cleanup
|
|
106
104
|
|
|
107
|
-
|
|
105
|
+
Destroy the instance when the component unmounts to prevent memory leaks:
|
|
108
106
|
|
|
109
107
|
```javascript
|
|
110
108
|
designer.destroy();
|
|
@@ -115,9 +113,9 @@ designer.destroy();
|
|
|
115
113
|
| Option | Type | Description |
|
|
116
114
|
|---|---|---|
|
|
117
115
|
| `element` | `HTMLElement` | **Required**. The DOM element to mount the designer into. |
|
|
118
|
-
| `entitySchemas` | `Record<string, Schema>` |
|
|
119
|
-
| `initialLayout` | `StickerLayout` | The initial layout state to load. |
|
|
120
|
-
| `onSave` | `(layout) => void` | Callback triggered when the "Save Layout" button is clicked. |
|
|
116
|
+
| `entitySchemas` | `Record<string, Schema>` | Data entity definitions for `{{field}}` placeholder binding. |
|
|
117
|
+
| `initialLayout` | `StickerLayout` | The initial layout state to load on mount. |
|
|
118
|
+
| `onSave` | `(layout: StickerLayout) => void` | Callback triggered when the "Save Layout" button is clicked. |
|
|
121
119
|
|
|
122
120
|
## Integration Examples
|
|
123
121
|
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qrlayout-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A framework-agnostic visual designer UI for QR code and label layouts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qr-code",
|
|
7
7
|
"qr-layout",
|
|
8
|
+
"qr-layout-designer",
|
|
8
9
|
"react-qrcode",
|
|
9
10
|
"vue-qrcode",
|
|
10
11
|
"svelte-qrcode",
|
|
11
12
|
"angular-qrcode",
|
|
12
13
|
"drag-drop",
|
|
14
|
+
"drag-and-drop",
|
|
13
15
|
"ui-component",
|
|
14
16
|
"low-code",
|
|
15
17
|
"visual-editor",
|
|
16
18
|
"label-designer",
|
|
17
|
-
"
|
|
19
|
+
"label-printing",
|
|
20
|
+
"sticker-designer",
|
|
21
|
+
"typescript",
|
|
22
|
+
"framework-agnostic"
|
|
18
23
|
],
|
|
19
24
|
"author": "Shashidhar Naik <shashidharnaik8@gmail.com>",
|
|
20
25
|
"license": "MIT",
|
|
@@ -26,7 +31,9 @@
|
|
|
26
31
|
"private": false,
|
|
27
32
|
"type": "module",
|
|
28
33
|
"files": [
|
|
29
|
-
"dist"
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
30
37
|
],
|
|
31
38
|
"main": "./dist/qrlayout-ui.umd.js",
|
|
32
39
|
"module": "./dist/qrlayout-ui.js",
|