@gram-ai/elements 1.8.2 → 1.8.3

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 @@
1
+ export declare const useElements: () => import('../types').ElementsContextType;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { ElementsProvider as GramElementsProvider } from './contexts/ElementsProvider';
2
- export { useElements as useGramElements } from './contexts/ElementsProvider';
2
+ export { useElements as useGramElements } from './hooks/useElements';
3
3
  export { Chat } from './components/Chat';
4
4
  export type { ElementsConfig, ComposerConfig, ModalConfig, ToolsConfig, ModelConfig, WelcomeConfig, Suggestion, Model, ModalTriggerPosition, } from './types';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gram-ai/elements",
3
3
  "description": "Gram Elements is a library of UI primitives for building chat-like experiences for MCP Servers.",
4
4
  "type": "module",
5
- "version": "1.8.2",
5
+ "version": "1.8.3",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
8
8
  ".": {
@@ -44,6 +44,7 @@
44
44
  "@assistant-ui/react-markdown": "^0.11.0",
45
45
  "@types/react": ">=18 <20",
46
46
  "@types/react-dom": ">=18 <20",
47
+ "d3": "^7.9.0",
47
48
  "motion": "^12.0.0",
48
49
  "react": ">=18 <20",
49
50
  "react-dom": ">=18 <20",
@@ -77,6 +78,9 @@
77
78
  },
78
79
  "zustand": {
79
80
  "optional": true
81
+ },
82
+ "d3": {
83
+ "optional": true
80
84
  }
81
85
  },
82
86
  "dependencies": {
@@ -92,7 +96,6 @@
92
96
  "assistant-stream": "^0.2.42",
93
97
  "class-variance-authority": "^0.7.1",
94
98
  "clsx": "^2.1.1",
95
- "d3": "^7.9.0",
96
99
  "lucide-react": "^0.544.0",
97
100
  "tailwind-merge": "^3.3.1",
98
101
  "tw-shimmer": "^0.4.0",
@@ -109,6 +112,7 @@
109
112
  "@storybook/addon-docs": "^10.0.8",
110
113
  "@storybook/react-vite": "^10.0.8",
111
114
  "@tailwindcss/vite": "^4.1.13",
115
+ "@types/d3": "^7.4.3",
112
116
  "@types/lodash.merge": "^4.6.9",
113
117
  "@types/node": "^24.10.1",
114
118
  "@vitejs/plugin-react": "^5.0.3",