@raystack/frontier 0.89.3-test4 → 0.91.1-test4

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.89.3-test4",
3
+ "version": "0.91.1-test4",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -10,6 +10,7 @@
10
10
  "dist/**/*",
11
11
  "react/dist/**/*",
12
12
  "hooks/dist/**/*",
13
+ "admin/dist/**/*",
13
14
  "README.md"
14
15
  ],
15
16
  "scripts": {
@@ -55,15 +56,23 @@
55
56
  "import": "./hooks/dist/index.mjs",
56
57
  "module": "./hooks/dist/index.mjs",
57
58
  "require": "./hooks/dist/index.js"
59
+ },
60
+ "./admin": {
61
+ "types": "./admin/dist/index.d.ts",
62
+ "import": "./admin/dist/index.mjs",
63
+ "module": "./admin/dist/index.mjs",
64
+ "require": "./admin/dist/index.js"
58
65
  }
59
66
  },
60
67
  "devDependencies": {
61
68
  "@jest/globals": "^29.7.0",
69
+ "@radix-ui/react-form": "^0.0.2",
62
70
  "@radix-ui/react-icons": "^1.3.2",
63
- "@raystack/apsara": "^0.52.0",
71
+ "@raystack/apsara": "^0.56.2",
64
72
  "@raystack/eslint-config": "workspace:^",
65
73
  "@raystack/frontier-tsconfig": "workspace:^",
66
74
  "@size-limit/preset-small-lib": "^8.2.6",
75
+ "@stitches/react": "^1.2.8",
67
76
  "@types/jest": "^29.5.14",
68
77
  "@types/lodash": "^4.17.17",
69
78
  "@types/node": "^20.19.0",
@@ -78,20 +87,24 @@
78
87
  "np": "^7.7.0",
79
88
  "patch-package": "^8.0.1",
80
89
  "prettier": "^2.8.8",
90
+ "react-loading-skeleton": "^3.4.0",
81
91
  "release-it": "^16.3.0",
82
92
  "semver": "^7.7.2",
83
93
  "size-limit": "^8.2.6",
94
+ "sonner": "^1.4.41",
84
95
  "ts-jest": "^29.3.4",
85
96
  "tsup": "^6.7.0",
86
- "typescript": "^5.8.3"
97
+ "typescript": "^5.8.3",
98
+ "usehooks-ts": "^3.1.1",
99
+ "zod": "^3.22.3"
87
100
  },
88
101
  "dependencies": {
89
102
  "@bufbuild/protobuf": "^2.11.0",
90
103
  "@connectrpc/connect": "^2.0.2",
91
- "@connectrpc/connect-query": "^2.1.1",
104
+ "@connectrpc/connect-query": "2.1.1",
92
105
  "@connectrpc/connect-web": "^2.0.2",
93
106
  "@hookform/resolvers": "^3.10.0",
94
- "@raystack/proton": "0.1.0-b1687af73f994fa9612a023c850aa97c35735af8",
107
+ "@raystack/proton": "0.1.0-330c7558f34570056814d418f99730fb45cfe80f",
95
108
  "@tanstack/react-query": "^5.83.0",
96
109
  "@tanstack/react-router": "1.58.17",
97
110
  "axios": "^1.9.0",
@@ -108,12 +121,16 @@
108
121
  },
109
122
  "peerDependencies": {
110
123
  "@raystack/apsara": ">=0.30.0",
111
- "react": "^18.2.0"
124
+ "react": "^18.2.0",
125
+ "react-dom": "^18.2.0"
112
126
  },
113
127
  "peerDependenciesMeta": {
114
128
  "react": {
115
129
  "optional": true
116
130
  },
131
+ "react-dom": {
132
+ "optional": true
133
+ },
117
134
  "svelte": {
118
135
  "optional": true
119
136
  },
@@ -5,7 +5,7 @@ import { ReactNode, RouteComponent } from '@tanstack/react-router';
5
5
  import * as yup from 'yup';
6
6
  import { Plan, Organization, Group, User, BillingAccount, Subscription, PaymentMethod, OrganizationKyc, BillingAccountDetails } from '@raystack/proton/frontier';
7
7
  import { ThemeProviderProps } from '@raystack/apsara';
8
- import { QueryClient, UseQueryResult } from '@tanstack/react-query';
8
+ import { QueryClient, UseQueryResult, UseMutationResult } from '@tanstack/react-query';
9
9
  import { ConnectError } from '@connectrpc/connect';
10
10
  import { DescMessage, MessageShape, DescMethodUnary, MessageInitShape } from '@bufbuild/protobuf';
11
11
  import { Timestamp } from '@bufbuild/protobuf/wkt';
@@ -401,6 +401,8 @@ declare function useConnectQueryPolling<I extends DescMessage, O extends DescMes
401
401
  type Preference = {
402
402
  name?: string;
403
403
  value?: string;
404
+ scopeType?: string;
405
+ scopeId?: string;
404
406
  [key: string]: any;
405
407
  };
406
408
  type Preferences = Record<string, Preference>;
@@ -411,9 +413,13 @@ interface UsePreferences {
411
413
  status: 'idle' | 'fetching' | 'loading';
412
414
  fetchPreferences: () => void;
413
415
  updatePreferences: (preferences: Preference[]) => Promise<void>;
416
+ fetchPreferencesStatus: UseQueryResult['status'];
417
+ updatePreferencesStatus: UseMutationResult['status'];
414
418
  }
415
- declare function usePreferences({ autoFetch }?: {
419
+ declare function usePreferences({ autoFetch, scopeType, scopeId }?: {
416
420
  autoFetch?: boolean;
421
+ scopeType?: string;
422
+ scopeId?: string;
417
423
  }): UsePreferences;
418
424
 
419
425
  interface LayoutProps {