@raystack/frontier 0.90.0 → 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/admin/dist/index.d.ts +81 -2
- package/admin/dist/index.js +18295 -258
- package/admin/dist/index.mjs +18598 -258
- package/package.json +13 -7
- package/react/dist/index.d.ts +8 -2
- package/react/dist/index.js +188 -173
- package/react/dist/index.mjs +189 -174
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.1-test4",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -66,11 +66,13 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@jest/globals": "^29.7.0",
|
|
69
|
+
"@radix-ui/react-form": "^0.0.2",
|
|
69
70
|
"@radix-ui/react-icons": "^1.3.2",
|
|
70
|
-
"@raystack/apsara": "^0.56.
|
|
71
|
+
"@raystack/apsara": "^0.56.2",
|
|
71
72
|
"@raystack/eslint-config": "workspace:^",
|
|
72
73
|
"@raystack/frontier-tsconfig": "workspace:^",
|
|
73
74
|
"@size-limit/preset-small-lib": "^8.2.6",
|
|
75
|
+
"@stitches/react": "^1.2.8",
|
|
74
76
|
"@types/jest": "^29.5.14",
|
|
75
77
|
"@types/lodash": "^4.17.17",
|
|
76
78
|
"@types/node": "^20.19.0",
|
|
@@ -85,20 +87,24 @@
|
|
|
85
87
|
"np": "^7.7.0",
|
|
86
88
|
"patch-package": "^8.0.1",
|
|
87
89
|
"prettier": "^2.8.8",
|
|
90
|
+
"react-loading-skeleton": "^3.4.0",
|
|
88
91
|
"release-it": "^16.3.0",
|
|
89
92
|
"semver": "^7.7.2",
|
|
90
93
|
"size-limit": "^8.2.6",
|
|
94
|
+
"sonner": "^1.4.41",
|
|
91
95
|
"ts-jest": "^29.3.4",
|
|
92
96
|
"tsup": "^6.7.0",
|
|
93
|
-
"typescript": "^5.8.3"
|
|
97
|
+
"typescript": "^5.8.3",
|
|
98
|
+
"usehooks-ts": "^3.1.1",
|
|
99
|
+
"zod": "^3.22.3"
|
|
94
100
|
},
|
|
95
101
|
"dependencies": {
|
|
96
102
|
"@bufbuild/protobuf": "^2.11.0",
|
|
97
103
|
"@connectrpc/connect": "^2.0.2",
|
|
98
|
-
"@connectrpc/connect-query": "
|
|
104
|
+
"@connectrpc/connect-query": "2.1.1",
|
|
99
105
|
"@connectrpc/connect-web": "^2.0.2",
|
|
100
106
|
"@hookform/resolvers": "^3.10.0",
|
|
101
|
-
"@raystack/proton": "0.1.0-
|
|
107
|
+
"@raystack/proton": "0.1.0-330c7558f34570056814d418f99730fb45cfe80f",
|
|
102
108
|
"@tanstack/react-query": "^5.83.0",
|
|
103
109
|
"@tanstack/react-router": "1.58.17",
|
|
104
110
|
"axios": "^1.9.0",
|
|
@@ -116,13 +122,13 @@
|
|
|
116
122
|
"peerDependencies": {
|
|
117
123
|
"@raystack/apsara": ">=0.30.0",
|
|
118
124
|
"react": "^18.2.0",
|
|
119
|
-
"react-
|
|
125
|
+
"react-dom": "^18.2.0"
|
|
120
126
|
},
|
|
121
127
|
"peerDependenciesMeta": {
|
|
122
128
|
"react": {
|
|
123
129
|
"optional": true
|
|
124
130
|
},
|
|
125
|
-
"react-
|
|
131
|
+
"react-dom": {
|
|
126
132
|
"optional": true
|
|
127
133
|
},
|
|
128
134
|
"svelte": {
|
package/react/dist/index.d.ts
CHANGED
|
@@ -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 {
|