@raystack/frontier 0.11.2 → 0.12.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 +3 -3
- package/react/dist/index.d.ts +10 -8
- package/react/dist/index.js +166 -118
- package/react/dist/index.mjs +168 -120
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsup",
|
|
16
16
|
"dev": "tsup --watch src",
|
|
17
17
|
"size": "size-limit",
|
|
18
|
-
"lint": "eslint \"./**/*.ts*\"",
|
|
18
|
+
"lint": "eslint \"./**/*.ts*\" --ignore-pattern \"*.d.ts\" --ignore-pattern \"*.test.ts\"",
|
|
19
19
|
"bump-version": "node scripts/bump-version.js",
|
|
20
20
|
"release:ci": "release-it --ci --no-increment --npm.ignoreVersion",
|
|
21
21
|
"release:dry": "release-it --dry-run --npm.ignoreVersion",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"esbuild-css-modules-plugin": "^2.7.1",
|
|
66
66
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
67
67
|
"eslint": "^7.32.0",
|
|
68
|
-
"eslint-config
|
|
68
|
+
"@raystack/eslint-config": "workspace:^",
|
|
69
69
|
"jest": "^29.7.0",
|
|
70
70
|
"np": "^7.7.0",
|
|
71
71
|
"prettier": "^2.8.8",
|
package/react/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React
|
|
2
|
+
import React, { ComponentPropsWithRef, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import * as _tanstack_react_router from '@tanstack/react-router';
|
|
4
4
|
import { Router, Route } from '@tanstack/react-router';
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ interface AmountProps {
|
|
|
15
15
|
declare function Amount({ currency, value, className, currencyClassName, decimalClassName, valueClassName, hideDecimals }: AmountProps): react_jsx_runtime.JSX.Element;
|
|
16
16
|
|
|
17
17
|
type ContainerProps = ComponentPropsWithRef<'div'> & {
|
|
18
|
-
children?: React
|
|
18
|
+
children?: React.ReactNode;
|
|
19
19
|
shadow?: 'none' | 'xs' | 'sm' | 'md' | 'lg';
|
|
20
20
|
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg';
|
|
21
21
|
className?: string;
|
|
@@ -24,24 +24,24 @@ declare const Container: ({ children, shadow, radius, style, className }: Contai
|
|
|
24
24
|
|
|
25
25
|
type HeaderProps = ComponentPropsWithRef<'div'> & {
|
|
26
26
|
title?: string;
|
|
27
|
-
logo?: React
|
|
27
|
+
logo?: React.ReactNode;
|
|
28
28
|
};
|
|
29
29
|
declare const Header: ({ title, logo }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
30
30
|
|
|
31
31
|
type MagicLinkProps = {
|
|
32
32
|
open?: boolean;
|
|
33
|
-
children?: React
|
|
33
|
+
children?: React.ReactNode;
|
|
34
34
|
};
|
|
35
35
|
declare const MagicLink: ({ children, open, ...props }: MagicLinkProps) => react_jsx_runtime.JSX.Element;
|
|
36
36
|
|
|
37
37
|
type MagicLinkVerifyProps = ComponentPropsWithRef<typeof Container> & {
|
|
38
|
-
logo?: React
|
|
38
|
+
logo?: React.ReactNode;
|
|
39
39
|
title?: string;
|
|
40
40
|
};
|
|
41
41
|
declare const MagicLinkVerify: ({ logo, title, ...props }: MagicLinkVerifyProps) => react_jsx_runtime.JSX.Element;
|
|
42
42
|
|
|
43
43
|
type SignedInProps = ComponentPropsWithRef<typeof Container> & {
|
|
44
|
-
logo?: React
|
|
44
|
+
logo?: React.ReactNode;
|
|
45
45
|
title?: string;
|
|
46
46
|
excludes?: string[];
|
|
47
47
|
footer?: boolean;
|
|
@@ -49,7 +49,7 @@ type SignedInProps = ComponentPropsWithRef<typeof Container> & {
|
|
|
49
49
|
declare const SignIn: ({ logo, title, excludes, footer, ...props }: SignedInProps) => react_jsx_runtime.JSX.Element;
|
|
50
50
|
|
|
51
51
|
type SignUpProps = ComponentPropsWithRef<typeof Container> & {
|
|
52
|
-
logo?: React
|
|
52
|
+
logo?: React.ReactNode;
|
|
53
53
|
title?: string;
|
|
54
54
|
excludes?: string[];
|
|
55
55
|
};
|
|
@@ -309,7 +309,7 @@ interface InitialState {
|
|
|
309
309
|
}
|
|
310
310
|
interface FrontierProviderProps {
|
|
311
311
|
config: FrontierClientOptions;
|
|
312
|
-
children: React
|
|
312
|
+
children: React.ReactNode;
|
|
313
313
|
initialState?: InitialState;
|
|
314
314
|
}
|
|
315
315
|
|
|
@@ -4243,6 +4243,8 @@ interface FrontierContextProviderProps {
|
|
|
4243
4243
|
setIsActiveSubscriptionLoading: Dispatch<SetStateAction<boolean>>;
|
|
4244
4244
|
activePlan: V1Beta1Plan | undefined;
|
|
4245
4245
|
setActivePlan: Dispatch<SetStateAction<V1Beta1Plan | undefined>>;
|
|
4246
|
+
allPlans: V1Beta1Plan[];
|
|
4247
|
+
isAllPlansLoading: boolean;
|
|
4246
4248
|
isActivePlanLoading: boolean;
|
|
4247
4249
|
setIsActivePlanLoading: Dispatch<SetStateAction<boolean>>;
|
|
4248
4250
|
fetchActiveSubsciption: () => Promise<V1Beta1Subscription | undefined>;
|