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

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
@@ -785,7 +785,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
785
785
  unit
786
786
  }) {
787
787
  switch (unit) {
788
- case "PX":
788
+ case "px":
789
789
  return `${value}px`;
790
790
  case "%":
791
791
  return `${value}%`;
@@ -1118,8 +1118,9 @@ 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
- const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.brandingConfig;
1122
- const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embedWidgets;
1121
+ console.log({ context: this.context });
1122
+ const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.SquatchBrandingConfig;
1123
+ const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embeddedWidgets;
1123
1124
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "100%";
1124
1125
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
1125
1126
  element.style.maxWidth = maxWidth;
@@ -1251,7 +1252,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1251
1252
  _createPopupDialog() {
1252
1253
  var _a2, _b, _c;
1253
1254
  const dialog = document.createElement("dialog");
1254
- const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1255
+ const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.SquatchBrandingConfig;
1255
1256
  const sizes = (_c = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _c.popupWidgets;
1256
1257
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
1257
1258
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "500px";
@@ -1897,7 +1898,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1897
1898
  user: config.user,
1898
1899
  container: this.container || void 0,
1899
1900
  engagementMedium: this.type,
1900
- config: res.widgetConfig
1901
+ widgetConfig: res.widgetConfig
1901
1902
  },
1902
1903
  type: this.widgetType,
1903
1904
  domain: ((_a2 = this.config) == null ? void 0 : _a2.domain) || DEFAULT_DOMAIN,