@saasquatch/mint-components 1.10.2-8 → 1.10.2-9
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-3e537eb3.js → ShadowViewAddon-721bb748.js} +18 -25
- 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 +5 -65
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -94
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -2
- package/dist/collection/components/sqm-image/sqm-image.js +0 -20
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +2 -87
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +18 -26
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -93
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +2 -40
- package/dist/esm/{ShadowViewAddon-2ac771ca.js → ShadowViewAddon-31eb5b16.js} +18 -25
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_38.entry.js +5 -65
- package/dist/esm/sqm-stencilbook.entry.js +6 -94
- package/dist/esm-es5/ShadowViewAddon-31eb5b16.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-0d39c815.system.entry.js +1 -0
- package/dist/mint-components/p-27bd5535.entry.js +187 -0
- package/dist/mint-components/p-b567780d.system.js +1 -0
- package/dist/mint-components/{p-560f7316.entry.js → p-bf723ae9.entry.js} +2 -2
- package/dist/mint-components/{p-a7949e42.js → p-d6474614.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -1
- package/dist/mint-components/p-f1a1e7f3.system.entry.js +1 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -5
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -3
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -3
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +1 -19
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -3
- package/dist/types/components.d.ts +2 -40
- 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-2ac771ca.js +0 -1
- package/dist/mint-components/p-0e507dfe.system.entry.js +0 -1
- package/dist/mint-components/p-4348de13.system.js +0 -1
- package/dist/mint-components/p-5a1b4b5d.entry.js +0 -223
- package/dist/mint-components/p-e82b056c.system.entry.js +0 -1
|
@@ -29,10 +29,5 @@ export declare class Image {
|
|
|
29
29
|
* @uiName Minimum height
|
|
30
30
|
*/
|
|
31
31
|
minHeight?: string;
|
|
32
|
-
/**
|
|
33
|
-
* (Optional) Constrains the width of the image. Can be a pixel value or a percentage i.e. "500px", "33%", etc.
|
|
34
|
-
* @uiName Width
|
|
35
|
-
*/
|
|
36
|
-
width?: string;
|
|
37
32
|
render(): any;
|
|
38
33
|
}
|
|
@@ -11,11 +11,8 @@ export declare const Loading: () => any;
|
|
|
11
11
|
export declare const One: () => any;
|
|
12
12
|
export declare const Five: () => any;
|
|
13
13
|
export declare const ReferralLeaderboard: () => any;
|
|
14
|
-
export declare const ReferralLeaderboardWithMaxWidth: () => any;
|
|
15
14
|
export declare const PointsLeaderboard: () => any;
|
|
16
15
|
export declare const TenWithRank: () => any;
|
|
17
16
|
export declare const ViewerOutside: () => any;
|
|
18
17
|
export declare const ViewerAnonymous: () => any;
|
|
19
18
|
export declare const HideViewer: () => any;
|
|
20
|
-
export declare const HideNames: () => any;
|
|
21
|
-
export declare const LeaderboardWithNoNamesAndGraphic: () => any;
|
|
@@ -4,13 +4,10 @@ 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"]
|
|
8
7
|
* @exampleGroup Leaderboard
|
|
9
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>
|
|
10
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>
|
|
11
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>
|
|
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>
|
|
14
11
|
* @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>
|
|
15
12
|
*/
|
|
16
13
|
export declare class Leaderboard {
|
|
@@ -38,14 +35,6 @@ export declare class Leaderboard {
|
|
|
38
35
|
* @uiName Show leaderboard rank
|
|
39
36
|
*/
|
|
40
37
|
showRank: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @uiName Place text
|
|
43
|
-
*/
|
|
44
|
-
width: string;
|
|
45
|
-
/**
|
|
46
|
-
* @uiName Rank Suffix
|
|
47
|
-
*/
|
|
48
|
-
rankSuffix: string;
|
|
49
38
|
/**
|
|
50
39
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
51
40
|
*
|
|
@@ -53,17 +42,10 @@ export declare class Leaderboard {
|
|
|
53
42
|
* @default
|
|
54
43
|
*/
|
|
55
44
|
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;
|
|
63
45
|
/**
|
|
64
46
|
* Hides the leaderboard if user is on Essentials plan
|
|
65
47
|
*
|
|
66
|
-
* @uiName Hide
|
|
48
|
+
* @uiName Hide viewing user
|
|
67
49
|
* @default
|
|
68
50
|
*/
|
|
69
51
|
isEssentials?: boolean;
|
|
@@ -7,9 +7,6 @@ export interface LeaderboardProps {
|
|
|
7
7
|
anonymousUser?: string;
|
|
8
8
|
showRank?: boolean;
|
|
9
9
|
hideViewer?: boolean;
|
|
10
|
-
hideNames?: boolean;
|
|
11
|
-
width?: string;
|
|
12
|
-
rankSuffix?: string;
|
|
13
10
|
rankType: "rowNumber" | "rank" | "denseRank";
|
|
14
11
|
leaderboardType: "topStartedReferrers" | "topConvertedReferrers" | "topPointEarners";
|
|
15
12
|
maxRows: number;
|
|
@@ -932,11 +932,6 @@ 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;
|
|
940
935
|
}
|
|
941
936
|
interface SqmIndirectTaxForm {
|
|
942
937
|
/**
|
|
@@ -1322,12 +1317,6 @@ export namespace Components {
|
|
|
1322
1317
|
* @uiType object
|
|
1323
1318
|
*/
|
|
1324
1319
|
"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;
|
|
1331
1320
|
/**
|
|
1332
1321
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
1333
1322
|
* @uiName Hide viewing user
|
|
@@ -1342,7 +1331,7 @@ export namespace Components {
|
|
|
1342
1331
|
"interval": string;
|
|
1343
1332
|
/**
|
|
1344
1333
|
* Hides the leaderboard if user is on Essentials plan
|
|
1345
|
-
* @uiName Hide
|
|
1334
|
+
* @uiName Hide viewing user
|
|
1346
1335
|
* @default
|
|
1347
1336
|
*/
|
|
1348
1337
|
"isEssentials"?: boolean;
|
|
@@ -1367,10 +1356,6 @@ export namespace Components {
|
|
|
1367
1356
|
* @uiWidget programSelector
|
|
1368
1357
|
*/
|
|
1369
1358
|
"programId"?: string;
|
|
1370
|
-
/**
|
|
1371
|
-
* @uiName Rank Suffix
|
|
1372
|
-
*/
|
|
1373
|
-
"rankSuffix": string;
|
|
1374
1359
|
/**
|
|
1375
1360
|
* @uiName Rank type
|
|
1376
1361
|
* @uiType string
|
|
@@ -1394,10 +1379,6 @@ export namespace Components {
|
|
|
1394
1379
|
* @uiName User column heading
|
|
1395
1380
|
*/
|
|
1396
1381
|
"usersheading": string;
|
|
1397
|
-
/**
|
|
1398
|
-
* @uiName Place text
|
|
1399
|
-
*/
|
|
1400
|
-
"width": string;
|
|
1401
1382
|
}
|
|
1402
1383
|
interface SqmLeaderboardRank {
|
|
1403
1384
|
/**
|
|
@@ -6761,11 +6742,6 @@ declare namespace LocalJSX {
|
|
|
6761
6742
|
* @uiName Minimum height
|
|
6762
6743
|
*/
|
|
6763
6744
|
"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;
|
|
6769
6745
|
}
|
|
6770
6746
|
interface SqmIndirectTaxForm {
|
|
6771
6747
|
/**
|
|
@@ -7145,12 +7121,6 @@ declare namespace LocalJSX {
|
|
|
7145
7121
|
* @uiType object
|
|
7146
7122
|
*/
|
|
7147
7123
|
"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;
|
|
7154
7124
|
/**
|
|
7155
7125
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
7156
7126
|
* @uiName Hide viewing user
|
|
@@ -7165,7 +7135,7 @@ declare namespace LocalJSX {
|
|
|
7165
7135
|
"interval"?: string;
|
|
7166
7136
|
/**
|
|
7167
7137
|
* Hides the leaderboard if user is on Essentials plan
|
|
7168
|
-
* @uiName Hide
|
|
7138
|
+
* @uiName Hide viewing user
|
|
7169
7139
|
* @default
|
|
7170
7140
|
*/
|
|
7171
7141
|
"isEssentials"?: boolean;
|
|
@@ -7190,10 +7160,6 @@ declare namespace LocalJSX {
|
|
|
7190
7160
|
* @uiWidget programSelector
|
|
7191
7161
|
*/
|
|
7192
7162
|
"programId"?: string;
|
|
7193
|
-
/**
|
|
7194
|
-
* @uiName Rank Suffix
|
|
7195
|
-
*/
|
|
7196
|
-
"rankSuffix"?: string;
|
|
7197
7163
|
/**
|
|
7198
7164
|
* @uiName Rank type
|
|
7199
7165
|
* @uiType string
|
|
@@ -7217,10 +7183,6 @@ declare namespace LocalJSX {
|
|
|
7217
7183
|
* @uiName User column heading
|
|
7218
7184
|
*/
|
|
7219
7185
|
"usersheading"?: string;
|
|
7220
|
-
/**
|
|
7221
|
-
* @uiName Place text
|
|
7222
|
-
*/
|
|
7223
|
-
"width"?: string;
|
|
7224
7186
|
}
|
|
7225
7187
|
interface SqmLeaderboardRank {
|
|
7226
7188
|
/**
|
package/docs/docs.docx
CHANGED
|
Binary file
|