zitejs 0.9.76 → 0.9.77
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/cjs/auth/index.d.ts
CHANGED
|
@@ -235,3 +235,30 @@ export type User = {
|
|
|
235
235
|
createdAt: Date;
|
|
236
236
|
updatedAt: Date;
|
|
237
237
|
};
|
|
238
|
+
export interface ZiteAuthMethods {
|
|
239
|
+
emailPassword?: boolean;
|
|
240
|
+
magicLink?: boolean;
|
|
241
|
+
googleSignIn?: boolean;
|
|
242
|
+
sso?: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface ZiteAuthPageMessages {
|
|
245
|
+
signInTitle?: string;
|
|
246
|
+
signUpTitle?: string;
|
|
247
|
+
signInSubtitle?: string;
|
|
248
|
+
signUpSubtitle?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface ZiteAuthPage {
|
|
251
|
+
showLogo?: boolean;
|
|
252
|
+
messages?: ZiteAuthPageMessages;
|
|
253
|
+
}
|
|
254
|
+
export interface ZiteAuthenticationConfig {
|
|
255
|
+
authenticationMethods?: ZiteAuthMethods;
|
|
256
|
+
signup?: 'disabled' | 'open' | 'domain-restricted';
|
|
257
|
+
domains?: string[];
|
|
258
|
+
authPage?: ZiteAuthPage;
|
|
259
|
+
}
|
|
260
|
+
export interface ZiteAppConfig {
|
|
261
|
+
id?: string;
|
|
262
|
+
accessMode?: string;
|
|
263
|
+
authentication?: ZiteAuthenticationConfig;
|
|
264
|
+
}
|
|
@@ -5,12 +5,8 @@ export interface ZiteAuthUser {
|
|
|
5
5
|
firstName?: string;
|
|
6
6
|
lastName?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
magicLink?: boolean;
|
|
11
|
-
googleSignIn?: boolean;
|
|
12
|
-
sso?: boolean;
|
|
13
|
-
}
|
|
8
|
+
import type { ZiteAuthMethods } from '../auth/index.js';
|
|
9
|
+
export type { ZiteAuthMethods };
|
|
14
10
|
export interface ZiteAuthSettings {
|
|
15
11
|
methods?: ZiteAuthMethods;
|
|
16
12
|
signup?: 'disabled' | 'open' | 'domain-restricted';
|
package/dist/cjs/sync/lib.js
CHANGED
|
@@ -494,9 +494,10 @@ function generateAuthWrapperTs() {
|
|
|
494
494
|
return [
|
|
495
495
|
"// Auto-generated auth re-exports. Do not edit manually.",
|
|
496
496
|
"// The real auth logic lives in the zitejs npm package (zitejs/auth).",
|
|
497
|
+
"// Imports use zitejs/auth/base to avoid circular alias (zitejs/auth → this file).",
|
|
497
498
|
"",
|
|
498
|
-
"export { useSession, signIn, signOut, signUp, loginWithRedirect, logout } from 'zitejs/auth';",
|
|
499
|
-
"export type { User } from 'zitejs/auth';",
|
|
499
|
+
"export { useSession, signIn, signOut, signUp, loginWithRedirect, logout } from 'zitejs/auth/base';",
|
|
500
|
+
"export type { User } from 'zitejs/auth/base';",
|
|
500
501
|
"",
|
|
501
502
|
].join("\n");
|
|
502
503
|
}
|
package/dist/esm/auth/index.d.ts
CHANGED
|
@@ -235,3 +235,30 @@ export type User = {
|
|
|
235
235
|
createdAt: Date;
|
|
236
236
|
updatedAt: Date;
|
|
237
237
|
};
|
|
238
|
+
export interface ZiteAuthMethods {
|
|
239
|
+
emailPassword?: boolean;
|
|
240
|
+
magicLink?: boolean;
|
|
241
|
+
googleSignIn?: boolean;
|
|
242
|
+
sso?: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface ZiteAuthPageMessages {
|
|
245
|
+
signInTitle?: string;
|
|
246
|
+
signUpTitle?: string;
|
|
247
|
+
signInSubtitle?: string;
|
|
248
|
+
signUpSubtitle?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface ZiteAuthPage {
|
|
251
|
+
showLogo?: boolean;
|
|
252
|
+
messages?: ZiteAuthPageMessages;
|
|
253
|
+
}
|
|
254
|
+
export interface ZiteAuthenticationConfig {
|
|
255
|
+
authenticationMethods?: ZiteAuthMethods;
|
|
256
|
+
signup?: 'disabled' | 'open' | 'domain-restricted';
|
|
257
|
+
domains?: string[];
|
|
258
|
+
authPage?: ZiteAuthPage;
|
|
259
|
+
}
|
|
260
|
+
export interface ZiteAppConfig {
|
|
261
|
+
id?: string;
|
|
262
|
+
accessMode?: string;
|
|
263
|
+
authentication?: ZiteAuthenticationConfig;
|
|
264
|
+
}
|
|
@@ -5,12 +5,8 @@ export interface ZiteAuthUser {
|
|
|
5
5
|
firstName?: string;
|
|
6
6
|
lastName?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
magicLink?: boolean;
|
|
11
|
-
googleSignIn?: boolean;
|
|
12
|
-
sso?: boolean;
|
|
13
|
-
}
|
|
8
|
+
import type { ZiteAuthMethods } from '../auth/index.js';
|
|
9
|
+
export type { ZiteAuthMethods };
|
|
14
10
|
export interface ZiteAuthSettings {
|
|
15
11
|
methods?: ZiteAuthMethods;
|
|
16
12
|
signup?: 'disabled' | 'open' | 'domain-restricted';
|
package/dist/esm/sync/lib.js
CHANGED
|
@@ -482,9 +482,10 @@ export function generateAuthWrapperTs() {
|
|
|
482
482
|
return [
|
|
483
483
|
"// Auto-generated auth re-exports. Do not edit manually.",
|
|
484
484
|
"// The real auth logic lives in the zitejs npm package (zitejs/auth).",
|
|
485
|
+
"// Imports use zitejs/auth/base to avoid circular alias (zitejs/auth → this file).",
|
|
485
486
|
"",
|
|
486
|
-
"export { useSession, signIn, signOut, signUp, loginWithRedirect, logout } from 'zitejs/auth';",
|
|
487
|
-
"export type { User } from 'zitejs/auth';",
|
|
487
|
+
"export { useSession, signIn, signOut, signUp, loginWithRedirect, logout } from 'zitejs/auth/base';",
|
|
488
|
+
"export type { User } from 'zitejs/auth/base';",
|
|
488
489
|
"",
|
|
489
490
|
].join("\n");
|
|
490
491
|
}
|