@raystack/frontier 0.8.15 → 0.8.18

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.8.15",
3
+ "version": "0.8.18",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -16,10 +16,11 @@
16
16
  "dev": "tsup --watch src",
17
17
  "size": "size-limit",
18
18
  "lint": "eslint \"./**/*.ts*\"",
19
+ "bump-version": "node scripts/bump-version.js",
19
20
  "release:ci": "release-it --ci --no-increment --npm.ignoreVersion",
20
21
  "release:dry": "release-it --dry-run --npm.ignoreVersion",
21
22
  "release": "release-it",
22
- "test": "echo \"Error: no test specified\" && exit 0",
23
+ "test": "jest",
23
24
  "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
24
25
  },
25
26
  "author": "pyadav9678@gmail.com",
@@ -51,10 +52,12 @@
51
52
  }
52
53
  },
53
54
  "devDependencies": {
55
+ "@jest/globals": "^29.7.0",
54
56
  "@radix-ui/react-icons": "^1.3.0",
55
57
  "@raystack/frontier-tsconfig": "workspace:^",
56
58
  "@size-limit/preset-small-lib": "^8.2.6",
57
59
  "@tanstack/react-table": "^8.10.1",
60
+ "@types/jest": "^29.5.11",
58
61
  "@types/lodash": "^4.14.202",
59
62
  "@types/node": "^20.6.3",
60
63
  "@types/react": "^18.2.22",
@@ -63,25 +66,30 @@
63
66
  "esbuild-plugin-external-global": "^1.0.1",
64
67
  "eslint": "^7.32.0",
65
68
  "eslint-config-frontier": "workspace:^",
69
+ "jest": "^29.7.0",
66
70
  "np": "^7.7.0",
67
71
  "prettier": "^2.8.8",
68
72
  "release-it": "^16.2.1",
73
+ "semver": "^7.5.4",
69
74
  "size-limit": "^8.2.6",
70
75
  "swagger-typescript-api": "^13.0.3",
76
+ "ts-jest": "^29.1.1",
71
77
  "tsup": "^6.7.0",
72
78
  "typescript": "^5.2.2"
73
79
  },
74
80
  "dependencies": {
75
81
  "@hookform/resolvers": "^3.3.1",
76
- "@raystack/apsara": "^0.11.7",
82
+ "@raystack/apsara": "^0.11.9",
77
83
  "@tanstack/react-router": "0.0.1-beta.194",
78
84
  "axios": "^1.5.0",
79
85
  "class-variance-authority": "^0.7.0",
80
86
  "dayjs": "^1.11.10",
81
87
  "lodash": "^4.17.21",
88
+ "query-string": "^8.1.0",
82
89
  "react-hook-form": "^7.46.2",
83
90
  "react-image-crop": "^10.1.8",
84
91
  "react-loading-skeleton": "^3.3.1",
92
+ "slugify": "^1.6.6",
85
93
  "sonner": "^0.6.2",
86
94
  "yup": "^1.2.0"
87
95
  },
@@ -192,7 +192,10 @@ declare const router: Router<Route<any, "/", "/", string, "__root__", _tanstack_
192
192
  }, _tanstack_react_router.RouteContext, {
193
193
  organizationId: string;
194
194
  tempShowBilling?: boolean | undefined;
195
- }, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>[], _tanstack_react_router.AnyRoute>)[], any>, Record<string, any>>;
195
+ }, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>[], _tanstack_react_router.AnyRoute> | Route<_tanstack_react_router.RootRoute<_tanstack_react_router.AnyContext, unknown, {}, _tanstack_react_router.RouteContext, Pick<OrganizationProfileProps, "organizationId" | "tempShowBilling">>, "/plans", "/plans", string, "/plans", {}, unknown, {}, {}, {}, {}, _tanstack_react_router.RouteContext, {
196
+ organizationId: string;
197
+ tempShowBilling?: boolean | undefined;
198
+ }, _tanstack_react_router.AnyContext, unknown, _tanstack_react_router.AnyRoute>)[], any>, Record<string, any>>;
196
199
  declare const OrganizationProfile: ({ organizationId, defaultRoute, tempShowBilling }: OrganizationProfileProps) => react_jsx_runtime.JSX.Element;
197
200
  declare module '@tanstack/react-router' {
198
201
  interface Register {
@@ -209,6 +212,8 @@ declare const Window: ({ open, onOpenChange, children, ...props }: WindowProps)
209
212
 
210
213
  interface FrontierClientBillingOptions {
211
214
  supportEmail?: string;
215
+ successUrl?: string;
216
+ cancelUrl?: string;
212
217
  }
213
218
  interface FrontierClientOptions {
214
219
  endpoint?: string;
@@ -3721,6 +3726,12 @@ interface FrontierContextProviderProps {
3721
3726
  setIsUserLoading: Dispatch<SetStateAction<boolean>>;
3722
3727
  billingAccount: V1Beta1BillingAccount | undefined;
3723
3728
  setBillingAccount: Dispatch<SetStateAction<V1Beta1BillingAccount | undefined>>;
3729
+ isBillingAccountLoading: boolean;
3730
+ setIsBillingAccountLoading: Dispatch<SetStateAction<boolean>>;
3731
+ activeSubscription: V1Beta1Subscription | undefined;
3732
+ setActiveSubscription: Dispatch<SetStateAction<V1Beta1Subscription | undefined>>;
3733
+ isActiveSubscriptionLoading: boolean;
3734
+ setIsActiveSubscriptionLoading: Dispatch<SetStateAction<boolean>>;
3724
3735
  }
3725
3736
  declare function useFrontier(): FrontierContextProviderProps;
3726
3737