@medusajs/dashboard 2.12.3-snapshot-20251216185234 → 2.12.3
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/add-locales-GGNZCABB.mjs +81 -0
- package/dist/{api-key-management-detail-6RCDH73M.mjs → api-key-management-detail-FRUN2KFK.mjs} +1 -1
- package/dist/app.css +19 -0
- package/dist/app.js +795 -680
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-5Q4BYCPX.mjs → campaign-detail-HM3GQJLQ.mjs} +1 -1
- package/dist/{categories-metadata-J7M3XWI7.mjs → categories-metadata-WKL3MGD7.mjs} +1 -1
- package/dist/{category-detail-S5IPXMHX.mjs → category-detail-UTWWDKFP.mjs} +2 -2
- package/dist/{category-products-KPW6BA5J.mjs → category-products-XXBTCXFF.mjs} +2 -2
- package/dist/{chunk-OL24RDYM.mjs → chunk-5F427YCP.mjs} +2 -2
- package/dist/{chunk-MJDHVDOW.mjs → chunk-5ISRTMYH.mjs} +1 -1
- package/dist/{chunk-ST4P6BQN.mjs → chunk-DQUXK4WW.mjs} +1 -1
- package/dist/{chunk-YYOPBKME.mjs → chunk-DTCIBQO2.mjs} +1 -1
- package/dist/{chunk-LZFWCKOF.mjs → chunk-FKNW5MLZ.mjs} +21 -4
- package/dist/{chunk-GRZSG4EP.mjs → chunk-GLBHPDR4.mjs} +21 -16
- package/dist/{chunk-WYATCUOM.mjs → chunk-HNJ65IND.mjs} +1 -1
- package/dist/{store-add-locales-VJ4RJ7UI.mjs → chunk-IKTGFXWR.mjs} +2 -67
- package/dist/{chunk-DBXWB3RF.mjs → chunk-KSDXSKJ7.mjs} +1 -1
- package/dist/{chunk-OL6MEUKW.mjs → chunk-LWYKUORZ.mjs} +108 -105
- package/dist/{chunk-PHLCT2HA.mjs → chunk-OK6NZN2A.mjs} +1 -1
- package/dist/{chunk-ZMG5B4FG.mjs → chunk-SG2JZPTG.mjs} +1 -1
- package/dist/{chunk-CVHJAKLQ.mjs → chunk-UMCJYHAD.mjs} +1 -1
- package/dist/{collection-add-products-FU2BS3D3.mjs → collection-add-products-42F7H77E.mjs} +2 -2
- package/dist/{collection-detail-VJE7XHLV.mjs → collection-detail-PXIS3G64.mjs} +2 -2
- package/dist/{collection-list-IGA6SCNF.mjs → collection-list-O74CGY24.mjs} +2 -2
- package/dist/{collection-metadata-QK7MI3D2.mjs → collection-metadata-U6FMA4IC.mjs} +1 -1
- package/dist/{customer-detail-MOV2T3LF.mjs → customer-detail-OMTFJ6CE.mjs} +1 -1
- package/dist/{customer-group-detail-6T7OXGQD.mjs → customer-group-detail-ADK3M5LG.mjs} +1 -1
- package/dist/{customer-group-list-AJEAF5D2.mjs → customer-group-list-7ZRQ2HWU.mjs} +1 -1
- package/dist/{customers-add-customer-group-QVTVSQYM.mjs → customers-add-customer-group-5U27WHJB.mjs} +1 -1
- package/dist/{edit-rules-SMVRTCUP.mjs → edit-rules-BM2ERGVJ.mjs} +1 -1
- package/dist/en.json +1 -2
- package/dist/{inventory-create-BK52VALF.mjs → inventory-create-7MA7B5N2.mjs} +2 -2
- package/dist/{inventory-detail-ZPSEMYI2.mjs → inventory-detail-B4PRHZK3.mjs} +1 -1
- package/dist/{inventory-metadata-FNEJ3RAT.mjs → inventory-metadata-C7MJ3GY5.mjs} +1 -1
- package/dist/{inventory-stock-6WYWLWJ7.mjs → inventory-stock-WVTYPJTX.mjs} +3 -3
- package/dist/{location-detail-N3GUZSY7.mjs → location-detail-KO6EBDK5.mjs} +1 -1
- package/dist/{location-fulfillment-providers-7ZUJAGNY.mjs → location-fulfillment-providers-IORBE3E3.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-create-CNRWYZQC.mjs → location-service-zone-shipping-option-create-2R3ZFLVK.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-OGWI7VPT.mjs → location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs} +2 -2
- package/dist/{login-VNOLI5YG.mjs → login-XKB6OR7I.mjs} +1 -1
- package/dist/{order-create-claim-SCDJGM46.mjs → order-create-claim-NKCOGF4A.mjs} +1 -1
- package/dist/{order-create-edit-2WALBPXS.mjs → order-create-edit-UNQYXGLL.mjs} +1 -1
- package/dist/{order-create-exchange-LQU4YN7F.mjs → order-create-exchange-WI7OA2WO.mjs} +1 -1
- package/dist/{order-create-fulfillment-OWUVTZXW.mjs → order-create-fulfillment-2LJTEWDY.mjs} +1 -1
- package/dist/{order-create-refund-Q6HQY42R.mjs → order-create-refund-7K6UJXGP.mjs} +1 -1
- package/dist/{order-create-shipment-WAGGEPRW.mjs → order-create-shipment-ZTDLLUBY.mjs} +1 -1
- package/dist/{order-detail-PVPGEWGY.mjs → order-detail-JTRUMRLO.mjs} +1 -1
- package/dist/{order-edit-billing-address-UM76J4KX.mjs → order-edit-billing-address-YHYNVLOE.mjs} +1 -1
- package/dist/{order-edit-email-CL3KNOCM.mjs → order-edit-email-TCQPEVZY.mjs} +1 -1
- package/dist/{order-edit-shipping-address-PIESTGVL.mjs → order-edit-shipping-address-CFSYQLKD.mjs} +1 -1
- package/dist/{order-export-LE363ZLB.mjs → order-export-G4SBNEJ7.mjs} +1 -1
- package/dist/{order-metadata-FHBB7MTG.mjs → order-metadata-KGPB37VL.mjs} +1 -1
- package/dist/{order-receive-return-PRVKP6J2.mjs → order-receive-return-JER24SEV.mjs} +1 -1
- package/dist/{order-request-transfer-XSAGRUMT.mjs → order-request-transfer-3FBUYZNT.mjs} +1 -1
- package/dist/{price-list-create-K5JEZT57.mjs → price-list-create-CXZCFFTP.mjs} +4 -4
- package/dist/{price-list-detail-Q5VG5VGW.mjs → price-list-detail-XOMU6U5J.mjs} +2 -2
- package/dist/{price-list-prices-add-2MQ226U4.mjs → price-list-prices-add-SDX5CQME.mjs} +4 -4
- package/dist/{price-list-prices-edit-OJZLV7OS.mjs → price-list-prices-edit-EKB6NI5D.mjs} +2 -2
- package/dist/{product-attributes-YF4TZOIO.mjs → product-attributes-STD47BGC.mjs} +2 -2
- package/dist/{product-create-KJML2332.mjs → product-create-LVGWVQAT.mjs} +3 -3
- package/dist/{product-create-variant-5EBCLM54.mjs → product-create-variant-OTJKT6WI.mjs} +2 -2
- package/dist/{product-detail-QG72542C.mjs → product-detail-OYVHJH3D.mjs} +2 -2
- package/dist/{product-edit-DZZR775Q.mjs → product-edit-3SIUUIW4.mjs} +2 -2
- package/dist/{product-export-5AD7NELI.mjs → product-export-57UUAGXF.mjs} +2 -2
- package/dist/{product-image-variants-edit-M6QF2RLE.mjs → product-image-variants-edit-2BW5BJON.mjs} +1 -1
- package/dist/{product-import-V3KQN4TV.mjs → product-import-6EM4VUXP.mjs} +1 -1
- package/dist/{product-list-EUWZIFTM.mjs → product-list-5V5GEH5K.mjs} +2 -2
- package/dist/{product-metadata-GL2MVPDI.mjs → product-metadata-JZLHBLZQ.mjs} +1 -1
- package/dist/{product-organization-O7RHELMQ.mjs → product-organization-3PQ45C4B.mjs} +2 -2
- package/dist/{product-prices-YWV6MSM6.mjs → product-prices-5ZL2RP7A.mjs} +1 -1
- package/dist/{product-stock-AKEFMK5O.mjs → product-stock-SJJABF6I.mjs} +3 -3
- package/dist/{product-tag-create-PQMDDKWH.mjs → product-tag-create-XXO4AQEC.mjs} +1 -1
- package/dist/{product-tag-detail-I3MBZX7U.mjs → product-tag-detail-BSK64HXL.mjs} +3 -3
- package/dist/{product-tag-edit-K3BBQLJR.mjs → product-tag-edit-ENCGDT7E.mjs} +1 -1
- package/dist/{product-tag-list-JUWSOMB7.mjs → product-tag-list-SLQGCNDZ.mjs} +3 -3
- package/dist/{product-tag-metadata-MJH5LH7E.mjs → product-tag-metadata-EPXHMU2K.mjs} +1 -1
- package/dist/{product-type-detail-RKHT5NBL.mjs → product-type-detail-4CRRU7YK.mjs} +2 -2
- package/dist/{product-type-metadata-CDJDFFGQ.mjs → product-type-metadata-73OKOGPP.mjs} +1 -1
- package/dist/{product-variant-detail-XAYG5CKE.mjs → product-variant-detail-RPHLG4HU.mjs} +1 -1
- package/dist/{product-variant-edit-DEZEY2H2.mjs → product-variant-edit-JF7NN64Y.mjs} +1 -1
- package/dist/{product-variant-metadata-VTZDNWUT.mjs → product-variant-metadata-HU2CXGPO.mjs} +1 -1
- package/dist/{promotion-create-HWFNUQXG.mjs → promotion-create-BHA3FQG2.mjs} +1 -1
- package/dist/{promotion-detail-QC36KXB3.mjs → promotion-detail-F3QSR52W.mjs} +1 -1
- package/dist/{refund-reason-create-YHCDEHGQ.mjs → refund-reason-create-ZA5TKW2Z.mjs} +1 -1
- package/dist/{refund-reason-edit-CZ5QZ2SZ.mjs → refund-reason-edit-N2CRCLKZ.mjs} +1 -1
- package/dist/{refund-reason-list-OJYYEYJE.mjs → refund-reason-list-SE4TMGMT.mjs} +1 -1
- package/dist/{region-metadata-H6XXUQ4S.mjs → region-metadata-O5NZBWXP.mjs} +1 -1
- package/dist/{reservation-detail-LZAQL4XA.mjs → reservation-detail-UFK6XIXE.mjs} +1 -1
- package/dist/{reservation-metadata-5HZSDDOK.mjs → reservation-metadata-AEJEKGLV.mjs} +1 -1
- package/dist/{sales-channel-add-products-F7YV4MO5.mjs → sales-channel-add-products-2LMB7EF5.mjs} +2 -2
- package/dist/{sales-channel-detail-MXIPZCGA.mjs → sales-channel-detail-EUQ4STQI.mjs} +2 -2
- package/dist/{sales-channel-list-RLGL7FM3.mjs → sales-channel-list-JXKGHX4G.mjs} +1 -1
- package/dist/{sales-channel-metadata-M364R4RJ.mjs → sales-channel-metadata-AJMQ5SQ2.mjs} +1 -1
- package/dist/{shipping-option-type-create-C5WUWON7.mjs → shipping-option-type-create-YVVIA2XC.mjs} +1 -1
- package/dist/{shipping-option-type-detail-PENS2K73.mjs → shipping-option-type-detail-ZZW36XLK.mjs} +2 -2
- package/dist/{shipping-option-type-edit-CIU5EHRP.mjs → shipping-option-type-edit-O6F74T3A.mjs} +1 -1
- package/dist/{shipping-option-type-list-DIOX7VG7.mjs → shipping-option-type-list-SPTE7MT6.mjs} +2 -2
- package/dist/{shipping-profile-metadata-75G2NNMA.mjs → shipping-profile-metadata-7WFE55VG.mjs} +1 -1
- package/dist/store-add-locales-GWCGIXHU.mjs +81 -0
- package/dist/{store-detail-JSNPOB2F.mjs → store-detail-YLJLBBZE.mjs} +1 -1
- package/dist/{store-metadata-CYXTVJUE.mjs → store-metadata-BZ57I2E6.mjs} +1 -1
- package/dist/{tax-region-create-DWGL4EUT.mjs → tax-region-create-FGTV7VJL.mjs} +1 -1
- package/dist/{tax-region-detail-2AE2EFI3.mjs → tax-region-detail-PPIMD7OX.mjs} +5 -5
- package/dist/{tax-region-edit-EEVEEU2Q.mjs → tax-region-edit-ELZKA7YH.mjs} +1 -1
- package/dist/{tax-region-province-detail-4ERSEQFF.mjs → tax-region-province-detail-FV2NDT3E.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-PHCGEF7V.mjs → tax-region-tax-override-create-N572MQPZ.mjs} +3 -3
- package/dist/{tax-region-tax-override-edit-SMRPSILC.mjs → tax-region-tax-override-edit-5DCSJW6D.mjs} +4 -4
- package/dist/{translation-list-UF7FLXOW.mjs → translation-list-FK7XYLHX.mjs} +227 -141
- package/dist/{translations-edit-USQJNMAY.mjs → translations-edit-VRXZI5KW.mjs} +224 -253
- package/dist/{user-metadata-2WPJOEJA.mjs → user-metadata-GRJZZ524.mjs} +1 -1
- package/dist/{workflow-execution-detail-H2AKEZJX.mjs → workflow-execution-detail-HXTFWGKG.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +22 -4
- package/src/dashboard-app/routes/get-route.map.tsx +4 -0
- package/src/hooks/api/translations.tsx +26 -17
- package/src/i18n/translations/en.json +1 -2
- package/src/i18n/translations/es.json +1 -1
- package/src/routes/translations/add-locales/add-locales.tsx +29 -0
- package/src/routes/translations/add-locales/index.tsx +1 -0
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +42 -17
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +5 -1
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +182 -121
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +285 -330
package/dist/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LWYKUORZ.mjs";
|
|
4
4
|
import "./chunk-2SSUH2HJ.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
6
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -19,7 +19,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
19
19
|
import "./chunk-S4DMV3ZT.mjs";
|
|
20
20
|
import "./chunk-535OVBXR.mjs";
|
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
24
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
25
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import "./chunk-OC7BQLYI.mjs";
|
|
43
43
|
import "./chunk-S4DMV3ZT.mjs";
|
|
44
44
|
import "./chunk-535OVBXR.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
46
46
|
import "./chunk-I4OBEAOJ.mjs";
|
|
47
47
|
import "./chunk-HI6URQ7H.mjs";
|
|
48
48
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -12,7 +12,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
12
12
|
import "./chunk-OC7BQLYI.mjs";
|
|
13
13
|
import "./chunk-S4DMV3ZT.mjs";
|
|
14
14
|
import "./chunk-OBQI23QM.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
16
16
|
import "./chunk-I4OBEAOJ.mjs";
|
|
17
17
|
import "./chunk-HI6URQ7H.mjs";
|
|
18
18
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -26,7 +26,7 @@ import "./chunk-HQKGZADC.mjs";
|
|
|
26
26
|
import "./chunk-EMIHDNB7.mjs";
|
|
27
27
|
import {
|
|
28
28
|
useProductTableFilters
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DTCIBQO2.mjs";
|
|
30
30
|
import {
|
|
31
31
|
useProductTableQuery
|
|
32
32
|
} from "./chunk-R65S6ZZV.mjs";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
import "./chunk-OC7BQLYI.mjs";
|
|
54
54
|
import "./chunk-S4DMV3ZT.mjs";
|
|
55
55
|
import "./chunk-535OVBXR.mjs";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
57
57
|
import "./chunk-I4OBEAOJ.mjs";
|
|
58
58
|
import "./chunk-HI6URQ7H.mjs";
|
|
59
59
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -14,7 +14,7 @@ import "./chunk-HQKGZADC.mjs";
|
|
|
14
14
|
import "./chunk-EMIHDNB7.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useProductTableFilters
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DTCIBQO2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
useProductTableQuery
|
|
20
20
|
} from "./chunk-R65S6ZZV.mjs";
|
|
@@ -35,7 +35,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
35
35
|
import "./chunk-S4DMV3ZT.mjs";
|
|
36
36
|
import "./chunk-535OVBXR.mjs";
|
|
37
37
|
import "./chunk-OBQI23QM.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
39
39
|
import "./chunk-I4OBEAOJ.mjs";
|
|
40
40
|
import "./chunk-HI6URQ7H.mjs";
|
|
41
41
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DISPLAY_OVERRIDE_ITEMS_LIMIT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMCJYHAD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TaxRateRuleReferenceType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HNJ65IND.mjs";
|
|
7
7
|
import {
|
|
8
8
|
LocalizedTablePagination,
|
|
9
9
|
useDeleteTaxRateAction
|
|
@@ -213,6 +213,7 @@ var useDataGridCell = ({
|
|
|
213
213
|
case "number":
|
|
214
214
|
return numberCharacterRegex.test(key);
|
|
215
215
|
case "text":
|
|
216
|
+
case "multiline-text":
|
|
216
217
|
return textCharacterRegex.test(key);
|
|
217
218
|
default:
|
|
218
219
|
return false;
|
|
@@ -1325,6 +1326,7 @@ function convertArrayToPrimitive(values, type) {
|
|
|
1325
1326
|
case "boolean":
|
|
1326
1327
|
return values.map(convertToBoolean);
|
|
1327
1328
|
case "text":
|
|
1329
|
+
case "multiline-text":
|
|
1328
1330
|
return values.map(covertToString);
|
|
1329
1331
|
default:
|
|
1330
1332
|
throw new Error(`Unsupported target type "${type}".`);
|
|
@@ -1446,7 +1448,19 @@ var useDataGridKeydownEvent = ({
|
|
|
1446
1448
|
},
|
|
1447
1449
|
[rangeEnd, matrix, getSelectionValues, setSelectionValues, execute]
|
|
1448
1450
|
);
|
|
1449
|
-
const
|
|
1451
|
+
const handleSpaceKeyText = useCallback9(
|
|
1452
|
+
(anchor2) => {
|
|
1453
|
+
const field = matrix.getCellField(anchor2);
|
|
1454
|
+
const input = queryTool?.getInput(anchor2);
|
|
1455
|
+
if (!field || !input) {
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1458
|
+
createSnapshot(anchor2);
|
|
1459
|
+
input.focus();
|
|
1460
|
+
},
|
|
1461
|
+
[matrix, queryTool, createSnapshot]
|
|
1462
|
+
);
|
|
1463
|
+
const handleSpaceKeyNumber = useCallback9(
|
|
1450
1464
|
(anchor2) => {
|
|
1451
1465
|
const field = matrix.getCellField(anchor2);
|
|
1452
1466
|
const input = queryTool?.getInput(anchor2);
|
|
@@ -1517,10 +1531,12 @@ var useDataGridKeydownEvent = ({
|
|
|
1517
1531
|
case "togglable-number":
|
|
1518
1532
|
handleSpaceKeyTogglableNumber(anchor);
|
|
1519
1533
|
break;
|
|
1520
|
-
case "number":
|
|
1521
1534
|
case "text":
|
|
1522
1535
|
case "multiline-text":
|
|
1523
|
-
|
|
1536
|
+
handleSpaceKeyText(anchor);
|
|
1537
|
+
break;
|
|
1538
|
+
case "number":
|
|
1539
|
+
handleSpaceKeyNumber(anchor);
|
|
1524
1540
|
break;
|
|
1525
1541
|
}
|
|
1526
1542
|
},
|
|
@@ -1529,7 +1545,8 @@ var useDataGridKeydownEvent = ({
|
|
|
1529
1545
|
isEditing,
|
|
1530
1546
|
matrix,
|
|
1531
1547
|
handleSpaceKeyBoolean,
|
|
1532
|
-
|
|
1548
|
+
handleSpaceKeyText,
|
|
1549
|
+
handleSpaceKeyNumber,
|
|
1533
1550
|
handleSpaceKeyTogglableNumber
|
|
1534
1551
|
]
|
|
1535
1552
|
);
|
|
@@ -425,28 +425,33 @@ var useReferenceTranslations = (reference, translatableFields, referenceId, opti
|
|
|
425
425
|
const { data, ...rest } = referenceHook();
|
|
426
426
|
return { ...data, ...rest };
|
|
427
427
|
};
|
|
428
|
+
var referenceInvalidationKeysMap = /* @__PURE__ */ new Map([
|
|
429
|
+
["product", productsQueryKeys.lists()],
|
|
430
|
+
["product_variant", productVariantQueryKeys.lists()],
|
|
431
|
+
["product_category", categoriesQueryKeys.lists()],
|
|
432
|
+
["product_collection", collectionsQueryKeys.lists()],
|
|
433
|
+
["product_type", productTypesQueryKeys.lists()],
|
|
434
|
+
["product_tag", productTagsQueryKeys.lists()]
|
|
435
|
+
]);
|
|
428
436
|
var useBatchTranslations = (reference, options) => {
|
|
429
|
-
const
|
|
430
|
-
["product", productsQueryKeys.lists()],
|
|
431
|
-
["product_variant", productVariantQueryKeys.lists()],
|
|
432
|
-
["product_category", categoriesQueryKeys.lists()],
|
|
433
|
-
["product_collection", collectionsQueryKeys.lists()],
|
|
434
|
-
["product_type", productTypesQueryKeys.lists()],
|
|
435
|
-
["product_tag", productTagsQueryKeys.lists()]
|
|
436
|
-
]);
|
|
437
|
-
return useMutation4({
|
|
437
|
+
const mutation = useMutation4({
|
|
438
438
|
mutationFn: (payload) => sdk.admin.translation.batch(payload),
|
|
439
|
-
|
|
439
|
+
...options
|
|
440
|
+
});
|
|
441
|
+
const invalidateQueries = async () => {
|
|
442
|
+
await Promise.all([
|
|
440
443
|
queryClient.invalidateQueries({
|
|
441
444
|
queryKey: referenceInvalidationKeysMap.get(reference)
|
|
442
|
-
})
|
|
445
|
+
}),
|
|
443
446
|
queryClient.invalidateQueries({
|
|
444
447
|
queryKey: translationStatisticsQueryKeys.lists()
|
|
445
|
-
})
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
})
|
|
449
|
+
]);
|
|
450
|
+
};
|
|
451
|
+
return {
|
|
452
|
+
...mutation,
|
|
453
|
+
invalidateQueries
|
|
454
|
+
};
|
|
450
455
|
};
|
|
451
456
|
var useTranslationSettings = (query, options) => {
|
|
452
457
|
const { data, ...rest } = useQuery6({
|
|
@@ -2,19 +2,10 @@ import {
|
|
|
2
2
|
useLocalesTableColumns,
|
|
3
3
|
useLocalesTableQuery
|
|
4
4
|
} from "./chunk-XNIVMZHA.mjs";
|
|
5
|
-
import "./chunk-MSDRGCRR.mjs";
|
|
6
|
-
import "./chunk-P3UUX2T6.mjs";
|
|
7
|
-
import "./chunk-LQTHYS2Z.mjs";
|
|
8
5
|
import {
|
|
9
6
|
_DataTable,
|
|
10
7
|
useDataTable
|
|
11
8
|
} from "./chunk-DTZXEQXZ.mjs";
|
|
12
|
-
import "./chunk-HQKGZADC.mjs";
|
|
13
|
-
import "./chunk-EMIHDNB7.mjs";
|
|
14
|
-
import "./chunk-ZQJPHZKI.mjs";
|
|
15
|
-
import "./chunk-C76H5USB.mjs";
|
|
16
|
-
import "./chunk-DFFLVEZ5.mjs";
|
|
17
|
-
import "./chunk-IUCDCPJU.mjs";
|
|
18
9
|
import {
|
|
19
10
|
KeyboundForm
|
|
20
11
|
} from "./chunk-6HTZNHPT.mjs";
|
|
@@ -22,51 +13,12 @@ import {
|
|
|
22
13
|
RouteFocusModal,
|
|
23
14
|
useRouteModal
|
|
24
15
|
} from "./chunk-D6UW7URG.mjs";
|
|
25
|
-
import {
|
|
26
|
-
useFeatureFlag
|
|
27
|
-
} from "./chunk-G4BWCU5P.mjs";
|
|
28
|
-
import "./chunk-LPEUYMRK.mjs";
|
|
29
|
-
import "./chunk-OC7BQLYI.mjs";
|
|
30
|
-
import "./chunk-S4DMV3ZT.mjs";
|
|
31
|
-
import "./chunk-535OVBXR.mjs";
|
|
32
|
-
import "./chunk-OBQI23QM.mjs";
|
|
33
16
|
import {
|
|
34
17
|
useLocales
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-I4OBEAOJ.mjs";
|
|
37
|
-
import "./chunk-HI6URQ7H.mjs";
|
|
38
|
-
import "./chunk-6CLQKVAU.mjs";
|
|
39
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
40
|
-
import "./chunk-UJ2TMPV4.mjs";
|
|
41
|
-
import "./chunk-23GTCEOV.mjs";
|
|
42
|
-
import "./chunk-WAXMT4IY.mjs";
|
|
43
|
-
import "./chunk-DYDGGABK.mjs";
|
|
44
|
-
import "./chunk-LGNTHZ5Y.mjs";
|
|
45
|
-
import "./chunk-CN7JXSGW.mjs";
|
|
46
|
-
import "./chunk-5BQQRHQS.mjs";
|
|
47
|
-
import "./chunk-HTCYX4VD.mjs";
|
|
48
|
-
import "./chunk-5AFMB7XQ.mjs";
|
|
49
|
-
import "./chunk-UWY5ZV66.mjs";
|
|
50
|
-
import "./chunk-A63RZVX6.mjs";
|
|
51
|
-
import "./chunk-HBXV7ENS.mjs";
|
|
52
|
-
import "./chunk-CDORR33H.mjs";
|
|
53
|
-
import "./chunk-4JQR6QNW.mjs";
|
|
54
|
-
import "./chunk-FYWHE3W5.mjs";
|
|
55
|
-
import "./chunk-OSHH5GAS.mjs";
|
|
56
|
-
import "./chunk-2XTBDCGE.mjs";
|
|
57
|
-
import "./chunk-3BF5SC66.mjs";
|
|
18
|
+
} from "./chunk-GLBHPDR4.mjs";
|
|
58
19
|
import {
|
|
59
|
-
useStore,
|
|
60
20
|
useUpdateStore
|
|
61
21
|
} from "./chunk-VCSSQVPD.mjs";
|
|
62
|
-
import "./chunk-HP2JH45P.mjs";
|
|
63
|
-
import "./chunk-SQDIZZDW.mjs";
|
|
64
|
-
import "./chunk-Z6BFNHEO.mjs";
|
|
65
|
-
import "./chunk-HGRIOEAR.mjs";
|
|
66
|
-
import "./chunk-FXYH54JP.mjs";
|
|
67
|
-
import "./chunk-774WSTCC.mjs";
|
|
68
|
-
import "./chunk-NFEK63OE.mjs";
|
|
69
|
-
import "./chunk-QZ7TP4HQ.mjs";
|
|
70
22
|
|
|
71
23
|
// src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx
|
|
72
24
|
import { z } from "zod";
|
|
@@ -236,23 +188,6 @@ var useColumns = () => {
|
|
|
236
188
|
);
|
|
237
189
|
};
|
|
238
190
|
|
|
239
|
-
// src/routes/store/store-add-locales/store-add-locales.tsx
|
|
240
|
-
import { useNavigate } from "react-router-dom";
|
|
241
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
242
|
-
var StoreAddLocales = () => {
|
|
243
|
-
const isEnabled = useFeatureFlag("translation");
|
|
244
|
-
const navigate = useNavigate();
|
|
245
|
-
if (!isEnabled) {
|
|
246
|
-
navigate(-1);
|
|
247
|
-
return null;
|
|
248
|
-
}
|
|
249
|
-
const { store, isPending, isError, error } = useStore();
|
|
250
|
-
const ready = !!store && !isPending;
|
|
251
|
-
if (isError) {
|
|
252
|
-
throw error;
|
|
253
|
-
}
|
|
254
|
-
return /* @__PURE__ */ jsx2(RouteFocusModal, { children: ready && /* @__PURE__ */ jsx2(AddLocalesForm, { store }) });
|
|
255
|
-
};
|
|
256
191
|
export {
|
|
257
|
-
|
|
192
|
+
AddLocalesForm
|
|
258
193
|
};
|