@everymatrix/general-registration-otp-standalone 0.0.1 → 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
|
@@ -1379,17 +1379,19 @@ const GeneralRegistrationOtpStandalone = class {
|
|
|
1379
1379
|
registrationId: stepResult.registrationId
|
|
1380
1380
|
});
|
|
1381
1381
|
window.postMessage({ type: 'registrationSuccessful', userId: result === null || result === void 0 ? void 0 : result.userId, extraActions: [] }, window.location.href);
|
|
1382
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.language) } }, window.location.href);
|
|
1382
1383
|
}
|
|
1383
1384
|
catch (error) {
|
|
1384
1385
|
this.errorMessage = this.getErrorMessage(error);
|
|
1385
1386
|
window.postMessage({ type: 'registrationFailed', errorMessage: this.errorMessage }, window.location.href);
|
|
1387
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMessage } }, window.location.href);
|
|
1386
1388
|
}
|
|
1387
1389
|
finally {
|
|
1388
1390
|
this.isSubmitting = false;
|
|
1389
1391
|
}
|
|
1390
1392
|
}
|
|
1391
1393
|
render() {
|
|
1392
|
-
return (h("div", { key: '
|
|
1394
|
+
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)))));
|
|
1393
1395
|
}
|
|
1394
1396
|
get host() { return getElement(this); }
|
|
1395
1397
|
static get watchers() { return {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { G as GeneralRegistrationOtpStandalone } from './general-registration-otp-standalone-
|
|
1
|
+
export { G as GeneralRegistrationOtpStandalone } from './general-registration-otp-standalone-62740d31.js';
|
|
2
2
|
import './index-5fadd4cf.js';
|