qrlayout-ui 1.0.2 → 1.0.4
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 +31 -3
- package/package.json +64 -64
package/README.md
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
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
|
-
[
|
|
5
|
+
- **[ React Live Demo](https://qr-layout-designer.netlify.app/)**
|
|
6
|
+
- **[ Svelte Live Demo](https://qr-layout-designer-svelte.netlify.app/)**
|
|
6
7
|
|
|
7
|
-
- **[React Demo Source Code](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/ui-
|
|
8
|
+
- **[React Demo Source Code](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/ui-demo)**: Reference implementation for monorepo usage.
|
|
8
9
|
|
|
10
|
+
- **[Svelte Demo Source Code](https://github.com/shashi089/qr-code-layout-generate-tool/tree/main/examples/svelte-demo)**: Reference implementation for Svelte 5 + Tailwind CSS.
|
|
9
11
|
|
|
10
12
|

|
|
11
13
|
|
|
@@ -173,7 +175,33 @@ onUnmounted(() => {
|
|
|
173
175
|
</template>
|
|
174
176
|
```
|
|
175
177
|
|
|
176
|
-
### 3.
|
|
178
|
+
### 3. Svelte 5 (Runes)
|
|
179
|
+
|
|
180
|
+
```svelte
|
|
181
|
+
<script lang="ts">
|
|
182
|
+
import { onMount } from 'svelte';
|
|
183
|
+
import { QRLayoutDesigner } from 'qrlayout-ui';
|
|
184
|
+
import 'qrlayout-ui/style.css';
|
|
185
|
+
|
|
186
|
+
let container = $state<HTMLDivElement | null>(null);
|
|
187
|
+
let designer: QRLayoutDesigner | null = null;
|
|
188
|
+
|
|
189
|
+
onMount(() => {
|
|
190
|
+
if (!container) return;
|
|
191
|
+
|
|
192
|
+
designer = new QRLayoutDesigner({
|
|
193
|
+
element: container,
|
|
194
|
+
onSave: (data) => console.log('Saved Layout:', data)
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
return () => designer?.destroy();
|
|
198
|
+
});
|
|
199
|
+
</script>
|
|
200
|
+
|
|
201
|
+
<div bind:this={container} style="width: 100%; height: 800px;"></div>
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### 4. Vanilla JavaScript / HTML
|
|
177
205
|
|
|
178
206
|
```html
|
|
179
207
|
<!DOCTYPE html>
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qrlayout-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Visual designer and UI components for QR layout generation",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"qr",
|
|
7
|
-
"qrcode",
|
|
8
|
-
"qr-code",
|
|
9
|
-
"qr-layout",
|
|
10
|
-
"qr-layout",
|
|
11
|
-
"qr-layout-designer",
|
|
12
|
-
"layout",
|
|
13
|
-
"qr-sticker",
|
|
14
|
-
"qr-label",
|
|
15
|
-
"react-qr",
|
|
16
|
-
"vue-qr",
|
|
17
|
-
"angular-qr",
|
|
18
|
-
"svelte-qr",
|
|
19
|
-
"embeddable-designer",
|
|
20
|
-
"label-editor",
|
|
21
|
-
"layout",
|
|
22
|
-
"qr-sticker",
|
|
23
|
-
"qr-label",
|
|
24
|
-
"generator",
|
|
25
|
-
"visual-editor",
|
|
26
|
-
"drag-drop",
|
|
27
|
-
"
|
|
28
|
-
],
|
|
29
|
-
"author": "Shashidhar Naik <shashidharnaik8@gmail.com>",
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/shashi089/qr-code-layout-generate-tool.git",
|
|
34
|
-
"directory": "packages/ui"
|
|
35
|
-
},
|
|
36
|
-
"private": false,
|
|
37
|
-
"type": "module",
|
|
38
|
-
"files": [
|
|
39
|
-
"dist"
|
|
40
|
-
],
|
|
41
|
-
"main": "./dist/qrlayout-ui.umd.js",
|
|
42
|
-
"module": "./dist/qrlayout-ui.js",
|
|
43
|
-
"types": "./dist/index.d.ts",
|
|
44
|
-
"exports": {
|
|
45
|
-
".": {
|
|
46
|
-
"types": "./dist/index.d.ts",
|
|
47
|
-
"import": "./dist/qrlayout-ui.js",
|
|
48
|
-
"require": "./dist/qrlayout-ui.umd.js"
|
|
49
|
-
},
|
|
50
|
-
"./style.css": "./dist/qrlayout-ui.css"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"dev": "vite",
|
|
54
|
-
"build": "vite build",
|
|
55
|
-
"preview": "vite preview"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"qrlayout-core": "^1.0
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"typescript": "^5.3.3",
|
|
62
|
-
"vite": "^7.2.7",
|
|
63
|
-
"vite-plugin-dts": "^4.5.4"
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "qrlayout-ui",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Visual designer and UI components for QR layout generation",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"qr",
|
|
7
|
+
"qrcode",
|
|
8
|
+
"qr-code",
|
|
9
|
+
"qr-layout",
|
|
10
|
+
"qr-layout",
|
|
11
|
+
"qr-layout-designer",
|
|
12
|
+
"layout",
|
|
13
|
+
"qr-sticker",
|
|
14
|
+
"qr-label",
|
|
15
|
+
"react-qr",
|
|
16
|
+
"vue-qr",
|
|
17
|
+
"angular-qr",
|
|
18
|
+
"svelte-qr",
|
|
19
|
+
"embeddable-designer",
|
|
20
|
+
"label-editor",
|
|
21
|
+
"layout",
|
|
22
|
+
"qr-sticker",
|
|
23
|
+
"qr-label",
|
|
24
|
+
"generator",
|
|
25
|
+
"visual-editor",
|
|
26
|
+
"drag-drop",
|
|
27
|
+
"label-printer"
|
|
28
|
+
],
|
|
29
|
+
"author": "Shashidhar Naik <shashidharnaik8@gmail.com>",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/shashi089/qr-code-layout-generate-tool.git",
|
|
34
|
+
"directory": "packages/ui"
|
|
35
|
+
},
|
|
36
|
+
"private": false,
|
|
37
|
+
"type": "module",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"main": "./dist/qrlayout-ui.umd.js",
|
|
42
|
+
"module": "./dist/qrlayout-ui.js",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"exports": {
|
|
45
|
+
".": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"import": "./dist/qrlayout-ui.js",
|
|
48
|
+
"require": "./dist/qrlayout-ui.umd.js"
|
|
49
|
+
},
|
|
50
|
+
"./style.css": "./dist/qrlayout-ui.css"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"dev": "vite",
|
|
54
|
+
"build": "vite build",
|
|
55
|
+
"preview": "vite preview"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"qrlayout-core": "^1.1.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"typescript": "^5.3.3",
|
|
62
|
+
"vite": "^7.2.7",
|
|
63
|
+
"vite-plugin-dts": "^4.5.4"
|
|
64
|
+
}
|
|
65
65
|
}
|