@wacht/jsx 1.0.0-beta.24 → 1.0.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs.js +3019 -1837
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +36 -22
- package/dist/index.es.js +15542 -14942
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Actor } from '@wacht/types';
|
|
2
|
+
import { ActorMcpServerSummary } from '@wacht/types';
|
|
2
3
|
import { ActorProject } from '@wacht/types';
|
|
3
4
|
import { Agent } from '@wacht/types';
|
|
4
5
|
import { AgentThread } from '@wacht/types';
|
|
@@ -31,6 +32,7 @@ import { DeploymentUISettings } from '@wacht/types';
|
|
|
31
32
|
import { DetailedHTMLProps } from 'react';
|
|
32
33
|
import { EndpointWithSubscriptions } from '@wacht/types';
|
|
33
34
|
import { EnterpriseConnection } from '@wacht/types';
|
|
35
|
+
import { ExternalAgentConnection } from '@wacht/types';
|
|
34
36
|
import { FastOmit } from 'styled-components';
|
|
35
37
|
import { FC } from 'react';
|
|
36
38
|
import { FileData } from '@wacht/types';
|
|
@@ -81,7 +83,6 @@ import { SigninAttempt } from '@wacht/types';
|
|
|
81
83
|
import { SignupAttempt } from '@wacht/types';
|
|
82
84
|
import { SignUpParams } from '@wacht/types';
|
|
83
85
|
import { SocialConnection } from '@wacht/types';
|
|
84
|
-
import { Substitute } from 'styled-components/dist/types';
|
|
85
86
|
import { TestEndpointOptions } from '@wacht/types';
|
|
86
87
|
import { TestEndpointResponse } from '@wacht/types';
|
|
87
88
|
import { ThreadEvent } from '@wacht/types';
|
|
@@ -149,17 +150,6 @@ declare interface ActorMcpServerConnectResponse {
|
|
|
149
150
|
auth_url: string;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
export declare interface ActorMcpServerSummary {
|
|
153
|
-
id: string;
|
|
154
|
-
name: string;
|
|
155
|
-
endpoint: string;
|
|
156
|
-
auth_type: string;
|
|
157
|
-
requires_user_connection: boolean;
|
|
158
|
-
connection_status: "ready" | "connected" | "not_connected" | "expired";
|
|
159
|
-
connected_at?: string;
|
|
160
|
-
expires_at?: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
153
|
declare type AgentSearchOptions = {
|
|
164
154
|
enabled?: boolean;
|
|
165
155
|
query?: string;
|
|
@@ -194,6 +184,10 @@ declare const CONNECTION_STATES: {
|
|
|
194
184
|
readonly ERROR: "error";
|
|
195
185
|
};
|
|
196
186
|
|
|
187
|
+
declare interface ConnectResponse {
|
|
188
|
+
redirect_url: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
197
191
|
export declare const CreateOrganizationForm: React.FC<CreateOrganizationFormProps>;
|
|
198
192
|
|
|
199
193
|
declare interface CreateOrganizationFormProps {
|
|
@@ -257,13 +251,13 @@ export declare interface DeploymentInvitationData {
|
|
|
257
251
|
error_code?: string;
|
|
258
252
|
}
|
|
259
253
|
|
|
260
|
-
export declare function DeploymentProvider({ children, publicKey, adapter,
|
|
254
|
+
export declare function DeploymentProvider({ children, publicKey, adapter, uiOverrides, }: DeploymentProviderProps): JSX.Element;
|
|
261
255
|
|
|
262
256
|
declare interface DeploymentProviderProps {
|
|
263
257
|
children: ReactNode;
|
|
264
258
|
publicKey: string;
|
|
265
259
|
adapter: PlatformAdapter;
|
|
266
|
-
|
|
260
|
+
uiOverrides?: Partial<DeploymentUISettings>;
|
|
267
261
|
}
|
|
268
262
|
|
|
269
263
|
export declare const Dialog: FC<DialogProps> & {
|
|
@@ -317,11 +311,13 @@ declare interface DialogTriggerProps {
|
|
|
317
311
|
|
|
318
312
|
export declare const Dropdown: ({ children, open, openChange, style, }: DropdownProps) => JSX.Element;
|
|
319
313
|
|
|
320
|
-
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
314
|
+
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
321
315
|
|
|
322
|
-
export declare const DropdownItem: IStyledComponentBase<"web",
|
|
316
|
+
export declare const DropdownItem: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
317
|
+
$destructive?: boolean;
|
|
318
|
+
}, never> & Partial<Pick<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
323
319
|
$destructive?: boolean;
|
|
324
|
-
}
|
|
320
|
+
}, never>>> & string;
|
|
325
321
|
|
|
326
322
|
export declare const DropdownItems: ({ children, style, }: {
|
|
327
323
|
children: ReactNode;
|
|
@@ -353,9 +349,9 @@ declare type EmailSignInParams = {
|
|
|
353
349
|
password: string;
|
|
354
350
|
};
|
|
355
351
|
|
|
356
|
-
export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never
|
|
352
|
+
export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never> & Partial<Pick<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>>> & string;
|
|
357
353
|
|
|
358
|
-
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
354
|
+
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
359
355
|
|
|
360
356
|
/**
|
|
361
357
|
* Unified execution status mapping between frontend and backend
|
|
@@ -403,7 +399,7 @@ declare type InitSSOResponseType = {
|
|
|
403
399
|
session: Session;
|
|
404
400
|
};
|
|
405
401
|
|
|
406
|
-
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never
|
|
402
|
+
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>> & string;
|
|
407
403
|
|
|
408
404
|
export declare const isExternalUrl: (url: string) => boolean;
|
|
409
405
|
|
|
@@ -419,7 +415,7 @@ export declare const isSafeUrl: (url: string) => boolean;
|
|
|
419
415
|
*/
|
|
420
416
|
export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
|
|
421
417
|
|
|
422
|
-
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never
|
|
418
|
+
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
|
|
423
419
|
|
|
424
420
|
declare interface MagicLinkParams {
|
|
425
421
|
token?: string;
|
|
@@ -581,7 +577,7 @@ export declare const ORG_ADMIN_PERMISSIONS: string[];
|
|
|
581
577
|
|
|
582
578
|
export declare const ORG_MANAGEMENT_PERMISSIONS: string[];
|
|
583
579
|
|
|
584
|
-
export declare const OrganizationSwitcher: ({ showPersonal
|
|
580
|
+
export declare const OrganizationSwitcher: ({ showPersonal }: OrganizationSwitcherProps) => JSX.Element | null;
|
|
585
581
|
|
|
586
582
|
declare interface OrganizationSwitcherProps {
|
|
587
583
|
showPersonal?: boolean;
|
|
@@ -1174,6 +1170,19 @@ declare interface UseCreateWebhookEndpointReturn {
|
|
|
1174
1170
|
|
|
1175
1171
|
export declare function useDeployment(): DeploymentContextType;
|
|
1176
1172
|
|
|
1173
|
+
export declare function useExternalAgentConnections(enabled?: boolean): {
|
|
1174
|
+
connections: ExternalAgentConnection[];
|
|
1175
|
+
loading: boolean;
|
|
1176
|
+
error: any;
|
|
1177
|
+
connect: (provider: string, slug: string, options?: {
|
|
1178
|
+
returnUrl?: string;
|
|
1179
|
+
}) => Promise<ConnectResponse>;
|
|
1180
|
+
disconnect: (provider: string, slug: string) => Promise<{
|
|
1181
|
+
success: boolean;
|
|
1182
|
+
}>;
|
|
1183
|
+
refetch: () => Promise<void>;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1177
1186
|
export declare function useForgotPassword(): {
|
|
1178
1187
|
loading: boolean;
|
|
1179
1188
|
forgotPassword: (email: string) => Promise<ApiResult<{}>>;
|
|
@@ -1404,6 +1413,11 @@ export declare const UserButton: default_2.FC<UserButtonProps>;
|
|
|
1404
1413
|
|
|
1405
1414
|
declare interface UserButtonProps {
|
|
1406
1415
|
showName?: boolean;
|
|
1416
|
+
onCreateOrg?: () => void;
|
|
1417
|
+
/** Show the org/workspace chip row and side panel. Defaults to true. */
|
|
1418
|
+
showOrgSwitcher?: boolean;
|
|
1419
|
+
/** Viewport width threshold (px) below which the side panel replaces the main dropdown. Defaults to 640. */
|
|
1420
|
+
narrowBreakpoint?: number;
|
|
1407
1421
|
}
|
|
1408
1422
|
|
|
1409
1423
|
export declare const UserControls: default_2.FC<UserControlsProps>;
|