@raystack/frontier 0.38.0 → 0.39.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.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@jest/globals": "^29.7.0",
63
63
  "@radix-ui/react-icons": "^1.3.0",
64
- "@raystack/apsara": "^0.23.0",
64
+ "@raystack/apsara": "^0.25.0",
65
65
  "@raystack/eslint-config": "workspace:^",
66
66
  "@raystack/frontier-tsconfig": "workspace:^",
67
67
  "@size-limit/preset-small-lib": "^8.2.6",
@@ -148,7 +148,11 @@ declare const router: _tanstack_react_router.Router<_tanstack_react_router.RootR
148
148
  customRoutes: CustomRoutes;
149
149
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/tokens", "/tokens", string, "/tokens", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, _tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
150
150
  customRoutes: CustomRoutes;
151
- }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys", "/api-keys", string, "/api-keys", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, ..._tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
151
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys", "/api-keys", string, "/api-keys", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, readonly [_tanstack_react_router.Route<_tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
152
+ customRoutes: CustomRoutes;
153
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys", "/api-keys", string, "/api-keys", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/add", "/api-keys/add", string, "/api-keys/add", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>]>, _tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
154
+ customRoutes: CustomRoutes;
155
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys/$id", "/api-keys/$id", string, "/api-keys/$id", undefined, Record<"id", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, ..._tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
152
156
  customRoutes: CustomRoutes;
153
157
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, string, "/", string, "__root__", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>[]], unknown>, _tanstack_react_router.TrailingSlashOption, Record<string, any>, Record<string, any>>;
154
158
  declare const OrganizationProfile: ({ organizationId, defaultRoute, showBilling, showTokens, showAPIKeys, showPreferences, hideToast, customScreens }: OrganizationProfileProps) => react_jsx_runtime.JSX.Element;
@@ -4545,9 +4549,14 @@ declare const useTokens: () => {
4545
4549
  isTokensLoading: boolean;
4546
4550
  };
4547
4551
 
4552
+ declare const useBillingPermission: () => {
4553
+ isFetching: boolean;
4554
+ isAllowed: boolean;
4555
+ };
4556
+
4548
4557
  interface LayoutProps {
4549
4558
  title: string;
4550
4559
  }
4551
4560
  declare function Layout({ title, children }: PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
4552
4561
 
4553
- export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier, useTokens };
4562
+ export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useBillingPermission, useFrontier, useTokens };