@wacht/jsx 1.0.0-beta.24 → 1.0.0-beta.25
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/index.cjs.js +1352 -1089
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +44 -9
- package/dist/index.es.js +9795 -9737
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,6 @@ import { SigninAttempt } from '@wacht/types';
|
|
|
81
81
|
import { SignupAttempt } from '@wacht/types';
|
|
82
82
|
import { SignUpParams } from '@wacht/types';
|
|
83
83
|
import { SocialConnection } from '@wacht/types';
|
|
84
|
-
import { Substitute } from 'styled-components/dist/types';
|
|
85
84
|
import { TestEndpointOptions } from '@wacht/types';
|
|
86
85
|
import { TestEndpointResponse } from '@wacht/types';
|
|
87
86
|
import { ThreadEvent } from '@wacht/types';
|
|
@@ -194,6 +193,10 @@ declare const CONNECTION_STATES: {
|
|
|
194
193
|
readonly ERROR: "error";
|
|
195
194
|
};
|
|
196
195
|
|
|
196
|
+
declare interface ConnectResponse {
|
|
197
|
+
redirect_url: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
197
200
|
export declare const CreateOrganizationForm: React.FC<CreateOrganizationFormProps>;
|
|
198
201
|
|
|
199
202
|
declare interface CreateOrganizationFormProps {
|
|
@@ -317,11 +320,13 @@ declare interface DialogTriggerProps {
|
|
|
317
320
|
|
|
318
321
|
export declare const Dropdown: ({ children, open, openChange, style, }: DropdownProps) => JSX.Element;
|
|
319
322
|
|
|
320
|
-
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
323
|
+
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
321
324
|
|
|
322
|
-
export declare const DropdownItem: IStyledComponentBase<"web",
|
|
325
|
+
export declare const DropdownItem: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
323
326
|
$destructive?: boolean;
|
|
324
|
-
}
|
|
327
|
+
}, never> & Partial<Pick<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
328
|
+
$destructive?: boolean;
|
|
329
|
+
}, never>>> & string;
|
|
325
330
|
|
|
326
331
|
export declare const DropdownItems: ({ children, style, }: {
|
|
327
332
|
children: ReactNode;
|
|
@@ -353,9 +358,21 @@ declare type EmailSignInParams = {
|
|
|
353
358
|
password: string;
|
|
354
359
|
};
|
|
355
360
|
|
|
356
|
-
export declare
|
|
361
|
+
export declare interface ExternalAgentConnection {
|
|
362
|
+
provider: string;
|
|
363
|
+
slug: string;
|
|
364
|
+
display_name: string;
|
|
365
|
+
logo_url?: string;
|
|
366
|
+
status: ExternalAgentConnectionStatus;
|
|
367
|
+
external_account_id?: string;
|
|
368
|
+
connected_at?: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export declare type ExternalAgentConnectionStatus = "disconnected" | "pending" | "active" | "expired" | "failed";
|
|
372
|
+
|
|
373
|
+
export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never> & Partial<Pick<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>>> & string;
|
|
357
374
|
|
|
358
|
-
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
375
|
+
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
359
376
|
|
|
360
377
|
/**
|
|
361
378
|
* Unified execution status mapping between frontend and backend
|
|
@@ -403,7 +420,7 @@ declare type InitSSOResponseType = {
|
|
|
403
420
|
session: Session;
|
|
404
421
|
};
|
|
405
422
|
|
|
406
|
-
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never
|
|
423
|
+
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>> & string;
|
|
407
424
|
|
|
408
425
|
export declare const isExternalUrl: (url: string) => boolean;
|
|
409
426
|
|
|
@@ -419,7 +436,7 @@ export declare const isSafeUrl: (url: string) => boolean;
|
|
|
419
436
|
*/
|
|
420
437
|
export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
|
|
421
438
|
|
|
422
|
-
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never
|
|
439
|
+
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
|
|
423
440
|
|
|
424
441
|
declare interface MagicLinkParams {
|
|
425
442
|
token?: string;
|
|
@@ -581,7 +598,7 @@ export declare const ORG_ADMIN_PERMISSIONS: string[];
|
|
|
581
598
|
|
|
582
599
|
export declare const ORG_MANAGEMENT_PERMISSIONS: string[];
|
|
583
600
|
|
|
584
|
-
export declare const OrganizationSwitcher: ({ showPersonal
|
|
601
|
+
export declare const OrganizationSwitcher: ({ showPersonal }: OrganizationSwitcherProps) => JSX.Element | null;
|
|
585
602
|
|
|
586
603
|
declare interface OrganizationSwitcherProps {
|
|
587
604
|
showPersonal?: boolean;
|
|
@@ -1174,6 +1191,19 @@ declare interface UseCreateWebhookEndpointReturn {
|
|
|
1174
1191
|
|
|
1175
1192
|
export declare function useDeployment(): DeploymentContextType;
|
|
1176
1193
|
|
|
1194
|
+
export declare function useExternalAgentConnections(enabled?: boolean): {
|
|
1195
|
+
connections: ExternalAgentConnection[];
|
|
1196
|
+
loading: boolean;
|
|
1197
|
+
error: any;
|
|
1198
|
+
connect: (provider: string, slug: string, options?: {
|
|
1199
|
+
returnUrl?: string;
|
|
1200
|
+
}) => Promise<ConnectResponse>;
|
|
1201
|
+
disconnect: (provider: string, slug: string) => Promise<{
|
|
1202
|
+
success: boolean;
|
|
1203
|
+
}>;
|
|
1204
|
+
refetch: () => Promise<void>;
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1177
1207
|
export declare function useForgotPassword(): {
|
|
1178
1208
|
loading: boolean;
|
|
1179
1209
|
forgotPassword: (email: string) => Promise<ApiResult<{}>>;
|
|
@@ -1404,6 +1434,11 @@ export declare const UserButton: default_2.FC<UserButtonProps>;
|
|
|
1404
1434
|
|
|
1405
1435
|
declare interface UserButtonProps {
|
|
1406
1436
|
showName?: boolean;
|
|
1437
|
+
onCreateOrg?: () => void;
|
|
1438
|
+
/** Show the org/workspace chip row and side panel. Defaults to true. */
|
|
1439
|
+
showOrgSwitcher?: boolean;
|
|
1440
|
+
/** Viewport width threshold (px) below which the side panel replaces the main dropdown. Defaults to 640. */
|
|
1441
|
+
narrowBreakpoint?: number;
|
|
1407
1442
|
}
|
|
1408
1443
|
|
|
1409
1444
|
export declare const UserControls: default_2.FC<UserControlsProps>;
|