hprint-designer 0.1.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,9 @@
1
+
2
+ export { HprintPlugin } from './core/plugin';
3
+ export { HPrintDesigner } from './core/facade';
4
+ export { RestAdapter } from './adapters/rest';
5
+ export { MockAdapter } from './adapters/mock';
6
+ export { PrintDesigner } from './designer/PrintDesigner.vue';
7
+ export * from './contract/types';
8
+ export type { BackendAdapter } from './contract/adapter';
9
+ export { VERSION } from './version';
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ :root{--hprint-color-primary: #1f1f2e;--hprint-color-bg: #ffffff;--hprint-color-surface: #f7f8fa;--hprint-color-border: #e8eaed;--hprint-color-text: #1f1f2e;--hprint-color-text-muted: #8c8c8c;--hprint-color-success: #52c41a;--hprint-color-warning: #faad14;--hprint-color-error: #f5222d;--hprint-radius: 6px;--hprint-radius-lg: 8px;--hprint-shadow: 0 1px 2px rgba(0, 0, 0, .04);--hprint-shadow-hover: 0 4px 12px rgba(0, 0, 0, .08);--hprint-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--hprint-toolbar-h: 56px;--hprint-footer-h: 40px;--hprint-panel-w-left: 200px;--hprint-panel-w-right: 320px}.hprint-designer{display:flex;flex-direction:column;height:100%;min-height:600px;font-family:var(--hprint-font-ui);color:var(--hprint-color-text);background:var(--hprint-color-bg)}.hprint-designer__toolbar{height:var(--hprint-toolbar-h);display:flex;align-items:center;gap:8px;padding:0 16px;border-bottom:1px solid var(--hprint-color-border);background:var(--hprint-color-bg)}.hprint-designer__body{flex:1;display:flex;min-height:0}.hprint-designer__left{width:var(--hprint-panel-w-left);border-right:1px solid var(--hprint-color-border);background:var(--hprint-color-surface);overflow-y:auto}.hprint-designer__center{flex:1;overflow:auto;background:var(--hprint-color-surface);padding:16px}.hprint-designer__right{width:var(--hprint-panel-w-right);border-left:1px solid var(--hprint-color-border);background:var(--hprint-color-bg);overflow-y:auto}.hprint-designer__footer{height:var(--hprint-footer-h);display:flex;align-items:center;gap:8px;padding:0 16px;border-top:1px solid var(--hprint-color-border);background:var(--hprint-color-bg);font-size:12px;color:var(--hprint-color-text-muted)}.hprint-designer__drag-group-title{font-size:13px;font-weight:600;padding:12px 12px 6px;color:var(--hprint-color-text-muted)}.hprint-designer__drag-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;margin:4px 8px;border-radius:var(--hprint-radius);cursor:grab;transition:box-shadow .15s,background .15s}.hprint-designer__drag-item:hover{background:var(--hprint-color-bg);box-shadow:var(--hprint-shadow-hover)}.hprint-designer__drag-item .glyphicon{font-size:22px}.hprint-designer__status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.hprint-designer__status-dot--ok{background:var(--hprint-color-success)}.hprint-designer__status-dot--warn{background:var(--hprint-color-warning)}.hprint-designer__status-dot--err{background:var(--hprint-color-error)}.hprint-muted[data-v-c0d94aa0]{color:var(--hprint-color-text-muted);font-size:12px;text-align:center;padding:24px 0}.hprint-muted[data-v-5d978621]{color:var(--hprint-color-text-muted);font-size:12px;margin:8px 0}.hprint-client-status[data-v-5d978621]{font-size:14px}.hprint-download-block[data-v-5d978621]{margin:12px 0}
@@ -0,0 +1 @@
1
+ export declare const VERSION = "0.1.0";
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "hprint-designer",
3
+ "version": "0.1.0",
4
+ "description": "Vue 2 print-template designer wrapping vue-plugin-hiprint — scenic tickets & invitations",
5
+ "license": "MIT",
6
+ "main": "dist/hprint-designer.umd.js",
7
+ "module": "dist/hprint-designer.es.js",
8
+ "types": "dist/index.d.ts",
9
+ "style": "dist/style.css",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "sideEffects": [
14
+ "*.css"
15
+ ],
16
+ "scripts": {
17
+ "build": "vite build",
18
+ "dev": "vite",
19
+ "typecheck": "vue-tsc --noEmit -p tsconfig.json",
20
+ "test": "vitest run",
21
+ "test:watch": "vitest"
22
+ },
23
+ "peerDependencies": {
24
+ "ant-design-vue": "^1.7.2",
25
+ "vue": "^2.6.0"
26
+ },
27
+ "devDependencies": {
28
+ "@vitejs/plugin-vue2": "2.3.1",
29
+ "@vue/test-utils": "1.3.6",
30
+ "ant-design-vue": "1.7.8",
31
+ "jsdom": "24.1.0",
32
+ "less": "4.2.0",
33
+ "msw": "2.3.0",
34
+ "typescript": "5.4.5",
35
+ "vite": "5.4.10",
36
+ "vite-plugin-dts": "^3.9.1",
37
+ "vitest": "1.6.0",
38
+ "vue": "2.7.16",
39
+ "vue-template-compiler": "2.7.16",
40
+ "vue-tsc": "2.0.10"
41
+ },
42
+ "dependencies": {
43
+ "vue-plugin-hiprint": "^0.0.61-beta5"
44
+ }
45
+ }