@nuskin/react-mysite-elements 1.5.0-ui-fixes.4 → 1.5.0-ui-fixes.5
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/ShoppingDashboard.d.ts +5 -0
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +8 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.d.ts +2 -0
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersPieChart.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/WidgetMenu.d.ts +1 -0
- package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +1 -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
|
@@ -21,6 +21,7 @@ export interface MysiteDashboardWithNavigationProps {
|
|
|
21
21
|
readonly conversionData?: ConversionDataPoint[];
|
|
22
22
|
readonly signupData?: SignupDataPoint[];
|
|
23
23
|
readonly categories?: CategoryRevenue[];
|
|
24
|
+
readonly categoriesSummaryChangePct?: number | null;
|
|
24
25
|
readonly orders?: OrderHistory[];
|
|
25
26
|
readonly signups?: SignupDetail[];
|
|
26
27
|
readonly isLoading?: boolean;
|
|
@@ -16,6 +16,7 @@ export interface ShoppingDashboardProps {
|
|
|
16
16
|
readonly signupView?: SignupViewOption;
|
|
17
17
|
readonly conversionFilter?: ConversionFilterOption;
|
|
18
18
|
readonly categorySort?: CategorySortOption;
|
|
19
|
+
readonly categoriesSummaryChangePct?: number | null;
|
|
19
20
|
readonly markets?: ReadonlyArray<MarketFilterOption>;
|
|
20
21
|
readonly onDateRangeChange?: (range: DateRangeOption) => void;
|
|
21
22
|
readonly onMarketChange?: (market: MarketOption) => void;
|
|
@@ -27,6 +28,10 @@ export interface ShoppingDashboardProps {
|
|
|
27
28
|
readonly onConversionTitleClick?: () => void;
|
|
28
29
|
readonly onSignupsTitleClick?: () => void;
|
|
29
30
|
readonly onCategoriesToTitleClick?: () => void;
|
|
31
|
+
readonly onProductsExport?: () => void;
|
|
32
|
+
readonly onConversionExport?: () => void;
|
|
33
|
+
readonly onSignupsExport?: () => void;
|
|
34
|
+
readonly onCategoriesExport?: () => void;
|
|
30
35
|
}
|
|
31
36
|
export declare const ShoppingDashboard: React.FC<ShoppingDashboardProps>;
|
|
32
37
|
export default ShoppingDashboard;
|
package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts
CHANGED
|
@@ -373,6 +373,14 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
373
373
|
readonly key: "shoppingDashboard.widget.menu.fullView";
|
|
374
374
|
readonly fallback: "Full View";
|
|
375
375
|
};
|
|
376
|
+
readonly viewDetails: {
|
|
377
|
+
readonly key: "shoppingDashboard.widget.menu.viewDetails";
|
|
378
|
+
readonly fallback: "View Details";
|
|
379
|
+
};
|
|
380
|
+
readonly exportData: {
|
|
381
|
+
readonly key: "shoppingDashboard.widget.menu.exportData";
|
|
382
|
+
readonly fallback: "Export Data";
|
|
383
|
+
};
|
|
376
384
|
};
|
|
377
385
|
};
|
|
378
386
|
readonly navigation: {
|
|
@@ -9,5 +9,6 @@ export interface ConversionRateChartProps {
|
|
|
9
9
|
readonly summaryChangePct?: number | null;
|
|
10
10
|
readonly onFilterChange?: (filter: ConversionFilterOption) => void;
|
|
11
11
|
readonly onTitleClick?: () => void;
|
|
12
|
+
readonly onExport?: () => void;
|
|
12
13
|
}
|
|
13
14
|
export declare const ConversionRateChart: React.NamedExoticComponent<ConversionRateChartProps>;
|
|
@@ -7,5 +7,6 @@ export interface SignupsChartProps {
|
|
|
7
7
|
readonly title?: string;
|
|
8
8
|
readonly onViewChange?: (view: SignupViewOption) => void;
|
|
9
9
|
readonly onTitleClick?: () => void;
|
|
10
|
+
readonly onExport?: () => void;
|
|
10
11
|
}
|
|
11
12
|
export declare const SignupsChart: React.NamedExoticComponent<SignupsChartProps>;
|
|
@@ -5,6 +5,7 @@ export interface CategoriesFullViewProps {
|
|
|
5
5
|
readonly dateRange: DateRangeOption;
|
|
6
6
|
readonly market: MarketOption;
|
|
7
7
|
readonly categorySort: CategorySortOption;
|
|
8
|
+
readonly summaryChangePct?: number | null;
|
|
8
9
|
readonly markets?: ReadonlyArray<MarketFilterOption>;
|
|
9
10
|
readonly isLoading?: boolean;
|
|
10
11
|
readonly onBack?: () => void;
|
|
@@ -5,7 +5,9 @@ export interface TopCategoriesPieChartProps {
|
|
|
5
5
|
readonly categorySort: CategorySortOption;
|
|
6
6
|
readonly isLoading?: boolean;
|
|
7
7
|
readonly title?: string;
|
|
8
|
+
readonly summaryChangePct?: number | null;
|
|
8
9
|
readonly onSortChange?: (sort: CategorySortOption) => void;
|
|
9
10
|
readonly onTitleClick?: () => void;
|
|
11
|
+
readonly onExport?: () => void;
|
|
10
12
|
}
|
|
11
13
|
export declare const TopCategoriesPieChart: React.NamedExoticComponent<TopCategoriesPieChartProps>;
|
package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersPieChart.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export interface TopPerformingOffersPieChartProps {
|
|
|
7
7
|
readonly title?: string;
|
|
8
8
|
readonly onSortChange?: (sort: OfferSortOption) => void;
|
|
9
9
|
readonly onTitleClick?: () => void;
|
|
10
|
+
readonly onExport?: () => void;
|
|
10
11
|
}
|
|
11
12
|
export declare const TopPerformingOffersPieChart: React.NamedExoticComponent<TopPerformingOffersPieChartProps>;
|
|
@@ -7,5 +7,6 @@ export interface TopSellingProductsListProps {
|
|
|
7
7
|
readonly maxProducts?: number;
|
|
8
8
|
readonly onSortChange?: (sort: ProductSortOption) => void;
|
|
9
9
|
readonly onTitleClick?: () => void;
|
|
10
|
+
readonly onExport?: () => void;
|
|
10
11
|
}
|
|
11
12
|
export declare const TopSellingProductsList: React.NamedExoticComponent<TopSellingProductsListProps>;
|
|
@@ -7,3 +7,4 @@ export declare function usePaginatedItems<T>(items: T[], currentPage: number, it
|
|
|
7
7
|
pageItems: T[];
|
|
8
8
|
};
|
|
9
9
|
export declare function formatMoney(value: number, currencyCode?: string, locale?: string, fractionDigits?: number): string;
|
|
10
|
+
export declare function capitalizeFirstLetter(text: string): string;
|