deepspace 0.4.2 → 0.4.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/dist/cli.js +1442 -275
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +197 -425
- package/dist/index.js +621 -1665
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +207 -28
- package/dist/server.js +713 -26
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +207 -28
- package/dist/worker.js +713 -26
- package/dist/worker.js.map +1 -1
- package/features/admin-page/src/AdminPage.tsx +1 -1
- package/features/canvas/src/CanvasListPage.tsx +1 -1
- package/features/canvas/src/components/CanvasView.tsx +1 -1
- package/features/docs/src/DocsEditorPage.tsx +1 -1
- package/features/docs/src/InviteDialog.tsx +130 -139
- package/features/file-attachments/src/AttachmentsPage.tsx +1 -4
- package/features/file-manager/src/FileManagerPage.tsx +2 -1
- package/features/items/src/ItemsPage.tsx +1 -1
- package/features/landing/src/LandingPage.tsx +1 -1
- package/features/landing/src/primitives.tsx +1 -1
- package/features/leaderboard/src/LeaderboardPage.tsx +1 -1
- package/features/leaderboard/src/leaderboard-constants.ts +1 -1
- package/features/search-bar/src/SearchOverlay.tsx +1 -1
- package/features/tasks/src/TasksPage.tsx +1 -1
- package/features/tasks/src/tasks-constants.ts +1 -1
- package/package.json +1 -18
- package/dist/testing.d.ts +0 -115
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Y from 'yjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { ReactNode
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
5
|
import * as node_modules_better_auth_dist_client_path_to_object_mjs from 'node_modules/better-auth/dist/client/path-to-object.mjs';
|
|
6
6
|
import * as node_modules_better_auth_dist_client_query_mjs from 'node_modules/better-auth/dist/client/query.mjs';
|
|
7
7
|
import * as node_modules_better_auth_dist_plugins_organization_organization_mjs from 'node_modules/better-auth/dist/plugins/organization/organization.mjs';
|
|
@@ -10,20 +10,6 @@ import * as better_auth_plugins_two_factor from 'better-auth/plugins/two-factor'
|
|
|
10
10
|
import * as better_auth_react from 'better-auth/react';
|
|
11
11
|
import * as better_auth from 'better-auth';
|
|
12
12
|
import * as better_auth_client_plugins from 'better-auth/client/plugins';
|
|
13
|
-
import { ClassValue } from 'clsx';
|
|
14
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
16
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
17
|
-
import { VariantProps } from 'class-variance-authority';
|
|
18
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
19
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
20
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
21
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
22
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
23
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
24
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
25
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
26
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
27
13
|
|
|
28
14
|
/**
|
|
29
15
|
* Shared type definitions for the DeepSpace SDK
|
|
@@ -6966,6 +6952,7 @@ interface IntegrationResponse<T = unknown> {
|
|
|
6966
6952
|
interface RequestOptions {
|
|
6967
6953
|
headers?: Record<string, string>;
|
|
6968
6954
|
timeoutMs?: number;
|
|
6955
|
+
signal?: AbortSignal;
|
|
6969
6956
|
}
|
|
6970
6957
|
declare const integration: {
|
|
6971
6958
|
post<T = unknown>(endpoint: string, data?: unknown, options?: RequestOptions): Promise<IntegrationResponse<T>>;
|
|
@@ -6974,6 +6961,51 @@ declare const integration: {
|
|
|
6974
6961
|
delete<T = unknown>(endpoint: string, data?: unknown, options?: RequestOptions): Promise<IntegrationResponse<T>>;
|
|
6975
6962
|
};
|
|
6976
6963
|
|
|
6964
|
+
/**
|
|
6965
|
+
* useVoiceAgent - managed browser voice on OpenAI Realtime, zero config.
|
|
6966
|
+
*
|
|
6967
|
+
* The hook mints a credit-gated ephemeral token via our proxy
|
|
6968
|
+
* (`openai-realtime/create-session`), connects the browser to OpenAI over raw
|
|
6969
|
+
* WebRTC, and on teardown reports the elapsed duration to
|
|
6970
|
+
* `openai-realtime/settle-session` so the user is billed for actual minutes. A
|
|
6971
|
+
* client timer stops the call at `maxMinutes` (OpenAI also hard-disconnects at
|
|
6972
|
+
* 60). The developer holds no key and writes no WebRTC.
|
|
6973
|
+
*
|
|
6974
|
+
* Billing note: settle is best-effort. If it never lands (crash, offline), the
|
|
6975
|
+
* server cron settles the session to the reserved cap - so the platform never
|
|
6976
|
+
* loses money; the hook's settle just refines DOWN to actual minutes and
|
|
6977
|
+
* releases a never-started session immediately.
|
|
6978
|
+
*/
|
|
6979
|
+
type VoiceStatus = 'idle' | 'connecting' | 'live' | 'ended' | 'error';
|
|
6980
|
+
interface VoiceTranscriptEntry {
|
|
6981
|
+
role: 'user' | 'assistant';
|
|
6982
|
+
content: string;
|
|
6983
|
+
}
|
|
6984
|
+
interface UseVoiceAgentOptions {
|
|
6985
|
+
instructions?: string;
|
|
6986
|
+
voice?: string;
|
|
6987
|
+
/** OpenAI tool definitions, passed through to the session. */
|
|
6988
|
+
tools?: Record<string, unknown>[];
|
|
6989
|
+
/** Hard cap; the hook stops the call at this many minutes. */
|
|
6990
|
+
maxMinutes?: number;
|
|
6991
|
+
/** Called when the model invokes a tool; the return value is sent back. */
|
|
6992
|
+
onToolCall?: (name: string, args: unknown) => Promise<unknown> | unknown;
|
|
6993
|
+
}
|
|
6994
|
+
interface UseVoiceAgentResult {
|
|
6995
|
+
status: VoiceStatus;
|
|
6996
|
+
start: (overrides?: Partial<UseVoiceAgentOptions>) => Promise<void>;
|
|
6997
|
+
stop: () => Promise<void>;
|
|
6998
|
+
isMuted: boolean;
|
|
6999
|
+
toggleMute: () => void;
|
|
7000
|
+
isAgentSpeaking: boolean;
|
|
7001
|
+
transcript: VoiceTranscriptEntry[];
|
|
7002
|
+
error: string | null;
|
|
7003
|
+
/** Escape hatches for advanced use. */
|
|
7004
|
+
pc: RTCPeerConnection | null;
|
|
7005
|
+
dataChannel: RTCDataChannel | null;
|
|
7006
|
+
}
|
|
7007
|
+
declare function useVoiceAgent(options?: UseVoiceAgentOptions): UseVoiceAgentResult;
|
|
7008
|
+
|
|
6977
7009
|
/**
|
|
6978
7010
|
* Pure decoders for the Vercel AI SDK v5 `toUIMessageStreamResponse` body.
|
|
6979
7011
|
*
|
|
@@ -7053,6 +7085,155 @@ type AiStreamAction = {
|
|
|
7053
7085
|
/** Decode one v5 UIMessage stream chunk into an action, or `null` to ignore. */
|
|
7054
7086
|
declare function decodeAiStreamChunk(chunk: AiStreamChunk): AiStreamAction | null;
|
|
7055
7087
|
|
|
7088
|
+
type LoadState = 'loading' | 'ready' | 'empty' | 'error' | 'signedOut';
|
|
7089
|
+
interface LoadStateAuthInput {
|
|
7090
|
+
isLoaded: boolean;
|
|
7091
|
+
isSignedIn: boolean;
|
|
7092
|
+
requireSignedIn?: boolean;
|
|
7093
|
+
requireUser?: boolean;
|
|
7094
|
+
userLoading?: boolean;
|
|
7095
|
+
}
|
|
7096
|
+
interface LoadStateStatusInput {
|
|
7097
|
+
status: 'loading' | 'ready' | 'error' | 'idle' | 'refreshing';
|
|
7098
|
+
error?: unknown;
|
|
7099
|
+
}
|
|
7100
|
+
interface DeriveLoadStateInput {
|
|
7101
|
+
auth?: LoadStateAuthInput;
|
|
7102
|
+
queries?: LoadStateStatusInput[];
|
|
7103
|
+
resources?: LoadStateStatusInput[];
|
|
7104
|
+
empty?: boolean;
|
|
7105
|
+
}
|
|
7106
|
+
interface AsyncResourceDefaults {
|
|
7107
|
+
retry: number;
|
|
7108
|
+
retryDelayMs: number;
|
|
7109
|
+
slowAfterMs: number;
|
|
7110
|
+
}
|
|
7111
|
+
declare const ASYNC_RESOURCE_DEFAULTS: AsyncResourceDefaults;
|
|
7112
|
+
declare function isAsyncResourceSlow(input: {
|
|
7113
|
+
startedAt: number;
|
|
7114
|
+
now: number;
|
|
7115
|
+
slowAfterMs: number;
|
|
7116
|
+
}): boolean;
|
|
7117
|
+
interface PagedResourceCooldownInput {
|
|
7118
|
+
failureCount: number;
|
|
7119
|
+
retryDelayMs: number;
|
|
7120
|
+
maxRetryDelayMs: number;
|
|
7121
|
+
}
|
|
7122
|
+
declare function getPagedResourceCooldownMs(input: PagedResourceCooldownInput): number;
|
|
7123
|
+
declare function canAutoLoadPagedResource(input: {
|
|
7124
|
+
hasMore: boolean;
|
|
7125
|
+
isLoading: boolean;
|
|
7126
|
+
now: number;
|
|
7127
|
+
cooldownUntil: number;
|
|
7128
|
+
}): boolean;
|
|
7129
|
+
declare function clampPagedResourceItems<T>(input: {
|
|
7130
|
+
items: T[];
|
|
7131
|
+
maxItemsPerPage: number;
|
|
7132
|
+
}): {
|
|
7133
|
+
items: T[];
|
|
7134
|
+
droppedItemCount: number;
|
|
7135
|
+
};
|
|
7136
|
+
declare function deriveLoadState(input: DeriveLoadStateInput): LoadState;
|
|
7137
|
+
|
|
7138
|
+
interface UseAuthStatusOptions {
|
|
7139
|
+
requireSignedIn?: boolean;
|
|
7140
|
+
}
|
|
7141
|
+
interface UseAuthProfileReadyOptions extends UseAuthStatusOptions {
|
|
7142
|
+
requireUser?: boolean;
|
|
7143
|
+
}
|
|
7144
|
+
/** @deprecated Use `UseAuthProfileReadyOptions` instead. */
|
|
7145
|
+
type UseAuthReadyOptions = UseAuthProfileReadyOptions;
|
|
7146
|
+
declare function useAuthStatus(options?: UseAuthStatusOptions): {
|
|
7147
|
+
status: LoadState;
|
|
7148
|
+
isReady: boolean;
|
|
7149
|
+
isLoaded: boolean;
|
|
7150
|
+
isSignedIn: boolean;
|
|
7151
|
+
userId: string | null;
|
|
7152
|
+
sessionId: string | null;
|
|
7153
|
+
};
|
|
7154
|
+
declare function useAuthProfileReady(options?: UseAuthProfileReadyOptions): {
|
|
7155
|
+
user: User | null;
|
|
7156
|
+
userLoading: boolean;
|
|
7157
|
+
refetchUser: () => Promise<void>;
|
|
7158
|
+
status: LoadState;
|
|
7159
|
+
isReady: boolean;
|
|
7160
|
+
isLoaded: boolean;
|
|
7161
|
+
isSignedIn: boolean;
|
|
7162
|
+
userId: string | null;
|
|
7163
|
+
sessionId: string | null;
|
|
7164
|
+
};
|
|
7165
|
+
/** @deprecated Use `useAuthStatus` for auth-only UI or `useAuthProfileReady` for profile-backed UI. */
|
|
7166
|
+
declare const useAuthReady: typeof useAuthProfileReady;
|
|
7167
|
+
type AsyncResourceStatus = 'idle' | 'loading' | 'ready' | 'error';
|
|
7168
|
+
type PagedResourceStatus = AsyncResourceStatus;
|
|
7169
|
+
interface AsyncResourceState<T> {
|
|
7170
|
+
status: AsyncResourceStatus;
|
|
7171
|
+
data: T | null;
|
|
7172
|
+
error: string | null;
|
|
7173
|
+
isRefreshing: boolean;
|
|
7174
|
+
isSlow: boolean;
|
|
7175
|
+
retryCount: number;
|
|
7176
|
+
}
|
|
7177
|
+
interface UseAsyncResourceOptions<T> {
|
|
7178
|
+
enabled?: boolean;
|
|
7179
|
+
initialData?: T | null;
|
|
7180
|
+
keepPreviousData?: boolean;
|
|
7181
|
+
retry?: number;
|
|
7182
|
+
retryDelayMs?: number;
|
|
7183
|
+
slowAfterMs?: number;
|
|
7184
|
+
}
|
|
7185
|
+
interface PagedResourceFetchArgs {
|
|
7186
|
+
page: number;
|
|
7187
|
+
pageSize: number;
|
|
7188
|
+
signal: AbortSignal;
|
|
7189
|
+
}
|
|
7190
|
+
interface PagedResourcePage<T> {
|
|
7191
|
+
items: T[];
|
|
7192
|
+
hasMore?: boolean;
|
|
7193
|
+
}
|
|
7194
|
+
interface PagedResourceState<T> {
|
|
7195
|
+
status: PagedResourceStatus;
|
|
7196
|
+
items: T[];
|
|
7197
|
+
error: string | null;
|
|
7198
|
+
warning: string | null;
|
|
7199
|
+
hasMore: boolean;
|
|
7200
|
+
isLoadingInitial: boolean;
|
|
7201
|
+
isLoadingMore: boolean;
|
|
7202
|
+
isRefreshing: boolean;
|
|
7203
|
+
}
|
|
7204
|
+
interface UsePagedResourceOptions<T> {
|
|
7205
|
+
enabled?: boolean;
|
|
7206
|
+
initialItems?: T[];
|
|
7207
|
+
pageSize?: number;
|
|
7208
|
+
maxItemsPerPage?: number;
|
|
7209
|
+
keepPreviousData?: boolean;
|
|
7210
|
+
autoRetryOnError?: boolean;
|
|
7211
|
+
retryDelayMs?: number;
|
|
7212
|
+
maxRetryDelayMs?: number;
|
|
7213
|
+
}
|
|
7214
|
+
declare function useAsyncResource<T>(fetcher: (signal: AbortSignal) => Promise<T>, deps: readonly unknown[], options?: UseAsyncResourceOptions<T>): {
|
|
7215
|
+
reload: () => void;
|
|
7216
|
+
status: AsyncResourceStatus;
|
|
7217
|
+
data: T | null;
|
|
7218
|
+
error: string | null;
|
|
7219
|
+
isRefreshing: boolean;
|
|
7220
|
+
isSlow: boolean;
|
|
7221
|
+
retryCount: number;
|
|
7222
|
+
};
|
|
7223
|
+
declare function usePagedResource<T>(fetchPage: (args: PagedResourceFetchArgs) => Promise<PagedResourcePage<T>>, deps: readonly unknown[], options?: UsePagedResourceOptions<T>): {
|
|
7224
|
+
loadMore: () => void;
|
|
7225
|
+
retry: () => void;
|
|
7226
|
+
refresh: () => void;
|
|
7227
|
+
status: PagedResourceStatus;
|
|
7228
|
+
items: T[];
|
|
7229
|
+
error: string | null;
|
|
7230
|
+
warning: string | null;
|
|
7231
|
+
hasMore: boolean;
|
|
7232
|
+
isLoadingInitial: boolean;
|
|
7233
|
+
isLoadingMore: boolean;
|
|
7234
|
+
isRefreshing: boolean;
|
|
7235
|
+
};
|
|
7236
|
+
|
|
7056
7237
|
/**
|
|
7057
7238
|
* Subscription primitives shared between client (useSubscription hook) and
|
|
7058
7239
|
* server (requireSubscription helper). Pulled into a shared module so the
|
|
@@ -7223,413 +7404,4 @@ interface UseCheckoutReturn {
|
|
|
7223
7404
|
}
|
|
7224
7405
|
declare function useCheckout(opts?: UseCheckoutOpts): UseCheckoutReturn;
|
|
7225
7406
|
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7229
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7230
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7231
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7232
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7233
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7234
|
-
|
|
7235
|
-
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7236
|
-
|
|
7237
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
7238
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
7239
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
7240
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
7241
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
7242
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
7243
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
7244
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
7245
|
-
|
|
7246
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7247
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7248
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7249
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7250
|
-
|
|
7251
|
-
declare const buttonVariants: (props?: ({
|
|
7252
|
-
variant?: "secondary" | "default" | "link" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
7253
|
-
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
7254
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
7255
|
-
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
7256
|
-
asChild?: boolean;
|
|
7257
|
-
loading?: boolean;
|
|
7258
|
-
}
|
|
7259
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7260
|
-
|
|
7261
|
-
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
7262
|
-
|
|
7263
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
7264
|
-
|
|
7265
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
7266
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7267
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
7268
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7269
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7270
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7271
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7272
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7273
|
-
|
|
7274
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7275
|
-
|
|
7276
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7277
|
-
|
|
7278
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
7279
|
-
|
|
7280
|
-
declare const badgeVariants: (props?: ({
|
|
7281
|
-
variant?: "secondary" | "default" | "warning" | "info" | "success" | "destructive" | "outline" | null | undefined;
|
|
7282
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7283
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
7284
|
-
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7285
|
-
}
|
|
7286
|
-
declare function Badge({ className, variant, size, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
7287
|
-
|
|
7288
|
-
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
7289
|
-
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
7290
|
-
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
7291
|
-
|
|
7292
|
-
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7293
|
-
|
|
7294
|
-
declare function Skeleton({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
7295
|
-
interface SkeletonTextProps {
|
|
7296
|
-
lines?: number;
|
|
7297
|
-
lastLineWidth?: string;
|
|
7298
|
-
className?: string;
|
|
7299
|
-
}
|
|
7300
|
-
declare function SkeletonText({ lines, lastLineWidth, className, }: SkeletonTextProps): JSX.Element;
|
|
7301
|
-
interface SkeletonCardProps {
|
|
7302
|
-
hasImage?: boolean;
|
|
7303
|
-
className?: string;
|
|
7304
|
-
}
|
|
7305
|
-
declare function SkeletonCard({ hasImage, className }: SkeletonCardProps): JSX.Element;
|
|
7306
|
-
interface SkeletonListProps {
|
|
7307
|
-
items?: number;
|
|
7308
|
-
className?: string;
|
|
7309
|
-
}
|
|
7310
|
-
declare function SkeletonList({ items, className }: SkeletonListProps): JSX.Element;
|
|
7311
|
-
interface SkeletonTableProps {
|
|
7312
|
-
rows?: number;
|
|
7313
|
-
columns?: number;
|
|
7314
|
-
className?: string;
|
|
7315
|
-
}
|
|
7316
|
-
declare function SkeletonTable({ rows, columns, className, }: SkeletonTableProps): JSX.Element;
|
|
7317
|
-
interface SkeletonAvatarProps {
|
|
7318
|
-
size?: 'sm' | 'md' | 'lg';
|
|
7319
|
-
className?: string;
|
|
7320
|
-
}
|
|
7321
|
-
declare function SkeletonAvatar({ size, className }: SkeletonAvatarProps): JSX.Element;
|
|
7322
|
-
interface LoadingSpinnerProps {
|
|
7323
|
-
size?: 'sm' | 'md' | 'lg';
|
|
7324
|
-
className?: string;
|
|
7325
|
-
}
|
|
7326
|
-
declare function LoadingSpinner({ size, className }: LoadingSpinnerProps): JSX.Element;
|
|
7327
|
-
interface LoadingOverlayProps {
|
|
7328
|
-
children?: ReactNode;
|
|
7329
|
-
message?: string;
|
|
7330
|
-
className?: string;
|
|
7331
|
-
}
|
|
7332
|
-
declare function LoadingOverlay({ children, message, className, }: LoadingOverlayProps): JSX.Element;
|
|
7333
|
-
|
|
7334
|
-
interface CardGridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
7335
|
-
children: ReactNode;
|
|
7336
|
-
columns?: 1 | 2 | 3 | 4;
|
|
7337
|
-
}
|
|
7338
|
-
declare function CardGrid({ children, columns, className, ...rest }: CardGridProps): JSX.Element;
|
|
7339
|
-
interface GridCardProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
7340
|
-
children: ReactNode;
|
|
7341
|
-
onClick?: () => void;
|
|
7342
|
-
hoverable?: boolean;
|
|
7343
|
-
}
|
|
7344
|
-
declare function GridCard({ children, onClick, className, hoverable, ...rest }: GridCardProps): JSX.Element;
|
|
7345
|
-
declare namespace GridCard {
|
|
7346
|
-
var Image: typeof GridCardImage;
|
|
7347
|
-
var Header: typeof GridCardHeader;
|
|
7348
|
-
var Title: typeof GridCardTitle;
|
|
7349
|
-
var Content: typeof GridCardContent;
|
|
7350
|
-
var Description: typeof GridCardDescription;
|
|
7351
|
-
var Footer: typeof GridCardFooter;
|
|
7352
|
-
var Badge: typeof GridCardBadge;
|
|
7353
|
-
var Actions: typeof GridCardActions;
|
|
7354
|
-
}
|
|
7355
|
-
interface GridCardImageProps {
|
|
7356
|
-
src: string;
|
|
7357
|
-
alt?: string;
|
|
7358
|
-
height?: 'sm' | 'md' | 'lg';
|
|
7359
|
-
className?: string;
|
|
7360
|
-
}
|
|
7361
|
-
declare function GridCardImage({ src, alt, height, className }: GridCardImageProps): JSX.Element;
|
|
7362
|
-
interface GridCardHeaderProps {
|
|
7363
|
-
children: ReactNode;
|
|
7364
|
-
actions?: ReactNode;
|
|
7365
|
-
className?: string;
|
|
7366
|
-
}
|
|
7367
|
-
declare function GridCardHeader({ children, actions, className }: GridCardHeaderProps): JSX.Element;
|
|
7368
|
-
interface GridCardTitleProps {
|
|
7369
|
-
children: ReactNode;
|
|
7370
|
-
className?: string;
|
|
7371
|
-
}
|
|
7372
|
-
declare function GridCardTitle({ children, className }: GridCardTitleProps): JSX.Element;
|
|
7373
|
-
interface GridCardContentProps {
|
|
7374
|
-
children: ReactNode;
|
|
7375
|
-
className?: string;
|
|
7376
|
-
}
|
|
7377
|
-
declare function GridCardContent({ children, className }: GridCardContentProps): JSX.Element;
|
|
7378
|
-
interface GridCardDescriptionProps {
|
|
7379
|
-
children: ReactNode;
|
|
7380
|
-
lines?: 1 | 2 | 3 | 4;
|
|
7381
|
-
className?: string;
|
|
7382
|
-
}
|
|
7383
|
-
declare function GridCardDescription({ children, lines, className }: GridCardDescriptionProps): JSX.Element;
|
|
7384
|
-
interface GridCardFooterProps {
|
|
7385
|
-
children: ReactNode;
|
|
7386
|
-
className?: string;
|
|
7387
|
-
}
|
|
7388
|
-
declare function GridCardFooter({ children, className }: GridCardFooterProps): JSX.Element;
|
|
7389
|
-
interface GridCardBadgeProps {
|
|
7390
|
-
children: ReactNode;
|
|
7391
|
-
variant?: 'default' | 'success' | 'warning' | 'danger';
|
|
7392
|
-
className?: string;
|
|
7393
|
-
}
|
|
7394
|
-
declare function GridCardBadge({ children, variant, className }: GridCardBadgeProps): JSX.Element;
|
|
7395
|
-
interface GridCardActionsProps {
|
|
7396
|
-
onDelete?: () => void;
|
|
7397
|
-
onMore?: () => void;
|
|
7398
|
-
}
|
|
7399
|
-
declare function GridCardActions({ onDelete, onMore }: GridCardActionsProps): JSX.Element;
|
|
7400
|
-
|
|
7401
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
7402
|
-
variant?: "default" | "warning" | "info" | "success" | "destructive" | null | undefined;
|
|
7403
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7404
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
7405
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
7406
|
-
|
|
7407
|
-
/**
|
|
7408
|
-
* Toast Notification System
|
|
7409
|
-
*
|
|
7410
|
-
* Self-contained toast provider with success/error/warning/info variants.
|
|
7411
|
-
* Uses the theme's semantic color tokens (success, warning, info, destructive).
|
|
7412
|
-
*
|
|
7413
|
-
* @example
|
|
7414
|
-
* // Wrap your app once:
|
|
7415
|
-
* <ToastProvider position="bottom-right">
|
|
7416
|
-
* <App />
|
|
7417
|
-
* </ToastProvider>
|
|
7418
|
-
*
|
|
7419
|
-
* // In any child component:
|
|
7420
|
-
* const { success, error, warning, info } = useToast()
|
|
7421
|
-
* success('Saved!', 'Your changes have been saved.')
|
|
7422
|
-
*/
|
|
7423
|
-
|
|
7424
|
-
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
7425
|
-
interface Toast {
|
|
7426
|
-
id: string;
|
|
7427
|
-
type: ToastType;
|
|
7428
|
-
title: string;
|
|
7429
|
-
description?: string;
|
|
7430
|
-
duration?: number;
|
|
7431
|
-
}
|
|
7432
|
-
interface ToastContextValue {
|
|
7433
|
-
toasts: Toast[];
|
|
7434
|
-
toast: (options: Omit<Toast, 'id'>) => void;
|
|
7435
|
-
success: (title: string, description?: string) => void;
|
|
7436
|
-
error: (title: string, description?: string) => void;
|
|
7437
|
-
warning: (title: string, description?: string) => void;
|
|
7438
|
-
info: (title: string, description?: string) => void;
|
|
7439
|
-
dismiss: (id: string) => void;
|
|
7440
|
-
dismissAll: () => void;
|
|
7441
|
-
}
|
|
7442
|
-
declare function useToast(): ToastContextValue;
|
|
7443
|
-
interface ToastProviderProps {
|
|
7444
|
-
children: ReactNode;
|
|
7445
|
-
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
7446
|
-
maxToasts?: number;
|
|
7447
|
-
}
|
|
7448
|
-
declare function ToastProvider({ children, position, maxToasts, }: ToastProviderProps): React__default.ReactElement;
|
|
7449
|
-
|
|
7450
|
-
/**
|
|
7451
|
-
* Error decoding + a friendly error screen.
|
|
7452
|
-
*
|
|
7453
|
-
* Production React replaces error text with a numeric code and a docs link
|
|
7454
|
-
* (e.g. `Minified React error #310`), so a developer whose app crashes in a
|
|
7455
|
-
* deployed build sees only the number. `decodeReactError` turns that number
|
|
7456
|
-
* back into a plain-English explanation; `ErrorScreen` renders it. The most
|
|
7457
|
-
* common offenders are the hook-order errors (#300 / #310), which almost
|
|
7458
|
-
* always mean a hook was placed after an early `return`.
|
|
7459
|
-
*/
|
|
7460
|
-
interface DecodedReactError {
|
|
7461
|
-
code: number;
|
|
7462
|
-
title: string;
|
|
7463
|
-
explanation: string;
|
|
7464
|
-
hint: string;
|
|
7465
|
-
docsUrl: string;
|
|
7466
|
-
}
|
|
7467
|
-
/**
|
|
7468
|
-
* Decode a (possibly minified) React error into a friendly explanation, or
|
|
7469
|
-
* `null` if it isn't a recognizable React error — in which case the caller
|
|
7470
|
-
* should just show the raw message.
|
|
7471
|
-
*/
|
|
7472
|
-
declare function decodeReactError(error: unknown): DecodedReactError | null;
|
|
7473
|
-
interface ErrorScreenProps {
|
|
7474
|
-
/** The thrown value, as caught by an error boundary (often non-Error). */
|
|
7475
|
-
error: unknown;
|
|
7476
|
-
/** Recovery action. Defaults to a full page reload. */
|
|
7477
|
-
onReset?: () => void;
|
|
7478
|
-
}
|
|
7479
|
-
/**
|
|
7480
|
-
* A self-contained crash screen. Renders standalone — it replaces the app
|
|
7481
|
-
* shell when used as a root error boundary, so it must not depend on app
|
|
7482
|
-
* providers (toasts, auth, theme context). It reuses only context-free
|
|
7483
|
-
* primitives and reads its colors from the active theme's CSS variables.
|
|
7484
|
-
*/
|
|
7485
|
-
declare function ErrorScreen({ error, onReset }: ErrorScreenProps): react_jsx_runtime.JSX.Element;
|
|
7486
|
-
|
|
7487
|
-
interface EmptyStateProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
7488
|
-
icon?: ReactNode;
|
|
7489
|
-
title: string;
|
|
7490
|
-
description?: string;
|
|
7491
|
-
action?: {
|
|
7492
|
-
label: string;
|
|
7493
|
-
onClick: () => void;
|
|
7494
|
-
};
|
|
7495
|
-
secondaryAction?: {
|
|
7496
|
-
label: string;
|
|
7497
|
-
onClick: () => void;
|
|
7498
|
-
};
|
|
7499
|
-
}
|
|
7500
|
-
declare function EmptyState({ icon, title, description, action, secondaryAction, className, ...rest }: EmptyStateProps): JSX.Element;
|
|
7501
|
-
interface EmptyStateVariantProps {
|
|
7502
|
-
action?: {
|
|
7503
|
-
label: string;
|
|
7504
|
-
onClick: () => void;
|
|
7505
|
-
};
|
|
7506
|
-
className?: string;
|
|
7507
|
-
}
|
|
7508
|
-
declare function EmptyItems({ action, className }: EmptyStateVariantProps): JSX.Element;
|
|
7509
|
-
interface EmptySearchProps extends EmptyStateVariantProps {
|
|
7510
|
-
query?: string;
|
|
7511
|
-
onClear?: () => void;
|
|
7512
|
-
}
|
|
7513
|
-
declare function EmptySearch({ query, onClear, className }: EmptySearchProps): JSX.Element;
|
|
7514
|
-
declare function EmptyDocuments({ action, className }: EmptyStateVariantProps): JSX.Element;
|
|
7515
|
-
declare function EmptyProjects({ action, className }: EmptyStateVariantProps): JSX.Element;
|
|
7516
|
-
declare function EmptyTeam({ action, className }: EmptyStateVariantProps): JSX.Element;
|
|
7517
|
-
interface EmptyErrorProps extends EmptyStateVariantProps {
|
|
7518
|
-
error?: string;
|
|
7519
|
-
onRetry?: () => void;
|
|
7520
|
-
}
|
|
7521
|
-
declare function EmptyError({ error, onRetry, className }: EmptyErrorProps): JSX.Element;
|
|
7522
|
-
|
|
7523
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
7524
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7525
|
-
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
7526
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7527
|
-
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7528
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7529
|
-
declare const DialogHeader: {
|
|
7530
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
7531
|
-
displayName: string;
|
|
7532
|
-
};
|
|
7533
|
-
declare const DialogFooter: {
|
|
7534
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
7535
|
-
displayName: string;
|
|
7536
|
-
};
|
|
7537
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
7538
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
7539
|
-
|
|
7540
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
7541
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7542
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7543
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7544
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
7545
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7546
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7547
|
-
inset?: boolean;
|
|
7548
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
7549
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7550
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7551
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7552
|
-
inset?: boolean;
|
|
7553
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
7554
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7555
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7556
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7557
|
-
inset?: boolean;
|
|
7558
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
7559
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7560
|
-
declare const DropdownMenuShortcut: {
|
|
7561
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
7562
|
-
displayName: string;
|
|
7563
|
-
};
|
|
7564
|
-
|
|
7565
|
-
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
7566
|
-
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
7567
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7568
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7569
|
-
|
|
7570
|
-
/**
|
|
7571
|
-
* Modal / ConfirmModal — backward-compatible wrappers around Dialog primitives.
|
|
7572
|
-
*
|
|
7573
|
-
* New code should use Dialog directly. These wrappers exist so existing
|
|
7574
|
-
* widget code (`<Modal open={...}>`) keeps working without changes.
|
|
7575
|
-
*/
|
|
7576
|
-
|
|
7577
|
-
interface ModalProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
7578
|
-
open: boolean;
|
|
7579
|
-
onClose: () => void;
|
|
7580
|
-
children: ReactNode;
|
|
7581
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
7582
|
-
}
|
|
7583
|
-
declare function Modal({ open, onClose, children, size, className, }: ModalProps): JSX.Element;
|
|
7584
|
-
declare namespace Modal {
|
|
7585
|
-
var Header: typeof ModalHeader;
|
|
7586
|
-
var Title: typeof ModalTitle;
|
|
7587
|
-
var Description: typeof ModalDescription;
|
|
7588
|
-
var Body: typeof ModalBody;
|
|
7589
|
-
var Footer: typeof ModalFooter;
|
|
7590
|
-
}
|
|
7591
|
-
interface ModalHeaderProps {
|
|
7592
|
-
children: ReactNode;
|
|
7593
|
-
onClose?: () => void;
|
|
7594
|
-
className?: string;
|
|
7595
|
-
}
|
|
7596
|
-
declare function ModalHeader({ children, className }: ModalHeaderProps): JSX.Element;
|
|
7597
|
-
interface ModalTitleProps {
|
|
7598
|
-
children: ReactNode;
|
|
7599
|
-
className?: string;
|
|
7600
|
-
}
|
|
7601
|
-
declare function ModalTitle({ children, className }: ModalTitleProps): JSX.Element;
|
|
7602
|
-
interface ModalDescriptionProps {
|
|
7603
|
-
children: ReactNode;
|
|
7604
|
-
className?: string;
|
|
7605
|
-
}
|
|
7606
|
-
declare function ModalDescription({ children, className }: ModalDescriptionProps): JSX.Element;
|
|
7607
|
-
interface ModalBodyProps {
|
|
7608
|
-
children: ReactNode;
|
|
7609
|
-
className?: string;
|
|
7610
|
-
}
|
|
7611
|
-
declare function ModalBody({ children, className }: ModalBodyProps): JSX.Element;
|
|
7612
|
-
interface ModalFooterProps {
|
|
7613
|
-
children: ReactNode;
|
|
7614
|
-
className?: string;
|
|
7615
|
-
}
|
|
7616
|
-
declare function ModalFooter({ children, className }: ModalFooterProps): JSX.Element;
|
|
7617
|
-
interface ConfirmModalProps {
|
|
7618
|
-
open: boolean;
|
|
7619
|
-
onClose: () => void;
|
|
7620
|
-
onConfirm: () => void;
|
|
7621
|
-
title: string;
|
|
7622
|
-
description?: string;
|
|
7623
|
-
confirmText?: string;
|
|
7624
|
-
cancelText?: string;
|
|
7625
|
-
variant?: 'destructive' | 'default';
|
|
7626
|
-
loading?: boolean;
|
|
7627
|
-
}
|
|
7628
|
-
declare function ConfirmModal({ open, onClose, onConfirm, title, description, confirmText, cancelText, variant, loading, }: ConfirmModalProps): JSX.Element;
|
|
7629
|
-
|
|
7630
|
-
interface SearchInputProps extends Omit<React$1.ComponentProps<'input'>, 'type'> {
|
|
7631
|
-
onClear?: () => void;
|
|
7632
|
-
}
|
|
7633
|
-
declare const SearchInput: React$1.ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
7634
|
-
|
|
7635
|
-
export { type AdHocChargeOpts, type AiStreamAction, type AiStreamChunk, Alert, AlertDescription, AlertTitle, AuthGate, type AuthGateProps, AuthOverlay, Avatar, AvatarFallback, AvatarImage, Awareness, type AwarenessState, type AwarenessStates, Badge, type BadgeProps, type BaseMessage, Button, type ButtonProps, type CanvasShapeClient, Card, CardContent, CardDescription, CardFooter, CardGrid, CardHeader, CardTitle, type Channel, type ChannelInvitation, type ChannelMember, type ChargeOnceOpts, type ChargeOnceResult, Checkbox, type ClientMessage, type CollectionSchema, ConfirmModal, type ConnectionAttachment, type ConnectionStatus, type ContentSegment, type ConversationObject, type CronHistoryEntry, type CronTaskState, DEEPSPACE_THEME_PROPERTIES, DEFAULT_USER_COLORS, type DecodedReactError, DeepSpaceAuthProvider, type DeepSpaceThemeConfig, DeepSpaceThemeProvider, type DeepSpaceThemeProviderProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENV, EmptyDocuments, EmptyError, EmptyItems, EmptyProjects, EmptySearch, EmptyState, EmptyTeam, type Environment, ErrorScreen, type ErrorScreenProps, type FetchUserProfile, type FileAttachment, type GamePlayer, GridCard, type GroupedReaction, GuestBanner, type HandlerContext, type InboxEntry, Input, type IntegrationResponse, type JobStatusView, type JobView, Label, type LinkPreviewData, LoadingOverlay, LoadingSpinner, MSG, MSG_AWARENESS, MSG_SYNC, MSG_SYNC_STEP1, MSG_SYNC_STEP2, MSG_SYNC_UPDATE, MSG_YJS_AWARENESS, MSG_YJS_SYNC, type MemberRecord, type Message, type MessageHandlers, type MessageRecord, Modal, type MsgType, type PlanInfo, PlatformContext, type PlatformContextValue, PlatformProvider, type PlatformWSOptions, type PlatformWSResult, type PresencePeerClient, PricingTable, type PricingTablePlan, type PricingTablePrice, type ProductChargeOpts, Progress, type ProtocolMessage, type Purchase, type Query, type R2FileInfo, type R2Scope, type R2UploadResult, ROLES, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_CONFIG, ROLE_DEFAULT, type Reaction, type ReactionRecord, type ReadCursorRecord, type ReadReceipt, type RecordData, RecordProvider, type RecordProviderProps, RecordScope, type RequestOptions, type Role, type RoomUser, type ScopeEntry, ScopeRegistryProvider, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type ServerMessage, SignedIn, SignedOut, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonList, SkeletonTable, SkeletonText, type SubscribeOpts, type SubscribeResult, type SubscriptionState, type SubscriptionStatus, Switch, type SyncResult, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ToastProvider, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCanvasResult, type UseCheckoutOpts, type UseCronMonitorResult, type UseGameRoomResult, type UseJobsResult, type UsePresenceRoomResult, type UseR2FilesReturn, type UseYjsFieldResult, type UseYjsRoomResult, type UseYjsTextResult, type User, type UserCredits, type UserInfo, type UserKarma, type UserProfile, type ViewportClient, applyDeepSpaceTheme, applyUIThemeTokens, authClient, badgeVariants, buttonVariants, clearAuthToken, clearDeepSpaceTheme, clientBuild, cn, createDecoder, createEncoder, decodeAiStreamChunk, decodeReactError, detectEnvironment, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, formatFileSize, formatFullTimestamp, formatMessageTime, getApiUrl, getAuthToken, getAuthUrl, getConversationDisplayName, getConversationParticipantIds, getEnvironmentConfig, getMessageType, getPlatformWorkerUrl, getThreadCounts, getUserColor, groupReactionsForMessage, handleAwarenessMessage, handleSyncMessage, hasContent, integration, isDMConversation, isDarkColor, isImageFile, isLocalDev, isProduction, parseMessageMetadata, parseSseLine, readThemeFromDOM, readVarUint, readVarUint8Array, resetEnvironmentCache, serverBuild, shouldGroupMessages, signIn, signOut, toConnectionStatus, toUint8Array, useAuth, useAuthUser, useCanvas, useChannelMembers, useChannels, useCheckout, useCommunities, useConversation, useConversations, useCronMonitor, useDisplayName, useGameRoom, useInbox, useIsDarkTheme, useJobs, useMessages, useMutations, usePlatform, usePlatformWS, usePosts, usePresence, usePresenceRoom, useQuery, useR2Files, useReactions, useReadReceipts, useRecordContext, useSession, useSubscription, useToast, useUser, useUserLookup, useUsers, useYjsField, useYjsRoom, useYjsText, writeVarUint, writeVarUint8Array };
|
|
7407
|
+
export { ASYNC_RESOURCE_DEFAULTS, type AdHocChargeOpts, type AiStreamAction, type AiStreamChunk, type AsyncResourceDefaults, type AsyncResourceState, type AsyncResourceStatus, AuthGate, type AuthGateProps, AuthOverlay, Awareness, type AwarenessState, type AwarenessStates, type BaseMessage, type CanvasShapeClient, type Channel, type ChannelInvitation, type ChannelMember, type ChargeOnceOpts, type ChargeOnceResult, type ClientMessage, type CollectionSchema, type ConnectionAttachment, type ConnectionStatus, type ContentSegment, type ConversationObject, type CronHistoryEntry, type CronTaskState, DEEPSPACE_THEME_PROPERTIES, DEFAULT_USER_COLORS, DeepSpaceAuthProvider, type DeepSpaceThemeConfig, DeepSpaceThemeProvider, type DeepSpaceThemeProviderProps, type DeriveLoadStateInput, ENV, type Environment, type FetchUserProfile, type FileAttachment, type GamePlayer, type GroupedReaction, GuestBanner, type HandlerContext, type InboxEntry, type IntegrationResponse, type JobStatusView, type JobView, type LinkPreviewData, type LoadState, type LoadStateAuthInput, type LoadStateStatusInput, MSG, MSG_AWARENESS, MSG_SYNC, MSG_SYNC_STEP1, MSG_SYNC_STEP2, MSG_SYNC_UPDATE, MSG_YJS_AWARENESS, MSG_YJS_SYNC, type MemberRecord, type Message, type MessageHandlers, type MessageRecord, type MsgType, type PagedResourceFetchArgs, type PagedResourcePage, type PagedResourceState, type PagedResourceStatus, type PlanInfo, PlatformContext, type PlatformContextValue, PlatformProvider, type PlatformWSOptions, type PlatformWSResult, type PresencePeerClient, PricingTable, type PricingTablePlan, type PricingTablePrice, type ProductChargeOpts, type ProtocolMessage, type Purchase, type Query, type R2FileInfo, type R2Scope, type R2UploadResult, ROLES, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_CONFIG, ROLE_DEFAULT, type Reaction, type ReactionRecord, type ReadCursorRecord, type ReadReceipt, type RecordData, RecordProvider, type RecordProviderProps, RecordScope, type RequestOptions, type Role, type RoomUser, type ScopeEntry, ScopeRegistryProvider, type ServerMessage, SignedIn, SignedOut, type SubscribeOpts, type SubscribeResult, type SubscriptionState, type SubscriptionStatus, type SyncResult, type UseAsyncResourceOptions, type UseAuthProfileReadyOptions, type UseAuthReadyOptions, type UseAuthStatusOptions, type UseCanvasResult, type UseCheckoutOpts, type UseCronMonitorResult, type UseGameRoomResult, type UseJobsResult, type UsePagedResourceOptions, type UsePresenceRoomResult, type UseR2FilesReturn, type UseVoiceAgentOptions, type UseVoiceAgentResult, type UseYjsFieldResult, type UseYjsRoomResult, type UseYjsTextResult, type User, type UserCredits, type UserInfo, type UserKarma, type UserProfile, type ViewportClient, type VoiceStatus, type VoiceTranscriptEntry, applyDeepSpaceTheme, applyUIThemeTokens, authClient, canAutoLoadPagedResource, clampPagedResourceItems, clearAuthToken, clearDeepSpaceTheme, clientBuild, createDecoder, createEncoder, decodeAiStreamChunk, deriveLoadState, detectEnvironment, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, formatFileSize, formatFullTimestamp, formatMessageTime, getApiUrl, getAuthToken, getAuthUrl, getConversationDisplayName, getConversationParticipantIds, getEnvironmentConfig, getMessageType, getPagedResourceCooldownMs, getPlatformWorkerUrl, getThreadCounts, getUserColor, groupReactionsForMessage, handleAwarenessMessage, handleSyncMessage, hasContent, integration, isAsyncResourceSlow, isDMConversation, isDarkColor, isImageFile, isLocalDev, isProduction, parseMessageMetadata, parseSseLine, readThemeFromDOM, readVarUint, readVarUint8Array, resetEnvironmentCache, serverBuild, shouldGroupMessages, signIn, signOut, toConnectionStatus, toUint8Array, useAsyncResource, useAuth, useAuthProfileReady, useAuthReady, useAuthStatus, useAuthUser, useCanvas, useChannelMembers, useChannels, useCheckout, useCommunities, useConversation, useConversations, useCronMonitor, useDisplayName, useGameRoom, useInbox, useIsDarkTheme, useJobs, useMessages, useMutations, usePagedResource, usePlatform, usePlatformWS, usePosts, usePresence, usePresenceRoom, useQuery, useR2Files, useReactions, useReadReceipts, useRecordContext, useSession, useSubscription, useUser, useUserLookup, useUsers, useVoiceAgent, useYjsField, useYjsRoom, useYjsText, writeVarUint, writeVarUint8Array };
|