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

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.
@@ -781,7 +781,7 @@ function formatWidth({
781
781
  unit
782
782
  }) {
783
783
  switch (unit) {
784
- case "PX":
784
+ case "px":
785
785
  return `${value}px`;
786
786
  case "%":
787
787
  return `${value}%`;
@@ -1115,7 +1115,7 @@ class EmbedWidget extends Widget {
1115
1115
  element.style["overflow-y"] = "hidden";
1116
1116
  }
1117
1117
  const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.brandingConfig;
1118
- const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embedWidgets;
1118
+ const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embeddedWidgets;
1119
1119
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "100%";
1120
1120
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
1121
1121
  element.style.maxWidth = maxWidth;
@@ -1893,7 +1893,7 @@ class DeclarativeWidget extends HTMLElement {
1893
1893
  user: config.user,
1894
1894
  container: this.container || void 0,
1895
1895
  engagementMedium: this.type,
1896
- config: res.widgetConfig
1896
+ widgetConfig: res.widgetConfig
1897
1897
  },
1898
1898
  type: this.widgetType,
1899
1899
  domain: ((_a2 = this.config) == null ? void 0 : _a2.domain) || DEFAULT_DOMAIN,