@nuskin/react-mysite-elements 1.6.0-comx-2229.13 → 1.6.0-comx-2229.15

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 (36) hide show
  1. package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts +1 -5
  2. package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +1 -5
  3. package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.d.ts +1 -0
  4. package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.d.ts +1 -0
  5. package/dist/common/shopping-dashboard/shared/types.d.ts +8 -8
  6. package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +14 -0
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +1 -1
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/dist/common/Nav-Category-Navigation/NsCategoryNavigation.stories.d.ts +0 -8
  13. package/dist/common/card/stories/NsProductCard.stories.d.ts +0 -8
  14. package/dist/common/carousel/stories/NsProductCardCarousel.stories.d.ts +0 -8
  15. package/dist/common/carousel/stories/ProductTabCarousel.stories.d.ts +0 -4
  16. package/dist/common/headers/stories/MySiteShopHeader.stories.d.ts +0 -10
  17. package/dist/common/shopping-dashboard/fixtures/index.d.ts +0 -1
  18. package/dist/common/shopping-dashboard/fixtures/mockDashboardData.d.ts +0 -10
  19. package/dist/common/shopping-dashboard/fixtures/mockProductOfferData.d.ts +0 -8
  20. package/dist/common/shopping-dashboard/stories/CategoriesFullView.stories.d.ts +0 -10
  21. package/dist/common/shopping-dashboard/stories/ConversionRateChart.stories.d.ts +0 -9
  22. package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +0 -10
  23. package/dist/common/shopping-dashboard/stories/DashboardHeader.stories.d.ts +0 -9
  24. package/dist/common/shopping-dashboard/stories/DataTable.stories.d.ts +0 -8
  25. package/dist/common/shopping-dashboard/stories/PageHeader.stories.d.ts +0 -8
  26. package/dist/common/shopping-dashboard/stories/Pagination.stories.d.ts +0 -9
  27. package/dist/common/shopping-dashboard/stories/ProductOfferDashboard.stories.d.ts +0 -13
  28. package/dist/common/shopping-dashboard/stories/ProductsFullView.stories.d.ts +0 -9
  29. package/dist/common/shopping-dashboard/stories/ShoppingDashboard.stories.d.ts +0 -13
  30. package/dist/common/shopping-dashboard/stories/SignupsChart.stories.d.ts +0 -10
  31. package/dist/common/shopping-dashboard/stories/SignupsFullView.stories.d.ts +0 -9
  32. package/dist/common/shopping-dashboard/stories/StatsCard.stories.d.ts +0 -11
  33. package/dist/common/shopping-dashboard/stories/TopCategoriesPieChart.stories.d.ts +0 -10
  34. package/dist/common/shopping-dashboard/stories/TopPerformingOffersFullView.stories.d.ts +0 -10
  35. package/dist/common/shopping-dashboard/stories/TopPerformingOffersPieChart.stories.d.ts +0 -11
  36. package/dist/common/shopping-dashboard/stories/TopSellingProductsList.stories.d.ts +0 -11
@@ -1,7 +1,4 @@
1
- type TranslationEntry = {
2
- readonly key: string;
3
- readonly fallback: string;
4
- };
1
+ import { type TranslationEntry } from './translationResolver';
5
2
  export declare const ProductOfferDashboardTranslationKeys: {
6
3
  readonly title: {
7
4
  readonly key: "productOfferDashboard.title";
@@ -259,4 +256,3 @@ export declare const ProductOfferDashboardTranslationKeys: {
259
256
  };
260
257
  };
261
258
  export declare function getTranslation(entry: TranslationEntry): string;
262
- export {};
@@ -1,3 +1,4 @@
1
+ import { type TranslationEntry } from './translationResolver';
1
2
  export declare const ShoppingDashboardTranslationKeys: {
2
3
  readonly title: {
3
4
  readonly key: "shoppingDashboard.title";
@@ -566,9 +567,4 @@ export declare const ShoppingDashboardTranslationKeys: {
566
567
  };
567
568
  };
568
569
  };
569
- type TranslationEntry = {
570
- readonly key: string;
571
- readonly fallback: string;
572
- };
573
570
  export declare function getTranslation(entry: TranslationEntry): string;
574
- export {};
@@ -4,6 +4,7 @@ export interface ConversionRateChartProps {
4
4
  readonly conversionData: ConversionDataPoint[];
5
5
  readonly conversionFilter: ConversionFilterOption;
6
6
  readonly dateRange?: DateRangeOption;
7
+ readonly market?: string;
7
8
  readonly isLoading?: boolean;
8
9
  readonly title?: string;
9
10
  readonly summaryRate?: number;
@@ -4,6 +4,7 @@ export interface SignupsChartProps {
4
4
  readonly signupData: SignupDataPoint[];
5
5
  readonly signupView: SignupViewOption;
6
6
  readonly dateRange?: DateRangeOption;
7
+ readonly market?: string;
7
8
  readonly isLoading?: boolean;
8
9
  readonly title?: string;
9
10
  readonly summaryChangePct?: number | null;
@@ -1,13 +1,13 @@
1
1
  export interface FilterOption {
2
- value: string;
3
- label: string;
2
+ readonly value: string;
3
+ readonly label: string;
4
4
  }
5
5
  export interface FilterConfig {
6
- key: string;
7
- label: string;
8
- value: string;
9
- options: FilterOption[];
10
- disabled?: boolean;
11
- icon?: 'calendar' | 'globe';
6
+ readonly key: string;
7
+ readonly label: string;
8
+ readonly value: string;
9
+ readonly options: ReadonlyArray<FilterOption>;
10
+ readonly disabled?: boolean;
11
+ readonly icon?: 'calendar' | 'globe';
12
12
  }
13
13
  export type TrendDirection = 'up' | 'down' | 'neutral';
@@ -37,6 +37,20 @@ export declare function getLocaleFromMarketCode(marketCode?: string): string;
37
37
  * @returns Formatted currency string with code as text prefix
38
38
  */
39
39
  export declare function formatMoney(value: number, currencyCode?: string, minimumFractionDigits?: number): string;
40
+ /**
41
+ * Formats a revenue value in compact abbreviated form with the currency code prefix,
42
+ * matching how the other dashboard widgets display currency (code + space), e.g.
43
+ * "USD 2,609.76" becomes "USD 2.6k". Only the numeric value is shortened; the
44
+ * currency prefix is unchanged. Falls back to the 'USD' prefix when no code is given.
45
+ * Examples:
46
+ * - formatCompactRevenue(2609.76, 'USD') → "USD 2.6k"
47
+ * - formatCompactRevenue(2800) → "USD 2.8k"
48
+ * - formatCompactRevenue(1234567) → "USD 1.2m"
49
+ * @param value - The revenue amount
50
+ * @param currencyCode - ISO 4217 currency code (e.g. 'USD', 'EUR'); defaults to 'USD'
51
+ * @returns Compact currency string with code prefix, e.g. "USD 2.6k"
52
+ */
53
+ export declare function formatCompactRevenue(value: number, currencyCode?: string): string;
40
54
  export declare function capitalizeFirstLetter(text: string): string;
41
55
  /**
42
56
  * Gets the numeric value from a SignupDataPoint based on the selected signup view.