@gram-ai/elements 1.8.2 → 1.8.4

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.
package/README.md CHANGED
@@ -13,10 +13,10 @@ This package provides two separate exports with different dependencies:
13
13
 
14
14
  ### Frontend Setup
15
15
 
16
- If you're using the React UI components, install the required peer dependencies:
16
+ First ensure that you have installed the required peer dependencies:
17
17
 
18
18
  ```bash
19
- pnpm add react react-dom @assistant-ui/react @assistant-ui/react-markdown motion remark-gfm zustand
19
+ pnpm add react react-dom @assistant-ui/react @assistant-ui/react-markdown motion remark-gfm zustand d3
20
20
  ```
21
21
 
22
22
  Then install Elements:
@@ -1,13 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
- declare const buttonVariants: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
3
  declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
8
4
  variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
9
5
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
10
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
11
7
  asChild?: boolean;
12
8
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
- export { Button, buttonVariants };
9
+ export { Button };
@@ -0,0 +1,4 @@
1
+ export declare const buttonVariants: (props?: ({
2
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
3
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
- import { ElementsContextType, ElementsProviderProps } from '../types';
1
+ import { ElementsProviderProps } from '../types';
2
2
  export declare const ElementsProvider: ({ children, config, }: ElementsProviderProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const useElements: () => ElementsContextType;
@@ -0,0 +1,2 @@
1
+ import { ElementsContextType } from '../types';
2
+ export declare const ElementsContext: import('react').Context<ElementsContextType | undefined>;