@everymatrix/user-login 1.74.7 → 1.74.8

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.
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"errorForFields":[32],"hasError":[32],"phoneCodes":[32],"isLoginLoading":[32],"captchaData":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
19
+ return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"defaultPrefix":[513,"default-prefix"],"isPrefixEditable":[513,"is-prefix-editable"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"errorForFields":[32],"hasError":[32],"phoneCodes":[32],"isLoginLoading":[32],"captchaData":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
20
20
  });
@@ -58,67 +58,35 @@ export declare class UserLogin {
58
58
  */
59
59
  loginByPhoneNumber: string;
60
60
  /**
61
- * User email or username entered in the form
61
+ * Defines a prefix to be pre-selected
62
62
  */
63
- userNameEmail: string;
63
+ defaultPrefix: string;
64
64
  /**
65
- * Password entered in the form
65
+ * Flag to determine if prefix is editable
66
66
  */
67
- userPassword: string;
67
+ isPrefixEditable: string;
68
68
  /**
69
- * Flag to indicate whether the entered email is valid
69
+ * The source identifier for message bus styling.
70
+ * This is used to apply styles dynamically from a stream.
70
71
  */
72
+ mbSource: string;
73
+ userNameEmail: string;
74
+ userPassword: string;
71
75
  isValidUserEmail: boolean;
72
- /**
73
- * User phone entered in the form
74
- */
75
76
  userPhone: string;
76
- /**
77
- * User prefix entered in the form
78
- */
79
77
  userPrefix: string;
80
- /**
81
- * Flag to indicate whether the entered password is valid
82
- */
83
78
  isValidPassword: boolean;
84
- /**
85
- * Flag to indicate whether the entered phone is valid
86
- */
87
79
  isValidUserPhone: boolean;
88
- /**
89
- * Toggles visibility of the password field
90
- */
91
80
  isPasswordVisible: boolean;
92
- /**
93
- * Stores error message from the API
94
- */
95
- private errorMessage;
96
- /**
97
- * Stores error message from the API
98
- */
99
- private errorForFields;
100
- /**
101
- * Indicates whether an error has occurred
102
- */
103
- private hasError;
104
- /**
105
- * User prefix options for phone number login
106
- */
107
- phoneCodes: Array<Record<string, string>>;
108
- /**
109
- * Boolean for preventing user for clicking multiple times the login button
110
- */
111
- private isLoginLoading;
112
- /**
113
- * Captcha configuration and state.
114
- * Stores captcha-related data, including its status, token, provider, and site key.
115
- */
81
+ errorMessage: string;
82
+ errorForFields: Record<string, any>;
83
+ hasError: boolean;
84
+ phoneCodes: {
85
+ label: string;
86
+ value: string;
87
+ }[];
88
+ isLoginLoading: boolean;
116
89
  captchaData: CaptchaData;
117
- /**
118
- * The source identifier for message bus styling.
119
- * This is used to apply styles dynamically from a stream.
120
- */
121
- mbSource: string;
122
90
  private errorCode;
123
91
  private stylingContainer;
124
92
  private stylingSubscription;
@@ -178,7 +146,10 @@ export declare class UserLogin {
178
146
  /**
179
147
  * Fetch phone prefixes from the API
180
148
  */
181
- getPhoneCodes: () => Promise<void>;
149
+ getPhoneCodes: () => Promise<{
150
+ label: string;
151
+ value: string;
152
+ }[]>;
182
153
  /**
183
154
  * Handle autofilling of credentials from a dispatched event
184
155
  */
@@ -15,10 +15,18 @@ export namespace Components {
15
15
  * URL to load additional CSS styling
16
16
  */
17
17
  "clientStylingUrl": string;
18
+ /**
19
+ * Defines a prefix to be pre-selected
20
+ */
21
+ "defaultPrefix": string;
18
22
  /**
19
23
  * API endpoint URL for login requests
20
24
  */
21
25
  "endpoint": string;
26
+ /**
27
+ * Flag to determine if prefix is editable
28
+ */
29
+ "isPrefixEditable": string;
22
30
  /**
23
31
  * Language code for translations (default is 'en')
24
32
  */
@@ -90,10 +98,18 @@ declare namespace LocalJSX {
90
98
  * URL to load additional CSS styling
91
99
  */
92
100
  "clientStylingUrl"?: string;
101
+ /**
102
+ * Defines a prefix to be pre-selected
103
+ */
104
+ "defaultPrefix"?: string;
93
105
  /**
94
106
  * API endpoint URL for login requests
95
107
  */
96
108
  "endpoint"?: string;
109
+ /**
110
+ * Flag to determine if prefix is editable
111
+ */
112
+ "isPrefixEditable"?: string;
97
113
  /**
98
114
  * Language code for translations (default is 'en')
99
115
  */