wcz-test 6.7.3 → 6.7.4
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 +49 -49
- 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 +1 -1
- 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
|
@@ -3,7 +3,7 @@ export { t } from 'i18next';
|
|
|
3
3
|
export { useTranslation } from 'react-i18next';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_auth_react from 'better-auth/react';
|
|
7
7
|
import * as better_auth from 'better-auth';
|
|
8
8
|
import 'axios';
|
|
9
9
|
import 'uuidv7';
|
|
@@ -15,7 +15,7 @@ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
|
15
15
|
declare const authClient: {
|
|
16
16
|
signIn: {
|
|
17
17
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
18
|
-
provider:
|
|
18
|
+
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
19
|
callbackURL?: string | undefined;
|
|
20
20
|
newUserCallbackURL?: string | undefined;
|
|
21
21
|
errorCallbackURL?: string | undefined;
|
|
@@ -31,8 +31,8 @@ declare const authClient: {
|
|
|
31
31
|
requestSignUp?: boolean | undefined;
|
|
32
32
|
loginHint?: string | undefined;
|
|
33
33
|
additionalData?: Record<string, any> | undefined;
|
|
34
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
35
|
-
provider:
|
|
34
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
35
|
+
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
36
|
callbackURL?: string | undefined;
|
|
37
37
|
newUserCallbackURL?: string | undefined;
|
|
38
38
|
errorCallbackURL?: string | undefined;
|
|
@@ -51,28 +51,28 @@ declare const authClient: {
|
|
|
51
51
|
} & {
|
|
52
52
|
fetchOptions?: FetchOptions | undefined;
|
|
53
53
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
54
|
+
redirect: boolean;
|
|
55
|
+
url: string;
|
|
56
|
+
} | {
|
|
54
57
|
redirect: boolean;
|
|
55
58
|
token: string;
|
|
56
59
|
url: undefined;
|
|
57
60
|
user: {
|
|
58
61
|
id: string;
|
|
59
|
-
email: string;
|
|
60
|
-
name: string;
|
|
61
|
-
image: string | null | undefined;
|
|
62
|
-
emailVerified: boolean;
|
|
63
62
|
createdAt: Date;
|
|
64
63
|
updatedAt: Date;
|
|
64
|
+
email: string;
|
|
65
|
+
emailVerified: boolean;
|
|
66
|
+
name: string;
|
|
67
|
+
image?: string | null | undefined | undefined;
|
|
65
68
|
};
|
|
66
|
-
} | {
|
|
67
|
-
url: string;
|
|
68
|
-
redirect: boolean;
|
|
69
69
|
}>, {
|
|
70
70
|
code?: string | undefined;
|
|
71
71
|
message?: string | undefined;
|
|
72
72
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
73
73
|
};
|
|
74
74
|
} & {
|
|
75
|
-
signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
75
|
+
signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
76
76
|
query?: Record<string, any> | undefined;
|
|
77
77
|
fetchOptions?: FetchOptions | undefined;
|
|
78
78
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -90,7 +90,7 @@ declare const authClient: {
|
|
|
90
90
|
image?: string | undefined;
|
|
91
91
|
callbackURL?: string | undefined;
|
|
92
92
|
rememberMe?: boolean | undefined;
|
|
93
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
93
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
94
94
|
email: string;
|
|
95
95
|
name: string;
|
|
96
96
|
password: string;
|
|
@@ -101,23 +101,23 @@ declare const authClient: {
|
|
|
101
101
|
token: null;
|
|
102
102
|
user: {
|
|
103
103
|
id: string;
|
|
104
|
-
email: string;
|
|
105
|
-
name: string;
|
|
106
|
-
image: string | null | undefined;
|
|
107
|
-
emailVerified: boolean;
|
|
108
104
|
createdAt: Date;
|
|
109
105
|
updatedAt: Date;
|
|
106
|
+
email: string;
|
|
107
|
+
emailVerified: boolean;
|
|
108
|
+
name: string;
|
|
109
|
+
image?: string | null | undefined | undefined;
|
|
110
110
|
};
|
|
111
111
|
} | {
|
|
112
112
|
token: string;
|
|
113
113
|
user: {
|
|
114
114
|
id: string;
|
|
115
|
-
email: string;
|
|
116
|
-
name: string;
|
|
117
|
-
image: string | null | undefined;
|
|
118
|
-
emailVerified: boolean;
|
|
119
115
|
createdAt: Date;
|
|
120
116
|
updatedAt: Date;
|
|
117
|
+
email: string;
|
|
118
|
+
emailVerified: boolean;
|
|
119
|
+
name: string;
|
|
120
|
+
image?: string | null | undefined | undefined;
|
|
121
121
|
};
|
|
122
122
|
}>, {
|
|
123
123
|
code?: string | undefined;
|
|
@@ -131,7 +131,7 @@ declare const authClient: {
|
|
|
131
131
|
password: string;
|
|
132
132
|
callbackURL?: string | undefined;
|
|
133
133
|
rememberMe?: boolean | undefined;
|
|
134
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
134
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
135
135
|
email: string;
|
|
136
136
|
password: string;
|
|
137
137
|
callbackURL?: string | undefined;
|
|
@@ -141,15 +141,15 @@ declare const authClient: {
|
|
|
141
141
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
142
142
|
redirect: boolean;
|
|
143
143
|
token: string;
|
|
144
|
-
url
|
|
144
|
+
url?: string | undefined;
|
|
145
145
|
user: {
|
|
146
146
|
id: string;
|
|
147
|
-
email: string;
|
|
148
|
-
name: string;
|
|
149
|
-
image: string | null | undefined;
|
|
150
|
-
emailVerified: boolean;
|
|
151
147
|
createdAt: Date;
|
|
152
148
|
updatedAt: Date;
|
|
149
|
+
email: string;
|
|
150
|
+
emailVerified: boolean;
|
|
151
|
+
name: string;
|
|
152
|
+
image?: string | null | undefined | undefined;
|
|
153
153
|
};
|
|
154
154
|
}, {
|
|
155
155
|
code?: string | undefined;
|
|
@@ -162,7 +162,7 @@ declare const authClient: {
|
|
|
162
162
|
token?: string | undefined;
|
|
163
163
|
}> & Record<string, any>, Partial<{
|
|
164
164
|
token?: string | undefined;
|
|
165
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
165
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
166
166
|
newPassword: string;
|
|
167
167
|
token?: string | undefined;
|
|
168
168
|
} & {
|
|
@@ -177,7 +177,7 @@ declare const authClient: {
|
|
|
177
177
|
verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
178
178
|
token: string;
|
|
179
179
|
callbackURL?: string | undefined;
|
|
180
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
180
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
181
181
|
query: {
|
|
182
182
|
token: string;
|
|
183
183
|
callbackURL?: string | undefined;
|
|
@@ -193,7 +193,7 @@ declare const authClient: {
|
|
|
193
193
|
sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
194
194
|
email: string;
|
|
195
195
|
callbackURL?: string | undefined;
|
|
196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
196
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
197
197
|
email: string;
|
|
198
198
|
callbackURL?: string | undefined;
|
|
199
199
|
} & {
|
|
@@ -208,7 +208,7 @@ declare const authClient: {
|
|
|
208
208
|
changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
209
209
|
newEmail: string;
|
|
210
210
|
callbackURL?: string | undefined;
|
|
211
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
211
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
212
212
|
newEmail: string;
|
|
213
213
|
callbackURL?: string | undefined;
|
|
214
214
|
} & {
|
|
@@ -224,7 +224,7 @@ declare const authClient: {
|
|
|
224
224
|
newPassword: string;
|
|
225
225
|
currentPassword: string;
|
|
226
226
|
revokeOtherSessions?: boolean | undefined;
|
|
227
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
227
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
228
228
|
newPassword: string;
|
|
229
229
|
currentPassword: string;
|
|
230
230
|
revokeOtherSessions?: boolean | undefined;
|
|
@@ -249,7 +249,7 @@ declare const authClient: {
|
|
|
249
249
|
updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
250
250
|
name?: string | undefined;
|
|
251
251
|
image?: string | undefined;
|
|
252
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
252
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
253
253
|
image?: (string | null) | undefined;
|
|
254
254
|
name?: string | undefined;
|
|
255
255
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -264,7 +264,7 @@ declare const authClient: {
|
|
|
264
264
|
callbackURL?: string | undefined;
|
|
265
265
|
password?: string | undefined;
|
|
266
266
|
token?: string | undefined;
|
|
267
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
267
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
268
268
|
callbackURL?: string | undefined;
|
|
269
269
|
password?: string | undefined;
|
|
270
270
|
token?: string | undefined;
|
|
@@ -281,7 +281,7 @@ declare const authClient: {
|
|
|
281
281
|
requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
282
282
|
email: string;
|
|
283
283
|
redirectTo?: string | undefined;
|
|
284
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
284
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
285
285
|
email: string;
|
|
286
286
|
redirectTo?: string | undefined;
|
|
287
287
|
} & {
|
|
@@ -299,7 +299,7 @@ declare const authClient: {
|
|
|
299
299
|
callbackURL: string;
|
|
300
300
|
}> & Record<string, any>, {
|
|
301
301
|
token: string;
|
|
302
|
-
}>>(data_0:
|
|
302
|
+
}>>(data_0: better_auth_react.Prettify<{
|
|
303
303
|
query: {
|
|
304
304
|
callbackURL: string;
|
|
305
305
|
};
|
|
@@ -310,10 +310,10 @@ declare const authClient: {
|
|
|
310
310
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
311
311
|
};
|
|
312
312
|
} & {
|
|
313
|
-
listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
313
|
+
listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
314
314
|
query?: Record<string, any> | undefined;
|
|
315
315
|
fetchOptions?: FetchOptions | undefined;
|
|
316
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<
|
|
316
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_react.Prettify<{
|
|
317
317
|
id: string;
|
|
318
318
|
createdAt: Date;
|
|
319
319
|
updatedAt: Date;
|
|
@@ -329,7 +329,7 @@ declare const authClient: {
|
|
|
329
329
|
} & {
|
|
330
330
|
revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
331
331
|
token: string;
|
|
332
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
332
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
333
333
|
token: string;
|
|
334
334
|
} & {
|
|
335
335
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -340,7 +340,7 @@ declare const authClient: {
|
|
|
340
340
|
message?: string | undefined;
|
|
341
341
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
342
|
} & {
|
|
343
|
-
revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
343
|
+
revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
344
344
|
query?: Record<string, any> | undefined;
|
|
345
345
|
fetchOptions?: FetchOptions | undefined;
|
|
346
346
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -350,7 +350,7 @@ declare const authClient: {
|
|
|
350
350
|
message?: string | undefined;
|
|
351
351
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
352
352
|
} & {
|
|
353
|
-
revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
353
|
+
revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
354
354
|
query?: Record<string, any> | undefined;
|
|
355
355
|
fetchOptions?: FetchOptions | undefined;
|
|
356
356
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -375,7 +375,7 @@ declare const authClient: {
|
|
|
375
375
|
errorCallbackURL?: string | undefined;
|
|
376
376
|
disableRedirect?: boolean | undefined;
|
|
377
377
|
additionalData?: Record<string, any> | undefined;
|
|
378
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
378
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
379
379
|
provider: unknown;
|
|
380
380
|
callbackURL?: string | undefined;
|
|
381
381
|
idToken?: {
|
|
@@ -400,7 +400,7 @@ declare const authClient: {
|
|
|
400
400
|
message?: string | undefined;
|
|
401
401
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
402
|
} & {
|
|
403
|
-
listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
403
|
+
listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
404
404
|
query?: Record<string, any> | undefined;
|
|
405
405
|
fetchOptions?: FetchOptions | undefined;
|
|
406
406
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -420,7 +420,7 @@ declare const authClient: {
|
|
|
420
420
|
callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
421
421
|
token: string;
|
|
422
422
|
callbackURL?: string | undefined;
|
|
423
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
423
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
424
424
|
query: {
|
|
425
425
|
token: string;
|
|
426
426
|
callbackURL?: string | undefined;
|
|
@@ -438,7 +438,7 @@ declare const authClient: {
|
|
|
438
438
|
unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
439
439
|
providerId: string;
|
|
440
440
|
accountId?: string | undefined;
|
|
441
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
441
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
442
442
|
providerId: string;
|
|
443
443
|
accountId?: string | undefined;
|
|
444
444
|
} & {
|
|
@@ -454,7 +454,7 @@ declare const authClient: {
|
|
|
454
454
|
providerId: string;
|
|
455
455
|
accountId?: string | undefined;
|
|
456
456
|
userId?: string | undefined;
|
|
457
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
457
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
458
458
|
providerId: string;
|
|
459
459
|
accountId?: string | undefined;
|
|
460
460
|
userId?: string | undefined;
|
|
@@ -478,7 +478,7 @@ declare const authClient: {
|
|
|
478
478
|
providerId: string;
|
|
479
479
|
accountId?: string | undefined;
|
|
480
480
|
userId?: string | undefined;
|
|
481
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
481
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
482
482
|
providerId: string;
|
|
483
483
|
accountId?: string | undefined;
|
|
484
484
|
userId?: string | undefined;
|
|
@@ -496,7 +496,7 @@ declare const authClient: {
|
|
|
496
496
|
} & {
|
|
497
497
|
accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
498
498
|
accountId?: string | undefined;
|
|
499
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
499
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
500
500
|
query?: {
|
|
501
501
|
accountId?: string | undefined;
|
|
502
502
|
} | undefined;
|
|
@@ -512,7 +512,7 @@ declare const authClient: {
|
|
|
512
512
|
getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
513
513
|
disableCookieCache?: unknown;
|
|
514
514
|
disableRefresh?: unknown;
|
|
515
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
515
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
516
516
|
query?: {
|
|
517
517
|
disableCookieCache?: unknown;
|
|
518
518
|
disableRefresh?: unknown;
|
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
|
}>;
|