@gram-ai/elements 1.18.0 → 1.18.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.
- package/dist/components/Chat/stories/ColorScheme.stories.d.ts +8 -0
- package/dist/components/Chat/stories/Composer.stories.d.ts +7 -0
- package/dist/components/Chat/stories/Customization.stories.d.ts +8 -0
- package/dist/components/Chat/stories/Density.stories.d.ts +8 -0
- package/dist/components/Chat/stories/FrontendTools.stories.d.ts +6 -0
- package/dist/components/Chat/stories/Modal.stories.d.ts +11 -0
- package/dist/components/Chat/stories/Model.stories.d.ts +6 -0
- package/dist/components/Chat/stories/Plugins.stories.d.ts +6 -0
- package/dist/components/Chat/stories/Radius.stories.d.ts +8 -0
- package/dist/components/Chat/stories/ToolApproval.stories.d.ts +8 -0
- package/dist/components/Chat/stories/Tools.stories.d.ts +6 -0
- package/dist/components/Chat/stories/Variants.stories.d.ts +8 -0
- package/dist/components/Chat/stories/Welcome.stories.d.ts +6 -0
- package/dist/elements.cjs +9 -9
- package/dist/elements.css +1 -1
- package/dist/elements.js +575 -583
- package/dist/types/index.d.ts +9 -5
- package/package.json +1 -1
- package/dist/components/Chat/index.stories.d.ts +0 -42
package/dist/types/index.d.ts
CHANGED
|
@@ -83,6 +83,15 @@ export interface ElementsConfig {
|
|
|
83
83
|
* }
|
|
84
84
|
*/
|
|
85
85
|
components?: ComponentOverrides;
|
|
86
|
+
/**
|
|
87
|
+
* The Gram API URL to use for the Elements library.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* const config: ElementsConfig = {
|
|
91
|
+
* apiURL: 'https://api.getgram.ai',
|
|
92
|
+
* }
|
|
93
|
+
*/
|
|
94
|
+
apiURL?: string;
|
|
86
95
|
/**
|
|
87
96
|
* The project slug to use for the Elements library.
|
|
88
97
|
*
|
|
@@ -614,10 +623,5 @@ export type ElementsContextType = {
|
|
|
614
623
|
isOpen: boolean;
|
|
615
624
|
setIsOpen: (isOpen: boolean) => void;
|
|
616
625
|
plugins: Plugin[];
|
|
617
|
-
/**
|
|
618
|
-
* Indicates if the process of discovering MCP tools is still ongoing.
|
|
619
|
-
* TODO: failure state
|
|
620
|
-
*/
|
|
621
|
-
isLoadingMCPTools: boolean;
|
|
622
626
|
};
|
|
623
627
|
export {};
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Chat } from '.';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
3
|
-
import { ColorScheme, Density, Radius, Variant } from '../../types';
|
|
4
|
-
declare const meta: Meta<typeof Chat>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryFn<typeof Chat>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
interface PlaygroundArgs {
|
|
9
|
-
colorScheme: ColorScheme;
|
|
10
|
-
density: Density;
|
|
11
|
-
radius: Radius;
|
|
12
|
-
variant: Variant;
|
|
13
|
-
greeting: string;
|
|
14
|
-
subtitle: string;
|
|
15
|
-
starterPrompts: 'none' | 'some' | 'many';
|
|
16
|
-
placeholder: string;
|
|
17
|
-
attachments: boolean;
|
|
18
|
-
headerTitle: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const ThemePlayground: StoryFn<PlaygroundArgs>;
|
|
21
|
-
export declare const VariantPlayground: Story;
|
|
22
|
-
export declare const Standalone: Story;
|
|
23
|
-
export declare const Sidecar: Story;
|
|
24
|
-
export declare const WithCustomModalIcon: Story;
|
|
25
|
-
export declare const WithCustomComposerPlaceholder: Story;
|
|
26
|
-
export declare const WithAttachmentsDisabled: Story;
|
|
27
|
-
export declare const WithCustomWelcomeMessage: Story;
|
|
28
|
-
export declare const WithCustomTools: Story;
|
|
29
|
-
export declare const WithModelPicker: Story;
|
|
30
|
-
export declare const WithExpandableModal: Story;
|
|
31
|
-
export declare const WithCustomModalTriggerPositionTopRight: Story;
|
|
32
|
-
export declare const WithCustomModalTriggerPositionBottomRight: Story;
|
|
33
|
-
export declare const WithCustomModalTriggerPositionBottomLeft: Story;
|
|
34
|
-
export declare const WithCustomModalTriggerPositionTopLeft: Story;
|
|
35
|
-
export declare const WithCustomSystemPrompt: Story;
|
|
36
|
-
export declare const WithChartPlugin: Story;
|
|
37
|
-
export declare const WithCustomComponentOverrides: Story;
|
|
38
|
-
export declare const WithFrontendTools: Story;
|
|
39
|
-
export declare const WithCustomLanguageModel: Story;
|
|
40
|
-
export declare const WithToolsRequiringApproval: Story;
|
|
41
|
-
export declare const WithMultipleGroupedToolsRequiringApproval: Story;
|
|
42
|
-
export declare const WithFrontendToolRequiringApproval: Story;
|