@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.
- package/dist/squatch.cjs.js +3 -3
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +3 -3
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +3 -3
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/utils/widgetUtils.d.ts +1 -1
- package/package.json +1 -1
package/dist/squatch.cjs.js
CHANGED
|
@@ -783,7 +783,7 @@ function formatWidth({
|
|
|
783
783
|
unit
|
|
784
784
|
}) {
|
|
785
785
|
switch (unit) {
|
|
786
|
-
case "
|
|
786
|
+
case "px":
|
|
787
787
|
return `${value}px`;
|
|
788
788
|
case "%":
|
|
789
789
|
return `${value}%`;
|
|
@@ -1117,7 +1117,7 @@ class EmbedWidget extends Widget {
|
|
|
1117
1117
|
element.style["overflow-y"] = "hidden";
|
|
1118
1118
|
}
|
|
1119
1119
|
const brandingConfig = (_c = (_b = this.context.widgetConfig) == null ? void 0 : _b.values) == null ? void 0 : _c.brandingConfig;
|
|
1120
|
-
const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.
|
|
1120
|
+
const sizes = (_d = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _d.embeddedWidgets;
|
|
1121
1121
|
const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "100%";
|
|
1122
1122
|
const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "100%";
|
|
1123
1123
|
element.style.maxWidth = maxWidth;
|
|
@@ -1895,7 +1895,7 @@ class DeclarativeWidget extends HTMLElement {
|
|
|
1895
1895
|
user: config.user,
|
|
1896
1896
|
container: this.container || void 0,
|
|
1897
1897
|
engagementMedium: this.type,
|
|
1898
|
-
|
|
1898
|
+
widgetConfig: res.widgetConfig
|
|
1899
1899
|
},
|
|
1900
1900
|
type: this.widgetType,
|
|
1901
1901
|
domain: ((_a2 = this.config) == null ? void 0 : _a2.domain) || DEFAULT_DOMAIN,
|