@saasquatch/vanilla-components 1.2.6 → 1.2.7

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.
Files changed (40) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
  3. package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
  4. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +147 -147
  5. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  6. package/dist/collection/components/copy-button/copy-button.js +22 -22
  7. package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
  8. package/dist/collection/components/global-container/global-container.js +8 -8
  9. package/dist/collection/components/image-component/image-component.js +10 -10
  10. package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
  11. package/dist/collection/components/referral-list/referral-list.js +51 -51
  12. package/dist/collection/components/share-button/share-button.js +19 -19
  13. package/dist/collection/components/stat-component/stat-component.js +2 -2
  14. package/dist/collection/components/stats-container/stats-container.js +4 -4
  15. package/dist/collection/components/text-component/text-component.js +13 -13
  16. package/dist/collection/entrypoint.js +34 -34
  17. package/dist/collection/services/WidgetHost.js +195 -195
  18. package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
  19. package/dist/esm/sqh-close-button.entry.js +1 -1
  20. package/dist/esm/sqh-copy-button_12.entry.js +147 -147
  21. package/dist/esm/sqh-referral-code.entry.js +1 -1
  22. package/dist/esm-es5/sqh-close-button.entry.js +1 -1
  23. package/dist/esm-es5/sqh-copy-button_12.entry.js +2 -2
  24. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  25. package/dist/types/saasquatch.d.ts +105 -105
  26. package/dist/widget-components/entrypoint.js +34 -34
  27. package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
  28. package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
  29. package/dist/widget-components/p-58be1132.system.js +1 -1
  30. package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
  31. package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
  32. package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
  33. package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
  34. package/dist/widget-components/widget-components.esm.js +1 -1
  35. package/package.json +97 -97
  36. package/readme.md +52 -52
  37. package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
  38. /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
  39. /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
  40. /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
 
5
5
  /////////////////////////////////////
6
6
  ////// ////
@@ -2490,29 +2490,29 @@ const CopyButton = class {
2490
2490
  clipboard.on("error", this.notifyFailure.bind(this));
2491
2491
  }
2492
2492
  render() {
2493
- const style = css `
2494
- max-width: ${this.width}px;
2495
- background-color: ${this.backgroundcolor};
2496
- border: ${this.backgroundcolor};
2497
- color: ${this.textcolor};
2498
- border-radius: ${this.borderradius}px;
2499
- font-size: ${this.fontsize}px;
2500
-
2501
- &:hover {
2502
- background-color: ${shadeColor(this.backgroundcolor, 10)};
2503
- border-color: ${shadeColor(this.backgroundcolor, 12)};
2504
- color: ${this.textcolor};
2505
- }
2506
-
2507
- &:focus {
2508
- color: ${this.textcolor};
2509
- }
2493
+ const style = css `
2494
+ max-width: ${this.width}px;
2495
+ background-color: ${this.backgroundcolor};
2496
+ border: ${this.backgroundcolor};
2497
+ color: ${this.textcolor};
2498
+ border-radius: ${this.borderradius}px;
2499
+ font-size: ${this.fontsize}px;
2500
+
2501
+ &:hover {
2502
+ background-color: ${shadeColor(this.backgroundcolor, 10)};
2503
+ border-color: ${shadeColor(this.backgroundcolor, 12)};
2504
+ color: ${this.textcolor};
2505
+ }
2506
+
2507
+ &:focus {
2508
+ color: ${this.textcolor};
2509
+ }
2510
2510
  `;
2511
- const code = css `
2512
- text-align: center;
2513
- font-weight: bold;
2514
- font-size: ${this.codefontsize};
2515
- color: ${this.codefontcolor};
2511
+ const code = css `
2512
+ text-align: center;
2513
+ font-weight: bold;
2514
+ font-size: ${this.codefontsize};
2515
+ color: ${this.codefontcolor};
2516
2516
  `;
2517
2517
  const classes = [`sqh-copy-button`, style].join(" ");
2518
2518
  return (!this.ishidden && (h("div", null, h("div", { class: code }, this.fueltankcode), h("div", { class: "sqh-align-button" }, h("span", { class: "label fade", id: "squatch-copy-notification" }, this.copysuccess), h("button", { class: classes, "data-clipboard-text": this.fueltankcode, "data-clipboard-notification": "#squatch-copy-notification" }, this.text)))));
@@ -2562,21 +2562,21 @@ const CopyLinkButton = class {
2562
2562
  clipboard.on("error", this.notifyFailure.bind(this));
2563
2563
  }
2564
2564
  render() {
2565
- const myStyle = css `
2566
- background-color: ${this.buttoncolor};
2567
- border: 1px solid ${this.buttoncolor};
2568
- color: ${this.textcolor};
2569
- font-family: ${"inherit"};
2570
-
2571
- &:hover {
2572
- background: ${shadeColor(this.buttoncolor, 10)};
2573
- border-color: ${shadeColor(this.buttoncolor, 12)};
2574
- color: ${this.textcolor};
2575
- }
2576
-
2577
- &:focus {
2578
- color: ${this.textcolor};
2579
- }
2565
+ const myStyle = css `
2566
+ background-color: ${this.buttoncolor};
2567
+ border: 1px solid ${this.buttoncolor};
2568
+ color: ${this.textcolor};
2569
+ font-family: ${"inherit"};
2570
+
2571
+ &:hover {
2572
+ background: ${shadeColor(this.buttoncolor, 10)};
2573
+ border-color: ${shadeColor(this.buttoncolor, 12)};
2574
+ color: ${this.textcolor};
2575
+ }
2576
+
2577
+ &:focus {
2578
+ color: ${this.textcolor};
2579
+ }
2580
2580
  `;
2581
2581
  const buttonClass = [`sqh-copy-btn icon-btn`, myStyle].join(" ");
2582
2582
  return (!this.ishidden && (h("div", { class: "input-group" }, h("input", { id: "squatch-share-link", value: this.sharelink, readonly: "readonly" }), h("span", { class: "label fade", id: "squatch-share-notification" }, this.copysuccess), h("span", { class: "input-group-btn" }, h("button", { class: buttonClass, "data-clipboard-target": "#squatch-share-link", "data-clipboard-notification": "#squatch-share-notification" }, h("i", { class: "icon icon-link" }), h("span", { class: "hidden-sm" }, this.text))))));
@@ -2591,21 +2591,21 @@ const GlobalContainer = class {
2591
2591
  registerInstance(this, hostRef);
2592
2592
  }
2593
2593
  LoadingState(props) {
2594
- const style = css `
2595
- background-color: ${props.loadingcolor || "#439B76"};
2594
+ const style = css `
2595
+ background-color: ${props.loadingcolor || "#439B76"};
2596
2596
  `;
2597
2597
  return (h("div", { class: "container-loading" }, h("div", { class: "loading-icon" }, h("div", { class: `bar1 ${style}` }), h("div", { class: `bar2 ${style}` }), h("div", { class: `bar3 ${style}` }), h("div", { class: `bar4 ${style}` }), h("div", { class: `bar5 ${style}` }))));
2598
2598
  }
2599
2599
  render() {
2600
- const style = css `
2601
- background-color: ${this.background};
2602
- font-family: ${this.fontfamily};
2603
- position: relative;
2604
- max-width: ${this.maxwidth};
2600
+ const style = css `
2601
+ background-color: ${this.background};
2602
+ font-family: ${this.fontfamily};
2603
+ position: relative;
2604
+ max-width: ${this.maxwidth};
2605
2605
  `;
2606
2606
  const robotoFont = (h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
2607
2607
  const artifaktFont = (h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
2608
- return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By Saasquatch")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2608
+ return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2609
2609
  }
2610
2610
  };
2611
2611
  GlobalContainer.style = globalContainerCss;
@@ -2618,17 +2618,17 @@ const ImageComponent = class {
2618
2618
  }
2619
2619
  render() {
2620
2620
  const imageString = this.url;
2621
- const alignment = css `
2622
- {
2623
- text-align: ${this.alignment};
2624
- }
2621
+ const alignment = css `
2622
+ {
2623
+ text-align: ${this.alignment};
2624
+ }
2625
2625
  `;
2626
- const myStyle = css `
2627
- {
2628
- width: ${this.width}px;
2629
- border-radius: ${this.borderradius}px;
2630
- ${this.css}
2631
- }
2626
+ const myStyle = css `
2627
+ {
2628
+ width: ${this.width}px;
2629
+ border-radius: ${this.borderradius}px;
2630
+ ${this.css}
2631
+ }
2632
2632
  `;
2633
2633
  return (!this.ishidden && (h("div", { class: alignment }, h("img", { src: imageString, class: myStyle }))));
2634
2634
  }
@@ -2657,8 +2657,8 @@ const PartnerStatComponent = class {
2657
2657
  this.statTypeUpdated.emit(stat);
2658
2658
  }
2659
2659
  render() {
2660
- const clz = css `
2661
- color: ${this.statcolor};
2660
+ const clz = css `
2661
+ color: ${this.statcolor};
2662
2662
  `;
2663
2663
  return (!this.ishidden && (h("div", { class: clz }, h("div", { class: "stat-value" }, this.statvalue), h("div", { class: "stat-description" }, this.statdescription))));
2664
2664
  }
@@ -7083,66 +7083,66 @@ const ReferralList = class {
7083
7083
  if (this.referrals.length < 3 && this.referredBy && this.showreferrer) {
7084
7084
  referredByRow = (h("sqh-referral-component", { id: uuid(), referral: this.referredBy, referralvariables: referralvariables, referraltype: "referrer", unknownuser: this.unknownuser, locale: this.internationalization ? this.locale : "en-US" }));
7085
7085
  }
7086
- const clz = css `
7087
- .squatch-referrals-icon.icon-ok-circled {
7088
- color: ${this.rewardcolor};
7089
- }
7090
- .squatch-referrals-icon.icon-attention {
7091
- color: ${this.pendingcolor};
7092
- }
7093
- .squatch-referrals-value {
7094
- color: ${this.rewardcolor};
7095
- }
7096
- .squatch-referrals-value.pending {
7097
- color: ${this.pendingcolor};
7098
- }
7099
- .squatch-referrals-value.referrer {
7100
- color: ${this.rewardcolor};
7101
- }
7102
- .squatch-referrals-value.expired {
7103
- color: ${this.expiredcolor};
7104
- }
7105
- .squatch-value-contents.expired {
7106
- color: ${this.expiredcolor};
7107
- }
7108
- .squatch-referrals-icon.icon-attention.expired {
7109
- color: ${this.expiredcolor};
7110
- }
7111
- .squatch-referrals-value.cancelled {
7112
- color: ${this.cancelledcolor};
7113
- }
7114
- .squatch-value-contents.cancelled {
7115
- color: ${this.cancelledcolor};
7116
- }
7117
- .squatch-referrals-icon.icon-attention.cancelled {
7118
- color: ${this.cancelledcolor};
7119
- }
7120
- .squatch-referrals-heading {
7121
- color: ${this.referralnamecolor};
7122
- }
7123
- .squatch-referrals-description,
7124
- .squatch-referrals-value-content {
7125
- color: ${this.referraltextcolor};
7126
- }
7127
- .squatch-customer-note {
7128
- color: ${this.customernotecolor || "darkslategray"};
7129
- }
7130
- .squatch-referrals-scroll-action {
7131
- font-family: ${"inherit"};
7132
- }
7086
+ const clz = css `
7087
+ .squatch-referrals-icon.icon-ok-circled {
7088
+ color: ${this.rewardcolor};
7089
+ }
7090
+ .squatch-referrals-icon.icon-attention {
7091
+ color: ${this.pendingcolor};
7092
+ }
7093
+ .squatch-referrals-value {
7094
+ color: ${this.rewardcolor};
7095
+ }
7096
+ .squatch-referrals-value.pending {
7097
+ color: ${this.pendingcolor};
7098
+ }
7099
+ .squatch-referrals-value.referrer {
7100
+ color: ${this.rewardcolor};
7101
+ }
7102
+ .squatch-referrals-value.expired {
7103
+ color: ${this.expiredcolor};
7104
+ }
7105
+ .squatch-value-contents.expired {
7106
+ color: ${this.expiredcolor};
7107
+ }
7108
+ .squatch-referrals-icon.icon-attention.expired {
7109
+ color: ${this.expiredcolor};
7110
+ }
7111
+ .squatch-referrals-value.cancelled {
7112
+ color: ${this.cancelledcolor};
7113
+ }
7114
+ .squatch-value-contents.cancelled {
7115
+ color: ${this.cancelledcolor};
7116
+ }
7117
+ .squatch-referrals-icon.icon-attention.cancelled {
7118
+ color: ${this.cancelledcolor};
7119
+ }
7120
+ .squatch-referrals-heading {
7121
+ color: ${this.referralnamecolor};
7122
+ }
7123
+ .squatch-referrals-description,
7124
+ .squatch-referrals-value-content {
7125
+ color: ${this.referraltextcolor};
7126
+ }
7127
+ .squatch-customer-note {
7128
+ color: ${this.customernotecolor || "darkslategray"};
7129
+ }
7130
+ .squatch-referrals-scroll-action {
7131
+ font-family: ${"inherit"};
7132
+ }
7133
7133
  `;
7134
7134
  const totalReferralsCount = this.showreferrer && this.referredBy
7135
7135
  ? this.referralsCount + 1
7136
7136
  : this.referralsCount;
7137
7137
  return !this.ishidden && totalReferralsCount > 0 ? (
7138
7138
  // Referral List when not hidden and 1 or more referrals
7139
- h("div", { class: `squatch-referrals ${clz}` }, h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { class: `
7139
+ h("div", { class: `squatch-referrals ${clz}` }, h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { class: `
7140
7140
  squatch-referrals-scroll-action previous ${this.loading
7141
7141
  ? "disabled"
7142
7142
  : this.offset === 0
7143
7143
  ? "disabled"
7144
- : ""}
7145
- `, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), h("button", { class: `
7144
+ : ""}
7145
+ `, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), h("button", { class: `
7146
7146
  squatch-referrals-scroll-action view-more ${this.loading
7147
7147
  ? "disabled"
7148
7148
  : this.showreferrer && this.referredBy
@@ -7151,7 +7151,7 @@ const ReferralList = class {
7151
7151
  : ""
7152
7152
  : this.offset >= this.referralsCount - 3
7153
7153
  ? "disabled"
7154
- : ""}
7154
+ : ""}
7155
7155
  `, "view-more": true, onClick: (event) => this.paginate(this.offset + 3, event) }, this.paginatemore)))) : (
7156
7156
  // 'No Referrals Yet' button if this.referralCount < 1
7157
7157
  h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { disabled: true, class: "squatch-no-referrals-yet" }, this.noreferralsyet)));
@@ -7188,25 +7188,25 @@ const ShareButton = class {
7188
7188
  const isMobileiOS = detectMobileSafari() || detectMobileChrome();
7189
7189
  const target = isMobileiOS ? "_parent" : "_blank";
7190
7190
  const iconClass = `icon icon-${this.icon}`;
7191
- const style = css `
7192
- background-color: ${this.backgroundcolor};
7193
- border: 1px solid ${this.backgroundcolor};
7194
- color: ${this.textcolor};
7195
-
7196
- &:hover {
7197
- background: ${shadeColor(this.backgroundcolor, 10)};
7198
- border-color: ${shadeColor(this.backgroundcolor, 12)};
7199
- color: ${this.textcolor};
7200
- }
7201
-
7202
- &:focus {
7203
- color: ${this.textcolor};
7204
- }
7205
- .icon-${this.icon} {
7206
- left: ${this.iconhorizontal}px;
7207
- top: ${this.iconvertical}px;
7208
- font-size: ${this.iconsize}em;
7209
- }
7191
+ const style = css `
7192
+ background-color: ${this.backgroundcolor};
7193
+ border: 1px solid ${this.backgroundcolor};
7194
+ color: ${this.textcolor};
7195
+
7196
+ &:hover {
7197
+ background: ${shadeColor(this.backgroundcolor, 10)};
7198
+ border-color: ${shadeColor(this.backgroundcolor, 12)};
7199
+ color: ${this.textcolor};
7200
+ }
7201
+
7202
+ &:focus {
7203
+ color: ${this.textcolor};
7204
+ }
7205
+ .icon-${this.icon} {
7206
+ left: ${this.iconhorizontal}px;
7207
+ top: ${this.iconvertical}px;
7208
+ font-size: ${this.iconsize}em;
7209
+ }
7210
7210
  `;
7211
7211
  const classes = [
7212
7212
  `squatch-share-btn`,
@@ -7464,8 +7464,8 @@ const StatComponent = class {
7464
7464
  this.statTypeUpdated.emit(stat);
7465
7465
  }
7466
7466
  render() {
7467
- const clz = css `
7468
- color: ${this.statcolor};
7467
+ const clz = css `
7468
+ color: ${this.statcolor};
7469
7469
  `;
7470
7470
  return (!this.ishidden && (h("div", { class: clz }, h("div", { class: "stat-value" }, this.statvalue), h("div", { class: "stat-description" }, this.statdescription))));
7471
7471
  }
@@ -7864,10 +7864,10 @@ const StatsContainer = class {
7864
7864
  this.loading = false;
7865
7865
  }
7866
7866
  render() {
7867
- const containerStyle = css `
7868
- display: ${this.ishidden ? "none" : "inherit"};
7869
- padding-top: ${this.paddingtop}px;
7870
- padding-bottom: ${this.paddingbottom}px;
7867
+ const containerStyle = css `
7868
+ display: ${this.ishidden ? "none" : "inherit"};
7869
+ padding-top: ${this.paddingtop}px;
7870
+ padding-bottom: ${this.paddingbottom}px;
7871
7871
  `;
7872
7872
  return (h("div", { class: containerStyle }, h("slot", null)));
7873
7873
  }
@@ -10479,26 +10479,26 @@ const TextComponent = class {
10479
10479
  }
10480
10480
  render() {
10481
10481
  const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
10482
- const textStyle = css `
10483
- font-family: ${this.fontfamily || "inherit"};
10484
- font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
10485
- font-weight: ${this.fontweight ? this.fontweight : "inherit"};
10486
- text-align: ${this.textalign};
10487
- color: ${this.color || "inherit"};
10488
- padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
10482
+ const textStyle = css `
10483
+ font-family: ${this.fontfamily || "inherit"};
10484
+ font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
10485
+ font-weight: ${this.fontweight ? this.fontweight : "inherit"};
10486
+ text-align: ${this.textalign};
10487
+ color: ${this.color || "inherit"};
10488
+ padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
10489
10489
  padding-bottom: ${this.paddingbottom
10490
10490
  ? this.paddingbottom + "px"
10491
- : "inherit"};
10492
- overflow-wrap: break-word;
10491
+ : "inherit"};
10492
+ overflow-wrap: break-word;
10493
10493
  `;
10494
- const divStyle = css `
10494
+ const divStyle = css `
10495
10495
  background: ${this.background
10496
10496
  ? this.background.match(regex)
10497
10497
  ? `url(${this.background}) no-repeat center center;`
10498
10498
  : this.background
10499
- : "inherit"};
10500
- height: ${this.height || "inherit"};
10501
- background-size: contain;
10499
+ : "inherit"};
10500
+ height: ${this.height || "inherit"};
10501
+ background-size: contain;
10502
10502
  `;
10503
10503
  const content = this.ismarkdown ? (h("div", { innerHTML: marked(this.text) })) : (this.text);
10504
10504
  return (!this.ishidden && (h("div", { class: divStyle }, h("p", { class: textStyle }, content))));
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
 
5
5
  const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API, w as widgetIdent } from './WidgetHost-903fb7cc.js';
3
+ import { A as API, w as widgetIdent } from './WidgetHost-9c337319.js';
4
4
  var closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
5
5
  var CloseButton = /** @class */ (function () {
6
6
  function CloseButton(hostRef) {
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
6
6
  import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
7
- import { A as API } from './WidgetHost-903fb7cc.js';
7
+ import { A as API } from './WidgetHost-9c337319.js';
8
8
  /////////////////////////////////////
9
9
  ////// ////
10
10
  ///// Color Utility Functions /////
@@ -2187,7 +2187,7 @@ var GlobalContainer = /** @class */ (function () {
2187
2187
  var style = css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n font-family: ", ";\n position: relative;\n max-width: ", ";\n "], ["\n background-color: ", ";\n font-family: ", ";\n position: relative;\n max-width: ", ";\n "])), this.background, this.fontfamily, this.maxwidth);
2188
2188
  var robotoFont = (h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
2189
2189
  var artifaktFont = (h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
2190
- return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By Saasquatch")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2190
+ return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2191
2191
  };
2192
2192
  return GlobalContainer;
2193
2193
  }());
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
  var referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
5
5
  var ReferralCode = /** @class */ (function () {
6
6
  function ReferralCode(hostRef) {
@@ -1,105 +1,105 @@
1
- interface UserPayload {
2
- data: {
3
- user: {
4
- referredByReferral: {
5
- referrerUser: {
6
- firstName: string;
7
- lastName: string;
8
- imageUrl: string;
9
- };
10
- dateReferralStarted: number;
11
- rewards: {
12
- count: number;
13
- totalCount: number;
14
- data: Reward[];
15
- };
16
- };
17
- referrals: {
18
- count: number;
19
- totalCount: number;
20
- data: Referral[];
21
- };
22
- rewards: {
23
- count: number;
24
- totalCount: number;
25
- data: Reward[];
26
- };
27
- };
28
- };
29
- }
30
-
31
- interface ReferredByReferral {
32
- referrerUser: {
33
- firstName: string;
34
- lastName: string;
35
- imageUrl: string;
36
- };
37
- dateReferralStarted: number;
38
- dateConverted:number;
39
- rewards: Reward[];
40
- }
41
-
42
- interface Referral {
43
- id: string;
44
- dateReferralStarted: number;
45
- dateReferralPaid: number;
46
- dateReferralEnded: number;
47
- dateConverted:number;
48
- moderationStatus: string;
49
- referredUser: {
50
- firstName: string;
51
- lastName: string;
52
- imageUrl: string;
53
- };
54
- rewards: Reward[];
55
- }
56
-
57
- interface Meta {
58
- message: string;
59
- }
60
-
61
- interface Reward {
62
- id: string;
63
- type: string;
64
- value: number;
65
- unit: string;
66
- name: string;
67
- dateGiven: number;
68
- dateExpires: number;
69
- dateCancelled: number;
70
- fuelTankCode: string;
71
- fuelTankType: string;
72
- currency: string;
73
- prettyValue: string;
74
- statuses: string[];
75
- meta: Meta;
76
- }
77
-
78
- interface ReferralVariables {
79
- usefirstreward: boolean;
80
- referrercontent: string;
81
- convertedcontent: string;
82
- pendingcontent: string;
83
- pendingvalue: string;
84
- referrervalue: string;
85
- valuecontent: string;
86
- expiredvalue: string;
87
- expiredcontent: string;
88
- expiresvalue: string;
89
- redeemedvalue: string;
90
- showexpiry: boolean;
91
- shownotes: boolean;
92
- cancelledvalue: string;
93
- cancelledcontent: string;
94
- }
95
-
96
- interface RewardBalance {
97
- type: string;
98
- unit: string;
99
- value: number;
100
- prettyValue: string;
101
- }
102
-
103
- declare module 'react';
104
-
105
- declare module 'progress.js'
1
+ interface UserPayload {
2
+ data: {
3
+ user: {
4
+ referredByReferral: {
5
+ referrerUser: {
6
+ firstName: string;
7
+ lastName: string;
8
+ imageUrl: string;
9
+ };
10
+ dateReferralStarted: number;
11
+ rewards: {
12
+ count: number;
13
+ totalCount: number;
14
+ data: Reward[];
15
+ };
16
+ };
17
+ referrals: {
18
+ count: number;
19
+ totalCount: number;
20
+ data: Referral[];
21
+ };
22
+ rewards: {
23
+ count: number;
24
+ totalCount: number;
25
+ data: Reward[];
26
+ };
27
+ };
28
+ };
29
+ }
30
+
31
+ interface ReferredByReferral {
32
+ referrerUser: {
33
+ firstName: string;
34
+ lastName: string;
35
+ imageUrl: string;
36
+ };
37
+ dateReferralStarted: number;
38
+ dateConverted:number;
39
+ rewards: Reward[];
40
+ }
41
+
42
+ interface Referral {
43
+ id: string;
44
+ dateReferralStarted: number;
45
+ dateReferralPaid: number;
46
+ dateReferralEnded: number;
47
+ dateConverted:number;
48
+ moderationStatus: string;
49
+ referredUser: {
50
+ firstName: string;
51
+ lastName: string;
52
+ imageUrl: string;
53
+ };
54
+ rewards: Reward[];
55
+ }
56
+
57
+ interface Meta {
58
+ message: string;
59
+ }
60
+
61
+ interface Reward {
62
+ id: string;
63
+ type: string;
64
+ value: number;
65
+ unit: string;
66
+ name: string;
67
+ dateGiven: number;
68
+ dateExpires: number;
69
+ dateCancelled: number;
70
+ fuelTankCode: string;
71
+ fuelTankType: string;
72
+ currency: string;
73
+ prettyValue: string;
74
+ statuses: string[];
75
+ meta: Meta;
76
+ }
77
+
78
+ interface ReferralVariables {
79
+ usefirstreward: boolean;
80
+ referrercontent: string;
81
+ convertedcontent: string;
82
+ pendingcontent: string;
83
+ pendingvalue: string;
84
+ referrervalue: string;
85
+ valuecontent: string;
86
+ expiredvalue: string;
87
+ expiredcontent: string;
88
+ expiresvalue: string;
89
+ redeemedvalue: string;
90
+ showexpiry: boolean;
91
+ shownotes: boolean;
92
+ cancelledvalue: string;
93
+ cancelledcontent: string;
94
+ }
95
+
96
+ interface RewardBalance {
97
+ type: string;
98
+ unit: string;
99
+ value: number;
100
+ prettyValue: string;
101
+ }
102
+
103
+ declare module 'react';
104
+
105
+ declare module 'progress.js'