@wacht/jsx 0.0.1-alpha.11 → 0.0.1-alpha.13
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 +690 -694
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +17 -4
- package/dist/index.es.js +6304 -6312
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CurrentUser } from '@wacht/types';
|
|
|
6
6
|
import { default as default_2 } from 'react';
|
|
7
7
|
import { Deployment } from '@wacht/types';
|
|
8
8
|
import { DeploymentContextType as DeploymentContextType_2 } from '..';
|
|
9
|
+
import { DeploymentUISettings } from '@wacht/types';
|
|
9
10
|
import { DetailedHTMLProps } from 'react';
|
|
10
11
|
import { ErrorInterface } from '@wacht/types';
|
|
11
12
|
import { FastOmit } from 'styled-components';
|
|
@@ -178,7 +179,7 @@ export declare interface ConversationSession {
|
|
|
178
179
|
export declare const CreateOrganizationForm: React.FC<CreateOrganizationFormProps>;
|
|
179
180
|
|
|
180
181
|
declare interface CreateOrganizationFormProps {
|
|
181
|
-
onSuccess?: () => void;
|
|
182
|
+
onSuccess?: (organization?: any) => void;
|
|
182
183
|
onCancel?: () => void;
|
|
183
184
|
}
|
|
184
185
|
|
|
@@ -210,7 +211,7 @@ export declare const CreateWorkspaceForm: default_2.FC<CreateWorkspaceFormProps>
|
|
|
210
211
|
|
|
211
212
|
declare interface CreateWorkspaceFormProps {
|
|
212
213
|
organizationId: string;
|
|
213
|
-
onSuccess?: () => void;
|
|
214
|
+
onSuccess?: (workspace?: any) => void;
|
|
214
215
|
onCancel?: () => void;
|
|
215
216
|
onCreateOrganization?: () => void;
|
|
216
217
|
}
|
|
@@ -238,12 +239,13 @@ export declare interface DeploymentInvitationData {
|
|
|
238
239
|
error_code?: string;
|
|
239
240
|
}
|
|
240
241
|
|
|
241
|
-
export declare function DeploymentProvider({ children, publicKey, adapter, }: DeploymentProviderProps): JSX.Element;
|
|
242
|
+
export declare function DeploymentProvider({ children, publicKey, adapter, uiOverwrites, }: DeploymentProviderProps): JSX.Element;
|
|
242
243
|
|
|
243
244
|
declare interface DeploymentProviderProps {
|
|
244
245
|
children: ReactNode;
|
|
245
246
|
publicKey: string;
|
|
246
247
|
adapter: PlatformAdapter;
|
|
248
|
+
uiOverwrites?: Partial<DeploymentUISettings>;
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
export declare const Dialog: FC<DialogProps> & {
|
|
@@ -357,6 +359,7 @@ declare type GenericSignInParams = {
|
|
|
357
359
|
password?: string;
|
|
358
360
|
phone?: string;
|
|
359
361
|
strategy?: string;
|
|
362
|
+
token?: string;
|
|
360
363
|
};
|
|
361
364
|
|
|
362
365
|
export declare function hasIncompleteProfile(session: Session): boolean;
|
|
@@ -700,7 +703,7 @@ declare type SignInFunction<T extends SignInStrategy> = {
|
|
|
700
703
|
["generic"]: SignInGeneric;
|
|
701
704
|
}[T];
|
|
702
705
|
|
|
703
|
-
declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
|
|
706
|
+
declare type SignInGeneric = ({ email, username, password, phone, strategy, token, }: GenericSignInParams) => Promise<ApiResult<Session>>;
|
|
704
707
|
|
|
705
708
|
declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
|
|
706
709
|
|
|
@@ -1312,3 +1315,13 @@ export declare interface WaitlistResponse {
|
|
|
1312
1315
|
export * from "@wacht/types";
|
|
1313
1316
|
|
|
1314
1317
|
export { }
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
declare module "@wacht/types" {
|
|
1321
|
+
interface OrganizationMembershipWithOrganization {
|
|
1322
|
+
eligibility_restriction?: EligibilityRestriction;
|
|
1323
|
+
}
|
|
1324
|
+
interface WorkspaceMembershipWithWorkspace {
|
|
1325
|
+
eligibility_restriction?: EligibilityRestriction;
|
|
1326
|
+
}
|
|
1327
|
+
}
|