@saasquatch/mint-components 1.10.1 → 1.10.2-11
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-721bb748.js → ShadowViewAddon-f46aba53.js} +14 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +67 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +94 -6
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +2 -1
- package/dist/collection/components/sqm-image/sqm-image.js +20 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +87 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +15 -9
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +93 -3
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -2
- package/dist/esm/{ShadowViewAddon-31eb5b16.js → ShadowViewAddon-5895edd5.js} +14 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_38.entry.js +67 -5
- package/dist/esm/sqm-stencilbook.entry.js +94 -6
- package/dist/esm-es5/ShadowViewAddon-5895edd5.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-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-d6474614.js → p-1cc0f6ce.js} +1 -1
- package/dist/mint-components/p-60b76175.system.js +1 -0
- package/dist/mint-components/p-7b1b45e9.entry.js +223 -0
- package/dist/mint-components/p-c12e0887.system.entry.js +1 -0
- package/dist/mint-components/{p-bf723ae9.entry.js → p-c8af8c3b.entry.js} +2 -2
- package/dist/mint-components/p-ed17e637.system.js +1 -1
- package/dist/mint-components/p-fc352a1b.system.entry.js +1 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +19 -1
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +3 -0
- package/dist/types/components.d.ts +42 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/ShadowViewAddon-31eb5b16.js +0 -1
- package/dist/mint-components/p-0d39c815.system.entry.js +0 -1
- package/dist/mint-components/p-27bd5535.entry.js +0 -187
- package/dist/mint-components/p-b567780d.system.js +0 -1
- package/dist/mint-components/p-f1a1e7f3.system.entry.js +0 -1
|
@@ -8,6 +8,7 @@ import { LeaderboardViewProps } from "./sqm-leaderboard-view";
|
|
|
8
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
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
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;">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>
|
|
11
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>
|
|
12
13
|
*/
|
|
13
14
|
export declare class Leaderboard {
|
|
@@ -35,6 +36,16 @@ export declare class Leaderboard {
|
|
|
35
36
|
* @uiName Show leaderboard rank
|
|
36
37
|
*/
|
|
37
38
|
showRank: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
41
|
+
*
|
|
42
|
+
* @uiName Width
|
|
43
|
+
*/
|
|
44
|
+
width: string;
|
|
45
|
+
/**
|
|
46
|
+
* @uiName Rank Suffix
|
|
47
|
+
*/
|
|
48
|
+
rankSuffix: string;
|
|
38
49
|
/**
|
|
39
50
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
40
51
|
*
|
|
@@ -42,10 +53,17 @@ export declare class Leaderboard {
|
|
|
42
53
|
* @default
|
|
43
54
|
*/
|
|
44
55
|
hideViewer: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Hide the Names of users to protect personal identifiable information
|
|
58
|
+
*
|
|
59
|
+
* @uiName Hide users names
|
|
60
|
+
* @default
|
|
61
|
+
*/
|
|
62
|
+
hideNames: boolean;
|
|
45
63
|
/**
|
|
46
64
|
* Hides the leaderboard if user is on Essentials plan
|
|
47
65
|
*
|
|
48
|
-
* @uiName Hide
|
|
66
|
+
* @uiName Hide leaderboard for essentials user
|
|
49
67
|
* @default
|
|
50
68
|
*/
|
|
51
69
|
isEssentials?: boolean;
|
|
@@ -7,6 +7,9 @@ export interface LeaderboardProps {
|
|
|
7
7
|
anonymousUser?: string;
|
|
8
8
|
showRank?: boolean;
|
|
9
9
|
hideViewer?: boolean;
|
|
10
|
+
hideNames?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
rankSuffix?: string;
|
|
10
13
|
rankType: "rowNumber" | "rank" | "denseRank";
|
|
11
14
|
leaderboardType: "topStartedReferrers" | "topConvertedReferrers" | "topPointEarners";
|
|
12
15
|
maxRows: number;
|
|
@@ -932,6 +932,11 @@ export namespace Components {
|
|
|
932
932
|
* @uiName Minimum height
|
|
933
933
|
*/
|
|
934
934
|
"minHeight"?: string;
|
|
935
|
+
/**
|
|
936
|
+
* (Optional) Constrains the width of the image. Can be a pixel value or a percentage i.e. "500px", "33%", etc.
|
|
937
|
+
* @uiName Width
|
|
938
|
+
*/
|
|
939
|
+
"width"?: string;
|
|
935
940
|
}
|
|
936
941
|
interface SqmIndirectTaxForm {
|
|
937
942
|
/**
|
|
@@ -1317,6 +1322,12 @@ export namespace Components {
|
|
|
1317
1322
|
* @uiType object
|
|
1318
1323
|
*/
|
|
1319
1324
|
"demoData"?: DemoData<LeaderboardViewProps>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Hide the Names of users to protect personal identifiable information
|
|
1327
|
+
* @uiName Hide users names
|
|
1328
|
+
* @default
|
|
1329
|
+
*/
|
|
1330
|
+
"hideNames": boolean;
|
|
1320
1331
|
/**
|
|
1321
1332
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
1322
1333
|
* @uiName Hide viewing user
|
|
@@ -1331,7 +1342,7 @@ export namespace Components {
|
|
|
1331
1342
|
"interval": string;
|
|
1332
1343
|
/**
|
|
1333
1344
|
* Hides the leaderboard if user is on Essentials plan
|
|
1334
|
-
* @uiName Hide
|
|
1345
|
+
* @uiName Hide leaderboard for essentials user
|
|
1335
1346
|
* @default
|
|
1336
1347
|
*/
|
|
1337
1348
|
"isEssentials"?: boolean;
|
|
@@ -1356,6 +1367,10 @@ export namespace Components {
|
|
|
1356
1367
|
* @uiWidget programSelector
|
|
1357
1368
|
*/
|
|
1358
1369
|
"programId"?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* @uiName Rank Suffix
|
|
1372
|
+
*/
|
|
1373
|
+
"rankSuffix": string;
|
|
1359
1374
|
/**
|
|
1360
1375
|
* @uiName Rank type
|
|
1361
1376
|
* @uiType string
|
|
@@ -1379,6 +1394,11 @@ export namespace Components {
|
|
|
1379
1394
|
* @uiName User column heading
|
|
1380
1395
|
*/
|
|
1381
1396
|
"usersheading": string;
|
|
1397
|
+
/**
|
|
1398
|
+
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
1399
|
+
* @uiName Width
|
|
1400
|
+
*/
|
|
1401
|
+
"width": string;
|
|
1382
1402
|
}
|
|
1383
1403
|
interface SqmLeaderboardRank {
|
|
1384
1404
|
/**
|
|
@@ -6742,6 +6762,11 @@ declare namespace LocalJSX {
|
|
|
6742
6762
|
* @uiName Minimum height
|
|
6743
6763
|
*/
|
|
6744
6764
|
"minHeight"?: string;
|
|
6765
|
+
/**
|
|
6766
|
+
* (Optional) Constrains the width of the image. Can be a pixel value or a percentage i.e. "500px", "33%", etc.
|
|
6767
|
+
* @uiName Width
|
|
6768
|
+
*/
|
|
6769
|
+
"width"?: string;
|
|
6745
6770
|
}
|
|
6746
6771
|
interface SqmIndirectTaxForm {
|
|
6747
6772
|
/**
|
|
@@ -7121,6 +7146,12 @@ declare namespace LocalJSX {
|
|
|
7121
7146
|
* @uiType object
|
|
7122
7147
|
*/
|
|
7123
7148
|
"demoData"?: DemoData<LeaderboardViewProps>;
|
|
7149
|
+
/**
|
|
7150
|
+
* Hide the Names of users to protect personal identifiable information
|
|
7151
|
+
* @uiName Hide users names
|
|
7152
|
+
* @default
|
|
7153
|
+
*/
|
|
7154
|
+
"hideNames"?: boolean;
|
|
7124
7155
|
/**
|
|
7125
7156
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
7126
7157
|
* @uiName Hide viewing user
|
|
@@ -7135,7 +7166,7 @@ declare namespace LocalJSX {
|
|
|
7135
7166
|
"interval"?: string;
|
|
7136
7167
|
/**
|
|
7137
7168
|
* Hides the leaderboard if user is on Essentials plan
|
|
7138
|
-
* @uiName Hide
|
|
7169
|
+
* @uiName Hide leaderboard for essentials user
|
|
7139
7170
|
* @default
|
|
7140
7171
|
*/
|
|
7141
7172
|
"isEssentials"?: boolean;
|
|
@@ -7160,6 +7191,10 @@ declare namespace LocalJSX {
|
|
|
7160
7191
|
* @uiWidget programSelector
|
|
7161
7192
|
*/
|
|
7162
7193
|
"programId"?: string;
|
|
7194
|
+
/**
|
|
7195
|
+
* @uiName Rank Suffix
|
|
7196
|
+
*/
|
|
7197
|
+
"rankSuffix"?: string;
|
|
7163
7198
|
/**
|
|
7164
7199
|
* @uiName Rank type
|
|
7165
7200
|
* @uiType string
|
|
@@ -7183,6 +7218,11 @@ declare namespace LocalJSX {
|
|
|
7183
7218
|
* @uiName User column heading
|
|
7184
7219
|
*/
|
|
7185
7220
|
"usersheading"?: string;
|
|
7221
|
+
/**
|
|
7222
|
+
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
7223
|
+
* @uiName Width
|
|
7224
|
+
*/
|
|
7225
|
+
"width"?: string;
|
|
7186
7226
|
}
|
|
7187
7227
|
interface SqmLeaderboardRank {
|
|
7188
7228
|
/**
|
package/docs/docs.docx
CHANGED
|
Binary file
|