@nuskin/react-mysite-elements 1.5.0-ui-fixes.12 → 1.5.0-ui-fixes.14
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/common/shopping-dashboard/MysiteDashboardWithNavigation.d.ts +1 -0
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +6 -6
- package/dist/common/shopping-dashboard/fixtures/index.d.ts +1 -1
- package/dist/common/shopping-dashboard/fixtures/mockDashboardData.d.ts +2 -2
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.d.ts +1 -0
- package/dist/common/shopping-dashboard/stories/ConversionRateChart.stories.d.ts +1 -1
- package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +2 -2
- package/dist/common/shopping-dashboard/utils/conversionFilter.d.ts +3 -0
- package/dist/common/shopping-dashboard/utils/conversionSeries.d.ts +6 -0
- package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export interface MysiteDashboardWithNavigationProps {
|
|
|
19
19
|
readonly stats?: DashboardStats | null;
|
|
20
20
|
readonly topProducts?: TopProduct[];
|
|
21
21
|
readonly conversionData?: ConversionDataPoint[];
|
|
22
|
+
readonly conversionPriceTypeTrend?: ConversionDataPoint[];
|
|
22
23
|
readonly signupData?: SignupDataPoint[];
|
|
23
24
|
readonly categories?: CategoryRevenue[];
|
|
24
25
|
readonly categoriesSummaryChangePct?: number | null;
|
package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts
CHANGED
|
@@ -97,13 +97,13 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
readonly conversionType: {
|
|
100
|
-
readonly
|
|
101
|
-
readonly key: "shoppingDashboard.filter.conversionType.
|
|
102
|
-
readonly fallback: "
|
|
100
|
+
readonly retail: {
|
|
101
|
+
readonly key: "shoppingDashboard.filter.conversionType.retail";
|
|
102
|
+
readonly fallback: "Retail";
|
|
103
103
|
};
|
|
104
|
-
readonly
|
|
105
|
-
readonly key: "shoppingDashboard.filter.conversionType.
|
|
106
|
-
readonly fallback: "
|
|
104
|
+
readonly member: {
|
|
105
|
+
readonly key: "shoppingDashboard.filter.conversionType.member";
|
|
106
|
+
readonly fallback: "Member";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { mockStats, mockTopProducts, mockConversionData,
|
|
1
|
+
export { mockStats, mockTopProducts, mockConversionData, mockConversionDataRetail, mockConversionDataMember, mockSignupData, mockCategories, mockOrders, mockSignupDetails, } from './mockDashboardData';
|
|
@@ -2,8 +2,8 @@ import type { DashboardStats, TopProduct, ConversionDataPoint, SignupDataPoint,
|
|
|
2
2
|
export declare const mockStats: DashboardStats;
|
|
3
3
|
export declare const mockTopProducts: TopProduct[];
|
|
4
4
|
export declare const mockConversionData: ConversionDataPoint[];
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const mockConversionDataRetail: ConversionDataPoint[];
|
|
6
|
+
export declare const mockConversionDataMember: ConversionDataPoint[];
|
|
7
7
|
export declare const mockSignupData: SignupDataPoint[];
|
|
8
8
|
export declare const mockCategories: CategoryRevenue[];
|
|
9
9
|
export declare const mockOrders: OrderHistory[];
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ConversionDataPoint, OrderHistory, DateRangeOption, MarketOption, MarketFilterOption, ConversionFilterOption } from '../../types.d';
|
|
3
3
|
export interface ConversionRateFullViewProps {
|
|
4
4
|
readonly conversionData: ConversionDataPoint[];
|
|
5
|
+
readonly priceTypeTrend?: ConversionDataPoint[];
|
|
5
6
|
readonly orders: OrderHistory[];
|
|
6
7
|
readonly dateRange: DateRangeOption;
|
|
7
8
|
readonly market: MarketOption;
|
|
@@ -5,6 +5,6 @@ type Story = StoryObj<ComponentType>;
|
|
|
5
5
|
declare const _default: Meta<ComponentType>;
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const Default: Story;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const RetailFilter: Story;
|
|
9
|
+
export declare const MemberFilter: Story;
|
|
10
10
|
export declare const Loading: Story;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ConversionDataPoint, ConversionFilterOption } from '../types.d';
|
|
2
|
+
export declare function matchesConversionFilter(point: ConversionDataPoint, filter: ConversionFilterOption): boolean;
|
|
3
|
+
export declare function filterConversionData(conversionData: readonly ConversionDataPoint[], filter: ConversionFilterOption): ConversionDataPoint[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConversionDataPoint } from '../types.d';
|
|
2
|
+
export declare const PRICE_TYPE_SERIES_PREFIX = "rate__";
|
|
3
|
+
export declare function priceTypeSeriesKey(priceType: string): string;
|
|
4
|
+
export declare function priceTypeColor(priceType: string, index: number): string;
|
|
5
|
+
export declare function collectPriceTypes(conversionData: readonly ConversionDataPoint[]): string[];
|
|
6
|
+
export declare function toSeriesPoint(point: ConversionDataPoint, priceTypes: readonly string[]): ConversionDataPoint & Record<string, unknown>;
|
|
@@ -6,6 +6,12 @@ export declare function usePaginatedItems<T>(items: T[], currentPage: number, it
|
|
|
6
6
|
totalPages: number;
|
|
7
7
|
pageItems: T[];
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Gets the appropriate locale for displaying currency based on the market/region code
|
|
11
|
+
* @param marketCode - The market code (e.g., 'US', 'IN', 'CA')
|
|
12
|
+
* @returns The locale string (e.g., 'en-US', 'en-IN', 'en-CA')
|
|
13
|
+
*/
|
|
14
|
+
export declare function getLocaleFromMarketCode(marketCode?: string): string;
|
|
9
15
|
export declare function formatMoney(value: number, currencyCode?: string, locale?: string, fractionDigits?: number): string;
|
|
10
16
|
export declare function capitalizeFirstLetter(text: string): string;
|
|
11
17
|
/**
|