@saasquatch/squatch-js 2.8.0-2 → 2.8.0-4

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/squatch.js CHANGED
@@ -1118,8 +1118,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1118
1118
  element.style.height = "0";
1119
1119
  element.style["overflow-y"] = "hidden";
1120
1120
  }
1121
- console.log({ context: this.context });
1122
- const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.SquatchBrandingConfig;
1121
+ const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.brandingConfig;
1123
1122
  const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embeddedWidgets;
1124
1123
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "100%";
1125
1124
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
@@ -1252,7 +1251,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1252
1251
  _createPopupDialog() {
1253
1252
  var _a2, _b, _c;
1254
1253
  const dialog = document.createElement("dialog");
1255
- const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.SquatchBrandingConfig;
1254
+ const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1256
1255
  const sizes = (_c = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _c.popupWidgets;
1257
1256
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
1258
1257
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "500px";
@@ -1426,7 +1425,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1426
1425
  user: clean.user,
1427
1426
  engagementMedium: config.engagementMedium,
1428
1427
  container: config.container,
1429
- trigger: config.trigger
1428
+ trigger: config.trigger,
1429
+ widgetConfig: {
1430
+ values: {
1431
+ brandingConfig: response == null ? void 0 : response.brandingConfig
1432
+ }
1433
+ }
1430
1434
  }),
1431
1435
  user: response.user
1432
1436
  };
@@ -1463,7 +1467,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1463
1467
  type: "passwordless",
1464
1468
  engagementMedium: clean.engagementMedium,
1465
1469
  container: clean.container,
1466
- trigger: clean.trigger
1470
+ trigger: clean.trigger,
1471
+ widgetConfig: {
1472
+ values: {
1473
+ brandingConfig: response == null ? void 0 : response.brandingConfig
1474
+ }
1475
+ }
1467
1476
  }),
1468
1477
  user: response.user
1469
1478
  };