@saasquatch/squatch-js 2.8.2-21 → 2.8.2-22
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 +10 -11
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +10 -11
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +10 -11
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/package.json +1 -1
package/dist/squatch.esm.js
CHANGED
|
@@ -1118,12 +1118,12 @@ class EmbedWidget extends Widget {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
async load() {
|
|
1120
1120
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
1121
|
-
const
|
|
1122
|
-
const initialHeight =
|
|
1123
|
-
(_d = (_c =
|
|
1124
|
-
(_f = (_e =
|
|
1125
|
-
(_g =
|
|
1126
|
-
const sizes = (_h =
|
|
1121
|
+
const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
|
|
1122
|
+
const initialHeight = brandingConfig == null ? void 0 : brandingConfig.loadingHeight;
|
|
1123
|
+
(_d = (_c = brandingConfig == null ? void 0 : brandingConfig.color) == null ? void 0 : _c.loadingSkeleton) == null ? void 0 : _d.background;
|
|
1124
|
+
(_f = (_e = brandingConfig == null ? void 0 : brandingConfig.color) == null ? void 0 : _e.loadingSkeleton) == null ? void 0 : _f.animationBackground;
|
|
1125
|
+
(_g = brandingConfig == null ? void 0 : brandingConfig.border) == null ? void 0 : _g.borderColor;
|
|
1126
|
+
const sizes = (_h = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _h.embeddedWidgets;
|
|
1127
1127
|
const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "";
|
|
1128
1128
|
const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "";
|
|
1129
1129
|
const frame = this._createFrame({
|
|
@@ -1160,12 +1160,12 @@ class EmbedWidget extends Widget {
|
|
|
1160
1160
|
frameDoc.open();
|
|
1161
1161
|
const domain = this.widgetApi.domain;
|
|
1162
1162
|
frameDoc.write(`
|
|
1163
|
-
${((_k =
|
|
1163
|
+
${((_k = brandingConfig == null ? void 0 : brandingConfig.main) == null ? void 0 : _k.brandFont) ? `
|
|
1164
1164
|
<link rel="preconnect" href="https://fast${domain === "https://staging.referralsaasquatch.com" && "-staging"}.ssqt.io">
|
|
1165
1165
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
1166
1166
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
1167
1167
|
<link rel="preload" href="https://fonts.googleapis.com/css2?family=${encodeURIComponent(
|
|
1168
|
-
(_l =
|
|
1168
|
+
(_l = brandingConfig == null ? void 0 : brandingConfig.main) == null ? void 0 : _l.brandFont
|
|
1169
1169
|
)}" as="style">` : ""}
|
|
1170
1170
|
<script src="${this.npmCdn}/resize-observer-polyfill@1.5.x"><\/script>
|
|
1171
1171
|
<style data-styles>
|
|
@@ -1277,8 +1277,8 @@ class PopupWidget extends Widget {
|
|
|
1277
1277
|
_createPopupDialog() {
|
|
1278
1278
|
var _a2, _b, _c;
|
|
1279
1279
|
const dialog = document.createElement("dialog");
|
|
1280
|
-
const
|
|
1281
|
-
const sizes = (_c =
|
|
1280
|
+
const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
|
|
1281
|
+
const sizes = (_c = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _c.popupWidgets;
|
|
1282
1282
|
const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "auto";
|
|
1283
1283
|
const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "500px";
|
|
1284
1284
|
dialog.id = this.id;
|
|
@@ -2440,7 +2440,6 @@ class DeclarativeEmbedWidget extends DeclarativeWidget {
|
|
|
2440
2440
|
async connectedCallback() {
|
|
2441
2441
|
this.loaded = true;
|
|
2442
2442
|
this.container = this.getAttribute("container");
|
|
2443
|
-
brandingConfig == null ? void 0 : brandingConfig.loadingHeight;
|
|
2444
2443
|
const skeletonHTML = getSkeleton({});
|
|
2445
2444
|
const skeletonContainer = document.createElement("div");
|
|
2446
2445
|
skeletonContainer.id = "loading-skeleton";
|