@medalsocial/meda 0.3.0 → 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 (112) hide show
  1. package/README.md +26 -0
  2. package/dist/brand/index.d.ts +2 -0
  3. package/dist/brand/index.js +1 -0
  4. package/dist/brand/medal-social-mark.d.ts +7 -0
  5. package/dist/brand/medal-social-mark.js +6 -0
  6. package/dist/brand/public.d.ts +2 -0
  7. package/dist/brand/public.js +1 -0
  8. package/dist/chat/latency-badge.js +6 -2
  9. package/dist/chat/tool-call-block.js +1 -1
  10. package/dist/chat/turn-card.js +3 -1
  11. package/dist/components/ui/command.d.ts +19 -0
  12. package/dist/components/ui/command.js +37 -0
  13. package/dist/components/ui/dialog.d.ts +26 -0
  14. package/dist/components/ui/dialog.js +39 -0
  15. package/dist/components/ui/drawer.d.ts +16 -0
  16. package/dist/components/ui/drawer.js +35 -0
  17. package/dist/components/ui/dropdown-menu.d.ts +32 -0
  18. package/dist/components/ui/dropdown-menu.js +68 -0
  19. package/dist/components/ui/tooltip.d.ts +6 -0
  20. package/dist/components/ui/tooltip.js +17 -0
  21. package/dist/index.d.ts +3 -1
  22. package/dist/index.js +3 -1
  23. package/dist/lib/utils.d.ts +2 -0
  24. package/dist/lib/utils.js +5 -0
  25. package/dist/marketing/index.d.ts +5 -0
  26. package/dist/marketing/index.js +4 -0
  27. package/dist/marketing/marketing-callout.d.ts +2 -0
  28. package/dist/marketing/marketing-callout.js +8 -0
  29. package/dist/marketing/marketing-contact.d.ts +2 -0
  30. package/dist/marketing/marketing-contact.js +19 -0
  31. package/dist/marketing/marketing-cta-list.d.ts +2 -0
  32. package/dist/marketing/marketing-cta-list.js +21 -0
  33. package/dist/marketing/marketing-lead-magnet.d.ts +2 -0
  34. package/dist/marketing/marketing-lead-magnet.js +9 -0
  35. package/dist/marketing/public.d.ts +1 -0
  36. package/dist/marketing/public.js +1 -0
  37. package/dist/marketing/types.d.ts +67 -0
  38. package/dist/marketing/types.js +1 -0
  39. package/dist/marketing/utils.d.ts +2 -0
  40. package/dist/marketing/utils.js +6 -0
  41. package/dist/panel/inspector-json.js +5 -3
  42. package/dist/shell/app-shell.d.ts +9 -0
  43. package/dist/shell/app-shell.js +11 -0
  44. package/dist/shell/command-palette.d.ts +23 -0
  45. package/dist/shell/command-palette.js +138 -0
  46. package/dist/shell/context-rail.d.ts +31 -0
  47. package/dist/shell/context-rail.js +81 -0
  48. package/dist/shell/extras/index.d.ts +4 -0
  49. package/dist/shell/extras/index.js +4 -0
  50. package/dist/shell/extras/shell-desktop-panel-dock.d.ts +14 -0
  51. package/dist/shell/extras/shell-desktop-panel-dock.js +43 -0
  52. package/dist/shell/extras/shell-scrollable-content.d.ts +9 -0
  53. package/dist/shell/extras/shell-scrollable-content.js +7 -0
  54. package/dist/shell/extras/shell-tab-bar.d.ts +18 -0
  55. package/dist/shell/extras/shell-tab-bar.js +27 -0
  56. package/dist/shell/extras/types.d.ts +64 -0
  57. package/dist/shell/extras/types.js +2 -0
  58. package/dist/shell/extras/workbench-layout.d.ts +10 -0
  59. package/dist/shell/extras/workbench-layout.js +29 -0
  60. package/dist/shell/icon-rail.d.ts +29 -0
  61. package/dist/shell/icon-rail.js +38 -0
  62. package/dist/shell/index.d.ts +24 -15
  63. package/dist/shell/index.js +35 -15
  64. package/dist/shell/layout-state.d.ts +32 -0
  65. package/dist/shell/layout-state.js +98 -0
  66. package/dist/shell/mobile/mobile-bottom-nav.d.ts +15 -0
  67. package/dist/shell/mobile/mobile-bottom-nav.js +76 -0
  68. package/dist/shell/mobile/mobile-drawers.d.ts +20 -0
  69. package/dist/shell/mobile/mobile-drawers.js +62 -0
  70. package/dist/shell/mobile/mobile-header.d.ts +23 -0
  71. package/dist/shell/mobile/mobile-header.js +22 -0
  72. package/dist/shell/motion.d.ts +22 -0
  73. package/dist/shell/motion.js +19 -0
  74. package/dist/shell/public.d.ts +16 -2
  75. package/dist/shell/public.js +20 -1
  76. package/dist/shell/resizable-shell.d.ts +45 -0
  77. package/dist/shell/resizable-shell.js +15 -0
  78. package/dist/shell/right-panel.d.ts +15 -0
  79. package/dist/shell/right-panel.js +126 -0
  80. package/dist/shell/shell-auth-frame.d.ts +22 -0
  81. package/dist/shell/shell-auth-frame.js +60 -0
  82. package/dist/shell/shell-header.d.ts +10 -9
  83. package/dist/shell/shell-header.js +57 -14
  84. package/dist/shell/shell-layout-utils.d.ts +2 -2
  85. package/dist/shell/shell-main.d.ts +8 -0
  86. package/dist/shell/shell-main.js +11 -0
  87. package/dist/shell/shell-provider.d.ts +65 -0
  88. package/dist/shell/shell-provider.js +152 -0
  89. package/dist/shell/shell-route-utils.d.ts +1 -1
  90. package/dist/shell/theme-next-themes.d.ts +4 -0
  91. package/dist/shell/theme-next-themes.js +24 -0
  92. package/dist/shell/theme.d.ts +9 -0
  93. package/dist/shell/theme.js +58 -0
  94. package/dist/shell/types.d.ts +41 -41
  95. package/dist/shell/types.js +1 -0
  96. package/dist/shell/use-shell-viewport.d.ts +2 -0
  97. package/dist/shell/use-shell-viewport.js +40 -0
  98. package/dist/shell/utils.d.ts +1 -1
  99. package/dist/styles/globals.css +26 -0
  100. package/dist/styles/theme.css +147 -0
  101. package/dist/styles/tokens.css +338 -0
  102. package/dist/timeline/date-switcher.js +3 -1
  103. package/dist/timeline/event-card.js +5 -13
  104. package/dist/timeline/live-indicator.js +3 -1
  105. package/dist/timeline/scrub-bar.js +8 -9
  106. package/dist/timeline/timeline-rail.js +6 -4
  107. package/dist/timeline/timeline-tape.js +7 -8
  108. package/dist/voice/voice-level.js +3 -1
  109. package/dist/voice/voice-orb-scene.js +1 -0
  110. package/dist/voice/voice-orb.js +9 -11
  111. package/dist/voice/voice-status-pill.js +4 -9
  112. package/package.json +53 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medalsocial/meda",
3
- "version": "0.3.0",
3
+ "version": "1.0.0",
4
4
  "description": "Shared Meda UI shell and runtime package.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,6 +24,10 @@
24
24
  "types": "./dist/index.d.ts",
25
25
  "default": "./dist/index.js"
26
26
  },
27
+ "./brand": {
28
+ "types": "./dist/brand/index.d.ts",
29
+ "default": "./dist/brand/index.js"
30
+ },
27
31
  "./shell": {
28
32
  "types": "./dist/shell/index.d.ts",
29
33
  "default": "./dist/shell/index.js"
@@ -36,6 +40,10 @@
36
40
  "types": "./dist/timeline/index.d.ts",
37
41
  "default": "./dist/timeline/index.js"
38
42
  },
43
+ "./marketing": {
44
+ "types": "./dist/marketing/index.d.ts",
45
+ "default": "./dist/marketing/index.js"
46
+ },
39
47
  "./chat": {
40
48
  "types": "./dist/chat/index.d.ts",
41
49
  "default": "./dist/chat/index.js"
@@ -44,19 +52,36 @@
44
52
  "types": "./dist/panel/index.d.ts",
45
53
  "default": "./dist/panel/index.js"
46
54
  },
47
- "./styles.css": "./dist/styles.css"
55
+ "./styles": {
56
+ "default": "./dist/styles/theme.css"
57
+ },
58
+ "./styles.css": {
59
+ "default": "./dist/styles/theme.css"
60
+ },
61
+ "./styles/tokens": {
62
+ "default": "./dist/styles/tokens.css"
63
+ }
48
64
  },
65
+ "sideEffects": [
66
+ "**/*.css",
67
+ "./dist/styles/*.css"
68
+ ],
49
69
  "publishConfig": {
50
70
  "access": "public"
51
71
  },
52
72
  "peerDependencies": {
53
73
  "@react-three/fiber": "^9.0.0",
74
+ "lucide-react": "^1.8.0",
75
+ "next-themes": "^0.4.0",
54
76
  "react": ">=19",
55
77
  "react-dom": ">=19"
56
78
  },
57
79
  "peerDependenciesMeta": {
58
80
  "@react-three/fiber": {
59
81
  "optional": true
82
+ },
83
+ "next-themes": {
84
+ "optional": true
60
85
  }
61
86
  },
62
87
  "dependencies": {
@@ -66,7 +91,6 @@
66
91
  "class-variance-authority": "^0.7.1",
67
92
  "clsx": "^2.1.1",
68
93
  "cmdk": "^1.1.1",
69
- "lucide-react": "^1.8.0",
70
94
  "react-resizable-panels": "^4.10.0",
71
95
  "tailwind-merge": "^3.5.0",
72
96
  "three": "^0.170.0",
@@ -78,6 +102,13 @@
78
102
  "@changesets/cli": "^2.29.0",
79
103
  "@react-three/drei": "^10.7.7",
80
104
  "@react-three/fiber": "^9.6.0",
105
+ "@size-limit/preset-small-lib": "^12.1.0",
106
+ "@storybook/addon-a11y": "^10.3.5",
107
+ "@storybook/addon-docs": "10.3.5",
108
+ "@storybook/addon-mcp": "^0.6.0",
109
+ "@storybook/addon-themes": "^10.3.5",
110
+ "@storybook/addon-vitest": "^10.3.5",
111
+ "@storybook/react-vite": "^10.3.5",
81
112
  "@tailwindcss/vite": "^4.2.4",
82
113
  "@testing-library/jest-dom": "^6.9.1",
83
114
  "@testing-library/react": "^16.3.2",
@@ -85,10 +116,17 @@
85
116
  "@types/react-dom": "^19.2.3",
86
117
  "@types/three": "^0.184.0",
87
118
  "@vitejs/plugin-react": "^6.0.1",
119
+ "@vitest/browser-playwright": "4.1.4",
120
+ "@vitest/coverage-v8": "4.1.4",
121
+ "chromatic": "^16.6.0",
88
122
  "husky": "^9.1.7",
89
123
  "jsdom": "^29.0.2",
124
+ "next-themes": "^0.4.0",
125
+ "playwright": "^1.59.1",
90
126
  "react": "^19.2.4",
91
127
  "react-dom": "^19.2.4",
128
+ "size-limit": "^12.1.0",
129
+ "storybook": "^10.3.5",
92
130
  "tailwindcss": "^4.2.4",
93
131
  "typescript": "~6.0.2",
94
132
  "vite": "^8.0.4",
@@ -103,14 +141,23 @@
103
141
  "format": "biome format --write .",
104
142
  "demo:dev": "vite --config vite.config.demo.ts",
105
143
  "demo:build": "vite build --config vite.config.demo.ts",
106
- "worker:build": "pnpm demo:build && node ./scripts/copy-registry-to-dist.mjs",
107
- "worker:dev": "pnpm worker:build && wrangler dev",
144
+ "worker:build": "pnpm demo:build && pnpm storybook:build && node ./scripts/copy-registry-to-dist.mjs",
145
+ "worker:build:dev": "pnpm demo:build && node ./scripts/copy-registry-to-dist.mjs --skip-storybook",
146
+ "worker:dev": "pnpm worker:build:dev && wrangler dev",
108
147
  "worker:deploy": "pnpm worker:build && wrangler deploy",
109
148
  "test": "vitest run --environment jsdom",
110
149
  "test:run": "vitest run --environment jsdom",
150
+ "test:integration": "vitest run --config vitest.config.integration.ts",
111
151
  "typecheck": "tsc --noEmit",
152
+ "storybook": "storybook dev -p 6006 --no-open",
153
+ "storybook:build": "storybook build -o storybook-static",
154
+ "chromatic": "chromatic --build-script-name=storybook:build --exit-zero-on-changes",
155
+ "size-limit": "size-limit",
156
+ "size-limit:why": "size-limit --why",
112
157
  "version": "changeset version",
113
158
  "release": "pnpm build && changeset publish",
114
- "registry:validate": "node ./registry/scripts/validate-registry.mjs"
159
+ "registry:validate": "node ./registry/scripts/validate-registry.mjs",
160
+ "lint:tokens": "node scripts/lint-tokens.mjs",
161
+ "quality": "pnpm lint && pnpm typecheck && pnpm lint:tokens && pnpm test"
115
162
  }
116
163
  }