@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.
- package/CHANGELOG.md +143 -0
- package/dist/cjs/{WidgetHost-18a663ee.js → WidgetHost-d7b870ce.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +9 -4
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +181 -9
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +63 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
- package/dist/collection/components/global-container/global-container.js +28 -10
- package/dist/collection/components/image-component/image-component.js +33 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +206 -59
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +58 -22
- package/dist/collection/components/share-button-container/share-button-container.js +824 -164
- package/dist/collection/components/stat-component/stat-component.js +40 -10
- package/dist/collection/components/stats-container/stats-container.js +23 -6
- package/dist/collection/components/text-component/text-component.js +58 -43
- package/dist/collection/services/WidgetHost.js +1 -0
- package/dist/esm/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +1 -0
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +9 -4
- package/dist/esm/sqh-copy-button_12.entry.js +180 -8
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +2 -2
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +15 -10
- package/dist/esm-es5/sqh-copy-button_12.entry.js +198 -26
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +63 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
- package/dist/types/components/global-container/global-container.d.ts +28 -0
- package/dist/types/components/image-component/image-component.d.ts +33 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +167 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +58 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
- package/dist/types/components/stat-component/stat-component.d.ts +32 -0
- package/dist/types/components/stats-container/stats-container.d.ts +18 -0
- package/dist/types/components/text-component/text-component.d.ts +58 -1
- package/dist/types/components.d.ts +1680 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-afd88281.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-908068c2.system.entry.js +1 -0
- package/dist/widget-components/{p-b4a53a7e.js → p-9525bf4a.js} +1 -0
- package/dist/widget-components/{p-3a627e51.system.js → p-9adc7c50.system.js} +1 -1
- package/dist/widget-components/{p-fd5e98db.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-126c2b5d.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-10f0b8fc.entry.js → p-d7059393.entry.js} +3 -3
- package/dist/widget-components/{p-edc35bc4.system.entry.js → p-fba5ea7f.system.entry.js} +2 -2
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/package.json +1 -1
- package/dist/widget-components/p-023e8818.system.entry.js +0 -1
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @uiName Partner Stat
|
|
4
|
+
*/
|
|
5
|
+
export declare class PartnerStatComponent {
|
|
3
6
|
elem: HTMLElement;
|
|
7
|
+
/**
|
|
8
|
+
* Hide or show the component
|
|
9
|
+
*
|
|
10
|
+
* @uiName Hide Stat
|
|
11
|
+
*/
|
|
4
12
|
ishidden: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Used to query the stats for a user
|
|
15
|
+
*
|
|
16
|
+
* @uiName Stat Type
|
|
17
|
+
*/
|
|
5
18
|
stattype: string;
|
|
19
|
+
/**
|
|
20
|
+
* Value of the stat
|
|
21
|
+
*
|
|
22
|
+
* @uiName Stat Value
|
|
23
|
+
*/
|
|
6
24
|
statvalue: string;
|
|
25
|
+
/**
|
|
26
|
+
* Description of the stat
|
|
27
|
+
*
|
|
28
|
+
* @uiName Stat Description
|
|
29
|
+
*/
|
|
7
30
|
statdescription: string;
|
|
31
|
+
/**
|
|
32
|
+
* Color of the stat value and description
|
|
33
|
+
*
|
|
34
|
+
* @uiName Stat Color
|
|
35
|
+
*/
|
|
8
36
|
statcolor: string;
|
|
9
37
|
statTypeUpdated: EventEmitter;
|
|
10
38
|
statAdded: EventEmitter;
|
|
@@ -1,8 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @uiName Referral Component
|
|
3
|
+
*/
|
|
1
4
|
export declare class ReferralComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Referral object
|
|
7
|
+
*
|
|
8
|
+
* @uiName Referral
|
|
9
|
+
*/
|
|
2
10
|
referral: Referral | ReferredByReferral;
|
|
11
|
+
/**
|
|
12
|
+
* Type of referral
|
|
13
|
+
*
|
|
14
|
+
* @uiName Referral Type
|
|
15
|
+
*/
|
|
3
16
|
referraltype: "converted" | "pending" | "referrer";
|
|
17
|
+
/**
|
|
18
|
+
* Referral variables used to format the row in the referral list
|
|
19
|
+
*
|
|
20
|
+
* @uiName Referral Variables
|
|
21
|
+
*/
|
|
4
22
|
referralvariables: ReferralVariables;
|
|
23
|
+
/**
|
|
24
|
+
* Text shown when the name of a user is unknown
|
|
25
|
+
*
|
|
26
|
+
* @uiName Unknown User
|
|
27
|
+
*/
|
|
5
28
|
unknownuser: String;
|
|
29
|
+
/**
|
|
30
|
+
* Configure the local
|
|
31
|
+
*
|
|
32
|
+
* @uiName Local
|
|
33
|
+
*/
|
|
6
34
|
locale: string;
|
|
7
35
|
getName(): String;
|
|
8
36
|
getIcon(): "icon-ok-circled" | "icon-attention";
|
|
@@ -1,32 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @uiName Referral List
|
|
3
|
+
*/
|
|
1
4
|
export declare class ReferralList {
|
|
5
|
+
/**
|
|
6
|
+
* Hide or show the component
|
|
7
|
+
*
|
|
8
|
+
* @uiName Hide Referral List
|
|
9
|
+
*/
|
|
2
10
|
ishidden: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Shown inside the paginate more button
|
|
13
|
+
*
|
|
14
|
+
* @uiName Paginate More Text
|
|
15
|
+
*/
|
|
3
16
|
paginatemore: string;
|
|
17
|
+
/**
|
|
18
|
+
* Shown inside the paginate less button
|
|
19
|
+
*
|
|
20
|
+
* @uiName Paginate Less Text
|
|
21
|
+
*/
|
|
4
22
|
paginateless: string;
|
|
23
|
+
/**
|
|
24
|
+
* Shown when referral list is empty
|
|
25
|
+
*
|
|
26
|
+
* @uiName Empty Referrals Text
|
|
27
|
+
*/
|
|
5
28
|
noreferralsyet: string;
|
|
29
|
+
/**
|
|
30
|
+
* Text color of the referred users name
|
|
31
|
+
*
|
|
32
|
+
* @uiName Referral Name Color
|
|
33
|
+
*/
|
|
6
34
|
referralnamecolor: string;
|
|
35
|
+
/**
|
|
36
|
+
* Text color of the referral status
|
|
37
|
+
*
|
|
38
|
+
* @uiName Referral Text Color
|
|
39
|
+
*/
|
|
7
40
|
referraltextcolor: string;
|
|
41
|
+
/**
|
|
42
|
+
* Text shown when the referred users name is unknown
|
|
43
|
+
*
|
|
44
|
+
* @uiName Unknown User Text
|
|
45
|
+
*/
|
|
8
46
|
unknownuser: string;
|
|
47
|
+
/**
|
|
48
|
+
* Show or hide expired rewards
|
|
49
|
+
*
|
|
50
|
+
* @uiName Show Expiry
|
|
51
|
+
*/
|
|
9
52
|
showexpiry: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Show the customer note for a referral
|
|
55
|
+
*
|
|
56
|
+
* @uiName Show Customer Note
|
|
57
|
+
*/
|
|
10
58
|
shownotes: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Shown when reward is redeemed
|
|
61
|
+
*
|
|
62
|
+
* @uiName Redeemed Value
|
|
63
|
+
*/
|
|
11
64
|
redeemedvalue: string;
|
|
65
|
+
/**
|
|
66
|
+
* Show or hide the referrer
|
|
67
|
+
*
|
|
68
|
+
* @uiName Show Referrer
|
|
69
|
+
* @uiGroup referrerProps
|
|
70
|
+
*/
|
|
12
71
|
showreferrer: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Text explaining who referred you to the program
|
|
74
|
+
*
|
|
75
|
+
* @uiName Referrer Content
|
|
76
|
+
* @uiGroup referrerProps
|
|
77
|
+
*/
|
|
13
78
|
referrercontent: string;
|
|
79
|
+
/**
|
|
80
|
+
* Referred Text shown in reward column
|
|
81
|
+
*
|
|
82
|
+
* @uiName Referrer Value
|
|
83
|
+
* @uiGroup referrerProps
|
|
84
|
+
*/
|
|
14
85
|
referrervalue: string;
|
|
86
|
+
/**
|
|
87
|
+
* Color of the successful reward icon and the text value
|
|
88
|
+
*
|
|
89
|
+
* @uiName Reward Color
|
|
90
|
+
* @uiGroup convertedReferralProps
|
|
91
|
+
*/
|
|
15
92
|
rewardcolor: string;
|
|
93
|
+
/**
|
|
94
|
+
* Color of the customer note
|
|
95
|
+
*
|
|
96
|
+
* @uiName Reward Color
|
|
97
|
+
* @uiGroup convertedReferralProps
|
|
98
|
+
*/
|
|
16
99
|
customernotecolor: string;
|
|
100
|
+
/**
|
|
101
|
+
* Show value of the first earned reward inside the rewards column
|
|
102
|
+
*
|
|
103
|
+
* @uiName Use First Reward
|
|
104
|
+
* @uiGroup convertedReferralProps
|
|
105
|
+
*/
|
|
17
106
|
usefirstreward: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Content shown when a referral is converted
|
|
109
|
+
*
|
|
110
|
+
* @uiName Converted Content
|
|
111
|
+
* @uiGroup convertedReferralProps
|
|
112
|
+
*/
|
|
18
113
|
convertedcontent: string;
|
|
114
|
+
/**
|
|
115
|
+
* Value shown in the rewards column
|
|
116
|
+
*
|
|
117
|
+
* @uiName Value Content
|
|
118
|
+
* @uiGroup convertedReferralProps
|
|
119
|
+
*/
|
|
19
120
|
valuecontent: string;
|
|
121
|
+
/**
|
|
122
|
+
* Color of the pending icon and text
|
|
123
|
+
*
|
|
124
|
+
* @uiName Pending Color
|
|
125
|
+
* @uiGroup pendingReferralProps
|
|
126
|
+
*/
|
|
20
127
|
pendingcolor: string;
|
|
128
|
+
/**
|
|
129
|
+
* Pending content shown in the user column
|
|
130
|
+
*
|
|
131
|
+
* @uiName Pending Content
|
|
132
|
+
* @uiGroup pendingReferralProps
|
|
133
|
+
*/
|
|
21
134
|
pendingcontent: string;
|
|
135
|
+
/**
|
|
136
|
+
* Pending content shown alongside the icon in the referral column
|
|
137
|
+
*
|
|
138
|
+
* @uiName Pending Value
|
|
139
|
+
* @uiGroup pendingReferralProps
|
|
140
|
+
*/
|
|
22
141
|
pendingvalue: string;
|
|
142
|
+
/**
|
|
143
|
+
* Color of the expired icon and text
|
|
144
|
+
*
|
|
145
|
+
* @uiName Expired Color
|
|
146
|
+
* @uiGroup expiredRewardProps
|
|
147
|
+
*/
|
|
23
148
|
expiredcolor: string;
|
|
149
|
+
/**
|
|
150
|
+
* Expired content shown in the user column
|
|
151
|
+
*
|
|
152
|
+
* @uiName Expired Content
|
|
153
|
+
* @uiGroup expiredRewardProps
|
|
154
|
+
*/
|
|
24
155
|
expiredcontent: string;
|
|
156
|
+
/**
|
|
157
|
+
* Expired content shown alongside the icon in the referral column
|
|
158
|
+
*
|
|
159
|
+
* @uiName Expired Value
|
|
160
|
+
* @uiGroup expiredRewardProps
|
|
161
|
+
*/
|
|
25
162
|
expiredvalue: string;
|
|
163
|
+
/**
|
|
164
|
+
* Reward expiry ICU message
|
|
165
|
+
*
|
|
166
|
+
* @uiName Expires Value
|
|
167
|
+
* @uiGroup expiredRewardProps
|
|
168
|
+
*/
|
|
26
169
|
expiresvalue: string;
|
|
170
|
+
/**
|
|
171
|
+
* Color of the cancelled icon and text
|
|
172
|
+
*
|
|
173
|
+
* @uiName Cancelled Color
|
|
174
|
+
* @uiGroup cancelledRewardProps
|
|
175
|
+
*/
|
|
27
176
|
cancelledcolor: string;
|
|
177
|
+
/**
|
|
178
|
+
* Cancelled text content shown in the user column
|
|
179
|
+
*
|
|
180
|
+
* @uiName Cancelled Content
|
|
181
|
+
* @uiGroup cancelledRewardProps
|
|
182
|
+
*/
|
|
28
183
|
cancelledcontent: string;
|
|
184
|
+
/**
|
|
185
|
+
* Cancelled text content shown alongside the icon in the referral column
|
|
186
|
+
*
|
|
187
|
+
* @uiName Cancelled Value
|
|
188
|
+
* @uiGroup cancelledRewardProps
|
|
189
|
+
*/
|
|
29
190
|
cancelledvalue: string;
|
|
191
|
+
/**
|
|
192
|
+
* When true, the local gets set by using the value passed to the referral component
|
|
193
|
+
*
|
|
194
|
+
* @uiName Internationalization
|
|
195
|
+
* @uiGroup internationalizationProps
|
|
196
|
+
*/
|
|
30
197
|
internationalization: boolean;
|
|
31
198
|
referrals: Referral[];
|
|
32
199
|
referralsCount: number;
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @uiName Reward Actions
|
|
3
|
+
*/
|
|
1
4
|
export declare class RewardsActions {
|
|
5
|
+
/**
|
|
6
|
+
* Text inside the previous button
|
|
7
|
+
*
|
|
8
|
+
* @uiName Previous Button Text
|
|
9
|
+
*/
|
|
2
10
|
previoustext: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text inside the hide button
|
|
13
|
+
*
|
|
14
|
+
* @uiName Hide Button Text
|
|
15
|
+
*/
|
|
3
16
|
hidetext: string;
|
|
17
|
+
/**
|
|
18
|
+
* Text inside the next button
|
|
19
|
+
*
|
|
20
|
+
* @uiName Next Button Text
|
|
21
|
+
*/
|
|
4
22
|
nexttext: string;
|
|
5
23
|
render(): any;
|
|
6
24
|
}
|
|
@@ -1,14 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @uiName Share Button
|
|
3
|
+
*/
|
|
1
4
|
export declare class ShareButton {
|
|
5
|
+
/**
|
|
6
|
+
* Show and hide button depending on what type of device the user is on
|
|
7
|
+
*
|
|
8
|
+
* @uiName Share Button Display Rule
|
|
9
|
+
*/
|
|
2
10
|
displayrule: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text inside the Share button
|
|
13
|
+
*
|
|
14
|
+
* @uiName Share Button Text
|
|
15
|
+
*/
|
|
3
16
|
text: string;
|
|
17
|
+
/**
|
|
18
|
+
* Background color of the Share button
|
|
19
|
+
*
|
|
20
|
+
* @uiName Share Button Background Color
|
|
21
|
+
*/
|
|
4
22
|
backgroundcolor: string;
|
|
23
|
+
/**
|
|
24
|
+
* Color of the text inside the Share button
|
|
25
|
+
*
|
|
26
|
+
* @uiName Share Button Text Color
|
|
27
|
+
*/
|
|
5
28
|
textcolor: string;
|
|
29
|
+
/**
|
|
30
|
+
* Share button icon
|
|
31
|
+
*
|
|
32
|
+
* @uiName Share Button Icon
|
|
33
|
+
*/
|
|
6
34
|
icon: string;
|
|
35
|
+
/**
|
|
36
|
+
* CSS Class name used to style the Share button
|
|
37
|
+
*
|
|
38
|
+
* @uiName Share Button Class Name
|
|
39
|
+
*/
|
|
7
40
|
buttonClassName: string;
|
|
41
|
+
/**
|
|
42
|
+
* Number to horizontally align the Share button icon
|
|
43
|
+
*
|
|
44
|
+
* @uiName Share Button Icon Horizontal
|
|
45
|
+
*/
|
|
8
46
|
iconhorizontal: number;
|
|
47
|
+
/**
|
|
48
|
+
* Number to vertically align the Share button icon
|
|
49
|
+
*
|
|
50
|
+
* @uiName Share Button Icon Vertical
|
|
51
|
+
*/
|
|
9
52
|
iconvertical: number;
|
|
53
|
+
/**
|
|
54
|
+
* Size of the Share button icon
|
|
55
|
+
*
|
|
56
|
+
* @uiName Share Button Icon Size
|
|
57
|
+
*/
|
|
10
58
|
iconsize: number;
|
|
59
|
+
/**
|
|
60
|
+
* Type of the share button
|
|
61
|
+
*
|
|
62
|
+
* @uiName Share Button Type
|
|
63
|
+
*/
|
|
11
64
|
type: string;
|
|
65
|
+
/**
|
|
66
|
+
* URL redirect location
|
|
67
|
+
*
|
|
68
|
+
* @uiName URL
|
|
69
|
+
*/
|
|
12
70
|
url: string;
|
|
13
71
|
button: HTMLElement;
|
|
14
72
|
clickHandler(e: any): void;
|