@saasquatch/vanilla-components 1.2.3-0 → 1.2.4-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 (66) hide show
  1. package/dist/cjs/{WidgetHost-18a663ee.js → WidgetHost-d7b870ce.js} +1 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sqh-close-button.cjs.entry.js +9 -4
  4. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +184 -9
  5. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  6. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
  7. package/dist/cjs/widget-components.cjs.js +1 -1
  8. package/dist/collection/components/close-button/close-button.js +14 -3
  9. package/dist/collection/components/copy-button/copy-button.js +117 -24
  10. package/dist/collection/components/copy-link-button/copy-link-button.js +60 -12
  11. package/dist/collection/components/global-container/global-container.js +53 -10
  12. package/dist/collection/components/image-component/image-component.js +54 -12
  13. package/dist/collection/components/partner-stat-component/partner-stat-component.js +41 -11
  14. package/dist/collection/components/referral-code/referral-code.js +3 -0
  15. package/dist/collection/components/referral-component/referral-component.js +28 -10
  16. package/dist/collection/components/referral-list/referral-list.js +320 -59
  17. package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
  18. package/dist/collection/components/share-button/share-button.js +76 -22
  19. package/dist/collection/components/share-button-container/share-button-container.js +1097 -164
  20. package/dist/collection/components/stat-component/stat-component.js +40 -10
  21. package/dist/collection/components/stats-container/stats-container.js +30 -6
  22. package/dist/collection/components/text-component/text-component.js +70 -43
  23. package/dist/collection/services/WidgetHost.js +1 -0
  24. package/dist/esm/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +1 -0
  25. package/dist/esm/loader.mjs +1 -1
  26. package/dist/esm/sqh-close-button.entry.js +9 -4
  27. package/dist/esm/sqh-copy-button_12.entry.js +183 -8
  28. package/dist/esm/sqh-referral-code.entry.js +1 -1
  29. package/dist/esm/sqh-rewards-actions.entry.js +15 -0
  30. package/dist/esm/widget-components.mjs +1 -1
  31. package/dist/esm-es5/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +2 -2
  32. package/dist/esm-es5/loader.mjs +1 -1
  33. package/dist/esm-es5/sqh-close-button.entry.js +15 -10
  34. package/dist/esm-es5/sqh-copy-button_12.entry.js +201 -26
  35. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  36. package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
  37. package/dist/esm-es5/widget-components.mjs +1 -1
  38. package/dist/types/components/close-button/close-button.d.ts +9 -1
  39. package/dist/types/components/copy-button/copy-button.d.ts +81 -0
  40. package/dist/types/components/copy-link-button/copy-link-button.d.ts +42 -0
  41. package/dist/types/components/global-container/global-container.d.ts +37 -0
  42. package/dist/types/components/image-component/image-component.d.ts +41 -0
  43. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +33 -1
  44. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  45. package/dist/types/components/referral-component/referral-component.d.ts +28 -0
  46. package/dist/types/components/referral-list/referral-list.d.ts +205 -0
  47. package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
  48. package/dist/types/components/share-button/share-button.d.ts +64 -0
  49. package/dist/types/components/share-button-container/share-button-container.d.ts +584 -0
  50. package/dist/types/components/stat-component/stat-component.d.ts +31 -0
  51. package/dist/types/components/stats-container/stats-container.d.ts +21 -0
  52. package/dist/types/components/text-component/text-component.d.ts +62 -1
  53. package/dist/types/components.d.ts +2052 -2
  54. package/dist/widget-components/p-58be1132.system.js +1 -1
  55. package/dist/widget-components/{p-afd88281.entry.js → p-650d012d.entry.js} +1 -1
  56. package/dist/widget-components/p-908068c2.system.entry.js +1 -0
  57. package/dist/widget-components/{p-b4a53a7e.js → p-9525bf4a.js} +1 -0
  58. package/dist/widget-components/{p-3a627e51.system.js → p-9adc7c50.system.js} +1 -1
  59. package/dist/widget-components/{p-fd5e98db.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
  60. package/dist/widget-components/{p-126c2b5d.entry.js → p-d4b27c72.entry.js} +1 -1
  61. package/dist/widget-components/{p-10f0b8fc.entry.js → p-d7059393.entry.js} +3 -3
  62. package/dist/widget-components/{p-edc35bc4.system.entry.js → p-fba5ea7f.system.entry.js} +2 -2
  63. package/dist/widget-components/widget-components.esm.js +1 -1
  64. package/docs/raisins.json +1 -0
  65. package/package.json +12 -5
  66. package/dist/widget-components/p-023e8818.system.entry.js +0 -1
@@ -3,6 +3,9 @@ import { shadeColor, addClass, removeClass } from "../../utilities";
3
3
  import { css } from "emotion";
4
4
  import { API } from "../../services/WidgetHost";
5
5
  import Clipboard from "clipboard";
6
+ /**
7
+ * @uiName Copy Button
8
+ */
6
9
  export class CopyButton {
7
10
  componentWillLoad() {
8
11
  if (!this.ishidden) {
@@ -93,8 +96,14 @@ export class CopyButton {
93
96
  "required": false,
94
97
  "optional": false,
95
98
  "docs": {
96
- "tags": [],
97
- "text": ""
99
+ "tags": [{
100
+ "text": "Hide Button",
101
+ "name": "uiName"
102
+ }, {
103
+ "text": "undefined",
104
+ "name": "default"
105
+ }],
106
+ "text": "Hide or show the component"
98
107
  },
99
108
  "attribute": "ishidden",
100
109
  "reflect": false
@@ -110,8 +119,14 @@ export class CopyButton {
110
119
  "required": false,
111
120
  "optional": false,
112
121
  "docs": {
113
- "tags": [],
114
- "text": ""
122
+ "tags": [{
123
+ "text": "Button Text",
124
+ "name": "uiName"
125
+ }, {
126
+ "text": "\"COPY CODE\"",
127
+ "name": "default"
128
+ }],
129
+ "text": "Text shown inside the copy button."
115
130
  },
116
131
  "attribute": "text",
117
132
  "reflect": false
@@ -127,8 +142,14 @@ export class CopyButton {
127
142
  "required": false,
128
143
  "optional": false,
129
144
  "docs": {
130
- "tags": [],
131
- "text": ""
145
+ "tags": [{
146
+ "text": "Max Width",
147
+ "name": "uiName"
148
+ }, {
149
+ "text": "170",
150
+ "name": "default"
151
+ }],
152
+ "text": "Sets a maximum width on the copy button."
132
153
  },
133
154
  "attribute": "width",
134
155
  "reflect": false
@@ -144,8 +165,20 @@ export class CopyButton {
144
165
  "required": false,
145
166
  "optional": false,
146
167
  "docs": {
147
- "tags": [],
148
- "text": ""
168
+ "tags": [{
169
+ "text": "Background Color",
170
+ "name": "uiName"
171
+ }, {
172
+ "text": "color",
173
+ "name": "uiWidget"
174
+ }, {
175
+ "text": "color",
176
+ "name": "format"
177
+ }, {
178
+ "text": "#35b21e",
179
+ "name": "default"
180
+ }],
181
+ "text": "Background & border color of the copy button."
149
182
  },
150
183
  "attribute": "backgroundcolor",
151
184
  "reflect": false
@@ -161,8 +194,14 @@ export class CopyButton {
161
194
  "required": false,
162
195
  "optional": false,
163
196
  "docs": {
164
- "tags": [],
165
- "text": ""
197
+ "tags": [{
198
+ "text": "Border Radius",
199
+ "name": "uiName"
200
+ }, {
201
+ "text": "4",
202
+ "name": "default"
203
+ }],
204
+ "text": "Configure border radius with pixel amount"
166
205
  },
167
206
  "attribute": "borderradius",
168
207
  "reflect": false
@@ -178,8 +217,20 @@ export class CopyButton {
178
217
  "required": false,
179
218
  "optional": false,
180
219
  "docs": {
181
- "tags": [],
182
- "text": ""
220
+ "tags": [{
221
+ "text": "Text Color",
222
+ "name": "uiName"
223
+ }, {
224
+ "text": "color",
225
+ "name": "uiWidget"
226
+ }, {
227
+ "text": "color",
228
+ "name": "format"
229
+ }, {
230
+ "text": "#ffffff",
231
+ "name": "default"
232
+ }],
233
+ "text": "Color of text inside the copy button."
183
234
  },
184
235
  "attribute": "textcolor",
185
236
  "reflect": false
@@ -195,8 +246,14 @@ export class CopyButton {
195
246
  "required": false,
196
247
  "optional": false,
197
248
  "docs": {
198
- "tags": [],
199
- "text": ""
249
+ "tags": [{
250
+ "text": "Font Size",
251
+ "name": "uiName"
252
+ }, {
253
+ "text": "14",
254
+ "name": "default"
255
+ }],
256
+ "text": "Font size of the copy button text."
200
257
  },
201
258
  "attribute": "fontsize",
202
259
  "reflect": false
@@ -212,8 +269,14 @@ export class CopyButton {
212
269
  "required": false,
213
270
  "optional": false,
214
271
  "docs": {
215
- "tags": [],
216
- "text": ""
272
+ "tags": [{
273
+ "text": "Copy Success Text",
274
+ "name": "uiName"
275
+ }, {
276
+ "text": "\"copied!\"",
277
+ "name": "default"
278
+ }],
279
+ "text": "Shown when the code is successfully copied to the users clipboard."
217
280
  },
218
281
  "attribute": "copysuccess",
219
282
  "reflect": false
@@ -229,8 +292,14 @@ export class CopyButton {
229
292
  "required": false,
230
293
  "optional": false,
231
294
  "docs": {
232
- "tags": [],
233
- "text": ""
295
+ "tags": [{
296
+ "text": "Copy Failure Text",
297
+ "name": "uiName"
298
+ }, {
299
+ "text": "\"Press Ctrl+C to copy\"",
300
+ "name": "default"
301
+ }],
302
+ "text": "Shown when the button has failed to copy the code to the users clipboard."
234
303
  },
235
304
  "attribute": "copyfailure",
236
305
  "reflect": false
@@ -246,8 +315,14 @@ export class CopyButton {
246
315
  "required": false,
247
316
  "optional": false,
248
317
  "docs": {
249
- "tags": [],
250
- "text": ""
318
+ "tags": [{
319
+ "text": "Reward Key",
320
+ "name": "uiName"
321
+ }, {
322
+ "text": "\"referredReward\"",
323
+ "name": "default"
324
+ }],
325
+ "text": "rewardkey is used to get the fuel tank code for a user."
251
326
  },
252
327
  "attribute": "rewardkey",
253
328
  "reflect": false
@@ -263,8 +338,14 @@ export class CopyButton {
263
338
  "required": false,
264
339
  "optional": false,
265
340
  "docs": {
266
- "tags": [],
267
- "text": ""
341
+ "tags": [{
342
+ "text": "Code Font Size",
343
+ "name": "uiName"
344
+ }, {
345
+ "text": "14",
346
+ "name": "default"
347
+ }],
348
+ "text": "Font size of the fuel tank code."
268
349
  },
269
350
  "attribute": "codefontsize",
270
351
  "reflect": false
@@ -280,8 +361,20 @@ export class CopyButton {
280
361
  "required": false,
281
362
  "optional": false,
282
363
  "docs": {
283
- "tags": [],
284
- "text": ""
364
+ "tags": [{
365
+ "text": "Code Font Color",
366
+ "name": "uiName"
367
+ }, {
368
+ "text": "color",
369
+ "name": "uiWidget"
370
+ }, {
371
+ "text": "color",
372
+ "name": "format"
373
+ }, {
374
+ "text": "#000000",
375
+ "name": "default"
376
+ }],
377
+ "text": "Text color of the fuel tank code."
285
378
  },
286
379
  "attribute": "codefontcolor",
287
380
  "reflect": false
@@ -3,6 +3,9 @@ import Clipboard from "clipboard";
3
3
  import { shadeColor, addClass, removeClass } from "../../utilities";
4
4
  import { css } from "emotion";
5
5
  import { API } from "../../services/WidgetHost";
6
+ /**
7
+ * @uiName Copy Link Button
8
+ */
6
9
  export class CopyLinkButton {
7
10
  componentWillLoad() {
8
11
  if (!this.ishidden) {
@@ -84,8 +87,11 @@ export class CopyLinkButton {
84
87
  "required": false,
85
88
  "optional": false,
86
89
  "docs": {
87
- "tags": [],
88
- "text": ""
90
+ "tags": [{
91
+ "text": "Hide Button",
92
+ "name": "uiName"
93
+ }],
94
+ "text": "Hide or show the component"
89
95
  },
90
96
  "attribute": "ishidden",
91
97
  "reflect": false
@@ -101,8 +107,14 @@ export class CopyLinkButton {
101
107
  "required": false,
102
108
  "optional": false,
103
109
  "docs": {
104
- "tags": [],
105
- "text": ""
110
+ "tags": [{
111
+ "text": "Button Text",
112
+ "name": "uiName"
113
+ }, {
114
+ "text": "\"Copy\"",
115
+ "name": "default"
116
+ }],
117
+ "text": "Text shown inside the copy button."
106
118
  },
107
119
  "attribute": "text",
108
120
  "reflect": false
@@ -118,8 +130,14 @@ export class CopyLinkButton {
118
130
  "required": false,
119
131
  "optional": false,
120
132
  "docs": {
121
- "tags": [],
122
- "text": ""
133
+ "tags": [{
134
+ "text": "Copy Success Text",
135
+ "name": "uiName"
136
+ }, {
137
+ "text": "\"copied!\"",
138
+ "name": "default"
139
+ }],
140
+ "text": "Shown when the code is successfully copied to the users clipboard."
123
141
  },
124
142
  "attribute": "copysuccess",
125
143
  "reflect": false
@@ -135,8 +153,14 @@ export class CopyLinkButton {
135
153
  "required": false,
136
154
  "optional": false,
137
155
  "docs": {
138
- "tags": [],
139
- "text": ""
156
+ "tags": [{
157
+ "text": "Copy Failure Text",
158
+ "name": "uiName"
159
+ }, {
160
+ "text": "\"Press Ctrl+C to copy\"",
161
+ "name": "default"
162
+ }],
163
+ "text": "Shown when the button has failed to copy the code to the users clipboard."
140
164
  },
141
165
  "attribute": "copyfailure",
142
166
  "reflect": false
@@ -152,8 +176,20 @@ export class CopyLinkButton {
152
176
  "required": false,
153
177
  "optional": false,
154
178
  "docs": {
155
- "tags": [],
156
- "text": ""
179
+ "tags": [{
180
+ "text": "Button Color",
181
+ "name": "uiName"
182
+ }, {
183
+ "text": "color",
184
+ "name": "uiWidget"
185
+ }, {
186
+ "text": "color",
187
+ "name": "format"
188
+ }, {
189
+ "text": "\"#5C6164\"",
190
+ "name": "default"
191
+ }],
192
+ "text": "Background & border color of the copy button."
157
193
  },
158
194
  "attribute": "buttoncolor",
159
195
  "reflect": false
@@ -169,8 +205,20 @@ export class CopyLinkButton {
169
205
  "required": false,
170
206
  "optional": false,
171
207
  "docs": {
172
- "tags": [],
173
- "text": ""
208
+ "tags": [{
209
+ "text": "Text Color",
210
+ "name": "uiName"
211
+ }, {
212
+ "text": "color",
213
+ "name": "uiWidget"
214
+ }, {
215
+ "text": "color",
216
+ "name": "format"
217
+ }, {
218
+ "text": "\"#FFFFFF\"",
219
+ "name": "default"
220
+ }],
221
+ "text": "Color of text inside the copy button."
174
222
  },
175
223
  "attribute": "textcolor",
176
224
  "reflect": false
@@ -1,5 +1,9 @@
1
1
  import { h, Component, Prop } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Global Container
5
+ * @slots [{"name":"", "title":"Widget Content"}]
6
+ */
3
7
  export class GlobalContainer {
4
8
  LoadingState(props) {
5
9
  const style = css `
@@ -48,8 +52,20 @@ export class GlobalContainer {
48
52
  "required": false,
49
53
  "optional": false,
50
54
  "docs": {
51
- "tags": [],
52
- "text": ""
55
+ "tags": [{
56
+ "text": "Background Color",
57
+ "name": "uiName"
58
+ }, {
59
+ "text": "color",
60
+ "name": "uiWidget"
61
+ }, {
62
+ "text": "color",
63
+ "name": "format"
64
+ }, {
65
+ "text": "\"#ffffff\"",
66
+ "name": "default"
67
+ }],
68
+ "text": "Configure the background color."
53
69
  },
54
70
  "attribute": "background",
55
71
  "reflect": false
@@ -65,8 +81,17 @@ export class GlobalContainer {
65
81
  "required": false,
66
82
  "optional": false,
67
83
  "docs": {
68
- "tags": [],
69
- "text": ""
84
+ "tags": [{
85
+ "text": "Loading Color",
86
+ "name": "uiName"
87
+ }, {
88
+ "text": "color",
89
+ "name": "uiWidget"
90
+ }, {
91
+ "text": "color",
92
+ "name": "format"
93
+ }],
94
+ "text": "Configure the color of the loading state."
70
95
  },
71
96
  "attribute": "loadingcolor",
72
97
  "reflect": false
@@ -82,8 +107,20 @@ export class GlobalContainer {
82
107
  "required": false,
83
108
  "optional": false,
84
109
  "docs": {
85
- "tags": [],
86
- "text": ""
110
+ "tags": [{
111
+ "text": "Font Family",
112
+ "name": "uiName"
113
+ }, {
114
+ "text": "\"Roboto\"",
115
+ "name": "default"
116
+ }, {
117
+ "text": "[\"Roboto\", \"Artifakt Element\", \"Helvetica Neue,Helvetica,Arial,sans-serif\", \"Lato,sans-serif\", \"Times New Roman\", \"Arial\", \"Courier\", \"Tahoma\", \"Verdana\", \"Georgia\"]",
118
+ "name": "uiEnum"
119
+ }, {
120
+ "text": "[\"Roboto\",\"Artifakt Element\",\"Helvetica Neue\",\"Lato\",\"Times New Roman\",\"Arial\",\"Courier\",\"Tahoma\",\"Verdana\",\"Georgia\"]",
121
+ "name": "uiEnumNames"
122
+ }],
123
+ "text": "Font family used inside the container."
87
124
  },
88
125
  "attribute": "fontfamily",
89
126
  "reflect": false
@@ -99,8 +136,11 @@ export class GlobalContainer {
99
136
  "required": false,
100
137
  "optional": false,
101
138
  "docs": {
102
- "tags": [],
103
- "text": ""
139
+ "tags": [{
140
+ "text": "Max Width",
141
+ "name": "uiName"
142
+ }],
143
+ "text": "Maximum width on the container."
104
144
  },
105
145
  "attribute": "maxwidth",
106
146
  "reflect": false
@@ -116,8 +156,11 @@ export class GlobalContainer {
116
156
  "required": false,
117
157
  "optional": false,
118
158
  "docs": {
119
- "tags": [],
120
- "text": ""
159
+ "tags": [{
160
+ "text": "Show Powered By",
161
+ "name": "uiName"
162
+ }],
163
+ "text": "Show and hide the powered by SaaSquatch link. Can only be disabled on Pro plans."
121
164
  },
122
165
  "attribute": "poweredby",
123
166
  "reflect": false
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Image Component
5
+ */
3
6
  export class ImageComponent {
4
7
  render() {
5
8
  const imageString = this.url;
@@ -37,8 +40,11 @@ export class ImageComponent {
37
40
  "required": false,
38
41
  "optional": false,
39
42
  "docs": {
40
- "tags": [],
41
- "text": ""
43
+ "tags": [{
44
+ "text": "Hide Image",
45
+ "name": "uiName"
46
+ }],
47
+ "text": "Hide or show the component"
42
48
  },
43
49
  "attribute": "ishidden",
44
50
  "reflect": false
@@ -54,8 +60,17 @@ export class ImageComponent {
54
60
  "required": false,
55
61
  "optional": false,
56
62
  "docs": {
57
- "tags": [],
58
- "text": ""
63
+ "tags": [{
64
+ "text": "URL",
65
+ "name": "uiName"
66
+ }, {
67
+ "text": "imageUpload",
68
+ "name": "uiWidget"
69
+ }, {
70
+ "text": "url",
71
+ "name": "format"
72
+ }],
73
+ "text": "Image link"
59
74
  },
60
75
  "attribute": "url",
61
76
  "reflect": false
@@ -71,8 +86,11 @@ export class ImageComponent {
71
86
  "required": false,
72
87
  "optional": false,
73
88
  "docs": {
74
- "tags": [],
75
- "text": ""
89
+ "tags": [{
90
+ "text": "Width",
91
+ "name": "uiName"
92
+ }],
93
+ "text": "Image width"
76
94
  },
77
95
  "attribute": "width",
78
96
  "reflect": false
@@ -88,8 +106,11 @@ export class ImageComponent {
88
106
  "required": false,
89
107
  "optional": false,
90
108
  "docs": {
91
- "tags": [],
92
- "text": ""
109
+ "tags": [{
110
+ "text": "Border Radius",
111
+ "name": "uiName"
112
+ }],
113
+ "text": "Configure border radius with pixel amount"
93
114
  },
94
115
  "attribute": "borderradius",
95
116
  "reflect": false
@@ -105,8 +126,20 @@ export class ImageComponent {
105
126
  "required": false,
106
127
  "optional": false,
107
128
  "docs": {
108
- "tags": [],
109
- "text": ""
129
+ "tags": [{
130
+ "text": "Alignment",
131
+ "name": "uiName"
132
+ }, {
133
+ "text": "[\"left\", \"center\", \"right\"]",
134
+ "name": "uiEnum"
135
+ }, {
136
+ "text": "[\"Left\", \"Center\", \"Right\"]",
137
+ "name": "uiEnumNames"
138
+ }, {
139
+ "text": "\"center\"",
140
+ "name": "default"
141
+ }],
142
+ "text": "Configure alignment of the image"
110
143
  },
111
144
  "attribute": "alignment",
112
145
  "reflect": false
@@ -122,8 +155,17 @@ export class ImageComponent {
122
155
  "required": false,
123
156
  "optional": false,
124
157
  "docs": {
125
- "tags": [],
126
- "text": ""
158
+ "tags": [{
159
+ "text": "CSS",
160
+ "name": "uiName"
161
+ }, {
162
+ "text": "textArea",
163
+ "name": "uiWidget"
164
+ }, {
165
+ "text": "\"padding-top: 38px; padding-bottom: 7px;\"",
166
+ "name": "default"
167
+ }],
168
+ "text": "Additional CSS applied to the image element"
127
169
  },
128
170
  "attribute": "css",
129
171
  "reflect": false
@@ -1,6 +1,9 @@
1
1
  import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
2
2
  import { css } from "emotion";
3
- export class StatComponent {
3
+ /**
4
+ * @uiName Partner Stat
5
+ */
6
+ export class PartnerStatComponent {
4
7
  componentWillLoad() {
5
8
  this.statAddedHandler(this.elem);
6
9
  }
@@ -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,17 @@ 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": "statTypeSelector",
72
+ "name": "uiWidget"
73
+ }, {
74
+ "text": undefined,
75
+ "name": "required"
76
+ }],
77
+ "text": "Used to query the stats for a user"
63
78
  },
64
79
  "attribute": "stattype",
65
80
  "reflect": false
@@ -75,8 +90,11 @@ export class StatComponent {
75
90
  "required": false,
76
91
  "optional": false,
77
92
  "docs": {
78
- "tags": [],
79
- "text": ""
93
+ "tags": [{
94
+ "text": "Stat Value",
95
+ "name": "uiName"
96
+ }],
97
+ "text": "Value of the stat"
80
98
  },
81
99
  "attribute": "statvalue",
82
100
  "reflect": false
@@ -92,8 +110,11 @@ export class StatComponent {
92
110
  "required": false,
93
111
  "optional": false,
94
112
  "docs": {
95
- "tags": [],
96
- "text": ""
113
+ "tags": [{
114
+ "text": "Stat Description",
115
+ "name": "uiName"
116
+ }],
117
+ "text": "Description of the stat"
97
118
  },
98
119
  "attribute": "statdescription",
99
120
  "reflect": false
@@ -109,8 +130,17 @@ export class StatComponent {
109
130
  "required": false,
110
131
  "optional": false,
111
132
  "docs": {
112
- "tags": [],
113
- "text": ""
133
+ "tags": [{
134
+ "text": "Stat Color",
135
+ "name": "uiName"
136
+ }, {
137
+ "text": "color",
138
+ "name": "uiWidget"
139
+ }, {
140
+ "text": "color",
141
+ "name": "format"
142
+ }],
143
+ "text": "Color of the stat value and description"
114
144
  },
115
145
  "attribute": "statcolor",
116
146
  "reflect": false
@@ -1,5 +1,8 @@
1
1
  import { h, Component, State } from "@stencil/core";
2
2
  import { API } from "../../services/WidgetHost";
3
+ /**
4
+ * @uiName Referral Code
5
+ */
3
6
  export class ReferralCode {
4
7
  componentWillLoad() {
5
8
  return API.graphql