@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.
Files changed (46) hide show
  1. package/dist/cjs/{ShadowViewAddon-3e537eb3.js → ShadowViewAddon-721bb748.js} +18 -25
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +5 -65
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -94
  6. package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
  7. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -2
  8. package/dist/collection/components/sqm-image/sqm-image.js +0 -20
  9. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +2 -87
  10. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +18 -26
  11. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -93
  12. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +2 -40
  13. package/dist/esm/{ShadowViewAddon-2ac771ca.js → ShadowViewAddon-31eb5b16.js} +18 -25
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/mint-components.js +1 -1
  16. package/dist/esm/sqm-big-stat_38.entry.js +5 -65
  17. package/dist/esm/sqm-stencilbook.entry.js +6 -94
  18. package/dist/esm-es5/ShadowViewAddon-31eb5b16.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mint-components.js +1 -1
  21. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  22. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  23. package/dist/mint-components/mint-components.esm.js +1 -1
  24. package/dist/mint-components/p-0d39c815.system.entry.js +1 -0
  25. package/dist/mint-components/p-27bd5535.entry.js +187 -0
  26. package/dist/mint-components/p-b567780d.system.js +1 -0
  27. package/dist/mint-components/{p-560f7316.entry.js → p-bf723ae9.entry.js} +2 -2
  28. package/dist/mint-components/{p-a7949e42.js → p-d6474614.js} +1 -1
  29. package/dist/mint-components/p-ed17e637.system.js +1 -1
  30. package/dist/mint-components/p-f1a1e7f3.system.entry.js +1 -0
  31. package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
  32. package/dist/types/components/sqm-image/sqm-image.d.ts +0 -5
  33. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -3
  34. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -3
  35. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +1 -19
  36. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -3
  37. package/dist/types/components.d.ts +2 -40
  38. package/docs/docs.docx +0 -0
  39. package/docs/raisins.json +1 -1
  40. package/grapesjs/grapesjs.js +1 -1
  41. package/package.json +2 -2
  42. package/dist/esm-es5/ShadowViewAddon-2ac771ca.js +0 -1
  43. package/dist/mint-components/p-0e507dfe.system.entry.js +0 -1
  44. package/dist/mint-components/p-4348de13.system.js +0 -1
  45. package/dist/mint-components/p-5a1b4b5d.entry.js +0 -223
  46. package/dist/mint-components/p-e82b056c.system.entry.js +0 -1
@@ -24,7 +24,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
24
24
  import './utilities-3f5bba22.js';
25
25
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
26
26
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.js';
27
- import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-2ac771ca.js';
27
+ import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-31eb5b16.js';
28
28
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
29
29
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-34ac7513.js';
30
30
 
@@ -1600,8 +1600,8 @@ const SlottedIntoComponent = () => {
1600
1600
  data: {
1601
1601
  rankType: "rowNumber",
1602
1602
  leaderboard: [],
1603
- rowNumber: 10,
1604
1603
  showUser: true,
1604
+ rowNumber: 10,
1605
1605
  userRank: {
1606
1606
  firstName: "Kutay",
1607
1607
  lastInitial: "C",
@@ -1809,7 +1809,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
1809
1809
  MultipleStats: MultipleStats
1810
1810
  });
1811
1811
 
1812
- const scenario$4 = "@owner:noah @author:noah\nFeature: Leaderboard\n\tThe leaderboard supports three main cases\n\t- Top Started Referrers\n\t- Top Converted Referrers\n\t- Top Point Earners\n\tTo display these different types of leaderboards it uses the backends pre-canned options.\n\tThe backend supports filtering on programId and interval, programId is sourced from program context.\n\n Background: A user exists\n Given a user\n And they are viewing the leaderboard\n\n @motivating\n Scenario Outline: Two types of referrals leaderboards can be displayed\n Given a leaderboard has prop \"leaderboard-type\" with <value>\n And there are started referrals on the tenant\n And there are started converted on the tenant\n When the user views the leaderboard\n Then they see the referral <referralType> leaderboard\n\n Examples:\n | value | referralType |\n | topStartedReferrers | started |\n | topConvertedReferrers | converted |\n\n @motivating\n Scenario: The top point earners leaderboard can be displayed\n Given a leaderboard has prop \"leaderboard-type\" with value \"topPointEarners\"\n And there are users with points\n When the user views the leaderboard\n Then they see the top point earners leaderboard\n And text values are displayed for point counts\n\n @minutia\n Scenario Outline: Reward pretty value is used on the top point earners leaderboard\n Given top point earners leaderboard\n And the \"POINT\" reward unit has a pretty value for the following locales\n | locale |\n | en |\n | fr |\n | tr |\n When the user views the leaderboard\n And they have <locale>\n Then they see the translated pretty value in the stat value column\n\n @motivating\n Scenario Outline: Program Context is used by default to filter leaderboard results\n Given a <leaderboardType> leaderboard loaded with program context for \"my-program\"\n When the user views the leaderboard\n Then they only see <results> from \"my-program\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Program Id context can be overwritten with a prop\n Given a <leaderboardType> leaderboard has prop \"program-Id\" with value \"my-test-program\"\n When the user views the leaderboard\n Then they only see <results> from \"my-test-program\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Global leaderboards can be displayed by clearing program context\n\t\t#This is important for clients with use cases like StaffTracks global points leaderboard\n\t\t#This can also be done with a program section in a similar manner\n Given a <leaderboardType> leaderboard has prop \"program-Id\" with value \"\"\n When the user views the leaderboard\n Then they see global <results>\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario: Leaderboard results are shown in descending order\n Given there are leaderboard results\n When the user views the leaderboard\n Then they see up to the 10 top leaderboard results\n And leaderboard is in descending order\n\n @motivating\n Scenario Outline: Leaderboard results can be filtered with a time interval\n Given a <leaderboardType> leaderboard\n And it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n When the user views the leaderboard\n Then they only see <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Leaderboard rank type can be configured\n Given a leaderboard has prop \"rank-type\" with <value>\n When the user views the leaderboard\n Then their leaderboard rank is their <rank>\n\n Examples:\n | value | rank |\n | rowNumber | row number |\n | denseRank | dense rank |\n | rank | rank |\n\n @minutia\n Scenario Outline: The max number of leaderboard rows displayed can be configured but defaults to 10\n Given a leaderboard has prop \"max-rows\" with <value>\n And the leaderboard has <resultCount>\n When the user views the leaderboard\n Then they see <number> rows\n\n Examples:\n | value | resultCount | number |\n | | 10 | 10 |\n | 5 | 10 | 5 |\n | 3 | 1 | 1 |\n | 25 | 15 | 15 |\n\n @minutiae @ui\n Scenario: Leaderboards with no results show an empty state\n Given a leaderboard has no results\n When the user views the leaderboard\n Then an empty state is dislayed\n And they see an image of a leaderboard\n And below they see \"View your rank in the leaderboard\"\n And below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\n And the text is center aligned\n\n @minutiae @ui\n Scenario: A custom empty state can be provided\n Given a leaderboard has no results\n When the user views the leaderboard\n Then the contents of the \"empty\" slot are displayed\n\n @minutiae @ui\n Scenario: User is on Essentials plan\n Given the user has an Essentials plan\n When they view the leaderboard\n Then a message telling them to upgrade their plan appears:\n \"\"\"\n Contact Support to upgrade your plan and start leveraging\n gamification in your program.\n \"\"\"\n And an empty table image is displayed\n\n @minutiae @ui\n Scenario: Leaderboard headings can be customized\n Given a leaderboard\n And it has the following props\n | prop | value |\n | rankheading | Place |\n | usersheading | Customer |\n | statsheading | Referral Count |\n | show-rank | true |\n When the user views the leaderboard\n Then they see the following columns with headings\n | column | heading |\n | rank | Place |\n | user | Customer |\n | stat | Referral Count |\n\n @motivating @ui\n Scenario Outline: Leaderboard rank can be hidden or shown\n Given a leaderboard\n And it has prop \"show-rank\" with <propValue>\n When the user views the leaderboard\n Then they <maySee> the rank column\n\n Examples:\n | propValue | maySee |\n | true | see |\n | false | don't see |\n | | don't see |\n\n Scenario Outline: Users names can be hidden or shown\n Given a leaderboard\n And it has prop \"hide-names\" with <propValue>\n When the user views the leaderboard\n Then they <maySee> the referrer column\n\n Examples:\n | propValue | maySee |\n | true | don't see |\n | false | see |\n | | see |\n\n @motivating @ui\n Scenario: Users in the top 10 of the leaderboard results see their leaderboard row highlighted\n Given a user in the top 10 of the leaderboard results\n When they view the leaderboard\n Then they see the row with their name highlighted with brand colour\n\n @motivating @ui\n Scenario Outline: Users not in the top 10 leaderboard results can see their progress at the bottom of the leaderboard\n Given a user <mayHave> completed actions counted by the leaderboard\n And they are not in the top 10 leaderboard results\n And the leaderboard has prop \"show-user\" with <value>\n When they view the leaderboard\n Then they <maySee> \"...\" under the top 10 leaderboard results\n And under \"...\" they <maySee> a row highlighted with brand colour\n And they <maySee> their name\n And they <maySee> their leaderboard value\n And they <maySeeRank>\n\n Examples:\n | mayHave | value | maySee | maySeeRank |\n | has | true | see | see their rank |\n | hasn't | true | see | don't see their rank |\n | N/A | false | don't see | don't see their rank |\n | hasn't | | see | don't see their rank |\n\n @minutiae\n Scenario: Users without names are displayed as an \"Anonymous User\"\n Given a user\n And they do not have a first name\n And they do not have a last initial\n When they view the leaderboard\n Then they see the user displayed as \"Anonymous User\"\n\n @minutiae\n Scenario Outline: If a user only has a first or last name, then only that is displayed\n Given a user\n And they only have a <name>\n When they view the leaderboard\n Then they only see their <name>\n\n Examples:\n | name |\n | firstName |\n | lastName |\n";
1812
+ const scenario$4 = "@owner:noah @author:noah\nFeature: Leaderboard\n\tThe leaderboard supports three main cases\n\t- Top Started Referrers\n\t- Top Converted Referrers\n\t- Top Point Earners\n\tTo display these different types of leaderboards it uses the backends pre-canned options.\n\tThe backend supports filtering on programId and interval, programId is sourced from program context.\n\n Background: A user exists\n Given a user\n And they are viewing the leaderboard\n\n @motivating\n Scenario Outline: Two types of referrals leaderboards can be displayed\n Given a leaderboard has prop \"leaderboard-type\" with <value>\n And there are started referrals on the tenant\n And there are started converted on the tenant\n When the user views the leaderboard\n Then they see the referral <referralType> leaderboard\n\n Examples:\n | value | referralType |\n | topStartedReferrers | started |\n | topConvertedReferrers | converted |\n\n @motivating\n Scenario: The top point earners leaderboard can be displayed\n Given a leaderboard has prop \"leaderboard-type\" with value \"topPointEarners\"\n And there are users with points\n When the user views the leaderboard\n Then they see the top point earners leaderboard\n And text values are displayed for point counts\n\n @minutia\n Scenario Outline: Reward pretty value is used on the top point earners leaderboard\n Given top point earners leaderboard\n And the \"POINT\" reward unit has a pretty value for the following locales\n | locale |\n | en |\n | fr |\n | tr |\n When the user views the leaderboard\n And they have <locale>\n Then they see the translated pretty value in the stat value column\n\n @motivating\n Scenario Outline: Program Context is used by default to filter leaderboard results\n Given a <leaderboardType> leaderboard loaded with program context for \"my-program\"\n When the user views the leaderboard\n Then they only see <results> from \"my-program\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Program Id context can be overwritten with a prop\n Given a <leaderboardType> leaderboard has prop \"program-Id\" with value \"my-test-program\"\n When the user views the leaderboard\n Then they only see <results> from \"my-test-program\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Global leaderboards can be displayed by clearing program context\n\t\t#This is important for clients with use cases like StaffTracks global points leaderboard\n\t\t#This can also be done with a program section in a similar manner\n Given a <leaderboardType> leaderboard has prop \"program-Id\" with value \"\"\n When the user views the leaderboard\n Then they see global <results>\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario: Leaderboard results are shown in descending order\n Given there are leaderboard results\n When the user views the leaderboard\n Then they see up to the 10 top leaderboard results\n And leaderboard is in descending order\n\n @motivating\n Scenario Outline: Leaderboard results can be filtered with a time interval\n Given a <leaderboardType> leaderboard\n And it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n When the user views the leaderboard\n Then they only see <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Leaderboard rank type can be configured\n Given a leaderboard has prop \"rank-type\" with <value>\n When the user views the leaderboard\n Then their leaderboard rank is their <rank>\n\n Examples:\n | value | rank |\n | rowNumber | row number |\n | denseRank | dense rank |\n | rank | rank |\n\n @minutia\n Scenario Outline: The max number of leaderboard rows displayed can be configured but defaults to 10\n Given a leaderboard has prop \"max-rows\" with <value>\n And the leaderboard has <resultCount>\n When the user views the leaderboard\n Then they see <number> rows\n\n Examples:\n | value | resultCount | number |\n | | 10 | 10 |\n | 5 | 10 | 5 |\n | 3 | 1 | 1 |\n | 25 | 15 | 15 |\n\n @minutiae @ui\n Scenario: Leaderboards with no results show an empty state\n Given a leaderboard has no results\n When the user views the leaderboard\n Then an empty state is dislayed\n And they see an image of a leaderboard\n And below they see \"View your rank in the leaderboard\"\n And below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\n And the text is center aligned\n\n @minutiae @ui\n Scenario: A custom empty state can be provided\n Given a leaderboard has no results\n When the user views the leaderboard\n Then the contents of the \"empty\" slot are displayed\n\n @minutiae @ui\n Scenario: User is on Essentials plan\n Given the user has an Essentials plan\n When they view the leaderboard\n Then a message telling them to upgrade their plan appears:\n \"\"\"\n Contact Support to upgrade your plan and start leveraging\n gamification in your program.\n \"\"\"\n And an empty table image is displayed\n\n @minutiae @ui\n Scenario: Leaderboard headings can be customized\n Given a leaderboard\n And it has the following props\n | prop | value |\n | rankheading | Place |\n | usersheading | Customer |\n | statsheading | Referral Count |\n | show-rank | true |\n When the user views the leaderboard\n Then they see the following columns with headings\n | column | heading |\n | rank | Place |\n | user | Customer |\n | stat | Referral Count |\n\n @motivating @ui\n Scenario Outline: Leaderboard rank can be hidden or shown\n Given a leaderboard\n And it has prop \"show-rank\" with <propValue>\n When the user views the leaderboard\n Then they <maySee> the rank column\n\n Examples:\n | propValue | maySee |\n | true | see |\n | false | don't see |\n | | don't see |\n\n @motivating @ui\n Scenario: Users in the top 10 of the leaderboard results see their leaderboard row highlighted\n Given a user in the top 10 of the leaderboard results\n When they view the leaderboard\n Then they see the row with their name highlighted with brand colour\n\n @motivating @ui\n Scenario Outline: Users not in the top 10 leaderboard results can see their progress at the bottom of the leaderboard\n Given a user <mayHave> completed actions counted by the leaderboard\n And they are not in the top 10 leaderboard results\n And the leaderboard has prop \"show-user\" with <value>\n When they view the leaderboard\n Then they <maySee> \"...\" under the top 10 leaderboard results\n And under \"...\" they <maySee> a row highlighted with brand colour\n And they <maySee> their name\n And they <maySee> their leaderboard value\n And they <maySeeRank>\n\n Examples:\n | mayHave | value | maySee | maySeeRank |\n | has | true | see | see their rank |\n | hasn't | true | see | don't see their rank |\n | N/A | false | don't see | don't see their rank |\n | hasn't | | see | don't see their rank |\n\n @minutiae\n Scenario: Users without names are displayed as an \"Anonymous User\"\n Given a user\n And they do not have a first name\n And they do not have a last initial\n When they view the leaderboard\n Then they see the user displayed as \"Anonymous User\"\n\n @minutiae\n Scenario Outline: If a user only has a first or last name, then only that is displayed\n Given a user\n And they only have a <name>\n When they view the leaderboard\n Then they only see their <name>\n\n Examples:\n | name |\n | firstName |\n | lastName |\n";
1813
1813
 
1814
1814
  const Leaderboard_stories = {
1815
1815
  title: "Components/Leaderboard",
@@ -1891,8 +1891,8 @@ const users = [
1891
1891
  ];
1892
1892
  const pointsUsers = [
1893
1893
  {
1894
- firstName: "Tom",
1895
- lastInitial: "Smith",
1894
+ firstName: "",
1895
+ lastInitial: "",
1896
1896
  textValue: "82 Points",
1897
1897
  rank: 1,
1898
1898
  rowNumber: 1,
@@ -1966,7 +1966,6 @@ const defaultStyles$1 = {
1966
1966
  statsheading: "Referrals",
1967
1967
  rankheading: "Rank",
1968
1968
  anonymousUser: "Anonymous User",
1969
- rankSuffix: "{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",
1970
1969
  };
1971
1970
  const link = h("a", null, "Support");
1972
1971
  const defaultElements$1 = {
@@ -2183,38 +2182,6 @@ const ReferralLeaderboard = () => {
2183
2182
  };
2184
2183
  return h(LeaderboardView, Object.assign({}, props));
2185
2184
  };
2186
- const ReferralLeaderboardWithMaxWidth = () => {
2187
- const props = {
2188
- states: {
2189
- loading: false,
2190
- hasLeaders: true,
2191
- styles: {
2192
- ...defaultStyles$1,
2193
- rankheading: "Rank",
2194
- usersheading: "User",
2195
- statsheading: "Referrals",
2196
- showRank: false,
2197
- maxWidth: "300px",
2198
- },
2199
- },
2200
- data: {
2201
- rankType: "rowNumber",
2202
- leaderboard: users,
2203
- rowNumber: 10,
2204
- viewerRank: {
2205
- firstName: "Viktor",
2206
- lastInitial: "V",
2207
- textValue: "82",
2208
- rank: 1,
2209
- rowNumber: 1,
2210
- },
2211
- },
2212
- elements: {
2213
- ...defaultElements$1,
2214
- },
2215
- };
2216
- return h(LeaderboardView, Object.assign({}, props));
2217
- };
2218
2185
  const PointsLeaderboard = () => {
2219
2186
  const props = {
2220
2187
  states: {
@@ -2354,58 +2321,6 @@ const HideViewer = () => {
2354
2321
  };
2355
2322
  return h(LeaderboardView, Object.assign({}, props));
2356
2323
  };
2357
- const HideNames = () => {
2358
- const props = {
2359
- states: {
2360
- loading: false,
2361
- hasLeaders: true,
2362
- rowNumber: 10,
2363
- styles: {
2364
- ...defaultStyles$1,
2365
- showRank: true,
2366
- hideNames: true,
2367
- },
2368
- },
2369
- data: {
2370
- rankType: "rowNumber",
2371
- leaderboard: users,
2372
- rowNumber: 10,
2373
- viewerRank: {
2374
- firstName: "Viktor",
2375
- lastInitial: "V",
2376
- textValue: "82",
2377
- rowNumber: 1,
2378
- rank: 1,
2379
- },
2380
- },
2381
- elements: {
2382
- ...defaultElements$1,
2383
- },
2384
- };
2385
- return h(LeaderboardView, Object.assign({}, props));
2386
- };
2387
- const LeaderboardWithNoNamesAndGraphic = () => {
2388
- return (h("div", { style: {
2389
- display: "flex",
2390
- alignItems: "flex-start",
2391
- justifyContent: "center",
2392
- width: "100%",
2393
- gap: "50px",
2394
- } },
2395
- h("div", { style: {
2396
- display: "flex",
2397
- flexDirection: "column",
2398
- alignItems: "center",
2399
- justifyContent: "center",
2400
- gap: "10px",
2401
- maxWidth: "30%",
2402
- } },
2403
- h("sqm-image", { width: "70%", alignment: "center", imageUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png" }),
2404
- h("h2", { style: { margin: "auto" } }, " Top Performers"),
2405
- h("p", { style: { margin: "0" } }, "The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!")),
2406
- h("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" },
2407
- h("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" }))));
2408
- };
2409
2324
 
2410
2325
  const Leaderboard = /*#__PURE__*/Object.freeze({
2411
2326
  __proto__: null,
@@ -2416,14 +2331,11 @@ const Leaderboard = /*#__PURE__*/Object.freeze({
2416
2331
  One: One,
2417
2332
  Five: Five,
2418
2333
  ReferralLeaderboard: ReferralLeaderboard,
2419
- ReferralLeaderboardWithMaxWidth: ReferralLeaderboardWithMaxWidth,
2420
2334
  PointsLeaderboard: PointsLeaderboard,
2421
2335
  TenWithRank: TenWithRank,
2422
2336
  ViewerOutside: ViewerOutside,
2423
2337
  ViewerAnonymous: ViewerAnonymous,
2424
- HideViewer: HideViewer,
2425
- HideNames: HideNames,
2426
- LeaderboardWithNoNamesAndGraphic: LeaderboardWithNoNamesAndGraphic
2338
+ HideViewer: HideViewer
2427
2339
  });
2428
2340
 
2429
2341
  const HookStoryAddon = ({ story }, children) => {