@medusajs/dashboard 2.12.3-preview-20251217123836 → 2.12.3-snapshot-20251217081413
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/app.css +0 -10
- package/dist/app.js +373 -483
- package/dist/app.mjs +1 -1
- package/dist/{chunk-VFF5WB7C.mjs → chunk-FJR3D6EM.mjs} +10 -14
- package/dist/en.json +1 -1
- package/dist/{product-attributes-MXDPSOWM.mjs → product-attributes-S535VXSC.mjs} +1 -1
- package/dist/{product-create-3O34JJLS.mjs → product-create-DKBLOS3M.mjs} +1 -1
- package/dist/{product-detail-SYTLG5D3.mjs → product-detail-D2PJ64Q3.mjs} +1 -1
- package/dist/{product-edit-W72S22NM.mjs → product-edit-K6CAQD5H.mjs} +1 -1
- package/dist/{product-organization-SVXTCWIF.mjs → product-organization-IQFN54D2.mjs} +1 -1
- package/dist/{chunk-IKTGFXWR.mjs → store-add-locales-I4GX3KAY.mjs} +66 -1
- package/dist/{translation-list-FK7XYLHX.mjs → translation-list-KSM4QA3K.mjs} +109 -182
- package/package.json +9 -9
- package/src/dashboard-app/routes/get-route.map.tsx +0 -4
- package/src/i18n/translations/en.json +1 -1
- package/src/i18n/translations/es.json +1 -1
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +16 -41
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +1 -5
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +103 -144
- package/dist/add-locales-GGNZCABB.mjs +0 -81
- package/dist/store-add-locales-GWCGIXHU.mjs +0 -81
- package/src/routes/translations/add-locales/add-locales.tsx +0 -29
- package/src/routes/translations/add-locales/index.tsx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.12.3-
|
|
3
|
+
"version": "2.12.3-snapshot-20251217081413",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "../../../node_modules/.bin/vite",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
47
|
"@hookform/error-message": "^2.0.1",
|
|
48
48
|
"@hookform/resolvers": "3.4.2",
|
|
49
|
-
"@medusajs/admin-shared": "2.12.3-
|
|
50
|
-
"@medusajs/icons": "2.12.3-
|
|
51
|
-
"@medusajs/js-sdk": "2.12.3-
|
|
52
|
-
"@medusajs/ui": "4.0.31-
|
|
49
|
+
"@medusajs/admin-shared": "2.12.3-snapshot-20251217081413",
|
|
50
|
+
"@medusajs/icons": "2.12.3-snapshot-20251217081413",
|
|
51
|
+
"@medusajs/js-sdk": "2.12.3-snapshot-20251217081413",
|
|
52
|
+
"@medusajs/ui": "4.0.31-snapshot-20251217081413",
|
|
53
53
|
"@radix-ui/react-dialog": "1.1.4",
|
|
54
54
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
55
55
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"zod": "3.25.76"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@medusajs/admin-shared": "2.12.3-
|
|
84
|
-
"@medusajs/admin-vite-plugin": "2.12.3-
|
|
85
|
-
"@medusajs/types": "2.12.3-
|
|
86
|
-
"@medusajs/ui-preset": "2.12.3-
|
|
83
|
+
"@medusajs/admin-shared": "2.12.3-snapshot-20251217081413",
|
|
84
|
+
"@medusajs/admin-vite-plugin": "2.12.3-snapshot-20251217081413",
|
|
85
|
+
"@medusajs/types": "2.12.3-snapshot-20251217081413",
|
|
86
|
+
"@medusajs/ui-preset": "2.12.3-snapshot-20251217081413"
|
|
87
87
|
},
|
|
88
88
|
"packageManager": "yarn@3.2.1"
|
|
89
89
|
}
|
|
@@ -1857,10 +1857,6 @@ export function getRouteMap({
|
|
|
1857
1857
|
lazy: () =>
|
|
1858
1858
|
import("../../routes/translations/translations-edit"),
|
|
1859
1859
|
},
|
|
1860
|
-
{
|
|
1861
|
-
path: "add-locales",
|
|
1862
|
-
lazy: () => import("../../routes/translations/add-locales"),
|
|
1863
|
-
},
|
|
1864
1860
|
],
|
|
1865
1861
|
},
|
|
1866
1862
|
...(settingsRoutes?.[0]?.children || []),
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { PencilSquare, Language } from "@medusajs/icons"
|
|
2
|
-
import {
|
|
3
|
-
Container,
|
|
4
|
-
Heading,
|
|
5
|
-
IconButton,
|
|
6
|
-
InlineTip,
|
|
7
|
-
Text,
|
|
8
|
-
Tooltip,
|
|
9
|
-
} from "@medusajs/ui"
|
|
2
|
+
import { Container, Heading, IconButton, InlineTip, Text } from "@medusajs/ui"
|
|
10
3
|
import { useTranslation } from "react-i18next"
|
|
11
4
|
import { IconAvatar } from "../../../../../components/common/icon-avatar"
|
|
12
5
|
import { HttpTypes } from "@medusajs/types"
|
|
13
|
-
import { useCallback
|
|
6
|
+
import { useCallback } from "react"
|
|
14
7
|
import { useNavigate } from "react-router-dom"
|
|
15
8
|
|
|
16
9
|
type ActiveLocalesSectionProps = {
|
|
@@ -22,10 +15,9 @@ export const ActiveLocalesSection = ({
|
|
|
22
15
|
}: ActiveLocalesSectionProps) => {
|
|
23
16
|
const { t } = useTranslation()
|
|
24
17
|
const navigate = useNavigate()
|
|
25
|
-
const [isHovered, setIsHovered] = useState(false)
|
|
26
18
|
|
|
27
19
|
const handleManageLocales = useCallback(() => {
|
|
28
|
-
navigate("/settings/
|
|
20
|
+
navigate("/settings/store/locales")
|
|
29
21
|
}, [navigate])
|
|
30
22
|
|
|
31
23
|
const renderLocales = useCallback(() => {
|
|
@@ -52,36 +44,19 @@ export const ActiveLocalesSection = ({
|
|
|
52
44
|
</div>
|
|
53
45
|
<div className="px-1 pb-1">
|
|
54
46
|
{hasLocales ? (
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
className="bg-ui-bg-component border-r-1 flex items-center gap-x-4 px-[19px] py-2"
|
|
69
|
-
onMouseEnter={() => setIsHovered(true)}
|
|
70
|
-
onMouseLeave={() => setIsHovered(false)}
|
|
71
|
-
>
|
|
72
|
-
<IconAvatar className="border-ui-border-base border">
|
|
73
|
-
<Language />
|
|
74
|
-
</IconAvatar>
|
|
75
|
-
<div className="flex flex-col">
|
|
76
|
-
<Text size="small" weight="plus">
|
|
77
|
-
{t("translations.activeLocales.subtitle")}
|
|
78
|
-
</Text>
|
|
79
|
-
<Text className="text-ui-fg-subtle" size="small">
|
|
80
|
-
{renderLocales()}
|
|
81
|
-
</Text>
|
|
82
|
-
</div>
|
|
83
|
-
</Container>
|
|
84
|
-
</Tooltip>
|
|
47
|
+
<Container className="bg-ui-bg-component flex items-center gap-x-4 px-6 py-2">
|
|
48
|
+
<IconAvatar>
|
|
49
|
+
<Language />
|
|
50
|
+
</IconAvatar>
|
|
51
|
+
<div className="flex flex-col">
|
|
52
|
+
<Text size="small" weight="plus">
|
|
53
|
+
{t("translations.activeLocales.subtitle")}
|
|
54
|
+
</Text>
|
|
55
|
+
<Text className="text-ui-fg-subtle" size="small">
|
|
56
|
+
{renderLocales()}
|
|
57
|
+
</Text>
|
|
58
|
+
</div>
|
|
59
|
+
</Container>
|
|
85
60
|
) : (
|
|
86
61
|
<InlineTip label="Tip">
|
|
87
62
|
{t("translations.activeLocales.noLocalesTip")}
|
|
@@ -33,11 +33,7 @@ export const TranslationListSection = ({
|
|
|
33
33
|
<Link
|
|
34
34
|
to={`/settings/translations/edit?reference=${entity.reference}`}
|
|
35
35
|
>
|
|
36
|
-
<Button
|
|
37
|
-
variant="secondary"
|
|
38
|
-
size="small"
|
|
39
|
-
disabled={!hasLocales || !entity.totalCount}
|
|
40
|
-
>
|
|
36
|
+
<Button variant="secondary" size="small" disabled={!hasLocales}>
|
|
41
37
|
Edit
|
|
42
38
|
</Button>
|
|
43
39
|
</Link>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminTranslationEntityStatistics, HttpTypes } from "@medusajs/types"
|
|
2
|
-
import { Container,
|
|
2
|
+
import { Container, Heading, Text, Tooltip } from "@medusajs/ui"
|
|
3
3
|
import { useMemo, useState } from "react"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
|
|
@@ -95,15 +95,14 @@ export const TranslationsCompletionSection = ({
|
|
|
95
95
|
className="mr-0.5 h-full rounded-sm transition-all"
|
|
96
96
|
style={{
|
|
97
97
|
width: `${percentage}%`,
|
|
98
|
-
backgroundColor: "var(--
|
|
99
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
|
|
98
|
+
backgroundColor: "var(--bg-interactive)",
|
|
100
99
|
}}
|
|
101
100
|
/>
|
|
102
101
|
<div
|
|
103
102
|
className="h-full flex-1 rounded-sm"
|
|
104
103
|
style={{
|
|
105
|
-
backgroundColor: "var(--
|
|
106
|
-
|
|
104
|
+
backgroundColor: "var(--bg-interactive)",
|
|
105
|
+
opacity: 0.3,
|
|
107
106
|
}}
|
|
108
107
|
/>
|
|
109
108
|
</>
|
|
@@ -111,8 +110,8 @@ export const TranslationsCompletionSection = ({
|
|
|
111
110
|
<div
|
|
112
111
|
className="h-full w-full rounded-sm"
|
|
113
112
|
style={{
|
|
114
|
-
backgroundColor: "var(--
|
|
115
|
-
|
|
113
|
+
backgroundColor: "var(--bg-interactive)",
|
|
114
|
+
opacity: 0.3,
|
|
116
115
|
}}
|
|
117
116
|
/>
|
|
118
117
|
)}
|
|
@@ -129,156 +128,116 @@ export const TranslationsCompletionSection = ({
|
|
|
129
128
|
</div>
|
|
130
129
|
|
|
131
130
|
{localeStats.length > 0 && (
|
|
132
|
-
|
|
133
|
-
<
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<div className="flex
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<div
|
|
155
|
-
className="h-2 w-2 rounded-full"
|
|
156
|
-
style={{
|
|
157
|
-
backgroundColor: "var(--tag-blue-icon)",
|
|
158
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
|
|
159
|
-
}}
|
|
160
|
-
/>
|
|
161
|
-
<Text
|
|
162
|
-
size="small"
|
|
163
|
-
weight="plus"
|
|
164
|
-
className="text-ui-fg-base"
|
|
165
|
-
>
|
|
166
|
-
{t("translations.completion.translated")}
|
|
167
|
-
</Text>
|
|
168
|
-
</div>
|
|
169
|
-
<Text
|
|
170
|
-
size="small"
|
|
171
|
-
weight="plus"
|
|
172
|
-
className="text-ui-fg-base"
|
|
173
|
-
>
|
|
174
|
-
{locale.translated}
|
|
175
|
-
</Text>
|
|
176
|
-
</div>
|
|
177
|
-
<div className="flex items-center justify-between">
|
|
178
|
-
<div className="flex items-center gap-x-2">
|
|
179
|
-
<div
|
|
180
|
-
className="h-2 w-2 rounded-full"
|
|
181
|
-
style={{
|
|
182
|
-
backgroundColor: "var(--tag-blue-border)",
|
|
183
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
|
|
184
|
-
}}
|
|
185
|
-
/>
|
|
186
|
-
<Text
|
|
187
|
-
size="small"
|
|
188
|
-
weight="plus"
|
|
189
|
-
className="text-ui-fg-base"
|
|
190
|
-
>
|
|
191
|
-
{t("translations.completion.toTranslate")}
|
|
192
|
-
</Text>
|
|
193
|
-
</div>
|
|
131
|
+
<div className="border-ui-border-strong flex flex-col gap-y-3 border-t border-dashed px-6 pb-6 pt-4">
|
|
132
|
+
<div className="flex h-32 w-full items-end gap-1">
|
|
133
|
+
{localeStats.map((locale) => {
|
|
134
|
+
const heightPercent = (locale.total / maxTotal) * 100
|
|
135
|
+
const translatedPercent =
|
|
136
|
+
locale.total > 0 ? (locale.translated / locale.total) * 100 : 0
|
|
137
|
+
|
|
138
|
+
return (
|
|
139
|
+
<Tooltip
|
|
140
|
+
key={locale.code}
|
|
141
|
+
open={hoveredLocale === locale.code}
|
|
142
|
+
content={
|
|
143
|
+
<div className="flex flex-col gap-y-1 p-1">
|
|
144
|
+
<Text size="small" weight="plus">
|
|
145
|
+
{locale.name}
|
|
146
|
+
</Text>
|
|
147
|
+
<div className="flex items-center justify-between">
|
|
148
|
+
<div className="flex items-center gap-x-2">
|
|
149
|
+
<div
|
|
150
|
+
className="h-2 w-2 rounded-full"
|
|
151
|
+
style={{ backgroundColor: "var(--bg-interactive)" }}
|
|
152
|
+
/>
|
|
194
153
|
<Text
|
|
195
154
|
size="small"
|
|
196
155
|
weight="plus"
|
|
197
|
-
className="text-ui-fg-
|
|
156
|
+
className="text-ui-fg-subtle"
|
|
198
157
|
>
|
|
199
|
-
{
|
|
158
|
+
{t("translations.completion.translated")}
|
|
200
159
|
</Text>
|
|
201
160
|
</div>
|
|
161
|
+
<Text size="small" weight="plus">
|
|
162
|
+
{locale.translated}
|
|
163
|
+
</Text>
|
|
202
164
|
</div>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
) : (
|
|
222
|
-
<>
|
|
223
|
-
<div
|
|
224
|
-
className="w-full rounded-sm"
|
|
225
|
-
style={{
|
|
226
|
-
height: `${100 - translatedPercent}%`,
|
|
227
|
-
backgroundColor: "var(--tag-blue-border)",
|
|
228
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
|
|
229
|
-
minHeight: locale.toTranslate > 0 ? "2px" : "0",
|
|
230
|
-
}}
|
|
231
|
-
/>
|
|
232
|
-
{translatedPercent > 0 && (
|
|
233
|
-
<div
|
|
234
|
-
className="mt-0.5 w-full rounded-sm"
|
|
235
|
-
style={{
|
|
236
|
-
height: `${translatedPercent}%`,
|
|
237
|
-
backgroundColor: "var(--tag-blue-icon)",
|
|
238
|
-
boxShadow:
|
|
239
|
-
"inset 0 0 0 0.5px var(--alpha-250)",
|
|
240
|
-
minHeight:
|
|
241
|
-
locale.translated > 0 ? "2px" : "0",
|
|
242
|
-
}}
|
|
243
|
-
/>
|
|
244
|
-
)}
|
|
245
|
-
</>
|
|
246
|
-
)}
|
|
165
|
+
<div className="flex items-center gap-x-2">
|
|
166
|
+
<div
|
|
167
|
+
className="h-2 w-2 rounded-full"
|
|
168
|
+
style={{
|
|
169
|
+
backgroundColor: "var(--bg-interactive)",
|
|
170
|
+
opacity: 0.3,
|
|
171
|
+
}}
|
|
172
|
+
/>
|
|
173
|
+
<Text
|
|
174
|
+
size="small"
|
|
175
|
+
weight="plus"
|
|
176
|
+
className="text-ui-fg-subtle"
|
|
177
|
+
>
|
|
178
|
+
{t("translations.completion.toTranslate")}
|
|
179
|
+
</Text>
|
|
180
|
+
<Text size="small" weight="plus">
|
|
181
|
+
{locale.toTranslate}
|
|
182
|
+
</Text>
|
|
247
183
|
</div>
|
|
248
184
|
</div>
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
})}
|
|
252
|
-
</div>
|
|
253
|
-
{localeStatsCount < 9 && (
|
|
254
|
-
<div className="flex w-full gap-1">
|
|
255
|
-
{localeStats.map((locale) => (
|
|
185
|
+
}
|
|
186
|
+
>
|
|
256
187
|
<div
|
|
257
|
-
|
|
258
|
-
|
|
188
|
+
className="flex min-w-2 flex-1 flex-col justify-end overflow-hidden rounded-t-sm transition-opacity"
|
|
189
|
+
style={{ height: `${heightPercent}%` }}
|
|
190
|
+
onMouseEnter={() => setHoveredLocale(locale.code)}
|
|
191
|
+
onMouseLeave={() => setHoveredLocale(null)}
|
|
259
192
|
>
|
|
260
|
-
<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
193
|
+
<div
|
|
194
|
+
className="w-full rounded-t-sm"
|
|
195
|
+
style={{
|
|
196
|
+
height: `${100 - translatedPercent}%`,
|
|
197
|
+
backgroundColor: "var(--bg-interactive)",
|
|
198
|
+
opacity: 0.3,
|
|
199
|
+
minHeight: locale.toTranslate > 0 ? "2px" : "0",
|
|
200
|
+
}}
|
|
201
|
+
/>
|
|
202
|
+
{translatedPercent > 0 && (
|
|
203
|
+
<div
|
|
204
|
+
className="mt-0.5 w-full rounded-sm"
|
|
205
|
+
style={{
|
|
206
|
+
height: `${translatedPercent}%`,
|
|
207
|
+
backgroundColor: "var(--bg-interactive)",
|
|
208
|
+
minHeight: locale.translated > 0 ? "2px" : "0",
|
|
209
|
+
}}
|
|
210
|
+
/>
|
|
211
|
+
)}
|
|
267
212
|
</div>
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
)}
|
|
271
|
-
{localeStatsCount > 9 && (
|
|
272
|
-
<Text
|
|
273
|
-
weight="plus"
|
|
274
|
-
size="xsmall"
|
|
275
|
-
className="text-ui-fg-subtle text-center"
|
|
276
|
-
>
|
|
277
|
-
{t("translations.completion.footer")}
|
|
278
|
-
</Text>
|
|
279
|
-
)}
|
|
213
|
+
</Tooltip>
|
|
214
|
+
)
|
|
215
|
+
})}
|
|
280
216
|
</div>
|
|
281
|
-
|
|
217
|
+
{localeStatsCount < 9 && (
|
|
218
|
+
<div className="flex w-full gap-1">
|
|
219
|
+
{localeStats.map((locale) => (
|
|
220
|
+
<Text
|
|
221
|
+
key={locale.code}
|
|
222
|
+
size="xsmall"
|
|
223
|
+
weight="plus"
|
|
224
|
+
className="text-ui-fg-subtle min-w-2 flex-1 whitespace-normal break-words text-center leading-tight"
|
|
225
|
+
>
|
|
226
|
+
{localeStatsCount < 6 ? locale.name : locale.code}
|
|
227
|
+
</Text>
|
|
228
|
+
))}
|
|
229
|
+
</div>
|
|
230
|
+
)}
|
|
231
|
+
{localeStatsCount > 9 && (
|
|
232
|
+
<Text
|
|
233
|
+
weight="plus"
|
|
234
|
+
size="xsmall"
|
|
235
|
+
className="text-ui-fg-subtle text-center"
|
|
236
|
+
>
|
|
237
|
+
{t("translations.completion.footer")}
|
|
238
|
+
</Text>
|
|
239
|
+
)}
|
|
240
|
+
</div>
|
|
282
241
|
)}
|
|
283
242
|
</Container>
|
|
284
243
|
)
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AddLocalesForm
|
|
3
|
-
} from "./chunk-IKTGFXWR.mjs";
|
|
4
|
-
import "./chunk-XNIVMZHA.mjs";
|
|
5
|
-
import "./chunk-MSDRGCRR.mjs";
|
|
6
|
-
import "./chunk-P3UUX2T6.mjs";
|
|
7
|
-
import "./chunk-LQTHYS2Z.mjs";
|
|
8
|
-
import "./chunk-DTZXEQXZ.mjs";
|
|
9
|
-
import "./chunk-HQKGZADC.mjs";
|
|
10
|
-
import "./chunk-EMIHDNB7.mjs";
|
|
11
|
-
import "./chunk-ZQJPHZKI.mjs";
|
|
12
|
-
import "./chunk-C76H5USB.mjs";
|
|
13
|
-
import "./chunk-DFFLVEZ5.mjs";
|
|
14
|
-
import "./chunk-IUCDCPJU.mjs";
|
|
15
|
-
import "./chunk-6HTZNHPT.mjs";
|
|
16
|
-
import {
|
|
17
|
-
RouteFocusModal
|
|
18
|
-
} from "./chunk-D6UW7URG.mjs";
|
|
19
|
-
import {
|
|
20
|
-
useFeatureFlag
|
|
21
|
-
} from "./chunk-G4BWCU5P.mjs";
|
|
22
|
-
import "./chunk-LPEUYMRK.mjs";
|
|
23
|
-
import "./chunk-OC7BQLYI.mjs";
|
|
24
|
-
import "./chunk-S4DMV3ZT.mjs";
|
|
25
|
-
import "./chunk-535OVBXR.mjs";
|
|
26
|
-
import "./chunk-OBQI23QM.mjs";
|
|
27
|
-
import "./chunk-GLBHPDR4.mjs";
|
|
28
|
-
import "./chunk-I4OBEAOJ.mjs";
|
|
29
|
-
import "./chunk-HI6URQ7H.mjs";
|
|
30
|
-
import "./chunk-6CLQKVAU.mjs";
|
|
31
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
32
|
-
import "./chunk-UJ2TMPV4.mjs";
|
|
33
|
-
import "./chunk-23GTCEOV.mjs";
|
|
34
|
-
import "./chunk-WAXMT4IY.mjs";
|
|
35
|
-
import "./chunk-DYDGGABK.mjs";
|
|
36
|
-
import "./chunk-LGNTHZ5Y.mjs";
|
|
37
|
-
import "./chunk-CN7JXSGW.mjs";
|
|
38
|
-
import "./chunk-5BQQRHQS.mjs";
|
|
39
|
-
import "./chunk-HTCYX4VD.mjs";
|
|
40
|
-
import "./chunk-5AFMB7XQ.mjs";
|
|
41
|
-
import "./chunk-UWY5ZV66.mjs";
|
|
42
|
-
import "./chunk-A63RZVX6.mjs";
|
|
43
|
-
import "./chunk-HBXV7ENS.mjs";
|
|
44
|
-
import "./chunk-CDORR33H.mjs";
|
|
45
|
-
import "./chunk-4JQR6QNW.mjs";
|
|
46
|
-
import "./chunk-FYWHE3W5.mjs";
|
|
47
|
-
import "./chunk-OSHH5GAS.mjs";
|
|
48
|
-
import "./chunk-2XTBDCGE.mjs";
|
|
49
|
-
import "./chunk-3BF5SC66.mjs";
|
|
50
|
-
import {
|
|
51
|
-
useStore
|
|
52
|
-
} from "./chunk-VCSSQVPD.mjs";
|
|
53
|
-
import "./chunk-HP2JH45P.mjs";
|
|
54
|
-
import "./chunk-SQDIZZDW.mjs";
|
|
55
|
-
import "./chunk-Z6BFNHEO.mjs";
|
|
56
|
-
import "./chunk-HGRIOEAR.mjs";
|
|
57
|
-
import "./chunk-FXYH54JP.mjs";
|
|
58
|
-
import "./chunk-774WSTCC.mjs";
|
|
59
|
-
import "./chunk-NFEK63OE.mjs";
|
|
60
|
-
import "./chunk-QZ7TP4HQ.mjs";
|
|
61
|
-
|
|
62
|
-
// src/routes/translations/add-locales/add-locales.tsx
|
|
63
|
-
import { useNavigate } from "react-router-dom";
|
|
64
|
-
import { jsx } from "react/jsx-runtime";
|
|
65
|
-
var TranslationsAddLocales = () => {
|
|
66
|
-
const isEnabled = useFeatureFlag("translation");
|
|
67
|
-
const navigate = useNavigate();
|
|
68
|
-
if (!isEnabled) {
|
|
69
|
-
navigate(-1);
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
const { store, isPending, isError, error } = useStore();
|
|
73
|
-
const ready = !!store && !isPending;
|
|
74
|
-
if (isError) {
|
|
75
|
-
throw error;
|
|
76
|
-
}
|
|
77
|
-
return /* @__PURE__ */ jsx(RouteFocusModal, { children: ready && /* @__PURE__ */ jsx(AddLocalesForm, { store }) });
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
TranslationsAddLocales as Component
|
|
81
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AddLocalesForm
|
|
3
|
-
} from "./chunk-IKTGFXWR.mjs";
|
|
4
|
-
import "./chunk-XNIVMZHA.mjs";
|
|
5
|
-
import "./chunk-MSDRGCRR.mjs";
|
|
6
|
-
import "./chunk-P3UUX2T6.mjs";
|
|
7
|
-
import "./chunk-LQTHYS2Z.mjs";
|
|
8
|
-
import "./chunk-DTZXEQXZ.mjs";
|
|
9
|
-
import "./chunk-HQKGZADC.mjs";
|
|
10
|
-
import "./chunk-EMIHDNB7.mjs";
|
|
11
|
-
import "./chunk-ZQJPHZKI.mjs";
|
|
12
|
-
import "./chunk-C76H5USB.mjs";
|
|
13
|
-
import "./chunk-DFFLVEZ5.mjs";
|
|
14
|
-
import "./chunk-IUCDCPJU.mjs";
|
|
15
|
-
import "./chunk-6HTZNHPT.mjs";
|
|
16
|
-
import {
|
|
17
|
-
RouteFocusModal
|
|
18
|
-
} from "./chunk-D6UW7URG.mjs";
|
|
19
|
-
import {
|
|
20
|
-
useFeatureFlag
|
|
21
|
-
} from "./chunk-G4BWCU5P.mjs";
|
|
22
|
-
import "./chunk-LPEUYMRK.mjs";
|
|
23
|
-
import "./chunk-OC7BQLYI.mjs";
|
|
24
|
-
import "./chunk-S4DMV3ZT.mjs";
|
|
25
|
-
import "./chunk-535OVBXR.mjs";
|
|
26
|
-
import "./chunk-OBQI23QM.mjs";
|
|
27
|
-
import "./chunk-GLBHPDR4.mjs";
|
|
28
|
-
import "./chunk-I4OBEAOJ.mjs";
|
|
29
|
-
import "./chunk-HI6URQ7H.mjs";
|
|
30
|
-
import "./chunk-6CLQKVAU.mjs";
|
|
31
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
32
|
-
import "./chunk-UJ2TMPV4.mjs";
|
|
33
|
-
import "./chunk-23GTCEOV.mjs";
|
|
34
|
-
import "./chunk-WAXMT4IY.mjs";
|
|
35
|
-
import "./chunk-DYDGGABK.mjs";
|
|
36
|
-
import "./chunk-LGNTHZ5Y.mjs";
|
|
37
|
-
import "./chunk-CN7JXSGW.mjs";
|
|
38
|
-
import "./chunk-5BQQRHQS.mjs";
|
|
39
|
-
import "./chunk-HTCYX4VD.mjs";
|
|
40
|
-
import "./chunk-5AFMB7XQ.mjs";
|
|
41
|
-
import "./chunk-UWY5ZV66.mjs";
|
|
42
|
-
import "./chunk-A63RZVX6.mjs";
|
|
43
|
-
import "./chunk-HBXV7ENS.mjs";
|
|
44
|
-
import "./chunk-CDORR33H.mjs";
|
|
45
|
-
import "./chunk-4JQR6QNW.mjs";
|
|
46
|
-
import "./chunk-FYWHE3W5.mjs";
|
|
47
|
-
import "./chunk-OSHH5GAS.mjs";
|
|
48
|
-
import "./chunk-2XTBDCGE.mjs";
|
|
49
|
-
import "./chunk-3BF5SC66.mjs";
|
|
50
|
-
import {
|
|
51
|
-
useStore
|
|
52
|
-
} from "./chunk-VCSSQVPD.mjs";
|
|
53
|
-
import "./chunk-HP2JH45P.mjs";
|
|
54
|
-
import "./chunk-SQDIZZDW.mjs";
|
|
55
|
-
import "./chunk-Z6BFNHEO.mjs";
|
|
56
|
-
import "./chunk-HGRIOEAR.mjs";
|
|
57
|
-
import "./chunk-FXYH54JP.mjs";
|
|
58
|
-
import "./chunk-774WSTCC.mjs";
|
|
59
|
-
import "./chunk-NFEK63OE.mjs";
|
|
60
|
-
import "./chunk-QZ7TP4HQ.mjs";
|
|
61
|
-
|
|
62
|
-
// src/routes/store/store-add-locales/store-add-locales.tsx
|
|
63
|
-
import { useNavigate } from "react-router-dom";
|
|
64
|
-
import { jsx } from "react/jsx-runtime";
|
|
65
|
-
var StoreAddLocales = () => {
|
|
66
|
-
const isEnabled = useFeatureFlag("translation");
|
|
67
|
-
const navigate = useNavigate();
|
|
68
|
-
if (!isEnabled) {
|
|
69
|
-
navigate(-1);
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
const { store, isPending, isError, error } = useStore();
|
|
73
|
-
const ready = !!store && !isPending;
|
|
74
|
-
if (isError) {
|
|
75
|
-
throw error;
|
|
76
|
-
}
|
|
77
|
-
return /* @__PURE__ */ jsx(RouteFocusModal, { children: ready && /* @__PURE__ */ jsx(AddLocalesForm, { store }) });
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
StoreAddLocales as Component
|
|
81
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { RouteFocusModal } from "../../../components/modals/route-focus-modal"
|
|
2
|
-
import { useStore } from "../../../hooks/api"
|
|
3
|
-
import { useFeatureFlag } from "../../../providers/feature-flag-provider"
|
|
4
|
-
import { useNavigate } from "react-router-dom"
|
|
5
|
-
import { AddLocalesForm } from "../../store/store-add-locales/components/add-locales-form/add-locales-form"
|
|
6
|
-
|
|
7
|
-
export const TranslationsAddLocales = () => {
|
|
8
|
-
const isEnabled = useFeatureFlag("translation")
|
|
9
|
-
const navigate = useNavigate()
|
|
10
|
-
|
|
11
|
-
if (!isEnabled) {
|
|
12
|
-
navigate(-1)
|
|
13
|
-
return null
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const { store, isPending, isError, error } = useStore()
|
|
17
|
-
|
|
18
|
-
const ready = !!store && !isPending
|
|
19
|
-
|
|
20
|
-
if (isError) {
|
|
21
|
-
throw error
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<RouteFocusModal>
|
|
26
|
-
{ready && <AddLocalesForm store={store} />}
|
|
27
|
-
</RouteFocusModal>
|
|
28
|
-
)
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TranslationsAddLocales as Component } from "./add-locales"
|