@everymatrix/general-registration-otp-standalone 0.0.2 → 0.0.3
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/checkbox-group-input_15.cjs.entry.js +253 -253
- package/dist/cjs/{general-registration-otp-standalone-597153d4.js → general-registration-otp-standalone-3422f533.js} +3 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/general-registration-otp-standalone/general-registration-otp-standalone.js +3 -1
- package/dist/esm/checkbox-group-input_15.entry.js +254 -254
- package/dist/esm/{general-registration-otp-standalone-f724cbe2.js → general-registration-otp-standalone-62740d31.js} +3 -1
- package/dist/esm/index.js +1 -1
- package/dist/general-registration-otp-standalone/checkbox-group-input_15.entry.js +4 -4
- package/dist/general-registration-otp-standalone/{general-registration-otp-standalone-f724cbe2.js → general-registration-otp-standalone-62740d31.js} +1 -1
- package/dist/general-registration-otp-standalone/index.esm.js +1 -1
- package/dist/types/Users/chilgoe/Documents/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/stencil.config.d.ts +2 -0
- package/dist/types/Users/chilgoe/Documents/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/packages/stencil/general-registration-otp-standalone/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/chilgoe/Documents}/widgets-monorepo/packages/stencil/general-registration-otp-standalone/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1381,17 +1381,19 @@ const GeneralRegistrationOtpStandalone = class {
|
|
|
1381
1381
|
registrationId: stepResult.registrationId
|
|
1382
1382
|
});
|
|
1383
1383
|
window.postMessage({ type: 'registrationSuccessful', userId: result === null || result === void 0 ? void 0 : result.userId, extraActions: [] }, window.location.href);
|
|
1384
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.language) } }, window.location.href);
|
|
1384
1385
|
}
|
|
1385
1386
|
catch (error) {
|
|
1386
1387
|
this.errorMessage = this.getErrorMessage(error);
|
|
1387
1388
|
window.postMessage({ type: 'registrationFailed', errorMessage: this.errorMessage }, window.location.href);
|
|
1389
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMessage } }, window.location.href);
|
|
1388
1390
|
}
|
|
1389
1391
|
finally {
|
|
1390
1392
|
this.isSubmitting = false;
|
|
1391
1393
|
}
|
|
1392
1394
|
}
|
|
1393
1395
|
render() {
|
|
1394
|
-
return (index.h("div", { key: '
|
|
1396
|
+
return (index.h("div", { key: 'd5013543cd8c5d8d465babebe8076b777f092eb2', class: "registration-otp", ref: el => (this.stylingContainer = el) }, index.h("form", { key: '64e04ad25e0b31868426dc3b3f6a52a841fd0c1f', class: "registration-otp__form", onSubmit: event => this.handleSubmit(event) }, index.h("general-input", { key: 'bfa197f23758acdf92f6aa6266d6e443b5ed0416', type: "twofa", name: this.otpFieldName, validation: { mandatory: true, maxLength: this.otpLength }, emitValue: true, language: this.language, translationUrl: this.translationUrl, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, twofaDestination: this.destination, twofaResendIntervalSeconds: this.resendIntervalSeconds, twofaStartCountDown: this.startCountDown, pinAttemptsExceeded: this.pinAttemptsExceeded }), this.errorMessage && index.h("div", { key: '650ec330269c98649bc6ab31a8d19251a19a551b', class: "registration-otp__error", role: "alert" }, this.errorMessage), index.h("button", { key: 'd4d626673bbb05fccb4b9cd65e25564601e3ee09', class: "registration-otp__submit", type: "submit", disabled: this.isSubmitting || !this.isOtpValid }, translate('doneButton', this.language)))));
|
|
1395
1397
|
}
|
|
1396
1398
|
get host() { return index.getElement(this); }
|
|
1397
1399
|
static get watchers() { return {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const generalRegistrationOtpStandalone = require('./general-registration-otp-standalone-
|
|
5
|
+
const generalRegistrationOtpStandalone = require('./general-registration-otp-standalone-3422f533.js');
|
|
6
6
|
require('./index-b0fda18c.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -144,17 +144,19 @@ export class GeneralRegistrationOtpStandalone {
|
|
|
144
144
|
registrationId: stepResult.registrationId
|
|
145
145
|
});
|
|
146
146
|
window.postMessage({ type: 'registrationSuccessful', userId: result === null || result === void 0 ? void 0 : result.userId, extraActions: [] }, window.location.href);
|
|
147
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.language) } }, window.location.href);
|
|
147
148
|
}
|
|
148
149
|
catch (error) {
|
|
149
150
|
this.errorMessage = this.getErrorMessage(error);
|
|
150
151
|
window.postMessage({ type: 'registrationFailed', errorMessage: this.errorMessage }, window.location.href);
|
|
152
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMessage } }, window.location.href);
|
|
151
153
|
}
|
|
152
154
|
finally {
|
|
153
155
|
this.isSubmitting = false;
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
158
|
render() {
|
|
157
|
-
return (h("div", { key: '
|
|
159
|
+
return (h("div", { key: 'd5013543cd8c5d8d465babebe8076b777f092eb2', class: "registration-otp", ref: el => (this.stylingContainer = el) }, h("form", { key: '64e04ad25e0b31868426dc3b3f6a52a841fd0c1f', class: "registration-otp__form", onSubmit: event => this.handleSubmit(event) }, h("general-input", { key: 'bfa197f23758acdf92f6aa6266d6e443b5ed0416', type: "twofa", name: this.otpFieldName, validation: { mandatory: true, maxLength: this.otpLength }, emitValue: true, language: this.language, translationUrl: this.translationUrl, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, twofaDestination: this.destination, twofaResendIntervalSeconds: this.resendIntervalSeconds, twofaStartCountDown: this.startCountDown, pinAttemptsExceeded: this.pinAttemptsExceeded }), this.errorMessage && h("div", { key: '650ec330269c98649bc6ab31a8d19251a19a551b', class: "registration-otp__error", role: "alert" }, this.errorMessage), h("button", { key: 'd4d626673bbb05fccb4b9cd65e25564601e3ee09', class: "registration-otp__submit", type: "submit", disabled: this.isSubmitting || !this.isOtpValid }, translate('doneButton', this.language)))));
|
|
158
160
|
}
|
|
159
161
|
static get is() { return "general-registration-otp-standalone"; }
|
|
160
162
|
static get encapsulation() { return "shadow"; }
|