@vanduo-oss/vd3-cbun 1.0.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/LICENSE +22 -0
  3. package/README.md +160 -0
  4. package/SKILL.md +119 -0
  5. package/dist/charts/core.d.ts +273 -0
  6. package/dist/charts/index.cjs +1828 -0
  7. package/dist/charts/index.cjs.map +7 -0
  8. package/dist/charts/index.d.ts +65 -0
  9. package/dist/charts/index.js +1805 -0
  10. package/dist/charts/index.js.map +7 -0
  11. package/dist/charts/vd3-charts.css +51 -0
  12. package/dist/charts/vue.d.ts +86 -0
  13. package/dist/flowchart/core.d.ts +288 -0
  14. package/dist/flowchart/index.cjs +3447 -0
  15. package/dist/flowchart/index.cjs.map +7 -0
  16. package/dist/flowchart/index.d.ts +54 -0
  17. package/dist/flowchart/index.js +3424 -0
  18. package/dist/flowchart/index.js.map +7 -0
  19. package/dist/flowchart/vd3-flowchart.css +600 -0
  20. package/dist/flowchart/vue.d.ts +66 -0
  21. package/dist/hex-grid/core.d.ts +200 -0
  22. package/dist/hex-grid/hex-math.cjs +162 -0
  23. package/dist/hex-grid/hex-math.cjs.map +7 -0
  24. package/dist/hex-grid/hex-math.d.ts +119 -0
  25. package/dist/hex-grid/hex-math.js +141 -0
  26. package/dist/hex-grid/hex-math.js.map +7 -0
  27. package/dist/hex-grid/index.cjs +915 -0
  28. package/dist/hex-grid/index.cjs.map +7 -0
  29. package/dist/hex-grid/index.d.ts +15 -0
  30. package/dist/hex-grid/index.js +894 -0
  31. package/dist/hex-grid/index.js.map +7 -0
  32. package/dist/hex-grid/vue.d.ts +14 -0
  33. package/dist/index.d.ts +13 -0
  34. package/dist/index.js +11 -0
  35. package/dist/index.js.map +7 -0
  36. package/dist/meta.json +551 -0
  37. package/dist/music-player/core.d.ts +88 -0
  38. package/dist/music-player/index.cjs +1227 -0
  39. package/dist/music-player/index.cjs.map +7 -0
  40. package/dist/music-player/index.d.ts +12 -0
  41. package/dist/music-player/index.js +1204 -0
  42. package/dist/music-player/index.js.map +7 -0
  43. package/dist/music-player/vd3-music-player.css +829 -0
  44. package/dist/music-player/vue.d.ts +32 -0
  45. package/package.json +105 -0
@@ -0,0 +1,32 @@
1
+ import type { DefineComponent } from 'vue';
2
+
3
+ export interface VdMusicPlayerTrack {
4
+ name: string;
5
+ url: string;
6
+ }
7
+
8
+ export interface VdMusicPlayerOptions {
9
+ volume?: number;
10
+ shuffle?: boolean;
11
+ repeat?: 'off' | 'one' | 'all';
12
+ showProgress?: boolean;
13
+ showPlaylist?: boolean;
14
+ autoAdvance?: boolean;
15
+ glass?: boolean;
16
+ detachable?: boolean;
17
+ floatingPosition?: string | null;
18
+ draggable?: boolean;
19
+ minimizable?: boolean;
20
+ startMinimized?: boolean;
21
+ persistPosition?: boolean;
22
+ persistKey?: string;
23
+ }
24
+
25
+ export interface VdMusicPlayerProps {
26
+ /** Playlist ([{ name, url }]). */
27
+ tracks?: VdMusicPlayerTrack[];
28
+ /** Player options. */
29
+ options?: VdMusicPlayerOptions;
30
+ }
31
+
32
+ export declare const VdMusicPlayer: DefineComponent<VdMusicPlayerProps>;
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@vanduo-oss/vd3-cbun",
3
+ "version": "1.0.0",
4
+ "description": "Vanduo UI components bundle for Vue 3 — charts, flowchart, hex-grid, music-player (the vd3 line)",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "vanduo-oss",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "homepage": "https://github.com/vanduo-oss/vd3-cbun",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/vanduo-oss/vd3-cbun"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/vanduo-oss/vd3-cbun/issues"
18
+ },
19
+ "sideEffects": [
20
+ "**/*.css"
21
+ ],
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js"
26
+ },
27
+ "./charts": {
28
+ "types": "./dist/charts/index.d.ts",
29
+ "import": "./dist/charts/index.js",
30
+ "require": "./dist/charts/index.cjs"
31
+ },
32
+ "./charts/css": "./dist/charts/vd3-charts.css",
33
+ "./flowchart": {
34
+ "types": "./dist/flowchart/index.d.ts",
35
+ "import": "./dist/flowchart/index.js",
36
+ "require": "./dist/flowchart/index.cjs"
37
+ },
38
+ "./flowchart/css": "./dist/flowchart/vd3-flowchart.css",
39
+ "./hex-grid": {
40
+ "types": "./dist/hex-grid/index.d.ts",
41
+ "import": "./dist/hex-grid/index.js",
42
+ "require": "./dist/hex-grid/index.cjs"
43
+ },
44
+ "./hex-grid/hex-math": {
45
+ "types": "./dist/hex-grid/hex-math.d.ts",
46
+ "import": "./dist/hex-grid/hex-math.js",
47
+ "require": "./dist/hex-grid/hex-math.cjs"
48
+ },
49
+ "./music-player": {
50
+ "types": "./dist/music-player/index.d.ts",
51
+ "import": "./dist/music-player/index.js",
52
+ "require": "./dist/music-player/index.cjs"
53
+ },
54
+ "./music-player/css": "./dist/music-player/vd3-music-player.css",
55
+ "./package.json": "./package.json"
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "README.md",
60
+ "SKILL.md",
61
+ "CHANGELOG.md",
62
+ "LICENSE"
63
+ ],
64
+ "keywords": [
65
+ "vanduo",
66
+ "vue",
67
+ "components",
68
+ "charts",
69
+ "flowchart",
70
+ "hex-grid",
71
+ "music-player"
72
+ ],
73
+ "peerDependencies": {
74
+ "vue": ">=3.3.0"
75
+ },
76
+ "devDependencies": {
77
+ "@eslint/js": "10.0.1",
78
+ "@playwright/test": "1.61.1",
79
+ "@typescript-eslint/parser": "8.62.0",
80
+ "@vue/test-utils": "^2.4.11",
81
+ "esbuild": "^0.28.1",
82
+ "eslint": "^10.6.0",
83
+ "jsdom": "^29.1.1",
84
+ "prettier": "^3.9.1",
85
+ "typescript": "^6.0.3",
86
+ "typescript-eslint": "8.62.0",
87
+ "vitest": "^4.1.9",
88
+ "vue": "^3.5.39"
89
+ },
90
+ "engines": {
91
+ "node": ">=20.19.0",
92
+ "pnpm": ">=10"
93
+ },
94
+ "scripts": {
95
+ "build": "node scripts/build.js",
96
+ "clean": "rm -rf dist",
97
+ "lint": "eslint .",
98
+ "format": "prettier --write \"src/**/*.{js,ts}\" \"scripts/**/*.js\" \"tests/**/*.{js,ts}\"",
99
+ "format:check": "prettier --check \"src/**/*.{js,ts}\" \"scripts/**/*.js\" \"tests/**/*.{js,ts}\"",
100
+ "test": "vitest run",
101
+ "test:types": "tsc --noEmit -p tests/types/tsconfig.json",
102
+ "test:e2e": "playwright test",
103
+ "release": "pnpm run build && pnpm publish"
104
+ }
105
+ }