@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.
- package/CHANGELOG.md +163 -0
- package/dist/cjs/{WidgetHost-cee741d8.js → WidgetHost-d7b870ce.js} +0 -157
- package/dist/cjs/{en-3a7cb52e.js → en-a49a5ef5.js} +2 -2
- package/dist/cjs/{index-09a04159.js → index-deb40352.js} +3 -54
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqh-copy-button_14.cjs.entry.js → sqh-copy-button_12.cjs.entry.js} +2 -1177
- package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/close-button/close-button.js +0 -2
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +1 -1
- package/dist/collection/components/referral-list/referral-list.js +1 -1
- package/dist/collection/components/stat-component/stat-component.js +1 -2
- package/dist/collection/components/text-component/text-component.js +3 -0
- package/dist/collection/entrypoint.js +0 -2
- package/dist/collection/services/WidgetHost.js +0 -157
- package/dist/esm/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +0 -157
- package/dist/esm/{en-a652ab83.js → en-be593af0.js} +1 -1
- package/dist/esm/{index-342d7c26.js → index-8ea8b6d8.js} +3 -54
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/sqh-close-button.entry.js +2 -2
- package/dist/esm/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +3 -1176
- package/dist/esm/sqh-referral-code.entry.js +2 -2
- package/dist/esm/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +4 -96
- package/dist/esm-es5/{en-a652ab83.js → en-be593af0.js} +1 -1
- package/dist/esm-es5/{index-342d7c26.js → index-8ea8b6d8.js} +3 -53
- package/dist/esm-es5/loader.mjs +3 -3
- package/dist/esm-es5/sqh-close-button.entry.js +2 -2
- package/dist/esm-es5/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +15 -1068
- package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
- package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +3 -3
- package/dist/types/components/close-button/close-button.d.ts +0 -2
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +1 -1
- package/dist/types/components/referral-list/referral-list.d.ts +1 -1
- package/dist/types/components/stat-component/stat-component.d.ts +1 -2
- package/dist/types/components/text-component/text-component.d.ts +1 -0
- package/dist/types/components.d.ts +6 -296
- package/dist/types/services/WidgetHost.d.ts +0 -6
- package/dist/widget-components/entrypoint.js +0 -2
- package/dist/widget-components/p-0bfec452.entry.js +149 -0
- package/dist/widget-components/{p-17d80384.js → p-44a6559d.js} +1 -1
- package/dist/widget-components/p-485eaf44.js +1 -0
- package/dist/widget-components/{p-e82def83.system.js → p-58be1132.system.js} +1 -1
- package/dist/widget-components/{p-1dfd20e2.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-796dc228.system.entry.js +8 -0
- package/dist/widget-components/{p-eeb2bfd4.system.entry.js → p-908068c2.system.entry.js} +1 -1
- package/dist/widget-components/{p-4b1ab75c.js → p-9525bf4a.js} +3 -68
- package/dist/widget-components/{p-fb528be6.entry.js → p-9746ae26.entry.js} +1 -1
- package/dist/widget-components/{p-b67d3319.system.js → p-9adc7c50.system.js} +2 -2
- package/dist/widget-components/{p-aaf44379.system.js → p-a846f503.system.js} +1 -1
- package/dist/widget-components/{p-599e6d35.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-9ffe6e46.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-665b8d42.system.entry.js → p-e2b4739f.system.entry.js} +1 -1
- package/dist/widget-components/p-e61a8100.system.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +2 -3
- package/dist/collection/components/cta-component/cta-component.css +0 -6
- package/dist/collection/components/cta-component/cta-component.js +0 -396
- package/dist/collection/components/progress-indicator/progress-indicator.css +0 -73
- package/dist/collection/components/progress-indicator/progress-indicator.js +0 -557
- package/dist/types/components/cta-component/cta-component.d.ts +0 -95
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +0 -94
- package/dist/widget-components/p-9fcf9906.entry.js +0 -233
- package/dist/widget-components/p-ad5121cf.system.js +0 -1
- package/dist/widget-components/p-cdc72d95.system.entry.js +0 -10
- package/dist/widget-components/p-fbf0c7fe.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-8ea8b6d8.js';
|
|
2
2
|
import './_commonjsHelpers-1d681858.js';
|
|
3
|
-
import { A as API } from './WidgetHost-
|
|
3
|
+
import { A as API } from './WidgetHost-a27e693d.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,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-8ea8b6d8.js';
|
|
2
2
|
var 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}}";
|
|
3
3
|
var RewardsActions = /** @class */ (function () {
|
|
4
4
|
function RewardsActions(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
import { p as patchBrowser } from './en-
|
|
1
|
+
import { b as bootstrapLazy } from './index-8ea8b6d8.js';
|
|
2
|
+
import { p as patchBrowser } from './en-be593af0.js';
|
|
3
3
|
import './_commonjsHelpers-1d681858.js';
|
|
4
4
|
patchBrowser().then(function (options) {
|
|
5
|
-
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-
|
|
5
|
+
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[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);
|
|
6
6
|
});
|
|
@@ -18,7 +18,7 @@ export declare class PartnerStatComponent {
|
|
|
18
18
|
* Determines what type of stat is displayed. Manual paths are also supported.
|
|
19
19
|
*
|
|
20
20
|
* @uiName Stat Type
|
|
21
|
-
* @uiWidget
|
|
21
|
+
* @uiWidget statTypeSelectWidget
|
|
22
22
|
* @required
|
|
23
23
|
* @minLength 1
|
|
24
24
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @uiName Referral List
|
|
3
3
|
* @canvasRenderer always-replace
|
|
4
4
|
* @exampleGroup Referrals
|
|
5
|
-
* @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>
|
|
5
|
+
* @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>
|
|
6
6
|
*/
|
|
7
7
|
export declare class ReferralList {
|
|
8
8
|
/**
|
|
@@ -5,7 +5,6 @@ import { EventEmitter } from "../../stencil-public-runtime";
|
|
|
5
5
|
* @exampleGroup Statistics
|
|
6
6
|
* @example Referral Count - <sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
7
7
|
* @example Reward Count - <sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
|
|
8
|
-
* @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>
|
|
9
8
|
* @example Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
10
9
|
*/
|
|
11
10
|
export declare class StatComponent {
|
|
@@ -18,7 +17,7 @@ export declare class StatComponent {
|
|
|
18
17
|
/**
|
|
19
18
|
* Type of stat being displayed. e.g /rewardsCount
|
|
20
19
|
* @uiName Stat Type
|
|
21
|
-
* @uiWidget
|
|
20
|
+
* @uiWidget statTypeSelectWidget
|
|
22
21
|
* @required
|
|
23
22
|
* @minLength 1
|
|
24
23
|
*/
|
|
@@ -119,88 +119,6 @@ export namespace Components {
|
|
|
119
119
|
*/
|
|
120
120
|
"textcolor": string;
|
|
121
121
|
}
|
|
122
|
-
interface SqhCtaComponent {
|
|
123
|
-
/**
|
|
124
|
-
* @uiName Container Background Color
|
|
125
|
-
* @uiWidget color
|
|
126
|
-
*/
|
|
127
|
-
"background": string;
|
|
128
|
-
/**
|
|
129
|
-
* Define the border radius of the button with a pixel amount.
|
|
130
|
-
* @uiName Border Radius
|
|
131
|
-
* @default 8
|
|
132
|
-
* @uiWidget number
|
|
133
|
-
*/
|
|
134
|
-
"borderradius": string;
|
|
135
|
-
/**
|
|
136
|
-
* @uiName Button Color
|
|
137
|
-
* @uiWidget color
|
|
138
|
-
* @default #F5A100
|
|
139
|
-
*/
|
|
140
|
-
"buttonbackground": string;
|
|
141
|
-
/**
|
|
142
|
-
* @uiName Text Color
|
|
143
|
-
* @uiWidget color
|
|
144
|
-
*/
|
|
145
|
-
"color": string;
|
|
146
|
-
/**
|
|
147
|
-
* @uiName Font Family
|
|
148
|
-
*/
|
|
149
|
-
"fontfamily": string;
|
|
150
|
-
/**
|
|
151
|
-
* Define the font size of the button text with pixel amount.
|
|
152
|
-
* @uiName Font Size
|
|
153
|
-
*/
|
|
154
|
-
"fontsize": string;
|
|
155
|
-
/**
|
|
156
|
-
* Define the font weight of the button text.
|
|
157
|
-
* @uiName Font Weight
|
|
158
|
-
*/
|
|
159
|
-
"fontweight": string;
|
|
160
|
-
/**
|
|
161
|
-
* Define the height of the container with a pixel amount.
|
|
162
|
-
* @uiName Button Height
|
|
163
|
-
*/
|
|
164
|
-
"height": string;
|
|
165
|
-
/**
|
|
166
|
-
* @uiName Hide Text
|
|
167
|
-
*/
|
|
168
|
-
"ishidden": boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
|
|
171
|
-
* @uiName Use Markdown
|
|
172
|
-
*/
|
|
173
|
-
"ismarkdown": boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Define the bottom padding with a pixel amount.
|
|
176
|
-
* @uiName Padding Bottom
|
|
177
|
-
*/
|
|
178
|
-
"paddingbottom": string;
|
|
179
|
-
/**
|
|
180
|
-
* Define the top padding with a pixel amount.
|
|
181
|
-
* @uiName Padding Top
|
|
182
|
-
*/
|
|
183
|
-
"paddingtop": string;
|
|
184
|
-
/**
|
|
185
|
-
* @uiName Button Text
|
|
186
|
-
*/
|
|
187
|
-
"text": string;
|
|
188
|
-
/**
|
|
189
|
-
* @uiName Button Alignment
|
|
190
|
-
* @uiEnum ["left", "center", "right"]
|
|
191
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
192
|
-
*/
|
|
193
|
-
"textalign": string;
|
|
194
|
-
/**
|
|
195
|
-
* @uiName Button Link
|
|
196
|
-
*/
|
|
197
|
-
"url": string;
|
|
198
|
-
/**
|
|
199
|
-
* Define the width of the button with a pixel amount.
|
|
200
|
-
* @uiName Button Width
|
|
201
|
-
*/
|
|
202
|
-
"width": string;
|
|
203
|
-
}
|
|
204
122
|
interface SqhGlobalContainer {
|
|
205
123
|
/**
|
|
206
124
|
* @uiName Background Color
|
|
@@ -285,7 +203,7 @@ export namespace Components {
|
|
|
285
203
|
/**
|
|
286
204
|
* Determines what type of stat is displayed. Manual paths are also supported.
|
|
287
205
|
* @uiName Stat Type
|
|
288
|
-
* @uiWidget
|
|
206
|
+
* @uiWidget statTypeSelectWidget
|
|
289
207
|
* @required
|
|
290
208
|
* @minLength 1
|
|
291
209
|
*/
|
|
@@ -297,61 +215,6 @@ export namespace Components {
|
|
|
297
215
|
*/
|
|
298
216
|
"statvalue": string;
|
|
299
217
|
}
|
|
300
|
-
interface SqhProgressIndicator {
|
|
301
|
-
/**
|
|
302
|
-
* @undocumented
|
|
303
|
-
* @uiName Text Alignment
|
|
304
|
-
* @uiEnum ["left", "center", "right"]
|
|
305
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
306
|
-
*/
|
|
307
|
-
"align": string;
|
|
308
|
-
/**
|
|
309
|
-
* Text displayed before a user’s credit earned amount.
|
|
310
|
-
* @uiName Credit Earned Text
|
|
311
|
-
*/
|
|
312
|
-
"earned": string;
|
|
313
|
-
/**
|
|
314
|
-
* @uiName Hide Component
|
|
315
|
-
*/
|
|
316
|
-
"ishidden": boolean;
|
|
317
|
-
/**
|
|
318
|
-
* @uiName Percentage Text Color
|
|
319
|
-
* @uiWidget color
|
|
320
|
-
*/
|
|
321
|
-
"percentagecolor": string;
|
|
322
|
-
/**
|
|
323
|
-
* Define the font size of the percentage text in a pixel amount
|
|
324
|
-
* @uiName Percentage Text Size
|
|
325
|
-
*/
|
|
326
|
-
"percentagesize": string;
|
|
327
|
-
/**
|
|
328
|
-
* Text displayed below the completion percentage.
|
|
329
|
-
* @uiName Progress Text
|
|
330
|
-
*/
|
|
331
|
-
"progress": string;
|
|
332
|
-
/**
|
|
333
|
-
* @uiName Progress Color
|
|
334
|
-
* @uiWidget color
|
|
335
|
-
*/
|
|
336
|
-
"progresscolor": string;
|
|
337
|
-
/**
|
|
338
|
-
* The type of icon used to display a user’s progress.
|
|
339
|
-
* @uiName Indicator Icon
|
|
340
|
-
* @uiEnum ["Path"]
|
|
341
|
-
* @uiEnumNames ["Path"]
|
|
342
|
-
*/
|
|
343
|
-
"progresstype": string;
|
|
344
|
-
/**
|
|
345
|
-
* Width of the progress bar.
|
|
346
|
-
* @uiName Progress Width
|
|
347
|
-
*/
|
|
348
|
-
"progresswidth": string;
|
|
349
|
-
/**
|
|
350
|
-
* @uiName Text Color
|
|
351
|
-
* @uiWidget color
|
|
352
|
-
*/
|
|
353
|
-
"textcolor": string;
|
|
354
|
-
}
|
|
355
218
|
interface SqhReferralCode {
|
|
356
219
|
}
|
|
357
220
|
interface SqhReferralComponent {
|
|
@@ -1196,7 +1059,7 @@ export namespace Components {
|
|
|
1196
1059
|
/**
|
|
1197
1060
|
* Type of stat being displayed. e.g /rewardsCount
|
|
1198
1061
|
* @uiName Stat Type
|
|
1199
|
-
* @uiWidget
|
|
1062
|
+
* @uiWidget statTypeSelectWidget
|
|
1200
1063
|
* @required
|
|
1201
1064
|
* @minLength 1
|
|
1202
1065
|
*/
|
|
@@ -1276,6 +1139,7 @@ export namespace Components {
|
|
|
1276
1139
|
"paddingtop": string;
|
|
1277
1140
|
/**
|
|
1278
1141
|
* @uiName Text
|
|
1142
|
+
* @uiWidget textArea
|
|
1279
1143
|
*/
|
|
1280
1144
|
"text": string;
|
|
1281
1145
|
/**
|
|
@@ -1305,12 +1169,6 @@ declare global {
|
|
|
1305
1169
|
prototype: HTMLSqhCopyLinkButtonElement;
|
|
1306
1170
|
new (): HTMLSqhCopyLinkButtonElement;
|
|
1307
1171
|
};
|
|
1308
|
-
interface HTMLSqhCtaComponentElement extends Components.SqhCtaComponent, HTMLStencilElement {
|
|
1309
|
-
}
|
|
1310
|
-
var HTMLSqhCtaComponentElement: {
|
|
1311
|
-
prototype: HTMLSqhCtaComponentElement;
|
|
1312
|
-
new (): HTMLSqhCtaComponentElement;
|
|
1313
|
-
};
|
|
1314
1172
|
interface HTMLSqhGlobalContainerElement extends Components.SqhGlobalContainer, HTMLStencilElement {
|
|
1315
1173
|
}
|
|
1316
1174
|
var HTMLSqhGlobalContainerElement: {
|
|
@@ -1329,12 +1187,6 @@ declare global {
|
|
|
1329
1187
|
prototype: HTMLSqhPartnerStatComponentElement;
|
|
1330
1188
|
new (): HTMLSqhPartnerStatComponentElement;
|
|
1331
1189
|
};
|
|
1332
|
-
interface HTMLSqhProgressIndicatorElement extends Components.SqhProgressIndicator, HTMLStencilElement {
|
|
1333
|
-
}
|
|
1334
|
-
var HTMLSqhProgressIndicatorElement: {
|
|
1335
|
-
prototype: HTMLSqhProgressIndicatorElement;
|
|
1336
|
-
new (): HTMLSqhProgressIndicatorElement;
|
|
1337
|
-
};
|
|
1338
1190
|
interface HTMLSqhReferralCodeElement extends Components.SqhReferralCode, HTMLStencilElement {
|
|
1339
1191
|
}
|
|
1340
1192
|
var HTMLSqhReferralCodeElement: {
|
|
@@ -1393,11 +1245,9 @@ declare global {
|
|
|
1393
1245
|
"sqh-close-button": HTMLSqhCloseButtonElement;
|
|
1394
1246
|
"sqh-copy-button": HTMLSqhCopyButtonElement;
|
|
1395
1247
|
"sqh-copy-link-button": HTMLSqhCopyLinkButtonElement;
|
|
1396
|
-
"sqh-cta-component": HTMLSqhCtaComponentElement;
|
|
1397
1248
|
"sqh-global-container": HTMLSqhGlobalContainerElement;
|
|
1398
1249
|
"sqh-image-component": HTMLSqhImageComponentElement;
|
|
1399
1250
|
"sqh-partner-stat-component": HTMLSqhPartnerStatComponentElement;
|
|
1400
|
-
"sqh-progress-indicator": HTMLSqhProgressIndicatorElement;
|
|
1401
1251
|
"sqh-referral-code": HTMLSqhReferralCodeElement;
|
|
1402
1252
|
"sqh-referral-component": HTMLSqhReferralComponentElement;
|
|
1403
1253
|
"sqh-referral-list": HTMLSqhReferralListElement;
|
|
@@ -1523,88 +1373,6 @@ declare namespace LocalJSX {
|
|
|
1523
1373
|
*/
|
|
1524
1374
|
"textcolor"?: string;
|
|
1525
1375
|
}
|
|
1526
|
-
interface SqhCtaComponent {
|
|
1527
|
-
/**
|
|
1528
|
-
* @uiName Container Background Color
|
|
1529
|
-
* @uiWidget color
|
|
1530
|
-
*/
|
|
1531
|
-
"background"?: string;
|
|
1532
|
-
/**
|
|
1533
|
-
* Define the border radius of the button with a pixel amount.
|
|
1534
|
-
* @uiName Border Radius
|
|
1535
|
-
* @default 8
|
|
1536
|
-
* @uiWidget number
|
|
1537
|
-
*/
|
|
1538
|
-
"borderradius"?: string;
|
|
1539
|
-
/**
|
|
1540
|
-
* @uiName Button Color
|
|
1541
|
-
* @uiWidget color
|
|
1542
|
-
* @default #F5A100
|
|
1543
|
-
*/
|
|
1544
|
-
"buttonbackground"?: string;
|
|
1545
|
-
/**
|
|
1546
|
-
* @uiName Text Color
|
|
1547
|
-
* @uiWidget color
|
|
1548
|
-
*/
|
|
1549
|
-
"color"?: string;
|
|
1550
|
-
/**
|
|
1551
|
-
* @uiName Font Family
|
|
1552
|
-
*/
|
|
1553
|
-
"fontfamily"?: string;
|
|
1554
|
-
/**
|
|
1555
|
-
* Define the font size of the button text with pixel amount.
|
|
1556
|
-
* @uiName Font Size
|
|
1557
|
-
*/
|
|
1558
|
-
"fontsize"?: string;
|
|
1559
|
-
/**
|
|
1560
|
-
* Define the font weight of the button text.
|
|
1561
|
-
* @uiName Font Weight
|
|
1562
|
-
*/
|
|
1563
|
-
"fontweight"?: string;
|
|
1564
|
-
/**
|
|
1565
|
-
* Define the height of the container with a pixel amount.
|
|
1566
|
-
* @uiName Button Height
|
|
1567
|
-
*/
|
|
1568
|
-
"height"?: string;
|
|
1569
|
-
/**
|
|
1570
|
-
* @uiName Hide Text
|
|
1571
|
-
*/
|
|
1572
|
-
"ishidden"?: boolean;
|
|
1573
|
-
/**
|
|
1574
|
-
* Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
|
|
1575
|
-
* @uiName Use Markdown
|
|
1576
|
-
*/
|
|
1577
|
-
"ismarkdown"?: boolean;
|
|
1578
|
-
/**
|
|
1579
|
-
* Define the bottom padding with a pixel amount.
|
|
1580
|
-
* @uiName Padding Bottom
|
|
1581
|
-
*/
|
|
1582
|
-
"paddingbottom"?: string;
|
|
1583
|
-
/**
|
|
1584
|
-
* Define the top padding with a pixel amount.
|
|
1585
|
-
* @uiName Padding Top
|
|
1586
|
-
*/
|
|
1587
|
-
"paddingtop"?: string;
|
|
1588
|
-
/**
|
|
1589
|
-
* @uiName Button Text
|
|
1590
|
-
*/
|
|
1591
|
-
"text"?: string;
|
|
1592
|
-
/**
|
|
1593
|
-
* @uiName Button Alignment
|
|
1594
|
-
* @uiEnum ["left", "center", "right"]
|
|
1595
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
1596
|
-
*/
|
|
1597
|
-
"textalign"?: string;
|
|
1598
|
-
/**
|
|
1599
|
-
* @uiName Button Link
|
|
1600
|
-
*/
|
|
1601
|
-
"url"?: string;
|
|
1602
|
-
/**
|
|
1603
|
-
* Define the width of the button with a pixel amount.
|
|
1604
|
-
* @uiName Button Width
|
|
1605
|
-
*/
|
|
1606
|
-
"width"?: string;
|
|
1607
|
-
}
|
|
1608
1376
|
interface SqhGlobalContainer {
|
|
1609
1377
|
/**
|
|
1610
1378
|
* @uiName Background Color
|
|
@@ -1691,7 +1459,7 @@ declare namespace LocalJSX {
|
|
|
1691
1459
|
/**
|
|
1692
1460
|
* Determines what type of stat is displayed. Manual paths are also supported.
|
|
1693
1461
|
* @uiName Stat Type
|
|
1694
|
-
* @uiWidget
|
|
1462
|
+
* @uiWidget statTypeSelectWidget
|
|
1695
1463
|
* @required
|
|
1696
1464
|
* @minLength 1
|
|
1697
1465
|
*/
|
|
@@ -1703,61 +1471,6 @@ declare namespace LocalJSX {
|
|
|
1703
1471
|
*/
|
|
1704
1472
|
"statvalue"?: string;
|
|
1705
1473
|
}
|
|
1706
|
-
interface SqhProgressIndicator {
|
|
1707
|
-
/**
|
|
1708
|
-
* @undocumented
|
|
1709
|
-
* @uiName Text Alignment
|
|
1710
|
-
* @uiEnum ["left", "center", "right"]
|
|
1711
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
1712
|
-
*/
|
|
1713
|
-
"align"?: string;
|
|
1714
|
-
/**
|
|
1715
|
-
* Text displayed before a user’s credit earned amount.
|
|
1716
|
-
* @uiName Credit Earned Text
|
|
1717
|
-
*/
|
|
1718
|
-
"earned"?: string;
|
|
1719
|
-
/**
|
|
1720
|
-
* @uiName Hide Component
|
|
1721
|
-
*/
|
|
1722
|
-
"ishidden"?: boolean;
|
|
1723
|
-
/**
|
|
1724
|
-
* @uiName Percentage Text Color
|
|
1725
|
-
* @uiWidget color
|
|
1726
|
-
*/
|
|
1727
|
-
"percentagecolor"?: string;
|
|
1728
|
-
/**
|
|
1729
|
-
* Define the font size of the percentage text in a pixel amount
|
|
1730
|
-
* @uiName Percentage Text Size
|
|
1731
|
-
*/
|
|
1732
|
-
"percentagesize"?: string;
|
|
1733
|
-
/**
|
|
1734
|
-
* Text displayed below the completion percentage.
|
|
1735
|
-
* @uiName Progress Text
|
|
1736
|
-
*/
|
|
1737
|
-
"progress"?: string;
|
|
1738
|
-
/**
|
|
1739
|
-
* @uiName Progress Color
|
|
1740
|
-
* @uiWidget color
|
|
1741
|
-
*/
|
|
1742
|
-
"progresscolor"?: string;
|
|
1743
|
-
/**
|
|
1744
|
-
* The type of icon used to display a user’s progress.
|
|
1745
|
-
* @uiName Indicator Icon
|
|
1746
|
-
* @uiEnum ["Path"]
|
|
1747
|
-
* @uiEnumNames ["Path"]
|
|
1748
|
-
*/
|
|
1749
|
-
"progresstype"?: string;
|
|
1750
|
-
/**
|
|
1751
|
-
* Width of the progress bar.
|
|
1752
|
-
* @uiName Progress Width
|
|
1753
|
-
*/
|
|
1754
|
-
"progresswidth"?: string;
|
|
1755
|
-
/**
|
|
1756
|
-
* @uiName Text Color
|
|
1757
|
-
* @uiWidget color
|
|
1758
|
-
*/
|
|
1759
|
-
"textcolor"?: string;
|
|
1760
|
-
}
|
|
1761
1474
|
interface SqhReferralCode {
|
|
1762
1475
|
}
|
|
1763
1476
|
interface SqhReferralComponent {
|
|
@@ -2604,7 +2317,7 @@ declare namespace LocalJSX {
|
|
|
2604
2317
|
/**
|
|
2605
2318
|
* Type of stat being displayed. e.g /rewardsCount
|
|
2606
2319
|
* @uiName Stat Type
|
|
2607
|
-
* @uiWidget
|
|
2320
|
+
* @uiWidget statTypeSelectWidget
|
|
2608
2321
|
* @required
|
|
2609
2322
|
* @minLength 1
|
|
2610
2323
|
*/
|
|
@@ -2684,6 +2397,7 @@ declare namespace LocalJSX {
|
|
|
2684
2397
|
"paddingtop"?: string;
|
|
2685
2398
|
/**
|
|
2686
2399
|
* @uiName Text
|
|
2400
|
+
* @uiWidget textArea
|
|
2687
2401
|
*/
|
|
2688
2402
|
"text"?: string;
|
|
2689
2403
|
/**
|
|
@@ -2697,11 +2411,9 @@ declare namespace LocalJSX {
|
|
|
2697
2411
|
"sqh-close-button": SqhCloseButton;
|
|
2698
2412
|
"sqh-copy-button": SqhCopyButton;
|
|
2699
2413
|
"sqh-copy-link-button": SqhCopyLinkButton;
|
|
2700
|
-
"sqh-cta-component": SqhCtaComponent;
|
|
2701
2414
|
"sqh-global-container": SqhGlobalContainer;
|
|
2702
2415
|
"sqh-image-component": SqhImageComponent;
|
|
2703
2416
|
"sqh-partner-stat-component": SqhPartnerStatComponent;
|
|
2704
|
-
"sqh-progress-indicator": SqhProgressIndicator;
|
|
2705
2417
|
"sqh-referral-code": SqhReferralCode;
|
|
2706
2418
|
"sqh-referral-component": SqhReferralComponent;
|
|
2707
2419
|
"sqh-referral-list": SqhReferralList;
|
|
@@ -2720,11 +2432,9 @@ declare module "@stencil/core" {
|
|
|
2720
2432
|
"sqh-close-button": LocalJSX.SqhCloseButton & JSXBase.HTMLAttributes<HTMLSqhCloseButtonElement>;
|
|
2721
2433
|
"sqh-copy-button": LocalJSX.SqhCopyButton & JSXBase.HTMLAttributes<HTMLSqhCopyButtonElement>;
|
|
2722
2434
|
"sqh-copy-link-button": LocalJSX.SqhCopyLinkButton & JSXBase.HTMLAttributes<HTMLSqhCopyLinkButtonElement>;
|
|
2723
|
-
"sqh-cta-component": LocalJSX.SqhCtaComponent & JSXBase.HTMLAttributes<HTMLSqhCtaComponentElement>;
|
|
2724
2435
|
"sqh-global-container": LocalJSX.SqhGlobalContainer & JSXBase.HTMLAttributes<HTMLSqhGlobalContainerElement>;
|
|
2725
2436
|
"sqh-image-component": LocalJSX.SqhImageComponent & JSXBase.HTMLAttributes<HTMLSqhImageComponentElement>;
|
|
2726
2437
|
"sqh-partner-stat-component": LocalJSX.SqhPartnerStatComponent & JSXBase.HTMLAttributes<HTMLSqhPartnerStatComponentElement>;
|
|
2727
|
-
"sqh-progress-indicator": LocalJSX.SqhProgressIndicator & JSXBase.HTMLAttributes<HTMLSqhProgressIndicatorElement>;
|
|
2728
2438
|
"sqh-referral-code": LocalJSX.SqhReferralCode & JSXBase.HTMLAttributes<HTMLSqhReferralCodeElement>;
|
|
2729
2439
|
"sqh-referral-component": LocalJSX.SqhReferralComponent & JSXBase.HTMLAttributes<HTMLSqhReferralComponentElement>;
|
|
2730
2440
|
"sqh-referral-list": LocalJSX.SqhReferralList & JSXBase.HTMLAttributes<HTMLSqhReferralListElement>;
|
|
@@ -7,8 +7,6 @@ export interface WidgetIdent {
|
|
|
7
7
|
accountId: string;
|
|
8
8
|
engagementMedium: "POPUP" | "EMBED" | string;
|
|
9
9
|
programId: string;
|
|
10
|
-
locale: string;
|
|
11
|
-
env?: string;
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* Links up to Squatch.js running in the parent frame, and exposes an API for trigger things outside of the scope of a single widget.
|
|
@@ -32,13 +30,9 @@ declare const API: {
|
|
|
32
30
|
getShareLink(): any;
|
|
33
31
|
getReferrals(showReferrer: boolean, offset?: number, limit?: number): any;
|
|
34
32
|
getStats(): any;
|
|
35
|
-
getBalanceDetails(): any;
|
|
36
|
-
getRewardExpiries(): any;
|
|
37
33
|
getReferralCode(): Promise<string>;
|
|
38
34
|
getFueltankCode(rewardKey: any): Promise<SimpleObject>;
|
|
39
35
|
getMessageLinks(mediums: Array<string>): any;
|
|
40
|
-
getUserProgress(): any;
|
|
41
|
-
getProgramRules(): any;
|
|
42
36
|
};
|
|
43
37
|
ui: any;
|
|
44
38
|
};
|
|
@@ -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");
|