@raystack/frontier 0.25.0 → 0.26.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.d.ts +3 -1
- package/package.json +3 -1
- package/react/dist/index.d.ts +44 -35
- package/react/dist/index.js +245 -160
- package/react/dist/index.mjs +253 -168
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ interface SubscriptionPhase {
|
|
|
105
105
|
/** @format date-time */
|
|
106
106
|
effective_at?: string;
|
|
107
107
|
plan_id?: string;
|
|
108
|
+
reason?: string;
|
|
108
109
|
}
|
|
109
110
|
interface WebhookSecret {
|
|
110
111
|
id?: string;
|
|
@@ -118,7 +119,7 @@ interface ProtobufAny {
|
|
|
118
119
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
119
120
|
* `Value` type union.
|
|
120
121
|
*
|
|
121
|
-
*
|
|
122
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
122
123
|
*
|
|
123
124
|
* - NULL_VALUE: Null value.
|
|
124
125
|
* @default "NULL_VALUE"
|
|
@@ -2653,6 +2654,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2653
2654
|
frontierServiceListOrganizationAuditLogs: (orgId: string, query?: {
|
|
2654
2655
|
source?: string;
|
|
2655
2656
|
action?: string;
|
|
2657
|
+
ignore_system?: boolean;
|
|
2656
2658
|
/**
|
|
2657
2659
|
* start_time and end_time are inclusive
|
|
2658
2660
|
* @format date-time
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@types/node": "^20.6.3",
|
|
64
64
|
"@types/react": "^18.2.22",
|
|
65
65
|
"@types/react-dom": "^18.2.7",
|
|
66
|
+
"@types/uuid": "^10.0.0",
|
|
66
67
|
"esbuild-css-modules-plugin": "^2.7.1",
|
|
67
68
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
68
69
|
"eslint": "^7.32.0",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"react-loading-skeleton": "^3.3.1",
|
|
92
93
|
"slugify": "^1.6.6",
|
|
93
94
|
"sonner": "^0.6.2",
|
|
95
|
+
"uuid": "^10.0.0",
|
|
94
96
|
"yup": "^1.2.0"
|
|
95
97
|
},
|
|
96
98
|
"peerDependencies": {
|
package/react/dist/index.d.ts
CHANGED
|
@@ -373,40 +373,6 @@ interface WindowProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
|
373
373
|
}
|
|
374
374
|
declare const Window: ({ open, onOpenChange, children, ...props }: WindowProps) => react_jsx_runtime.JSX.Element;
|
|
375
375
|
|
|
376
|
-
interface FrontierClientBillingOptions {
|
|
377
|
-
supportEmail?: string;
|
|
378
|
-
successUrl?: string;
|
|
379
|
-
cancelUrl?: string;
|
|
380
|
-
hideDecimals?: boolean;
|
|
381
|
-
cancelAfterTrial?: boolean;
|
|
382
|
-
showPerMonthPrice?: boolean;
|
|
383
|
-
tokenProductId?: string;
|
|
384
|
-
}
|
|
385
|
-
interface FrontierClientOptions {
|
|
386
|
-
theme?: 'dark' | 'light';
|
|
387
|
-
endpoint?: string;
|
|
388
|
-
redirectSignup?: string;
|
|
389
|
-
redirectLogin?: string;
|
|
390
|
-
redirectMagicLinkVerify?: string;
|
|
391
|
-
callbackUrl?: string;
|
|
392
|
-
dateFormat?: string;
|
|
393
|
-
shortDateFormat?: string;
|
|
394
|
-
billing?: FrontierClientBillingOptions;
|
|
395
|
-
messages?: {
|
|
396
|
-
billing?: {
|
|
397
|
-
plan_change?: Record<string, string>;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
interface InitialState {
|
|
402
|
-
sessionId?: string | null;
|
|
403
|
-
}
|
|
404
|
-
interface FrontierProviderProps {
|
|
405
|
-
config: FrontierClientOptions;
|
|
406
|
-
children: React.ReactNode;
|
|
407
|
-
initialState?: InitialState;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
376
|
type QueryParamsType = Record<string | number, any>;
|
|
411
377
|
type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
412
378
|
interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
@@ -514,6 +480,7 @@ interface SubscriptionPhase {
|
|
|
514
480
|
/** @format date-time */
|
|
515
481
|
effective_at?: string;
|
|
516
482
|
plan_id?: string;
|
|
483
|
+
reason?: string;
|
|
517
484
|
}
|
|
518
485
|
interface WebhookSecret {
|
|
519
486
|
id?: string;
|
|
@@ -3004,6 +2971,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3004
2971
|
frontierServiceListOrganizationAuditLogs: (orgId: string, query?: {
|
|
3005
2972
|
source?: string;
|
|
3006
2973
|
action?: string;
|
|
2974
|
+
ignore_system?: boolean;
|
|
3007
2975
|
/**
|
|
3008
2976
|
* start_time and end_time are inclusive
|
|
3009
2977
|
* @format date-time
|
|
@@ -4659,6 +4627,46 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
4659
4627
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByCurrentUserResponse, RpcStatus>>;
|
|
4660
4628
|
}
|
|
4661
4629
|
|
|
4630
|
+
interface BasePlan extends Omit<V1Beta1Plan, 'title'> {
|
|
4631
|
+
features?: Record<string, string>;
|
|
4632
|
+
title: string;
|
|
4633
|
+
}
|
|
4634
|
+
|
|
4635
|
+
interface FrontierClientBillingOptions {
|
|
4636
|
+
supportEmail?: string;
|
|
4637
|
+
successUrl?: string;
|
|
4638
|
+
cancelUrl?: string;
|
|
4639
|
+
hideDecimals?: boolean;
|
|
4640
|
+
cancelAfterTrial?: boolean;
|
|
4641
|
+
showPerMonthPrice?: boolean;
|
|
4642
|
+
tokenProductId?: string;
|
|
4643
|
+
basePlan?: BasePlan;
|
|
4644
|
+
}
|
|
4645
|
+
interface FrontierClientOptions {
|
|
4646
|
+
theme?: 'dark' | 'light';
|
|
4647
|
+
endpoint?: string;
|
|
4648
|
+
redirectSignup?: string;
|
|
4649
|
+
redirectLogin?: string;
|
|
4650
|
+
redirectMagicLinkVerify?: string;
|
|
4651
|
+
callbackUrl?: string;
|
|
4652
|
+
dateFormat?: string;
|
|
4653
|
+
shortDateFormat?: string;
|
|
4654
|
+
billing?: FrontierClientBillingOptions;
|
|
4655
|
+
messages?: {
|
|
4656
|
+
billing?: {
|
|
4657
|
+
plan_change?: Record<string, string>;
|
|
4658
|
+
};
|
|
4659
|
+
};
|
|
4660
|
+
}
|
|
4661
|
+
interface InitialState {
|
|
4662
|
+
sessionId?: string | null;
|
|
4663
|
+
}
|
|
4664
|
+
interface FrontierProviderProps {
|
|
4665
|
+
config: FrontierClientOptions;
|
|
4666
|
+
children: React.ReactNode;
|
|
4667
|
+
initialState?: InitialState;
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4662
4670
|
interface FrontierContextProviderProps {
|
|
4663
4671
|
config: FrontierClientOptions;
|
|
4664
4672
|
client: V1Beta1<unknown> | undefined;
|
|
@@ -4693,6 +4701,7 @@ interface FrontierContextProviderProps {
|
|
|
4693
4701
|
setIsActivePlanLoading: Dispatch<SetStateAction<boolean>>;
|
|
4694
4702
|
fetchActiveSubsciption: () => Promise<V1Beta1Subscription | undefined>;
|
|
4695
4703
|
paymentMethod: V1Beta1PaymentMethod | undefined;
|
|
4704
|
+
basePlan?: V1Beta1Plan;
|
|
4696
4705
|
}
|
|
4697
4706
|
declare function useFrontier(): FrontierContextProviderProps;
|
|
4698
4707
|
|
|
@@ -4701,4 +4710,4 @@ declare const FrontierProvider: {
|
|
|
4701
4710
|
displayName: string;
|
|
4702
4711
|
};
|
|
4703
4712
|
|
|
4704
|
-
export { Amount, AvatarUpload, Container, CreateOrganization, FrontierProvider, Header, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
|
|
4713
|
+
export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
|