@speakeasy-api/moonshine 1.42.0 → 1.43.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 (111) hide show
  1. package/README.md +19 -21
  2. package/dist/components/AIChat/AIChatContainer.d.ts +2 -2
  3. package/dist/components/AIChat/AIChatMessage.d.ts +1 -1
  4. package/dist/components/AIChat/AIChatMessageComposer.d.ts +3 -3
  5. package/dist/components/AIChat/AIChatMessageList.d.ts +1 -1
  6. package/dist/components/AIChat/AIChatModelSelector.d.ts +2 -1
  7. package/dist/components/AIChat/parts/AIChatMessageFilePart.d.ts +1 -1
  8. package/dist/components/AIChat/parts/AIChatMessageReasoningPart.d.ts +1 -1
  9. package/dist/components/AIChat/parts/AIChatMessageSourcePart.d.ts +1 -1
  10. package/dist/components/AIChat/parts/AIChatMessageTextPart.d.ts +1 -1
  11. package/dist/components/AIChat/parts/AIChatMessageToolInvocationPart.d.ts +1 -1
  12. package/dist/components/AIChat/parts/AIChatMessageToolPart.d.ts +5 -5
  13. package/dist/components/AIChat/parts/AIChatMessageToolResultPart.d.ts +1 -1
  14. package/dist/components/AIChat/types.d.ts +9 -9
  15. package/dist/components/ActionBar/index.d.ts +3 -3
  16. package/dist/components/Alert/index.d.ts +2 -2
  17. package/dist/components/AppLayout/index.d.ts +11 -11
  18. package/dist/components/AppLayout/provider.d.ts +2 -2
  19. package/dist/components/Badge/index.d.ts +3 -3
  20. package/dist/components/Button/index.d.ts +3 -3
  21. package/dist/components/Card/index.d.ts +3 -3
  22. package/dist/components/CodeEditorLayout/index.d.ts +8 -8
  23. package/dist/components/CodeHighlight/Pre.d.ts +1 -1
  24. package/dist/components/CodePlayground/index.d.ts +4 -4
  25. package/dist/components/CodeSnippet/index.d.ts +1 -1
  26. package/dist/components/Combobox/index.d.ts +4 -4
  27. package/dist/components/Command/index.d.ts +3 -3
  28. package/dist/components/Container/index.d.ts +1 -1
  29. package/dist/components/ContextDropdown/index.d.ts +1 -1
  30. package/dist/components/Dialog/index.d.ts +4 -4
  31. package/dist/components/DragNDrop/DragNDropArea.d.ts +1 -1
  32. package/dist/components/DragNDrop/Draggable.d.ts +1 -1
  33. package/dist/components/DragNDrop/Droppable.d.ts +1 -1
  34. package/dist/components/Dropdown/index.d.ts +3 -3
  35. package/dist/components/ExternalPill/index.d.ts +3 -3
  36. package/dist/components/Facepile/index.d.ts +4 -3
  37. package/dist/components/GradientCircle/index.d.ts +1 -1
  38. package/dist/components/Grid/index.d.ts +4 -4
  39. package/dist/components/Heading/index.d.ts +2 -2
  40. package/dist/components/HighlightedText/index.d.ts +2 -2
  41. package/dist/components/Icon/index.d.ts +3 -3
  42. package/dist/components/IconButton/index.d.ts +3 -3
  43. package/dist/components/Input/index.d.ts +1 -1
  44. package/dist/components/KeyHint/index.d.ts +3 -3
  45. package/dist/components/LanguageIndicator/index.d.ts +1 -1
  46. package/dist/components/Link/index.d.ts +1 -1
  47. package/dist/components/Logo/Animated.d.ts +2 -2
  48. package/dist/components/Logo/index.d.ts +2 -2
  49. package/dist/components/Logo/svgs/index.d.ts +2 -2
  50. package/dist/components/Modal/index.d.ts +2 -2
  51. package/dist/components/PageHeader/index.d.ts +1 -1
  52. package/dist/components/Popover/index.d.ts +3 -3
  53. package/dist/components/PromptInput/index.d.ts +1 -1
  54. package/dist/components/PullRequestLink/index.d.ts +3 -3
  55. package/dist/components/ResizablePanel/index.d.ts +3 -3
  56. package/dist/components/Score/index.d.ts +1 -1
  57. package/dist/components/ScrollArea/index.d.ts +2 -2
  58. package/dist/components/SegmentedButton/index.d.ts +2 -2
  59. package/dist/components/Select/index.d.ts +2 -2
  60. package/dist/components/Separator/index.d.ts +1 -1
  61. package/dist/components/Skeleton/index.d.ts +1 -1
  62. package/dist/components/Stack/index.d.ts +6 -6
  63. package/dist/components/Subnav/index.d.ts +1 -1
  64. package/dist/components/Switch/index.d.ts +2 -2
  65. package/dist/components/Table/context/tableProvider.d.ts +1 -1
  66. package/dist/components/Table/index.d.ts +10 -10
  67. package/dist/components/Tabs/index.d.ts +2 -2
  68. package/dist/components/TargetLanguageIcon/index.d.ts +1 -1
  69. package/dist/components/Text/index.d.ts +6 -6
  70. package/dist/components/ThemeSwitcher/index.d.ts +2 -2
  71. package/dist/components/Timeline/index.d.ts +8 -8
  72. package/dist/components/Tooltip/index.d.ts +3 -3
  73. package/dist/components/UserAvatar/index.d.ts +1 -1
  74. package/dist/components/Wizard/index.d.ts +2 -2
  75. package/dist/components/WorkspaceSelector/CreateOrg.d.ts +1 -1
  76. package/dist/components/WorkspaceSelector/CreateWorkspace.d.ts +2 -1
  77. package/dist/components/WorkspaceSelector/OrgList.d.ts +1 -1
  78. package/dist/components/WorkspaceSelector/OrgSelector.d.ts +2 -1
  79. package/dist/components/WorkspaceSelector/RecentWorkspaces.d.ts +1 -1
  80. package/dist/components/WorkspaceSelector/SearchBox.d.ts +1 -1
  81. package/dist/components/WorkspaceSelector/WorkspaceList.d.ts +1 -1
  82. package/dist/components/WorkspaceSelector/index.d.ts +2 -1
  83. package/dist/components/__beta__/CLIWizard/index.d.ts +3 -2
  84. package/dist/components/__beta__/CLIWizard/terminal-command.d.ts +3 -9
  85. package/dist/components/__beta__/CLIWizard/terminal.d.ts +4 -4
  86. package/dist/context/ConfigContext.d.ts +1 -1
  87. package/dist/context/ModalContext.d.ts +2 -2
  88. package/dist/context/theme.d.ts +1 -1
  89. package/dist/createCustomLucideIcon-BSnVssGH.mjs.map +1 -1
  90. package/dist/gems-CjrcvmBL.mjs.map +1 -1
  91. package/dist/go-CMa98Edn.mjs.map +1 -1
  92. package/dist/hooks/useTheme.d.ts +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/lib/responsiveMappers.d.ts +1 -1
  95. package/dist/lib/storybookUtils.d.ts +2 -2
  96. package/dist/lib/typeUtils.d.ts +1 -1
  97. package/dist/maven-BhPvGLiR.mjs.map +1 -1
  98. package/dist/moonshine.css +1 -1
  99. package/dist/moonshine.es.js +2234 -2234
  100. package/dist/moonshine.es.js.map +1 -1
  101. package/dist/npm-BNJZqB_6.mjs.map +1 -1
  102. package/dist/nuget-DigVDFf0.mjs.map +1 -1
  103. package/dist/packagist-DvGLhkI-.mjs.map +1 -1
  104. package/dist/pypi-Cj9893_x.mjs.map +1 -1
  105. package/dist/types.d.ts +1 -1
  106. package/dist/utils-DnjhZJTm.mjs.map +1 -1
  107. package/package.json +12 -13
  108. package/src/base.css +281 -271
  109. package/src/global.css +16 -8
  110. package/src/utilities.css +0 -1
  111. package/types/utilities.d.ts +1 -1
package/README.md CHANGED
@@ -28,7 +28,7 @@ Add this to the top of your project's CSS file where you configure Tailwind:
28
28
  @reference "../node_modules/@speakeasy-api/moonshine/src/global.css";
29
29
 
30
30
  /* Your Tailwind setup */
31
- @import 'tailwindcss';
31
+ @import "tailwindcss";
32
32
  ```
33
33
 
34
34
  **Note:** The `@reference` directive is required for Tailwind v4 to recognize Moonshine's custom utilities and make them available in your project.
@@ -38,7 +38,7 @@ Add this to the top of your project's CSS file where you configure Tailwind:
38
38
  In your main app file (or root layout):
39
39
 
40
40
  ```ts
41
- import '@speakeasy-api/moonshine/moonshine.css'
41
+ import "@speakeasy-api/moonshine/moonshine.css";
42
42
  ```
43
43
 
44
44
  ### 4. Set up the Provider
@@ -46,10 +46,10 @@ import '@speakeasy-api/moonshine/moonshine.css'
46
46
  Wrap your application in the `MoonshineConfigProvider` component:
47
47
 
48
48
  ```tsx
49
- import { MoonshineConfigProvider } from '@speakeasy-api/moonshine'
50
- ;<MoonshineConfigProvider themeElement={document.documentElement}>
49
+ import { MoonshineConfigProvider } from "@speakeasy-api/moonshine";
50
+ <MoonshineConfigProvider themeElement={document.documentElement}>
51
51
  <App />
52
- </MoonshineConfigProvider>
52
+ </MoonshineConfigProvider>;
53
53
  ```
54
54
 
55
55
  ### 5. Configure Custom Fonts (Optional)
@@ -59,16 +59,16 @@ Moonshine uses custom fonts (Diatype, Tobias). If you have licenses for these fo
59
59
  ```css
60
60
  /* In your global CSS */
61
61
  @font-face {
62
- font-family: 'Diatype';
63
- src: url('/fonts/diatype/ABCDiatype-Regular.woff2') format('woff2');
62
+ font-family: "Diatype";
63
+ src: url("/fonts/diatype/ABCDiatype-Regular.woff2") format("woff2");
64
64
  font-weight: 400;
65
65
  font-style: normal;
66
66
  font-display: block;
67
67
  }
68
68
 
69
69
  @font-face {
70
- font-family: 'Diatype';
71
- src: url('/fonts/diatype/ABCDiatype-Light.woff2') format('woff2');
70
+ font-family: "Diatype";
71
+ src: url("/fonts/diatype/ABCDiatype-Light.woff2") format("woff2");
72
72
  font-weight: 300;
73
73
  font-style: normal;
74
74
  font-display: block;
@@ -82,10 +82,10 @@ If you don't have these fonts, the design system will fall back to system fonts.
82
82
  ### 6. Use Components and Utilities
83
83
 
84
84
  ```tsx
85
- import { Grid } from '@speakeasy-api/moonshine'
85
+ import { Grid } from "@speakeasy-api/moonshine";
86
86
 
87
87
  // Use semantic utility classes
88
- ;<div className="text-heading-lg bg-surface-primary">Hello Moonshine!</div>
88
+ <div className="text-heading-lg bg-surface-primary">Hello Moonshine!</div>;
89
89
  ```
90
90
 
91
91
  ### TypeScript Support for Utility Classes
@@ -93,15 +93,15 @@ import { Grid } from '@speakeasy-api/moonshine'
93
93
  Moonshine provides TypeScript types for all available utility classes to improve your development experience:
94
94
 
95
95
  ```tsx
96
- import type { MoonshineClasses } from '@speakeasy-api/moonshine/types/utilities'
96
+ import type { MoonshineClasses } from "@speakeasy-api/moonshine/types/utilities";
97
97
 
98
98
  // Use for type-safe className props
99
99
  interface MyComponentProps {
100
- className?: MoonshineClasses
100
+ className?: MoonshineClasses;
101
101
  }
102
102
 
103
103
  // Get autocomplete for all available utilities
104
- const styles: MoonshineClasses = 'text-heading-lg' // ✅ Autocompletes!
104
+ const styles: MoonshineClasses = "text-heading-lg"; // ✅ Autocompletes!
105
105
  ```
106
106
 
107
107
  The types are automatically generated during the build process and include:
@@ -119,15 +119,15 @@ The package is built with [vite](https://vitejs.dev/), and is distributed in bot
119
119
  Moonshine exports a custom wrapper for Tailwind Merge to avoid unexpected clashes between semantic class names. This version should be used in favour of using tailwind merge directly.
120
120
 
121
121
  ```tsx
122
- import { cn } from '@speakeasy-api/moonshine'
122
+ import { cn } from "@speakeasy-api/moonshine";
123
123
 
124
124
  return (
125
125
  <span
126
- className={cn('text-body-md', props.muted ? 'text-muted' : 'text-default')}
126
+ className={cn("text-body-md", props.muted ? "text-muted" : "text-default")}
127
127
  >
128
128
  Lorem Ipsum
129
129
  </span>
130
- )
130
+ );
131
131
  ```
132
132
 
133
133
  ## Design System Architecture
@@ -139,13 +139,11 @@ Moonshine is a utility-first design system built on top of [Tailwind CSS v4](htt
139
139
  Our CSS is organized into three main files:
140
140
 
141
141
  1. **`base.css`** - Primitive design tokens (colors, fonts, spacing scales)
142
-
143
142
  - Contains raw values that should **not** be used directly in components
144
143
  - Defines theme-aware semantic tokens that adapt to light/dark mode
145
144
  - Houses base element styles and resets
146
145
 
147
146
  2. **`utilities.css`** - The public API of our design system
148
-
149
147
  - Exposes carefully crafted utility classes like `text-heading-xl`, `bg-surface-primary`
150
148
  - Enforces typography combinations to prevent arbitrary text styling
151
149
  - Provides semantic color utilities that automatically handle theming
@@ -197,7 +195,7 @@ Ensure the `themeElement` prop in `MoonshineConfigProvider` points to the elemen
197
195
  Make sure you're importing from the correct path:
198
196
 
199
197
  ```tsx
200
- import type { MoonshineClasses } from '@speakeasy-api/moonshine/types/utilities'
198
+ import type { MoonshineClasses } from "@speakeasy-api/moonshine/types/utilities";
201
199
  ```
202
200
 
203
201
  ## Contributing
@@ -275,7 +273,7 @@ pnpm link ../path/to/moonshine
275
273
  The lockfile file within your app should referenced the linked copy:
276
274
 
277
275
  ```yaml
278
- '@speakeasy-api/moonshine':
276
+ "@speakeasy-api/moonshine":
279
277
  specifier: ^0.43.1
280
278
  version: link:../../../../moonshine
281
279
  ```
@@ -10,7 +10,7 @@ export interface ModelSelectorConfig {
10
10
  value: string;
11
11
  }[];
12
12
  }
13
- export interface AIChatContainerProps extends Omit<AIChatContextValue, 'model' | 'onModelChange' | 'availableModels' | 'toolCallApproval'> {
13
+ export interface AIChatContainerProps extends Omit<AIChatContextValue, "model" | "onModelChange" | "availableModels" | "toolCallApproval"> {
14
14
  modelSelector?: ModelSelectorConfig;
15
15
  className?: string;
16
16
  components?: Partial<AIChatComponents>;
@@ -22,5 +22,5 @@ interface AIChatComponents {
22
22
  composer: Partial<AIChatMessageComposerComponents>;
23
23
  message: Partial<AIChatMessageComponents>;
24
24
  }
25
- export declare function AIChatContainer({ messages, isLoading, onSendMessage, modelSelector, className, components, toolCallApproval, children, initialInput, }: AIChatContainerProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function AIChatContainer({ messages, isLoading, onSendMessage, modelSelector, className, components, toolCallApproval, children, initialInput, }: AIChatContainerProps): import("react").JSX.Element;
26
26
  export {};
@@ -15,5 +15,5 @@ export interface AIChatMessageComponents {
15
15
  toolCall: Partial<AIChatMessageToolPartComponents>;
16
16
  avatar: Partial<AvatarComponents>;
17
17
  }
18
- export declare function AIChatMessage({ message, className, components, }: AIChatMessageProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function AIChatMessage({ message, className, components, }: AIChatMessageProps): import("react").JSX.Element;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { FcOrClassName } from './componentsTypes';
3
3
  export interface AIChatMessageComposerProps {
4
4
  className?: string;
@@ -7,7 +7,7 @@ export interface AIChatMessageComposerProps {
7
7
  export type AIChatMessageComposerComponents = {
8
8
  submitButton: FcOrClassName<{
9
9
  disabled?: boolean;
10
- type: 'submit';
10
+ type: "submit";
11
11
  }>;
12
12
  modelSelector: FcOrClassName<{
13
13
  model: string;
@@ -19,4 +19,4 @@ export type AIChatMessageComposerComponents = {
19
19
  }>;
20
20
  additionalActions: ReactNode;
21
21
  };
22
- export declare function AIChatMessageComposer({ className, components, }: AIChatMessageComposerProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function AIChatMessageComposer({ className, components, }: AIChatMessageComposerProps): React.JSX.Element;
@@ -3,4 +3,4 @@ export interface AIChatMessageListProps {
3
3
  components?: Partial<AIChatMessageComponents>;
4
4
  className?: string;
5
5
  }
6
- export declare function AIChatMessageList({ components, className, }: AIChatMessageListProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AIChatMessageList({ components, className, }: AIChatMessageListProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  interface ModelSelectorConfig {
2
3
  model: string;
3
4
  onModelChange: (v: string) => void;
@@ -10,5 +11,5 @@ interface AIChatModelSelectorProps {
10
11
  modelSelector?: ModelSelectorConfig;
11
12
  className?: string;
12
13
  }
13
- export declare function AIChatModelSelector({ modelSelector, className, }: AIChatModelSelectorProps): import("react/jsx-runtime").JSX.Element | null;
14
+ export declare function AIChatModelSelector({ modelSelector, className, }: AIChatModelSelectorProps): React.JSX.Element | null;
14
15
  export {};
@@ -4,4 +4,4 @@ export interface AIChatMessageFilePartProps extends BasePartProps {
4
4
  data: string;
5
5
  fileName?: string;
6
6
  }
7
- export declare function AIChatMessageFilePart({ mimeType, data, fileName, className, }: AIChatMessageFilePartProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function AIChatMessageFilePart({ mimeType, data, fileName, className, }: AIChatMessageFilePartProps): import("react").JSX.Element;
@@ -2,4 +2,4 @@ import { BasePartProps } from '../types';
2
2
  export interface AIChatMessageReasoningPartProps extends BasePartProps {
3
3
  reasoning: string;
4
4
  }
5
- export declare function AIChatMessageReasoningPart({ reasoning, className, }: AIChatMessageReasoningPartProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function AIChatMessageReasoningPart({ reasoning, className, }: AIChatMessageReasoningPartProps): import("react").JSX.Element;
@@ -6,4 +6,4 @@ export interface AIChatMessageSourcePartProps extends BasePartProps {
6
6
  title?: string;
7
7
  };
8
8
  }
9
- export declare function AIChatMessageSourcePart({ source, className, }: AIChatMessageSourcePartProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function AIChatMessageSourcePart({ source, className, }: AIChatMessageSourcePartProps): import("react").JSX.Element;
@@ -2,4 +2,4 @@ import { BasePartProps } from '../types';
2
2
  export interface AIChatMessageTextPartProps extends BasePartProps {
3
3
  text: string;
4
4
  }
5
- export declare function AIChatMessageTextPart({ text, className, }: AIChatMessageTextPartProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function AIChatMessageTextPart({ text, className, }: AIChatMessageTextPartProps): import("react").JSX.Element;
@@ -3,4 +3,4 @@ export interface AIChatMessageToolInvocationPartProps extends BasePartProps {
3
3
  toolName: string;
4
4
  toolInput?: Record<string, unknown>;
5
5
  }
6
- export declare function AIChatMessageToolInvocationPart({ toolName, toolInput, className, }: AIChatMessageToolInvocationPartProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AIChatMessageToolInvocationPart({ toolName, toolInput, className, }: AIChatMessageToolInvocationPartProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { BaseComponents, FcOrClassName } from '../componentsTypes';
2
2
  import { BasePartProps } from '../types';
3
- type ToolInvocationState = 'partial-call' | 'call' | 'result';
4
- type ToolInvocationStatus = 'pending' | 'in-progress' | 'success' | 'error';
3
+ type ToolInvocationState = "partial-call" | "call" | "result";
4
+ type ToolInvocationStatus = "pending" | "in-progress" | "success" | "error";
5
5
  interface ToolInvocation {
6
6
  state: ToolInvocationState;
7
7
  toolCallId: string;
@@ -22,12 +22,12 @@ export interface AIChatMessageToolPartComponents extends BaseComponents {
22
22
  statusIndicator: FcOrClassName<{
23
23
  status: ToolInvocationStatus;
24
24
  }>;
25
- input: FcOrClassName<Omit<ToolInvocation, 'args'> & {
25
+ input: FcOrClassName<Omit<ToolInvocation, "args"> & {
26
26
  args: string;
27
27
  }>;
28
- result: FcOrClassName<Omit<ToolInvocation, 'result'> & {
28
+ result: FcOrClassName<Omit<ToolInvocation, "result"> & {
29
29
  result: string;
30
30
  }>;
31
31
  }
32
- export declare function AIChatMessageToolPart({ toolInvocation, className, components, }: AIChatMessageToolPartProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function AIChatMessageToolPart({ toolInvocation, className, components, }: AIChatMessageToolPartProps): import("react").JSX.Element;
33
33
  export {};
@@ -2,4 +2,4 @@ import { BasePartProps } from '../types';
2
2
  export interface AIChatMessageToolResultPartProps extends BasePartProps {
3
3
  content: string;
4
4
  }
5
- export declare function AIChatMessageToolResultPart({ content, className, }: AIChatMessageToolResultPartProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function AIChatMessageToolResultPart({ content, className, }: AIChatMessageToolResultPartProps): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ToolCall } from 'ai';
2
- export type MessageRole = 'user' | 'assistant' | 'system';
2
+ export type MessageRole = "user" | "assistant" | "system";
3
3
  export type ToolArgs = {
4
4
  target_file?: string;
5
5
  should_read_entire_file?: boolean;
@@ -12,35 +12,35 @@ export type ToolArgs = {
12
12
  explanation?: string;
13
13
  };
14
14
  export type ToolInvocation = {
15
- type: 'tool-invocation';
15
+ type: "tool-invocation";
16
16
  toolInvocation: {
17
17
  toolName: string;
18
18
  toolCallId: string;
19
- state: 'partial-call' | 'call' | 'result';
19
+ state: "partial-call" | "call" | "result";
20
20
  args: ToolArgs;
21
21
  };
22
22
  };
23
23
  export type ToolResult = {
24
- type: 'tool-result';
24
+ type: "tool-result";
25
25
  toolCallId: string;
26
26
  content: string;
27
27
  };
28
28
  export type TextPart = {
29
- type: 'text';
29
+ type: "text";
30
30
  text: string;
31
31
  };
32
32
  export type ReasoningPart = {
33
- type: 'reasoning';
33
+ type: "reasoning";
34
34
  reasoning: string;
35
35
  };
36
36
  export type FilePart = {
37
- type: 'file';
37
+ type: "file";
38
38
  mimeType: string;
39
39
  data: string;
40
40
  fileName: string;
41
41
  };
42
42
  export type SourcePart = {
43
- type: 'source';
43
+ type: "source";
44
44
  source: {
45
45
  id: string;
46
46
  url: string;
@@ -50,7 +50,7 @@ export type SourcePart = {
50
50
  export type MessagePart = TextPart | ReasoningPart | ToolInvocation | ToolResult | FilePart | SourcePart;
51
51
  export type ChatMessage = {
52
52
  id: string;
53
- role: 'user' | 'assistant';
53
+ role: "user" | "assistant";
54
54
  parts: MessagePart[];
55
55
  };
56
56
  export interface AIChatContextValue {
@@ -21,15 +21,15 @@ interface ActionBarItemProps {
21
21
  iconName: IconName;
22
22
  }
23
23
  export declare const ActionBar: {
24
- ({ children, modifiers, ...props }: ActionBarProps): import("react/jsx-runtime").JSX.Element;
24
+ ({ children, modifiers, ...props }: ActionBarProps): import("react").JSX.Element;
25
25
  displayName: string;
26
26
  } & {
27
27
  Item: {
28
- ({ children, onClick, disabled, className, iconName, }: ActionBarItemProps): import("react/jsx-runtime").JSX.Element;
28
+ ({ children, onClick, disabled, className, iconName, }: ActionBarItemProps): import("react").JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  Separator: {
32
- (): import("react/jsx-runtime").JSX.Element;
32
+ (): import("react").JSX.Element;
33
33
  displayName: string;
34
34
  };
35
35
  };
@@ -5,7 +5,7 @@ declare const alertVariants: (props?: ({
5
5
  modifiers?: "inline" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export type AlertProps = {
8
- variant: NonNullable<VariantProps<typeof alertVariants>['variant']>;
8
+ variant: NonNullable<VariantProps<typeof alertVariants>["variant"]>;
9
9
  children: React.ReactNode;
10
10
  inline?: boolean;
11
11
  dismissible?: boolean;
@@ -14,5 +14,5 @@ export type AlertProps = {
14
14
  useContainer?: boolean;
15
15
  className?: string;
16
16
  };
17
- export declare function Alert({ variant, children, inline, dismissible, onDismiss, iconName, useContainer, className, }: AlertProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Alert({ variant, children, inline, dismissible, onDismiss, iconName, useContainer, className, }: AlertProps): import("react").JSX.Element;
18
18
  export {};
@@ -4,14 +4,14 @@ interface AppLayoutProps extends PropsWithChildren {
4
4
  className?: string;
5
5
  }
6
6
  declare const AppLayoutBase: {
7
- ({ children, className }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ children, className }: AppLayoutProps): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  interface AppLayoutSurfaceProps extends HTMLAttributes<HTMLDivElement> {
11
11
  className?: string;
12
12
  }
13
13
  declare const AppLayoutSurface: {
14
- ({ children, className, ...props }: AppLayoutSurfaceProps): import("react/jsx-runtime").JSX.Element;
14
+ ({ children, className, ...props }: AppLayoutSurfaceProps): React.JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  interface AppLayoutSidebarProps {
@@ -27,21 +27,21 @@ interface AppLayoutSidebarProps {
27
27
  onHomeNavigation?: () => void;
28
28
  }
29
29
  declare const AppLayoutSidebar: {
30
- ({ children, className, onHomeNavigation, }: AppLayoutSidebarProps): import("react/jsx-runtime").JSX.Element;
30
+ ({ children, className, onHomeNavigation, }: AppLayoutSidebarProps): React.JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  interface AppLayoutThemeSwitcherProps {
34
34
  className?: string;
35
35
  }
36
36
  declare const AppLayoutThemeSwitcher: {
37
- ({ className }: AppLayoutThemeSwitcherProps): import("react/jsx-runtime").JSX.Element;
37
+ ({ className }: AppLayoutThemeSwitcherProps): React.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  interface AppLayoutBreadcrumbProps extends PropsWithChildren {
41
41
  className?: string;
42
42
  }
43
43
  declare const AppLayoutBreadcrumb: {
44
- ({ children, className, }: AppLayoutBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
44
+ ({ children, className, }: AppLayoutBreadcrumbProps): React.JSX.Element;
45
45
  displayName: string;
46
46
  };
47
47
  export interface AppLayoutBreadcrumbItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
@@ -53,35 +53,35 @@ export interface AppLayoutBreadcrumbItemProps extends React.AnchorHTMLAttributes
53
53
  }
54
54
  declare const AppLayoutBreadcrumbItem: React.ForwardRefExoticComponent<AppLayoutBreadcrumbItemProps & React.RefAttributes<HTMLAnchorElement>>;
55
55
  declare const AppLayoutHeaderDivider: {
56
- (): import("react/jsx-runtime").JSX.Element;
56
+ (): React.JSX.Element;
57
57
  displayName: string;
58
58
  };
59
59
  interface AppLayoutCollapseButtonProps extends PropsWithChildren {
60
60
  className?: string;
61
61
  }
62
62
  declare const AppLayoutCollapseButton: {
63
- ({ className, }: AppLayoutCollapseButtonProps): import("react/jsx-runtime").JSX.Element;
63
+ ({ className, }: AppLayoutCollapseButtonProps): React.JSX.Element;
64
64
  displayName: string;
65
65
  };
66
66
  interface AppLayoutSurfaceHeaderProps extends PropsWithChildren {
67
67
  className?: string;
68
68
  }
69
69
  declare const AppLayoutSurfaceHeader: {
70
- ({ children, className, }: AppLayoutSurfaceHeaderProps): import("react/jsx-runtime").JSX.Element;
70
+ ({ children, className, }: AppLayoutSurfaceHeaderProps): React.JSX.Element;
71
71
  displayName: string;
72
72
  };
73
73
  interface AppLayoutHeaderProps extends PropsWithChildren {
74
74
  className?: string;
75
75
  }
76
76
  declare const AppLayoutHeader: {
77
- ({ children, className }: AppLayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
77
+ ({ children, className }: AppLayoutHeaderProps): React.JSX.Element;
78
78
  displayName: string;
79
79
  };
80
80
  interface AppLayoutNavProps extends HTMLAttributes<HTMLDivElement> {
81
81
  className?: string;
82
82
  }
83
83
  declare const AppLayoutNav: {
84
- ({ children, className, ...props }: AppLayoutNavProps): import("react/jsx-runtime").JSX.Element;
84
+ ({ children, className, ...props }: AppLayoutNavProps): React.JSX.Element;
85
85
  displayName: string;
86
86
  };
87
87
  export interface AppLayoutNavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
@@ -111,7 +111,7 @@ export interface AppLayoutNavItemGroupProps extends HTMLAttributes<HTMLDivElemen
111
111
  children: React.ReactNode;
112
112
  }
113
113
  declare const AppLayoutNavItemGroup: {
114
- ({ children, className, name, ...props }: AppLayoutNavItemGroupProps): import("react/jsx-runtime").JSX.Element;
114
+ ({ children, className, name, ...props }: AppLayoutNavItemGroupProps): React.JSX.Element;
115
115
  displayName: string;
116
116
  };
117
117
  declare const AppLayout: typeof AppLayoutBase & {
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
2
2
  import { AppLayoutContextType } from './context';
3
3
  interface AppLayoutProviderProps extends PropsWithChildren {
4
4
  defaultCollapsed?: boolean;
5
- keybinds?: AppLayoutContextType['keybinds'];
5
+ keybinds?: AppLayoutContextType["keybinds"];
6
6
  }
7
- export declare const AppLayoutProvider: ({ children, defaultCollapsed, keybinds, }: AppLayoutProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AppLayoutProvider: ({ children, defaultCollapsed, keybinds, }: AppLayoutProviderProps) => import("react").JSX.Element;
8
8
  export {};
@@ -1,17 +1,17 @@
1
1
  import { BadgeVariant, BadgeSize } from '../../types';
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
  declare const BadgeLeftIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
4
4
  declare const BadgeRightIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
5
5
  declare const BadgeIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
6
6
  declare const BadgeText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
7
- type Attributes = Omit<React.HTMLAttributes<HTMLSpanElement>, 'style'>;
7
+ type Attributes = Omit<React.HTMLAttributes<HTMLSpanElement>, "style">;
8
8
  export interface BadgeProps extends Attributes {
9
9
  asChild?: boolean;
10
10
  variant?: BadgeVariant;
11
11
  size?: BadgeSize;
12
12
  background?: boolean;
13
13
  className?: string;
14
- 'aria-label'?: string;
14
+ "aria-label"?: string;
15
15
  }
16
16
  declare const BadgeWithCompounds: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>> & {
17
17
  Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
@@ -1,17 +1,17 @@
1
1
  import { ButtonSize, ButtonVariant, ButtonContext } from '../../types';
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
  declare const ButtonLeftIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
4
4
  declare const ButtonRightIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
5
5
  declare const ButtonIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
6
6
  declare const ButtonText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
7
- type Attributes = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'>;
7
+ type Attributes = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "style">;
8
8
  export interface ButtonProps extends Attributes {
9
9
  asChild?: boolean;
10
10
  variant?: ButtonVariant;
11
11
  size?: ButtonSize;
12
12
  context?: ButtonContext;
13
13
  className?: string;
14
- 'aria-label'?: string;
14
+ "aria-label"?: string;
15
15
  }
16
16
  declare const ButtonWithCompounds: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>> & {
17
17
  Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
@@ -2,16 +2,16 @@ import { default as React, PropsWithChildren, ReactNode } from 'react';
2
2
  import { iconNames } from '../Icon/names';
3
3
  import { Range } from '../../lib/typeUtils';
4
4
  type RightElement = {
5
- type: 'button';
5
+ type: "button";
6
6
  label: string;
7
7
  onClick: () => void;
8
8
  } | {
9
- type: 'gauge';
9
+ type: "gauge";
10
10
  value: Range<100>;
11
11
  };
12
12
  type IconProps = {
13
13
  name: (typeof iconNames)[number];
14
- size?: 'small' | 'medium' | 'large';
14
+ size?: "small" | "medium" | "large";
15
15
  };
16
16
  type CardHeaderProps = PropsWithChildren & {
17
17
  subheader?: React.ReactNode;
@@ -15,7 +15,7 @@ export interface CodeEditorPaneProps extends PanelProps {
15
15
  export interface CodeEditorTabsProps extends PropsWithChildren, HTMLAttributes<HTMLDivElement> {
16
16
  className?: string;
17
17
  }
18
- export interface CodeEditorTabProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'> {
18
+ export interface CodeEditorTabProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick" | "title"> {
19
19
  id: string;
20
20
  title?: string | ReactNode;
21
21
  className?: string;
@@ -70,31 +70,31 @@ export interface CodeEditorEmptyProps extends PropsWithChildren, HTMLAttributes<
70
70
  className?: string;
71
71
  }
72
72
  declare const CodeEditor: {
73
- ({ children, className }: CodeEditorLayoutProps): import("react/jsx-runtime").JSX.Element;
73
+ ({ children, className }: CodeEditorLayoutProps): import("react").JSX.Element;
74
74
  displayName: string;
75
75
  } & {
76
76
  Pane: {
77
- ({ children, className, minSize, maxSize, containerRef, tabs, ...props }: CodeEditorPaneProps): import("react/jsx-runtime").JSX.Element;
77
+ ({ children, className, minSize, maxSize, containerRef, tabs, ...props }: CodeEditorPaneProps): import("react").JSX.Element;
78
78
  displayName: string;
79
79
  };
80
80
  CommandBar: {
81
- ({ children, className, ...props }: CodeEditorCommandBarProps): import("react/jsx-runtime").JSX.Element;
81
+ ({ children, className, ...props }: CodeEditorCommandBarProps): import("react").JSX.Element;
82
82
  displayName: string;
83
83
  };
84
84
  Empty: {
85
- ({ children, className, ...props }: CodeEditorEmptyProps): import("react/jsx-runtime").JSX.Element;
85
+ ({ children, className, ...props }: CodeEditorEmptyProps): import("react").JSX.Element;
86
86
  displayName: string;
87
87
  };
88
88
  Tabs: {
89
- ({ children, className, ...props }: CodeEditorTabsProps): import("react/jsx-runtime").JSX.Element;
89
+ ({ children, className, ...props }: CodeEditorTabsProps): import("react").JSX.Element;
90
90
  displayName: string;
91
91
  };
92
92
  Tab: {
93
- ({ id, title, className, active, closable, grow, dirty, invalid, saving, onClick, onClose, icon, disabled, customStyles, ...props }: CodeEditorTabProps): import("react/jsx-runtime").JSX.Element;
93
+ ({ id, title, className, active, closable, grow, dirty, invalid, saving, onClick, onClose, icon, disabled, customStyles, ...props }: CodeEditorTabProps): import("react").JSX.Element;
94
94
  displayName: string;
95
95
  };
96
96
  CustomTabElement: {
97
- ({ children, className, ...props }: CodeEditorCustomElementProps): import("react/jsx-runtime").JSX.Element;
97
+ ({ children, className, ...props }: CodeEditorCustomElementProps): import("react").JSX.Element;
98
98
  displayName: string;
99
99
  };
100
100
  };
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { HighlightedCode } from '../../lib/codeUtils';
3
- export interface PreProps extends Omit<HTMLAttributes<HTMLPreElement>, 'children'> {
3
+ export interface PreProps extends Omit<HTMLAttributes<HTMLPreElement>, "children"> {
4
4
  code: HighlightedCode;
5
5
  showLineNumbers?: boolean;
6
6
  wordWrap?: boolean;
@@ -66,7 +66,7 @@ export interface CodePlaygroundProps {
66
66
  */
67
67
  showLineNumbers?: boolean;
68
68
  }
69
- export interface CodePlaygroundCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
69
+ export interface CodePlaygroundCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
70
70
  className?: string;
71
71
  /**
72
72
  * internal api for passing children
@@ -80,15 +80,15 @@ export interface CodePlaygroundFooterProps extends HTMLAttributes<HTMLDivElement
80
80
  children: React.ReactNode;
81
81
  }
82
82
  declare const CodePlaygroundWithSubcomponents: {
83
- ({ children, snippets, copyable, selectedLanguage, className, onChangeLanguage, error, showLineNumbers, showLanguageSelector, wordWrap, }: CodePlaygroundProps): import("react/jsx-runtime").JSX.Element;
83
+ ({ children, snippets, copyable, selectedLanguage, className, onChangeLanguage, error, showLineNumbers, showLanguageSelector, wordWrap, }: CodePlaygroundProps): React.JSX.Element;
84
84
  displayName: string;
85
85
  } & {
86
86
  Header: {
87
- ({ children, className, ...props }: CodePlaygroundHeaderProps): import("react/jsx-runtime").JSX.Element;
87
+ ({ children, className, ...props }: CodePlaygroundHeaderProps): React.JSX.Element;
88
88
  displayName: string;
89
89
  };
90
90
  Footer: {
91
- ({ children, className, ...props }: CodePlaygroundFooterProps): import("react/jsx-runtime").JSX.Element;
91
+ ({ children, className, ...props }: CodePlaygroundFooterProps): React.JSX.Element;
92
92
  displayName: string;
93
93
  };
94
94
  /**
@@ -46,4 +46,4 @@ export interface CodeSnippetProps {
46
46
  */
47
47
  snippetClassName?: string;
48
48
  }
49
- export declare function CodeSnippet({ code, copyable, language, promptSymbol, inline, fontSize, onSelectOrCopy, shimmer, className, snippetClassName, showLineNumbers, }: CodeSnippetProps): import("react/jsx-runtime").JSX.Element;
49
+ export declare function CodeSnippet({ code, copyable, language, promptSymbol, inline, fontSize, onSelectOrCopy, shimmer, className, snippetClassName, showLineNumbers, }: CodeSnippetProps): import("react").JSX.Element;