@raystack/frontier 0.8.14 → 0.8.17
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 +13 -5
- package/react/dist/index.d.ts +21 -3
- package/react/dist/index.js +913 -367
- package/react/dist/index.mjs +966 -413
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"dev": "tsup --watch src",
|
|
17
17
|
"size": "size-limit",
|
|
18
18
|
"lint": "eslint \"./**/*.ts*\"",
|
|
19
|
-
"
|
|
20
|
-
"release:
|
|
19
|
+
"bump-version": "node scripts/bump-version.js",
|
|
20
|
+
"release:ci": "release-it --ci --no-increment --npm.ignoreVersion",
|
|
21
|
+
"release:dry": "release-it --dry-run --npm.ignoreVersion",
|
|
21
22
|
"release": "release-it",
|
|
22
|
-
"test": "
|
|
23
|
+
"test": "jest",
|
|
23
24
|
"gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
|
|
24
25
|
},
|
|
25
26
|
"author": "pyadav9678@gmail.com",
|
|
@@ -51,10 +52,12 @@
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
55
|
+
"@jest/globals": "^29.7.0",
|
|
54
56
|
"@radix-ui/react-icons": "^1.3.0",
|
|
55
57
|
"@raystack/frontier-tsconfig": "workspace:^",
|
|
56
58
|
"@size-limit/preset-small-lib": "^8.2.6",
|
|
57
59
|
"@tanstack/react-table": "^8.10.1",
|
|
60
|
+
"@types/jest": "^29.5.11",
|
|
58
61
|
"@types/lodash": "^4.14.202",
|
|
59
62
|
"@types/node": "^20.6.3",
|
|
60
63
|
"@types/react": "^18.2.22",
|
|
@@ -63,25 +66,30 @@
|
|
|
63
66
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
64
67
|
"eslint": "^7.32.0",
|
|
65
68
|
"eslint-config-frontier": "workspace:^",
|
|
69
|
+
"jest": "^29.7.0",
|
|
66
70
|
"np": "^7.7.0",
|
|
67
71
|
"prettier": "^2.8.8",
|
|
68
72
|
"release-it": "^16.2.1",
|
|
73
|
+
"semver": "^7.5.4",
|
|
69
74
|
"size-limit": "^8.2.6",
|
|
70
75
|
"swagger-typescript-api": "^13.0.3",
|
|
76
|
+
"ts-jest": "^29.1.1",
|
|
71
77
|
"tsup": "^6.7.0",
|
|
72
78
|
"typescript": "^5.2.2"
|
|
73
79
|
},
|
|
74
80
|
"dependencies": {
|
|
75
81
|
"@hookform/resolvers": "^3.3.1",
|
|
76
|
-
"@raystack/apsara": "^0.11.
|
|
82
|
+
"@raystack/apsara": "^0.11.9",
|
|
77
83
|
"@tanstack/react-router": "0.0.1-beta.194",
|
|
78
84
|
"axios": "^1.5.0",
|
|
79
85
|
"class-variance-authority": "^0.7.0",
|
|
80
86
|
"dayjs": "^1.11.10",
|
|
81
87
|
"lodash": "^4.17.21",
|
|
88
|
+
"query-string": "^8.1.0",
|
|
82
89
|
"react-hook-form": "^7.46.2",
|
|
83
90
|
"react-image-crop": "^10.1.8",
|
|
84
91
|
"react-loading-skeleton": "^3.3.1",
|
|
92
|
+
"slugify": "^1.6.6",
|
|
85
93
|
"sonner": "^0.6.2",
|
|
86
94
|
"yup": "^1.2.0"
|
|
87
95
|
},
|
package/react/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,12 @@ type HeaderProps = ComponentPropsWithRef<'div'> & {
|
|
|
17
17
|
};
|
|
18
18
|
declare const Header: ({ title, logo }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
19
19
|
|
|
20
|
+
type MagicLinkProps = {
|
|
21
|
+
open?: boolean;
|
|
22
|
+
children?: React$1.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
declare const MagicLink: ({ children, open, ...props }: MagicLinkProps) => react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
20
26
|
type MagicLinkVerifyProps = ComponentPropsWithRef<typeof Container> & {
|
|
21
27
|
logo?: React$1.ReactNode;
|
|
22
28
|
title?: string;
|
|
@@ -27,8 +33,9 @@ type SignedInProps = ComponentPropsWithRef<typeof Container> & {
|
|
|
27
33
|
logo?: React$1.ReactNode;
|
|
28
34
|
title?: string;
|
|
29
35
|
excludes?: string[];
|
|
36
|
+
footer?: boolean;
|
|
30
37
|
};
|
|
31
|
-
declare const SignIn: ({ logo, title, excludes, ...props }: SignedInProps) => react_jsx_runtime.JSX.Element;
|
|
38
|
+
declare const SignIn: ({ logo, title, excludes, footer, ...props }: SignedInProps) => react_jsx_runtime.JSX.Element;
|
|
32
39
|
|
|
33
40
|
type SignUpProps = ComponentPropsWithRef<typeof Container> & {
|
|
34
41
|
logo?: React$1.ReactNode;
|
|
@@ -185,7 +192,10 @@ declare const router: Router<Route<any, "/", "/", string, "__root__", _tanstack_
|
|
|
185
192
|
}, _tanstack_react_router.RouteContext, {
|
|
186
193
|
organizationId: string;
|
|
187
194
|
tempShowBilling?: boolean | undefined;
|
|
188
|
-
}, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>[], _tanstack_react_router.AnyRoute>
|
|
195
|
+
}, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>[], _tanstack_react_router.AnyRoute> | Route<_tanstack_react_router.RootRoute<_tanstack_react_router.AnyContext, unknown, {}, _tanstack_react_router.RouteContext, Pick<OrganizationProfileProps, "organizationId" | "tempShowBilling">>, "/plans", "/plans", string, "/plans", {}, unknown, {}, {}, {}, {}, _tanstack_react_router.RouteContext, {
|
|
196
|
+
organizationId: string;
|
|
197
|
+
tempShowBilling?: boolean | undefined;
|
|
198
|
+
}, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>)[], any>, Record<string, any>>;
|
|
189
199
|
declare const OrganizationProfile: ({ organizationId, defaultRoute, tempShowBilling }: OrganizationProfileProps) => react_jsx_runtime.JSX.Element;
|
|
190
200
|
declare module '@tanstack/react-router' {
|
|
191
201
|
interface Register {
|
|
@@ -202,6 +212,8 @@ declare const Window: ({ open, onOpenChange, children, ...props }: WindowProps)
|
|
|
202
212
|
|
|
203
213
|
interface FrontierClientBillingOptions {
|
|
204
214
|
supportEmail?: string;
|
|
215
|
+
successUrl?: string;
|
|
216
|
+
cancelUrl?: string;
|
|
205
217
|
}
|
|
206
218
|
interface FrontierClientOptions {
|
|
207
219
|
endpoint?: string;
|
|
@@ -3714,6 +3726,12 @@ interface FrontierContextProviderProps {
|
|
|
3714
3726
|
setIsUserLoading: Dispatch<SetStateAction<boolean>>;
|
|
3715
3727
|
billingAccount: V1Beta1BillingAccount | undefined;
|
|
3716
3728
|
setBillingAccount: Dispatch<SetStateAction<V1Beta1BillingAccount | undefined>>;
|
|
3729
|
+
isBillingAccountLoading: boolean;
|
|
3730
|
+
setIsBillingAccountLoading: Dispatch<SetStateAction<boolean>>;
|
|
3731
|
+
activeSubscription: V1Beta1Subscription | undefined;
|
|
3732
|
+
setActiveSubscription: Dispatch<SetStateAction<V1Beta1Subscription | undefined>>;
|
|
3733
|
+
isActiveSubscriptionLoading: boolean;
|
|
3734
|
+
setIsActiveSubscriptionLoading: Dispatch<SetStateAction<boolean>>;
|
|
3717
3735
|
}
|
|
3718
3736
|
declare function useFrontier(): FrontierContextProviderProps;
|
|
3719
3737
|
|
|
@@ -3722,4 +3740,4 @@ declare const FrontierProvider: {
|
|
|
3722
3740
|
displayName: string;
|
|
3723
3741
|
};
|
|
3724
3742
|
|
|
3725
|
-
export { Container, CreateOrganization, FrontierProvider, Header, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
|
|
3743
|
+
export { Container, CreateOrganization, FrontierProvider, Header, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
|