@saasquatch/mint-components 1.10.2-7 → 1.10.2-8
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-bfb7992d.js → ShadowViewAddon-3e537eb3.js} +14 -12
- 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 +7 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +29 -5
- 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 +25 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +14 -12
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +10 -7
- package/dist/esm/{ShadowViewAddon-e0a3df6c.js → ShadowViewAddon-2ac771ca.js} +14 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_38.entry.js +7 -5
- package/dist/esm/sqm-stencilbook.entry.js +29 -5
- 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-7a89f528.entry.js → p-560f7316.entry.js} +1 -1
- package/dist/mint-components/{p-b2507e82.entry.js → p-5a1b4b5d.entry.js} +9 -9
- package/dist/mint-components/{p-a15e3807.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 +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +4 -2
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -1
- package/dist/types/components.d.ts +18 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-e0a3df6c.js +0 -1
- package/dist/mint-components/p-471f5d95.system.entry.js +0 -1
- package/dist/mint-components/p-aedddb29.system.entry.js +0 -1
- package/dist/mint-components/p-ed650f66.system.js +0 -1
|
@@ -4,11 +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>
|
|
11
|
-
* @example Anonymous 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>
|
|
12
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>
|
|
13
15
|
*/
|
|
14
16
|
export declare class Leaderboard {
|
|
@@ -39,7 +41,7 @@ export declare class Leaderboard {
|
|
|
39
41
|
/**
|
|
40
42
|
* @uiName Place text
|
|
41
43
|
*/
|
|
42
|
-
|
|
44
|
+
width: string;
|
|
43
45
|
/**
|
|
44
46
|
* @uiName Rank Suffix
|
|
45
47
|
*/
|
|
@@ -8,7 +8,8 @@ export interface LeaderboardProps {
|
|
|
8
8
|
showRank?: boolean;
|
|
9
9
|
hideViewer?: boolean;
|
|
10
10
|
hideNames?: boolean;
|
|
11
|
-
|
|
11
|
+
width?: string;
|
|
12
|
+
rankSuffix?: string;
|
|
12
13
|
rankType: "rowNumber" | "rank" | "denseRank";
|
|
13
14
|
leaderboardType: "topStartedReferrers" | "topConvertedReferrers" | "topPointEarners";
|
|
14
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
|
/**
|
|
@@ -1356,10 +1361,6 @@ export namespace Components {
|
|
|
1356
1361
|
* @uiName Maximum rows number
|
|
1357
1362
|
*/
|
|
1358
1363
|
"maxRows": number;
|
|
1359
|
-
/**
|
|
1360
|
-
* @uiName Place text
|
|
1361
|
-
*/
|
|
1362
|
-
"maxWidth": string;
|
|
1363
1364
|
/**
|
|
1364
1365
|
* Filters leaderboard to show only data from this program. Defaults to the program context where this leaderboard is. If no program ID is set or provided by context, then a global leaderboard is shown.
|
|
1365
1366
|
* @uiName Program
|
|
@@ -1393,6 +1394,10 @@ export namespace Components {
|
|
|
1393
1394
|
* @uiName User column heading
|
|
1394
1395
|
*/
|
|
1395
1396
|
"usersheading": string;
|
|
1397
|
+
/**
|
|
1398
|
+
* @uiName Place text
|
|
1399
|
+
*/
|
|
1400
|
+
"width": string;
|
|
1396
1401
|
}
|
|
1397
1402
|
interface SqmLeaderboardRank {
|
|
1398
1403
|
/**
|
|
@@ -6756,6 +6761,11 @@ declare namespace LocalJSX {
|
|
|
6756
6761
|
* @uiName Minimum height
|
|
6757
6762
|
*/
|
|
6758
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;
|
|
6759
6769
|
}
|
|
6760
6770
|
interface SqmIndirectTaxForm {
|
|
6761
6771
|
/**
|
|
@@ -7174,10 +7184,6 @@ declare namespace LocalJSX {
|
|
|
7174
7184
|
* @uiName Maximum rows number
|
|
7175
7185
|
*/
|
|
7176
7186
|
"maxRows"?: number;
|
|
7177
|
-
/**
|
|
7178
|
-
* @uiName Place text
|
|
7179
|
-
*/
|
|
7180
|
-
"maxWidth"?: string;
|
|
7181
7187
|
/**
|
|
7182
7188
|
* Filters leaderboard to show only data from this program. Defaults to the program context where this leaderboard is. If no program ID is set or provided by context, then a global leaderboard is shown.
|
|
7183
7189
|
* @uiName Program
|
|
@@ -7211,6 +7217,10 @@ declare namespace LocalJSX {
|
|
|
7211
7217
|
* @uiName User column heading
|
|
7212
7218
|
*/
|
|
7213
7219
|
"usersheading"?: string;
|
|
7220
|
+
/**
|
|
7221
|
+
* @uiName Place text
|
|
7222
|
+
*/
|
|
7223
|
+
"width"?: string;
|
|
7214
7224
|
}
|
|
7215
7225
|
interface SqmLeaderboardRank {
|
|
7216
7226
|
/**
|
package/docs/docs.docx
CHANGED
|
Binary file
|