@1337exp/taoux 0.0.0-stage → 0.1.1

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.
Files changed (94) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +21 -0
  3. package/README.md +137 -2
  4. package/README.ru.md +140 -0
  5. package/dist/camera.d.ts +22 -0
  6. package/dist/camera.js +38 -0
  7. package/dist/camera.js.map +1 -0
  8. package/dist/canvas/TaoxCanvas.vue.d.ts +37 -0
  9. package/dist/canvas/host.d.ts +138 -0
  10. package/dist/canvas/index.d.ts +3 -0
  11. package/dist/canvas/useCanvasGestures.d.ts +44 -0
  12. package/dist/canvas.css +55 -0
  13. package/dist/canvas.js +696 -0
  14. package/dist/canvas.js.map +1 -0
  15. package/dist/chunks/curveeditor-F3XBWHPL.js +759 -0
  16. package/dist/chunks/curveeditor-F3XBWHPL.js.map +1 -0
  17. package/dist/curve.d.ts +53 -0
  18. package/dist/curve.js +81 -0
  19. package/dist/curve.js.map +1 -0
  20. package/dist/curveeditor/TaoxCurveEditor.vue.d.ts +74 -0
  21. package/dist/curveeditor/index.d.ts +3 -0
  22. package/dist/curveeditor/ops.d.ts +63 -0
  23. package/dist/curveeditor.css +115 -0
  24. package/dist/curveeditor.js +1 -0
  25. package/dist/curvefield/TaoxCurveField.vue.d.ts +64 -0
  26. package/dist/curvefield/index.d.ts +2 -0
  27. package/dist/curvefield/labels.d.ts +13 -0
  28. package/dist/curvefield.css +57 -0
  29. package/dist/curvefield.js +252 -0
  30. package/dist/curvefield.js.map +1 -0
  31. package/dist/ease.d.ts +62 -0
  32. package/dist/ease.js +157 -0
  33. package/dist/ease.js.map +1 -0
  34. package/dist/edgescroll.d.ts +77 -0
  35. package/dist/edgescroll.js +78 -0
  36. package/dist/edgescroll.js.map +1 -0
  37. package/dist/file.d.ts +10 -0
  38. package/dist/file.js +22 -0
  39. package/dist/file.js.map +1 -0
  40. package/dist/gestures.d.ts +174 -0
  41. package/dist/gestures.js +229 -0
  42. package/dist/gestures.js.map +1 -0
  43. package/dist/gradienteditor/TaoxGradientEditor.vue.d.ts +48 -0
  44. package/dist/gradienteditor/index.d.ts +2 -0
  45. package/dist/gradienteditor/ops.d.ts +83 -0
  46. package/dist/gradienteditor.css +81 -0
  47. package/dist/gradienteditor.js +337 -0
  48. package/dist/gradienteditor.js.map +1 -0
  49. package/dist/history.d.ts +42 -0
  50. package/dist/history.js +89 -0
  51. package/dist/history.js.map +1 -0
  52. package/dist/i18n.d.ts +51 -0
  53. package/dist/i18n.js +102 -0
  54. package/dist/i18n.js.map +1 -0
  55. package/dist/ids.d.ts +5 -0
  56. package/dist/ids.js +17 -0
  57. package/dist/ids.js.map +1 -0
  58. package/dist/links/TaoxLinks.vue.d.ts +14 -0
  59. package/dist/links/index.d.ts +2 -0
  60. package/dist/links/types.d.ts +37 -0
  61. package/dist/links.css +80 -0
  62. package/dist/links.js +72 -0
  63. package/dist/links.js.map +1 -0
  64. package/dist/num.d.ts +35 -0
  65. package/dist/num.js +60 -0
  66. package/dist/num.js.map +1 -0
  67. package/dist/palette.d.ts +34 -0
  68. package/dist/palette.js +41 -0
  69. package/dist/palette.js.map +1 -0
  70. package/dist/pins.d.ts +66 -0
  71. package/dist/pins.js +83 -0
  72. package/dist/pins.js.map +1 -0
  73. package/dist/playback/core.d.ts +81 -0
  74. package/dist/playback/index.d.ts +2 -0
  75. package/dist/playback/use.d.ts +38 -0
  76. package/dist/playback.js +199 -0
  77. package/dist/playback.js.map +1 -0
  78. package/dist/session.d.ts +125 -0
  79. package/dist/session.js +195 -0
  80. package/dist/session.js.map +1 -0
  81. package/dist/snap.d.ts +24 -0
  82. package/dist/snap.js +34 -0
  83. package/dist/snap.js.map +1 -0
  84. package/dist/storage.d.ts +16 -0
  85. package/dist/storage.js +30 -0
  86. package/dist/storage.js.map +1 -0
  87. package/dist/touch.d.ts +9 -0
  88. package/dist/touch.js +20 -0
  89. package/dist/touch.js.map +1 -0
  90. package/dist/wheel.d.ts +31 -0
  91. package/dist/wheel.js +47 -0
  92. package/dist/wheel.js.map +1 -0
  93. package/package.json +183 -4
  94. package/theme/taoui.css +43 -0
package/package.json CHANGED
@@ -1,6 +1,185 @@
1
1
  {
2
2
  "name": "@1337exp/taoux",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Interaction and behavior building blocks for Vue apps: curve and gradient editors, canvas, undo/redo, playback. Import only what you need, bring your own design.",
5
+ "keywords": [
6
+ "vue",
7
+ "ux",
8
+ "typescript",
9
+ "canvas",
10
+ "undo-redo",
11
+ "composables",
12
+ "i18n",
13
+ "playback",
14
+ "curve-editor",
15
+ "gradient-editor",
16
+ "vue3",
17
+ "nuxt",
18
+ "design-tokens",
19
+ "taoui"
20
+ ],
21
+ "type": "module",
22
+ "license": "MIT",
23
+ "homepage": "https://github.com/1337exp/taoux#readme",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/1337exp/taoux.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/1337exp/taoux/issues"
30
+ },
31
+ "sideEffects": [
32
+ "**/*.css"
33
+ ],
34
+ "files": [
35
+ "dist",
36
+ "theme",
37
+ "CHANGELOG.md"
38
+ ],
39
+ "exports": {
40
+ "./camera": {
41
+ "types": "./dist/camera.d.ts",
42
+ "import": "./dist/camera.js"
43
+ },
44
+ "./canvas": {
45
+ "types": "./dist/canvas/index.d.ts",
46
+ "import": "./dist/canvas.js"
47
+ },
48
+ "./canvas.css": "./dist/canvas.css",
49
+ "./curve": {
50
+ "types": "./dist/curve.d.ts",
51
+ "import": "./dist/curve.js"
52
+ },
53
+ "./curveeditor": {
54
+ "types": "./dist/curveeditor/index.d.ts",
55
+ "import": "./dist/curveeditor.js"
56
+ },
57
+ "./curveeditor.css": "./dist/curveeditor.css",
58
+ "./curvefield": {
59
+ "types": "./dist/curvefield/index.d.ts",
60
+ "import": "./dist/curvefield.js"
61
+ },
62
+ "./curvefield.css": "./dist/curvefield.css",
63
+ "./ease": {
64
+ "types": "./dist/ease.d.ts",
65
+ "import": "./dist/ease.js"
66
+ },
67
+ "./edgescroll": {
68
+ "types": "./dist/edgescroll.d.ts",
69
+ "import": "./dist/edgescroll.js"
70
+ },
71
+ "./file": {
72
+ "types": "./dist/file.d.ts",
73
+ "import": "./dist/file.js"
74
+ },
75
+ "./gestures": {
76
+ "types": "./dist/gestures.d.ts",
77
+ "import": "./dist/gestures.js"
78
+ },
79
+ "./gradienteditor": {
80
+ "types": "./dist/gradienteditor/index.d.ts",
81
+ "import": "./dist/gradienteditor.js"
82
+ },
83
+ "./gradienteditor.css": "./dist/gradienteditor.css",
84
+ "./history": {
85
+ "types": "./dist/history.d.ts",
86
+ "import": "./dist/history.js"
87
+ },
88
+ "./i18n": {
89
+ "types": "./dist/i18n.d.ts",
90
+ "import": "./dist/i18n.js"
91
+ },
92
+ "./ids": {
93
+ "types": "./dist/ids.d.ts",
94
+ "import": "./dist/ids.js"
95
+ },
96
+ "./links": {
97
+ "types": "./dist/links/index.d.ts",
98
+ "import": "./dist/links.js"
99
+ },
100
+ "./links.css": "./dist/links.css",
101
+ "./num": {
102
+ "types": "./dist/num.d.ts",
103
+ "import": "./dist/num.js"
104
+ },
105
+ "./palette": {
106
+ "types": "./dist/palette.d.ts",
107
+ "import": "./dist/palette.js"
108
+ },
109
+ "./pins": {
110
+ "types": "./dist/pins.d.ts",
111
+ "import": "./dist/pins.js"
112
+ },
113
+ "./playback": {
114
+ "types": "./dist/playback/index.d.ts",
115
+ "import": "./dist/playback.js"
116
+ },
117
+ "./session": {
118
+ "types": "./dist/session.d.ts",
119
+ "import": "./dist/session.js"
120
+ },
121
+ "./snap": {
122
+ "types": "./dist/snap.d.ts",
123
+ "import": "./dist/snap.js"
124
+ },
125
+ "./storage": {
126
+ "types": "./dist/storage.d.ts",
127
+ "import": "./dist/storage.js"
128
+ },
129
+ "./touch": {
130
+ "types": "./dist/touch.d.ts",
131
+ "import": "./dist/touch.js"
132
+ },
133
+ "./wheel": {
134
+ "types": "./dist/wheel.d.ts",
135
+ "import": "./dist/wheel.js"
136
+ },
137
+ "./taoui.css": "./theme/taoui.css",
138
+ "./package.json": "./package.json"
139
+ },
140
+ "scripts": {
141
+ "build": "vite build && vue-tsc -p tsconfig.build.json",
142
+ "dev": "node scripts/dev.mjs",
143
+ "sandbox": "vite --config vite.sandbox.config.ts",
144
+ "sandbox:build": "vite build --config vite.sandbox.config.ts",
145
+ "sandbox:preview": "vite preview --config vite.sandbox.config.ts",
146
+ "typecheck": "vue-tsc --noEmit",
147
+ "test": "vitest run",
148
+ "test:watch": "vitest",
149
+ "smoke": "node scripts/consumer-smoke.mjs",
150
+ "prepublishOnly": "npm run typecheck && npm test && npm run build",
151
+ "media": "node scripts/media.mjs"
152
+ },
153
+ "peerDependencies": {
154
+ "@1337exp/taoui": "^3.2.1",
155
+ "vue": "^3.4.0"
156
+ },
157
+ "peerDependenciesMeta": {
158
+ "@1337exp/taoui": {
159
+ "optional": true
160
+ },
161
+ "vue": {
162
+ "optional": true
163
+ }
164
+ },
165
+ "devDependencies": {
166
+ "@1337exp/taoui": "^3.3.1",
167
+ "@types/node": "^26.6.4",
168
+ "@vitejs/plugin-vue": "^6.0.10",
169
+ "@vue/test-utils": "^2.5.1",
170
+ "happy-dom": "^20.14.5",
171
+ "playwright-core": "^1.64.1",
172
+ "typescript": "~6.0.3",
173
+ "vite": "^8.3.2",
174
+ "vitest": "^5.0.3",
175
+ "vue": "^3.5.43",
176
+ "vue-tsc": "^3.3.13"
177
+ },
178
+ "author": "1337exp",
179
+ "engines": {
180
+ "node": ">=18"
181
+ },
182
+ "publishConfig": {
183
+ "access": "public"
184
+ }
185
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * TaoUX → TaoUI bridge: points the TaoUX `--tx-*` variables at the TaoUI `--tao-*` tokens,
3
+ * so the editors follow the TaoUI theme (dark, light, your own) with one import:
4
+ *
5
+ * import '@1337exp/taoux/taoui.css'
6
+ *
7
+ * Plain CSS, no dependency on the TaoUI package. Specificity is zero (`:where`), so any rule of yours
8
+ * wins: override a single variable on `:root` or on any ancestor of the component.
9
+ * The `--tx-*` variables of a module are listed in the comment at the top of its styles.
10
+ *
11
+ * Мост TaoUX → TaoUI: наводит переменные `--tx-*` на токены `--tao-*`, и редакторы следуют теме TaoUI
12
+ * (тёмной, светлой, своей) одним импортом. Чистый CSS, без зависимости от пакета TaoUI. Специфичность
13
+ * нулевая (`:where`): любое ваше правило главнее.
14
+ */
15
+ :where(:root) {
16
+ /* canvas */
17
+ --tx-canvas-bg: var(--tao-color-bg);
18
+ --tx-canvas-grid-minor: color-mix(in srgb, var(--tao-color-text) 4%, transparent);
19
+ --tx-canvas-grid-major: color-mix(in srgb, var(--tao-color-text) 8%, transparent);
20
+ --tx-canvas-accent: var(--tao-color-accent);
21
+ --tx-canvas-accent-subtle: var(--tao-color-accent-subtle);
22
+
23
+ /* links */
24
+ --tx-link-color: var(--tao-color-text-muted);
25
+ --tx-link-hover-color: var(--tao-color-text);
26
+ --tx-link-selected-color: var(--tao-color-accent);
27
+ --tx-link-preview-color: var(--tao-color-accent);
28
+ --tx-link-invalid-color: var(--tao-color-danger);
29
+
30
+ /* curve editor */
31
+ --tx-curve-bg: var(--tao-color-surface-sunken);
32
+ --tx-curve-border: var(--tao-color-border);
33
+ --tx-curve-grid: var(--tao-color-border);
34
+ --tx-curve-label: var(--tao-color-text-muted);
35
+ --tx-curve-text: var(--tao-color-text);
36
+ --tx-curve-accent: var(--tao-color-accent);
37
+
38
+ /* gradient editor */
39
+ --tx-gradient-border: var(--tao-color-border);
40
+ --tx-gradient-stop-border: var(--tao-color-border-strong);
41
+ --tx-gradient-stop-outline: color-mix(in srgb, var(--tao-color-text-strong) 55%, transparent);
42
+ --tx-gradient-accent: var(--tao-color-accent);
43
+ }