@medusajs/dashboard 2.12.3-preview-20251217123836 → 2.12.3-snapshot-20251216185234
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/{api-key-management-detail-FRUN2KFK.mjs → api-key-management-detail-6RCDH73M.mjs} +1 -1
- package/dist/app.css +0 -19
- package/dist/app.js +679 -795
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-HM3GQJLQ.mjs → campaign-detail-5Q4BYCPX.mjs} +1 -1
- package/dist/{categories-metadata-WKL3MGD7.mjs → categories-metadata-J7M3XWI7.mjs} +1 -1
- package/dist/{category-detail-UTWWDKFP.mjs → category-detail-S5IPXMHX.mjs} +2 -2
- package/dist/{category-products-XXBTCXFF.mjs → category-products-KPW6BA5J.mjs} +2 -2
- package/dist/{chunk-UMCJYHAD.mjs → chunk-CVHJAKLQ.mjs} +1 -1
- package/dist/{chunk-KSDXSKJ7.mjs → chunk-DBXWB3RF.mjs} +1 -1
- package/dist/{chunk-GLBHPDR4.mjs → chunk-GRZSG4EP.mjs} +16 -21
- package/dist/{chunk-FKNW5MLZ.mjs → chunk-LZFWCKOF.mjs} +4 -21
- package/dist/{chunk-5ISRTMYH.mjs → chunk-MJDHVDOW.mjs} +1 -1
- package/dist/{chunk-5F427YCP.mjs → chunk-OL24RDYM.mjs} +2 -2
- package/dist/{chunk-VFF5WB7C.mjs → chunk-OL6MEUKW.mjs} +104 -108
- package/dist/{chunk-OK6NZN2A.mjs → chunk-PHLCT2HA.mjs} +1 -1
- package/dist/{chunk-DQUXK4WW.mjs → chunk-ST4P6BQN.mjs} +1 -1
- package/dist/{chunk-HNJ65IND.mjs → chunk-WYATCUOM.mjs} +1 -1
- package/dist/{chunk-DTCIBQO2.mjs → chunk-YYOPBKME.mjs} +1 -1
- package/dist/{chunk-SG2JZPTG.mjs → chunk-ZMG5B4FG.mjs} +1 -1
- package/dist/{collection-add-products-42F7H77E.mjs → collection-add-products-FU2BS3D3.mjs} +2 -2
- package/dist/{collection-detail-PXIS3G64.mjs → collection-detail-VJE7XHLV.mjs} +2 -2
- package/dist/{collection-list-O74CGY24.mjs → collection-list-IGA6SCNF.mjs} +2 -2
- package/dist/{collection-metadata-U6FMA4IC.mjs → collection-metadata-QK7MI3D2.mjs} +1 -1
- package/dist/{customer-detail-OMTFJ6CE.mjs → customer-detail-MOV2T3LF.mjs} +1 -1
- package/dist/{customer-group-detail-ADK3M5LG.mjs → customer-group-detail-6T7OXGQD.mjs} +1 -1
- package/dist/{customer-group-list-7ZRQ2HWU.mjs → customer-group-list-AJEAF5D2.mjs} +1 -1
- package/dist/{customers-add-customer-group-5U27WHJB.mjs → customers-add-customer-group-QVTVSQYM.mjs} +1 -1
- package/dist/{edit-rules-BM2ERGVJ.mjs → edit-rules-SMVRTCUP.mjs} +1 -1
- package/dist/en.json +1 -1
- package/dist/{inventory-create-7MA7B5N2.mjs → inventory-create-BK52VALF.mjs} +2 -2
- package/dist/{inventory-detail-B4PRHZK3.mjs → inventory-detail-ZPSEMYI2.mjs} +1 -1
- package/dist/{inventory-metadata-C7MJ3GY5.mjs → inventory-metadata-FNEJ3RAT.mjs} +1 -1
- package/dist/{inventory-stock-WVTYPJTX.mjs → inventory-stock-6WYWLWJ7.mjs} +3 -3
- package/dist/{location-detail-KO6EBDK5.mjs → location-detail-N3GUZSY7.mjs} +1 -1
- package/dist/{location-fulfillment-providers-IORBE3E3.mjs → location-fulfillment-providers-7ZUJAGNY.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-create-2R3ZFLVK.mjs → location-service-zone-shipping-option-create-CNRWYZQC.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs → location-service-zone-shipping-option-pricing-OGWI7VPT.mjs} +2 -2
- package/dist/{login-XKB6OR7I.mjs → login-VNOLI5YG.mjs} +1 -1
- package/dist/{order-create-claim-NKCOGF4A.mjs → order-create-claim-SCDJGM46.mjs} +1 -1
- package/dist/{order-create-edit-UNQYXGLL.mjs → order-create-edit-2WALBPXS.mjs} +1 -1
- package/dist/{order-create-exchange-WI7OA2WO.mjs → order-create-exchange-LQU4YN7F.mjs} +1 -1
- package/dist/{order-create-fulfillment-2LJTEWDY.mjs → order-create-fulfillment-OWUVTZXW.mjs} +1 -1
- package/dist/{order-create-refund-7K6UJXGP.mjs → order-create-refund-Q6HQY42R.mjs} +1 -1
- package/dist/{order-create-shipment-ZTDLLUBY.mjs → order-create-shipment-WAGGEPRW.mjs} +1 -1
- package/dist/{order-detail-JTRUMRLO.mjs → order-detail-PVPGEWGY.mjs} +1 -1
- package/dist/{order-edit-billing-address-YHYNVLOE.mjs → order-edit-billing-address-UM76J4KX.mjs} +1 -1
- package/dist/{order-edit-email-TCQPEVZY.mjs → order-edit-email-CL3KNOCM.mjs} +1 -1
- package/dist/{order-edit-shipping-address-CFSYQLKD.mjs → order-edit-shipping-address-PIESTGVL.mjs} +1 -1
- package/dist/{order-export-G4SBNEJ7.mjs → order-export-LE363ZLB.mjs} +1 -1
- package/dist/{order-metadata-KGPB37VL.mjs → order-metadata-FHBB7MTG.mjs} +1 -1
- package/dist/{order-receive-return-JER24SEV.mjs → order-receive-return-PRVKP6J2.mjs} +1 -1
- package/dist/{order-request-transfer-3FBUYZNT.mjs → order-request-transfer-XSAGRUMT.mjs} +1 -1
- package/dist/{price-list-create-CXZCFFTP.mjs → price-list-create-K5JEZT57.mjs} +4 -4
- package/dist/{price-list-detail-XOMU6U5J.mjs → price-list-detail-Q5VG5VGW.mjs} +2 -2
- package/dist/{price-list-prices-add-SDX5CQME.mjs → price-list-prices-add-2MQ226U4.mjs} +4 -4
- package/dist/{price-list-prices-edit-EKB6NI5D.mjs → price-list-prices-edit-OJZLV7OS.mjs} +2 -2
- package/dist/{product-attributes-MXDPSOWM.mjs → product-attributes-YF4TZOIO.mjs} +2 -2
- package/dist/{product-create-3O34JJLS.mjs → product-create-KJML2332.mjs} +3 -3
- package/dist/{product-create-variant-OTJKT6WI.mjs → product-create-variant-5EBCLM54.mjs} +2 -2
- package/dist/{product-detail-SYTLG5D3.mjs → product-detail-QG72542C.mjs} +2 -2
- package/dist/{product-edit-W72S22NM.mjs → product-edit-DZZR775Q.mjs} +2 -2
- package/dist/{product-export-57UUAGXF.mjs → product-export-5AD7NELI.mjs} +2 -2
- package/dist/{product-image-variants-edit-2BW5BJON.mjs → product-image-variants-edit-M6QF2RLE.mjs} +1 -1
- package/dist/{product-import-6EM4VUXP.mjs → product-import-V3KQN4TV.mjs} +1 -1
- package/dist/{product-list-5V5GEH5K.mjs → product-list-EUWZIFTM.mjs} +2 -2
- package/dist/{product-metadata-JZLHBLZQ.mjs → product-metadata-GL2MVPDI.mjs} +1 -1
- package/dist/{product-organization-SVXTCWIF.mjs → product-organization-O7RHELMQ.mjs} +2 -2
- package/dist/{product-prices-5ZL2RP7A.mjs → product-prices-YWV6MSM6.mjs} +1 -1
- package/dist/{product-stock-SJJABF6I.mjs → product-stock-AKEFMK5O.mjs} +3 -3
- package/dist/{product-tag-create-XXO4AQEC.mjs → product-tag-create-PQMDDKWH.mjs} +1 -1
- package/dist/{product-tag-detail-BSK64HXL.mjs → product-tag-detail-I3MBZX7U.mjs} +3 -3
- package/dist/{product-tag-edit-ENCGDT7E.mjs → product-tag-edit-K3BBQLJR.mjs} +1 -1
- package/dist/{product-tag-list-SLQGCNDZ.mjs → product-tag-list-JUWSOMB7.mjs} +3 -3
- package/dist/{product-tag-metadata-EPXHMU2K.mjs → product-tag-metadata-MJH5LH7E.mjs} +1 -1
- package/dist/{product-type-detail-4CRRU7YK.mjs → product-type-detail-RKHT5NBL.mjs} +2 -2
- package/dist/{product-type-metadata-73OKOGPP.mjs → product-type-metadata-CDJDFFGQ.mjs} +1 -1
- package/dist/{product-variant-detail-RPHLG4HU.mjs → product-variant-detail-XAYG5CKE.mjs} +1 -1
- package/dist/{product-variant-edit-JF7NN64Y.mjs → product-variant-edit-DEZEY2H2.mjs} +1 -1
- package/dist/{product-variant-metadata-HU2CXGPO.mjs → product-variant-metadata-VTZDNWUT.mjs} +1 -1
- package/dist/{promotion-create-BHA3FQG2.mjs → promotion-create-HWFNUQXG.mjs} +1 -1
- package/dist/{promotion-detail-F3QSR52W.mjs → promotion-detail-QC36KXB3.mjs} +1 -1
- package/dist/{refund-reason-create-ZA5TKW2Z.mjs → refund-reason-create-YHCDEHGQ.mjs} +1 -1
- package/dist/{refund-reason-edit-N2CRCLKZ.mjs → refund-reason-edit-CZ5QZ2SZ.mjs} +1 -1
- package/dist/{refund-reason-list-SE4TMGMT.mjs → refund-reason-list-OJYYEYJE.mjs} +1 -1
- package/dist/{region-metadata-O5NZBWXP.mjs → region-metadata-H6XXUQ4S.mjs} +1 -1
- package/dist/{reservation-detail-UFK6XIXE.mjs → reservation-detail-LZAQL4XA.mjs} +1 -1
- package/dist/{reservation-metadata-AEJEKGLV.mjs → reservation-metadata-5HZSDDOK.mjs} +1 -1
- package/dist/{sales-channel-add-products-2LMB7EF5.mjs → sales-channel-add-products-F7YV4MO5.mjs} +2 -2
- package/dist/{sales-channel-detail-EUQ4STQI.mjs → sales-channel-detail-MXIPZCGA.mjs} +2 -2
- package/dist/{sales-channel-list-JXKGHX4G.mjs → sales-channel-list-RLGL7FM3.mjs} +1 -1
- package/dist/{sales-channel-metadata-AJMQ5SQ2.mjs → sales-channel-metadata-M364R4RJ.mjs} +1 -1
- package/dist/{shipping-option-type-create-YVVIA2XC.mjs → shipping-option-type-create-C5WUWON7.mjs} +1 -1
- package/dist/{shipping-option-type-detail-ZZW36XLK.mjs → shipping-option-type-detail-PENS2K73.mjs} +2 -2
- package/dist/{shipping-option-type-edit-O6F74T3A.mjs → shipping-option-type-edit-CIU5EHRP.mjs} +1 -1
- package/dist/{shipping-option-type-list-SPTE7MT6.mjs → shipping-option-type-list-DIOX7VG7.mjs} +2 -2
- package/dist/{shipping-profile-metadata-7WFE55VG.mjs → shipping-profile-metadata-75G2NNMA.mjs} +1 -1
- package/dist/{chunk-IKTGFXWR.mjs → store-add-locales-VJ4RJ7UI.mjs} +67 -2
- package/dist/{store-detail-YLJLBBZE.mjs → store-detail-JSNPOB2F.mjs} +1 -1
- package/dist/{store-metadata-BZ57I2E6.mjs → store-metadata-CYXTVJUE.mjs} +1 -1
- package/dist/{tax-region-create-FGTV7VJL.mjs → tax-region-create-DWGL4EUT.mjs} +1 -1
- package/dist/{tax-region-detail-PPIMD7OX.mjs → tax-region-detail-2AE2EFI3.mjs} +5 -5
- package/dist/{tax-region-edit-ELZKA7YH.mjs → tax-region-edit-EEVEEU2Q.mjs} +1 -1
- package/dist/{tax-region-province-detail-FV2NDT3E.mjs → tax-region-province-detail-4ERSEQFF.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-N572MQPZ.mjs → tax-region-tax-override-create-PHCGEF7V.mjs} +3 -3
- package/dist/{tax-region-tax-override-edit-5DCSJW6D.mjs → tax-region-tax-override-edit-SMRPSILC.mjs} +4 -4
- package/dist/{translation-list-FK7XYLHX.mjs → translation-list-UF7FLXOW.mjs} +141 -227
- package/dist/{translations-edit-VRXZI5KW.mjs → translations-edit-USQJNMAY.mjs} +253 -224
- package/dist/{user-metadata-GRJZZ524.mjs → user-metadata-2WPJOEJA.mjs} +1 -1
- package/dist/{workflow-execution-detail-HXTFWGKG.mjs → workflow-execution-detail-H2AKEZJX.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +0 -1
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +0 -1
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +4 -22
- package/src/dashboard-app/routes/get-route.map.tsx +0 -4
- package/src/hooks/api/translations.tsx +17 -26
- 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 +17 -42
- 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 +121 -182
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +330 -285
- 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
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OL24RDYM.mjs";
|
|
6
|
+
import "./chunk-CVHJAKLQ.mjs";
|
|
7
|
+
import "./chunk-WYATCUOM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionTable,
|
|
10
10
|
useTaxRegionTable
|
|
@@ -67,7 +67,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
67
67
|
import "./chunk-MOSRJHJ3.mjs";
|
|
68
68
|
import "./chunk-OMC5JCQH.mjs";
|
|
69
69
|
import "./chunk-IW4TACOD.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-YYOPBKME.mjs";
|
|
71
71
|
import "./chunk-R65S6ZZV.mjs";
|
|
72
72
|
import "./chunk-ZQJPHZKI.mjs";
|
|
73
73
|
import "./chunk-KIIT4BNH.mjs";
|
|
@@ -98,7 +98,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
98
98
|
import "./chunk-S4DMV3ZT.mjs";
|
|
99
99
|
import "./chunk-535OVBXR.mjs";
|
|
100
100
|
import "./chunk-OBQI23QM.mjs";
|
|
101
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-GRZSG4EP.mjs";
|
|
102
102
|
import "./chunk-I4OBEAOJ.mjs";
|
|
103
103
|
import {
|
|
104
104
|
useTaxRates
|
package/dist/{tax-region-province-detail-FV2NDT3E.mjs → tax-region-province-detail-4ERSEQFF.mjs}
RENAMED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OL24RDYM.mjs";
|
|
6
|
+
import "./chunk-CVHJAKLQ.mjs";
|
|
7
|
+
import "./chunk-WYATCUOM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionCard
|
|
10
10
|
} from "./chunk-S22SJRPO.mjs";
|
|
@@ -60,7 +60,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
60
60
|
import "./chunk-MOSRJHJ3.mjs";
|
|
61
61
|
import "./chunk-OMC5JCQH.mjs";
|
|
62
62
|
import "./chunk-IW4TACOD.mjs";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-YYOPBKME.mjs";
|
|
64
64
|
import "./chunk-R65S6ZZV.mjs";
|
|
65
65
|
import "./chunk-ZQJPHZKI.mjs";
|
|
66
66
|
import "./chunk-KIIT4BNH.mjs";
|
|
@@ -87,7 +87,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
87
87
|
import "./chunk-S4DMV3ZT.mjs";
|
|
88
88
|
import "./chunk-535OVBXR.mjs";
|
|
89
89
|
import "./chunk-OBQI23QM.mjs";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-GRZSG4EP.mjs";
|
|
91
91
|
import "./chunk-I4OBEAOJ.mjs";
|
|
92
92
|
import {
|
|
93
93
|
useTaxRates
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
TargetItem,
|
|
4
4
|
TaxRateRuleReferenceSchema,
|
|
5
5
|
createTaxRulePayload
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WYATCUOM.mjs";
|
|
7
7
|
import "./chunk-PA3T6IWL.mjs";
|
|
8
8
|
import "./chunk-QOCJPBRB.mjs";
|
|
9
9
|
import "./chunk-QMRGIWOP.mjs";
|
|
@@ -51,7 +51,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
51
51
|
import "./chunk-MOSRJHJ3.mjs";
|
|
52
52
|
import "./chunk-OMC5JCQH.mjs";
|
|
53
53
|
import "./chunk-IW4TACOD.mjs";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-YYOPBKME.mjs";
|
|
55
55
|
import "./chunk-R65S6ZZV.mjs";
|
|
56
56
|
import "./chunk-ZQJPHZKI.mjs";
|
|
57
57
|
import "./chunk-C76H5USB.mjs";
|
|
@@ -82,7 +82,7 @@ import "./chunk-535OVBXR.mjs";
|
|
|
82
82
|
import {
|
|
83
83
|
Form
|
|
84
84
|
} from "./chunk-OBQI23QM.mjs";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-GRZSG4EP.mjs";
|
|
86
86
|
import "./chunk-I4OBEAOJ.mjs";
|
|
87
87
|
import {
|
|
88
88
|
useCreateTaxRate
|
package/dist/{tax-region-tax-override-edit-5DCSJW6D.mjs → tax-region-tax-override-edit-SMRPSILC.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DISPLAY_OVERRIDE_ITEMS_LIMIT,
|
|
3
3
|
TaxRegionTaxOverrideEditForm
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-CVHJAKLQ.mjs";
|
|
5
|
+
import "./chunk-WYATCUOM.mjs";
|
|
6
6
|
import "./chunk-PA3T6IWL.mjs";
|
|
7
7
|
import "./chunk-QOCJPBRB.mjs";
|
|
8
8
|
import "./chunk-QMRGIWOP.mjs";
|
|
@@ -48,7 +48,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
48
48
|
import "./chunk-MOSRJHJ3.mjs";
|
|
49
49
|
import "./chunk-OMC5JCQH.mjs";
|
|
50
50
|
import "./chunk-IW4TACOD.mjs";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-YYOPBKME.mjs";
|
|
52
52
|
import "./chunk-R65S6ZZV.mjs";
|
|
53
53
|
import "./chunk-ZQJPHZKI.mjs";
|
|
54
54
|
import "./chunk-C76H5USB.mjs";
|
|
@@ -67,7 +67,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
67
67
|
import "./chunk-S4DMV3ZT.mjs";
|
|
68
68
|
import "./chunk-535OVBXR.mjs";
|
|
69
69
|
import "./chunk-OBQI23QM.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-GRZSG4EP.mjs";
|
|
71
71
|
import "./chunk-I4OBEAOJ.mjs";
|
|
72
72
|
import {
|
|
73
73
|
useTaxRate
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
useTranslationSettings,
|
|
12
12
|
useTranslationStatistics
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GRZSG4EP.mjs";
|
|
14
14
|
import "./chunk-I4OBEAOJ.mjs";
|
|
15
15
|
import "./chunk-HI6URQ7H.mjs";
|
|
16
16
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -51,16 +51,9 @@ import { useTranslation as useTranslation4 } from "react-i18next";
|
|
|
51
51
|
|
|
52
52
|
// src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx
|
|
53
53
|
import { PencilSquare, Language } from "@medusajs/icons";
|
|
54
|
-
import {
|
|
55
|
-
Container,
|
|
56
|
-
Heading,
|
|
57
|
-
IconButton,
|
|
58
|
-
InlineTip,
|
|
59
|
-
Text,
|
|
60
|
-
Tooltip
|
|
61
|
-
} from "@medusajs/ui";
|
|
54
|
+
import { Container, Heading, IconButton, InlineTip, Text } from "@medusajs/ui";
|
|
62
55
|
import { useTranslation } from "react-i18next";
|
|
63
|
-
import { useCallback
|
|
56
|
+
import { useCallback } from "react";
|
|
64
57
|
import { useNavigate } from "react-router-dom";
|
|
65
58
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
66
59
|
var ActiveLocalesSection = ({
|
|
@@ -68,9 +61,8 @@ var ActiveLocalesSection = ({
|
|
|
68
61
|
}) => {
|
|
69
62
|
const { t } = useTranslation();
|
|
70
63
|
const navigate = useNavigate();
|
|
71
|
-
const [isHovered, setIsHovered] = useState(false);
|
|
72
64
|
const handleManageLocales = useCallback(() => {
|
|
73
|
-
navigate("/settings/
|
|
65
|
+
navigate("/settings/store/locales");
|
|
74
66
|
}, [navigate]);
|
|
75
67
|
const renderLocales = useCallback(() => {
|
|
76
68
|
const maxLocalesToDetail = 2;
|
|
@@ -82,31 +74,16 @@ var ActiveLocalesSection = ({
|
|
|
82
74
|
const hasLocales = locales.length > 0;
|
|
83
75
|
return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col p-0", children: [
|
|
84
76
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
85
|
-
/* @__PURE__ */ jsx(Heading, {
|
|
77
|
+
/* @__PURE__ */ jsx(Heading, { children: t("translations.activeLocales.heading") }),
|
|
86
78
|
/* @__PURE__ */ jsx(IconButton, { variant: "transparent", onClick: handleManageLocales, children: /* @__PURE__ */ jsx(PencilSquare, {}) })
|
|
87
79
|
] }),
|
|
88
|
-
/* @__PURE__ */ jsx("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
className: "bg-ui-bg-component border-r-1 flex items-center gap-x-4 px-[19px] py-2",
|
|
97
|
-
onMouseEnter: () => setIsHovered(true),
|
|
98
|
-
onMouseLeave: () => setIsHovered(false),
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ jsx(IconAvatar, { className: "border-ui-border-base border", children: /* @__PURE__ */ jsx(Language, {}) }),
|
|
101
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
102
|
-
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: t("translations.activeLocales.subtitle") }),
|
|
103
|
-
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
|
|
104
|
-
] })
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
}
|
|
109
|
-
) : /* @__PURE__ */ jsx(InlineTip, { label: "Tip", children: t("translations.activeLocales.noLocalesTip") }) })
|
|
80
|
+
/* @__PURE__ */ jsx("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ jsxs(Container, { className: "bg-ui-bg-component flex items-center gap-x-4 px-6 py-2", children: [
|
|
81
|
+
/* @__PURE__ */ jsx(IconAvatar, { children: /* @__PURE__ */ jsx(Language, {}) }),
|
|
82
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: t("translations.activeLocales.subtitle") }),
|
|
84
|
+
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
|
|
85
|
+
] })
|
|
86
|
+
] }) : /* @__PURE__ */ jsx(InlineTip, { label: "Tip", children: t("translations.activeLocales.noLocalesTip") }) })
|
|
110
87
|
] });
|
|
111
88
|
};
|
|
112
89
|
|
|
@@ -134,15 +111,7 @@ var TranslationListSection = ({
|
|
|
134
111
|
Link,
|
|
135
112
|
{
|
|
136
113
|
to: `/settings/translations/edit?reference=${entity.reference}`,
|
|
137
|
-
children: /* @__PURE__ */ jsx2(
|
|
138
|
-
Button,
|
|
139
|
-
{
|
|
140
|
-
variant: "secondary",
|
|
141
|
-
size: "small",
|
|
142
|
-
disabled: !hasLocales || !entity.totalCount,
|
|
143
|
-
children: "Edit"
|
|
144
|
-
}
|
|
145
|
-
)
|
|
114
|
+
children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", disabled: !hasLocales, children: "Edit" })
|
|
146
115
|
}
|
|
147
116
|
)
|
|
148
117
|
]
|
|
@@ -152,8 +121,8 @@ var TranslationListSection = ({
|
|
|
152
121
|
};
|
|
153
122
|
|
|
154
123
|
// src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx
|
|
155
|
-
import { Container as Container3,
|
|
156
|
-
import { useMemo, useState
|
|
124
|
+
import { Container as Container3, Heading as Heading2, Text as Text3, Tooltip } from "@medusajs/ui";
|
|
125
|
+
import { useMemo, useState } from "react";
|
|
157
126
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
158
127
|
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
159
128
|
var TranslationsCompletionSection = ({
|
|
@@ -161,7 +130,7 @@ var TranslationsCompletionSection = ({
|
|
|
161
130
|
locales
|
|
162
131
|
}) => {
|
|
163
132
|
const { t } = useTranslation3();
|
|
164
|
-
const [hoveredLocale, setHoveredLocale] =
|
|
133
|
+
const [hoveredLocale, setHoveredLocale] = useState(null);
|
|
165
134
|
const { translatedCount, totalCount } = Object.values(statistics).reduce(
|
|
166
135
|
(acc, curr) => ({
|
|
167
136
|
translatedCount: acc.translatedCount + curr.translated,
|
|
@@ -204,215 +173,160 @@ var TranslationsCompletionSection = ({
|
|
|
204
173
|
() => Math.max(...localeStats.map((s) => s.total), 1),
|
|
205
174
|
[localeStats]
|
|
206
175
|
);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
/* @__PURE__ */ jsxs3("
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"
|
|
223
|
-
{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
width: `${percentage}%`,
|
|
227
|
-
backgroundColor: "var(--tag-blue-icon)",
|
|
228
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
),
|
|
232
|
-
/* @__PURE__ */ jsx3(
|
|
233
|
-
"div",
|
|
234
|
-
{
|
|
235
|
-
className: "h-full flex-1 rounded-sm",
|
|
236
|
-
style: {
|
|
237
|
-
backgroundColor: "var(--tag-blue-border)",
|
|
238
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
|
|
239
|
-
}
|
|
176
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "flex flex-col gap-y-3 px-6 py-4", children: [
|
|
177
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
178
|
+
/* @__PURE__ */ jsx3(Heading2, { children: t("translations.completion.heading") }),
|
|
179
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
180
|
+
translatedCount.toLocaleString(),
|
|
181
|
+
" ",
|
|
182
|
+
t("general.of"),
|
|
183
|
+
" ",
|
|
184
|
+
totalCount.toLocaleString()
|
|
185
|
+
] })
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ jsx3("div", { className: "flex h-3 w-full overflow-hidden", children: percentage > 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
188
|
+
/* @__PURE__ */ jsx3(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
className: "mr-0.5 h-full rounded-sm transition-all",
|
|
192
|
+
style: {
|
|
193
|
+
width: `${percentage}%`,
|
|
194
|
+
backgroundColor: "var(--bg-interactive)"
|
|
240
195
|
}
|
|
241
|
-
|
|
242
|
-
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx3(
|
|
243
199
|
"div",
|
|
244
200
|
{
|
|
245
|
-
className: "h-full
|
|
201
|
+
className: "h-full flex-1 rounded-sm",
|
|
246
202
|
style: {
|
|
247
|
-
backgroundColor: "var(--
|
|
248
|
-
|
|
203
|
+
backgroundColor: "var(--bg-interactive)",
|
|
204
|
+
opacity: 0.3
|
|
249
205
|
}
|
|
250
206
|
}
|
|
251
|
-
)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
207
|
+
)
|
|
208
|
+
] }) : /* @__PURE__ */ jsx3(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
className: "h-full w-full rounded-full",
|
|
212
|
+
style: {
|
|
213
|
+
backgroundColor: "var(--bg-interactive)",
|
|
214
|
+
opacity: 0.3
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
) }),
|
|
218
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
219
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
220
|
+
percentage.toFixed(1),
|
|
221
|
+
"%"
|
|
222
|
+
] }),
|
|
223
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
224
|
+
remaining.toLocaleString(),
|
|
225
|
+
" ",
|
|
226
|
+
t("general.remaining").toLowerCase()
|
|
262
227
|
] })
|
|
263
228
|
] }),
|
|
264
|
-
localeStats.length > 0 && /* @__PURE__ */ jsxs3(
|
|
265
|
-
/* @__PURE__ */ jsx3(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
277
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
|
|
278
|
-
/* @__PURE__ */ jsx3(
|
|
279
|
-
"div",
|
|
280
|
-
{
|
|
281
|
-
className: "h-2 w-2 rounded-full",
|
|
282
|
-
style: {
|
|
283
|
-
backgroundColor: "var(--tag-blue-icon)",
|
|
284
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
),
|
|
288
|
-
/* @__PURE__ */ jsx3(
|
|
289
|
-
Text3,
|
|
290
|
-
{
|
|
291
|
-
size: "small",
|
|
292
|
-
weight: "plus",
|
|
293
|
-
className: "text-ui-fg-base",
|
|
294
|
-
children: t("translations.completion.translated")
|
|
295
|
-
}
|
|
296
|
-
)
|
|
297
|
-
] }),
|
|
229
|
+
localeStats.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "mt-4 flex flex-col gap-y-2", children: [
|
|
230
|
+
/* @__PURE__ */ jsx3("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
|
|
231
|
+
const heightPercent = locale.total / maxTotal * 100;
|
|
232
|
+
const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
|
|
233
|
+
return /* @__PURE__ */ jsx3(
|
|
234
|
+
Tooltip,
|
|
235
|
+
{
|
|
236
|
+
open: hoveredLocale === locale.code,
|
|
237
|
+
content: /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-1 p-1", children: [
|
|
238
|
+
/* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.name }),
|
|
239
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
240
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
|
|
298
241
|
/* @__PURE__ */ jsx3(
|
|
299
|
-
|
|
242
|
+
"div",
|
|
300
243
|
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
className: "text-ui-fg-base",
|
|
304
|
-
children: locale.translated
|
|
244
|
+
className: "h-2 w-2 rounded-full",
|
|
245
|
+
style: { backgroundColor: "var(--bg-interactive)" }
|
|
305
246
|
}
|
|
306
|
-
)
|
|
307
|
-
] }),
|
|
308
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
309
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
|
|
310
|
-
/* @__PURE__ */ jsx3(
|
|
311
|
-
"div",
|
|
312
|
-
{
|
|
313
|
-
className: "h-2 w-2 rounded-full",
|
|
314
|
-
style: {
|
|
315
|
-
backgroundColor: "var(--tag-blue-border)",
|
|
316
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
),
|
|
320
|
-
/* @__PURE__ */ jsx3(
|
|
321
|
-
Text3,
|
|
322
|
-
{
|
|
323
|
-
size: "small",
|
|
324
|
-
weight: "plus",
|
|
325
|
-
className: "text-ui-fg-base",
|
|
326
|
-
children: t("translations.completion.toTranslate")
|
|
327
|
-
}
|
|
328
|
-
)
|
|
329
|
-
] }),
|
|
247
|
+
),
|
|
330
248
|
/* @__PURE__ */ jsx3(
|
|
331
249
|
Text3,
|
|
332
250
|
{
|
|
333
251
|
size: "small",
|
|
334
252
|
weight: "plus",
|
|
335
|
-
className: "text-ui-fg-
|
|
336
|
-
children:
|
|
253
|
+
className: "text-ui-fg-subtle",
|
|
254
|
+
children: t("translations.completion.translated")
|
|
337
255
|
}
|
|
338
256
|
)
|
|
339
|
-
] })
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.translated })
|
|
340
259
|
] }),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
260
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
|
|
261
|
+
/* @__PURE__ */ jsx3(
|
|
262
|
+
"div",
|
|
263
|
+
{
|
|
264
|
+
className: "h-2 w-2 rounded-full",
|
|
265
|
+
style: {
|
|
266
|
+
backgroundColor: "var(--bg-interactive)",
|
|
267
|
+
opacity: 0.3
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ jsx3(
|
|
272
|
+
Text3,
|
|
273
|
+
{
|
|
274
|
+
size: "small",
|
|
275
|
+
weight: "plus",
|
|
276
|
+
className: "text-ui-fg-subtle",
|
|
277
|
+
children: t("translations.completion.toTranslate")
|
|
278
|
+
}
|
|
279
|
+
),
|
|
280
|
+
/* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.toTranslate })
|
|
281
|
+
] })
|
|
282
|
+
] }),
|
|
283
|
+
children: /* @__PURE__ */ jsxs3(
|
|
284
|
+
"div",
|
|
285
|
+
{
|
|
286
|
+
className: "flex min-w-2 flex-1 cursor-pointer flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
|
|
287
|
+
style: { height: `${heightPercent}%` },
|
|
288
|
+
onMouseEnter: () => setHoveredLocale(locale.code),
|
|
289
|
+
onMouseLeave: () => setHoveredLocale(null),
|
|
290
|
+
children: [
|
|
291
|
+
/* @__PURE__ */ jsx3(
|
|
349
292
|
"div",
|
|
350
293
|
{
|
|
351
|
-
className: "w-full rounded-sm",
|
|
294
|
+
className: "w-full rounded-t-sm",
|
|
352
295
|
style: {
|
|
353
|
-
height:
|
|
354
|
-
backgroundColor: "var(--
|
|
355
|
-
|
|
296
|
+
height: `${100 - translatedPercent}%`,
|
|
297
|
+
backgroundColor: "var(--bg-interactive)",
|
|
298
|
+
opacity: 0.3,
|
|
299
|
+
minHeight: locale.toTranslate > 0 ? "2px" : "0"
|
|
356
300
|
}
|
|
357
301
|
}
|
|
358
|
-
)
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
minHeight: locale.toTranslate > 0 ? "2px" : "0"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
),
|
|
371
|
-
translatedPercent > 0 && /* @__PURE__ */ jsx3(
|
|
372
|
-
"div",
|
|
373
|
-
{
|
|
374
|
-
className: "mt-0.5 w-full rounded-sm",
|
|
375
|
-
style: {
|
|
376
|
-
height: `${translatedPercent}%`,
|
|
377
|
-
backgroundColor: "var(--tag-blue-icon)",
|
|
378
|
-
boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
|
|
379
|
-
minHeight: locale.translated > 0 ? "2px" : "0"
|
|
380
|
-
}
|
|
302
|
+
),
|
|
303
|
+
translatedPercent > 0 && /* @__PURE__ */ jsx3(
|
|
304
|
+
"div",
|
|
305
|
+
{
|
|
306
|
+
className: "mt-0.5 w-full rounded-sm",
|
|
307
|
+
style: {
|
|
308
|
+
height: `${translatedPercent}%`,
|
|
309
|
+
backgroundColor: "var(--bg-interactive)",
|
|
310
|
+
minHeight: locale.translated > 0 ? "2px" : "0"
|
|
381
311
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
) })
|
|
386
|
-
},
|
|
387
|
-
locale.code
|
|
388
|
-
);
|
|
389
|
-
}) }),
|
|
390
|
-
localeStatsCount < 9 && /* @__PURE__ */ jsx3("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ jsx3(
|
|
391
|
-
"div",
|
|
392
|
-
{
|
|
393
|
-
className: "flex flex-1 items-center justify-center",
|
|
394
|
-
children: /* @__PURE__ */ jsx3(
|
|
395
|
-
Text3,
|
|
396
|
-
{
|
|
397
|
-
size: "xsmall",
|
|
398
|
-
weight: "plus",
|
|
399
|
-
className: "text-ui-fg-subtle min-w-2 whitespace-normal break-words text-center leading-tight",
|
|
400
|
-
children: localeStatsCount < 6 ? locale.name : locale.code
|
|
312
|
+
}
|
|
313
|
+
)
|
|
314
|
+
]
|
|
401
315
|
}
|
|
402
316
|
)
|
|
403
317
|
},
|
|
404
318
|
locale.code
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
319
|
+
);
|
|
320
|
+
}) }),
|
|
321
|
+
/* @__PURE__ */ jsx3(
|
|
322
|
+
Text3,
|
|
323
|
+
{
|
|
324
|
+
size: "small",
|
|
325
|
+
weight: "plus",
|
|
326
|
+
className: "text-ui-fg-muted text-center",
|
|
327
|
+
children: t("translations.completion.footer")
|
|
328
|
+
}
|
|
329
|
+
)
|
|
416
330
|
] })
|
|
417
331
|
] });
|
|
418
332
|
};
|