@saasquatch/mint-components 1.8.3-5 → 1.8.3-6

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.
@@ -9,6 +9,8 @@ import { useLeaderboard } from "./useLeaderboard";
9
9
  * @uiName Leaderboard
10
10
  * @slots [{"name":"empty", "title":"Empty State"}]
11
11
  * @requiredFeatures ["LEADERBOARDS"]
12
+ * @exampleGroup Leaderboard
13
+ * @example 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>
12
14
  * @featureTooltip <div>Motivate your participants by gamifying your program. Contact <a href="example.com">Support</a> to upgrade your plan and add a leaderboard.</div>
13
15
  */
14
16
  export class Leaderboard {
@@ -4,6 +4,8 @@ import { LeaderboardViewProps } from "./sqm-leaderboard-view";
4
4
  * @uiName Leaderboard
5
5
  * @slots [{"name":"empty", "title":"Empty State"}]
6
6
  * @requiredFeatures ["LEADERBOARDS"]
7
+ * @exampleGroup Leaderboard
8
+ * @example 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>
7
9
  * @featureTooltip <div>Motivate your participants by gamifying your program. Contact <a href="example.com">Support</a> to upgrade your plan and add a leaderboard.</div>
8
10
  */
9
11
  export declare class Leaderboard {
@@ -0,0 +1,7 @@
1
+ interface AndroidInterface {
2
+ platform: 'android';
3
+ shareOnFacebook(shareUrl: string, fallbackUrl: string): void;
4
+ showToast(toast: string): void;
5
+ }
6
+
7
+ export type PlatformNativeActions = AndroidInterface | undefined;
@@ -0,0 +1,2 @@
1
+ export type DemoData<T extends {}> = Partial<Omit<T, "callbacks" | "text">>;
2
+ export type StoryDemoData<T extends {}> = Partial<Omit<T, "text">>;
@@ -0,0 +1,4 @@
1
+ declare module "*.feature" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,4 @@
1
+ declare module "*.html" {
2
+ const content: string;
3
+ export default content;
4
+ }
package/docs/docs.docx CHANGED
Binary file