@nuskin/react-mysite-elements 1.5.0-ui-fixes.11 → 1.5.0
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/README.md +0 -226
- package/dist/common/carousel/ProductTabCarousel.d.ts +1 -1
- package/dist/common/headers/MysiteHero.d.ts +6 -2
- package/dist/common/headers/index.d.ts +1 -0
- package/dist/common/index.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- 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/dist/ui/index.d.ts +1 -0
- package/package.json +11 -29
- package/dist/common/icon/icons/SocialMediaIcons.styled.d.ts +0 -5
- package/dist/common/shopping-dashboard/MysiteDashboardWithNavigation.d.ts +0 -55
- package/dist/common/shopping-dashboard/PoDashboardWithNavigation.d.ts +0 -4
- package/dist/common/shopping-dashboard/ProductOfferDashboard.d.ts +0 -4
- package/dist/common/shopping-dashboard/ProductOfferDashboard.styled.d.ts +0 -20
- package/dist/common/shopping-dashboard/ShoppingDashboard.d.ts +0 -37
- package/dist/common/shopping-dashboard/ShoppingDashboard.styled.d.ts +0 -20
- package/dist/common/shopping-dashboard/TranslationContext.d.ts +0 -10
- package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts +0 -242
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +0 -546
- package/dist/common/shopping-dashboard/TranslationKeys/translationResolver.d.ts +0 -8
- package/dist/common/shopping-dashboard/fixtures/index.d.ts +0 -1
- package/dist/common/shopping-dashboard/fixtures/mockDashboardData.d.ts +0 -10
- package/dist/common/shopping-dashboard/fixtures/mockProductOfferData.d.ts +0 -8
- package/dist/common/shopping-dashboard/hooks/useProductOfferWidgetExports.d.ts +0 -15
- package/dist/common/shopping-dashboard/index.d.ts +0 -47
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.styled.d.ts +0 -62
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.styled.d.ts +0 -50
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/DashboardHeader.d.ts +0 -14
- package/dist/common/shopping-dashboard/shared/DashboardHeader.styled.d.ts +0 -48
- package/dist/common/shopping-dashboard/shared/DataTable.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/DataTable.styled.d.ts +0 -42
- package/dist/common/shopping-dashboard/shared/FilterBar.d.ts +0 -7
- package/dist/common/shopping-dashboard/shared/FilterBar.styled.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/FullViewComponents.styled.d.ts +0 -52
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.d.ts +0 -8
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.styled.d.ts +0 -121
- package/dist/common/shopping-dashboard/shared/PageHeader.d.ts +0 -32
- package/dist/common/shopping-dashboard/shared/PageHeader.styled.d.ts +0 -56
- package/dist/common/shopping-dashboard/shared/Pagination.d.ts +0 -9
- package/dist/common/shopping-dashboard/shared/Pagination.styled.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.styled.d.ts +0 -56
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.d.ts +0 -24
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.styled.d.ts +0 -25
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/StatsCard.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/StatsCard.styled.d.ts +0 -66
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.d.ts +0 -16
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.styled.d.ts +0 -79
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.styled.d.ts +0 -100
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.styled.d.ts +0 -86
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersPieChart.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.styled.d.ts +0 -48
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.styled.d.ts +0 -74
- package/dist/common/shopping-dashboard/shared/WidgetMenu.d.ts +0 -7
- package/dist/common/shopping-dashboard/shared/WidgetMenu.styled.d.ts +0 -5
- package/dist/common/shopping-dashboard/shared/types.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/useViewport.d.ts +0 -2
- package/dist/common/shopping-dashboard/specs/CategoriesFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ConversionRateChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ConversionRateFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/DashboardHeader.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/DataTable.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/FilterBar.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/MysiteDashboardWithNavigation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/Pagination.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/PoDashboardWithNavigation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ProductOfferDashboard.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ProductsFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ShoppingDashboard.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/SignupsFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopCategoriesPieChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopPerformingOffersFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopPerformingOffersPieChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopSellingProductsList.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/WidgetMenu.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/dataUtils.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/dateFormat.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/excelExport.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/marketOptions.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/productOfferExport.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/productOfferTranslation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/translationResolver.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/trendUtils.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/useProductOfferWidgetExports.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/stories/CategoriesFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/ConversionRateChart.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/DashboardHeader.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/DataTable.stories.d.ts +0 -8
- package/dist/common/shopping-dashboard/stories/PageHeader.stories.d.ts +0 -8
- package/dist/common/shopping-dashboard/stories/Pagination.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ProductOfferDashboard.stories.d.ts +0 -13
- package/dist/common/shopping-dashboard/stories/ProductsFullView.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ShoppingDashboard.stories.d.ts +0 -13
- package/dist/common/shopping-dashboard/stories/SignupsChart.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/SignupsFullView.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/StatsCard.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/stories/TopCategoriesPieChart.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersPieChart.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/stories/TopSellingProductsList.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/utils/comparisonTextUtils.d.ts +0 -8
- package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +0 -24
- package/dist/common/shopping-dashboard/utils/dateConstants.d.ts +0 -6
- package/dist/common/shopping-dashboard/utils/dateFormat.d.ts +0 -23
- package/dist/common/shopping-dashboard/utils/excelExport.d.ts +0 -14
- package/dist/common/shopping-dashboard/utils/marketOptions.d.ts +0 -4
- package/dist/common/shopping-dashboard/utils/productOfferExport.d.ts +0 -3
- package/dist/common/shopping-dashboard/utils/trendUtils.d.ts +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../common';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/react-mysite-elements",
|
|
3
|
-
"version": "1.5.0
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A React based component library for mysite",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,8 +21,6 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build:package": "tsup",
|
|
24
|
-
"build": "tsup",
|
|
25
|
-
"build:watch": "tsup --watch",
|
|
26
24
|
"build-dev": "yarn build-storybook",
|
|
27
25
|
"build-test": "yarn build-storybook",
|
|
28
26
|
"build-prod": "yarn build-storybook --mode=production",
|
|
@@ -41,17 +39,17 @@
|
|
|
41
39
|
"@mui/material": "5.14.16",
|
|
42
40
|
"@types/react": "18.3.22",
|
|
43
41
|
"@types/react-dom": "18.3.7",
|
|
44
|
-
"exceljs": "4.4.0",
|
|
45
42
|
"react-circular-progressbar": "2.2.0",
|
|
46
43
|
"react-icons": "4.12.0",
|
|
47
|
-
"react-slick": "0.29.0"
|
|
48
|
-
"recharts": "^2.15.0"
|
|
44
|
+
"react-slick": "0.29.0"
|
|
49
45
|
},
|
|
50
46
|
"devDependencies": {
|
|
51
47
|
"@babel/core": "7.27.1",
|
|
52
48
|
"@babel/preset-env": "7.27.2",
|
|
53
49
|
"@babel/preset-react": "7.27.1",
|
|
54
50
|
"@babel/preset-typescript": "7.27.1",
|
|
51
|
+
"@nuskin/foundation-theme": "1.x",
|
|
52
|
+
"@nuskin/foundation-ui-components": "2.1.2",
|
|
55
53
|
"@storybook/addon-docs": "9.1.10",
|
|
56
54
|
"@storybook/jest": "0.2.3",
|
|
57
55
|
"@storybook/nextjs": "9.1.10",
|
|
@@ -68,11 +66,10 @@
|
|
|
68
66
|
"@types/react-test-renderer": "18.3.1",
|
|
69
67
|
"@typescript-eslint/eslint-plugin": "8.32.1",
|
|
70
68
|
"@typescript-eslint/parser": "8.32.1",
|
|
71
|
-
"@nuskin/foundation-theme": "1.x",
|
|
72
|
-
"@nuskin/foundation-ui-components": "2.1.2",
|
|
73
69
|
"babel-jest": "29.7.0",
|
|
74
70
|
"babel-loader": "9.2.1",
|
|
75
71
|
"babel-plugin-emotion": "11.0.0",
|
|
72
|
+
"core-js": "^3.50.0",
|
|
76
73
|
"eslint": "8.57.1",
|
|
77
74
|
"eslint-config-next": "15.5.4",
|
|
78
75
|
"eslint-config-prettier": "10.1.5",
|
|
@@ -86,18 +83,17 @@
|
|
|
86
83
|
"jest-environment-jsdom": "29.7.0",
|
|
87
84
|
"next": "15.5.4",
|
|
88
85
|
"prettier": "3.5.3",
|
|
86
|
+
"react": "18.3.1",
|
|
87
|
+
"react-dom": "18.3.1",
|
|
89
88
|
"storybook": "9.1.10",
|
|
90
89
|
"tsup": "8.5.0",
|
|
91
|
-
"typescript": "5.8.3"
|
|
92
|
-
"react": "18.3.1",
|
|
93
|
-
"react-dom": "18.3.1"
|
|
90
|
+
"typescript": "5.8.3"
|
|
94
91
|
},
|
|
95
92
|
"peerDependencies": {
|
|
96
93
|
"@nuskin/foundation-theme": "1.x",
|
|
97
94
|
"@nuskin/foundation-ui-components": "2.x",
|
|
98
95
|
"react": "^18.3.1",
|
|
99
96
|
"react-dom": "^18.3.1",
|
|
100
|
-
"recharts": "^2.0.0",
|
|
101
97
|
"typescript": "^5.4.2"
|
|
102
98
|
},
|
|
103
99
|
"resolutions": {
|
|
@@ -105,8 +101,7 @@
|
|
|
105
101
|
"@nuskin/foundation-ui-components": "2.x",
|
|
106
102
|
"esbuild": "0.25.0",
|
|
107
103
|
"@babel/runtime": "7.26.10",
|
|
108
|
-
"@babel/helpers": "7.26.10"
|
|
109
|
-
"lodash": "^4.18.0"
|
|
104
|
+
"@babel/helpers": "7.26.10"
|
|
110
105
|
},
|
|
111
106
|
"files": [
|
|
112
107
|
"dist",
|
|
@@ -114,26 +109,13 @@
|
|
|
114
109
|
"package.json"
|
|
115
110
|
],
|
|
116
111
|
"readme": "./README.md",
|
|
112
|
+
"sideEffects": false,
|
|
117
113
|
"exports": {
|
|
118
114
|
".": {
|
|
119
115
|
"types": "./dist/index.d.ts",
|
|
120
116
|
"import": "./dist/index.mjs",
|
|
121
117
|
"require": "./dist/index.js"
|
|
122
118
|
},
|
|
123
|
-
"
|
|
124
|
-
"types": "./dist/*/index.d.ts",
|
|
125
|
-
"import": "./dist/*/index.mjs",
|
|
126
|
-
"require": "./dist/*/index.js"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"typesVersions": {
|
|
130
|
-
"*": {
|
|
131
|
-
"*": [
|
|
132
|
-
"./dist/*/index.d.ts"
|
|
133
|
-
],
|
|
134
|
-
".": [
|
|
135
|
-
"./dist/index.d.ts"
|
|
136
|
-
]
|
|
137
|
-
}
|
|
119
|
+
"./package.json": "./package.json"
|
|
138
120
|
}
|
|
139
121
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
|
-
brandColor: string;
|
|
5
|
-
}, {}, {}>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TranslateFn } from './TranslationKeys/translationResolver';
|
|
3
|
-
import type { DashboardStats, TopProduct, ConversionDataPoint, SignupDataPoint, CategoryRevenue, OrderHistory, SignupDetail, DateRangeOption, MarketOption, MarketFilterOption, ProductSortOption, SignupViewOption, ConversionFilterOption, CategorySortOption, FullViewWidgetType } from './types.d';
|
|
4
|
-
export type MysiteDashboardView = 'dashboard' | FullViewWidgetType;
|
|
5
|
-
export interface MysiteDashboardHistoryLocation {
|
|
6
|
-
readonly pathname?: string;
|
|
7
|
-
readonly search?: string;
|
|
8
|
-
readonly hash?: string;
|
|
9
|
-
readonly state?: unknown;
|
|
10
|
-
}
|
|
11
|
-
export interface MysiteDashboardHistoryAdapter {
|
|
12
|
-
readonly location?: MysiteDashboardHistoryLocation;
|
|
13
|
-
push(location: MysiteDashboardHistoryLocation): void;
|
|
14
|
-
replace(location: MysiteDashboardHistoryLocation): void;
|
|
15
|
-
goBack(): void;
|
|
16
|
-
listen(listener: (location: MysiteDashboardHistoryLocation, action: string) => void): () => void;
|
|
17
|
-
}
|
|
18
|
-
export interface MysiteDashboardWithNavigationProps {
|
|
19
|
-
readonly stats?: DashboardStats | null;
|
|
20
|
-
readonly topProducts?: TopProduct[];
|
|
21
|
-
readonly conversionData?: ConversionDataPoint[];
|
|
22
|
-
readonly signupData?: SignupDataPoint[];
|
|
23
|
-
readonly categories?: CategoryRevenue[];
|
|
24
|
-
readonly categoriesSummaryChangePct?: number | null;
|
|
25
|
-
readonly orders?: OrderHistory[];
|
|
26
|
-
readonly signups?: SignupDetail[];
|
|
27
|
-
readonly isLoading?: boolean;
|
|
28
|
-
readonly error?: string | null;
|
|
29
|
-
readonly shopTitle?: string;
|
|
30
|
-
readonly className?: string;
|
|
31
|
-
readonly translate?: TranslateFn;
|
|
32
|
-
readonly initialDateRange?: DateRangeOption;
|
|
33
|
-
readonly initialMarket?: MarketOption;
|
|
34
|
-
readonly initialProductSort?: ProductSortOption;
|
|
35
|
-
readonly initialSignupView?: SignupViewOption;
|
|
36
|
-
readonly initialConversionFilter?: ConversionFilterOption;
|
|
37
|
-
readonly initialCategorySort?: CategorySortOption;
|
|
38
|
-
readonly markets?: ReadonlyArray<MarketFilterOption>;
|
|
39
|
-
readonly historyAdapter?: MysiteDashboardHistoryAdapter;
|
|
40
|
-
readonly historyStateKey?: string;
|
|
41
|
-
readonly resetToDashboardOnMount?: boolean;
|
|
42
|
-
readonly onDateRangeChange?: (range: DateRangeOption) => void;
|
|
43
|
-
readonly onMarketChange?: (market: MarketOption) => void;
|
|
44
|
-
readonly onProductSortChange?: (sort: ProductSortOption) => void;
|
|
45
|
-
readonly onSignupViewChange?: (view: SignupViewOption) => void;
|
|
46
|
-
readonly onConversionFilterChange?: (filter: ConversionFilterOption) => void;
|
|
47
|
-
readonly onCategorySortChange?: (sort: CategorySortOption) => void;
|
|
48
|
-
readonly onViewChange?: (view: MysiteDashboardView) => void;
|
|
49
|
-
readonly onProductsExport?: () => void;
|
|
50
|
-
readonly onConversionExport?: () => void;
|
|
51
|
-
readonly onSignupsExport?: () => void;
|
|
52
|
-
readonly onCategoriesExport?: () => void;
|
|
53
|
-
}
|
|
54
|
-
export declare const MysiteDashboardWithNavigation: React.FC<MysiteDashboardWithNavigationProps>;
|
|
55
|
-
export default MysiteDashboardWithNavigation;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const PoDashboardContainer: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export declare const TopChartsRow: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const StatsCardStack: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const BottomChartsRow: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const ErrorContainer: import("@emotion/styled").StyledComponent<{
|
|
18
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
-
as?: React.ElementType;
|
|
20
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DashboardStats, TopProduct, ConversionDataPoint, SignupDataPoint, CategoryRevenue, DateRangeOption, MarketOption, MarketFilterOption, ProductSortOption, SignupViewOption, ConversionFilterOption, CategorySortOption } from './types.d';
|
|
3
|
-
export interface ShoppingDashboardProps {
|
|
4
|
-
readonly stats?: DashboardStats | null;
|
|
5
|
-
readonly topProducts?: TopProduct[];
|
|
6
|
-
readonly conversionData?: ConversionDataPoint[];
|
|
7
|
-
readonly signupData?: SignupDataPoint[];
|
|
8
|
-
readonly categories?: CategoryRevenue[];
|
|
9
|
-
readonly isLoading?: boolean;
|
|
10
|
-
readonly error?: string | null;
|
|
11
|
-
readonly shopTitle?: string;
|
|
12
|
-
readonly className?: string;
|
|
13
|
-
readonly dateRange?: DateRangeOption;
|
|
14
|
-
readonly market?: MarketOption;
|
|
15
|
-
readonly productSort?: ProductSortOption;
|
|
16
|
-
readonly signupView?: SignupViewOption;
|
|
17
|
-
readonly conversionFilter?: ConversionFilterOption;
|
|
18
|
-
readonly categorySort?: CategorySortOption;
|
|
19
|
-
readonly categoriesSummaryChangePct?: number | null;
|
|
20
|
-
readonly markets?: ReadonlyArray<MarketFilterOption>;
|
|
21
|
-
readonly onDateRangeChange?: (range: DateRangeOption) => void;
|
|
22
|
-
readonly onMarketChange?: (market: MarketOption) => void;
|
|
23
|
-
readonly onProductSortChange?: (sort: ProductSortOption) => void;
|
|
24
|
-
readonly onSignupViewChange?: (view: SignupViewOption) => void;
|
|
25
|
-
readonly onConversionFilterChange?: (filter: ConversionFilterOption) => void;
|
|
26
|
-
readonly onCategorySortChange?: (sort: CategorySortOption) => void;
|
|
27
|
-
readonly onProductsTitleClick?: () => void;
|
|
28
|
-
readonly onConversionTitleClick?: () => void;
|
|
29
|
-
readonly onSignupsTitleClick?: () => void;
|
|
30
|
-
readonly onCategoriesToTitleClick?: () => void;
|
|
31
|
-
readonly onProductsExport?: () => void;
|
|
32
|
-
readonly onConversionExport?: () => void;
|
|
33
|
-
readonly onSignupsExport?: () => void;
|
|
34
|
-
readonly onCategoriesExport?: () => void;
|
|
35
|
-
}
|
|
36
|
-
export declare const ShoppingDashboard: React.FC<ShoppingDashboardProps>;
|
|
37
|
-
export default ShoppingDashboard;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const DashboardContainer: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export declare const StatsRow: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const WidgetContainer: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const TwoColumnGrid: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const ErrorContainer: import("@emotion/styled").StyledComponent<{
|
|
18
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
-
as?: React.ElementType;
|
|
20
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TranslateFn, type TranslationEntry } from './TranslationKeys/translationResolver';
|
|
3
|
-
export declare function useTranslationResolver(translate?: TranslateFn): void;
|
|
4
|
-
export interface TranslationProviderProps {
|
|
5
|
-
readonly translate?: TranslateFn;
|
|
6
|
-
readonly children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const TranslationProvider: React.FC<TranslationProviderProps>;
|
|
9
|
-
export declare function useTranslation(): (entry: TranslationEntry) => string;
|
|
10
|
-
export type { TranslateFn, TranslationEntry };
|
package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
type TranslationEntry = {
|
|
2
|
-
readonly key: string;
|
|
3
|
-
readonly fallback: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const ProductOfferDashboardTranslationKeys: {
|
|
6
|
-
readonly title: {
|
|
7
|
-
readonly key: "productOfferDashboard.title";
|
|
8
|
-
readonly fallback: "Performance Overview";
|
|
9
|
-
};
|
|
10
|
-
readonly error: {
|
|
11
|
-
readonly key: "productOfferDashboard.error";
|
|
12
|
-
readonly fallback: "Failed to load dashboard data. Please try again.";
|
|
13
|
-
};
|
|
14
|
-
readonly stats: {
|
|
15
|
-
readonly revenue: {
|
|
16
|
-
readonly key: "productOfferDashboard.stats.revenue";
|
|
17
|
-
readonly fallback: "Total Revenue";
|
|
18
|
-
};
|
|
19
|
-
readonly offersPurchased: {
|
|
20
|
-
readonly key: "productOfferDashboard.stats.offersPurchased";
|
|
21
|
-
readonly fallback: "Offers Purchased";
|
|
22
|
-
};
|
|
23
|
-
readonly conversionRate: {
|
|
24
|
-
readonly key: "productOfferDashboard.stats.conversionRate";
|
|
25
|
-
readonly fallback: "Conversion Rate";
|
|
26
|
-
};
|
|
27
|
-
readonly trendUp: {
|
|
28
|
-
readonly key: "productOfferDashboard.stats.trendUp";
|
|
29
|
-
readonly fallback: "Trending up";
|
|
30
|
-
};
|
|
31
|
-
readonly trendDown: {
|
|
32
|
-
readonly key: "productOfferDashboard.stats.trendDown";
|
|
33
|
-
readonly fallback: "Trending down";
|
|
34
|
-
};
|
|
35
|
-
readonly trendNeutral: {
|
|
36
|
-
readonly key: "productOfferDashboard.stats.trendNeutral";
|
|
37
|
-
readonly fallback: "No change";
|
|
38
|
-
};
|
|
39
|
-
readonly comparedTo: {
|
|
40
|
-
readonly key: "productOfferDashboard.stats.comparedTo";
|
|
41
|
-
readonly fallback: "compared to this time last month";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly filter: {
|
|
45
|
-
readonly dateRange: {
|
|
46
|
-
readonly label: {
|
|
47
|
-
readonly key: "productOfferDashboard.filter.dateRange.label";
|
|
48
|
-
readonly fallback: "Date Range";
|
|
49
|
-
};
|
|
50
|
-
readonly last7days: {
|
|
51
|
-
readonly key: "productOfferDashboard.filter.dateRange.last7days";
|
|
52
|
-
readonly fallback: "Last 7 Days";
|
|
53
|
-
};
|
|
54
|
-
readonly last30days: {
|
|
55
|
-
readonly key: "productOfferDashboard.filter.dateRange.last30days";
|
|
56
|
-
readonly fallback: "Last 30 Days";
|
|
57
|
-
};
|
|
58
|
-
readonly last90days: {
|
|
59
|
-
readonly key: "productOfferDashboard.filter.dateRange.last90days";
|
|
60
|
-
readonly fallback: "Last 90 Days";
|
|
61
|
-
};
|
|
62
|
-
readonly thisMonth: {
|
|
63
|
-
readonly key: "productOfferDashboard.filter.dateRange.thisMonth";
|
|
64
|
-
readonly fallback: "This Month";
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
readonly market: {
|
|
68
|
-
readonly label: {
|
|
69
|
-
readonly key: "productOfferDashboard.filter.market.label";
|
|
70
|
-
readonly fallback: "Market";
|
|
71
|
-
};
|
|
72
|
-
readonly all: {
|
|
73
|
-
readonly key: "productOfferDashboard.filter.market.all";
|
|
74
|
-
readonly fallback: "All Markets";
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
readonly offerSort: {
|
|
78
|
-
readonly byRevenue: {
|
|
79
|
-
readonly key: "productOfferDashboard.filter.offerSort.byRevenue";
|
|
80
|
-
readonly fallback: "Revenue";
|
|
81
|
-
};
|
|
82
|
-
readonly byUnits: {
|
|
83
|
-
readonly key: "productOfferDashboard.filter.offerSort.byUnits";
|
|
84
|
-
readonly fallback: "Units";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
readonly productSort: {
|
|
88
|
-
readonly byUnits: {
|
|
89
|
-
readonly key: "productOfferDashboard.filter.productSort.byUnits";
|
|
90
|
-
readonly fallback: "Units";
|
|
91
|
-
};
|
|
92
|
-
readonly byRevenue: {
|
|
93
|
-
readonly key: "productOfferDashboard.filter.productSort.byRevenue";
|
|
94
|
-
readonly fallback: "Revenue";
|
|
95
|
-
};
|
|
96
|
-
readonly byVolume: {
|
|
97
|
-
readonly key: "productOfferDashboard.filter.productSort.byVolume";
|
|
98
|
-
readonly fallback: "Volume";
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
readonly conversionFilter: {
|
|
102
|
-
readonly overall: {
|
|
103
|
-
readonly key: "productOfferDashboard.filter.conversionFilter.overall";
|
|
104
|
-
readonly fallback: "Overall";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
readonly widget: {
|
|
109
|
-
readonly topProducts: {
|
|
110
|
-
readonly title: {
|
|
111
|
-
readonly key: "productOfferDashboard.widget.topProducts.title";
|
|
112
|
-
readonly fallback: "Top Selling Products";
|
|
113
|
-
};
|
|
114
|
-
readonly emptyState: {
|
|
115
|
-
readonly key: "productOfferDashboard.widget.topProducts.emptyState";
|
|
116
|
-
readonly fallback: "No products data available";
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
readonly conversionRate: {
|
|
120
|
-
readonly title: {
|
|
121
|
-
readonly key: "productOfferDashboard.widget.conversionRate.title";
|
|
122
|
-
readonly fallback: "Conversion Rate";
|
|
123
|
-
};
|
|
124
|
-
readonly subtitle: {
|
|
125
|
-
readonly key: "productOfferDashboard.widget.conversionRate.subtitle";
|
|
126
|
-
readonly fallback: "Orders ÷ Site visits";
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
readonly topPerformingOffers: {
|
|
130
|
-
readonly title: {
|
|
131
|
-
readonly key: "productOfferDashboard.widget.topPerformingOffers.title";
|
|
132
|
-
readonly fallback: "Top Performing Offers";
|
|
133
|
-
};
|
|
134
|
-
readonly totalRevenue: {
|
|
135
|
-
readonly key: "productOfferDashboard.widget.topPerformingOffers.totalRevenue";
|
|
136
|
-
readonly fallback: "Total revenue";
|
|
137
|
-
};
|
|
138
|
-
readonly emptyState: {
|
|
139
|
-
readonly key: "productOfferDashboard.widget.topPerformingOffers.emptyState";
|
|
140
|
-
readonly fallback: "No offers data available";
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly menu: {
|
|
144
|
-
readonly fullView: {
|
|
145
|
-
readonly key: "productOfferDashboard.widget.menu.fullView";
|
|
146
|
-
readonly fallback: "Full View";
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
readonly navigation: {
|
|
151
|
-
readonly back: {
|
|
152
|
-
readonly key: "productOfferDashboard.navigation.back";
|
|
153
|
-
readonly fallback: "Back to Dashboard";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
readonly ariaLabel: {
|
|
157
|
-
readonly dashboard: {
|
|
158
|
-
readonly key: "productOfferDashboard.ariaLabel.dashboard";
|
|
159
|
-
readonly fallback: "Product Offer Performance Dashboard";
|
|
160
|
-
};
|
|
161
|
-
readonly statsCard: {
|
|
162
|
-
readonly key: "productOfferDashboard.ariaLabel.statsCard";
|
|
163
|
-
readonly fallback: "Performance metric";
|
|
164
|
-
};
|
|
165
|
-
readonly conversionChart: {
|
|
166
|
-
readonly key: "productOfferDashboard.ariaLabel.conversionChart";
|
|
167
|
-
readonly fallback: "Conversion rate chart";
|
|
168
|
-
};
|
|
169
|
-
readonly topProducts: {
|
|
170
|
-
readonly key: "productOfferDashboard.ariaLabel.topProducts";
|
|
171
|
-
readonly fallback: "Top selling products";
|
|
172
|
-
};
|
|
173
|
-
readonly topOffers: {
|
|
174
|
-
readonly key: "productOfferDashboard.ariaLabel.topOffers";
|
|
175
|
-
readonly fallback: "Top performing offers chart";
|
|
176
|
-
};
|
|
177
|
-
readonly widgetMenu: {
|
|
178
|
-
readonly key: "productOfferDashboard.ariaLabel.widgetMenu";
|
|
179
|
-
readonly fallback: "Widget options menu";
|
|
180
|
-
};
|
|
181
|
-
readonly filterDateRange: {
|
|
182
|
-
readonly key: "productOfferDashboard.ariaLabel.filterDateRange";
|
|
183
|
-
readonly fallback: "Filter by date range";
|
|
184
|
-
};
|
|
185
|
-
readonly filterMarket: {
|
|
186
|
-
readonly key: "productOfferDashboard.ariaLabel.filterMarket";
|
|
187
|
-
readonly fallback: "Filter by market";
|
|
188
|
-
};
|
|
189
|
-
readonly backButton: {
|
|
190
|
-
readonly key: "productOfferDashboard.ariaLabel.backButton";
|
|
191
|
-
readonly fallback: "Back to dashboard overview";
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
readonly fullView: {
|
|
195
|
-
readonly topOffers: {
|
|
196
|
-
readonly title: {
|
|
197
|
-
readonly key: "productOfferDashboard.fullView.topOffers.title";
|
|
198
|
-
readonly fallback: "Top Performing Offers";
|
|
199
|
-
};
|
|
200
|
-
readonly columnName: {
|
|
201
|
-
readonly key: "productOfferDashboard.fullView.topOffers.columnName";
|
|
202
|
-
readonly fallback: "Offer Name";
|
|
203
|
-
};
|
|
204
|
-
readonly columnRevenue: {
|
|
205
|
-
readonly key: "productOfferDashboard.fullView.topOffers.columnRevenue";
|
|
206
|
-
readonly fallback: "Revenue";
|
|
207
|
-
};
|
|
208
|
-
readonly columnPercentage: {
|
|
209
|
-
readonly key: "productOfferDashboard.fullView.topOffers.columnPercentage";
|
|
210
|
-
readonly fallback: "Share";
|
|
211
|
-
};
|
|
212
|
-
readonly columnTrend: {
|
|
213
|
-
readonly key: "productOfferDashboard.fullView.topOffers.columnTrend";
|
|
214
|
-
readonly fallback: "Trend";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
readonly defaults: {
|
|
219
|
-
readonly trendZero: {
|
|
220
|
-
readonly key: "productOfferDashboard.defaults.trendZero";
|
|
221
|
-
readonly fallback: "+0%";
|
|
222
|
-
};
|
|
223
|
-
readonly noData: {
|
|
224
|
-
readonly key: "productOfferDashboard.defaults.noData";
|
|
225
|
-
readonly fallback: "--";
|
|
226
|
-
};
|
|
227
|
-
readonly byRevenue: {
|
|
228
|
-
readonly key: "productOfferDashboard.defaults.byRevenue";
|
|
229
|
-
readonly fallback: "Revenue";
|
|
230
|
-
};
|
|
231
|
-
readonly byUnits: {
|
|
232
|
-
readonly key: "productOfferDashboard.defaults.byUnits";
|
|
233
|
-
readonly fallback: "Units";
|
|
234
|
-
};
|
|
235
|
-
readonly byVolume: {
|
|
236
|
-
readonly key: "productOfferDashboard.defaults.byVolume";
|
|
237
|
-
readonly fallback: "Volume";
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
export declare function getTranslation(entry: TranslationEntry): string;
|
|
242
|
-
export {};
|