@saasquatch/vanilla-components 1.2.4-1 → 1.2.4-10
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/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-f349e877.js} +157 -0
- package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
- package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +1178 -42
- package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/close-button/close-button.js +3 -0
- package/dist/collection/components/copy-button/copy-button.js +18 -15
- package/dist/collection/components/copy-link-button/copy-link-button.js +11 -5
- package/dist/collection/components/cta-component/cta-component.css +6 -0
- package/dist/collection/components/cta-component/cta-component.js +393 -0
- package/dist/collection/components/global-container/global-container.js +6 -5
- package/dist/collection/components/image-component/image-component.js +11 -7
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +20 -6
- package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +554 -0
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +1 -0
- package/dist/collection/components/referral-list/referral-list.js +49 -43
- package/dist/collection/components/rewards-actions/rewards-actions.js +1 -0
- package/dist/collection/components/share-button/share-button.js +4 -3
- package/dist/collection/components/share-button-container/share-button-container.js +53 -81
- package/dist/collection/components/stat-component/stat-component.js +22 -7
- package/dist/collection/components/stats-container/stats-container.js +13 -7
- package/dist/collection/components/text-component/text-component.js +44 -16
- package/dist/collection/services/WidgetHost.js +157 -0
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +157 -0
- package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/sqh-close-button.entry.js +2 -2
- package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1177 -43
- package/dist/esm/sqh-referral-code.entry.js +2 -2
- package/dist/esm/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +96 -4
- package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +53 -3
- package/dist/esm-es5/loader.mjs +3 -3
- package/dist/esm-es5/sqh-close-button.entry.js +2 -2
- package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1065 -54
- package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
- package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +3 -3
- package/dist/types/components/close-button/close-button.d.ts +3 -0
- package/dist/types/components/copy-button/copy-button.d.ts +10 -21
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +5 -9
- package/dist/types/components/cta-component/cta-component.d.ts +89 -0
- package/dist/types/components/global-container/global-container.d.ts +4 -7
- package/dist/types/components/image-component/image-component.d.ts +6 -10
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +12 -8
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +91 -0
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +1 -0
- package/dist/types/components/referral-list/referral-list.d.ts +42 -48
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +1 -0
- package/dist/types/components/share-button/share-button.d.ts +3 -4
- package/dist/types/components/share-button-container/share-button-container.d.ts +13 -83
- package/dist/types/components/stat-component/stat-component.d.ts +13 -10
- package/dist/types/components/stats-container/stats-container.d.ts +8 -5
- package/dist/types/components/text-component/text-component.d.ts +17 -20
- package/dist/types/components.d.ts +488 -312
- package/dist/types/saasquatch.d.ts +3 -1
- package/dist/types/services/WidgetHost.d.ts +6 -0
- package/dist/widget-components/p-0839fd2c.system.entry.js +10 -0
- package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-3ba562d0.entry.js} +1 -1
- package/dist/widget-components/{p-366f1663.entry.js → p-4293e873.entry.js} +1 -1
- package/dist/widget-components/{p-8e232564.system.js → p-54e83dfb.system.js} +2 -2
- package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
- package/dist/widget-components/{p-edd43dbc.js → p-6e753d23.js} +68 -3
- package/dist/widget-components/p-a952fcf2.entry.js +233 -0
- package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-abf8a511.system.entry.js} +1 -1
- package/dist/widget-components/p-ad5121cf.system.js +1 -0
- package/dist/widget-components/p-d9e9c55c.system.entry.js +1 -0
- package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
- package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
- package/dist/widget-components/p-fbf0c7fe.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +4 -3
- package/dist/widget-components/p-485eaf44.js +0 -1
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d416634a.entry.js +0 -148
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
- package/dist/widget-components/p-e61a8100.system.js +0 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* @uiName Stat Component
|
|
4
|
+
* @canvasRenderer always-replace
|
|
5
|
+
* @exampleGroup Statistics
|
|
6
|
+
* @example Referral Count - <sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
7
|
+
* @example Reward Count - <sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
|
|
8
|
+
* @example Credit Earned - <sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
|
|
9
|
+
* @example Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
4
10
|
*/
|
|
5
11
|
export declare class StatComponent {
|
|
6
12
|
elem: HTMLElement;
|
|
7
13
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @uiName Hide Stat
|
|
14
|
+
* @undocumented
|
|
15
|
+
* @uiName Hide Component
|
|
11
16
|
*/
|
|
12
17
|
ishidden: boolean;
|
|
13
18
|
/**
|
|
@@ -15,24 +20,22 @@ export declare class StatComponent {
|
|
|
15
20
|
* @uiName Stat Type
|
|
16
21
|
* @uiWidget statTypeSelector
|
|
17
22
|
* @required
|
|
23
|
+
* @minLength 1
|
|
18
24
|
*/
|
|
19
25
|
stattype: string;
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
27
|
+
* @undocumented
|
|
23
28
|
* @uiName Stat Value
|
|
24
29
|
*/
|
|
25
30
|
statvalue: string;
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
32
|
+
* Text shown underneath the stat value
|
|
28
33
|
*
|
|
29
|
-
* @uiName
|
|
34
|
+
* @uiName Description
|
|
30
35
|
*/
|
|
31
36
|
statdescription: string;
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @uiName Stat Color
|
|
38
|
+
* @uiName Color
|
|
36
39
|
* @uiWidget color
|
|
37
40
|
* @format color
|
|
38
41
|
*/
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @uiName Stats Container
|
|
3
|
+
* @canvasRenderer always-replace
|
|
3
4
|
* @slots [{"name":"","title":"Stats"}]
|
|
5
|
+
* @exampleGroup Statistics
|
|
6
|
+
* @example Referral Stat Group - <sqh-stats-container ishidden="false" paddingtop="0" paddingbottom="0"><sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component><sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component><sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component></sqh-stats-container>
|
|
7
|
+
* @example Partner Stat Group - <sqh-stats-container ishidden="false" paddingtop="0" paddingbottom="0"><sqh-partner-stat-component ishidden="false" statcolor="#000000" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyPendingCredit" statdescription="Pending Balance" paddingtop="10" paddingbottom="10"></sqh-partner-stat-component><sqh-partner-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyValue" statdescription="Available Balance" paddingtop="10" paddingbottom="10" statcolor="#4caf50"></sqh-partner-stat-component><sqh-partner-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyRedeemedCredit" statdescription="Redeemed Balance" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-partner-stat-component></sqh-stats-container>
|
|
4
8
|
*/
|
|
5
9
|
export declare class StatsContainer {
|
|
6
10
|
container: HTMLElement;
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @uiName Is Hidden
|
|
12
|
+
* @undocumented
|
|
13
|
+
* @uiName Hide stats
|
|
11
14
|
*/
|
|
12
15
|
ishidden: boolean;
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* Define the bottom padding of the container with a pixel amount.
|
|
15
18
|
*
|
|
16
19
|
* @uiName Padding Top
|
|
17
20
|
* @default "0"
|
|
18
21
|
*/
|
|
19
22
|
paddingtop: string;
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* Define the top padding of the container with a pixel amount.
|
|
22
25
|
*
|
|
23
26
|
* @uiName Padding Bottom
|
|
24
27
|
* @default "0"
|
|
@@ -1,73 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @uiName Text Component
|
|
3
|
+
* @canvasRenderer always-replace
|
|
4
|
+
* @exampleGroup Common Components
|
|
5
|
+
* @example Header Text - <sqh-text-component sqhheader="true" ishidden="false" ismarkdown="false" text="Give $10 and Get $10!" color="#4486E1" fontsize="30" textalign="center" paddingtop="30" paddingbottom="10"></sqh-text-component>
|
|
6
|
+
* @example Paragraph Text - <sqh-text-component sqhbody="true" ishidden="false" ismarkdown="true" text="Give a friend a $10 and receive $10 for yourself when they purchase.<br/><br/>Share the link below or use the code **<sqh-referral-code />**" color="#000000" fontsize="13" textalign="center" paddingtop="5" paddingbottom="20"></sqh-text-component>
|
|
3
7
|
*/
|
|
4
8
|
export declare class TextComponent {
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
10
|
+
* @undocumented
|
|
8
11
|
* @uiName Hide Text
|
|
9
12
|
*/
|
|
10
13
|
ishidden: boolean;
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* Compile plain text into HTML. See {@link https://www.markdownguide.org/getting-started/ markdown} for more details.
|
|
13
16
|
*
|
|
14
|
-
* @uiName
|
|
17
|
+
* @uiName Use Markdown
|
|
15
18
|
*/
|
|
16
19
|
ismarkdown: boolean;
|
|
17
20
|
/**
|
|
18
|
-
* The text content
|
|
19
|
-
*
|
|
20
21
|
* @uiName Text
|
|
21
22
|
*/
|
|
22
23
|
text: string;
|
|
23
24
|
/**
|
|
24
|
-
* Font family of the text
|
|
25
|
-
*
|
|
26
25
|
* @uiName Font Family
|
|
27
26
|
*/
|
|
28
27
|
fontfamily: string;
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @uiName Color
|
|
29
|
+
* @uiName Text Color
|
|
33
30
|
* @uiWidget color
|
|
34
31
|
* @format color
|
|
35
32
|
*/
|
|
36
33
|
color: string;
|
|
37
34
|
/**
|
|
38
|
-
* Size of the text
|
|
39
|
-
*
|
|
40
35
|
* @uiName Font Size
|
|
41
36
|
*/
|
|
42
37
|
fontsize: string;
|
|
43
38
|
/**
|
|
44
|
-
*
|
|
39
|
+
* Define the top padding of the container with a pixel amount.
|
|
45
40
|
*
|
|
46
41
|
* @uiName Padding Top
|
|
47
42
|
*/
|
|
48
43
|
paddingtop: string;
|
|
49
44
|
/**
|
|
50
|
-
*
|
|
45
|
+
* @uiName Font Weight
|
|
46
|
+
*/
|
|
47
|
+
fontweight: string;
|
|
48
|
+
/**
|
|
49
|
+
* Define the bottom padding of the container with a pixel amount.
|
|
51
50
|
*
|
|
52
51
|
* @uiName Padding Bottom
|
|
53
52
|
*/
|
|
54
53
|
paddingbottom: string;
|
|
55
54
|
/**
|
|
56
|
-
* Text
|
|
57
|
-
*
|
|
58
|
-
* @uiName Text Align
|
|
55
|
+
* @uiName Text Alignment
|
|
59
56
|
* @uiEnum ["left", "center", "right"]
|
|
60
57
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
61
58
|
*/
|
|
62
59
|
textalign: string;
|
|
63
60
|
/**
|
|
64
|
-
*
|
|
61
|
+
* Fill the background with a color or image. Input color values as a HEX code and an image as a URL.
|
|
65
62
|
*
|
|
66
63
|
* @uiName Background
|
|
67
64
|
*/
|
|
68
65
|
background: string;
|
|
69
66
|
/**
|
|
70
|
-
*
|
|
67
|
+
* Define the height of the container with a pixel amount.
|
|
71
68
|
*
|
|
72
69
|
* @uiName Height
|
|
73
70
|
*/
|