@saas-support/react 0.6.2 → 0.7.1
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 +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -20
- package/dist/react.cjs +591 -301
- package/dist/react.d.ts +13 -0
- package/dist/react.js +1737 -1048
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare class AuthClient {
|
|
|
43
43
|
disableMfa(code: string): Promise<void>;
|
|
44
44
|
getToken(): Promise<string | null>;
|
|
45
45
|
getUser(): Promise<User | null>;
|
|
46
|
+
refreshUser(): Promise<User | null>;
|
|
46
47
|
getUserSync(): User | null;
|
|
47
48
|
isLoaded(): boolean;
|
|
48
49
|
getSettings(): Promise<ProjectSettings | null>;
|
|
@@ -343,6 +344,7 @@ export declare interface Org {
|
|
|
343
344
|
slug: string;
|
|
344
345
|
avatarUrl?: string;
|
|
345
346
|
metadata?: string;
|
|
347
|
+
planName?: string;
|
|
346
348
|
}
|
|
347
349
|
|
|
348
350
|
export declare function OrgSwitcher({ appearance: localAppearance, onOrgChange }: OrgSwitcherProps): JSX_2.Element | null;
|
|
@@ -567,6 +569,16 @@ export declare interface SavedQueryListProps {
|
|
|
567
569
|
appearance?: Appearance;
|
|
568
570
|
}
|
|
569
571
|
|
|
572
|
+
export declare function SettingsPanel({ onClose, afterDeleteAccountUrl, defaultTab }: SettingsPanelProps): JSX_2.Element;
|
|
573
|
+
|
|
574
|
+
export declare interface SettingsPanelProps {
|
|
575
|
+
onClose: () => void;
|
|
576
|
+
afterDeleteAccountUrl?: string;
|
|
577
|
+
defaultTab?: SettingsTab;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
declare type SettingsTab = 'profile' | 'organization' | 'people' | 'billing';
|
|
581
|
+
|
|
570
582
|
export declare function SignIn({ appearance: localAppearance, signUpUrl, onSignUp }: SignInProps): JSX_2.Element;
|
|
571
583
|
|
|
572
584
|
export declare interface SignInProps {
|
|
@@ -712,6 +724,7 @@ export declare function useAuth(): {
|
|
|
712
724
|
user: User | null;
|
|
713
725
|
signOut: () => Promise<void>;
|
|
714
726
|
getToken: () => Promise<string | null>;
|
|
727
|
+
refreshUser: () => Promise<User | null>;
|
|
715
728
|
};
|
|
716
729
|
|
|
717
730
|
export declare function useBilling(): {
|