@saasquatch/vanilla-components 1.2.3 → 1.2.4-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 (93) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{WidgetHost-d7b870ce.js → WidgetHost-71b013eb.js} +615 -615
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sqh-close-button.cjs.entry.js +27 -22
  5. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +1054 -980
  6. package/dist/cjs/sqh-referral-code.cjs.entry.js +22 -22
  7. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +26 -11
  8. package/dist/cjs/widget-components.cjs.js +1 -1
  9. package/dist/collection/components/close-button/close-button.js +70 -56
  10. package/dist/collection/components/copy-button/copy-button.js +389 -293
  11. package/dist/collection/components/copy-link-button/copy-link-button.js +233 -182
  12. package/dist/collection/components/global-container/global-container.js +170 -126
  13. package/dist/collection/components/image-component/image-component.js +175 -132
  14. package/dist/collection/components/partner-stat-component/partner-stat-component.js +186 -155
  15. package/dist/collection/components/referral-code/referral-code.js +34 -30
  16. package/dist/collection/components/referral-component/referral-component.js +255 -236
  17. package/dist/collection/components/referral-list/referral-list.js +930 -671
  18. package/dist/collection/components/rewards-actions/rewards-actions.js +105 -77
  19. package/dist/collection/components/share-button/share-button.js +310 -255
  20. package/dist/collection/components/share-button-container/share-button-container.js +2470 -1534
  21. package/dist/collection/components/stat-component/stat-component.js +186 -155
  22. package/dist/collection/components/stats-container/stats-container.js +205 -180
  23. package/dist/collection/components/text-component/text-component.js +280 -249
  24. package/dist/collection/entrypoint.js +32 -32
  25. package/dist/collection/global/global.js +4 -4
  26. package/dist/collection/services/FormatJs.js +15 -15
  27. package/dist/collection/services/WidgetHost.js +621 -621
  28. package/dist/collection/utilities.js +81 -81
  29. package/dist/esm/{WidgetHost-a27e693d.js → WidgetHost-9c337319.js} +615 -615
  30. package/dist/esm/loader.mjs +1 -1
  31. package/dist/esm/polyfills/core-js.js +0 -0
  32. package/dist/esm/polyfills/dom.js +0 -0
  33. package/dist/esm/polyfills/es5-html-element.js +0 -0
  34. package/dist/esm/polyfills/index.js +0 -0
  35. package/dist/esm/polyfills/system.js +0 -0
  36. package/dist/esm/sqh-close-button.entry.js +27 -22
  37. package/dist/esm/sqh-copy-button_12.entry.js +1053 -979
  38. package/dist/esm/sqh-referral-code.entry.js +22 -22
  39. package/dist/esm/sqh-rewards-actions.entry.js +26 -11
  40. package/dist/esm/widget-components.mjs +1 -1
  41. package/dist/esm-es5/{WidgetHost-a27e693d.js → WidgetHost-9c337319.js} +9432 -9432
  42. package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
  43. package/dist/esm-es5/css-shim-a659079f.js +122 -122
  44. package/dist/esm-es5/dom-4061ceba.js +468 -468
  45. package/dist/esm-es5/en-be593af0.js +1471 -1471
  46. package/dist/esm-es5/index-8ea8b6d8.js +1758 -1758
  47. package/dist/esm-es5/loader.mjs +11 -11
  48. package/dist/esm-es5/sqh-close-button.entry.js +35 -30
  49. package/dist/esm-es5/sqh-copy-button_12.entry.js +9571 -9485
  50. package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
  51. package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -16
  52. package/dist/esm-es5/widget-components.mjs +6 -6
  53. package/dist/types/components/close-button/close-button.d.ts +18 -7
  54. package/dist/types/components/copy-button/copy-button.d.ts +107 -23
  55. package/dist/types/components/copy-link-button/copy-link-button.d.ts +62 -17
  56. package/dist/types/components/global-container/global-container.d.ts +47 -9
  57. package/dist/types/components/image-component/image-component.d.ts +51 -9
  58. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +49 -16
  59. package/dist/types/components/referral-code/referral-code.d.ts +10 -6
  60. package/dist/types/components/referral-component/referral-component.d.ts +46 -17
  61. package/dist/types/components/referral-list/referral-list.d.ts +249 -44
  62. package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -6
  63. package/dist/types/components/share-button/share-button.d.ts +82 -17
  64. package/dist/types/components/share-button-container/share-button-container.d.ts +684 -97
  65. package/dist/types/components/stat-component/stat-component.d.ts +48 -16
  66. package/dist/types/components/stats-container/stats-container.d.ts +45 -23
  67. package/dist/types/components/text-component/text-component.d.ts +81 -16
  68. package/dist/types/components.d.ts +2050 -2
  69. package/dist/types/global/global.d.ts +4 -4
  70. package/dist/types/saasquatch.d.ts +103 -103
  71. package/dist/types/services/FormatJs.d.ts +7 -7
  72. package/dist/types/services/WidgetHost.d.ts +45 -45
  73. package/dist/types/utilities.d.ts +7 -7
  74. package/dist/widget-components/entrypoint.js +32 -32
  75. package/dist/widget-components/p-24fc4ba9.js +1 -1
  76. package/dist/widget-components/{p-d4b27c72.entry.js → p-366f1663.entry.js} +1 -1
  77. package/dist/widget-components/p-46109683.js +3 -3
  78. package/dist/widget-components/{p-650d012d.entry.js → p-54ea7a00.entry.js} +1 -1
  79. package/dist/widget-components/p-58be1132.system.js +1 -1
  80. package/dist/widget-components/{p-9adc7c50.system.js → p-8e232564.system.js} +0 -0
  81. package/dist/widget-components/{p-c0cdba77.system.entry.js → p-b17efca4.system.entry.js} +1 -1
  82. package/dist/widget-components/p-c8bc8c77.system.entry.js +1 -0
  83. package/dist/widget-components/{p-75ab4c57.entry.js → p-d416634a.entry.js} +16 -16
  84. package/dist/widget-components/p-d97c955d.system.entry.js +8 -0
  85. package/dist/widget-components/{p-9525bf4a.js → p-edd43dbc.js} +0 -0
  86. package/dist/widget-components/widget-components.esm.js +1 -1
  87. package/dist/widget-components/widget-components.js +1 -1
  88. package/docs/raisins.json +1 -0
  89. package/package.json +96 -89
  90. package/readme.md +52 -52
  91. package/CHANGELOG.md +0 -143
  92. package/dist/widget-components/p-908068c2.system.entry.js +0 -1
  93. package/dist/widget-components/p-d2335c54.system.entry.js +0 -8
@@ -1,44 +1,249 @@
1
- export declare class ReferralList {
2
- ishidden: boolean;
3
- paginatemore: string;
4
- paginateless: string;
5
- noreferralsyet: string;
6
- referralnamecolor: string;
7
- referraltextcolor: string;
8
- unknownuser: string;
9
- showexpiry: boolean;
10
- shownotes: boolean;
11
- redeemedvalue: string;
12
- showreferrer: boolean;
13
- referrercontent: string;
14
- referrervalue: string;
15
- rewardcolor: string;
16
- customernotecolor: string;
17
- usefirstreward: boolean;
18
- convertedcontent: string;
19
- valuecontent: string;
20
- pendingcolor: string;
21
- pendingcontent: string;
22
- pendingvalue: string;
23
- expiredcolor: string;
24
- expiredcontent: string;
25
- expiredvalue: string;
26
- expiresvalue: string;
27
- cancelledcolor: string;
28
- cancelledcontent: string;
29
- cancelledvalue: string;
30
- internationalization: boolean;
31
- referrals: Referral[];
32
- referralsCount: number;
33
- referredBy: any;
34
- rewards: Array<any>;
35
- loading: boolean;
36
- offset: number;
37
- locale: string;
38
- constructor();
39
- componentWillLoad(): any;
40
- getReferrals(showReferrer: boolean, offset?: number): any;
41
- paginate(offset: any, event: any): any;
42
- onError(e: Error): void;
43
- render(): any;
44
- }
1
+ /**
2
+ * @uiName Referral List
3
+ * @canvasRenderer always-replace
4
+ */
5
+ export declare class ReferralList {
6
+ /**
7
+ * Hide or show the component
8
+ *
9
+ * @uiName Hide Referral List
10
+ */
11
+ ishidden: boolean;
12
+ /**
13
+ * Shown inside the paginate more button
14
+ *
15
+ * @uiName Paginate More Text
16
+ * @default "View More"
17
+ */
18
+ paginatemore: string;
19
+ /**
20
+ * Shown inside the paginate less button
21
+ *
22
+ * @uiName Paginate Less Text
23
+ * @default "Previous"
24
+ */
25
+ paginateless: string;
26
+ /**
27
+ * Shown when referral list is empty
28
+ *
29
+ * @uiName Empty Referrals Text
30
+ * @default "No Referrals Yet..."
31
+ */
32
+ noreferralsyet: string;
33
+ /**
34
+ * Text color of the referred users name
35
+ *
36
+ * @uiName Referral Name Color
37
+ * @uiWidget color
38
+ * @format color
39
+ * @default "darkslategray"
40
+ */
41
+ referralnamecolor: string;
42
+ /**
43
+ * Text color of the referral status
44
+ *
45
+ * @uiName Referral Text Color
46
+ * @uiWidget color
47
+ * @format color
48
+ * @default "lightgray"
49
+ */
50
+ referraltextcolor: string;
51
+ /**
52
+ * Text shown when the referred users name is unknown
53
+ *
54
+ * @uiName Unknown User Text
55
+ * @default "Your Friend"
56
+ */
57
+ unknownuser: string;
58
+ /**
59
+ * Show or hide expired rewards
60
+ *
61
+ * @uiName Show Expiry
62
+ */
63
+ showexpiry: boolean;
64
+ /**
65
+ * Show the customer note for a referral
66
+ *
67
+ * @uiName Show Customer Note
68
+ */
69
+ shownotes: boolean;
70
+ /**
71
+ * Shown when reward is redeemed
72
+ *
73
+ * @uiName Redeemed Value
74
+ * @uiGroup Converted Referrals
75
+ * @default "Redeemed"
76
+ */
77
+ redeemedvalue: string;
78
+ /**
79
+ * Show or hide the referrer
80
+ *
81
+ * @uiName Show Referrer
82
+ * @uiGroup Referrer
83
+ * @default ""
84
+ */
85
+ showreferrer: boolean;
86
+ /**
87
+ * Text explaining who referred you to the program
88
+ *
89
+ * @uiName Referrer Content
90
+ * @uiGroup Referrer
91
+ * @default "Referred you {date}"
92
+ */
93
+ referrercontent: string;
94
+ /**
95
+ * Referred Text shown in reward column
96
+ *
97
+ * @uiName Referrer Value
98
+ * @uiGroup Referrer
99
+ * @default "Referred"
100
+ */
101
+ referrervalue: string;
102
+ /**
103
+ * Color of the successful reward icon and the text value
104
+ *
105
+ * @uiName Reward Color
106
+ * @uiGroup Converted Referrals
107
+ * @uiWidget color
108
+ * @format color
109
+ * @default "#4BB543"
110
+ */
111
+ rewardcolor: string;
112
+ /**
113
+ * Color of the customer note
114
+ *
115
+ * @uiName Reward Color
116
+ * @uiGroup Converted Referrals
117
+ * @uiWidget color
118
+ * @format color
119
+ */
120
+ customernotecolor: string;
121
+ /**
122
+ * Show value of the first earned reward inside the rewards column
123
+ *
124
+ * @uiName Use First Reward
125
+ * @uiGroup Converted Referrals
126
+ */
127
+ usefirstreward: boolean;
128
+ /**
129
+ * Content shown when a referral is converted
130
+ *
131
+ * @uiName Converted Content
132
+ * @uiGroup Converted Referrals
133
+ * @default "Signed up, referred {date}"
134
+ */
135
+ convertedcontent: string;
136
+ /**
137
+ * Value shown in the rewards column
138
+ *
139
+ * @uiName Value Content
140
+ * @uiGroup Converted Referrals
141
+ * @uiWidget textArea
142
+ * @default "and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}"
143
+ */
144
+ valuecontent: string;
145
+ /**
146
+ * Color of the pending icon and text
147
+ *
148
+ * @uiName Pending Color
149
+ * @uiGroup Pending Referrals
150
+ * @uiWidget color
151
+ * @format color
152
+ * @default "lightgray"
153
+ */
154
+ pendingcolor: string;
155
+ /**
156
+ * Pending content shown in the user column
157
+ *
158
+ * @uiName Pending Content
159
+ * @uiGroup Pending Referrals
160
+ * @default "Trial user, referred {date}"
161
+ */
162
+ pendingcontent: string;
163
+ /**
164
+ * Pending content shown alongside the icon in the referral column
165
+ *
166
+ * @uiName Pending Value
167
+ * @uiGroup Pending Referrals
168
+ * @default "Referral pending"
169
+ */
170
+ pendingvalue: string;
171
+ /**
172
+ * Color of the expired icon and text
173
+ *
174
+ * @uiName Expired Color
175
+ * @uiGroup Expired Rewards
176
+ * @uiWidget color
177
+ * @format color
178
+ * @default "lightgray"
179
+ */
180
+ expiredcolor: string;
181
+ /**
182
+ * Expired content shown in the user column
183
+ *
184
+ * @uiName Expired Content
185
+ * @uiGroup Expired Rewards
186
+ * @default "Signed up, referred {date}"
187
+ */
188
+ expiredcontent: string;
189
+ /**
190
+ * Expired content shown alongside the icon in the referral column
191
+ *
192
+ * @uiName Expired Value
193
+ * @uiGroup Expired Rewards
194
+ * @default "Expired Reward"
195
+ */
196
+ expiredvalue: string;
197
+ /**
198
+ * Reward expiry ICU message
199
+ *
200
+ * @uiName Expires Value
201
+ * @uiGroup Expired Rewards
202
+ */
203
+ expiresvalue: string;
204
+ /**
205
+ * Color of the cancelled icon and text
206
+ *
207
+ * @uiName Cancelled Color
208
+ * @uiGroup Cancelled Rewards
209
+ * @uiWidget color
210
+ * @format color
211
+ * @default "#C81D05"
212
+ */
213
+ cancelledcolor: string;
214
+ /**
215
+ * Cancelled text content shown in the user column
216
+ *
217
+ * @uiName Cancelled Content
218
+ * @uiGroup Cancelled Rewards
219
+ * @default "Signed up, referred {date}"
220
+ */
221
+ cancelledcontent: string;
222
+ /**
223
+ * Cancelled text content shown alongside the icon in the referral column
224
+ *
225
+ * @uiName Cancelled Value
226
+ * @uiGroup Cancelled Rewards
227
+ * @default "Cancelled Reward"
228
+ */
229
+ cancelledvalue: string;
230
+ /**
231
+ * When true, the local gets set by using the value passed to the referral component
232
+ *
233
+ * @uiName Internationalization
234
+ */
235
+ internationalization: boolean;
236
+ referrals: Referral[];
237
+ referralsCount: number;
238
+ referredBy: any;
239
+ rewards: Array<any>;
240
+ loading: boolean;
241
+ offset: number;
242
+ locale: string;
243
+ constructor();
244
+ componentWillLoad(): any;
245
+ getReferrals(showReferrer: boolean, offset?: number): any;
246
+ paginate(offset: any, event: any): any;
247
+ onError(e: Error): void;
248
+ render(): any;
249
+ }
@@ -1,6 +1,25 @@
1
- export declare class RewardsActions {
2
- previoustext: string;
3
- hidetext: string;
4
- nexttext: string;
5
- render(): any;
6
- }
1
+ /**
2
+ * @uiName Reward Actions
3
+ * @canvasRenderer always-replace
4
+ */
5
+ export declare class RewardsActions {
6
+ /**
7
+ * Text inside the previous button
8
+ *
9
+ * @uiName Previous Button Text
10
+ */
11
+ previoustext: string;
12
+ /**
13
+ * Text inside the hide button
14
+ *
15
+ * @uiName Hide Button Text
16
+ */
17
+ hidetext: string;
18
+ /**
19
+ * Text inside the next button
20
+ *
21
+ * @uiName Next Button Text
22
+ */
23
+ nexttext: string;
24
+ render(): any;
25
+ }
@@ -1,17 +1,82 @@
1
- export declare class ShareButton {
2
- displayrule: string;
3
- text: string;
4
- backgroundcolor: string;
5
- textcolor: string;
6
- icon: string;
7
- buttonClassName: string;
8
- iconhorizontal: number;
9
- iconvertical: number;
10
- iconsize: number;
11
- type: string;
12
- url: string;
13
- button: HTMLElement;
14
- clickHandler(e: any): void;
15
- componentDidLoad(): void;
16
- render(): any;
17
- }
1
+ /**
2
+ * @uiName Share Button
3
+ * @canvasRenderer always-replace
4
+ */
5
+ export declare class ShareButton {
6
+ /**
7
+ * Show or hide button depending on what type of device the user is on
8
+ *
9
+ * @uiName Share Button Display Rule
10
+ */
11
+ displayrule: string;
12
+ /**
13
+ * Text inside the share button
14
+ *
15
+ * @uiName Share Button Text
16
+ */
17
+ text: string;
18
+ /**
19
+ * Background color of the share button
20
+ *
21
+ * @uiName Share Button Background Color
22
+ * @uiWidget color
23
+ * @format color
24
+ */
25
+ backgroundcolor: string;
26
+ /**
27
+ * Color of the text inside the share button
28
+ *
29
+ * @uiName Share Button Text Color
30
+ * @uiWidget color
31
+ * @format color
32
+ */
33
+ textcolor: string;
34
+ /**
35
+ * Share button icon
36
+ *
37
+ * @uiName Share Button Icon
38
+ */
39
+ icon: string;
40
+ /**
41
+ * CSS Class name used to style the share button
42
+ *
43
+ * @uiName Share Button Class Name
44
+ */
45
+ buttonClassName: string;
46
+ /**
47
+ * Number to horizontally align the share button icon
48
+ *
49
+ * @uiName Share Button Icon Horizontal
50
+ */
51
+ iconhorizontal: number;
52
+ /**
53
+ * Number to vertically align the share button icon
54
+ *
55
+ * @uiName Share Button Icon Vertical
56
+ */
57
+ iconvertical: number;
58
+ /**
59
+ * Size of the Share button icon
60
+ *
61
+ * @uiName Share Button Icon Size
62
+ */
63
+ iconsize: number;
64
+ /**
65
+ * Type of the share button
66
+ *
67
+ * @uiName Share Button Type
68
+ */
69
+ type: string;
70
+ /**
71
+ * URL redirect location
72
+ *
73
+ * @uiName URL
74
+ * @uiWidget imageUpload
75
+ * @format url
76
+ */
77
+ url: string;
78
+ button: HTMLElement;
79
+ clickHandler(e: any): void;
80
+ componentDidLoad(): void;
81
+ render(): any;
82
+ }