@everymatrix/user-login 1.13.16

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.
Files changed (47) hide show
  1. package/dist/cjs/index-59191539.js +1231 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/user-login.cjs.entry.js +239 -0
  5. package/dist/cjs/user-login.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/user-login/user-login.css +162 -0
  8. package/dist/collection/components/user-login/user-login.js +356 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/utils/locale.utils.js +65 -0
  11. package/dist/collection/utils/utils.js +3 -0
  12. package/dist/components/index.d.ts +26 -0
  13. package/dist/components/index.js +1 -0
  14. package/dist/components/user-login.d.ts +11 -0
  15. package/dist/components/user-login.js +270 -0
  16. package/dist/esm/index-58908c9a.js +1206 -0
  17. package/dist/esm/index.js +1 -0
  18. package/dist/esm/loader.js +17 -0
  19. package/dist/esm/polyfills/core-js.js +11 -0
  20. package/dist/esm/polyfills/css-shim.js +1 -0
  21. package/dist/esm/polyfills/dom.js +79 -0
  22. package/dist/esm/polyfills/es5-html-element.js +1 -0
  23. package/dist/esm/polyfills/index.js +34 -0
  24. package/dist/esm/polyfills/system.js +6 -0
  25. package/dist/esm/user-login.entry.js +235 -0
  26. package/dist/esm/user-login.js +17 -0
  27. package/dist/index.cjs.js +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/stencil.config.js +22 -0
  30. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/user-login/.stencil/packages/user-login/stencil.config.d.ts +2 -0
  31. package/dist/types/components/user-login/user-login.d.ts +65 -0
  32. package/dist/types/components.d.ts +101 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  35. package/dist/types/utils/locale.utils.d.ts +2 -0
  36. package/dist/types/utils/utils.d.ts +1 -0
  37. package/dist/user-login/index.esm.js +0 -0
  38. package/dist/user-login/p-5c2c28b2.js +1 -0
  39. package/dist/user-login/p-cd262cc8.entry.js +1 -0
  40. package/dist/user-login/user-login.esm.js +1 -0
  41. package/loader/cdn.js +3 -0
  42. package/loader/index.cjs.js +3 -0
  43. package/loader/index.d.ts +12 -0
  44. package/loader/index.es2017.js +3 -0
  45. package/loader/index.js +4 -0
  46. package/loader/package.json +10 -0
  47. package/package.json +19 -0
@@ -0,0 +1,235 @@
1
+ import { r as registerInstance, h } from './index-58908c9a.js';
2
+
3
+ const DEFAULT_LANGUAGE = 'en';
4
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'cz', 'de'];
5
+ const TRANSLATIONS = {
6
+ en: {
7
+ invalidField: 'This field is invalid',
8
+ forgotPassword: 'Forgot Password',
9
+ userEmail: 'Username or Email',
10
+ password: 'Password',
11
+ login: 'Login'
12
+ },
13
+ ro: {
14
+ invalidField: 'This field is invalid',
15
+ forgotPassword: 'Forgot Password',
16
+ userEmail: 'Username or Email',
17
+ password: 'Password',
18
+ login: 'Login'
19
+ },
20
+ fr: {
21
+ invalidField: 'This field is invalid',
22
+ forgotPassword: 'Forgot Password',
23
+ userEmail: 'Username or Email',
24
+ password: 'Password',
25
+ login: 'Login'
26
+ },
27
+ cs: {
28
+ invalidField: 'Ovo polje je nevažeće.',
29
+ forgotPassword: 'Zaboravio sam lozinku ',
30
+ userEmail: 'Korisničko ime ili email',
31
+ password: 'Lozinka',
32
+ login: 'Prijava'
33
+ },
34
+ de: {
35
+ invalidField: 'This field is invalid',
36
+ forgotPassword: 'Forgot Password',
37
+ userEmail: 'Username or Email',
38
+ password: 'Password',
39
+ login: 'Login'
40
+ },
41
+ };
42
+ const getTranslations = (url) => {
43
+ // fetch url, get the data, replace the TRANSLATIONS content
44
+ return new Promise((resolve) => {
45
+ fetch(url)
46
+ .then((res) => res.json())
47
+ .then((data) => {
48
+ Object.keys(data).forEach((item) => {
49
+ for (let key in data[item]) {
50
+ TRANSLATIONS[item][key] = data[item][key];
51
+ }
52
+ });
53
+ resolve(true);
54
+ });
55
+ });
56
+ };
57
+ const translate = (key, customLang, values) => {
58
+ const lang = customLang;
59
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
60
+ if (values !== undefined) {
61
+ for (const [key, value] of Object.entries(values.values)) {
62
+ const regex = new RegExp(`{${key}}`, 'g');
63
+ translation = translation.replace(regex, value);
64
+ }
65
+ }
66
+ return translation;
67
+ };
68
+
69
+ const userLoginCss = ":host{display:block;font-family:\"Roboto\", sans-serif}section{min-height:100vh;width:100%;background-position:center;background-size:cover}.FormBox{height:100vh;display:flex;position:relative;background:#082649;border:none;backdrop-filter:blur(15px) brightness(80%);justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:310px;border-bottom:2px solid #0797B9}.InputBox.InputInvalidBox::after{content:\"\";height:2px;width:100%;transition:width 0.6s linear;background:#C23135}.InputBox::after{content:\"\";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:#0797B9}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:#0797B9;font-size:1em;pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:1em;padding:0 35px 0 5px;color:#fff;box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-3px;font-size:0.7em}.ForgotPassword button{margin:-10px 0 17px;font-size:0.9em;color:#0797B9;display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.ForgotPassword button:hover{color:#fff}.SubmitCredentials{display:block;margin:0 auto;padding:10px 20px;border-radius:5px;color:#fff;background:linear-gradient(to right, #EA0C66, #77318F);border:none;outline:none;cursor:pointer;font-size:1em}.SubmitCredentials:disabled{background:#707070}.Register{font-size:0.9em;color:#fff;text-align:center;margin:25px 0 10px}.Register p a{text-decoration:none;color:#fff;font-weight:600}.Register p a:hover{text-decoration:underline}.InvalidField{position:absolute;top:45px;color:#C23135;font-size:0.7em}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:#C23135;font-size:0.7em;padding:0 0 20px 0;margin:0}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}";
70
+
71
+ const UserLogin = class {
72
+ constructor(hostRef) {
73
+ registerInstance(this, hostRef);
74
+ /**
75
+ * Endpoint
76
+ */
77
+ this.endpoint = '';
78
+ /**
79
+ * Language
80
+ */
81
+ this.lang = 'en';
82
+ /**
83
+ * Client styling
84
+ */
85
+ this.clientStyling = '';
86
+ /**
87
+ * Client styling by url
88
+ */
89
+ this.clientStylingUrl = '';
90
+ /**
91
+ * Translation url
92
+ */
93
+ this.translationUrl = '';
94
+ /**
95
+ * Endpoint
96
+ */
97
+ this.passwordReset = false;
98
+ /**
99
+ * Endpoint
100
+ */
101
+ this.userEmailRegex = '^(?:[A-Z0-9][A-Z0-9._%@+-]{5,30}|[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4})$';
102
+ /**
103
+ * Endpoint
104
+ */
105
+ this.passwordRegex = '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\\w\\s]).{8,20}$';
106
+ /**
107
+ * Username
108
+ */
109
+ this.userNameEmail = '';
110
+ /**
111
+ * Password
112
+ */
113
+ this.userPassword = '';
114
+ this.isValidUserEmail = true;
115
+ this.isValidPassword = true;
116
+ this.isPasswordVisible = false;
117
+ this.limitStylingAppends = false;
118
+ this.errorMessage = '';
119
+ this.checkValid = true;
120
+ this.userLogin = async ({ username, password }) => {
121
+ let headers = {
122
+ 'Content-Type': 'application/json'
123
+ };
124
+ let bodyData = {
125
+ username,
126
+ password
127
+ };
128
+ let options = {
129
+ method: 'POST',
130
+ headers,
131
+ body: JSON.stringify(bodyData),
132
+ };
133
+ fetch(`${this.endpoint}/player/legislation/login`, options)
134
+ .then((res) => {
135
+ return res.json();
136
+ }).then((data) => {
137
+ var _a;
138
+ if (data.sessionId) {
139
+ window.postMessage({ type: 'UserSessionID', session: data.sessionID, userid: data.universalID }, window.location.href);
140
+ this.isFormValid(this.errorMessage = '');
141
+ }
142
+ else {
143
+ let error = (_a = data === null || data === void 0 ? void 0 : data.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.message;
144
+ this.errorMessage = error;
145
+ this.isFormValid(this.errorMessage);
146
+ window.postMessage({ type: "HasError", error }, window.location.href);
147
+ window.postMessage({ type: 'WidgetNotification', data: {
148
+ type: 'error',
149
+ message: error
150
+ } }, window.location.href);
151
+ }
152
+ });
153
+ };
154
+ this.isFormValid = (error) => {
155
+ this.checkValid = (error === '');
156
+ };
157
+ this.setClientStyling = () => {
158
+ let sheet = document.createElement('style');
159
+ sheet.innerHTML = this.clientStyling;
160
+ this.stylingContainer.appendChild(sheet);
161
+ };
162
+ this.setClientStylingURL = () => {
163
+ let url = new URL(this.clientStylingUrl);
164
+ let cssFile = document.createElement('style');
165
+ fetch(url.href)
166
+ .then((res) => res.text())
167
+ .then((data) => {
168
+ cssFile.innerHTML = data;
169
+ setTimeout(() => { this.stylingContainer.appendChild(cssFile); }, 1);
170
+ });
171
+ };
172
+ this.handleInputChange = (event, location) => {
173
+ this.checkValid = true;
174
+ const inputValue = event.target.value;
175
+ if (location === 'user') {
176
+ this.userNameEmail = inputValue;
177
+ this.isValidUserEmail = this.userEmailValidation(this.userNameEmail);
178
+ }
179
+ else {
180
+ this.userPassword = inputValue;
181
+ this.isValidPassword = this.passwordValidation(inputValue);
182
+ }
183
+ };
184
+ this.userEmailValidation = (input) => {
185
+ const regex = new RegExp(this.userEmailRegex, "i");
186
+ return regex.test(input);
187
+ };
188
+ this.passwordValidation = (input) => {
189
+ const regex = new RegExp(this.passwordRegex, '');
190
+ return regex.test(input);
191
+ };
192
+ this.togglePassword = () => {
193
+ this.isPasswordVisible = !this.isPasswordVisible;
194
+ };
195
+ this.resetPassword = () => {
196
+ window.postMessage({ type: "ResetPassword" }, window.location.href);
197
+ };
198
+ }
199
+ handleNewTranslations() {
200
+ getTranslations(this.translationUrl);
201
+ }
202
+ async componentWillLoad() {
203
+ if (this.translationUrl.length > 2) {
204
+ await getTranslations(this.translationUrl);
205
+ }
206
+ }
207
+ componentDidRender() {
208
+ // start custom styling area
209
+ if (!this.limitStylingAppends && this.stylingContainer) {
210
+ if (this.clientStyling)
211
+ this.setClientStyling();
212
+ if (this.clientStylingUrl)
213
+ this.setClientStylingURL();
214
+ this.limitStylingAppends = true;
215
+ }
216
+ // end custom styling area
217
+ }
218
+ render() {
219
+ let visibilityIcon = h("span", { class: "InputIcon" }, this.isPasswordVisible &&
220
+ h("svg", { onClick: () => this.togglePassword(), class: "TogglePasswordVisibility", part: "TogglePasswordVisibility", xmlns: "http://www.w3.org/2000/svg", width: "18.844", height: "12.887", viewBox: "0 0 18.844 12.887" }, h("g", { transform: "translate(-110.856 -23.242)" }, h("circle", { class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), h("g", { transform: "translate(117.499 27.37)" }, h("path", { class: "PasswordVisibilityIcon", d: "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z", transform: "translate(-142.164 -39.123)" }), h("path", { class: "PasswordVisibilityIcon", d: "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z", transform: "translate(-136.413 -42.068)" })), h("g", { transform: "translate(110.856 24.899)" }, h("path", { class: "PasswordVisibilityIcon", d: "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z", transform: "translate(-110.856 -33.157)" }), h("path", { class: "PasswordVisibilityIcon", d: "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z", transform: "translate(-130.743 -29.617)" })), h("rect", { class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" }))), !this.isPasswordVisible &&
221
+ h("svg", { onClick: () => this.togglePassword(), class: "TogglePasswordVisibility PasswordVisible", part: "TogglePasswordVisibility", xmlns: "http://www.w3.org/2000/svg", width: "18.843", height: "10.5", viewBox: "0 0 18.843 10.5" }, h("g", { transform: "translate(-14.185 -27.832)" }, h("path", { class: "PasswordVisibilityIcon", d: "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z", transform: "translate(0)" }), h("circle", { class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
222
+ let userIdentification = h("div", { class: "FormBox", ref: el => this.stylingContainer = el }, h("div", { class: "FormValue" }, h("div", { class: (!this.isValidUserEmail || !this.checkValid) ? 'InputBox InputInvalidBox' : 'InputBox' }, h("input", { type: "text", placeholder: '', value: this.userNameEmail, onFocus: (event) => this.handleInputChange(event, 'user'), onInput: (event) => this.handleInputChange(event, 'user'), required: true }), h("label", { class: (this.userNameEmail ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserEmail || !this.checkValid ? 'FieldInvalid' : '') }, translate('userEmail', this.lang)), !this.isValidUserEmail &&
223
+ h("p", { class: "InvalidField" }, translate('invalidField', this.lang))), h("div", { class: (!this.isValidPassword || !this.checkValid) ? 'InputBox InputInvalidBox' : 'InputBox' }, visibilityIcon, h("input", { type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.userPassword, onFocus: (event) => this.handleInputChange(event, 'password'), onInput: (event) => this.handleInputChange(event, 'password'), required: true }), h("label", { class: (this.userPassword ? 'FieldFilledIn' : '') + ' ' + (!this.isValidPassword || !this.checkValid ? 'FieldInvalid' : '') }, translate('password', this.lang)), !this.isValidPassword &&
224
+ h("p", { class: "InvalidField" }, translate('invalidField', this.lang))), this.passwordReset &&
225
+ h("div", { class: "ForgotPassword" }, h("button", { onClick: () => this.resetPassword() }, translate('forgotPassword', this.lang))), h("button", { disabled: (!this.isValidUserEmail || !this.isValidPassword || !this.userNameEmail || !this.userPassword), class: "SubmitCredentials", onClick: () => this.userLogin({ username: this.userNameEmail, password: this.userPassword }) }, translate('login', this.lang)), this.errorMessage &&
226
+ h("p", { class: "CredentialsError" }, this.errorMessage)));
227
+ return h("section", null, userIdentification);
228
+ }
229
+ static get watchers() { return {
230
+ "translationUrl": ["handleNewTranslations"]
231
+ }; }
232
+ };
233
+ UserLogin.style = userLoginCss;
234
+
235
+ export { UserLogin as user_login };
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-58908c9a.js';
2
+
3
+ /*
4
+ Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ const patchBrowser = () => {
7
+ const importMeta = import.meta.url;
8
+ const opts = {};
9
+ if (importMeta !== '') {
10
+ opts.resourcesUrl = new URL('.', importMeta).href;
11
+ }
12
+ return promiseResolve(opts);
13
+ };
14
+
15
+ patchBrowser().then(options => {
16
+ 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":[516,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"passwordRegex":[513,"password-regex"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"isValidPassword":[32],"isPasswordVisible":[32],"limitStylingAppends":[32],"errorMessage":[32],"checkValid":[32]}]]]], options);
17
+ });
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,22 @@
1
+ import { sass } from '@stencil/sass';
2
+ export const config = {
3
+ namespace: 'user-login',
4
+ taskQueue: 'async',
5
+ plugins: [sass()],
6
+ outputTargets: [
7
+ {
8
+ type: 'dist',
9
+ esmLoaderPath: '../loader',
10
+ },
11
+ {
12
+ type: 'dist-custom-elements',
13
+ },
14
+ {
15
+ type: 'docs-readme',
16
+ },
17
+ {
18
+ type: 'www',
19
+ serviceWorker: null, // disable service workers
20
+ },
21
+ ],
22
+ };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,65 @@
1
+ export declare class UserLogin {
2
+ /**
3
+ * Endpoint
4
+ */
5
+ endpoint: string;
6
+ /**
7
+ * Language
8
+ */
9
+ lang: string;
10
+ /**
11
+ * Client styling
12
+ */
13
+ clientStyling: string;
14
+ /**
15
+ * Client styling by url
16
+ */
17
+ clientStylingUrl: string;
18
+ /**
19
+ * Translation url
20
+ */
21
+ translationUrl: string;
22
+ /**
23
+ * Endpoint
24
+ */
25
+ passwordReset: boolean;
26
+ /**
27
+ * Endpoint
28
+ */
29
+ userEmailRegex: string;
30
+ /**
31
+ * Endpoint
32
+ */
33
+ passwordRegex: string;
34
+ /**
35
+ * Username
36
+ */
37
+ userNameEmail: string;
38
+ /**
39
+ * Password
40
+ */
41
+ userPassword: string;
42
+ isValidUserEmail: boolean;
43
+ isValidPassword: boolean;
44
+ isPasswordVisible: boolean;
45
+ private limitStylingAppends;
46
+ private errorMessage;
47
+ private checkValid;
48
+ handleNewTranslations(): void;
49
+ componentWillLoad(): Promise<void>;
50
+ private stylingContainer;
51
+ userLogin: ({ username, password }: {
52
+ username: any;
53
+ password: any;
54
+ }) => Promise<any>;
55
+ isFormValid: (error: any) => void;
56
+ setClientStyling: () => void;
57
+ setClientStylingURL: () => void;
58
+ handleInputChange: (event: Event, location: string) => void;
59
+ userEmailValidation: (input: any) => boolean;
60
+ passwordValidation: (input: any) => boolean;
61
+ togglePassword: () => void;
62
+ resetPassword: () => void;
63
+ componentDidRender(): void;
64
+ render(): any;
65
+ }
@@ -0,0 +1,101 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface UserLogin {
10
+ /**
11
+ * Client styling
12
+ */
13
+ "clientStyling": string;
14
+ /**
15
+ * Client styling by url
16
+ */
17
+ "clientStylingUrl": string;
18
+ /**
19
+ * Endpoint
20
+ */
21
+ "endpoint": string;
22
+ /**
23
+ * Language
24
+ */
25
+ "lang": string;
26
+ /**
27
+ * Endpoint
28
+ */
29
+ "passwordRegex": string;
30
+ /**
31
+ * Endpoint
32
+ */
33
+ "passwordReset": boolean;
34
+ /**
35
+ * Translation url
36
+ */
37
+ "translationUrl": string;
38
+ /**
39
+ * Endpoint
40
+ */
41
+ "userEmailRegex": string;
42
+ }
43
+ }
44
+ declare global {
45
+ interface HTMLUserLoginElement extends Components.UserLogin, HTMLStencilElement {
46
+ }
47
+ var HTMLUserLoginElement: {
48
+ prototype: HTMLUserLoginElement;
49
+ new (): HTMLUserLoginElement;
50
+ };
51
+ interface HTMLElementTagNameMap {
52
+ "user-login": HTMLUserLoginElement;
53
+ }
54
+ }
55
+ declare namespace LocalJSX {
56
+ interface UserLogin {
57
+ /**
58
+ * Client styling
59
+ */
60
+ "clientStyling"?: string;
61
+ /**
62
+ * Client styling by url
63
+ */
64
+ "clientStylingUrl"?: string;
65
+ /**
66
+ * Endpoint
67
+ */
68
+ "endpoint"?: string;
69
+ /**
70
+ * Language
71
+ */
72
+ "lang"?: string;
73
+ /**
74
+ * Endpoint
75
+ */
76
+ "passwordRegex"?: string;
77
+ /**
78
+ * Endpoint
79
+ */
80
+ "passwordReset"?: boolean;
81
+ /**
82
+ * Translation url
83
+ */
84
+ "translationUrl"?: string;
85
+ /**
86
+ * Endpoint
87
+ */
88
+ "userEmailRegex"?: string;
89
+ }
90
+ interface IntrinsicElements {
91
+ "user-login": UserLogin;
92
+ }
93
+ }
94
+ export { LocalJSX as JSX };
95
+ declare module "@stencil/core" {
96
+ export namespace JSX {
97
+ interface IntrinsicElements {
98
+ "user-login": LocalJSX.UserLogin & JSXBase.HTMLAttributes<HTMLUserLoginElement>;
99
+ }
100
+ }
101
+ }
@@ -0,0 +1 @@
1
+ export * from './components';