@raystack/frontier 0.52.0 → 0.54.0
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/package.json +1 -1
- package/react/dist/index.d.ts +33 -2
- package/react/dist/index.js +2181 -1994
- package/react/dist/index.mjs +2064 -1880
package/package.json
CHANGED
package/react/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { ComponentPropsWithRef, Dispatch, SetStateAction, PropsWithChildren } from 'react';
|
|
3
|
+
import * as yup from 'yup';
|
|
3
4
|
import * as _tanstack_react_router from '@tanstack/react-router';
|
|
4
|
-
import { RouteComponent } from '@tanstack/react-router';
|
|
5
|
+
import { ReactNode, RouteComponent } from '@tanstack/react-router';
|
|
5
6
|
import { ThemeProviderProps } from '@raystack/apsara/v1';
|
|
6
7
|
|
|
7
8
|
interface AmountProps {
|
|
@@ -65,6 +66,21 @@ type SignUpProps = ComponentPropsWithRef<typeof Container> & {
|
|
|
65
66
|
};
|
|
66
67
|
declare const SignUp: ({ logo, title, excludes, ...props }: SignUpProps) => react_jsx_runtime.JSX.Element;
|
|
67
68
|
|
|
69
|
+
declare const schema: yup.ObjectSchema<{
|
|
70
|
+
newsletter: boolean | undefined;
|
|
71
|
+
}, yup.AnyObject, {
|
|
72
|
+
newsletter: undefined;
|
|
73
|
+
}, "">;
|
|
74
|
+
type FormData = yup.InferType<typeof schema>;
|
|
75
|
+
type SubscribeProps = {
|
|
76
|
+
logo?: ReactNode;
|
|
77
|
+
title?: string;
|
|
78
|
+
preferenceTitle?: string;
|
|
79
|
+
preferenceDescription?: string;
|
|
80
|
+
onSubmit?: (data: FormData) => void;
|
|
81
|
+
};
|
|
82
|
+
declare const Subscribe: ({ logo, title, preferenceTitle, preferenceDescription, onSubmit }: SubscribeProps) => react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
68
84
|
type CreateOrganizationProps = ComponentPropsWithRef<typeof Container> & {
|
|
69
85
|
title?: string;
|
|
70
86
|
description?: string;
|
|
@@ -4686,9 +4702,24 @@ declare const useBillingPermission: () => {
|
|
|
4686
4702
|
isAllowed: boolean;
|
|
4687
4703
|
};
|
|
4688
4704
|
|
|
4705
|
+
type Preferences = Record<string, V1Beta1Preference>;
|
|
4706
|
+
interface UsePreferences {
|
|
4707
|
+
preferences: Preferences;
|
|
4708
|
+
isLoading: boolean;
|
|
4709
|
+
isFetching: boolean;
|
|
4710
|
+
status: 'idle' | 'fetching' | 'loading';
|
|
4711
|
+
fetchPreferences: () => Promise<V1Beta1Preference[] | undefined>;
|
|
4712
|
+
updatePreferences: (preferences: V1Beta1Preference[]) => Promise<V1Beta1Preference[] | undefined>;
|
|
4713
|
+
}
|
|
4714
|
+
declare function usePreferences(): UsePreferences;
|
|
4715
|
+
|
|
4689
4716
|
interface LayoutProps {
|
|
4690
4717
|
title: string;
|
|
4691
4718
|
}
|
|
4692
4719
|
declare function Layout({ title, children }: PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
|
|
4693
4720
|
|
|
4694
|
-
|
|
4721
|
+
declare const PREFERENCE_OPTIONS: {
|
|
4722
|
+
readonly NEWSLETTER: "newsletter";
|
|
4723
|
+
};
|
|
4724
|
+
|
|
4725
|
+
export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Window, useBillingPermission, useFrontier, usePreferences, useTokens };
|