@raystack/frontier 0.71.0 → 0.72.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 +8 -2
- package/react/dist/index.d.ts +28 -11
- package/react/dist/index.js +1759 -1663
- package/react/dist/index.mjs +1241 -1153
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,6 +52,12 @@
|
|
|
52
52
|
"module": "./react/dist/index.mjs",
|
|
53
53
|
"require": "./react/dist/index.js"
|
|
54
54
|
},
|
|
55
|
+
"./hooks": {
|
|
56
|
+
"types": "./hooks/dist/index.d.ts",
|
|
57
|
+
"import": "./hooks/dist/index.mjs",
|
|
58
|
+
"module": "./hooks/dist/index.mjs",
|
|
59
|
+
"require": "./hooks/dist/index.js"
|
|
60
|
+
},
|
|
55
61
|
"./api-client": {
|
|
56
62
|
"types": "./api-client/dist/index.d.ts",
|
|
57
63
|
"import": "./api-client/dist/index.mjs",
|
|
@@ -91,7 +97,7 @@
|
|
|
91
97
|
"@connectrpc/connect-query": "^2.1.1",
|
|
92
98
|
"@connectrpc/connect-web": "^2.0.2",
|
|
93
99
|
"@hookform/resolvers": "^3.10.0",
|
|
94
|
-
"@raystack/proton": "0.1.0-
|
|
100
|
+
"@raystack/proton": "0.1.0-881c92a4cab2490e6c680462a94660b551b1040f",
|
|
95
101
|
"@tanstack/react-query": "^5.83.0",
|
|
96
102
|
"@tanstack/react-router": "1.58.17",
|
|
97
103
|
"axios": "^1.9.0",
|
package/react/dist/index.d.ts
CHANGED
|
@@ -5467,11 +5467,29 @@ interface FrontierClientBillingOptions {
|
|
|
5467
5467
|
tokenProductId?: string;
|
|
5468
5468
|
basePlan?: BasePlan;
|
|
5469
5469
|
}
|
|
5470
|
-
interface
|
|
5471
|
-
|
|
5470
|
+
interface EntityTerminologies {
|
|
5471
|
+
singular: string;
|
|
5472
|
+
plural: string;
|
|
5473
|
+
}
|
|
5474
|
+
interface FrontierClientCustomizationOptions {
|
|
5475
|
+
terminology?: {
|
|
5476
|
+
organization?: EntityTerminologies;
|
|
5477
|
+
project?: EntityTerminologies;
|
|
5478
|
+
team?: EntityTerminologies;
|
|
5479
|
+
member?: EntityTerminologies;
|
|
5480
|
+
user?: EntityTerminologies;
|
|
5481
|
+
appName?: string;
|
|
5482
|
+
};
|
|
5483
|
+
messages?: {
|
|
5484
|
+
billing?: {
|
|
5485
|
+
plan_change?: Record<string, string>;
|
|
5486
|
+
};
|
|
5487
|
+
general?: Record<string, string>;
|
|
5488
|
+
};
|
|
5472
5489
|
}
|
|
5473
5490
|
interface FrontierClientOptions {
|
|
5474
5491
|
endpoint: string;
|
|
5492
|
+
connectEndpoint?: string;
|
|
5475
5493
|
redirectSignup?: string;
|
|
5476
5494
|
redirectLogin?: string;
|
|
5477
5495
|
redirectMagicLinkVerify?: string;
|
|
@@ -5479,12 +5497,7 @@ interface FrontierClientOptions {
|
|
|
5479
5497
|
dateFormat?: string;
|
|
5480
5498
|
shortDateFormat?: string;
|
|
5481
5499
|
billing?: FrontierClientBillingOptions;
|
|
5482
|
-
|
|
5483
|
-
messages?: {
|
|
5484
|
-
billing?: {
|
|
5485
|
-
plan_change?: Record<string, string>;
|
|
5486
|
-
};
|
|
5487
|
-
};
|
|
5500
|
+
customization?: FrontierClientCustomizationOptions;
|
|
5488
5501
|
}
|
|
5489
5502
|
interface InitialState {
|
|
5490
5503
|
sessionId?: string | null;
|
|
@@ -5504,8 +5517,6 @@ interface FrontierContextProviderProps {
|
|
|
5504
5517
|
setOrganizations: Dispatch<SetStateAction<V1Beta1Organization[]>>;
|
|
5505
5518
|
groups: V1Beta1Group[];
|
|
5506
5519
|
setGroups: Dispatch<SetStateAction<V1Beta1Group[]>>;
|
|
5507
|
-
strategies: V1Beta1AuthStrategy[];
|
|
5508
|
-
setStrategies: Dispatch<SetStateAction<V1Beta1AuthStrategy[]>>;
|
|
5509
5520
|
user: V1Beta1User | undefined;
|
|
5510
5521
|
setUser: Dispatch<SetStateAction<V1Beta1User | undefined>>;
|
|
5511
5522
|
activeOrganization: V1Beta1Organization | undefined;
|
|
@@ -5548,6 +5559,12 @@ declare const FrontierProvider: {
|
|
|
5548
5559
|
displayName: string;
|
|
5549
5560
|
};
|
|
5550
5561
|
|
|
5562
|
+
interface CustomizationProviderProps {
|
|
5563
|
+
children: ReactNode$1;
|
|
5564
|
+
config?: FrontierClientCustomizationOptions;
|
|
5565
|
+
}
|
|
5566
|
+
declare const CustomizationProvider: React.FC<CustomizationProviderProps>;
|
|
5567
|
+
|
|
5551
5568
|
declare const useTokens: () => {
|
|
5552
5569
|
tokenBalance: number;
|
|
5553
5570
|
isTokensLoading: boolean;
|
|
@@ -5581,4 +5598,4 @@ declare const PREFERENCE_OPTIONS: {
|
|
|
5581
5598
|
readonly NEWSLETTER: "newsletter";
|
|
5582
5599
|
};
|
|
5583
5600
|
|
|
5584
|
-
export { AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Updates, Window, useBillingPermission, useFrontier, usePreferences, useTokens };
|
|
5601
|
+
export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Updates, Window, useBillingPermission, useFrontier, usePreferences, useTokens };
|