@saasquatch/mint-components 1.10.1-1 → 1.10.2-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/{ShadowViewAddon-721bb748.js → ShadowViewAddon-3e537eb3.js} +25 -18
- 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 +65 -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 +26 -18
- 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-2ac771ca.js} +25 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_38.entry.js +65 -5
- package/dist/esm/sqm-stencilbook.entry.js +94 -6
- package/dist/esm-es5/ShadowViewAddon-2ac771ca.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-0e507dfe.system.entry.js +1 -0
- package/dist/mint-components/p-4348de13.system.js +1 -0
- package/dist/mint-components/{p-bf723ae9.entry.js → p-560f7316.entry.js} +2 -2
- package/dist/mint-components/p-5a1b4b5d.entry.js +223 -0
- package/dist/mint-components/{p-d6474614.js → p-a7949e42.js} +1 -1
- package/dist/mint-components/p-e82b056c.system.entry.js +1 -0
- package/dist/mint-components/p-ed17e637.system.js +1 -1
- 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 +40 -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
|
@@ -4,10 +4,13 @@ import { LeaderboardViewProps } from "./sqm-leaderboard-view";
|
|
|
4
4
|
* @uiName Leaderboard
|
|
5
5
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
6
6
|
* @requiredFeatures ["LEADERBOARDS"]
|
|
7
|
+
* @validParents ["div"]
|
|
7
8
|
* @exampleGroup Leaderboard
|
|
8
9
|
* @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
10
|
* @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
11
|
* @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>
|
|
12
|
+
* @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" imageUrl="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>
|
|
13
|
+
* @example Test - <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
14
|
* @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
15
|
*/
|
|
13
16
|
export declare class Leaderboard {
|
|
@@ -35,6 +38,14 @@ export declare class Leaderboard {
|
|
|
35
38
|
* @uiName Show leaderboard rank
|
|
36
39
|
*/
|
|
37
40
|
showRank: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @uiName Place text
|
|
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,10 @@ export namespace Components {
|
|
|
1379
1394
|
* @uiName User column heading
|
|
1380
1395
|
*/
|
|
1381
1396
|
"usersheading": string;
|
|
1397
|
+
/**
|
|
1398
|
+
* @uiName Place text
|
|
1399
|
+
*/
|
|
1400
|
+
"width": string;
|
|
1382
1401
|
}
|
|
1383
1402
|
interface SqmLeaderboardRank {
|
|
1384
1403
|
/**
|
|
@@ -6742,6 +6761,11 @@ declare namespace LocalJSX {
|
|
|
6742
6761
|
* @uiName Minimum height
|
|
6743
6762
|
*/
|
|
6744
6763
|
"minHeight"?: string;
|
|
6764
|
+
/**
|
|
6765
|
+
* (Optional) Constrains the width of the image. Can be a pixel value or a percentage i.e. "500px", "33%", etc.
|
|
6766
|
+
* @uiName Width
|
|
6767
|
+
*/
|
|
6768
|
+
"width"?: string;
|
|
6745
6769
|
}
|
|
6746
6770
|
interface SqmIndirectTaxForm {
|
|
6747
6771
|
/**
|
|
@@ -7121,6 +7145,12 @@ declare namespace LocalJSX {
|
|
|
7121
7145
|
* @uiType object
|
|
7122
7146
|
*/
|
|
7123
7147
|
"demoData"?: DemoData<LeaderboardViewProps>;
|
|
7148
|
+
/**
|
|
7149
|
+
* Hide the Names of users to protect personal identifiable information
|
|
7150
|
+
* @uiName Hide users names
|
|
7151
|
+
* @default
|
|
7152
|
+
*/
|
|
7153
|
+
"hideNames"?: boolean;
|
|
7124
7154
|
/**
|
|
7125
7155
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
7126
7156
|
* @uiName Hide viewing user
|
|
@@ -7135,7 +7165,7 @@ declare namespace LocalJSX {
|
|
|
7135
7165
|
"interval"?: string;
|
|
7136
7166
|
/**
|
|
7137
7167
|
* Hides the leaderboard if user is on Essentials plan
|
|
7138
|
-
* @uiName Hide
|
|
7168
|
+
* @uiName Hide leaderboard for essentials user
|
|
7139
7169
|
* @default
|
|
7140
7170
|
*/
|
|
7141
7171
|
"isEssentials"?: boolean;
|
|
@@ -7160,6 +7190,10 @@ declare namespace LocalJSX {
|
|
|
7160
7190
|
* @uiWidget programSelector
|
|
7161
7191
|
*/
|
|
7162
7192
|
"programId"?: string;
|
|
7193
|
+
/**
|
|
7194
|
+
* @uiName Rank Suffix
|
|
7195
|
+
*/
|
|
7196
|
+
"rankSuffix"?: string;
|
|
7163
7197
|
/**
|
|
7164
7198
|
* @uiName Rank type
|
|
7165
7199
|
* @uiType string
|
|
@@ -7183,6 +7217,10 @@ declare namespace LocalJSX {
|
|
|
7183
7217
|
* @uiName User column heading
|
|
7184
7218
|
*/
|
|
7185
7219
|
"usersheading"?: string;
|
|
7220
|
+
/**
|
|
7221
|
+
* @uiName Place text
|
|
7222
|
+
*/
|
|
7223
|
+
"width"?: string;
|
|
7186
7224
|
}
|
|
7187
7225
|
interface SqmLeaderboardRank {
|
|
7188
7226
|
/**
|
package/docs/docs.docx
CHANGED
|
Binary file
|