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