@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.
@@ -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
@@ -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.18.0",
5
+ "version": "1.18.1",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
8
8
  ".": {
@@ -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;