@saasquatch/mint-components 1.10.2-13 → 1.10.2-15
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/{ShadowViewAddon-1ddbaac2.js → ShadowViewAddon-69abeb69.js} +44 -25
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +2 -1
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +7 -13
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +31 -8
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +29 -7
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +45 -25
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +34 -22
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -1
- package/dist/esm/{ShadowViewAddon-881de075.js → ShadowViewAddon-411b809c.js} +44 -25
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +2 -1
- package/dist/esm/sqm-big-stat_38.entry.js +7 -13
- package/dist/esm/sqm-stencilbook.entry.js +31 -8
- package/dist/esm-es5/ShadowViewAddon-411b809c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-773bfa43.entry.js → p-31e810e9.entry.js} +5 -5
- package/dist/mint-components/{p-8fa71d87.entry.js → p-3204146b.entry.js} +1 -1
- package/dist/mint-components/p-5869aad3.system.entry.js +1 -0
- package/dist/mint-components/p-5de21018.system.entry.js +1 -0
- package/dist/mint-components/p-9f9bdf15.system.js +1 -0
- package/dist/mint-components/{p-410d0544.entry.js → p-aed8afd9.entry.js} +12 -12
- package/dist/mint-components/{p-6af4e1bf.js → p-c7f27fa5.js} +20 -20
- package/dist/mint-components/p-ed17e637.system.js +1 -1
- package/dist/mint-components/p-f3433652.system.entry.js +1 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +3 -3
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +10 -4
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -1
- package/dist/types/components.d.ts +10 -0
- package/docs/docs.docx +0 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/ShadowViewAddon-881de075.js +0 -1
- package/dist/mint-components/p-23094362.system.js +0 -1
- package/dist/mint-components/p-2f5e7c77.system.entry.js +0 -1
- package/dist/mint-components/p-b5f0bb21.system.entry.js +0 -1
- package/dist/mint-components/p-c1c7f583.system.entry.js +0 -1
|
@@ -16,6 +16,7 @@ export declare const PointsLeaderboard: () => any;
|
|
|
16
16
|
export declare const TenWithRank: () => any;
|
|
17
17
|
export declare const ViewerOutside: () => any;
|
|
18
18
|
export declare const ViewerAnonymous: () => any;
|
|
19
|
+
export declare const HideNamesWithViewerOutside: () => any;
|
|
19
20
|
export declare const HideViewer: () => any;
|
|
20
21
|
export declare const HideNames: () => any;
|
|
21
22
|
export declare const LeaderboardWithNoNamesAndGraphic: () => any;
|
|
@@ -10,6 +10,7 @@ export interface LeaderboardViewProps {
|
|
|
10
10
|
rankheading?: string;
|
|
11
11
|
showRank?: boolean;
|
|
12
12
|
hideViewer?: boolean;
|
|
13
|
+
viewingUserText?: string;
|
|
13
14
|
hideNames?: boolean;
|
|
14
15
|
anonymousUser?: string;
|
|
15
16
|
rankSuffix?: string;
|
|
@@ -28,15 +29,14 @@ export interface LeaderboardViewProps {
|
|
|
28
29
|
viewerRank?: {
|
|
29
30
|
textValue: string;
|
|
30
31
|
rank: number;
|
|
31
|
-
firstName
|
|
32
|
-
lastInitial
|
|
32
|
+
firstName?: string;
|
|
33
|
+
lastInitial?: string;
|
|
33
34
|
rowNumber: number;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
elements: {
|
|
37
38
|
empty: VNode;
|
|
38
39
|
essentials: VNode;
|
|
39
|
-
loadingstate: VNode;
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export declare function LeaderboardView(props: LeaderboardViewProps): any;
|
|
@@ -5,10 +5,10 @@ import { LeaderboardViewProps } from "./sqm-leaderboard-view";
|
|
|
5
5
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
6
6
|
* @requiredFeatures ["LEADERBOARDS"]
|
|
7
7
|
* @exampleGroup Leaderboard
|
|
8
|
-
* @example Referral Started Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
9
|
-
* @example Referral Converted Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rank-type="rank" leaderboard-type="topConvertedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
10
|
-
* @example Points Earned Leaderboard - <sqm-leaderboard usersheading="Name" statsheading="Points" rank-type="rank" leaderboard-type="topPointEarners" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
11
|
-
* @example Anonymous Leaderboard - <div style="display: flex; align-items: flex-start; justify-content: center; width: 100%; gap: 50px;"><div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 30%;"><sqm-image width="70%" alignment="center" image-url="https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"></sqm-image><h2 style="margin: auto;">Top Performers</h2><p style="margin: 0; text-align: center;">The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!</p></div><sqm-leaderboard width="300px" usersheading="Referrer" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true" hide-names="true" hide-viewer="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard"></sqm-empty></sqm-leaderboard></div>
|
|
8
|
+
* @example Referral Started Leaderboard - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
9
|
+
* @example Referral Converted Leaderboard - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topConvertedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
10
|
+
* @example Points Earned Leaderboard - <sqm-leaderboard usersheading="Name" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Points" rank-type="rank" leaderboard-type="topPointEarners" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
11
|
+
* @example Anonymous Leaderboard - <div style="display: flex; align-items: flex-start; justify-content: center; width: 100%; gap: 50px;"><div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 30%;"><sqm-image width="70%" alignment="center" image-url="https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"></sqm-image><h2 style="margin: auto;">Top Performers</h2><p style="margin: 0; text-align: center;">The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!</p></div><sqm-leaderboard width="300px" usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true" hide-names="true" hide-viewer="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard"></sqm-empty></sqm-leaderboard></div>
|
|
12
12
|
* @featureTooltip <div>Motivate your participants by gamifying your program. Contact <a href="mailto:saasquatch-support%40impact.com?subject=Next steps for Leaderboards feature&body=Hi Support Team, %0D%0A%0D%0A I am interested in learning more about how Leaderboards can support the growth of our referral program. Please connect me with a program strategy manager to discuss this feature further, and determine the next steps.%0D%0A%0D%0A%0D%0AThank you,%0D%0A[Add your name here]">Support</a> to upgrade your plan and add a leaderboard.</div>
|
|
13
13
|
*/
|
|
14
14
|
export declare class Leaderboard {
|
|
@@ -43,6 +43,8 @@ export declare class Leaderboard {
|
|
|
43
43
|
*/
|
|
44
44
|
width: string;
|
|
45
45
|
/**
|
|
46
|
+
* A JSONata string that formats the rank with the appropriate ordinal suffix (e.g., "st" for 1st, "nd" for 2nd, "rd" for 3rd, and "th" for all others).
|
|
47
|
+
*
|
|
46
48
|
* @uiName Rank Suffix
|
|
47
49
|
*/
|
|
48
50
|
rankSuffix: string;
|
|
@@ -53,6 +55,10 @@ export declare class Leaderboard {
|
|
|
53
55
|
* @default
|
|
54
56
|
*/
|
|
55
57
|
hideViewer: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @uiName Viewing user text
|
|
60
|
+
*/
|
|
61
|
+
viewingUserText: string;
|
|
56
62
|
/**
|
|
57
63
|
* Hide the Names of users to protect personal identifiable information
|
|
58
64
|
*
|
|
@@ -7,6 +7,7 @@ export interface LeaderboardProps {
|
|
|
7
7
|
anonymousUser?: string;
|
|
8
8
|
showRank?: boolean;
|
|
9
9
|
hideViewer?: boolean;
|
|
10
|
+
viewingUserText?: string;
|
|
10
11
|
hideNames?: boolean;
|
|
11
12
|
width?: string;
|
|
12
13
|
rankSuffix?: string;
|
|
@@ -17,7 +18,6 @@ export interface LeaderboardProps {
|
|
|
17
18
|
interval: string;
|
|
18
19
|
empty: VNode;
|
|
19
20
|
essentials: VNode;
|
|
20
|
-
loadingstate: VNode;
|
|
21
21
|
demoProps?: LeaderboardViewProps;
|
|
22
22
|
}
|
|
23
23
|
export declare type Rank = {
|
|
@@ -1368,6 +1368,7 @@ export namespace Components {
|
|
|
1368
1368
|
*/
|
|
1369
1369
|
"programId"?: string;
|
|
1370
1370
|
/**
|
|
1371
|
+
* A JSONata string that formats the rank with the appropriate ordinal suffix (e.g., "st" for 1st, "nd" for 2nd, "rd" for 3rd, and "th" for all others).
|
|
1371
1372
|
* @uiName Rank Suffix
|
|
1372
1373
|
*/
|
|
1373
1374
|
"rankSuffix": string;
|
|
@@ -1394,6 +1395,10 @@ export namespace Components {
|
|
|
1394
1395
|
* @uiName User column heading
|
|
1395
1396
|
*/
|
|
1396
1397
|
"usersheading": string;
|
|
1398
|
+
/**
|
|
1399
|
+
* @uiName Viewing user text
|
|
1400
|
+
*/
|
|
1401
|
+
"viewingUserText": string;
|
|
1397
1402
|
/**
|
|
1398
1403
|
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
1399
1404
|
* @uiName Width
|
|
@@ -7199,6 +7204,7 @@ declare namespace LocalJSX {
|
|
|
7199
7204
|
*/
|
|
7200
7205
|
"programId"?: string;
|
|
7201
7206
|
/**
|
|
7207
|
+
* A JSONata string that formats the rank with the appropriate ordinal suffix (e.g., "st" for 1st, "nd" for 2nd, "rd" for 3rd, and "th" for all others).
|
|
7202
7208
|
* @uiName Rank Suffix
|
|
7203
7209
|
*/
|
|
7204
7210
|
"rankSuffix"?: string;
|
|
@@ -7225,6 +7231,10 @@ declare namespace LocalJSX {
|
|
|
7225
7231
|
* @uiName User column heading
|
|
7226
7232
|
*/
|
|
7227
7233
|
"usersheading"?: string;
|
|
7234
|
+
/**
|
|
7235
|
+
* @uiName Viewing user text
|
|
7236
|
+
*/
|
|
7237
|
+
"viewingUserText"?: string;
|
|
7228
7238
|
/**
|
|
7229
7239
|
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
7230
7240
|
* @uiName Width
|
package/docs/docs.docx
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|