@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.
@@ -1116,8 +1116,7 @@ class EmbedWidget extends Widget {
1116
1116
  element.style.height = "0";
1117
1117
  element.style["overflow-y"] = "hidden";
1118
1118
  }
1119
- console.log({ context: this.context });
1120
- const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.SquatchBrandingConfig;
1119
+ const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.brandingConfig;
1121
1120
  const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embeddedWidgets;
1122
1121
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "100%";
1123
1122
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
@@ -1250,7 +1249,7 @@ class PopupWidget extends Widget {
1250
1249
  _createPopupDialog() {
1251
1250
  var _a2, _b, _c;
1252
1251
  const dialog = document.createElement("dialog");
1253
- const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.SquatchBrandingConfig;
1252
+ const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1254
1253
  const sizes = (_c = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _c.popupWidgets;
1255
1254
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
1256
1255
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "500px";
@@ -1424,7 +1423,12 @@ class Widgets {
1424
1423
  user: clean.user,
1425
1424
  engagementMedium: config.engagementMedium,
1426
1425
  container: config.container,
1427
- trigger: config.trigger
1426
+ trigger: config.trigger,
1427
+ widgetConfig: {
1428
+ values: {
1429
+ brandingConfig: response == null ? void 0 : response.brandingConfig
1430
+ }
1431
+ }
1428
1432
  }),
1429
1433
  user: response.user
1430
1434
  };
@@ -1461,7 +1465,12 @@ class Widgets {
1461
1465
  type: "passwordless",
1462
1466
  engagementMedium: clean.engagementMedium,
1463
1467
  container: clean.container,
1464
- trigger: clean.trigger
1468
+ trigger: clean.trigger,
1469
+ widgetConfig: {
1470
+ values: {
1471
+ brandingConfig: response == null ? void 0 : response.brandingConfig
1472
+ }
1473
+ }
1465
1474
  }),
1466
1475
  user: response.user
1467
1476
  };