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