@saasquatch/vanilla-components 1.2.4-22 → 1.2.4-25

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 (73) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/dist/cjs/{WidgetHost-cee741d8.js → WidgetHost-d7b870ce.js} +0 -157
  3. package/dist/cjs/{en-3a7cb52e.js → en-a49a5ef5.js} +2 -2
  4. package/dist/cjs/{index-09a04159.js → index-deb40352.js} +3 -54
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
  7. package/dist/cjs/{sqh-copy-button_14.cjs.entry.js → sqh-copy-button_12.cjs.entry.js} +2 -1177
  8. package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
  9. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
  10. package/dist/cjs/widget-components.cjs.js +3 -3
  11. package/dist/collection/collection-manifest.json +0 -2
  12. package/dist/collection/components/close-button/close-button.js +0 -2
  13. package/dist/collection/components/partner-stat-component/partner-stat-component.js +1 -1
  14. package/dist/collection/components/referral-list/referral-list.js +1 -1
  15. package/dist/collection/components/stat-component/stat-component.js +1 -2
  16. package/dist/collection/components/text-component/text-component.js +3 -0
  17. package/dist/collection/entrypoint.js +0 -2
  18. package/dist/collection/services/WidgetHost.js +0 -157
  19. package/dist/esm/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +0 -157
  20. package/dist/esm/{en-a652ab83.js → en-be593af0.js} +1 -1
  21. package/dist/esm/{index-342d7c26.js → index-8ea8b6d8.js} +3 -54
  22. package/dist/esm/loader.mjs +3 -3
  23. package/dist/esm/sqh-close-button.entry.js +2 -2
  24. package/dist/esm/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +3 -1176
  25. package/dist/esm/sqh-referral-code.entry.js +2 -2
  26. package/dist/esm/sqh-rewards-actions.entry.js +1 -1
  27. package/dist/esm/widget-components.mjs +3 -3
  28. package/dist/esm-es5/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +4 -96
  29. package/dist/esm-es5/{en-a652ab83.js → en-be593af0.js} +1 -1
  30. package/dist/esm-es5/{index-342d7c26.js → index-8ea8b6d8.js} +3 -53
  31. package/dist/esm-es5/loader.mjs +3 -3
  32. package/dist/esm-es5/sqh-close-button.entry.js +2 -2
  33. package/dist/esm-es5/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +15 -1068
  34. package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
  35. package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
  36. package/dist/esm-es5/widget-components.mjs +3 -3
  37. package/dist/types/components/close-button/close-button.d.ts +0 -2
  38. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +1 -1
  39. package/dist/types/components/referral-list/referral-list.d.ts +1 -1
  40. package/dist/types/components/stat-component/stat-component.d.ts +1 -2
  41. package/dist/types/components/text-component/text-component.d.ts +1 -0
  42. package/dist/types/components.d.ts +6 -296
  43. package/dist/types/services/WidgetHost.d.ts +0 -6
  44. package/dist/widget-components/entrypoint.js +0 -2
  45. package/dist/widget-components/p-0bfec452.entry.js +149 -0
  46. package/dist/widget-components/{p-17d80384.js → p-44a6559d.js} +1 -1
  47. package/dist/widget-components/p-485eaf44.js +1 -0
  48. package/dist/widget-components/{p-e82def83.system.js → p-58be1132.system.js} +1 -1
  49. package/dist/widget-components/{p-1dfd20e2.entry.js → p-650d012d.entry.js} +1 -1
  50. package/dist/widget-components/p-796dc228.system.entry.js +8 -0
  51. package/dist/widget-components/{p-eeb2bfd4.system.entry.js → p-908068c2.system.entry.js} +1 -1
  52. package/dist/widget-components/{p-4b1ab75c.js → p-9525bf4a.js} +3 -68
  53. package/dist/widget-components/{p-fb528be6.entry.js → p-9746ae26.entry.js} +1 -1
  54. package/dist/widget-components/{p-b67d3319.system.js → p-9adc7c50.system.js} +2 -2
  55. package/dist/widget-components/{p-aaf44379.system.js → p-a846f503.system.js} +1 -1
  56. package/dist/widget-components/{p-599e6d35.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
  57. package/dist/widget-components/{p-9ffe6e46.entry.js → p-d4b27c72.entry.js} +1 -1
  58. package/dist/widget-components/{p-665b8d42.system.entry.js → p-e2b4739f.system.entry.js} +1 -1
  59. package/dist/widget-components/p-e61a8100.system.js +1 -0
  60. package/dist/widget-components/widget-components.esm.js +1 -1
  61. package/dist/widget-components/widget-components.js +1 -1
  62. package/docs/raisins.json +1 -1
  63. package/package.json +2 -3
  64. package/dist/collection/components/cta-component/cta-component.css +0 -6
  65. package/dist/collection/components/cta-component/cta-component.js +0 -396
  66. package/dist/collection/components/progress-indicator/progress-indicator.css +0 -73
  67. package/dist/collection/components/progress-indicator/progress-indicator.js +0 -557
  68. package/dist/types/components/cta-component/cta-component.d.ts +0 -95
  69. package/dist/types/components/progress-indicator/progress-indicator.d.ts +0 -94
  70. package/dist/widget-components/p-9fcf9906.entry.js +0 -233
  71. package/dist/widget-components/p-ad5121cf.system.js +0 -1
  72. package/dist/widget-components/p-cdc72d95.system.entry.js +0 -10
  73. package/dist/widget-components/p-fbf0c7fe.js +0 -1
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-09a04159.js');
5
+ const index = require('./index-deb40352.js');
6
6
  require('./_commonjsHelpers-ac2d0785.js');
7
- const WidgetHost = require('./WidgetHost-cee741d8.js');
7
+ const WidgetHost = require('./WidgetHost-d7b870ce.js');
8
8
 
9
9
  const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-09a04159.js');
5
+ const index = require('./index-deb40352.js');
6
6
 
7
7
  const rewardsActionsCss = "sqh-rewards-actions .squatch-referrals-actions{text-align:center}sqh-rewards-actions .squatch-referrals-actions .btn{margin-left:10px;width:120px}sqh-rewards-actions .squatch-referrals-actions .btn:first-child{margin-left:0}@media (max-width: 499px){sqh-rewards-actions .squatch-referrals-actions .btn{font-size:13px;width:85px;padding-left:6px;padding-right:6px;margin-left:7px}}";
8
8
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-09a04159.js');
4
- const en = require('./en-3a7cb52e.js');
3
+ const index = require('./index-deb40352.js');
4
+ const en = require('./en-a49a5ef5.js');
5
5
  require('./_commonjsHelpers-ac2d0785.js');
6
6
 
7
7
  en.patchBrowser().then(options => {
8
- return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_14.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[0,"sqh-cta-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"fontweight":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"buttonbackground":[1],"height":[1],"width":[1],"borderradius":[1],"url":[1]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-progress-indicator",{"ishidden":[4],"textcolor":[1],"align":[1],"progresstype":[1],"earned":[1],"progress":[1],"progresswidth":[1],"percentagecolor":[1],"percentagesize":[1],"progresscolor":[1],"stats":[32],"rewardStats":[32],"progressMessage":[32],"rewardComplete":[32],"locale":[32],"loading":[32]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"fontweight":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
8
+ return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"fontweight":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
9
9
  });
@@ -3,11 +3,9 @@
3
3
  "./components/close-button/close-button.js",
4
4
  "./components/copy-button/copy-button.js",
5
5
  "./components/copy-link-button/copy-link-button.js",
6
- "./components/cta-component/cta-component.js",
7
6
  "./components/global-container/global-container.js",
8
7
  "./components/image-component/image-component.js",
9
8
  "./components/partner-stat-component/partner-stat-component.js",
10
- "./components/progress-indicator/progress-indicator.js",
11
9
  "./components/referral-code/referral-code.js",
12
10
  "./components/referral-component/referral-component.js",
13
11
  "./components/referral-list/referral-list.js",
@@ -5,8 +5,6 @@ import { API, widgetIdent } from "../../services/WidgetHost";
5
5
  /**
6
6
  * @uiName Close Button
7
7
  * @canvasRenderer always-replace
8
- * @exampleGroup Common Components
9
- * @example Close Popup Button - <sqh-close-button text="Close"></sqh-close-button>
10
8
  */
11
9
  export class CloseButton {
12
10
  constructor() {
@@ -76,7 +76,7 @@ export class PartnerStatComponent {
76
76
  "text": "Stat Type",
77
77
  "name": "uiName"
78
78
  }, {
79
- "text": "statTypeSelectorWidget",
79
+ "text": "statTypeSelectWidget",
80
80
  "name": "uiWidget"
81
81
  }, {
82
82
  "text": undefined,
@@ -6,7 +6,7 @@ import { API } from "../../services/WidgetHost";
6
6
  * @uiName Referral List
7
7
  * @canvasRenderer always-replace
8
8
  * @exampleGroup Referrals
9
- * @example Referral List - <sqh-referral-list ishidden="false" showreferrer="true" usefirstreward="false" referralnamecolor="darkslategray" referraltextcolor="lightgray" rewardcolor="#4BB543" pendingcolor="lightgray" pendingvalue="Reward Pending" referrervalue="Referred" referrercontent="Referred you {date}" convertedcontent="Signed up, referred {date}" pendingcontent="Trial user, referred {date}" pendingvalue="Referral pending" valuecontent="and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}" expiredcolor="lightgray" expiredvalue="Expired Reward" expiredcontent="Signed up, referred {date}" cancelledcolor="#C81D05" cancelledvalue="Cancelled Reward" cancelledcontent="Signed up, referred {date}" paginatemore="View More" paginateless="Previous" noreferralsyet="No Referrals Yet..." unknownuser="Your Friend"></sqh-referral-list>
9
+ * @example Referral List - <sqh-referral-list ishidden="false" expiresvalue="Expires {expiryDate}" showreferrer="true" usefirstreward="false" referralnamecolor="darkslategray" referraltextcolor="lightgray" rewardcolor="#4BB543" pendingcolor="lightgray" pendingvalue="Reward Pending" referrervalue="Referred" referrercontent="Referred you {date}" convertedcontent="Signed up, referred {date}" pendingcontent="Trial user, referred {date}" pendingvalue="Referral pending" valuecontent="and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}" expiredcolor="lightgray" expiredvalue="Expired Reward" expiredcontent="Signed up, referred {date}" cancelledcolor="#C81D05" cancelledvalue="Cancelled Reward" cancelledcontent="Signed up, referred {date}" paginatemore="View More" paginateless="Previous" noreferralsyet="No Referrals Yet..." unknownuser="Your Friend"></sqh-referral-list>
10
10
  */
11
11
  export class ReferralList {
12
12
  constructor() {
@@ -6,7 +6,6 @@ import { css } from "emotion";
6
6
  * @exampleGroup Statistics
7
7
  * @example Referral Count - <sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component>
8
8
  * @example Reward Count - <sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
9
- * @example Credit Earned - <sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
10
9
  * @example Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
11
10
  */
12
11
  export class StatComponent {
@@ -77,7 +76,7 @@ export class StatComponent {
77
76
  "text": "Stat Type",
78
77
  "name": "uiName"
79
78
  }, {
80
- "text": "statTypeSelectorWidget",
79
+ "text": "statTypeSelectWidget",
81
80
  "name": "uiWidget"
82
81
  }, {
83
82
  "text": undefined,
@@ -101,6 +101,9 @@ export class TextComponent {
101
101
  "tags": [{
102
102
  "text": "Text",
103
103
  "name": "uiName"
104
+ }, {
105
+ "text": "textArea",
106
+ "name": "uiWidget"
104
107
  }],
105
108
  "text": ""
106
109
  },
@@ -16,8 +16,6 @@
16
16
  // NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
17
17
  // without the "nomodule" attribute
18
18
  // This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
19
-
20
- console.log(url, scriptElm);
21
19
  if (!isSafari10) {
22
20
  var scriptElm = doc.createElement("script");
23
21
  scriptElm.setAttribute("type", "module");
@@ -511,92 +511,6 @@ const API = {
511
511
  })
512
512
  .then((res) => res.data.user);
513
513
  },
514
- getBalanceDetails() {
515
- const widgetId = widgetIdent();
516
- if (widgetId["env"] === "demo" || !widgetId) {
517
- const { rewardBalanceDetails } = demoUser;
518
- const user = {
519
- rewardBalanceDetails
520
- };
521
- return Promise.resolve(user);
522
- }
523
- const { userId, accountId, programId = null, locale } = widgetId;
524
- const variables = {
525
- userId,
526
- accountId,
527
- programId,
528
- locale
529
- };
530
- return this.getClient().query({
531
- query: gql `
532
- query(
533
- $userId: String!,
534
- $accountId: String!,
535
- $programId: ID,
536
- $locale: String!
537
- ) {
538
- user(id: $userId, accountId: $accountId) {
539
- rewardBalanceDetails(programId: $programId) {
540
- prettyAvailableValue
541
- unit
542
- ... on CreditRewardBalance {
543
- prettyAssignedCredit
544
- prettyRedeemedCredit
545
- rewardUnit {
546
- currency {
547
- displayName(locale: $locale)
548
- symbol(locale: $locale)
549
- currencyCode
550
- }
551
- }
552
- }
553
- }
554
- }
555
- }
556
- `,
557
- variables
558
- }).then(res => res.data.user);
559
- },
560
- getRewardExpiries() {
561
- const widgetId = widgetIdent();
562
- if (widgetId["env"] === "demo" || !widgetId) {
563
- const { rewardBalanceDetails } = demoUser;
564
- const user = {
565
- rewardBalanceDetails
566
- };
567
- return Promise.resolve(user);
568
- }
569
- const { userId, accountId, programId = null, locale } = widgetId;
570
- const variables = {
571
- userId,
572
- accountId,
573
- programId,
574
- locale
575
- };
576
- return this.getClient().query({
577
- query: gql `
578
- query(
579
- $userId: String!,
580
- $accountId: String!,
581
- $programId: ID,
582
- $locale: String!
583
- ) {
584
- user(id: $userId, accountId: $accountId) {
585
- rewards(programId_eq: $programId) {
586
- data {
587
- dateCreated
588
- dateScheduledFor
589
- dateExpires
590
- prettyValue
591
- unit
592
- }
593
- }
594
- }
595
- }
596
- `,
597
- variables
598
- }).then(res => res.data.user);
599
- },
600
514
  async getReferralCode() {
601
515
  const widgetId = widgetIdent();
602
516
  if (widgetId["env"] === "demo" || !widgetId)
@@ -701,77 +615,6 @@ const API = {
701
615
  })
702
616
  .then((res) => res.data.user);
703
617
  },
704
- getUserProgress() {
705
- const widgetId = widgetIdent();
706
- if (widgetId["env"] === "demo" || !widgetId) {
707
- const demoData = {
708
- customFields: { demo_totalValue: 16 },
709
- rewardBalanceDetails: [{
710
- prettyAvailableValue: "$10.00"
711
- }],
712
- rewards: { count: 1 }
713
- };
714
- return Promise.resolve(demoData);
715
- }
716
- const { userId, accountId, programId } = widgetId;
717
- const variables = {
718
- userId,
719
- accountId,
720
- programId,
721
- };
722
- return this.getClient().query({
723
- query: gql `
724
- query($userId: String!, $accountId: String!, $programId: ID) {
725
- user(id: $userId, accountId: $accountId){
726
- customFields
727
- locale
728
- rewardBalanceDetails(programId: $programId) {
729
- prettyAvailableValue(formatType:UNIT_FORMATTED)
730
- }
731
- rewards(limit:1000,offset:0, filter:{programId_eq: $programId}){
732
- count
733
- }
734
- }
735
- }
736
- `,
737
- variables
738
- }).then(res => res.data.user);
739
- },
740
- getProgramRules() {
741
- const widgetId = widgetIdent();
742
- if (widgetId["env"] === "demo" || !widgetId) {
743
- const demoData = {
744
- id: "demo",
745
- name: "Demo Program",
746
- rules: {
747
- programWindow: "",
748
- rewardRules: {
749
- rewardRulesType: 1,
750
- rewardGoal: 24,
751
- isRecurring: 1,
752
- defaultCurrency: "CAD"
753
- }
754
- }
755
- };
756
- return Promise.resolve(demoData);
757
- }
758
- const { programId } = widgetId;
759
- const variables = {
760
- programId
761
- };
762
- return this.getClient().query({
763
- query: gql `
764
- query($programId: ID!) {
765
- program(id:$programId){
766
- id
767
- name
768
- rules
769
- }
770
- }
771
- `,
772
- variables
773
- }).then(res => res.data.program);
774
- },
775
618
  },
776
619
  ui: squatchJsApi,
777
620
  };
@@ -10417,92 +10417,6 @@ const API = {
10417
10417
  })
10418
10418
  .then((res) => res.data.user);
10419
10419
  },
10420
- getBalanceDetails() {
10421
- const widgetId = widgetIdent();
10422
- if (widgetId["env"] === "demo" || !widgetId) {
10423
- const { rewardBalanceDetails } = demoUser;
10424
- const user = {
10425
- rewardBalanceDetails
10426
- };
10427
- return Promise.resolve(user);
10428
- }
10429
- const { userId, accountId, programId = null, locale } = widgetId;
10430
- const variables = {
10431
- userId,
10432
- accountId,
10433
- programId,
10434
- locale
10435
- };
10436
- return this.getClient().query({
10437
- query: src `
10438
- query(
10439
- $userId: String!,
10440
- $accountId: String!,
10441
- $programId: ID,
10442
- $locale: String!
10443
- ) {
10444
- user(id: $userId, accountId: $accountId) {
10445
- rewardBalanceDetails(programId: $programId) {
10446
- prettyAvailableValue
10447
- unit
10448
- ... on CreditRewardBalance {
10449
- prettyAssignedCredit
10450
- prettyRedeemedCredit
10451
- rewardUnit {
10452
- currency {
10453
- displayName(locale: $locale)
10454
- symbol(locale: $locale)
10455
- currencyCode
10456
- }
10457
- }
10458
- }
10459
- }
10460
- }
10461
- }
10462
- `,
10463
- variables
10464
- }).then(res => res.data.user);
10465
- },
10466
- getRewardExpiries() {
10467
- const widgetId = widgetIdent();
10468
- if (widgetId["env"] === "demo" || !widgetId) {
10469
- const { rewardBalanceDetails } = demoUser;
10470
- const user = {
10471
- rewardBalanceDetails
10472
- };
10473
- return Promise.resolve(user);
10474
- }
10475
- const { userId, accountId, programId = null, locale } = widgetId;
10476
- const variables = {
10477
- userId,
10478
- accountId,
10479
- programId,
10480
- locale
10481
- };
10482
- return this.getClient().query({
10483
- query: src `
10484
- query(
10485
- $userId: String!,
10486
- $accountId: String!,
10487
- $programId: ID,
10488
- $locale: String!
10489
- ) {
10490
- user(id: $userId, accountId: $accountId) {
10491
- rewards(programId_eq: $programId) {
10492
- data {
10493
- dateCreated
10494
- dateScheduledFor
10495
- dateExpires
10496
- prettyValue
10497
- unit
10498
- }
10499
- }
10500
- }
10501
- }
10502
- `,
10503
- variables
10504
- }).then(res => res.data.user);
10505
- },
10506
10420
  async getReferralCode() {
10507
10421
  const widgetId = widgetIdent();
10508
10422
  if (widgetId["env"] === "demo" || !widgetId)
@@ -10607,77 +10521,6 @@ const API = {
10607
10521
  })
10608
10522
  .then((res) => res.data.user);
10609
10523
  },
10610
- getUserProgress() {
10611
- const widgetId = widgetIdent();
10612
- if (widgetId["env"] === "demo" || !widgetId) {
10613
- const demoData = {
10614
- customFields: { demo_totalValue: 16 },
10615
- rewardBalanceDetails: [{
10616
- prettyAvailableValue: "$10.00"
10617
- }],
10618
- rewards: { count: 1 }
10619
- };
10620
- return Promise.resolve(demoData);
10621
- }
10622
- const { userId, accountId, programId } = widgetId;
10623
- const variables = {
10624
- userId,
10625
- accountId,
10626
- programId,
10627
- };
10628
- return this.getClient().query({
10629
- query: src `
10630
- query($userId: String!, $accountId: String!, $programId: ID) {
10631
- user(id: $userId, accountId: $accountId){
10632
- customFields
10633
- locale
10634
- rewardBalanceDetails(programId: $programId) {
10635
- prettyAvailableValue(formatType:UNIT_FORMATTED)
10636
- }
10637
- rewards(limit:1000,offset:0, filter:{programId_eq: $programId}){
10638
- count
10639
- }
10640
- }
10641
- }
10642
- `,
10643
- variables
10644
- }).then(res => res.data.user);
10645
- },
10646
- getProgramRules() {
10647
- const widgetId = widgetIdent();
10648
- if (widgetId["env"] === "demo" || !widgetId) {
10649
- const demoData = {
10650
- id: "demo",
10651
- name: "Demo Program",
10652
- rules: {
10653
- programWindow: "",
10654
- rewardRules: {
10655
- rewardRulesType: 1,
10656
- rewardGoal: 24,
10657
- isRecurring: 1,
10658
- defaultCurrency: "CAD"
10659
- }
10660
- }
10661
- };
10662
- return Promise.resolve(demoData);
10663
- }
10664
- const { programId } = widgetId;
10665
- const variables = {
10666
- programId
10667
- };
10668
- return this.getClient().query({
10669
- query: src `
10670
- query($programId: ID!) {
10671
- program(id:$programId){
10672
- id
10673
- name
10674
- rules
10675
- }
10676
- }
10677
- `,
10678
- variables
10679
- }).then(res => res.data.program);
10680
- },
10681
10524
  },
10682
10525
  ui: squatchJsApi,
10683
10526
  };
@@ -1,4 +1,4 @@
1
- import { C as CSS, p as plt, w as win, a as promiseResolve, d as doc, N as NAMESPACE, H } from './index-342d7c26.js';
1
+ import { C as CSS, p as plt, w as win, a as promiseResolve, d as doc, N as NAMESPACE, H } from './index-8ea8b6d8.js';
2
2
  import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-1d681858.js';
3
3
 
4
4
  /*
@@ -57,7 +57,6 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
57
57
  // prettier-ignore
58
58
  const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
59
59
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
60
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
61
60
  const createTime = (fnName, tagName = '') => {
62
61
  {
63
62
  return () => {
@@ -144,11 +143,6 @@ const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
144
143
  * Don't add values to these!!
145
144
  */
146
145
  const EMPTY_OBJ = {};
147
- /**
148
- * Namespaces
149
- */
150
- const SVG_NS = 'http://www.w3.org/2000/svg';
151
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
152
146
  const noop = () => {
153
147
  /* noop*/
154
148
  };
@@ -366,36 +360,16 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
366
360
  }
367
361
  catch (e) { }
368
362
  }
369
- /**
370
- * Need to manually update attribute if:
371
- * - memberName is not an attribute
372
- * - if we are rendering the host element in order to reflect attribute
373
- * - if it's a SVG, since properties might not work in <svg>
374
- * - if the newValue is null/undefined or 'false'.
375
- */
376
- let xlink = false;
377
- {
378
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
379
- memberName = ln;
380
- xlink = true;
381
- }
382
- }
383
363
  if (newValue == null || newValue === false) {
384
364
  if (newValue !== false || elm.getAttribute(memberName) === '') {
385
- if ( xlink) {
386
- elm.removeAttributeNS(XLINK_NS, memberName);
387
- }
388
- else {
365
+ {
389
366
  elm.removeAttribute(memberName);
390
367
  }
391
368
  }
392
369
  }
393
370
  else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
394
371
  newValue = newValue === true ? '' : newValue;
395
- if ( xlink) {
396
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
397
- }
398
- else {
372
+ {
399
373
  elm.setAttribute(memberName, newValue);
400
374
  }
401
375
  }
@@ -451,15 +425,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
451
425
  elm = newVNode.$elm$ = doc.createTextNode('');
452
426
  }
453
427
  else {
454
- if ( !isSvgMode) {
455
- isSvgMode = newVNode.$tag$ === 'svg';
456
- }
457
428
  // create element
458
- elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
459
- );
460
- if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
461
- isSvgMode = false;
462
- }
429
+ elm = newVNode.$elm$ = ( doc.createElement( newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$));
463
430
  // add css classes, attrs, props, listeners, etc.
464
431
  {
465
432
  updateElement(null, newVNode, isSvgMode);
@@ -475,16 +442,6 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
475
442
  }
476
443
  }
477
444
  }
478
- {
479
- if (newVNode.$tag$ === 'svg') {
480
- // Only reset the SVG context when we're exiting <svg> element
481
- isSvgMode = false;
482
- }
483
- else if (elm.tagName === 'foreignObject') {
484
- // Reenter SVG context when we're exiting <foreignObject> element
485
- isSvgMode = true;
486
- }
487
- }
488
445
  }
489
446
  {
490
447
  elm['s-hn'] = hostTagName;
@@ -667,11 +624,6 @@ const patch = (oldVNode, newVNode) => {
667
624
  const text = newVNode.$text$;
668
625
  let defaultHolder;
669
626
  if ( text === null) {
670
- {
671
- // test if we're rendering an svg element, or still rendering nodes inside of one
672
- // only add this to the when the compiler sees we're using an svg somewhere
673
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
674
- }
675
627
  // element node
676
628
  {
677
629
  if ( tag === 'slot')
@@ -700,9 +652,6 @@ const patch = (oldVNode, newVNode) => {
700
652
  // no new child vnodes, but there are old child vnodes to remove
701
653
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
702
654
  }
703
- if ( isSvgMode && tag === 'svg') {
704
- isSvgMode = false;
705
- }
706
655
  }
707
656
  else if ( (defaultHolder = elm['s-cr'])) {
708
657
  // this element has slotted content