@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.
Files changed (23) hide show
  1. package/dist/cjs/checkbox-group-input_15.cjs.entry.js +253 -253
  2. package/dist/cjs/{general-registration-otp-standalone-597153d4.js → general-registration-otp-standalone-3422f533.js} +3 -1
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/collection/components/general-registration-otp-standalone/general-registration-otp-standalone.js +3 -1
  5. package/dist/esm/checkbox-group-input_15.entry.js +254 -254
  6. package/dist/esm/{general-registration-otp-standalone-f724cbe2.js → general-registration-otp-standalone-62740d31.js} +3 -1
  7. package/dist/esm/index.js +1 -1
  8. package/dist/general-registration-otp-standalone/checkbox-group-input_15.entry.js +4 -4
  9. package/dist/general-registration-otp-standalone/{general-registration-otp-standalone-f724cbe2.js → general-registration-otp-standalone-62740d31.js} +1 -1
  10. package/dist/general-registration-otp-standalone/index.esm.js +1 -1
  11. 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
  12. 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
  13. package/package.json +1 -1
  14. 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
  15. 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
  16. /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
  17. /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
  18. /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
  19. /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
  20. /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
  21. /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
  22. /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
  23. /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: '28793fb63e99cffcc3db3da99f3594987114f276', class: "registration-otp", ref: el => (this.stylingContainer = el) }, h("form", { key: '737bfd076f32e84b67271a1473d5f0dc52b6043b', class: "registration-otp__form", onSubmit: event => this.handleSubmit(event) }, h("general-input", { key: '46685ab2b974e02bc60f97a6863680afe835326a', 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: 'dfcadb1ca92b303f810ce9bd608da7787dd803dd', class: "registration-otp__error", role: "alert" }, this.errorMessage), h("button", { key: '1d850e57e3d507a967255d497f05d3c4831912c0', class: "registration-otp__submit", type: "submit", disabled: this.isSubmitting || !this.isOtpValid }, translate('doneButton', this.language)))));
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-f724cbe2.js';
1
+ export { G as GeneralRegistrationOtpStandalone } from './general-registration-otp-standalone-62740d31.js';
2
2
  import './index-5fadd4cf.js';