@saasquatch/vanilla-components 1.2.4 → 1.2.5-1
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-d7b870ce.js → WidgetHost-fce29ef5.js} +420 -420
- package/dist/cjs/sqh-close-button.cjs.entry.js +25 -25
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +870 -971
- package/dist/cjs/sqh-referral-code.cjs.entry.js +22 -22
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +26 -26
- package/dist/collection/components/close-button/close-button.js +68 -68
- package/dist/collection/components/copy-button/copy-button.js +358 -358
- package/dist/collection/components/copy-link-button/copy-link-button.js +215 -215
- package/dist/collection/components/global-container/global-container.js +151 -151
- package/dist/collection/components/image-component/image-component.js +165 -165
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +194 -194
- package/dist/collection/components/referral-code/referral-code.js +36 -36
- package/dist/collection/components/referral-component/referral-component.js +255 -255
- package/dist/collection/components/referral-list/referral-list.js +860 -860
- package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
- package/dist/collection/components/share-button/share-button.js +282 -282
- package/dist/collection/components/share-button-container/share-button-container.js +2384 -2384
- package/dist/collection/components/stat-component/stat-component.js +194 -194
- package/dist/collection/components/stats-container/stats-container.js +206 -206
- package/dist/collection/components/text-component/text-component.js +291 -291
- package/dist/collection/global/global.js +4 -4
- package/dist/collection/services/FormatJs.js +15 -15
- package/dist/collection/services/WidgetHost.js +426 -426
- package/dist/collection/utilities.js +81 -81
- package/dist/esm/{WidgetHost-a27e693d.js → WidgetHost-903fb7cc.js} +420 -420
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sqh-close-button.entry.js +25 -25
- package/dist/esm/sqh-copy-button_12.entry.js +870 -971
- package/dist/esm/sqh-referral-code.entry.js +22 -22
- package/dist/esm/sqh-rewards-actions.entry.js +26 -26
- package/dist/esm-es5/{WidgetHost-a27e693d.js → WidgetHost-903fb7cc.js} +9432 -9432
- package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
- package/dist/esm-es5/css-shim-a659079f.js +122 -122
- package/dist/esm-es5/dom-4061ceba.js +468 -468
- package/dist/esm-es5/en-be593af0.js +1471 -1471
- package/dist/esm-es5/index-8ea8b6d8.js +1758 -1758
- package/dist/esm-es5/loader.mjs +11 -11
- package/dist/esm-es5/sqh-close-button.entry.js +35 -35
- package/dist/esm-es5/sqh-copy-button_12.entry.js +9535 -9624
- package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
- package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
- package/dist/esm-es5/widget-components.mjs +6 -6
- package/dist/types/components/close-button/close-button.d.ts +16 -16
- package/dist/types/components/copy-button/copy-button.d.ts +90 -90
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -53
- package/dist/types/components/global-container/global-container.d.ts +39 -39
- package/dist/types/components/image-component/image-component.d.ts +45 -45
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -51
- package/dist/types/components/referral-code/referral-code.d.ts +12 -12
- package/dist/types/components/referral-component/referral-component.d.ts +46 -46
- package/dist/types/components/referral-list/referral-list.d.ts +234 -234
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
- package/dist/types/components/share-button/share-button.d.ts +77 -77
- package/dist/types/components/share-button-container/share-button-container.d.ts +593 -593
- package/dist/types/components/stat-component/stat-component.d.ts +48 -48
- package/dist/types/components/stats-container/stats-container.d.ts +47 -47
- package/dist/types/components/text-component/text-component.d.ts +74 -74
- package/dist/types/components.d.ts +4 -4
- package/dist/types/global/global.d.ts +4 -4
- package/dist/types/services/FormatJs.d.ts +7 -7
- package/dist/types/services/WidgetHost.d.ts +45 -45
- package/dist/types/utilities.d.ts +7 -7
- package/dist/widget-components/{p-650d012d.entry.js → p-131a5c4a.entry.js} +1 -1
- package/dist/widget-components/p-1b8f2cfc.system.entry.js +8 -0
- package/dist/widget-components/p-24fc4ba9.js +1 -1
- package/dist/widget-components/p-46109683.js +3 -3
- package/dist/widget-components/{p-d4b27c72.entry.js → p-50ae8f2b.entry.js} +1 -1
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-0bfec452.entry.js → p-8baa34a0.entry.js} +16 -16
- package/dist/widget-components/{p-c0cdba77.system.entry.js → p-b9fcb846.system.entry.js} +1 -1
- package/dist/widget-components/p-da180bcd.system.entry.js +1 -0
- package/dist/widget-components/{p-9adc7c50.system.js → p-e692beaf.system.js} +0 -0
- package/dist/widget-components/{p-9525bf4a.js → p-ffeb02d1.js} +0 -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 +1 -1
- package/CHANGELOG.md +0 -163
- package/dist/widget-components/p-796dc228.system.entry.js +0 -8
- package/dist/widget-components/p-908068c2.system.entry.js +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
/**
|
|
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 Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
9
|
-
*/
|
|
10
|
-
export declare class StatComponent {
|
|
11
|
-
elem: HTMLElement;
|
|
12
|
-
/**
|
|
13
|
-
* @undocumented
|
|
14
|
-
* @uiName Hide Component
|
|
15
|
-
*/
|
|
16
|
-
ishidden: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Type of stat being displayed. e.g /rewardsCount
|
|
19
|
-
* @uiName Stat Type
|
|
20
|
-
* @uiWidget statTypeSelectWidget
|
|
21
|
-
* @required
|
|
22
|
-
* @minLength 1
|
|
23
|
-
*/
|
|
24
|
-
stattype: string;
|
|
25
|
-
/**
|
|
26
|
-
* @undocumented
|
|
27
|
-
* @uiName Stat Value
|
|
28
|
-
*/
|
|
29
|
-
statvalue: string;
|
|
30
|
-
/**
|
|
31
|
-
* Text shown underneath the stat value
|
|
32
|
-
*
|
|
33
|
-
* @uiName Description
|
|
34
|
-
*/
|
|
35
|
-
statdescription: string;
|
|
36
|
-
/**
|
|
37
|
-
* @uiName Color
|
|
38
|
-
* @uiWidget color
|
|
39
|
-
*/
|
|
40
|
-
statcolor: string;
|
|
41
|
-
statTypeUpdated: EventEmitter;
|
|
42
|
-
statAdded: EventEmitter;
|
|
43
|
-
componentWillLoad(): void;
|
|
44
|
-
stattypeHandler(newValue: string, oldValue: string): void;
|
|
45
|
-
statAddedHandler(stat: HTMLElement): void;
|
|
46
|
-
statTypeUpdatedHandler(stat: HTMLElement): void;
|
|
47
|
-
render(): any;
|
|
48
|
-
}
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
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 Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
9
|
+
*/
|
|
10
|
+
export declare class StatComponent {
|
|
11
|
+
elem: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* @undocumented
|
|
14
|
+
* @uiName Hide Component
|
|
15
|
+
*/
|
|
16
|
+
ishidden: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Type of stat being displayed. e.g /rewardsCount
|
|
19
|
+
* @uiName Stat Type
|
|
20
|
+
* @uiWidget statTypeSelectWidget
|
|
21
|
+
* @required
|
|
22
|
+
* @minLength 1
|
|
23
|
+
*/
|
|
24
|
+
stattype: string;
|
|
25
|
+
/**
|
|
26
|
+
* @undocumented
|
|
27
|
+
* @uiName Stat Value
|
|
28
|
+
*/
|
|
29
|
+
statvalue: string;
|
|
30
|
+
/**
|
|
31
|
+
* Text shown underneath the stat value
|
|
32
|
+
*
|
|
33
|
+
* @uiName Description
|
|
34
|
+
*/
|
|
35
|
+
statdescription: string;
|
|
36
|
+
/**
|
|
37
|
+
* @uiName Color
|
|
38
|
+
* @uiWidget color
|
|
39
|
+
*/
|
|
40
|
+
statcolor: string;
|
|
41
|
+
statTypeUpdated: EventEmitter;
|
|
42
|
+
statAdded: EventEmitter;
|
|
43
|
+
componentWillLoad(): void;
|
|
44
|
+
stattypeHandler(newValue: string, oldValue: string): void;
|
|
45
|
+
statAddedHandler(stat: HTMLElement): void;
|
|
46
|
+
statTypeUpdatedHandler(stat: HTMLElement): void;
|
|
47
|
+
render(): any;
|
|
48
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @uiName Stats Container
|
|
3
|
-
* @canvasRenderer always-replace
|
|
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>
|
|
8
|
-
*/
|
|
9
|
-
export declare class StatsContainer {
|
|
10
|
-
container: HTMLElement;
|
|
11
|
-
/**
|
|
12
|
-
* @undocumented
|
|
13
|
-
* @uiName Hide stats
|
|
14
|
-
*/
|
|
15
|
-
ishidden: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Define the bottom padding of the container with a pixel amount.
|
|
18
|
-
*
|
|
19
|
-
* @uiName Padding Top
|
|
20
|
-
* @default 0
|
|
21
|
-
*/
|
|
22
|
-
paddingtop: string;
|
|
23
|
-
/**
|
|
24
|
-
* Define the top padding of the container with a pixel amount.
|
|
25
|
-
*
|
|
26
|
-
* @uiName Padding Bottom
|
|
27
|
-
* @default 0
|
|
28
|
-
*/
|
|
29
|
-
paddingbottom: string;
|
|
30
|
-
loading: boolean;
|
|
31
|
-
stats: object;
|
|
32
|
-
constructor();
|
|
33
|
-
componentWillLoad(): any;
|
|
34
|
-
statTypeUpdatedHandler(event: CustomEvent): void;
|
|
35
|
-
statAddedHandler(event: CustomEvent): void;
|
|
36
|
-
statPaths: string[];
|
|
37
|
-
statPathRegexp: {
|
|
38
|
-
regexp: RegExp;
|
|
39
|
-
keys: any[];
|
|
40
|
-
}[];
|
|
41
|
-
setStatValue(child: HTMLElement | Element): HTMLElement | Element;
|
|
42
|
-
getStatFromPath(path: any): any;
|
|
43
|
-
getStatValue(statVariables: any): any;
|
|
44
|
-
getRewardBalance(statVariables: any): any;
|
|
45
|
-
onError(e: Error): void;
|
|
46
|
-
render(): any;
|
|
47
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @uiName Stats Container
|
|
3
|
+
* @canvasRenderer always-replace
|
|
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>
|
|
8
|
+
*/
|
|
9
|
+
export declare class StatsContainer {
|
|
10
|
+
container: HTMLElement;
|
|
11
|
+
/**
|
|
12
|
+
* @undocumented
|
|
13
|
+
* @uiName Hide stats
|
|
14
|
+
*/
|
|
15
|
+
ishidden: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Define the bottom padding of the container with a pixel amount.
|
|
18
|
+
*
|
|
19
|
+
* @uiName Padding Top
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
paddingtop: string;
|
|
23
|
+
/**
|
|
24
|
+
* Define the top padding of the container with a pixel amount.
|
|
25
|
+
*
|
|
26
|
+
* @uiName Padding Bottom
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
paddingbottom: string;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
stats: object;
|
|
32
|
+
constructor();
|
|
33
|
+
componentWillLoad(): any;
|
|
34
|
+
statTypeUpdatedHandler(event: CustomEvent): void;
|
|
35
|
+
statAddedHandler(event: CustomEvent): void;
|
|
36
|
+
statPaths: string[];
|
|
37
|
+
statPathRegexp: {
|
|
38
|
+
regexp: RegExp;
|
|
39
|
+
keys: any[];
|
|
40
|
+
}[];
|
|
41
|
+
setStatValue(child: HTMLElement | Element): HTMLElement | Element;
|
|
42
|
+
getStatFromPath(path: any): any;
|
|
43
|
+
getStatValue(statVariables: any): any;
|
|
44
|
+
getRewardBalance(statVariables: any): any;
|
|
45
|
+
onError(e: Error): void;
|
|
46
|
+
render(): any;
|
|
47
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
/**
|
|
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>
|
|
7
|
-
*/
|
|
8
|
-
export declare class TextComponent {
|
|
9
|
-
/**
|
|
10
|
-
* @undocumented
|
|
11
|
-
* @uiName Hide Text
|
|
12
|
-
*/
|
|
13
|
-
ishidden: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
|
|
16
|
-
*
|
|
17
|
-
* @uiName Use Markdown
|
|
18
|
-
*/
|
|
19
|
-
ismarkdown: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @uiName Text
|
|
22
|
-
* @uiWidget textArea
|
|
23
|
-
*/
|
|
24
|
-
text: string;
|
|
25
|
-
/**
|
|
26
|
-
* @uiName Font Family
|
|
27
|
-
*/
|
|
28
|
-
fontfamily: string;
|
|
29
|
-
/**
|
|
30
|
-
* @uiName Text Color
|
|
31
|
-
* @uiWidget color
|
|
32
|
-
*/
|
|
33
|
-
color: string;
|
|
34
|
-
/**
|
|
35
|
-
* @uiName Font Size
|
|
36
|
-
*/
|
|
37
|
-
fontsize: string;
|
|
38
|
-
/**
|
|
39
|
-
* Define the top padding of the container with a pixel amount.
|
|
40
|
-
*
|
|
41
|
-
* @uiName Padding Top
|
|
42
|
-
*/
|
|
43
|
-
paddingtop: string;
|
|
44
|
-
/**
|
|
45
|
-
* @uiName Font Weight
|
|
46
|
-
*/
|
|
47
|
-
fontweight: string;
|
|
48
|
-
/**
|
|
49
|
-
* Define the bottom padding of the container with a pixel amount.
|
|
50
|
-
*
|
|
51
|
-
* @uiName Padding Bottom
|
|
52
|
-
*/
|
|
53
|
-
paddingbottom: string;
|
|
54
|
-
/**
|
|
55
|
-
* @uiName Text Alignment
|
|
56
|
-
* @uiEnum ["left", "center", "right"]
|
|
57
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
58
|
-
*/
|
|
59
|
-
textalign: string;
|
|
60
|
-
/**
|
|
61
|
-
* Fill the background with a color or image. Input color values as a HEX code and an image as a URL.
|
|
62
|
-
*
|
|
63
|
-
* @uiName Background
|
|
64
|
-
*/
|
|
65
|
-
background: string;
|
|
66
|
-
/**
|
|
67
|
-
* Define the height of the container with a pixel amount.
|
|
68
|
-
*
|
|
69
|
-
* @uiName Height
|
|
70
|
-
*/
|
|
71
|
-
height: string;
|
|
72
|
-
textEl: HTMLElement;
|
|
73
|
-
render(): any;
|
|
74
|
-
}
|
|
1
|
+
/**
|
|
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>
|
|
7
|
+
*/
|
|
8
|
+
export declare class TextComponent {
|
|
9
|
+
/**
|
|
10
|
+
* @undocumented
|
|
11
|
+
* @uiName Hide Text
|
|
12
|
+
*/
|
|
13
|
+
ishidden: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
|
|
16
|
+
*
|
|
17
|
+
* @uiName Use Markdown
|
|
18
|
+
*/
|
|
19
|
+
ismarkdown: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @uiName Text
|
|
22
|
+
* @uiWidget textArea
|
|
23
|
+
*/
|
|
24
|
+
text: string;
|
|
25
|
+
/**
|
|
26
|
+
* @uiName Font Family
|
|
27
|
+
*/
|
|
28
|
+
fontfamily: string;
|
|
29
|
+
/**
|
|
30
|
+
* @uiName Text Color
|
|
31
|
+
* @uiWidget color
|
|
32
|
+
*/
|
|
33
|
+
color: string;
|
|
34
|
+
/**
|
|
35
|
+
* @uiName Font Size
|
|
36
|
+
*/
|
|
37
|
+
fontsize: string;
|
|
38
|
+
/**
|
|
39
|
+
* Define the top padding of the container with a pixel amount.
|
|
40
|
+
*
|
|
41
|
+
* @uiName Padding Top
|
|
42
|
+
*/
|
|
43
|
+
paddingtop: string;
|
|
44
|
+
/**
|
|
45
|
+
* @uiName Font Weight
|
|
46
|
+
*/
|
|
47
|
+
fontweight: string;
|
|
48
|
+
/**
|
|
49
|
+
* Define the bottom padding of the container with a pixel amount.
|
|
50
|
+
*
|
|
51
|
+
* @uiName Padding Bottom
|
|
52
|
+
*/
|
|
53
|
+
paddingbottom: string;
|
|
54
|
+
/**
|
|
55
|
+
* @uiName Text Alignment
|
|
56
|
+
* @uiEnum ["left", "center", "right"]
|
|
57
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
58
|
+
*/
|
|
59
|
+
textalign: string;
|
|
60
|
+
/**
|
|
61
|
+
* Fill the background with a color or image. Input color values as a HEX code and an image as a URL.
|
|
62
|
+
*
|
|
63
|
+
* @uiName Background
|
|
64
|
+
*/
|
|
65
|
+
background: string;
|
|
66
|
+
/**
|
|
67
|
+
* Define the height of the container with a pixel amount.
|
|
68
|
+
*
|
|
69
|
+
* @uiName Height
|
|
70
|
+
*/
|
|
71
|
+
height: string;
|
|
72
|
+
textEl: HTMLElement;
|
|
73
|
+
render(): any;
|
|
74
|
+
}
|
|
@@ -999,8 +999,8 @@ export namespace Components {
|
|
|
999
999
|
* Show and hide button depending on what type of device the user is on
|
|
1000
1000
|
* @uiName WhatsApp Display Rule
|
|
1001
1001
|
* @uiGroup WhatsApp
|
|
1002
|
-
* @uiEnum ["mobile-only","hidden"]
|
|
1003
|
-
* @uiEnumNames ["Mobile Only","Hide"]
|
|
1002
|
+
* @uiEnum ["mobile-and-desktop","mobile-only","desktop-only","hidden"]
|
|
1003
|
+
* @uiEnumNames ["Mobile and Desktop","Mobile Only","Desktop Only","Hide"]
|
|
1004
1004
|
* @default mobile-only
|
|
1005
1005
|
*/
|
|
1006
1006
|
"whatsappdisplayrule": string;
|
|
@@ -2255,8 +2255,8 @@ declare namespace LocalJSX {
|
|
|
2255
2255
|
* Show and hide button depending on what type of device the user is on
|
|
2256
2256
|
* @uiName WhatsApp Display Rule
|
|
2257
2257
|
* @uiGroup WhatsApp
|
|
2258
|
-
* @uiEnum ["mobile-only","hidden"]
|
|
2259
|
-
* @uiEnumNames ["Mobile Only","Hide"]
|
|
2258
|
+
* @uiEnum ["mobile-and-desktop","mobile-only","desktop-only","hidden"]
|
|
2259
|
+
* @uiEnumNames ["Mobile and Desktop","Mobile Only","Desktop Only","Hide"]
|
|
2260
2260
|
* @default mobile-only
|
|
2261
2261
|
*/
|
|
2262
2262
|
"whatsappdisplayrule"?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "@formatjs/intl-relativetimeformat/polyfill";
|
|
2
|
-
import "@formatjs/intl-relativetimeformat/dist/locale-data/en";
|
|
3
|
-
import "@formatjs/intl-pluralrules/polyfill";
|
|
4
|
-
import "@formatjs/intl-pluralrules/dist/locale-data/en";
|
|
1
|
+
import "@formatjs/intl-relativetimeformat/polyfill";
|
|
2
|
+
import "@formatjs/intl-relativetimeformat/dist/locale-data/en";
|
|
3
|
+
import "@formatjs/intl-pluralrules/polyfill";
|
|
4
|
+
import "@formatjs/intl-pluralrules/dist/locale-data/en";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const FormatJS: {
|
|
2
|
-
format(msg: string, values: {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}, userLocale: string): string;
|
|
5
|
-
formatRelative(value: string | number, userLocale: string): string;
|
|
6
|
-
};
|
|
7
|
-
export default FormatJS;
|
|
1
|
+
declare const FormatJS: {
|
|
2
|
+
format(msg: string, values: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}, userLocale: string): string;
|
|
5
|
+
formatRelative(value: string | number, userLocale: string): string;
|
|
6
|
+
};
|
|
7
|
+
export default FormatJS;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { ApolloClient } from "apollo-client";
|
|
2
|
-
export interface WidgetIdent {
|
|
3
|
-
tenantAlias: string;
|
|
4
|
-
appDomain: string;
|
|
5
|
-
token: string;
|
|
6
|
-
userId: string;
|
|
7
|
-
accountId: string;
|
|
8
|
-
engagementMedium: "POPUP" | "EMBED" | string;
|
|
9
|
-
programId: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Links up to Squatch.js running in the parent frame, and exposes an API for trigger things outside of the scope of a single widget.
|
|
13
|
-
*/
|
|
14
|
-
export interface SquatchJSApi {
|
|
15
|
-
open(): any;
|
|
16
|
-
close(): any;
|
|
17
|
-
}
|
|
18
|
-
export declare function widgetIdent(): WidgetIdent;
|
|
19
|
-
declare const API: {
|
|
20
|
-
version: string;
|
|
21
|
-
analytics: {
|
|
22
|
-
shareEvent(shareMedium: string): Promise<any>;
|
|
23
|
-
loadEvent(): Promise<{
|
|
24
|
-
event: string;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
graphql: {
|
|
28
|
-
getClient(): ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
|
|
29
|
-
getUserFragment(userFragment: any, fragmentVariables: any): any;
|
|
30
|
-
getShareLink(): any;
|
|
31
|
-
getReferrals(showReferrer: boolean, offset?: number, limit?: number): any;
|
|
32
|
-
getStats(): any;
|
|
33
|
-
getReferralCode(): Promise<string>;
|
|
34
|
-
getFueltankCode(rewardKey: any): Promise<SimpleObject>;
|
|
35
|
-
getMessageLinks(mediums: Array<string>): any;
|
|
36
|
-
};
|
|
37
|
-
ui: any;
|
|
38
|
-
};
|
|
39
|
-
export { API };
|
|
40
|
-
/**
|
|
41
|
-
* Key-value simple object
|
|
42
|
-
*/
|
|
43
|
-
export interface SimpleObject {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}
|
|
1
|
+
import { ApolloClient } from "apollo-client";
|
|
2
|
+
export interface WidgetIdent {
|
|
3
|
+
tenantAlias: string;
|
|
4
|
+
appDomain: string;
|
|
5
|
+
token: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
engagementMedium: "POPUP" | "EMBED" | string;
|
|
9
|
+
programId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Links up to Squatch.js running in the parent frame, and exposes an API for trigger things outside of the scope of a single widget.
|
|
13
|
+
*/
|
|
14
|
+
export interface SquatchJSApi {
|
|
15
|
+
open(): any;
|
|
16
|
+
close(): any;
|
|
17
|
+
}
|
|
18
|
+
export declare function widgetIdent(): WidgetIdent;
|
|
19
|
+
declare const API: {
|
|
20
|
+
version: string;
|
|
21
|
+
analytics: {
|
|
22
|
+
shareEvent(shareMedium: string): Promise<any>;
|
|
23
|
+
loadEvent(): Promise<{
|
|
24
|
+
event: string;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
graphql: {
|
|
28
|
+
getClient(): ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
|
|
29
|
+
getUserFragment(userFragment: any, fragmentVariables: any): any;
|
|
30
|
+
getShareLink(): any;
|
|
31
|
+
getReferrals(showReferrer: boolean, offset?: number, limit?: number): any;
|
|
32
|
+
getStats(): any;
|
|
33
|
+
getReferralCode(): Promise<string>;
|
|
34
|
+
getFueltankCode(rewardKey: any): Promise<SimpleObject>;
|
|
35
|
+
getMessageLinks(mediums: Array<string>): any;
|
|
36
|
+
};
|
|
37
|
+
ui: any;
|
|
38
|
+
};
|
|
39
|
+
export { API };
|
|
40
|
+
/**
|
|
41
|
+
* Key-value simple object
|
|
42
|
+
*/
|
|
43
|
+
export interface SimpleObject {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const shadeColor: (color: any, percent: any) => string;
|
|
2
|
-
declare const addClass: (el: any, className: any) => void;
|
|
3
|
-
declare const removeClass: (el: any, className: any) => void;
|
|
4
|
-
declare const detectMobileSafari: () => boolean;
|
|
5
|
-
declare const detectMobileChrome: () => RegExpMatchArray;
|
|
6
|
-
declare const uuid: (a?: any) => any;
|
|
7
|
-
export { shadeColor, addClass, removeClass, detectMobileSafari, detectMobileChrome, uuid, };
|
|
1
|
+
declare const shadeColor: (color: any, percent: any) => string;
|
|
2
|
+
declare const addClass: (el: any, className: any) => void;
|
|
3
|
+
declare const removeClass: (el: any, className: any) => void;
|
|
4
|
+
declare const detectMobileSafari: () => boolean;
|
|
5
|
+
declare const detectMobileChrome: () => RegExpMatchArray;
|
|
6
|
+
declare const uuid: (a?: any) => any;
|
|
7
|
+
export { shadeColor, addClass, removeClass, detectMobileSafari, detectMobileChrome, uuid, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as
|
|
1
|
+
import{r as s,h as e,g as t}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as o,w as a}from"./p-ffeb02d1.js";const r=class{constructor(e){s(this,e),this.text="Close"}handleClick(){o.ui.close()}componentDidLoad(){const s=a();s&&"POPUP"!=s.engagementMedium&&this.closeButton.setAttribute("style","display:none")}render(){return e("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)}get closeButton(){return t(this)}};r.style="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}";export{r as sqh_close_button}
|