@raystack/frontier 0.30.1 → 0.32.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.30.1",
3
+ "version": "0.32.0",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "release:dry": "release-it --dry-run --npm.ignoreVersion",
23
23
  "release": "release-it",
24
24
  "test": "jest",
25
- "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
25
+ "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o api-client --modular"
26
26
  },
27
27
  "author": "pyadav9678@gmail.com",
28
28
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@ type MagicLinkProps = {
41
41
  open?: boolean;
42
42
  children?: React.ReactNode;
43
43
  };
44
- declare const MagicLink: ({ children, open, ...props }: MagicLinkProps) => react_jsx_runtime.JSX.Element;
44
+ declare const MagicLink: ({ open, ...props }: MagicLinkProps) => react_jsx_runtime.JSX.Element;
45
45
 
46
46
  type MagicLinkVerifyProps = ComponentPropsWithRef<typeof Container> & {
47
47
  logo?: React.ReactNode;
@@ -4631,6 +4631,7 @@ interface BasePlan extends Omit<V1Beta1Plan, 'title'> {
4631
4631
  title: string;
4632
4632
  }
4633
4633
 
4634
+ type CustomFetch = typeof fetch;
4634
4635
  interface FrontierClientBillingOptions {
4635
4636
  supportEmail?: string;
4636
4637
  successUrl?: string;
@@ -4643,7 +4644,7 @@ interface FrontierClientBillingOptions {
4643
4644
  }
4644
4645
  interface FrontierClientOptions {
4645
4646
  theme?: 'dark' | 'light';
4646
- endpoint?: string;
4647
+ endpoint: string;
4647
4648
  redirectSignup?: string;
4648
4649
  redirectLogin?: string;
4649
4650
  redirectMagicLinkVerify?: string;
@@ -4664,6 +4665,7 @@ interface FrontierProviderProps {
4664
4665
  config: FrontierClientOptions;
4665
4666
  children: React.ReactNode;
4666
4667
  initialState?: InitialState;
4668
+ customFetch?: (activeOrg?: V1Beta1Organization) => CustomFetch;
4667
4669
  }
4668
4670
 
4669
4671
  interface FrontierContextProviderProps {
@@ -4687,11 +4689,13 @@ interface FrontierContextProviderProps {
4687
4689
  setBillingAccount: Dispatch<SetStateAction<V1Beta1BillingAccount | undefined>>;
4688
4690
  isBillingAccountLoading: boolean;
4689
4691
  setIsBillingAccountLoading: Dispatch<SetStateAction<boolean>>;
4692
+ trialSubscription: V1Beta1Subscription | undefined;
4690
4693
  activeSubscription: V1Beta1Subscription | undefined;
4691
4694
  setActiveSubscription: Dispatch<SetStateAction<V1Beta1Subscription | undefined>>;
4692
4695
  subscriptions: V1Beta1Subscription[];
4693
4696
  isActiveSubscriptionLoading: boolean;
4694
4697
  setIsActiveSubscriptionLoading: Dispatch<SetStateAction<boolean>>;
4698
+ trialPlan: V1Beta1Plan | undefined;
4695
4699
  activePlan: V1Beta1Plan | undefined;
4696
4700
  setActivePlan: Dispatch<SetStateAction<V1Beta1Plan | undefined>>;
4697
4701
  allPlans: V1Beta1Plan[];