@raystack/frontier 0.70.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.70.1",
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",
@@ -88,7 +94,11 @@
88
94
  "typescript": "^5.8.3"
89
95
  },
90
96
  "dependencies": {
97
+ "@connectrpc/connect-query": "^2.1.1",
98
+ "@connectrpc/connect-web": "^2.0.2",
91
99
  "@hookform/resolvers": "^3.10.0",
100
+ "@raystack/proton": "0.1.0-881c92a4cab2490e6c680462a94660b551b1040f",
101
+ "@tanstack/react-query": "^5.83.0",
92
102
  "@tanstack/react-router": "1.58.17",
93
103
  "axios": "^1.9.0",
94
104
  "class-variance-authority": "^0.7.1",
@@ -5467,11 +5467,29 @@ interface FrontierClientBillingOptions {
5467
5467
  tokenProductId?: string;
5468
5468
  basePlan?: BasePlan;
5469
5469
  }
5470
- interface FrontierClientAPIPlatformOptions {
5471
- appName?: string;
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
- apiPlatform?: FrontierClientAPIPlatformOptions;
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 };