@coasys/ad4m-connect 0.11.2-dev-multi-user → 0.11.2-dev-multi-user-email

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.
@@ -1,15 +1,19 @@
1
1
  type MultiUserAuthProps = {
2
2
  email: string;
3
3
  password: string;
4
+ verificationCode: string;
4
5
  error: string | null;
5
6
  isLoading: boolean;
6
7
  backendUrl?: string;
8
+ step: "email" | "password" | "code";
9
+ verificationType: "signup" | "login";
7
10
  changeEmail: (email: string) => void;
8
11
  changePassword: (password: string) => void;
9
- onLogin: () => void;
10
- onSignup: () => void;
11
- activeTab: "login" | "signup";
12
- setActiveTab: (tab: "login" | "signup") => void;
12
+ changeVerificationCode: (code: string) => void;
13
+ onEmailSubmit: () => void;
14
+ onPasswordSubmit: () => void;
15
+ onCodeSubmit: () => void;
16
+ onBackToEmail: () => void;
13
17
  };
14
- export default function MultiUserAuth({ email, password, error, isLoading, backendUrl, changeEmail, changePassword, onLogin, onSignup, activeTab, setActiveTab, }: MultiUserAuthProps): import("lit").TemplateResult<1>;
18
+ export default function MultiUserAuth({ email, password, verificationCode, error, isLoading, backendUrl, step, verificationType, changeEmail, changePassword, changeVerificationCode, onEmailSubmit, onPasswordSubmit, onCodeSubmit, onBackToEmail, }: MultiUserAuthProps): import("lit").TemplateResult<1>;
15
19
  export {};
package/dist/core.d.ts CHANGED
@@ -54,6 +54,12 @@ export default class Ad4mConnect {
54
54
  on(event: Event, cb: Function): void;
55
55
  buildTempClient(url: string): Ad4mClient;
56
56
  connect(url?: string): Promise<Ad4mClient>;
57
+ /**
58
+ * @deprecated This method is deprecated in favor of the UI-driven email verification flow.
59
+ * The new flow uses requestLoginVerification() -> verifyEmailCode() which is handled
60
+ * automatically by the ad4m-connect web component. This method is kept for backwards
61
+ * compatibility but will only work if email verification is not enabled on the server.
62
+ */
57
63
  connectMultiUser(): Promise<Ad4mClient>;
58
64
  loginToHosting(email: string, password: string): Promise<void>;
59
65
  checkEmail(email: string): Promise<boolean>;