kwikid-forms 0.3.19 → 0.3.21

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.
@@ -5097,9 +5097,11 @@ class KwikIDFormViewComponent {
5097
5097
  }
5098
5098
  setLoaderType() {
5099
5099
  this.loaderType = "CENTER_SCREEN";
5100
- if (checkObjectKeyExists(this.userConfig, "utilityFlags")) {
5101
- if (checkObjectKeyExists(this.userConfig.utilityFlags, "loaderType")) {
5102
- this.loaderType = this.userConfig.utilityFlags.loaderType;
5100
+ if (this.userConfig !== undefined) {
5101
+ if (checkObjectKeyExists(this.userConfig, "utilityFlags")) {
5102
+ if (checkObjectKeyExists(this.userConfig.utilityFlags, "loaderType")) {
5103
+ this.loaderType = this.userConfig.utilityFlags.loaderType;
5104
+ }
5103
5105
  }
5104
5106
  }
5105
5107
  if (this.loaderType !== "FULL_SCREEN" &&
@@ -6112,7 +6114,7 @@ class KwikIDFormViewComponent {
6112
6114
  showErrorPreview(previewProperties) {
6113
6115
  this.showPreview({
6114
6116
  html: {
6115
- after: `<div style=\"padding-bottom:0.25rem;padding-top: 0.25rem;position: absolute;margin-top: calc(50vh);font-size: 1.4rem;background: white;padding: 2rem;border-radius: 1rem;box-shadow: 0px 0px 10px -3px black;overflow: auto;height: fit-content;max-height: 90vh;width: 100%;\">Error: ${previewProperties.message.message}</div>`
6117
+ after: `<div style=\"padding-bottom:0.25rem;padding-top: 0.25rem;position: absolute;margin-top: calc(50vh);font-size: 1.4rem;background: white;padding: 2rem;border-radius: 1rem;box-shadow: 0px 0px 10px -3px black;overflow: auto;height: fit-content;max-height: 90vh; width: 70vw; margin-left: calc(15vw); line-height: 2rem;\">Error: ${previewProperties.message.message}</div>`
6116
6118
  },
6117
6119
  type: "popup"
6118
6120
  });