@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,5 +1,8 @@
|
|
|
1
1
|
import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
|
|
2
2
|
import { css } from "emotion";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Stat Component
|
|
5
|
+
*/
|
|
3
6
|
export class StatComponent {
|
|
4
7
|
componentWillLoad() {
|
|
5
8
|
this.statAddedHandler(this.elem);
|
|
@@ -41,8 +44,11 @@ export class StatComponent {
|
|
|
41
44
|
"required": false,
|
|
42
45
|
"optional": false,
|
|
43
46
|
"docs": {
|
|
44
|
-
"tags": [
|
|
45
|
-
|
|
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,14 @@ export class StatComponent {
|
|
|
58
64
|
"required": false,
|
|
59
65
|
"optional": false,
|
|
60
66
|
"docs": {
|
|
61
|
-
"tags": [
|
|
62
|
-
|
|
67
|
+
"tags": [{
|
|
68
|
+
"text": "Stat Type",
|
|
69
|
+
"name": "uiName"
|
|
70
|
+
}, {
|
|
71
|
+
"text": "stat",
|
|
72
|
+
"name": "uiGroup"
|
|
73
|
+
}],
|
|
74
|
+
"text": "Type of stat being displayed. e.g /rewardsCount"
|
|
63
75
|
},
|
|
64
76
|
"attribute": "stattype",
|
|
65
77
|
"reflect": false
|
|
@@ -75,8 +87,14 @@ export class StatComponent {
|
|
|
75
87
|
"required": false,
|
|
76
88
|
"optional": false,
|
|
77
89
|
"docs": {
|
|
78
|
-
"tags": [
|
|
79
|
-
|
|
90
|
+
"tags": [{
|
|
91
|
+
"text": "Stat Value",
|
|
92
|
+
"name": "uiName"
|
|
93
|
+
}, {
|
|
94
|
+
"text": "stat",
|
|
95
|
+
"name": "uiGroup"
|
|
96
|
+
}],
|
|
97
|
+
"text": "Value shown inside stat"
|
|
80
98
|
},
|
|
81
99
|
"attribute": "statvalue",
|
|
82
100
|
"reflect": false
|
|
@@ -92,8 +110,14 @@ export class StatComponent {
|
|
|
92
110
|
"required": false,
|
|
93
111
|
"optional": false,
|
|
94
112
|
"docs": {
|
|
95
|
-
"tags": [
|
|
96
|
-
|
|
113
|
+
"tags": [{
|
|
114
|
+
"text": "Stat Description",
|
|
115
|
+
"name": "uiName"
|
|
116
|
+
}, {
|
|
117
|
+
"text": "stat",
|
|
118
|
+
"name": "uiGroup"
|
|
119
|
+
}],
|
|
120
|
+
"text": "Description shown underneath stat value"
|
|
97
121
|
},
|
|
98
122
|
"attribute": "statdescription",
|
|
99
123
|
"reflect": false
|
|
@@ -109,8 +133,14 @@ export class StatComponent {
|
|
|
109
133
|
"required": false,
|
|
110
134
|
"optional": false,
|
|
111
135
|
"docs": {
|
|
112
|
-
"tags": [
|
|
113
|
-
|
|
136
|
+
"tags": [{
|
|
137
|
+
"text": "Stat Color",
|
|
138
|
+
"name": "uiName"
|
|
139
|
+
}, {
|
|
140
|
+
"text": "stat",
|
|
141
|
+
"name": "uiGroup"
|
|
142
|
+
}],
|
|
143
|
+
"text": "Text color of the stat"
|
|
114
144
|
},
|
|
115
145
|
"attribute": "statcolor",
|
|
116
146
|
"reflect": false
|
|
@@ -2,8 +2,16 @@ import { h, Component, Prop, State, Element, Listen } from "@stencil/core";
|
|
|
2
2
|
import { API } from "../../services/WidgetHost";
|
|
3
3
|
import { pathToRegexp } from "path-to-regexp";
|
|
4
4
|
import { css } from "emotion";
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Stats Container
|
|
7
|
+
*/
|
|
5
8
|
export class StatsContainer {
|
|
6
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Hide the component
|
|
12
|
+
*
|
|
13
|
+
* @uiName Is Hidden
|
|
14
|
+
*/
|
|
7
15
|
this.ishidden = false;
|
|
8
16
|
this.statPaths = [
|
|
9
17
|
"/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
|
|
@@ -117,8 +125,11 @@ export class StatsContainer {
|
|
|
117
125
|
"required": false,
|
|
118
126
|
"optional": false,
|
|
119
127
|
"docs": {
|
|
120
|
-
"tags": [
|
|
121
|
-
|
|
128
|
+
"tags": [{
|
|
129
|
+
"text": "Is Hidden",
|
|
130
|
+
"name": "uiName"
|
|
131
|
+
}],
|
|
132
|
+
"text": "Hide the component"
|
|
122
133
|
},
|
|
123
134
|
"attribute": "ishidden",
|
|
124
135
|
"reflect": false,
|
|
@@ -135,8 +146,11 @@ export class StatsContainer {
|
|
|
135
146
|
"required": false,
|
|
136
147
|
"optional": false,
|
|
137
148
|
"docs": {
|
|
138
|
-
"tags": [
|
|
139
|
-
|
|
149
|
+
"tags": [{
|
|
150
|
+
"text": "Padding Top",
|
|
151
|
+
"name": "uiName"
|
|
152
|
+
}],
|
|
153
|
+
"text": "Configure the padding top of the container"
|
|
140
154
|
},
|
|
141
155
|
"attribute": "paddingtop",
|
|
142
156
|
"reflect": false
|
|
@@ -152,8 +166,11 @@ export class StatsContainer {
|
|
|
152
166
|
"required": false,
|
|
153
167
|
"optional": false,
|
|
154
168
|
"docs": {
|
|
155
|
-
"tags": [
|
|
156
|
-
|
|
169
|
+
"tags": [{
|
|
170
|
+
"text": "Padding Bottom",
|
|
171
|
+
"name": "uiName"
|
|
172
|
+
}],
|
|
173
|
+
"text": "Configure the padding bottom of the container"
|
|
157
174
|
},
|
|
158
175
|
"attribute": "paddingbottom",
|
|
159
176
|
"reflect": false
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, Component, Prop, Element } from "@stencil/core";
|
|
2
2
|
import { css } from "emotion";
|
|
3
3
|
import marked from "marked";
|
|
4
|
+
/**
|
|
5
|
+
* @uiName Text Component
|
|
6
|
+
*/
|
|
4
7
|
export class TextComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.padding = "10px 20px 15px";
|
|
7
|
-
}
|
|
8
8
|
render() {
|
|
9
9
|
const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
10
10
|
const textStyle = css `
|
|
@@ -50,8 +50,11 @@ export class TextComponent {
|
|
|
50
50
|
"required": false,
|
|
51
51
|
"optional": false,
|
|
52
52
|
"docs": {
|
|
53
|
-
"tags": [
|
|
54
|
-
|
|
53
|
+
"tags": [{
|
|
54
|
+
"text": "Hide Text",
|
|
55
|
+
"name": "uiName"
|
|
56
|
+
}],
|
|
57
|
+
"text": "Hide or show the component"
|
|
55
58
|
},
|
|
56
59
|
"attribute": "ishidden",
|
|
57
60
|
"reflect": false
|
|
@@ -67,8 +70,11 @@ export class TextComponent {
|
|
|
67
70
|
"required": false,
|
|
68
71
|
"optional": false,
|
|
69
72
|
"docs": {
|
|
70
|
-
"tags": [
|
|
71
|
-
|
|
73
|
+
"tags": [{
|
|
74
|
+
"text": "Is Markdown",
|
|
75
|
+
"name": "uiName"
|
|
76
|
+
}],
|
|
77
|
+
"text": "Compiles plain text into markdown"
|
|
72
78
|
},
|
|
73
79
|
"attribute": "ismarkdown",
|
|
74
80
|
"reflect": false
|
|
@@ -84,8 +90,11 @@ export class TextComponent {
|
|
|
84
90
|
"required": false,
|
|
85
91
|
"optional": false,
|
|
86
92
|
"docs": {
|
|
87
|
-
"tags": [
|
|
88
|
-
|
|
93
|
+
"tags": [{
|
|
94
|
+
"text": "Text",
|
|
95
|
+
"name": "uiName"
|
|
96
|
+
}],
|
|
97
|
+
"text": "The text content"
|
|
89
98
|
},
|
|
90
99
|
"attribute": "text",
|
|
91
100
|
"reflect": false
|
|
@@ -101,8 +110,11 @@ export class TextComponent {
|
|
|
101
110
|
"required": false,
|
|
102
111
|
"optional": false,
|
|
103
112
|
"docs": {
|
|
104
|
-
"tags": [
|
|
105
|
-
|
|
113
|
+
"tags": [{
|
|
114
|
+
"text": "Font Family",
|
|
115
|
+
"name": "uiName"
|
|
116
|
+
}],
|
|
117
|
+
"text": "Font family of the text"
|
|
106
118
|
},
|
|
107
119
|
"attribute": "fontfamily",
|
|
108
120
|
"reflect": false
|
|
@@ -118,8 +130,11 @@ export class TextComponent {
|
|
|
118
130
|
"required": false,
|
|
119
131
|
"optional": false,
|
|
120
132
|
"docs": {
|
|
121
|
-
"tags": [
|
|
122
|
-
|
|
133
|
+
"tags": [{
|
|
134
|
+
"text": "Color",
|
|
135
|
+
"name": "uiName"
|
|
136
|
+
}],
|
|
137
|
+
"text": "Color of the text"
|
|
123
138
|
},
|
|
124
139
|
"attribute": "color",
|
|
125
140
|
"reflect": false
|
|
@@ -135,8 +150,11 @@ export class TextComponent {
|
|
|
135
150
|
"required": false,
|
|
136
151
|
"optional": false,
|
|
137
152
|
"docs": {
|
|
138
|
-
"tags": [
|
|
139
|
-
|
|
153
|
+
"tags": [{
|
|
154
|
+
"text": "Font Size",
|
|
155
|
+
"name": "uiName"
|
|
156
|
+
}],
|
|
157
|
+
"text": "Size of the text"
|
|
140
158
|
},
|
|
141
159
|
"attribute": "fontsize",
|
|
142
160
|
"reflect": false
|
|
@@ -152,8 +170,11 @@ export class TextComponent {
|
|
|
152
170
|
"required": false,
|
|
153
171
|
"optional": false,
|
|
154
172
|
"docs": {
|
|
155
|
-
"tags": [
|
|
156
|
-
|
|
173
|
+
"tags": [{
|
|
174
|
+
"text": "Padding Top",
|
|
175
|
+
"name": "uiName"
|
|
176
|
+
}],
|
|
177
|
+
"text": "Top padding on text"
|
|
157
178
|
},
|
|
158
179
|
"attribute": "paddingtop",
|
|
159
180
|
"reflect": false
|
|
@@ -169,30 +190,15 @@ export class TextComponent {
|
|
|
169
190
|
"required": false,
|
|
170
191
|
"optional": false,
|
|
171
192
|
"docs": {
|
|
172
|
-
"tags": [
|
|
173
|
-
|
|
193
|
+
"tags": [{
|
|
194
|
+
"text": "Padding Bottom",
|
|
195
|
+
"name": "uiName"
|
|
196
|
+
}],
|
|
197
|
+
"text": "Bottom padding on text"
|
|
174
198
|
},
|
|
175
199
|
"attribute": "paddingbottom",
|
|
176
200
|
"reflect": false
|
|
177
201
|
},
|
|
178
|
-
"padding": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"mutable": false,
|
|
181
|
-
"complexType": {
|
|
182
|
-
"original": "string",
|
|
183
|
-
"resolved": "string",
|
|
184
|
-
"references": {}
|
|
185
|
-
},
|
|
186
|
-
"required": false,
|
|
187
|
-
"optional": false,
|
|
188
|
-
"docs": {
|
|
189
|
-
"tags": [],
|
|
190
|
-
"text": ""
|
|
191
|
-
},
|
|
192
|
-
"attribute": "padding",
|
|
193
|
-
"reflect": false,
|
|
194
|
-
"defaultValue": "\"10px 20px 15px\""
|
|
195
|
-
},
|
|
196
202
|
"textalign": {
|
|
197
203
|
"type": "string",
|
|
198
204
|
"mutable": false,
|
|
@@ -204,8 +210,11 @@ export class TextComponent {
|
|
|
204
210
|
"required": false,
|
|
205
211
|
"optional": false,
|
|
206
212
|
"docs": {
|
|
207
|
-
"tags": [
|
|
208
|
-
|
|
213
|
+
"tags": [{
|
|
214
|
+
"text": "Text Align",
|
|
215
|
+
"name": "uiName"
|
|
216
|
+
}],
|
|
217
|
+
"text": "Text alignment"
|
|
209
218
|
},
|
|
210
219
|
"attribute": "textalign",
|
|
211
220
|
"reflect": false
|
|
@@ -221,8 +230,11 @@ export class TextComponent {
|
|
|
221
230
|
"required": false,
|
|
222
231
|
"optional": false,
|
|
223
232
|
"docs": {
|
|
224
|
-
"tags": [
|
|
225
|
-
|
|
233
|
+
"tags": [{
|
|
234
|
+
"text": "Background",
|
|
235
|
+
"name": "uiName"
|
|
236
|
+
}],
|
|
237
|
+
"text": "Background color of the container"
|
|
226
238
|
},
|
|
227
239
|
"attribute": "background",
|
|
228
240
|
"reflect": false
|
|
@@ -238,8 +250,11 @@ export class TextComponent {
|
|
|
238
250
|
"required": false,
|
|
239
251
|
"optional": false,
|
|
240
252
|
"docs": {
|
|
241
|
-
"tags": [
|
|
242
|
-
|
|
253
|
+
"tags": [{
|
|
254
|
+
"text": "Height",
|
|
255
|
+
"name": "uiName"
|
|
256
|
+
}],
|
|
257
|
+
"text": "Height of the container"
|
|
243
258
|
},
|
|
244
259
|
"attribute": "height",
|
|
245
260
|
"reflect": false
|
|
@@ -10316,6 +10316,7 @@ const API = {
|
|
|
10316
10316
|
}
|
|
10317
10317
|
}`
|
|
10318
10318
|
: ""}
|
|
10319
|
+
}
|
|
10319
10320
|
}
|
|
10320
10321
|
`,
|
|
10321
10322
|
variables,
|
package/dist/esm/loader.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import './_commonjsHelpers-1d681858.js';
|
|
|
5
5
|
const defineCustomElements = (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
7
7
|
return patchEsm().then(() => {
|
|
8
|
-
return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"
|
|
8
|
+
return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-8ea8b6d8.js';
|
|
2
2
|
import './_commonjsHelpers-1d681858.js';
|
|
3
|
-
import { A as API, w as widgetIdent } from './WidgetHost-
|
|
3
|
+
import { A as API, w as widgetIdent } from './WidgetHost-a27e693d.js';
|
|
4
4
|
|
|
5
5
|
const closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const CloseButton = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* The text shown inside the close button.
|
|
12
|
+
*
|
|
13
|
+
* @uiName Button Text
|
|
14
|
+
*/
|
|
10
15
|
this.text = "Close";
|
|
11
16
|
}
|
|
12
17
|
handleClick() {
|
|
@@ -23,6 +28,6 @@ const TwitterShareButton = class {
|
|
|
23
28
|
}
|
|
24
29
|
get closeButton() { return getElement(this); }
|
|
25
30
|
};
|
|
26
|
-
|
|
31
|
+
CloseButton.style = closeButtonCss;
|
|
27
32
|
|
|
28
|
-
export {
|
|
33
|
+
export { CloseButton as sqh_close_button };
|