wcz-test 6.7.3 → 6.7.5
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/dist/{chunk-6E3FH46P.js → chunk-2ROTNT7W.js} +2 -1
- package/dist/chunk-2ROTNT7W.js.map +1 -0
- package/dist/{chunk-Y2SJVB7N.js → chunk-MIVD2XWB.js} +2 -2
- package/dist/client-utils.d.ts +74 -72
- package/dist/client-utils.js +1 -1
- package/dist/components.js +2 -2
- package/dist/hooks.d.ts +29 -1
- package/dist/hooks.js +140 -30
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/queries.js +2 -2
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.js.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vite.d.ts +2 -11
- package/dist/vite.js +38 -11
- package/dist/vite.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-6E3FH46P.js.map +0 -1
- /package/dist/{chunk-Y2SJVB7N.js.map → chunk-MIVD2XWB.js.map} +0 -0
|
@@ -34,6 +34,7 @@ var rootRouteHead = () => ({
|
|
|
34
34
|
{ rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png" },
|
|
35
35
|
{ rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon-32x32.png" },
|
|
36
36
|
{ rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon-16x16.png" },
|
|
37
|
+
{ rel: "manifest", href: "/manifest.webmanifest" },
|
|
37
38
|
{ rel: "icon", href: "/favicon.ico" }
|
|
38
39
|
]
|
|
39
40
|
});
|
|
@@ -59,4 +60,4 @@ export {
|
|
|
59
60
|
getFieldStatus,
|
|
60
61
|
toKebabCase
|
|
61
62
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-2ROTNT7W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts"],"sourcesContent":["import axios from \"axios\";\r\nimport type { AnyFieldApi } from \"@tanstack/react-form\";\r\nimport { clientEnv } from \"~/env\";\r\n\r\nexport class Platform {\r\n static get isAndroid() { return /android/i.test(this.userAgent); }\r\n static get isIOS() { return /iPad|iPhone|iPod/.test(this.userAgent); }\r\n static get isWindows() { return /windows/i.test(this.userAgent); }\r\n static get isMacOS() { return /Macintosh|MacIntel|MacPPC|Mac68K/.test(this.userAgent); }\r\n\r\n private static get userAgent() { return typeof navigator === \"undefined\" ? \"\" : navigator.userAgent; }\r\n}\r\n\r\nexport const rootRouteHead = () => ({\r\n meta: [\r\n { charSet: \"utf-8\" },\r\n { name: \"viewport\", content: \"width=device-width, initial-scale=1\" },\r\n { title: clientEnv.VITE_APP_TITLE },\r\n { name: \"og:type\", content: \"website\" },\r\n { name: \"og:title\", content: clientEnv.VITE_APP_TITLE },\r\n { name: \"og:image\", content: \"/favicon-32x32.png\" }\r\n ],\r\n links: [\r\n { rel: \"apple-touch-icon\", sizes: \"180x180\", href: \"/apple-touch-icon.png\", },\r\n { rel: \"icon\", type: \"image/png\", sizes: \"32x32\", href: \"/favicon-32x32.png\", },\r\n { rel: \"icon\", type: \"image/png\", sizes: \"16x16\", href: \"/favicon-16x16.png\", },\r\n { rel: \"manifest\", href: \"/manifest.webmanifest\" },\r\n { rel: \"icon\", href: \"/favicon.ico\" },\r\n ],\r\n});\r\n\r\nexport const httpClient = axios.create({\r\n baseURL: clientEnv.VITE_API_URL // TODO: Not working in children projects\r\n});\r\n\r\n/* Internal Utils */\r\nexport type FormOmittedProps =\r\n \"name\" |\r\n \"value\" |\r\n \"onChange\" |\r\n \"onBlur\" |\r\n \"error\" |\r\n \"helperText\" |\r\n \"renderInput\" |\r\n \"type\" |\r\n \"aria-label\";\r\n\r\nexport const getFieldStatus = (field: AnyFieldApi) => {\r\n const { meta } = field.state;\r\n\r\n const isTouched = meta.isTouched;\r\n const hasError = !!meta.errors.length;\r\n const helperText = meta.errors[0]?.message;\r\n\r\n return { isTouched, hasError, helperText };\r\n};\r\n\r\nexport const toKebabCase = (str: string): string => {\r\n return str\r\n .replaceAll(/([a-z])([A-Z])/g, \"$1-$2\")\r\n .replaceAll(/[\\s_]+/g, \"-\")\r\n .replaceAll(/[^a-zA-Z0-9-]/g, \"\")\r\n .toLowerCase()\r\n .replaceAll(/-+/g, \"-\")\r\n .replaceAll(/(^-|-$)/g, \"\");\r\n};\r\n"],"mappings":";;;;;AAAA,OAAO,WAAW;AAIX,IAAM,WAAN,MAAe;AAAA,EAClB,WAAW,YAAY;AAAE,WAAO,WAAW,KAAK,KAAK,SAAS;AAAA,EAAG;AAAA,EACjE,WAAW,QAAQ;AAAE,WAAO,mBAAmB,KAAK,KAAK,SAAS;AAAA,EAAG;AAAA,EACrE,WAAW,YAAY;AAAE,WAAO,WAAW,KAAK,KAAK,SAAS;AAAA,EAAG;AAAA,EACjE,WAAW,UAAU;AAAE,WAAO,mCAAmC,KAAK,KAAK,SAAS;AAAA,EAAG;AAAA,EAEvF,WAAmB,YAAY;AAAE,WAAO,OAAO,cAAc,cAAc,KAAK,UAAU;AAAA,EAAW;AACzG;AAEO,IAAM,gBAAgB,OAAO;AAAA,EAChC,MAAM;AAAA,IACF,EAAE,SAAS,QAAQ;AAAA,IACnB,EAAE,MAAM,YAAY,SAAS,sCAAsC;AAAA,IACnE,EAAE,OAAO,UAAU,eAAe;AAAA,IAClC,EAAE,MAAM,WAAW,SAAS,UAAU;AAAA,IACtC,EAAE,MAAM,YAAY,SAAS,UAAU,eAAe;AAAA,IACtD,EAAE,MAAM,YAAY,SAAS,qBAAqB;AAAA,EACtD;AAAA,EACA,OAAO;AAAA,IACH,EAAE,KAAK,oBAAoB,OAAO,WAAW,MAAM,wBAAyB;AAAA,IAC5E,EAAE,KAAK,QAAQ,MAAM,aAAa,OAAO,SAAS,MAAM,qBAAsB;AAAA,IAC9E,EAAE,KAAK,QAAQ,MAAM,aAAa,OAAO,SAAS,MAAM,qBAAsB;AAAA,IAC9E,EAAE,KAAK,YAAY,MAAM,wBAAwB;AAAA,IACjD,EAAE,KAAK,QAAQ,MAAM,eAAe;AAAA,EACxC;AACJ;AAEO,IAAM,aAAa,MAAM,OAAO;AAAA,EACnC,SAAS,UAAU;AAAA;AACvB,CAAC;AAcM,IAAM,iBAAiB,CAAC,UAAuB;AAClD,QAAM,EAAE,KAAK,IAAI,MAAM;AAEvB,QAAM,YAAY,KAAK;AACvB,QAAM,WAAW,CAAC,CAAC,KAAK,OAAO;AAC/B,QAAM,aAAa,KAAK,OAAO,CAAC,GAAG;AAEnC,SAAO,EAAE,WAAW,UAAU,WAAW;AAC7C;AAEO,IAAM,cAAc,CAAC,QAAwB;AAChD,SAAO,IACF,WAAW,mBAAmB,OAAO,EACrC,WAAW,WAAW,GAAG,EACzB,WAAW,kBAAkB,EAAE,EAC/B,YAAY,EACZ,WAAW,OAAO,GAAG,EACrB,WAAW,YAAY,EAAE;AAClC;","names":[]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
httpClient,
|
|
6
6
|
toKebabCase
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2ROTNT7W.js";
|
|
8
8
|
import {
|
|
9
9
|
clientEnv
|
|
10
10
|
} from "./chunk-DXXZZHAK.js";
|
|
@@ -202,4 +202,4 @@ export {
|
|
|
202
202
|
useDeleteFiles,
|
|
203
203
|
useUploadFile
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=chunk-
|
|
205
|
+
//# sourceMappingURL=chunk-MIVD2XWB.js.map
|
package/dist/client-utils.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ export { P as Platform } from './utils-ChipkRJ9.js';
|
|
|
2
2
|
export { t } from 'i18next';
|
|
3
3
|
export { useTranslation } from 'react-i18next';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
|
5
|
+
import * as node_modules_better_auth_dist_index__CrC0_x3_d_mts from 'node_modules/better-auth/dist/index--CrC0_x3.d.mts';
|
|
6
|
+
import * as _better_auth_core_oauth2 from '@better-auth/core/oauth2';
|
|
5
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
+
import * as better_auth_react from 'better-auth/react';
|
|
9
|
+
import * as _better_auth_core from '@better-auth/core';
|
|
8
10
|
import 'axios';
|
|
9
11
|
import 'uuidv7';
|
|
10
12
|
import '@t3-oss/env-core';
|
|
@@ -14,8 +16,8 @@ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
|
14
16
|
|
|
15
17
|
declare const authClient: {
|
|
16
18
|
signIn: {
|
|
17
|
-
social: <FetchOptions extends
|
|
18
|
-
provider:
|
|
19
|
+
social: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
20
|
+
provider: (string & {}) | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
19
21
|
callbackURL?: string | undefined;
|
|
20
22
|
newUserCallbackURL?: string | undefined;
|
|
21
23
|
errorCallbackURL?: string | undefined;
|
|
@@ -31,8 +33,8 @@ declare const authClient: {
|
|
|
31
33
|
requestSignUp?: boolean | undefined;
|
|
32
34
|
loginHint?: string | undefined;
|
|
33
35
|
additionalData?: Record<string, any> | undefined;
|
|
34
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
35
|
-
provider:
|
|
36
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
37
|
+
provider: (string & {}) | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
36
38
|
callbackURL?: string | undefined;
|
|
37
39
|
newUserCallbackURL?: string | undefined;
|
|
38
40
|
errorCallbackURL?: string | undefined;
|
|
@@ -51,28 +53,28 @@ declare const authClient: {
|
|
|
51
53
|
} & {
|
|
52
54
|
fetchOptions?: FetchOptions | undefined;
|
|
53
55
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
56
|
+
redirect: boolean;
|
|
57
|
+
url: string;
|
|
58
|
+
} | {
|
|
54
59
|
redirect: boolean;
|
|
55
60
|
token: string;
|
|
56
61
|
url: undefined;
|
|
57
62
|
user: {
|
|
58
63
|
id: string;
|
|
59
|
-
email: string;
|
|
60
|
-
name: string;
|
|
61
|
-
image: string | null | undefined;
|
|
62
|
-
emailVerified: boolean;
|
|
63
64
|
createdAt: Date;
|
|
64
65
|
updatedAt: Date;
|
|
66
|
+
email: string;
|
|
67
|
+
emailVerified: boolean;
|
|
68
|
+
name: string;
|
|
69
|
+
image?: string | null | undefined | undefined;
|
|
65
70
|
};
|
|
66
|
-
} | {
|
|
67
|
-
url: string;
|
|
68
|
-
redirect: boolean;
|
|
69
71
|
}>, {
|
|
70
72
|
code?: string | undefined;
|
|
71
73
|
message?: string | undefined;
|
|
72
74
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
73
75
|
};
|
|
74
76
|
} & {
|
|
75
|
-
signOut: <FetchOptions extends
|
|
77
|
+
signOut: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
76
78
|
query?: Record<string, any> | undefined;
|
|
77
79
|
fetchOptions?: FetchOptions | undefined;
|
|
78
80
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -83,14 +85,14 @@ declare const authClient: {
|
|
|
83
85
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
84
86
|
} & {
|
|
85
87
|
signUp: {
|
|
86
|
-
email: <FetchOptions extends
|
|
88
|
+
email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
87
89
|
name: string;
|
|
88
90
|
email: string;
|
|
89
91
|
password: string;
|
|
90
92
|
image?: string | undefined;
|
|
91
93
|
callbackURL?: string | undefined;
|
|
92
94
|
rememberMe?: boolean | undefined;
|
|
93
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
95
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
94
96
|
email: string;
|
|
95
97
|
name: string;
|
|
96
98
|
password: string;
|
|
@@ -101,23 +103,23 @@ declare const authClient: {
|
|
|
101
103
|
token: null;
|
|
102
104
|
user: {
|
|
103
105
|
id: string;
|
|
104
|
-
email: string;
|
|
105
|
-
name: string;
|
|
106
|
-
image: string | null | undefined;
|
|
107
|
-
emailVerified: boolean;
|
|
108
106
|
createdAt: Date;
|
|
109
107
|
updatedAt: Date;
|
|
108
|
+
email: string;
|
|
109
|
+
emailVerified: boolean;
|
|
110
|
+
name: string;
|
|
111
|
+
image?: string | null | undefined | undefined;
|
|
110
112
|
};
|
|
111
113
|
} | {
|
|
112
114
|
token: string;
|
|
113
115
|
user: {
|
|
114
116
|
id: string;
|
|
115
|
-
email: string;
|
|
116
|
-
name: string;
|
|
117
|
-
image: string | null | undefined;
|
|
118
|
-
emailVerified: boolean;
|
|
119
117
|
createdAt: Date;
|
|
120
118
|
updatedAt: Date;
|
|
119
|
+
email: string;
|
|
120
|
+
emailVerified: boolean;
|
|
121
|
+
name: string;
|
|
122
|
+
image?: string | null | undefined | undefined;
|
|
121
123
|
};
|
|
122
124
|
}>, {
|
|
123
125
|
code?: string | undefined;
|
|
@@ -126,12 +128,12 @@ declare const authClient: {
|
|
|
126
128
|
};
|
|
127
129
|
} & {
|
|
128
130
|
signIn: {
|
|
129
|
-
email: <FetchOptions extends
|
|
131
|
+
email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
130
132
|
email: string;
|
|
131
133
|
password: string;
|
|
132
134
|
callbackURL?: string | undefined;
|
|
133
135
|
rememberMe?: boolean | undefined;
|
|
134
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
136
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
135
137
|
email: string;
|
|
136
138
|
password: string;
|
|
137
139
|
callbackURL?: string | undefined;
|
|
@@ -141,15 +143,15 @@ declare const authClient: {
|
|
|
141
143
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
142
144
|
redirect: boolean;
|
|
143
145
|
token: string;
|
|
144
|
-
url
|
|
146
|
+
url?: string | undefined;
|
|
145
147
|
user: {
|
|
146
148
|
id: string;
|
|
147
|
-
email: string;
|
|
148
|
-
name: string;
|
|
149
|
-
image: string | null | undefined;
|
|
150
|
-
emailVerified: boolean;
|
|
151
149
|
createdAt: Date;
|
|
152
150
|
updatedAt: Date;
|
|
151
|
+
email: string;
|
|
152
|
+
emailVerified: boolean;
|
|
153
|
+
name: string;
|
|
154
|
+
image?: string | null | undefined | undefined;
|
|
153
155
|
};
|
|
154
156
|
}, {
|
|
155
157
|
code?: string | undefined;
|
|
@@ -157,12 +159,12 @@ declare const authClient: {
|
|
|
157
159
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
158
160
|
};
|
|
159
161
|
} & {
|
|
160
|
-
resetPassword: <FetchOptions extends
|
|
162
|
+
resetPassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
161
163
|
newPassword: string;
|
|
162
164
|
token?: string | undefined;
|
|
163
165
|
}> & Record<string, any>, Partial<{
|
|
164
166
|
token?: string | undefined;
|
|
165
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
167
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
166
168
|
newPassword: string;
|
|
167
169
|
token?: string | undefined;
|
|
168
170
|
} & {
|
|
@@ -174,10 +176,10 @@ declare const authClient: {
|
|
|
174
176
|
message?: string | undefined;
|
|
175
177
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
176
178
|
} & {
|
|
177
|
-
verifyEmail: <FetchOptions extends
|
|
179
|
+
verifyEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
178
180
|
token: string;
|
|
179
181
|
callbackURL?: string | undefined;
|
|
180
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
182
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
181
183
|
query: {
|
|
182
184
|
token: string;
|
|
183
185
|
callbackURL?: string | undefined;
|
|
@@ -190,10 +192,10 @@ declare const authClient: {
|
|
|
190
192
|
message?: string | undefined;
|
|
191
193
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
192
194
|
} & {
|
|
193
|
-
sendVerificationEmail: <FetchOptions extends
|
|
195
|
+
sendVerificationEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
194
196
|
email: string;
|
|
195
197
|
callbackURL?: string | undefined;
|
|
196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
198
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
197
199
|
email: string;
|
|
198
200
|
callbackURL?: string | undefined;
|
|
199
201
|
} & {
|
|
@@ -205,10 +207,10 @@ declare const authClient: {
|
|
|
205
207
|
message?: string | undefined;
|
|
206
208
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
207
209
|
} & {
|
|
208
|
-
changeEmail: <FetchOptions extends
|
|
210
|
+
changeEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
209
211
|
newEmail: string;
|
|
210
212
|
callbackURL?: string | undefined;
|
|
211
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
213
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
212
214
|
newEmail: string;
|
|
213
215
|
callbackURL?: string | undefined;
|
|
214
216
|
} & {
|
|
@@ -220,11 +222,11 @@ declare const authClient: {
|
|
|
220
222
|
message?: string | undefined;
|
|
221
223
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
222
224
|
} & {
|
|
223
|
-
changePassword: <FetchOptions extends
|
|
225
|
+
changePassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
224
226
|
newPassword: string;
|
|
225
227
|
currentPassword: string;
|
|
226
228
|
revokeOtherSessions?: boolean | undefined;
|
|
227
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
229
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
228
230
|
newPassword: string;
|
|
229
231
|
currentPassword: string;
|
|
230
232
|
revokeOtherSessions?: boolean | undefined;
|
|
@@ -246,10 +248,10 @@ declare const authClient: {
|
|
|
246
248
|
message?: string | undefined;
|
|
247
249
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
248
250
|
} & {
|
|
249
|
-
updateUser: <FetchOptions extends
|
|
251
|
+
updateUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<Partial<{}> & {
|
|
250
252
|
name?: string | undefined;
|
|
251
253
|
image?: string | undefined;
|
|
252
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
254
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
253
255
|
image?: (string | null) | undefined;
|
|
254
256
|
name?: string | undefined;
|
|
255
257
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -260,11 +262,11 @@ declare const authClient: {
|
|
|
260
262
|
message?: string | undefined;
|
|
261
263
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
262
264
|
} & {
|
|
263
|
-
deleteUser: <FetchOptions extends
|
|
265
|
+
deleteUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
264
266
|
callbackURL?: string | undefined;
|
|
265
267
|
password?: string | undefined;
|
|
266
268
|
token?: string | undefined;
|
|
267
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
269
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
268
270
|
callbackURL?: string | undefined;
|
|
269
271
|
password?: string | undefined;
|
|
270
272
|
token?: string | undefined;
|
|
@@ -278,10 +280,10 @@ declare const authClient: {
|
|
|
278
280
|
message?: string | undefined;
|
|
279
281
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
280
282
|
} & {
|
|
281
|
-
requestPasswordReset: <FetchOptions extends
|
|
283
|
+
requestPasswordReset: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
282
284
|
email: string;
|
|
283
285
|
redirectTo?: string | undefined;
|
|
284
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
286
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
285
287
|
email: string;
|
|
286
288
|
redirectTo?: string | undefined;
|
|
287
289
|
} & {
|
|
@@ -295,11 +297,11 @@ declare const authClient: {
|
|
|
295
297
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
296
298
|
} & {
|
|
297
299
|
resetPassword: {
|
|
298
|
-
":token": <FetchOptions extends
|
|
300
|
+
":token": <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
299
301
|
callbackURL: string;
|
|
300
302
|
}> & Record<string, any>, {
|
|
301
303
|
token: string;
|
|
302
|
-
}>>(data_0:
|
|
304
|
+
}>>(data_0: better_auth_react.Prettify<{
|
|
303
305
|
query: {
|
|
304
306
|
callbackURL: string;
|
|
305
307
|
};
|
|
@@ -310,10 +312,10 @@ declare const authClient: {
|
|
|
310
312
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
311
313
|
};
|
|
312
314
|
} & {
|
|
313
|
-
listSessions: <FetchOptions extends
|
|
315
|
+
listSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
314
316
|
query?: Record<string, any> | undefined;
|
|
315
317
|
fetchOptions?: FetchOptions | undefined;
|
|
316
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<
|
|
318
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_react.Prettify<{
|
|
317
319
|
id: string;
|
|
318
320
|
createdAt: Date;
|
|
319
321
|
updatedAt: Date;
|
|
@@ -327,9 +329,9 @@ declare const authClient: {
|
|
|
327
329
|
message?: string | undefined;
|
|
328
330
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
329
331
|
} & {
|
|
330
|
-
revokeSession: <FetchOptions extends
|
|
332
|
+
revokeSession: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
331
333
|
token: string;
|
|
332
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
334
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
333
335
|
token: string;
|
|
334
336
|
} & {
|
|
335
337
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -340,7 +342,7 @@ declare const authClient: {
|
|
|
340
342
|
message?: string | undefined;
|
|
341
343
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
344
|
} & {
|
|
343
|
-
revokeSessions: <FetchOptions extends
|
|
345
|
+
revokeSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
344
346
|
query?: Record<string, any> | undefined;
|
|
345
347
|
fetchOptions?: FetchOptions | undefined;
|
|
346
348
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -350,7 +352,7 @@ declare const authClient: {
|
|
|
350
352
|
message?: string | undefined;
|
|
351
353
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
352
354
|
} & {
|
|
353
|
-
revokeOtherSessions: <FetchOptions extends
|
|
355
|
+
revokeOtherSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
354
356
|
query?: Record<string, any> | undefined;
|
|
355
357
|
fetchOptions?: FetchOptions | undefined;
|
|
356
358
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -360,7 +362,7 @@ declare const authClient: {
|
|
|
360
362
|
message?: string | undefined;
|
|
361
363
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
362
364
|
} & {
|
|
363
|
-
linkSocial: <FetchOptions extends
|
|
365
|
+
linkSocial: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
364
366
|
provider: unknown;
|
|
365
367
|
callbackURL?: string | undefined;
|
|
366
368
|
idToken?: {
|
|
@@ -375,7 +377,7 @@ declare const authClient: {
|
|
|
375
377
|
errorCallbackURL?: string | undefined;
|
|
376
378
|
disableRedirect?: boolean | undefined;
|
|
377
379
|
additionalData?: Record<string, any> | undefined;
|
|
378
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
380
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
379
381
|
provider: unknown;
|
|
380
382
|
callbackURL?: string | undefined;
|
|
381
383
|
idToken?: {
|
|
@@ -400,7 +402,7 @@ declare const authClient: {
|
|
|
400
402
|
message?: string | undefined;
|
|
401
403
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
404
|
} & {
|
|
403
|
-
listAccounts: <FetchOptions extends
|
|
405
|
+
listAccounts: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
404
406
|
query?: Record<string, any> | undefined;
|
|
405
407
|
fetchOptions?: FetchOptions | undefined;
|
|
406
408
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -417,10 +419,10 @@ declare const authClient: {
|
|
|
417
419
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
418
420
|
} & {
|
|
419
421
|
deleteUser: {
|
|
420
|
-
callback: <FetchOptions extends
|
|
422
|
+
callback: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
421
423
|
token: string;
|
|
422
424
|
callbackURL?: string | undefined;
|
|
423
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
425
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
424
426
|
query: {
|
|
425
427
|
token: string;
|
|
426
428
|
callbackURL?: string | undefined;
|
|
@@ -435,10 +437,10 @@ declare const authClient: {
|
|
|
435
437
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
436
438
|
};
|
|
437
439
|
} & {
|
|
438
|
-
unlinkAccount: <FetchOptions extends
|
|
440
|
+
unlinkAccount: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
439
441
|
providerId: string;
|
|
440
442
|
accountId?: string | undefined;
|
|
441
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
443
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
442
444
|
providerId: string;
|
|
443
445
|
accountId?: string | undefined;
|
|
444
446
|
} & {
|
|
@@ -450,11 +452,11 @@ declare const authClient: {
|
|
|
450
452
|
message?: string | undefined;
|
|
451
453
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
452
454
|
} & {
|
|
453
|
-
refreshToken: <FetchOptions extends
|
|
455
|
+
refreshToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
454
456
|
providerId: string;
|
|
455
457
|
accountId?: string | undefined;
|
|
456
458
|
userId?: string | undefined;
|
|
457
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
459
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
458
460
|
providerId: string;
|
|
459
461
|
accountId?: string | undefined;
|
|
460
462
|
userId?: string | undefined;
|
|
@@ -474,11 +476,11 @@ declare const authClient: {
|
|
|
474
476
|
message?: string | undefined;
|
|
475
477
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
476
478
|
} & {
|
|
477
|
-
getAccessToken: <FetchOptions extends
|
|
479
|
+
getAccessToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
478
480
|
providerId: string;
|
|
479
481
|
accountId?: string | undefined;
|
|
480
482
|
userId?: string | undefined;
|
|
481
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
483
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
482
484
|
providerId: string;
|
|
483
485
|
accountId?: string | undefined;
|
|
484
486
|
userId?: string | undefined;
|
|
@@ -494,25 +496,25 @@ declare const authClient: {
|
|
|
494
496
|
message?: string | undefined;
|
|
495
497
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
496
498
|
} & {
|
|
497
|
-
accountInfo: <FetchOptions extends
|
|
499
|
+
accountInfo: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
498
500
|
accountId?: string | undefined;
|
|
499
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
501
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
500
502
|
query?: {
|
|
501
503
|
accountId?: string | undefined;
|
|
502
504
|
} | undefined;
|
|
503
505
|
fetchOptions?: FetchOptions | undefined;
|
|
504
506
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
505
|
-
user:
|
|
507
|
+
user: _better_auth_core_oauth2.OAuth2UserInfo;
|
|
506
508
|
data: Record<string, any>;
|
|
507
509
|
}, {
|
|
508
510
|
code?: string | undefined;
|
|
509
511
|
message?: string | undefined;
|
|
510
512
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
511
513
|
} & {
|
|
512
|
-
getSession: <FetchOptions extends
|
|
514
|
+
getSession: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
513
515
|
disableCookieCache?: unknown;
|
|
514
516
|
disableRefresh?: unknown;
|
|
515
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
517
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
516
518
|
query?: {
|
|
517
519
|
disableCookieCache?: unknown;
|
|
518
520
|
disableRefresh?: unknown;
|
|
@@ -569,7 +571,7 @@ declare const authClient: {
|
|
|
569
571
|
isRefetching: boolean;
|
|
570
572
|
error: _better_fetch_fetch.BetterFetchError | null;
|
|
571
573
|
refetch: (queryParams?: {
|
|
572
|
-
query?:
|
|
574
|
+
query?: node_modules_better_auth_dist_index__CrC0_x3_d_mts.bn;
|
|
573
575
|
} | undefined) => Promise<void>;
|
|
574
576
|
};
|
|
575
577
|
$Infer: {
|
package/dist/client-utils.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
useGetFileMetas,
|
|
12
12
|
useGetFileThumbnail,
|
|
13
13
|
useOpenFile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MIVD2XWB.js";
|
|
15
15
|
import "./chunk-TME53DAF.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2ROTNT7W.js";
|
|
17
17
|
import "./chunk-DXXZZHAK.js";
|
|
18
18
|
import "./chunk-5WRI5ZAA.js";
|
|
19
19
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
|
-
import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
2
|
+
import { DateTimeRangePickerProps, DateTimePickerProps, TimeRangePickerProps, TimePickerProps, DateRangePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
3
|
import { F as FormOmittedProps } from './utils-ChipkRJ9.js';
|
|
4
4
|
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
5
5
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
@@ -13,10 +13,26 @@ import '@t3-oss/env-core';
|
|
|
13
13
|
|
|
14
14
|
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
15
15
|
|
|
16
|
+
interface FormDateTimeRangePickerProps extends Omit<DateTimeRangePickerProps, FormOmittedProps> {
|
|
17
|
+
textFieldProps?: TextFieldProps;
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
17
21
|
textFieldProps?: TextFieldProps;
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
interface FormTimeRangePickerProps extends Omit<TimeRangePickerProps, FormOmittedProps> {
|
|
25
|
+
textFieldProps?: TextFieldProps;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface FormTimePickerProps extends Omit<TimePickerProps, FormOmittedProps> {
|
|
29
|
+
textFieldProps?: TextFieldProps;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface FormDateRangePickerProps extends Omit<DateRangePickerProps, FormOmittedProps> {
|
|
33
|
+
textFieldProps?: TextFieldProps;
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
|
|
21
37
|
textFieldProps?: TextFieldProps;
|
|
22
38
|
}
|
|
@@ -66,7 +82,11 @@ declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.Fo
|
|
|
66
82
|
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
67
83
|
readonly Slider: react.FC<FormSliderProps>;
|
|
68
84
|
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
85
|
+
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
86
|
+
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
87
|
+
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
69
88
|
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
89
|
+
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
70
90
|
}, {
|
|
71
91
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
72
92
|
}>;
|
|
@@ -79,7 +99,11 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
79
99
|
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
80
100
|
readonly Slider: react.FC<FormSliderProps>;
|
|
81
101
|
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
102
|
+
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
103
|
+
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
104
|
+
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
82
105
|
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
106
|
+
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
83
107
|
}, {
|
|
84
108
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
85
109
|
}, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
@@ -92,7 +116,11 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
92
116
|
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
93
117
|
readonly Slider: react.FC<FormSliderProps>;
|
|
94
118
|
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
119
|
+
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
120
|
+
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
121
|
+
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
95
122
|
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
123
|
+
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
96
124
|
}, {
|
|
97
125
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
98
126
|
}>;
|