@saasquatch/vanilla-components 1.2.4-1 → 1.2.4-12

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 (92) hide show
  1. package/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-f349e877.js} +157 -0
  2. package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
  3. package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
  6. package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +1182 -42
  7. package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
  8. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
  9. package/dist/cjs/widget-components.cjs.js +3 -3
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/close-button/close-button.js +3 -0
  12. package/dist/collection/components/copy-button/copy-button.js +22 -28
  13. package/dist/collection/components/copy-link-button/copy-link-button.js +16 -16
  14. package/dist/collection/components/cta-component/cta-component.css +6 -0
  15. package/dist/collection/components/cta-component/cta-component.js +393 -0
  16. package/dist/collection/components/global-container/global-container.js +9 -20
  17. package/dist/collection/components/image-component/image-component.js +13 -12
  18. package/dist/collection/components/partner-stat-component/partner-stat-component.js +20 -9
  19. package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
  20. package/dist/collection/components/progress-indicator/progress-indicator.js +557 -0
  21. package/dist/collection/components/referral-code/referral-code.js +3 -0
  22. package/dist/collection/components/referral-component/referral-component.js +1 -0
  23. package/dist/collection/components/referral-list/referral-list.js +70 -88
  24. package/dist/collection/components/rewards-actions/rewards-actions.js +1 -0
  25. package/dist/collection/components/share-button/share-button.js +4 -12
  26. package/dist/collection/components/share-button-container/share-button-container.js +90 -173
  27. package/dist/collection/components/stat-component/stat-component.js +22 -10
  28. package/dist/collection/components/stats-container/stats-container.js +15 -9
  29. package/dist/collection/components/text-component/text-component.js +42 -17
  30. package/dist/collection/services/WidgetHost.js +157 -0
  31. package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +157 -0
  32. package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
  33. package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
  34. package/dist/esm/loader.mjs +3 -3
  35. package/dist/esm/sqh-close-button.entry.js +2 -2
  36. package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1181 -43
  37. package/dist/esm/sqh-referral-code.entry.js +2 -2
  38. package/dist/esm/sqh-rewards-actions.entry.js +1 -1
  39. package/dist/esm/widget-components.mjs +3 -3
  40. package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +96 -4
  41. package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1 -1
  42. package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +53 -3
  43. package/dist/esm-es5/loader.mjs +3 -3
  44. package/dist/esm-es5/sqh-close-button.entry.js +2 -2
  45. package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1073 -56
  46. package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
  47. package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
  48. package/dist/esm-es5/widget-components.mjs +3 -3
  49. package/dist/types/components/close-button/close-button.d.ts +3 -0
  50. package/dist/types/components/copy-button/copy-button.d.ts +14 -28
  51. package/dist/types/components/copy-link-button/copy-link-button.d.ts +10 -16
  52. package/dist/types/components/cta-component/cta-component.d.ts +88 -0
  53. package/dist/types/components/global-container/global-container.d.ts +7 -14
  54. package/dist/types/components/image-component/image-component.d.ts +8 -13
  55. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +12 -9
  56. package/dist/types/components/progress-indicator/progress-indicator.d.ts +96 -0
  57. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  58. package/dist/types/components/referral-component/referral-component.d.ts +1 -0
  59. package/dist/types/components/referral-list/referral-list.d.ts +63 -77
  60. package/dist/types/components/rewards-actions/rewards-actions.d.ts +1 -0
  61. package/dist/types/components/share-button/share-button.d.ts +3 -7
  62. package/dist/types/components/share-button-container/share-button-container.d.ts +49 -137
  63. package/dist/types/components/stat-component/stat-component.d.ts +13 -11
  64. package/dist/types/components/stats-container/stats-container.d.ts +10 -7
  65. package/dist/types/components/text-component/text-component.d.ts +17 -21
  66. package/dist/types/components.d.ts +634 -542
  67. package/dist/types/saasquatch.d.ts +3 -1
  68. package/dist/types/services/WidgetHost.d.ts +6 -0
  69. package/dist/widget-components/p-0e55cfb5.system.entry.js +10 -0
  70. package/dist/widget-components/p-0ec230df.entry.js +233 -0
  71. package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
  72. package/dist/widget-components/{p-54ea7a00.entry.js → p-3ba562d0.entry.js} +1 -1
  73. package/dist/widget-components/{p-366f1663.entry.js → p-4293e873.entry.js} +1 -1
  74. package/dist/widget-components/{p-8e232564.system.js → p-54e83dfb.system.js} +2 -2
  75. package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
  76. package/dist/widget-components/{p-edd43dbc.js → p-6e753d23.js} +68 -3
  77. package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
  78. package/dist/widget-components/{p-b17efca4.system.entry.js → p-abf8a511.system.entry.js} +1 -1
  79. package/dist/widget-components/p-ad5121cf.system.js +1 -0
  80. package/dist/widget-components/p-d9e9c55c.system.entry.js +1 -0
  81. package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
  82. package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
  83. package/dist/widget-components/p-fbf0c7fe.js +1 -0
  84. package/dist/widget-components/widget-components.esm.js +1 -1
  85. package/dist/widget-components/widget-components.js +1 -1
  86. package/docs/raisins.json +1 -1
  87. package/package.json +4 -3
  88. package/dist/widget-components/p-485eaf44.js +0 -1
  89. package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
  90. package/dist/widget-components/p-d416634a.entry.js +0 -148
  91. package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
  92. package/dist/widget-components/p-e61a8100.system.js +0 -1
@@ -1,233 +1,219 @@
1
1
  /**
2
2
  * @uiName Referral List
3
+ * @canvasRenderer always-replace
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>
3
6
  */
4
7
  export declare class ReferralList {
5
8
  /**
6
- * Hide or show the component
7
- *
9
+ * @undocumented
8
10
  * @uiName Hide Referral List
9
11
  */
10
12
  ishidden: boolean;
11
13
  /**
12
- * Shown inside the paginate more button
14
+ * Shown inside the paginate more button.
13
15
  *
14
16
  * @uiName Paginate More Text
15
- * @default "View More"
17
+ * @default View More
16
18
  */
17
19
  paginatemore: string;
18
20
  /**
19
- * Shown inside the paginate less button
21
+ * Shown inside the paginate less button.
20
22
  *
21
23
  * @uiName Paginate Less Text
22
- * @default "Previous"
24
+ * @default Previous
23
25
  */
24
26
  paginateless: string;
25
27
  /**
26
- * Shown when referral list is empty
28
+ * Shown when referral list is empty.
27
29
  *
28
30
  * @uiName Empty Referrals Text
29
- * @default "No Referrals Yet..."
31
+ * @default No Referrals Yet...
30
32
  */
31
33
  noreferralsyet: string;
32
34
  /**
33
- * Text color of the referred users name
35
+ * Text color of the referred user's name.
34
36
  *
35
37
  * @uiName Referral Name Color
36
38
  * @uiWidget color
37
- * @format color
38
- * @default "darkslategray"
39
+ * @default darkslategray
39
40
  */
40
41
  referralnamecolor: string;
41
42
  /**
42
- * Text color of the referral status
43
- *
44
- * @uiName Referral Text Color
43
+ * @uiName Referral Status Text Color
45
44
  * @uiWidget color
46
- * @format color
47
- * @default "lightgray"
45
+ * @default lightgray
48
46
  */
49
47
  referraltextcolor: string;
50
48
  /**
51
- * Text shown when the referred users name is unknown
49
+ * Text shown when the referred user's name is unknown.
52
50
  *
53
51
  * @uiName Unknown User Text
54
- * @default "Your Friend"
52
+ * @default Your Friend
55
53
  */
56
54
  unknownuser: string;
57
55
  /**
58
- * Show or hide expired rewards
59
- *
60
- * @uiName Show Expiry
56
+ * @uiName Show Expired Rewards
61
57
  */
62
58
  showexpiry: boolean;
63
59
  /**
64
- * Show the customer note for a referral
65
- *
66
60
  * @uiName Show Customer Note
67
61
  */
68
62
  shownotes: boolean;
69
63
  /**
70
- * Shown when reward is redeemed
64
+ * Shown when reward is redeemed.
71
65
  *
72
- * @uiName Redeemed Value
66
+ * @uiName Redeemed Text
73
67
  * @uiGroup Converted Referrals
74
- * @default "Redeemed"
68
+ * @default Redeemed
75
69
  */
76
70
  redeemedvalue: string;
77
71
  /**
78
- * Show or hide the referrer
72
+ * Show referral and reward information on who referred you.
79
73
  *
80
- * @uiName Show Referrer
74
+ * @uiName Show Referred By
81
75
  * @uiGroup Referrer
82
- * @default ""
83
76
  */
84
77
  showreferrer: boolean;
85
78
  /**
86
- * Text explaining who referred you to the program
79
+ * Text explaining who referred you to the program.
87
80
  *
88
- * @uiName Referrer Content
81
+ * @uiName Referrer Description
89
82
  * @uiGroup Referrer
90
- * @default "Referred you {date}"
83
+ * @default Referred you {date}
91
84
  */
92
85
  referrercontent: string;
93
86
  /**
94
- * Referred Text shown in reward column
87
+ * Referred Text shown in reward column.
95
88
  *
96
- * @uiName Referrer Value
89
+ * @uiName Referrer Text
97
90
  * @uiGroup Referrer
98
- * @default "Referred"
91
+ * @default Referred
99
92
  */
100
93
  referrervalue: string;
101
94
  /**
102
- * Color of the successful reward icon and the text value
95
+ * Color of the successful reward icon and text in the rewards column.
103
96
  *
104
97
  * @uiName Reward Color
105
98
  * @uiGroup Converted Referrals
106
99
  * @uiWidget color
107
- * @format color
108
- * @default "#4BB543"
100
+ * @default #4BB543
109
101
  */
110
102
  rewardcolor: string;
111
103
  /**
112
- * Color of the customer note
113
- *
114
- * @uiName Reward Color
104
+ * @uiName Customer Note Color
115
105
  * @uiGroup Converted Referrals
116
106
  * @uiWidget color
117
- * @format color
118
107
  */
119
108
  customernotecolor: string;
120
109
  /**
121
- * Show value of the first earned reward inside the rewards column
110
+ * Show the value of the first earned reward inside the rewards column.
122
111
  *
123
112
  * @uiName Use First Reward
124
113
  * @uiGroup Converted Referrals
125
114
  */
126
115
  usefirstreward: boolean;
127
116
  /**
128
- * Content shown when a referral is converted
117
+ * Description shown in the referral column when a referral is converted.
129
118
  *
130
- * @uiName Converted Content
119
+ * @uiName Converted Description
131
120
  * @uiGroup Converted Referrals
132
- * @default "Signed up, referred {date}"
121
+ * @default Signed up, referred {date}
133
122
  */
134
123
  convertedcontent: string;
135
124
  /**
136
- * Value shown in the rewards column
125
+ * ICU message shown in the rewards column. See [ICU messages](https://unicode-org.github.io/icu/userguide/format_parse/messages/) for more details.
137
126
  *
138
127
  * @uiName Value Content
139
128
  * @uiGroup Converted Referrals
140
129
  * @uiWidget textArea
141
- * @default "and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}"
130
+ * @default and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}
142
131
  */
143
132
  valuecontent: string;
144
133
  /**
145
- * Color of the pending icon and text
134
+ * Color of the pending reward icon and text in the rewards column.
146
135
  *
147
136
  * @uiName Pending Color
148
137
  * @uiGroup Pending Referrals
149
138
  * @uiWidget color
150
- * @format color
151
- * @default "lightgray"
139
+ * @default lightgray
152
140
  */
153
141
  pendingcolor: string;
154
142
  /**
155
- * Pending content shown in the user column
143
+ * Pending description shown in the referral column.
156
144
  *
157
- * @uiName Pending Content
145
+ * @uiName Pending Description
158
146
  * @uiGroup Pending Referrals
159
- * @default "Trial user, referred {date}"
147
+ * @default Trial user, referred {date}
160
148
  */
161
149
  pendingcontent: string;
162
150
  /**
163
- * Pending content shown alongside the icon in the referral column
151
+ * Pending text shown alongside the icon in the rewards column.
164
152
  *
165
- * @uiName Pending Value
153
+ * @uiName Pending Text
166
154
  * @uiGroup Pending Referrals
167
- * @default "Referral pending"
155
+ * @default Referral pending
168
156
  */
169
157
  pendingvalue: string;
170
158
  /**
171
- * Color of the expired icon and text
159
+ * Color of the expired reward icon and text in the rewards column.
172
160
  *
173
161
  * @uiName Expired Color
174
162
  * @uiGroup Expired Rewards
175
163
  * @uiWidget color
176
- * @format color
177
- * @default "lightgray"
164
+ * @default lightgray
178
165
  */
179
166
  expiredcolor: string;
180
167
  /**
181
- * Expired content shown in the user column
168
+ * Expired text shown in the referral column.
182
169
  *
183
- * @uiName Expired Content
170
+ * @uiName Expired Description
184
171
  * @uiGroup Expired Rewards
185
- * @default "Signed up, referred {date}"
172
+ * @default Signed up, referred {date}
186
173
  */
187
174
  expiredcontent: string;
188
175
  /**
189
- * Expired content shown alongside the icon in the referral column
176
+ * Expired text shown alongside the icon in the rewards column.
190
177
  *
191
- * @uiName Expired Value
178
+ * @uiName Expired Text
192
179
  * @uiGroup Expired Rewards
193
- * @default "Expired Reward"
180
+ * @default Expired Reward
194
181
  */
195
182
  expiredvalue: string;
196
183
  /**
197
184
  * Reward expiry ICU message
198
185
  *
199
- * @uiName Expires Value
186
+ * @uiName Expires Text
200
187
  * @uiGroup Expired Rewards
201
188
  */
202
189
  expiresvalue: string;
203
190
  /**
204
- * Color of the cancelled icon and text
191
+ * Color of the cancelled icon and text in the rewards column.
205
192
  *
206
193
  * @uiName Cancelled Color
207
194
  * @uiGroup Cancelled Rewards
208
195
  * @uiWidget color
209
- * @format color
210
- * @default "#C81D05"
196
+ * @default #C81D05
211
197
  */
212
198
  cancelledcolor: string;
213
199
  /**
214
- * Cancelled text content shown in the user column
200
+ * Content shown in the referral column for a cancelled reward.
215
201
  *
216
- * @uiName Cancelled Content
202
+ * @uiName Cancelled Referral Description
217
203
  * @uiGroup Cancelled Rewards
218
- * @default "Signed up, referred {date}"
204
+ * @default Signed up, referred {date}
219
205
  */
220
206
  cancelledcontent: string;
221
207
  /**
222
- * Cancelled text content shown alongside the icon in the referral column
208
+ * Text shown alongside the icon in the rewards column for a cancelled reward.
223
209
  *
224
- * @uiName Cancelled Value
210
+ * @uiName Cancelled Reward Text
225
211
  * @uiGroup Cancelled Rewards
226
- * @default "Cancelled Reward"
212
+ * @default Cancelled Reward
227
213
  */
228
214
  cancelledvalue: string;
229
215
  /**
230
- * When true, the local gets set by using the value passed to the referral component
216
+ * Use the value passed to the referral component to set the locale of the user.
231
217
  *
232
218
  * @uiName Internationalization
233
219
  */
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @uiName Reward Actions
3
+ * @canvasRenderer always-replace
3
4
  */
4
5
  export declare class RewardsActions {
5
6
  /**
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @uiName Share Button
3
+ * @canvasRenderer always-replace
3
4
  */
4
5
  export declare class ShareButton {
5
6
  /**
@@ -19,7 +20,6 @@ export declare class ShareButton {
19
20
  *
20
21
  * @uiName Share Button Background Color
21
22
  * @uiWidget color
22
- * @format color
23
23
  */
24
24
  backgroundcolor: string;
25
25
  /**
@@ -27,11 +27,10 @@ export declare class ShareButton {
27
27
  *
28
28
  * @uiName Share Button Text Color
29
29
  * @uiWidget color
30
- * @format color
31
30
  */
32
31
  textcolor: string;
33
32
  /**
34
- * Share button icon
33
+ * Full list of valid icon names available in the [Shoelace Icon Library](https://shoelace.style/components/icon). This value is case sensitive.
35
34
  *
36
35
  * @uiName Share Button Icon
37
36
  */
@@ -55,14 +54,12 @@ export declare class ShareButton {
55
54
  */
56
55
  iconvertical: number;
57
56
  /**
58
- * Size of the Share button icon
57
+ * Size of the Share button icon in em units
59
58
  *
60
59
  * @uiName Share Button Icon Size
61
60
  */
62
61
  iconsize: number;
63
62
  /**
64
- * Type of the share button
65
- *
66
63
  * @uiName Share Button Type
67
64
  */
68
65
  type: string;
@@ -71,7 +68,6 @@ export declare class ShareButton {
71
68
  *
72
69
  * @uiName URL
73
70
  * @uiWidget imageUpload
74
- * @format url
75
71
  */
76
72
  url: string;
77
73
  button: HTMLElement;