@saasquatch/vanilla-components 1.2.3 → 1.3.0-2

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 (52) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sqh-close-button.cjs.entry.js +8 -3
  3. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +179 -7
  4. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
  5. package/dist/cjs/widget-components.cjs.js +1 -1
  6. package/dist/collection/components/close-button/close-button.js +14 -3
  7. package/dist/collection/components/copy-button/copy-button.js +63 -24
  8. package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
  9. package/dist/collection/components/global-container/global-container.js +28 -10
  10. package/dist/collection/components/image-component/image-component.js +33 -12
  11. package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
  12. package/dist/collection/components/referral-code/referral-code.js +3 -0
  13. package/dist/collection/components/referral-component/referral-component.js +28 -10
  14. package/dist/collection/components/referral-list/referral-list.js +205 -58
  15. package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
  16. package/dist/collection/components/share-button/share-button.js +58 -22
  17. package/dist/collection/components/share-button-container/share-button-container.js +824 -164
  18. package/dist/collection/components/stat-component/stat-component.js +28 -10
  19. package/dist/collection/components/stats-container/stats-container.js +23 -6
  20. package/dist/collection/components/text-component/text-component.js +58 -43
  21. package/dist/esm/loader.mjs +1 -1
  22. package/dist/esm/sqh-close-button.entry.js +8 -3
  23. package/dist/esm/sqh-copy-button_12.entry.js +178 -6
  24. package/dist/esm/sqh-rewards-actions.entry.js +15 -0
  25. package/dist/esm/widget-components.mjs +1 -1
  26. package/dist/esm-es5/loader.mjs +1 -1
  27. package/dist/esm-es5/sqh-close-button.entry.js +14 -9
  28. package/dist/esm-es5/sqh-copy-button_12.entry.js +196 -24
  29. package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
  30. package/dist/esm-es5/widget-components.mjs +1 -1
  31. package/dist/types/components/close-button/close-button.d.ts +9 -1
  32. package/dist/types/components/copy-button/copy-button.d.ts +63 -0
  33. package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
  34. package/dist/types/components/global-container/global-container.d.ts +28 -0
  35. package/dist/types/components/image-component/image-component.d.ts +33 -0
  36. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
  37. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  38. package/dist/types/components/referral-component/referral-component.d.ts +28 -0
  39. package/dist/types/components/referral-list/referral-list.d.ts +167 -0
  40. package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
  41. package/dist/types/components/share-button/share-button.d.ts +58 -0
  42. package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
  43. package/dist/types/components/stat-component/stat-component.d.ts +28 -0
  44. package/dist/types/components/stats-container/stats-container.d.ts +18 -0
  45. package/dist/types/components/text-component/text-component.d.ts +58 -1
  46. package/dist/types/components.d.ts +1672 -2
  47. package/dist/widget-components/p-58be1132.system.js +1 -1
  48. package/dist/widget-components/{p-75ab4c57.entry.js → p-d7059393.entry.js} +1 -1
  49. package/dist/widget-components/{p-d2335c54.system.entry.js → p-fba5ea7f.system.entry.js} +1 -1
  50. package/dist/widget-components/widget-components.esm.js +1 -1
  51. package/docs/raisins.json +1 -0
  52. package/package.json +9 -4
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Stat Component
5
+ */
3
6
  export class StatComponent {
4
7
  componentWillLoad() {
5
8
  this.statAddedHandler(this.elem);
@@ -41,8 +44,11 @@ export class StatComponent {
41
44
  "required": false,
42
45
  "optional": false,
43
46
  "docs": {
44
- "tags": [],
45
- "text": ""
47
+ "tags": [{
48
+ "text": "Hide Stat",
49
+ "name": "uiName"
50
+ }],
51
+ "text": "Hide or show the component"
46
52
  },
47
53
  "attribute": "ishidden",
48
54
  "reflect": false
@@ -58,8 +64,11 @@ export class StatComponent {
58
64
  "required": false,
59
65
  "optional": false,
60
66
  "docs": {
61
- "tags": [],
62
- "text": ""
67
+ "tags": [{
68
+ "text": "Stat Type",
69
+ "name": "uiName"
70
+ }],
71
+ "text": "Type of stat being displayed. e.g /rewardsCount"
63
72
  },
64
73
  "attribute": "stattype",
65
74
  "reflect": false
@@ -75,8 +84,11 @@ export class StatComponent {
75
84
  "required": false,
76
85
  "optional": false,
77
86
  "docs": {
78
- "tags": [],
79
- "text": ""
87
+ "tags": [{
88
+ "text": "Stat Value",
89
+ "name": "uiName"
90
+ }],
91
+ "text": "Value shown inside stat"
80
92
  },
81
93
  "attribute": "statvalue",
82
94
  "reflect": false
@@ -92,8 +104,11 @@ export class StatComponent {
92
104
  "required": false,
93
105
  "optional": false,
94
106
  "docs": {
95
- "tags": [],
96
- "text": ""
107
+ "tags": [{
108
+ "text": "Stat Description",
109
+ "name": "uiName"
110
+ }],
111
+ "text": "Description shown underneath stat value"
97
112
  },
98
113
  "attribute": "statdescription",
99
114
  "reflect": false
@@ -109,8 +124,11 @@ export class StatComponent {
109
124
  "required": false,
110
125
  "optional": false,
111
126
  "docs": {
112
- "tags": [],
113
- "text": ""
127
+ "tags": [{
128
+ "text": "Stat Color",
129
+ "name": "uiName"
130
+ }],
131
+ "text": "Text color of the stat"
114
132
  },
115
133
  "attribute": "statcolor",
116
134
  "reflect": false
@@ -2,8 +2,16 @@ import { h, Component, Prop, State, Element, Listen } from "@stencil/core";
2
2
  import { API } from "../../services/WidgetHost";
3
3
  import { pathToRegexp } from "path-to-regexp";
4
4
  import { css } from "emotion";
5
+ /**
6
+ * @uiName Stats Container
7
+ */
5
8
  export class StatsContainer {
6
9
  constructor() {
10
+ /**
11
+ * Hide the component
12
+ *
13
+ * @uiName Is Hidden
14
+ */
7
15
  this.ishidden = false;
8
16
  this.statPaths = [
9
17
  "/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
@@ -117,8 +125,11 @@ export class StatsContainer {
117
125
  "required": false,
118
126
  "optional": false,
119
127
  "docs": {
120
- "tags": [],
121
- "text": ""
128
+ "tags": [{
129
+ "text": "Is Hidden",
130
+ "name": "uiName"
131
+ }],
132
+ "text": "Hide the component"
122
133
  },
123
134
  "attribute": "ishidden",
124
135
  "reflect": false,
@@ -135,8 +146,11 @@ export class StatsContainer {
135
146
  "required": false,
136
147
  "optional": false,
137
148
  "docs": {
138
- "tags": [],
139
- "text": ""
149
+ "tags": [{
150
+ "text": "Padding Top",
151
+ "name": "uiName"
152
+ }],
153
+ "text": "Configure the padding top of the container"
140
154
  },
141
155
  "attribute": "paddingtop",
142
156
  "reflect": false
@@ -152,8 +166,11 @@ export class StatsContainer {
152
166
  "required": false,
153
167
  "optional": false,
154
168
  "docs": {
155
- "tags": [],
156
- "text": ""
169
+ "tags": [{
170
+ "text": "Padding Bottom",
171
+ "name": "uiName"
172
+ }],
173
+ "text": "Configure the padding bottom of the container"
157
174
  },
158
175
  "attribute": "paddingbottom",
159
176
  "reflect": false
@@ -1,10 +1,10 @@
1
1
  import { h, Component, Prop, Element } from "@stencil/core";
2
2
  import { css } from "emotion";
3
3
  import marked from "marked";
4
+ /**
5
+ * @uiName Text Component
6
+ */
4
7
  export class TextComponent {
5
- constructor() {
6
- this.padding = "10px 20px 15px";
7
- }
8
8
  render() {
9
9
  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;
10
10
  const textStyle = css `
@@ -50,8 +50,11 @@ export class TextComponent {
50
50
  "required": false,
51
51
  "optional": false,
52
52
  "docs": {
53
- "tags": [],
54
- "text": ""
53
+ "tags": [{
54
+ "text": "Hide Text",
55
+ "name": "uiName"
56
+ }],
57
+ "text": "Hide or show the component"
55
58
  },
56
59
  "attribute": "ishidden",
57
60
  "reflect": false
@@ -67,8 +70,11 @@ export class TextComponent {
67
70
  "required": false,
68
71
  "optional": false,
69
72
  "docs": {
70
- "tags": [],
71
- "text": ""
73
+ "tags": [{
74
+ "text": "Is Markdown",
75
+ "name": "uiName"
76
+ }],
77
+ "text": "Compiles plain text into markdown"
72
78
  },
73
79
  "attribute": "ismarkdown",
74
80
  "reflect": false
@@ -84,8 +90,11 @@ export class TextComponent {
84
90
  "required": false,
85
91
  "optional": false,
86
92
  "docs": {
87
- "tags": [],
88
- "text": ""
93
+ "tags": [{
94
+ "text": "Text",
95
+ "name": "uiName"
96
+ }],
97
+ "text": "The text content"
89
98
  },
90
99
  "attribute": "text",
91
100
  "reflect": false
@@ -101,8 +110,11 @@ export class TextComponent {
101
110
  "required": false,
102
111
  "optional": false,
103
112
  "docs": {
104
- "tags": [],
105
- "text": ""
113
+ "tags": [{
114
+ "text": "Font Family",
115
+ "name": "uiName"
116
+ }],
117
+ "text": "Font family of the text"
106
118
  },
107
119
  "attribute": "fontfamily",
108
120
  "reflect": false
@@ -118,8 +130,11 @@ export class TextComponent {
118
130
  "required": false,
119
131
  "optional": false,
120
132
  "docs": {
121
- "tags": [],
122
- "text": ""
133
+ "tags": [{
134
+ "text": "Color",
135
+ "name": "uiName"
136
+ }],
137
+ "text": "Color of the text"
123
138
  },
124
139
  "attribute": "color",
125
140
  "reflect": false
@@ -135,8 +150,11 @@ export class TextComponent {
135
150
  "required": false,
136
151
  "optional": false,
137
152
  "docs": {
138
- "tags": [],
139
- "text": ""
153
+ "tags": [{
154
+ "text": "Font Size",
155
+ "name": "uiName"
156
+ }],
157
+ "text": "Size of the text"
140
158
  },
141
159
  "attribute": "fontsize",
142
160
  "reflect": false
@@ -152,8 +170,11 @@ export class TextComponent {
152
170
  "required": false,
153
171
  "optional": false,
154
172
  "docs": {
155
- "tags": [],
156
- "text": ""
173
+ "tags": [{
174
+ "text": "Padding Top",
175
+ "name": "uiName"
176
+ }],
177
+ "text": "Top padding on text"
157
178
  },
158
179
  "attribute": "paddingtop",
159
180
  "reflect": false
@@ -169,30 +190,15 @@ export class TextComponent {
169
190
  "required": false,
170
191
  "optional": false,
171
192
  "docs": {
172
- "tags": [],
173
- "text": ""
193
+ "tags": [{
194
+ "text": "Padding Bottom",
195
+ "name": "uiName"
196
+ }],
197
+ "text": "Bottom padding on text"
174
198
  },
175
199
  "attribute": "paddingbottom",
176
200
  "reflect": false
177
201
  },
178
- "padding": {
179
- "type": "string",
180
- "mutable": false,
181
- "complexType": {
182
- "original": "string",
183
- "resolved": "string",
184
- "references": {}
185
- },
186
- "required": false,
187
- "optional": false,
188
- "docs": {
189
- "tags": [],
190
- "text": ""
191
- },
192
- "attribute": "padding",
193
- "reflect": false,
194
- "defaultValue": "\"10px 20px 15px\""
195
- },
196
202
  "textalign": {
197
203
  "type": "string",
198
204
  "mutable": false,
@@ -204,8 +210,11 @@ export class TextComponent {
204
210
  "required": false,
205
211
  "optional": false,
206
212
  "docs": {
207
- "tags": [],
208
- "text": ""
213
+ "tags": [{
214
+ "text": "Text Align",
215
+ "name": "uiName"
216
+ }],
217
+ "text": "Text alignment"
209
218
  },
210
219
  "attribute": "textalign",
211
220
  "reflect": false
@@ -221,8 +230,11 @@ export class TextComponent {
221
230
  "required": false,
222
231
  "optional": false,
223
232
  "docs": {
224
- "tags": [],
225
- "text": ""
233
+ "tags": [{
234
+ "text": "Background",
235
+ "name": "uiName"
236
+ }],
237
+ "text": "Background color of the container"
226
238
  },
227
239
  "attribute": "background",
228
240
  "reflect": false
@@ -238,8 +250,11 @@ export class TextComponent {
238
250
  "required": false,
239
251
  "optional": false,
240
252
  "docs": {
241
- "tags": [],
242
- "text": ""
253
+ "tags": [{
254
+ "text": "Height",
255
+ "name": "uiName"
256
+ }],
257
+ "text": "Height of the container"
243
258
  },
244
259
  "attribute": "height",
245
260
  "reflect": false
@@ -5,7 +5,7 @@ import './_commonjsHelpers-1d681858.js';
5
5
  const defineCustomElements = (win, options) => {
6
6
  if (typeof window === 'undefined') return Promise.resolve();
7
7
  return patchEsm().then(() => {
8
- 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],"paddingbottom":[1],"padding":[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 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],"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
  });
10
10
  };
11
11
 
@@ -4,9 +4,14 @@ import { A as API, w as widgetIdent } from './WidgetHost-a27e693d.js';
4
4
 
5
5
  const 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}";
6
6
 
7
- const TwitterShareButton = class {
7
+ const CloseButton = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
+ /**
11
+ * The text shown inside the close button.
12
+ *
13
+ * @uiName Button Text
14
+ */
10
15
  this.text = "Close";
11
16
  }
12
17
  handleClick() {
@@ -23,6 +28,6 @@ const TwitterShareButton = class {
23
28
  }
24
29
  get closeButton() { return getElement(this); }
25
30
  };
26
- TwitterShareButton.style = closeButtonCss;
31
+ CloseButton.style = closeButtonCss;
27
32
 
28
- export { TwitterShareButton as sqh_close_button };
33
+ export { CloseButton as sqh_close_button };
@@ -2738,7 +2738,7 @@ ImageComponent.style = imageComponentCss;
2738
2738
 
2739
2739
  const partnerStatComponentCss = "sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
2740
2740
 
2741
- const StatComponent = class {
2741
+ const PartnerStatComponent = class {
2742
2742
  constructor(hostRef) {
2743
2743
  registerInstance(this, hostRef);
2744
2744
  this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
@@ -2768,7 +2768,7 @@ const StatComponent = class {
2768
2768
  "stattype": ["stattypeHandler"]
2769
2769
  }; }
2770
2770
  };
2771
- StatComponent.style = partnerStatComponentCss;
2771
+ PartnerStatComponent.style = partnerStatComponentCss;
2772
2772
 
2773
2773
  var TYPE;
2774
2774
  (function (TYPE) {
@@ -7326,33 +7326,201 @@ const shareButtonContainerCss = "sqh-share-button-container{text-align:center;di
7326
7326
  const ShareButtonContainer = class {
7327
7327
  constructor(hostRef) {
7328
7328
  registerInstance(this, hostRef);
7329
+ /**
7330
+ * Email button icon
7331
+ *
7332
+ * @uiName Email Icon
7333
+ * @uiGroup emailButton
7334
+ */
7329
7335
  this.emailicon = "mail";
7336
+ /**
7337
+ * CSS Class name used to style the Email button
7338
+ *
7339
+ * @uiName Email Class Name
7340
+ * @uiGroup emailButton
7341
+ */
7330
7342
  this.emailclassName = "email-share";
7343
+ /**
7344
+ * Facebook button icon
7345
+ *
7346
+ * @uiName Facebook Icon
7347
+ * @uiGroup facebookButton
7348
+ */
7331
7349
  this.facebookicon = "facebook";
7350
+ /**
7351
+ * Number to horizontally align the facebook button icon
7352
+ *
7353
+ * @uiName Facebook Icon Horizontal
7354
+ * @uiGroup facebookButton
7355
+ */
7332
7356
  this.facebookiconhorizontal = 9;
7357
+ /**
7358
+ * Size of the facebook button icon
7359
+ *
7360
+ * @uiName Facebook Icon Size
7361
+ * @uiGroup facebookButton
7362
+ */
7333
7363
  this.facebookiconsize = 1.2;
7364
+ /**
7365
+ * Twitter button icon
7366
+ *
7367
+ * @uiName Twitter Icon
7368
+ * @uiGroup twitterButton
7369
+ */
7334
7370
  this.twittericon = "twitter";
7371
+ /**
7372
+ * Number to horizontally align the twitter button icon
7373
+ *
7374
+ * @uiName Twitter Icon Horizontal
7375
+ * @uiGroup twitterButton
7376
+ */
7335
7377
  this.twittericonhorizontal = 9;
7378
+ /**
7379
+ * Size of the twitter button icon
7380
+ *
7381
+ * @uiName Twitter Icon Size
7382
+ * @uiGroup twitterButton
7383
+ */
7336
7384
  this.twittericonsize = 1.2;
7385
+ /**
7386
+ * SMS button icon
7387
+ *
7388
+ * @uiName SMS Icon
7389
+ * @uiGroup smsButton
7390
+ */
7337
7391
  this.smsicon = "chat";
7392
+ /**
7393
+ * Color of the text inside the WhatsApp button
7394
+ *
7395
+ * @uiName WhatsApp Text Color
7396
+ * @uiGroup whatsappButton
7397
+ */
7338
7398
  this.whatsapptextcolor = "#fff";
7399
+ /**
7400
+ * WhatsApp button icon
7401
+ *
7402
+ * @uiName WhatsApp Icon
7403
+ * @uiGroup whatsappButton
7404
+ */
7339
7405
  this.whatsappicon = "whatsapp";
7406
+ /**
7407
+ * Number to horizontally align the WhatsApp button icon
7408
+ *
7409
+ * @uiName WhatsApp Icon Horizontal
7410
+ * @uiGroup whatsappButton
7411
+ */
7340
7412
  this.whatsappiconhorizontal = 7;
7413
+ /**
7414
+ * Number to vertically align the WhatsApp button icon
7415
+ *
7416
+ * @uiName WhatsApp Icon Vertical
7417
+ * @uiGroup whatsappButton
7418
+ */
7341
7419
  this.whatsappiconvertical = 2;
7420
+ /**
7421
+ * Size of the WhatsApp button icon
7422
+ *
7423
+ * @uiName WhatsApp Icon Size
7424
+ * @uiGroup whatsappButton
7425
+ */
7342
7426
  this.whatsappiconsize = 1.4;
7427
+ /**
7428
+ * Linkedin button icon
7429
+ *
7430
+ * @uiName Linkedin Icon
7431
+ * @uiGroup linkedinButton
7432
+ */
7343
7433
  this.linkedinicon = "linkedin";
7434
+ /**
7435
+ * Size of the Linkedin button icon
7436
+ *
7437
+ * @uiName Linkedin Icon Size
7438
+ * @uiGroup linkedinButton
7439
+ */
7344
7440
  this.linkediniconsize = 1.2;
7441
+ /**
7442
+ * Pinterest button icon
7443
+ *
7444
+ * @uiName Pinterest Icon
7445
+ * @uiGroup pinterestButton
7446
+ */
7345
7447
  this.pinteresticon = "pinterest";
7448
+ /**
7449
+ * Number to horizontally align the Pinterest button icon
7450
+ *
7451
+ * @uiName Pinterest Icon Horizontal
7452
+ * @uiGroup pinterestButton
7453
+ */
7346
7454
  this.pinteresticonhorizontal = 9;
7455
+ /**
7456
+ * Number to vertically align the Pinterest button icon
7457
+ *
7458
+ * @uiName Pinterest Icon Vertical
7459
+ * @uiGroup pinterestButton
7460
+ */
7347
7461
  this.pinteresticonvertical = 4;
7462
+ /**
7463
+ * Size of the Pinterest button icon
7464
+ *
7465
+ * @uiName Pinterest Icon Size
7466
+ * @uiGroup pinterestButton
7467
+ */
7348
7468
  this.pinteresticonsize = 1.2;
7469
+ /**
7470
+ * Messenger button icon
7471
+ *
7472
+ * @uiName Messenger Icon
7473
+ * @uiGroup messengerButton
7474
+ */
7349
7475
  this.messengericon = "messenger";
7476
+ /**
7477
+ * Number to horizontally align the Messenger button icon
7478
+ *
7479
+ * @uiName Messenger Icon Horizontal
7480
+ * @uiGroup messengerButton
7481
+ */
7350
7482
  this.messengericonhorizontal = 7;
7483
+ /**
7484
+ * Number to vertically align the Messenger button icon
7485
+ *
7486
+ * @uiName Messenger Icon Vertical
7487
+ * @uiGroup messengerButton
7488
+ */
7351
7489
  this.messengericonvertical = 3;
7490
+ /**
7491
+ * Size of the Messenger button icon
7492
+ *
7493
+ * @uiName Messenger Icon Size
7494
+ * @uiGroup messengerButton
7495
+ */
7352
7496
  this.messengericonsize = 1.4;
7497
+ /**
7498
+ * Line button icon
7499
+ *
7500
+ * @uiName Line Icon
7501
+ * @uiGroup lineButton
7502
+ */
7353
7503
  this.lineicon = "line";
7504
+ /**
7505
+ * Number to horizontally align the Line button icon
7506
+ *
7507
+ * @uiName Line Icon Horizontal
7508
+ * @uiGroup lineButton
7509
+ */
7354
7510
  this.lineiconhorizontal = -2;
7511
+ /**
7512
+ * Number to vertically align the Line button icon
7513
+ *
7514
+ * @uiName Line Icon Vertical
7515
+ * @uiGroup lineButton
7516
+ */
7355
7517
  this.lineiconvertical = -5;
7518
+ /**
7519
+ * Size of the Line button icon
7520
+ *
7521
+ * @uiName Line Icon Size
7522
+ * @uiGroup lineButton
7523
+ */
7356
7524
  this.lineiconsize = 2.2;
7357
7525
  }
7358
7526
  componentWillLoad() {
@@ -7409,7 +7577,7 @@ ShareButtonContainer.style = shareButtonContainerCss;
7409
7577
 
7410
7578
  const statComponentCss = "sqh-stat-component{text-align:center;width:140px;float:left}sqh-stat-component>div{padding:10px}sqh-stat-component .stat-value{white-space:nowrap;font-size:30px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-stat-component:first-child{border-radius:4px 4px 0 0}sqh-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
7411
7579
 
7412
- const StatComponent$1 = class {
7580
+ const StatComponent = class {
7413
7581
  constructor(hostRef) {
7414
7582
  registerInstance(this, hostRef);
7415
7583
  this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
@@ -7439,7 +7607,7 @@ const StatComponent$1 = class {
7439
7607
  "stattype": ["stattypeHandler"]
7440
7608
  }; }
7441
7609
  };
7442
- StatComponent$1.style = statComponentCss;
7610
+ StatComponent.style = statComponentCss;
7443
7611
 
7444
7612
  /**
7445
7613
  * Tokenize input string.
@@ -7739,6 +7907,11 @@ const statsContainerCss = "sqh-stats-container{display:-ms-flexbox;display:flex;
7739
7907
  const StatsContainer = class {
7740
7908
  constructor(hostRef) {
7741
7909
  registerInstance(this, hostRef);
7910
+ /**
7911
+ * Hide the component
7912
+ *
7913
+ * @uiName Is Hidden
7914
+ */
7742
7915
  this.ishidden = false;
7743
7916
  this.statPaths = [
7744
7917
  "/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
@@ -10437,7 +10610,6 @@ const textComponentCss = "sqh-text-component{display:block}sqh-text-component p{
10437
10610
  const TextComponent = class {
10438
10611
  constructor(hostRef) {
10439
10612
  registerInstance(this, hostRef);
10440
- this.padding = "10px 20px 15px";
10441
10613
  }
10442
10614
  render() {
10443
10615
  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;
@@ -10468,4 +10640,4 @@ const TextComponent = class {
10468
10640
  };
10469
10641
  TextComponent.style = textComponentCss;
10470
10642
 
10471
- export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component, StatComponent as sqh_partner_stat_component, ReferralComponent as sqh_referral_component, ReferralList as sqh_referral_list, ShareButton as sqh_share_button, ShareButtonContainer as sqh_share_button_container, StatComponent$1 as sqh_stat_component, StatsContainer as sqh_stats_container, TextComponent as sqh_text_component };
10643
+ export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component, PartnerStatComponent as sqh_partner_stat_component, ReferralComponent as sqh_referral_component, ReferralList as sqh_referral_list, ShareButton as sqh_share_button, ShareButtonContainer as sqh_share_button_container, StatComponent as sqh_stat_component, StatsContainer as sqh_stats_container, TextComponent as sqh_text_component };
@@ -5,8 +5,23 @@ const rewardsActionsCss = "sqh-rewards-actions .squatch-referrals-actions{text-a
5
5
  const RewardsActions = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
+ /**
9
+ * Text inside the previous button
10
+ *
11
+ * @uiName Previous Button Text
12
+ */
8
13
  this.previoustext = "Previous";
14
+ /**
15
+ * Text inside the hide button
16
+ *
17
+ * @uiName Hide Button Text
18
+ */
9
19
  this.hidetext = "Hide";
20
+ /**
21
+ * Text inside the next button
22
+ *
23
+ * @uiName Next Button Text
24
+ */
10
25
  this.nexttext = "Next";
11
26
  }
12
27
  render() {