@saasquatch/vanilla-components 1.2.3-0 → 1.3.0-0

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 (67) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/dist/cjs/{WidgetHost-18a663ee.js → WidgetHost-d7b870ce.js} +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sqh-close-button.cjs.entry.js +9 -4
  5. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +181 -9
  6. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  7. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
  8. package/dist/cjs/widget-components.cjs.js +1 -1
  9. package/dist/collection/components/close-button/close-button.js +14 -3
  10. package/dist/collection/components/copy-button/copy-button.js +63 -24
  11. package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
  12. package/dist/collection/components/global-container/global-container.js +28 -10
  13. package/dist/collection/components/image-component/image-component.js +33 -12
  14. package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
  15. package/dist/collection/components/referral-code/referral-code.js +3 -0
  16. package/dist/collection/components/referral-component/referral-component.js +28 -10
  17. package/dist/collection/components/referral-list/referral-list.js +206 -59
  18. package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
  19. package/dist/collection/components/share-button/share-button.js +58 -22
  20. package/dist/collection/components/share-button-container/share-button-container.js +824 -164
  21. package/dist/collection/components/stat-component/stat-component.js +40 -10
  22. package/dist/collection/components/stats-container/stats-container.js +23 -6
  23. package/dist/collection/components/text-component/text-component.js +58 -43
  24. package/dist/collection/services/WidgetHost.js +1 -0
  25. package/dist/esm/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +1 -0
  26. package/dist/esm/loader.mjs +1 -1
  27. package/dist/esm/sqh-close-button.entry.js +9 -4
  28. package/dist/esm/sqh-copy-button_12.entry.js +180 -8
  29. package/dist/esm/sqh-referral-code.entry.js +1 -1
  30. package/dist/esm/sqh-rewards-actions.entry.js +15 -0
  31. package/dist/esm/widget-components.mjs +1 -1
  32. package/dist/esm-es5/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +2 -2
  33. package/dist/esm-es5/loader.mjs +1 -1
  34. package/dist/esm-es5/sqh-close-button.entry.js +15 -10
  35. package/dist/esm-es5/sqh-copy-button_12.entry.js +198 -26
  36. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  37. package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
  38. package/dist/esm-es5/widget-components.mjs +1 -1
  39. package/dist/types/components/close-button/close-button.d.ts +9 -1
  40. package/dist/types/components/copy-button/copy-button.d.ts +63 -0
  41. package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
  42. package/dist/types/components/global-container/global-container.d.ts +28 -0
  43. package/dist/types/components/image-component/image-component.d.ts +33 -0
  44. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
  45. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  46. package/dist/types/components/referral-component/referral-component.d.ts +28 -0
  47. package/dist/types/components/referral-list/referral-list.d.ts +167 -0
  48. package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
  49. package/dist/types/components/share-button/share-button.d.ts +58 -0
  50. package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
  51. package/dist/types/components/stat-component/stat-component.d.ts +32 -0
  52. package/dist/types/components/stats-container/stats-container.d.ts +18 -0
  53. package/dist/types/components/text-component/text-component.d.ts +58 -1
  54. package/dist/types/components.d.ts +1680 -2
  55. package/dist/widget-components/p-58be1132.system.js +1 -1
  56. package/dist/widget-components/{p-afd88281.entry.js → p-650d012d.entry.js} +1 -1
  57. package/dist/widget-components/p-908068c2.system.entry.js +1 -0
  58. package/dist/widget-components/{p-b4a53a7e.js → p-9525bf4a.js} +1 -0
  59. package/dist/widget-components/{p-3a627e51.system.js → p-9adc7c50.system.js} +1 -1
  60. package/dist/widget-components/{p-fd5e98db.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
  61. package/dist/widget-components/{p-126c2b5d.entry.js → p-d4b27c72.entry.js} +1 -1
  62. package/dist/widget-components/{p-10f0b8fc.entry.js → p-d7059393.entry.js} +3 -3
  63. package/dist/widget-components/{p-edc35bc4.system.entry.js → p-fba5ea7f.system.entry.js} +2 -2
  64. package/dist/widget-components/widget-components.esm.js +1 -1
  65. package/dist/widget-components/widget-components.js +1 -1
  66. package/package.json +1 -1
  67. package/dist/widget-components/p-023e8818.system.entry.js +0 -1
@@ -1,6 +1,9 @@
1
1
  import { h, Component, Prop, Element } from "@stencil/core";
2
2
  import { shadeColor, detectMobileSafari, detectMobileChrome, } from "../../utilities";
3
3
  import { css } from "emotion";
4
+ /**
5
+ * @uiName Share Button
6
+ */
4
7
  export class ShareButton {
5
8
  clickHandler(e) {
6
9
  if (window["widgetIdent"].env === "demo") {
@@ -74,8 +77,11 @@ export class ShareButton {
74
77
  "required": false,
75
78
  "optional": false,
76
79
  "docs": {
77
- "tags": [],
78
- "text": ""
80
+ "tags": [{
81
+ "text": "Share Button Display Rule",
82
+ "name": "uiName"
83
+ }],
84
+ "text": "Show and hide button depending on what type of device the user is on"
79
85
  },
80
86
  "attribute": "displayrule",
81
87
  "reflect": false
@@ -91,8 +97,11 @@ export class ShareButton {
91
97
  "required": false,
92
98
  "optional": false,
93
99
  "docs": {
94
- "tags": [],
95
- "text": ""
100
+ "tags": [{
101
+ "text": "Share Button Text",
102
+ "name": "uiName"
103
+ }],
104
+ "text": "Text inside the Share button"
96
105
  },
97
106
  "attribute": "text",
98
107
  "reflect": false
@@ -108,8 +117,11 @@ export class ShareButton {
108
117
  "required": false,
109
118
  "optional": false,
110
119
  "docs": {
111
- "tags": [],
112
- "text": ""
120
+ "tags": [{
121
+ "text": "Share Button Background Color",
122
+ "name": "uiName"
123
+ }],
124
+ "text": "Background color of the Share button"
113
125
  },
114
126
  "attribute": "backgroundcolor",
115
127
  "reflect": false
@@ -125,8 +137,11 @@ export class ShareButton {
125
137
  "required": false,
126
138
  "optional": false,
127
139
  "docs": {
128
- "tags": [],
129
- "text": ""
140
+ "tags": [{
141
+ "text": "Share Button Text Color",
142
+ "name": "uiName"
143
+ }],
144
+ "text": "Color of the text inside the Share button"
130
145
  },
131
146
  "attribute": "textcolor",
132
147
  "reflect": false
@@ -142,8 +157,11 @@ export class ShareButton {
142
157
  "required": false,
143
158
  "optional": false,
144
159
  "docs": {
145
- "tags": [],
146
- "text": ""
160
+ "tags": [{
161
+ "text": "Share Button Icon",
162
+ "name": "uiName"
163
+ }],
164
+ "text": "Share button icon"
147
165
  },
148
166
  "attribute": "icon",
149
167
  "reflect": false
@@ -159,8 +177,11 @@ export class ShareButton {
159
177
  "required": false,
160
178
  "optional": false,
161
179
  "docs": {
162
- "tags": [],
163
- "text": ""
180
+ "tags": [{
181
+ "text": "Share Button Class Name",
182
+ "name": "uiName"
183
+ }],
184
+ "text": "CSS Class name used to style the Share button"
164
185
  },
165
186
  "attribute": "button-class-name",
166
187
  "reflect": false
@@ -176,8 +197,11 @@ export class ShareButton {
176
197
  "required": false,
177
198
  "optional": false,
178
199
  "docs": {
179
- "tags": [],
180
- "text": ""
200
+ "tags": [{
201
+ "text": "Share Button Icon Horizontal",
202
+ "name": "uiName"
203
+ }],
204
+ "text": "Number to horizontally align the Share button icon"
181
205
  },
182
206
  "attribute": "iconhorizontal",
183
207
  "reflect": false
@@ -193,8 +217,11 @@ export class ShareButton {
193
217
  "required": false,
194
218
  "optional": false,
195
219
  "docs": {
196
- "tags": [],
197
- "text": ""
220
+ "tags": [{
221
+ "text": "Share Button Icon Vertical",
222
+ "name": "uiName"
223
+ }],
224
+ "text": "Number to vertically align the Share button icon"
198
225
  },
199
226
  "attribute": "iconvertical",
200
227
  "reflect": false
@@ -210,8 +237,11 @@ export class ShareButton {
210
237
  "required": false,
211
238
  "optional": false,
212
239
  "docs": {
213
- "tags": [],
214
- "text": ""
240
+ "tags": [{
241
+ "text": "Share Button Icon Size",
242
+ "name": "uiName"
243
+ }],
244
+ "text": "Size of the Share button icon"
215
245
  },
216
246
  "attribute": "iconsize",
217
247
  "reflect": false
@@ -227,8 +257,11 @@ export class ShareButton {
227
257
  "required": false,
228
258
  "optional": false,
229
259
  "docs": {
230
- "tags": [],
231
- "text": ""
260
+ "tags": [{
261
+ "text": "Share Button Type",
262
+ "name": "uiName"
263
+ }],
264
+ "text": "Type of the share button"
232
265
  },
233
266
  "attribute": "type",
234
267
  "reflect": false
@@ -244,8 +277,11 @@ export class ShareButton {
244
277
  "required": false,
245
278
  "optional": false,
246
279
  "docs": {
247
- "tags": [],
248
- "text": ""
280
+ "tags": [{
281
+ "text": "URL",
282
+ "name": "uiName"
283
+ }],
284
+ "text": "URL redirect location"
249
285
  },
250
286
  "attribute": "url",
251
287
  "reflect": false