@saasquatch/mint-components 1.5.4-2 → 1.5.4

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/CHANGELOG.md CHANGED
@@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [Unreleased]
9
9
 
10
10
 
11
- ## [1.5.4] - 2022-04-12
11
+ ## [1.5.4] - 2022-04-13
12
12
 
13
13
  ### Changed
14
14
  - Changed Component:
@@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
  - Now supports rank from top point earners leaderboard
22
22
  - Added a `programId` prop to overwride program context
23
23
  - If an empty string is passed, then a global leaderboard rank is displayed
24
+ - /<sqm-reward-exchange-list>
25
+ - Updated `not-available-error` default value to fix issue with error message fallback in ICU message
24
26
 
25
27
  ## [1.5.3] - 2022-03-31
26
28
 
@@ -2367,7 +2367,7 @@ const Router = /*#__PURE__*/Object.freeze({
2367
2367
  RouterPlayground: RouterPlayground
2368
2368
  });
2369
2369
 
2370
- const scenario$5 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard Rank\r\n\r\n The leaderboard rank components displays the current users rank on the leaderboard.\r\n\r\n @minutiae\r\n Scenario: Users without a rank are shown a generic message\r\n Given a user has no rank\r\n Then the component displays a generic message\r\n And the message is the string from the prop \"unrankedText\"\r\n\r\n @motivating\r\n Scenario: Users with a rank are shown a message containing their rank\r\n Given a user has a valid rank\r\n And the prop \"rankText\" is an ICU message\r\n Then the ICU message is parsed to include the user's rank\r\n And the parsed message is displayed to the users\r\n\r\n @motivating\r\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\r\n Given a leaderboard rank component with <leaderboardType>\r\n And a user has a valid rank\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType>\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Context is used by default to filter leaderboard rank\r\n Given a <leaderboardType> leaderboard rank component loaded with program context for \"my-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-program\"\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Id context can be overwritten with a prop\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"my-test-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-test-program\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\r\n #This can also be done with a program section in a similar manner\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"\"\r\n When they view the leaderboard rank component\r\n Then they see global <results> rank\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario: Rank calculation is controlled by the \"rankType\" prop\r\n Given the current user is User C\r\n And User C has <points>\r\n And User A has <points>\r\n And User B has <points>\r\n And the value of the \"rankType\" prop is <rankType>\r\n Then the rank of the current user is <rank>\r\n Examples:\r\n | user | points | rankType | rank |\r\n | User A | 5 | rowNumber | 3 |\r\n | User B | 10 | rowNumber | 1 |\r\n | User C | 10 | rowNumber | 2 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | rank | 1 |\r\n | User B | 10 | rank | 1 |\r\n | User C | 5 | rank | 3 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | denseRank | 1 |\r\n | User B | 10 | denseRank | 1 |\r\n | User C | 5 | denseRank | 2 |";
2370
+ const scenario$5 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard Rank\r\n\r\n The leaderboard rank components displays the current users rank on the leaderboard.\r\n\r\n @minutiae\r\n Scenario: Users without a rank are shown a generic message\r\n Given a user has no rank\r\n Then the component displays a generic message\r\n And the message is the string from the prop \"unrankedText\"\r\n\r\n @motivating\r\n Scenario: Users with a rank are shown a message containing their rank\r\n Given a user has a valid rank\r\n And the prop \"rankText\" is an ICU message\r\n Then the ICU message is parsed to include the user's rank\r\n And the parsed message is displayed to the users\r\n\r\n @motivating\r\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\r\n Given a leaderboard rank component with <leaderboardType>\r\n And a user has a valid rank\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType>\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Leaderboard rank can be filtered with a time interval\r\n Given a leaderboard rank component with <leaderboardType>\r\n And it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Program Context is used by default to filter leaderboard rank\r\n Given a <leaderboardType> leaderboard rank component loaded with program context for \"my-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-program\"\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Id context can be overwritten with a prop\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"my-test-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-test-program\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\r\n #This can also be done with a program section in a similar manner\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"\"\r\n When they view the leaderboard rank component\r\n Then they see global <results> rank\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario: Rank calculation is controlled by the \"rankType\" prop\r\n Given the current user is User C\r\n And User C has <points>\r\n And User A has <points>\r\n And User B has <points>\r\n And the value of the \"rankType\" prop is <rankType>\r\n Then the rank of the current user is <rank>\r\n Examples:\r\n | user | points | rankType | rank |\r\n | User A | 5 | rowNumber | 3 |\r\n | User B | 10 | rowNumber | 1 |\r\n | User C | 10 | rowNumber | 2 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | rank | 1 |\r\n | User B | 10 | rank | 1 |\r\n | User C | 5 | rank | 3 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | denseRank | 1 |\r\n | User B | 10 | denseRank | 1 |\r\n | User C | 5 | denseRank | 2 |";
2371
2371
 
2372
2372
  const LeaderboardRank_stories = {
2373
2373
  title: "Components/Leaderboard Rank",
@@ -2363,7 +2363,7 @@ const Router = /*#__PURE__*/Object.freeze({
2363
2363
  RouterPlayground: RouterPlayground
2364
2364
  });
2365
2365
 
2366
- const scenario$5 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard Rank\r\n\r\n The leaderboard rank components displays the current users rank on the leaderboard.\r\n\r\n @minutiae\r\n Scenario: Users without a rank are shown a generic message\r\n Given a user has no rank\r\n Then the component displays a generic message\r\n And the message is the string from the prop \"unrankedText\"\r\n\r\n @motivating\r\n Scenario: Users with a rank are shown a message containing their rank\r\n Given a user has a valid rank\r\n And the prop \"rankText\" is an ICU message\r\n Then the ICU message is parsed to include the user's rank\r\n And the parsed message is displayed to the users\r\n\r\n @motivating\r\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\r\n Given a leaderboard rank component with <leaderboardType>\r\n And a user has a valid rank\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType>\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Context is used by default to filter leaderboard rank\r\n Given a <leaderboardType> leaderboard rank component loaded with program context for \"my-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-program\"\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Id context can be overwritten with a prop\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"my-test-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-test-program\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\r\n #This can also be done with a program section in a similar manner\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"\"\r\n When they view the leaderboard rank component\r\n Then they see global <results> rank\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario: Rank calculation is controlled by the \"rankType\" prop\r\n Given the current user is User C\r\n And User C has <points>\r\n And User A has <points>\r\n And User B has <points>\r\n And the value of the \"rankType\" prop is <rankType>\r\n Then the rank of the current user is <rank>\r\n Examples:\r\n | user | points | rankType | rank |\r\n | User A | 5 | rowNumber | 3 |\r\n | User B | 10 | rowNumber | 1 |\r\n | User C | 10 | rowNumber | 2 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | rank | 1 |\r\n | User B | 10 | rank | 1 |\r\n | User C | 5 | rank | 3 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | denseRank | 1 |\r\n | User B | 10 | denseRank | 1 |\r\n | User C | 5 | denseRank | 2 |";
2366
+ const scenario$5 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard Rank\r\n\r\n The leaderboard rank components displays the current users rank on the leaderboard.\r\n\r\n @minutiae\r\n Scenario: Users without a rank are shown a generic message\r\n Given a user has no rank\r\n Then the component displays a generic message\r\n And the message is the string from the prop \"unrankedText\"\r\n\r\n @motivating\r\n Scenario: Users with a rank are shown a message containing their rank\r\n Given a user has a valid rank\r\n And the prop \"rankText\" is an ICU message\r\n Then the ICU message is parsed to include the user's rank\r\n And the parsed message is displayed to the users\r\n\r\n @motivating\r\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\r\n Given a leaderboard rank component with <leaderboardType>\r\n And a user has a valid rank\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType>\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Leaderboard rank can be filtered with a time interval\r\n Given a leaderboard rank component with <leaderboardType>\r\n And it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Program Context is used by default to filter leaderboard rank\r\n Given a <leaderboardType> leaderboard rank component loaded with program context for \"my-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-program\"\r\n Examples:\r\n | leaderboardType |\r\n | topStartedReferrers |\r\n | topConvertedReferrers |\r\n | topPointEarners |\r\n\r\n @motivating\r\n Scenario Outline: Program Id context can be overwritten with a prop\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"my-test-program\"\r\n When they view the leaderboard rank component\r\n Then they see their rank for <leaderboardType> from \"my-test-program\"\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\r\n #This can also be done with a program section in a similar manner\r\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"\"\r\n When they view the leaderboard rank component\r\n Then they see global <results> rank\r\n Examples:\r\n | leaderboardType | results |\r\n | topStartedReferrers | started referrals |\r\n | topConvertedReferrers | converted referrals |\r\n | topPointEarners | points earned |\r\n\r\n @motivating\r\n Scenario: Rank calculation is controlled by the \"rankType\" prop\r\n Given the current user is User C\r\n And User C has <points>\r\n And User A has <points>\r\n And User B has <points>\r\n And the value of the \"rankType\" prop is <rankType>\r\n Then the rank of the current user is <rank>\r\n Examples:\r\n | user | points | rankType | rank |\r\n | User A | 5 | rowNumber | 3 |\r\n | User B | 10 | rowNumber | 1 |\r\n | User C | 10 | rowNumber | 2 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | rank | 1 |\r\n | User B | 10 | rank | 1 |\r\n | User C | 5 | rank | 3 |\r\n\r\n | user | points | rankType | rank |\r\n | User A | 10 | denseRank | 1 |\r\n | User B | 10 | denseRank | 1 |\r\n | User C | 5 | denseRank | 2 |";
2367
2367
 
2368
2368
  const LeaderboardRank_stories = {
2369
2369
  title: "Components/Leaderboard Rank",