@nuskin/react-mysite-elements 1.3.0 → 1.4.0-po-dashboard.1
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 +124 -0
- package/dist/common/icon/icons/SocialMediaIcons.styled.d.ts +5 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/shopping-dashboard/MysiteDashboardWithNavigation.d.ts +47 -0
- package/dist/common/shopping-dashboard/PoDashboardWithNavigation.d.ts +14 -0
- package/dist/common/shopping-dashboard/ProductOfferDashboard.d.ts +15 -0
- package/dist/common/shopping-dashboard/ProductOfferDashboard.styled.d.ts +20 -0
- package/dist/common/shopping-dashboard/ShoppingDashboard.d.ts +37 -0
- package/dist/common/shopping-dashboard/ShoppingDashboard.styled.d.ts +20 -0
- package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts +241 -0
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +630 -0
- package/dist/common/shopping-dashboard/fixtures/index.d.ts +1 -0
- package/dist/common/shopping-dashboard/fixtures/mockDashboardData.d.ts +8 -0
- package/dist/common/shopping-dashboard/fixtures/mockProductOfferData.d.ts +19 -0
- package/dist/common/shopping-dashboard/index.d.ts +44 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.styled.d.ts +62 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.d.ts +15 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.styled.d.ts +37 -0
- package/dist/common/shopping-dashboard/shared/DashboardHeader.d.ts +13 -0
- package/dist/common/shopping-dashboard/shared/DashboardHeader.styled.d.ts +48 -0
- package/dist/common/shopping-dashboard/shared/DataTable.d.ts +18 -0
- package/dist/common/shopping-dashboard/shared/DataTable.styled.d.ts +42 -0
- package/dist/common/shopping-dashboard/shared/FilterBar.d.ts +7 -0
- package/dist/common/shopping-dashboard/shared/FilterBar.styled.d.ts +12 -0
- package/dist/common/shopping-dashboard/shared/FullViewComponents.styled.d.ts +54 -0
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.d.ts +14 -0
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.styled.d.ts +121 -0
- package/dist/common/shopping-dashboard/shared/PageHeader.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/PageHeader.styled.d.ts +56 -0
- package/dist/common/shopping-dashboard/shared/Pagination.d.ts +9 -0
- package/dist/common/shopping-dashboard/shared/Pagination.styled.d.ts +18 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.styled.d.ts +56 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.d.ts +15 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.styled.d.ts +15 -0
- package/dist/common/shopping-dashboard/shared/StatsCard.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/StatsCard.styled.d.ts +38 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.d.ts +14 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.styled.d.ts +72 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.styled.d.ts +84 -0
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.d.ts +14 -0
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.styled.d.ts +52 -0
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersPieChart.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.d.ts +14 -0
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.styled.d.ts +53 -0
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.d.ts +11 -0
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.styled.d.ts +74 -0
- package/dist/common/shopping-dashboard/shared/WidgetMenu.d.ts +6 -0
- package/dist/common/shopping-dashboard/shared/WidgetMenu.styled.d.ts +5 -0
- package/dist/common/shopping-dashboard/shared/types.d.ts +25 -0
- package/dist/common/shopping-dashboard/shared/useViewport.d.ts +2 -0
- package/dist/common/shopping-dashboard/specs/MysiteDashboardWithNavigation.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/specs/PoDashboardWithNavigation.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/specs/SignupsFullView.spec.d.ts +1 -0
- package/dist/common/shopping-dashboard/stories/CategoriesFullView.stories.d.ts +10 -0
- package/dist/common/shopping-dashboard/stories/ConversionRateChart.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/DashboardHeader.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/DataTable.stories.d.ts +8 -0
- package/dist/common/shopping-dashboard/stories/PageHeader.stories.d.ts +8 -0
- package/dist/common/shopping-dashboard/stories/Pagination.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/ProductOfferDashboard.stories.d.ts +13 -0
- package/dist/common/shopping-dashboard/stories/ProductsFullView.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/ShoppingDashboard.stories.d.ts +13 -0
- package/dist/common/shopping-dashboard/stories/SignupsChart.stories.d.ts +10 -0
- package/dist/common/shopping-dashboard/stories/SignupsFullView.stories.d.ts +9 -0
- package/dist/common/shopping-dashboard/stories/StatsCard.stories.d.ts +11 -0
- package/dist/common/shopping-dashboard/stories/TopCategoriesPieChart.stories.d.ts +10 -0
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersFullView.stories.d.ts +10 -0
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersPieChart.stories.d.ts +11 -0
- package/dist/common/shopping-dashboard/stories/TopSellingProductsList.stories.d.ts +11 -0
- package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +14 -0
- package/dist/common/shopping-dashboard/utils/dateConstants.d.ts +14 -0
- package/dist/common/shopping-dashboard/utils/dateFormat.d.ts +16 -0
- package/dist/common/shopping-dashboard/utils/marketConstants.d.ts +14 -0
- package/dist/common/shopping-dashboard/utils/trendUtils.d.ts +16 -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 +7 -3
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translation Keys for Shopping Dashboard
|
|
3
|
+
* i18n key mapping with fallback strings for internationalization support.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ShoppingDashboardTranslationKeys: {
|
|
6
|
+
readonly title: {
|
|
7
|
+
readonly key: "shoppingDashboard.title";
|
|
8
|
+
readonly fallback: "Shop Performance";
|
|
9
|
+
};
|
|
10
|
+
readonly error: {
|
|
11
|
+
readonly key: "shoppingDashboard.error";
|
|
12
|
+
readonly fallback: "Error loading dashboard";
|
|
13
|
+
};
|
|
14
|
+
readonly stats: {
|
|
15
|
+
readonly revenue: {
|
|
16
|
+
readonly key: "shoppingDashboard.stats.revenue";
|
|
17
|
+
readonly fallback: "Total Revenue";
|
|
18
|
+
};
|
|
19
|
+
readonly volume: {
|
|
20
|
+
readonly key: "shoppingDashboard.stats.volume";
|
|
21
|
+
readonly fallback: "Volume";
|
|
22
|
+
};
|
|
23
|
+
readonly visits: {
|
|
24
|
+
readonly key: "shoppingDashboard.stats.visits";
|
|
25
|
+
readonly fallback: "Site Visits";
|
|
26
|
+
};
|
|
27
|
+
readonly subtitle: {
|
|
28
|
+
readonly dcSv: {
|
|
29
|
+
readonly key: "shoppingDashboard.stats.subtitle.dcSv";
|
|
30
|
+
readonly fallback: "DC-SV";
|
|
31
|
+
};
|
|
32
|
+
readonly conversionRate: {
|
|
33
|
+
readonly key: "shoppingDashboard.stats.subtitle.conversionRate";
|
|
34
|
+
readonly fallback: "Conversion Rate";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly trend: {
|
|
38
|
+
readonly increased: {
|
|
39
|
+
readonly key: "shoppingDashboard.stats.trend.increased";
|
|
40
|
+
readonly fallback: "increased";
|
|
41
|
+
};
|
|
42
|
+
readonly decreased: {
|
|
43
|
+
readonly key: "shoppingDashboard.stats.trend.decreased";
|
|
44
|
+
readonly fallback: "decreased";
|
|
45
|
+
};
|
|
46
|
+
readonly unchanged: {
|
|
47
|
+
readonly key: "shoppingDashboard.stats.trend.unchanged";
|
|
48
|
+
readonly fallback: "unchanged";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly details: {
|
|
52
|
+
readonly key: "shoppingDashboard.stats.details";
|
|
53
|
+
readonly fallback: "details";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly filter: {
|
|
57
|
+
readonly dateRange: {
|
|
58
|
+
readonly label: {
|
|
59
|
+
readonly key: "shoppingDashboard.filter.dateRange.label";
|
|
60
|
+
readonly fallback: "Date Range";
|
|
61
|
+
};
|
|
62
|
+
readonly last7days: {
|
|
63
|
+
readonly key: "shoppingDashboard.filter.dateRange.last7days";
|
|
64
|
+
readonly fallback: "Last 7 Days";
|
|
65
|
+
};
|
|
66
|
+
readonly last30days: {
|
|
67
|
+
readonly key: "shoppingDashboard.filter.dateRange.last30days";
|
|
68
|
+
readonly fallback: "Last 30 Days";
|
|
69
|
+
};
|
|
70
|
+
readonly last90days: {
|
|
71
|
+
readonly key: "shoppingDashboard.filter.dateRange.last90days";
|
|
72
|
+
readonly fallback: "Last 90 Days";
|
|
73
|
+
};
|
|
74
|
+
readonly thisMonth: {
|
|
75
|
+
readonly key: "shoppingDashboard.filter.dateRange.thisMonth";
|
|
76
|
+
readonly fallback: "This Month";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly dateRangeLabel: {
|
|
80
|
+
readonly key: "shoppingDashboard.filter.dateRangeLabel";
|
|
81
|
+
readonly fallback: "Date Range";
|
|
82
|
+
};
|
|
83
|
+
readonly market: {
|
|
84
|
+
readonly label: {
|
|
85
|
+
readonly key: "shoppingDashboard.filter.market.label";
|
|
86
|
+
readonly fallback: "Market";
|
|
87
|
+
};
|
|
88
|
+
readonly all: {
|
|
89
|
+
readonly key: "shoppingDashboard.filter.market.all";
|
|
90
|
+
readonly fallback: "All Markets";
|
|
91
|
+
};
|
|
92
|
+
readonly us: {
|
|
93
|
+
readonly key: "shoppingDashboard.filter.market.us";
|
|
94
|
+
readonly fallback: "United States";
|
|
95
|
+
};
|
|
96
|
+
readonly ca: {
|
|
97
|
+
readonly key: "shoppingDashboard.filter.market.ca";
|
|
98
|
+
readonly fallback: "Canada";
|
|
99
|
+
};
|
|
100
|
+
readonly jp: {
|
|
101
|
+
readonly key: "shoppingDashboard.filter.market.jp";
|
|
102
|
+
readonly fallback: "Japan";
|
|
103
|
+
};
|
|
104
|
+
readonly kr: {
|
|
105
|
+
readonly key: "shoppingDashboard.filter.market.kr";
|
|
106
|
+
readonly fallback: "Korea";
|
|
107
|
+
};
|
|
108
|
+
readonly au: {
|
|
109
|
+
readonly key: "shoppingDashboard.filter.market.au";
|
|
110
|
+
readonly fallback: "Australia";
|
|
111
|
+
};
|
|
112
|
+
readonly nz: {
|
|
113
|
+
readonly key: "shoppingDashboard.filter.market.nz";
|
|
114
|
+
readonly fallback: "New Zealand";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly marketLabel: {
|
|
118
|
+
readonly key: "shoppingDashboard.filter.marketLabel";
|
|
119
|
+
readonly fallback: "Market";
|
|
120
|
+
};
|
|
121
|
+
readonly productSort: {
|
|
122
|
+
readonly label: {
|
|
123
|
+
readonly key: "shoppingDashboard.filter.productSort.label";
|
|
124
|
+
readonly fallback: "Sort By";
|
|
125
|
+
};
|
|
126
|
+
readonly units: {
|
|
127
|
+
readonly key: "shoppingDashboard.filter.productSort.units";
|
|
128
|
+
readonly fallback: "Units";
|
|
129
|
+
};
|
|
130
|
+
readonly revenue: {
|
|
131
|
+
readonly key: "shoppingDashboard.filter.productSort.revenue";
|
|
132
|
+
readonly fallback: "Revenue";
|
|
133
|
+
};
|
|
134
|
+
readonly volume: {
|
|
135
|
+
readonly key: "shoppingDashboard.filter.productSort.volume";
|
|
136
|
+
readonly fallback: "Volume";
|
|
137
|
+
};
|
|
138
|
+
readonly byUnits: {
|
|
139
|
+
readonly key: "shoppingDashboard.filter.productSort.byUnits";
|
|
140
|
+
readonly fallback: "By: Units";
|
|
141
|
+
};
|
|
142
|
+
readonly byRevenue: {
|
|
143
|
+
readonly key: "shoppingDashboard.filter.productSort.byRevenue";
|
|
144
|
+
readonly fallback: "By: Revenue";
|
|
145
|
+
};
|
|
146
|
+
readonly byVolume: {
|
|
147
|
+
readonly key: "shoppingDashboard.filter.productSort.byVolume";
|
|
148
|
+
readonly fallback: "By: Volume";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly signupView: {
|
|
152
|
+
readonly label: {
|
|
153
|
+
readonly key: "shoppingDashboard.filter.signupView.label";
|
|
154
|
+
readonly fallback: "Show";
|
|
155
|
+
};
|
|
156
|
+
readonly all: {
|
|
157
|
+
readonly key: "shoppingDashboard.filter.signupView.all";
|
|
158
|
+
readonly fallback: "All";
|
|
159
|
+
};
|
|
160
|
+
readonly members: {
|
|
161
|
+
readonly key: "shoppingDashboard.filter.signupView.members";
|
|
162
|
+
readonly fallback: "Members";
|
|
163
|
+
};
|
|
164
|
+
readonly retail: {
|
|
165
|
+
readonly key: "shoppingDashboard.filter.signupView.retail";
|
|
166
|
+
readonly fallback: "Retail";
|
|
167
|
+
};
|
|
168
|
+
readonly brandAffiliates: {
|
|
169
|
+
readonly key: "shoppingDashboard.filter.signupView.brandAffiliates";
|
|
170
|
+
readonly fallback: "Brand Affiliates";
|
|
171
|
+
};
|
|
172
|
+
readonly showAll: {
|
|
173
|
+
readonly key: "shoppingDashboard.filter.signupView.showAll";
|
|
174
|
+
readonly fallback: "Show: All";
|
|
175
|
+
};
|
|
176
|
+
readonly showMembers: {
|
|
177
|
+
readonly key: "shoppingDashboard.filter.signupView.showMembers";
|
|
178
|
+
readonly fallback: "Show: Members";
|
|
179
|
+
};
|
|
180
|
+
readonly showRetail: {
|
|
181
|
+
readonly key: "shoppingDashboard.filter.signupView.showRetail";
|
|
182
|
+
readonly fallback: "Show: Retail";
|
|
183
|
+
};
|
|
184
|
+
readonly showBrandAffiliates: {
|
|
185
|
+
readonly key: "shoppingDashboard.filter.signupView.showBrandAffiliates";
|
|
186
|
+
readonly fallback: "Show: Brand Affiliates";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
readonly categorySort: {
|
|
190
|
+
readonly byRevenue: {
|
|
191
|
+
readonly key: "shoppingDashboard.filter.categorySort.byRevenue";
|
|
192
|
+
readonly fallback: "By: Revenue";
|
|
193
|
+
};
|
|
194
|
+
readonly byUnits: {
|
|
195
|
+
readonly key: "shoppingDashboard.filter.categorySort.byUnits";
|
|
196
|
+
readonly fallback: "By: Units";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly widget: {
|
|
201
|
+
readonly topProducts: {
|
|
202
|
+
readonly title: {
|
|
203
|
+
readonly key: "shoppingDashboard.widget.topProducts.title";
|
|
204
|
+
readonly fallback: "Top Selling Products";
|
|
205
|
+
};
|
|
206
|
+
readonly viewAll: {
|
|
207
|
+
readonly key: "shoppingDashboard.widget.topProducts.viewAll";
|
|
208
|
+
readonly fallback: "View All Products";
|
|
209
|
+
};
|
|
210
|
+
readonly units: {
|
|
211
|
+
readonly key: "shoppingDashboard.widget.topProducts.units";
|
|
212
|
+
readonly fallback: "Units";
|
|
213
|
+
};
|
|
214
|
+
readonly revenue: {
|
|
215
|
+
readonly key: "shoppingDashboard.widget.topProducts.revenue";
|
|
216
|
+
readonly fallback: "Revenue";
|
|
217
|
+
};
|
|
218
|
+
readonly loading: {
|
|
219
|
+
readonly key: "shoppingDashboard.widget.topProducts.loading";
|
|
220
|
+
readonly fallback: "Loading products...";
|
|
221
|
+
};
|
|
222
|
+
readonly empty: {
|
|
223
|
+
readonly key: "shoppingDashboard.widget.topProducts.empty";
|
|
224
|
+
readonly fallback: "No products available";
|
|
225
|
+
};
|
|
226
|
+
readonly ariaLabel: {
|
|
227
|
+
readonly key: "shoppingDashboard.widget.topProducts.ariaLabel";
|
|
228
|
+
readonly fallback: "Top Selling Products widget";
|
|
229
|
+
};
|
|
230
|
+
readonly titleAriaLabel: {
|
|
231
|
+
readonly key: "shoppingDashboard.widget.topProducts.titleAriaLabel";
|
|
232
|
+
readonly fallback: "Click to view full top products details page";
|
|
233
|
+
};
|
|
234
|
+
readonly sortAriaLabel: {
|
|
235
|
+
readonly key: "shoppingDashboard.widget.topProducts.sortAriaLabel";
|
|
236
|
+
readonly fallback: "Sort products by";
|
|
237
|
+
};
|
|
238
|
+
readonly noImageAriaLabel: {
|
|
239
|
+
readonly key: "shoppingDashboard.widget.topProducts.noImageAriaLabel";
|
|
240
|
+
readonly fallback: "No image available";
|
|
241
|
+
};
|
|
242
|
+
readonly unitsSuffix: {
|
|
243
|
+
readonly key: "shoppingDashboard.widget.topProducts.unitsSuffix";
|
|
244
|
+
readonly fallback: "units";
|
|
245
|
+
};
|
|
246
|
+
readonly revenueSuffix: {
|
|
247
|
+
readonly key: "shoppingDashboard.widget.topProducts.revenueSuffix";
|
|
248
|
+
readonly fallback: "revenue";
|
|
249
|
+
};
|
|
250
|
+
readonly dcSvSuffix: {
|
|
251
|
+
readonly key: "shoppingDashboard.widget.topProducts.dcSvSuffix";
|
|
252
|
+
readonly fallback: "DC-SV";
|
|
253
|
+
};
|
|
254
|
+
readonly rank: {
|
|
255
|
+
readonly key: "shoppingDashboard.widget.topProducts.rank";
|
|
256
|
+
readonly fallback: "Rank";
|
|
257
|
+
};
|
|
258
|
+
readonly trend: {
|
|
259
|
+
readonly key: "shoppingDashboard.widget.topProducts.trend";
|
|
260
|
+
readonly fallback: "Trend";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly conversionRate: {
|
|
264
|
+
readonly title: {
|
|
265
|
+
readonly key: "shoppingDashboard.widget.conversionRate.title";
|
|
266
|
+
readonly fallback: "Conversion Rate";
|
|
267
|
+
};
|
|
268
|
+
readonly formula: {
|
|
269
|
+
readonly key: "shoppingDashboard.widget.conversionRate.formula";
|
|
270
|
+
readonly fallback: "Orders ÷ Site visits";
|
|
271
|
+
};
|
|
272
|
+
readonly comparison: {
|
|
273
|
+
readonly key: "shoppingDashboard.widget.conversionRate.comparison";
|
|
274
|
+
readonly fallback: "compared to this time last month";
|
|
275
|
+
};
|
|
276
|
+
readonly chartAriaLabel: {
|
|
277
|
+
readonly key: "shoppingDashboard.widget.conversionRate.chartAriaLabel";
|
|
278
|
+
readonly fallback: "Conversion Rate chart showing daily rates";
|
|
279
|
+
};
|
|
280
|
+
readonly titleAriaLabel: {
|
|
281
|
+
readonly key: "shoppingDashboard.widget.conversionRate.titleAriaLabel";
|
|
282
|
+
readonly fallback: "Click to view full conversion rate details page";
|
|
283
|
+
};
|
|
284
|
+
readonly filterAriaLabel: {
|
|
285
|
+
readonly key: "shoppingDashboard.widget.conversionRate.filterAriaLabel";
|
|
286
|
+
readonly fallback: "Filter conversion rate by customer type";
|
|
287
|
+
};
|
|
288
|
+
readonly noData: {
|
|
289
|
+
readonly key: "shoppingDashboard.widget.conversionRate.noData";
|
|
290
|
+
readonly fallback: "No data";
|
|
291
|
+
};
|
|
292
|
+
readonly noChange: {
|
|
293
|
+
readonly key: "shoppingDashboard.widget.conversionRate.noChange";
|
|
294
|
+
readonly fallback: "No change";
|
|
295
|
+
};
|
|
296
|
+
readonly tooltipOrders: {
|
|
297
|
+
readonly key: "shoppingDashboard.widget.conversionRate.tooltipOrders";
|
|
298
|
+
readonly fallback: "orders";
|
|
299
|
+
};
|
|
300
|
+
readonly tooltipVisits: {
|
|
301
|
+
readonly key: "shoppingDashboard.widget.conversionRate.tooltipVisits";
|
|
302
|
+
readonly fallback: "visits";
|
|
303
|
+
};
|
|
304
|
+
readonly ordersPerSiteVisits: {
|
|
305
|
+
readonly key: "shoppingDashboard.widget.conversionRate.ordersPerSiteVisits";
|
|
306
|
+
readonly fallback: "Orders / Site Visits";
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
readonly signups: {
|
|
310
|
+
readonly title: {
|
|
311
|
+
readonly key: "shoppingDashboard.widget.signups.title";
|
|
312
|
+
readonly fallback: "Sign-ups";
|
|
313
|
+
};
|
|
314
|
+
readonly total: {
|
|
315
|
+
readonly key: "shoppingDashboard.widget.signups.total";
|
|
316
|
+
readonly fallback: "Total";
|
|
317
|
+
};
|
|
318
|
+
readonly members: {
|
|
319
|
+
readonly key: "shoppingDashboard.widget.signups.members";
|
|
320
|
+
readonly fallback: "Members";
|
|
321
|
+
};
|
|
322
|
+
readonly retail: {
|
|
323
|
+
readonly key: "shoppingDashboard.widget.signups.retail";
|
|
324
|
+
readonly fallback: "Retail";
|
|
325
|
+
};
|
|
326
|
+
readonly brandAffiliates: {
|
|
327
|
+
readonly key: "shoppingDashboard.widget.signups.brandAffiliates";
|
|
328
|
+
readonly fallback: "Brand Affiliates";
|
|
329
|
+
};
|
|
330
|
+
readonly chartAriaLabel: {
|
|
331
|
+
readonly key: "shoppingDashboard.widget.signups.chartAriaLabel";
|
|
332
|
+
readonly fallback: "Signups multi-line chart showing Total, Members, Retail, and Brand Affiliates";
|
|
333
|
+
};
|
|
334
|
+
readonly titleAriaLabel: {
|
|
335
|
+
readonly key: "shoppingDashboard.widget.signups.titleAriaLabel";
|
|
336
|
+
readonly fallback: "Click to view full signups details page";
|
|
337
|
+
};
|
|
338
|
+
readonly filterAriaLabel: {
|
|
339
|
+
readonly key: "shoppingDashboard.widget.signups.filterAriaLabel";
|
|
340
|
+
readonly fallback: "Filter signups view";
|
|
341
|
+
};
|
|
342
|
+
readonly noData: {
|
|
343
|
+
readonly key: "shoppingDashboard.widget.signups.noData";
|
|
344
|
+
readonly fallback: "No data";
|
|
345
|
+
};
|
|
346
|
+
readonly noChange: {
|
|
347
|
+
readonly key: "shoppingDashboard.widget.signups.noChange";
|
|
348
|
+
readonly fallback: "No change";
|
|
349
|
+
};
|
|
350
|
+
readonly totalSignupsInPeriod: {
|
|
351
|
+
readonly key: "shoppingDashboard.widget.signups.totalSignupsInPeriod";
|
|
352
|
+
readonly fallback: "Total sign-ups in period";
|
|
353
|
+
};
|
|
354
|
+
readonly noTrendData: {
|
|
355
|
+
readonly key: "shoppingDashboard.widget.signups.noTrendData";
|
|
356
|
+
readonly fallback: "No sign-up trend data available.";
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
readonly topCategories: {
|
|
360
|
+
readonly title: {
|
|
361
|
+
readonly key: "shoppingDashboard.widget.topCategories.title";
|
|
362
|
+
readonly fallback: "Top Categories";
|
|
363
|
+
};
|
|
364
|
+
readonly revenue: {
|
|
365
|
+
readonly key: "shoppingDashboard.widget.topCategories.revenue";
|
|
366
|
+
readonly fallback: "Revenue";
|
|
367
|
+
};
|
|
368
|
+
readonly units: {
|
|
369
|
+
readonly key: "shoppingDashboard.widget.topCategories.units";
|
|
370
|
+
readonly fallback: "Units";
|
|
371
|
+
};
|
|
372
|
+
readonly empty: {
|
|
373
|
+
readonly key: "shoppingDashboard.widget.topCategories.empty";
|
|
374
|
+
readonly fallback: "No category data available";
|
|
375
|
+
};
|
|
376
|
+
readonly chartAriaLabel: {
|
|
377
|
+
readonly key: "shoppingDashboard.widget.topCategories.chartAriaLabel";
|
|
378
|
+
readonly fallback: "Top Categories donut chart showing revenue distribution by category";
|
|
379
|
+
};
|
|
380
|
+
readonly titleAriaLabel: {
|
|
381
|
+
readonly key: "shoppingDashboard.widget.topCategories.titleAriaLabel";
|
|
382
|
+
readonly fallback: "Click to view full categories details page";
|
|
383
|
+
};
|
|
384
|
+
readonly sortAriaLabel: {
|
|
385
|
+
readonly key: "shoppingDashboard.widget.topCategories.sortAriaLabel";
|
|
386
|
+
readonly fallback: "Sort categories by";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
readonly menu: {
|
|
390
|
+
readonly ariaLabel: {
|
|
391
|
+
readonly key: "shoppingDashboard.widget.menu.ariaLabel";
|
|
392
|
+
readonly fallback: "widget options";
|
|
393
|
+
};
|
|
394
|
+
readonly fullView: {
|
|
395
|
+
readonly key: "shoppingDashboard.widget.menu.fullView";
|
|
396
|
+
readonly fallback: "Full View";
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly navigation: {
|
|
401
|
+
readonly backToDashboard: {
|
|
402
|
+
readonly key: "shoppingDashboard.navigation.backToDashboard";
|
|
403
|
+
readonly fallback: "Back to Dashboard";
|
|
404
|
+
};
|
|
405
|
+
readonly backAriaLabel: {
|
|
406
|
+
readonly key: "shoppingDashboard.navigation.backAriaLabel";
|
|
407
|
+
readonly fallback: "Back to dashboard";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly ariaLabel: {
|
|
411
|
+
readonly dashboard: {
|
|
412
|
+
readonly key: "shoppingDashboard.ariaLabel.dashboard";
|
|
413
|
+
readonly fallback: "Shopping Dashboard";
|
|
414
|
+
};
|
|
415
|
+
readonly statsRow: {
|
|
416
|
+
readonly key: "shoppingDashboard.ariaLabel.statsRow";
|
|
417
|
+
readonly fallback: "Key performance metrics";
|
|
418
|
+
};
|
|
419
|
+
readonly dashboardFilters: {
|
|
420
|
+
readonly key: "shoppingDashboard.ariaLabel.dashboardFilters";
|
|
421
|
+
readonly fallback: "Dashboard filters";
|
|
422
|
+
};
|
|
423
|
+
readonly loadingDashboard: {
|
|
424
|
+
readonly key: "shoppingDashboard.ariaLabel.loadingDashboard";
|
|
425
|
+
readonly fallback: "Loading dashboard data";
|
|
426
|
+
};
|
|
427
|
+
readonly dateRangeFilter: {
|
|
428
|
+
readonly key: "shoppingDashboard.ariaLabel.dateRangeFilter";
|
|
429
|
+
readonly fallback: "Date range filter, currently selected:";
|
|
430
|
+
};
|
|
431
|
+
readonly marketFilter: {
|
|
432
|
+
readonly key: "shoppingDashboard.ariaLabel.marketFilter";
|
|
433
|
+
readonly fallback: "Market filter, currently selected:";
|
|
434
|
+
};
|
|
435
|
+
readonly filterSuffix: {
|
|
436
|
+
readonly key: "shoppingDashboard.ariaLabel.filterSuffix";
|
|
437
|
+
readonly fallback: "filter";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly fullView: {
|
|
441
|
+
readonly signups: {
|
|
442
|
+
readonly columns: {
|
|
443
|
+
readonly id: {
|
|
444
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.id";
|
|
445
|
+
readonly fallback: "ID";
|
|
446
|
+
};
|
|
447
|
+
readonly name: {
|
|
448
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.name";
|
|
449
|
+
readonly fallback: "Name";
|
|
450
|
+
};
|
|
451
|
+
readonly date: {
|
|
452
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.date";
|
|
453
|
+
readonly fallback: "Date";
|
|
454
|
+
};
|
|
455
|
+
readonly type: {
|
|
456
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.type";
|
|
457
|
+
readonly fallback: "Type";
|
|
458
|
+
};
|
|
459
|
+
readonly email: {
|
|
460
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.email";
|
|
461
|
+
readonly fallback: "Email";
|
|
462
|
+
};
|
|
463
|
+
readonly status: {
|
|
464
|
+
readonly key: "shoppingDashboard.fullView.signups.columns.status";
|
|
465
|
+
readonly fallback: "Status";
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
readonly detailsTitle: {
|
|
469
|
+
readonly key: "shoppingDashboard.fullView.signups.detailsTitle";
|
|
470
|
+
readonly fallback: "Signup Details";
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly conversionRate: {
|
|
474
|
+
readonly columns: {
|
|
475
|
+
readonly orderId: {
|
|
476
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.orderId";
|
|
477
|
+
readonly fallback: "Order ID";
|
|
478
|
+
};
|
|
479
|
+
readonly date: {
|
|
480
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.date";
|
|
481
|
+
readonly fallback: "Date";
|
|
482
|
+
};
|
|
483
|
+
readonly customer: {
|
|
484
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.customer";
|
|
485
|
+
readonly fallback: "Customer";
|
|
486
|
+
};
|
|
487
|
+
readonly type: {
|
|
488
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.type";
|
|
489
|
+
readonly fallback: "Type";
|
|
490
|
+
};
|
|
491
|
+
readonly items: {
|
|
492
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.items";
|
|
493
|
+
readonly fallback: "Items";
|
|
494
|
+
};
|
|
495
|
+
readonly total: {
|
|
496
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.total";
|
|
497
|
+
readonly fallback: "Total";
|
|
498
|
+
};
|
|
499
|
+
readonly bv: {
|
|
500
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.bv";
|
|
501
|
+
readonly fallback: "BV";
|
|
502
|
+
};
|
|
503
|
+
readonly orderTotal: {
|
|
504
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.orderTotal";
|
|
505
|
+
readonly fallback: "Order Total";
|
|
506
|
+
};
|
|
507
|
+
readonly totalSv: {
|
|
508
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.columns.totalSv";
|
|
509
|
+
readonly fallback: "Total SV";
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly orderDetailsTitle: {
|
|
513
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.orderDetailsTitle";
|
|
514
|
+
readonly fallback: "Order Details";
|
|
515
|
+
};
|
|
516
|
+
readonly notAvailable: {
|
|
517
|
+
readonly key: "shoppingDashboard.fullView.conversionRate.notAvailable";
|
|
518
|
+
readonly fallback: "N/A";
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly products: {
|
|
522
|
+
readonly columns: {
|
|
523
|
+
readonly rank: {
|
|
524
|
+
readonly key: "shoppingDashboard.fullView.products.columns.rank";
|
|
525
|
+
readonly fallback: "#";
|
|
526
|
+
};
|
|
527
|
+
readonly product: {
|
|
528
|
+
readonly key: "shoppingDashboard.fullView.products.columns.product";
|
|
529
|
+
readonly fallback: "Product";
|
|
530
|
+
};
|
|
531
|
+
readonly unitsSold: {
|
|
532
|
+
readonly key: "shoppingDashboard.fullView.products.columns.unitsSold";
|
|
533
|
+
readonly fallback: "Units Sold";
|
|
534
|
+
};
|
|
535
|
+
readonly revenue: {
|
|
536
|
+
readonly key: "shoppingDashboard.fullView.products.columns.revenue";
|
|
537
|
+
readonly fallback: "Revenue";
|
|
538
|
+
};
|
|
539
|
+
readonly volume: {
|
|
540
|
+
readonly key: "shoppingDashboard.fullView.products.columns.volume";
|
|
541
|
+
readonly fallback: "Volume (DC-SV)";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly skuPrefix: {
|
|
545
|
+
readonly key: "shoppingDashboard.fullView.products.skuPrefix";
|
|
546
|
+
readonly fallback: "SKU";
|
|
547
|
+
};
|
|
548
|
+
readonly noProducts: {
|
|
549
|
+
readonly key: "shoppingDashboard.fullView.products.noProducts";
|
|
550
|
+
readonly fallback: "No products available.";
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
readonly categories: {
|
|
554
|
+
readonly columns: {
|
|
555
|
+
readonly category: {
|
|
556
|
+
readonly key: "shoppingDashboard.fullView.categories.columns.category";
|
|
557
|
+
readonly fallback: "Category";
|
|
558
|
+
};
|
|
559
|
+
readonly revenue: {
|
|
560
|
+
readonly key: "shoppingDashboard.fullView.categories.columns.revenue";
|
|
561
|
+
readonly fallback: "Revenue";
|
|
562
|
+
};
|
|
563
|
+
readonly percentOfTotal: {
|
|
564
|
+
readonly key: "shoppingDashboard.fullView.categories.columns.percentOfTotal";
|
|
565
|
+
readonly fallback: "% of Total";
|
|
566
|
+
};
|
|
567
|
+
readonly trend: {
|
|
568
|
+
readonly key: "shoppingDashboard.fullView.categories.columns.trend";
|
|
569
|
+
readonly fallback: "Trend";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly allCategoriesTitle: {
|
|
573
|
+
readonly key: "shoppingDashboard.fullView.categories.allCategoriesTitle";
|
|
574
|
+
readonly fallback: "All Categories";
|
|
575
|
+
};
|
|
576
|
+
readonly noCategoryData: {
|
|
577
|
+
readonly key: "shoppingDashboard.fullView.categories.noCategoryData";
|
|
578
|
+
readonly fallback: "No category data available.";
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly dataTable: {
|
|
583
|
+
readonly noDataAvailable: {
|
|
584
|
+
readonly key: "shoppingDashboard.dataTable.noDataAvailable";
|
|
585
|
+
readonly fallback: "No data available";
|
|
586
|
+
};
|
|
587
|
+
readonly sortableColumn: {
|
|
588
|
+
readonly key: "shoppingDashboard.dataTable.sortableColumn";
|
|
589
|
+
readonly fallback: ", sortable column";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly pagination: {
|
|
593
|
+
readonly previousPage: {
|
|
594
|
+
readonly key: "shoppingDashboard.pagination.previousPage";
|
|
595
|
+
readonly fallback: "Previous page";
|
|
596
|
+
};
|
|
597
|
+
readonly nextPage: {
|
|
598
|
+
readonly key: "shoppingDashboard.pagination.nextPage";
|
|
599
|
+
readonly fallback: "Next page";
|
|
600
|
+
};
|
|
601
|
+
readonly goToPage: {
|
|
602
|
+
readonly key: "shoppingDashboard.pagination.goToPage";
|
|
603
|
+
readonly fallback: "Go to page";
|
|
604
|
+
};
|
|
605
|
+
readonly of: {
|
|
606
|
+
readonly key: "shoppingDashboard.pagination.of";
|
|
607
|
+
readonly fallback: "of";
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly defaults: {
|
|
611
|
+
readonly zeroTrend: {
|
|
612
|
+
readonly key: "shoppingDashboard.defaults.zeroTrend";
|
|
613
|
+
readonly fallback: "+0%";
|
|
614
|
+
};
|
|
615
|
+
readonly noValue: {
|
|
616
|
+
readonly key: "shoppingDashboard.defaults.noValue";
|
|
617
|
+
readonly fallback: "--";
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
type TranslationEntry = {
|
|
622
|
+
readonly key: string;
|
|
623
|
+
readonly fallback: string;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Get translation text from a translation key entry.
|
|
627
|
+
* Returns the fallback string (future: integrate with i18n provider).
|
|
628
|
+
*/
|
|
629
|
+
export declare function getTranslation(entry: TranslationEntry): string;
|
|
630
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mockStats, mockTopProducts, mockConversionData, mockSignupData, mockCategories, mockOrders, mockSignupDetails, } from './mockDashboardData';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DashboardStats, TopProduct, ConversionDataPoint, SignupDataPoint, CategoryRevenue, OrderHistory, SignupDetail } from '../types.d';
|
|
2
|
+
export declare const mockStats: DashboardStats;
|
|
3
|
+
export declare const mockTopProducts: TopProduct[];
|
|
4
|
+
export declare const mockConversionData: ConversionDataPoint[];
|
|
5
|
+
export declare const mockSignupData: SignupDataPoint[];
|
|
6
|
+
export declare const mockCategories: CategoryRevenue[];
|
|
7
|
+
export declare const mockOrders: OrderHistory[];
|
|
8
|
+
export declare const mockSignupDetails: SignupDetail[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mock data for the Product Offer Dashboard
|
|
3
|
+
*
|
|
4
|
+
* Used in Storybook stories and tests.
|
|
5
|
+
*/
|
|
6
|
+
import type { ProductOfferDashboardStats, TopPerformingOffer } from '../types.d';
|
|
7
|
+
export { mockTopProducts, mockConversionData, mockOrders } from './mockDashboardData';
|
|
8
|
+
/** Mock Product Offer Dashboard Stats */
|
|
9
|
+
export declare const mockProductOfferStats: ProductOfferDashboardStats;
|
|
10
|
+
/** Mock Product Offer Stats with positive trend */
|
|
11
|
+
export declare const mockProductOfferStatsPositiveTrend: ProductOfferDashboardStats;
|
|
12
|
+
/** Mock Product Offer Stats with negative trend */
|
|
13
|
+
export declare const mockProductOfferStatsNegativeTrend: ProductOfferDashboardStats;
|
|
14
|
+
/** Mock Product Offer Stats with neutral trend */
|
|
15
|
+
export declare const mockProductOfferStatsNeutralTrend: ProductOfferDashboardStats;
|
|
16
|
+
/** Mock Product Offer Stats with zero offers (edge case) */
|
|
17
|
+
export declare const mockProductOfferStatsZeroOffers: ProductOfferDashboardStats;
|
|
18
|
+
/** Mock Top Performing Offers (5 items matching Figma) */
|
|
19
|
+
export declare const mockTopOffers: TopPerformingOffer[];
|