@medusajs/dashboard 2.12.2-snapshot-20251207121122 → 2.12.2-snapshot-20251207203158
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-campaign-promotions-JQKPED4U.mjs → add-campaign-promotions-I7HDYMBX.mjs} +1 -2
- package/dist/{adjust-inventory-4UKAL3IT.mjs → adjust-inventory-SDWITRN3.mjs} +3 -5
- package/dist/{api-key-management-create-6EQCRHTT.mjs → api-key-management-create-FHLY4DD4.mjs} +4 -5
- package/dist/{api-key-management-detail-ILTYVBJ5.mjs → api-key-management-detail-JQBB7UNB.mjs} +11 -11
- package/dist/{api-key-management-edit-6HBLLOLH.mjs → api-key-management-edit-5RQXMVDW.mjs} +5 -7
- package/dist/{api-key-management-list-FTLC3ELT.mjs → api-key-management-list-RGLZMUCB.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-YLYYJAKB.mjs → api-key-management-sales-channels-327HJKDQ.mjs} +6 -7
- package/dist/app.css +3 -0
- package/dist/app.js +4708 -5301
- package/dist/app.mjs +11 -11
- package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-H2KQKD7B.mjs} +2 -4
- package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-A452A22M.mjs} +2 -4
- package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-LHL7FKQK.mjs} +2 -3
- package/dist/{campaign-detail-NIMMITXO.mjs → campaign-detail-DLPAADFC.mjs} +9 -9
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-LZV56AYF.mjs} +2 -4
- package/dist/{categories-metadata-ZKNXQM37.mjs → categories-metadata-IN4T3BQY.mjs} +11 -12
- package/dist/{category-create-HRJJCBMA.mjs → category-create-U277OGU4.mjs} +3 -4
- package/dist/{category-detail-LVP6O7I6.mjs → category-detail-MJYZEZJX.mjs} +12 -12
- package/dist/{category-edit-2UTQ7QJD.mjs → category-edit-I2LT3SZW.mjs} +4 -6
- package/dist/{category-list-IJ3DLPYQ.mjs → category-list-AH2EGTI7.mjs} +3 -3
- package/dist/{category-organize-OE7VJVVT.mjs → category-organize-PNR7ZHPM.mjs} +3 -4
- package/dist/{category-products-MO5PV7AG.mjs → category-products-UH7BGTSC.mjs} +12 -13
- package/dist/{chunk-AF7A24XI.mjs → chunk-34KFHPN6.mjs} +1 -1
- package/dist/{chunk-4V2V73YZ.mjs → chunk-3HRJ5XSF.mjs} +3 -5
- package/dist/{chunk-WPNZNLRN.mjs → chunk-4GPZRJUJ.mjs} +15 -16
- package/dist/{chunk-MWBKAP7W.mjs → chunk-4VNR7DND.mjs} +2 -2
- package/dist/{chunk-GV4XPCM5.mjs → chunk-6BP5RSIK.mjs} +4 -18
- package/dist/{chunk-D4J3CEWH.mjs → chunk-6VRDTPH2.mjs} +2 -4
- package/dist/{chunk-X527GAL2.mjs → chunk-73EHKWNI.mjs} +2 -2
- package/dist/{chunk-56TDUOXV.mjs → chunk-7AX6R6G6.mjs} +1 -1
- package/dist/{chunk-EMOSYFKR.mjs → chunk-7HL4FXK7.mjs} +204 -206
- package/dist/{chunk-L4NOVTH5.mjs → chunk-7V2JZU2B.mjs} +2 -4
- package/dist/{chunk-CZFLKMYE.mjs → chunk-ACJ3PPQJ.mjs} +1 -1
- package/dist/{chunk-42OOM4DJ.mjs → chunk-AERWK3TJ.mjs} +212 -44
- package/dist/{chunk-ETOJCN3Q.mjs → chunk-AH4DORIW.mjs} +1 -1
- package/dist/{chunk-ZUPF2AWJ.mjs → chunk-CPF5RDPF.mjs} +1 -1
- package/dist/{chunk-REUYEF7L.mjs → chunk-EQBVGH3N.mjs} +1 -1
- package/dist/{chunk-WPXYFJEP.mjs → chunk-EUF6RSI7.mjs} +1 -1
- package/dist/{chunk-QHRVYT5N.mjs → chunk-FIFVOKTK.mjs} +3 -3
- package/dist/{chunk-A6PWH2CK.mjs → chunk-FQDPOKEK.mjs} +1 -1
- package/dist/{chunk-DKIUGYWW.mjs → chunk-GN6OCHP4.mjs} +2 -2
- package/dist/{chunk-ND5YSIPU.mjs → chunk-HMY4BGRC.mjs} +1 -1
- package/dist/{chunk-KWP436SM.mjs → chunk-JJGE3EV6.mjs} +2 -2
- package/dist/{chunk-AENRV3N7.mjs → chunk-LEJUZW3P.mjs} +3 -1
- package/dist/{chunk-G4BWCU5P.mjs → chunk-M32MJOJN.mjs} +3 -6
- package/dist/{chunk-K5QWNI6V.mjs → chunk-N3FCYZV6.mjs} +1 -1
- package/dist/{chunk-KLNRCI3K.mjs → chunk-N4O5FAUC.mjs} +1 -1
- package/dist/{chunk-O4RZ3Y65.mjs → chunk-NHDFPGQ3.mjs} +1 -1
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-PMJJI6GO.mjs} +1 -1
- package/dist/{chunk-PCFUZKDS.mjs → chunk-R65S6ZZV.mjs} +4 -1
- package/dist/{chunk-VX2HE7O5.mjs → chunk-SFSBLI7G.mjs} +2 -2
- package/dist/{chunk-3YPRDSZ6.mjs → chunk-T2ANPJ36.mjs} +1 -1
- package/dist/{chunk-KF7ZWW4K.mjs → chunk-T57MRRCF.mjs} +2 -4
- package/dist/{chunk-KCWP7RF5.mjs → chunk-TBEGSDLQ.mjs} +1 -1
- package/dist/{chunk-AZKMRL4P.mjs → chunk-XBJCK4CT.mjs} +8 -5
- package/dist/{chunk-NKDCBX74.mjs → chunk-XHDXZAOR.mjs} +1 -1
- package/dist/{chunk-M3CKVBZC.mjs → chunk-XIVBRONM.mjs} +1 -1
- package/dist/{collection-add-products-5BHQKPB4.mjs → collection-add-products-F7GTK2YV.mjs} +12 -13
- package/dist/{collection-create-S3UK5EKP.mjs → collection-create-WMTSRDDL.mjs} +3 -4
- package/dist/{collection-detail-IMDGOIF5.mjs → collection-detail-EZ6UCFMP.mjs} +11 -11
- package/dist/{collection-edit-C5X34GX7.mjs → collection-edit-PSVEWWPH.mjs} +4 -6
- package/dist/{collection-list-GROVO4YH.mjs → collection-list-YUECGEOO.mjs} +12 -12
- package/dist/{collection-metadata-TN5UCQVV.mjs → collection-metadata-XYMR7UIM.mjs} +11 -12
- package/dist/{customer-create-XCLZENJS.mjs → customer-create-VL6SIRZ2.mjs} +1 -2
- package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-V5C6M52P.mjs} +1 -2
- package/dist/{customer-detail-RD4ADZ3C.mjs → customer-detail-7B35STSY.mjs} +10 -10
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-WTBPVWOF.mjs} +2 -4
- package/dist/{customer-group-add-customers-HUGHHMU6.mjs → customer-group-add-customers-QU4Q56SS.mjs} +1 -2
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-A3CB3Z4K.mjs} +1 -2
- package/dist/{customer-group-detail-M2Y6UFOX.mjs → customer-group-detail-TY4AFNQE.mjs} +9 -9
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-7KV2PNLE.mjs} +2 -4
- package/dist/{customer-group-list-PYSYUVWJ.mjs → customer-group-list-CELWB4WM.mjs} +11 -11
- package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-4F2SZF4M.mjs} +2 -3
- package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-LZ3TAXCV.mjs} +2 -3
- package/dist/{customers-add-customer-group-NVHYIS75.mjs → customers-add-customer-group-524NN3AG.mjs} +10 -11
- package/dist/{edit-inventory-item-7P2MPPGK.mjs → edit-inventory-item-O3SDWW2W.mjs} +3 -5
- package/dist/{edit-inventory-item-attributes-NVYPIDCK.mjs → edit-inventory-item-attributes-3QLOZMGC.mjs} +3 -5
- package/dist/{edit-reservation-4BH62PDP.mjs → edit-reservation-ISSU5XAY.mjs} +4 -6
- package/dist/{edit-rules-I3CZ6JJ6.mjs → edit-rules-K2UXPE62.mjs} +11 -13
- package/dist/en.json +0 -7
- package/dist/{inventory-create-2NJLJGI6.mjs → inventory-create-SYD3QXIB.mjs} +10 -11
- package/dist/{inventory-detail-DMAHDXAH.mjs → inventory-detail-IWCB7FND.mjs} +11 -11
- package/dist/{inventory-list-RQBI7UJX.mjs → inventory-list-BQPHK3FV.mjs} +1 -1
- package/dist/{inventory-metadata-WN5VZIHI.mjs → inventory-metadata-YSDEZ4B7.mjs} +11 -12
- package/dist/{inventory-stock-G4BGY6HK.mjs → inventory-stock-JLJEWPUM.mjs} +10 -11
- package/dist/{location-create-RPLEXUZR.mjs → location-create-GDOHM4T3.mjs} +1 -2
- package/dist/{location-detail-37V7YZVV.mjs → location-detail-LNQUKDLQ.mjs} +9 -9
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-4SEMGQXA.mjs} +2 -4
- package/dist/{location-fulfillment-providers-ZLKGXNU3.mjs → location-fulfillment-providers-566Z6CCG.mjs} +12 -13
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-OYBI7EGV.mjs} +2 -2
- package/dist/{location-sales-channels-QANELWVW.mjs → location-sales-channels-MXFZNLKR.mjs} +5 -6
- package/dist/{location-service-zone-create-NSMZCD5N.mjs → location-service-zone-create-35TTX636.mjs} +3 -5
- package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-RWZS2XYW.mjs} +2 -4
- package/dist/{location-service-zone-manage-areas-SEC6LKCZ.mjs → location-service-zone-manage-areas-RGMM5Y6C.mjs} +3 -5
- package/dist/{location-service-zone-shipping-option-create-52N7W7C2.mjs → location-service-zone-shipping-option-create-VENETBCK.mjs} +12 -14
- package/dist/{location-service-zone-shipping-option-edit-QS6HTWST.mjs → location-service-zone-shipping-option-edit-TTVV3BSV.mjs} +2 -4
- package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-NQRIEGTX.mjs} +3 -5
- package/dist/{login-NQCTGOAW.mjs → login-R5C7HZ2A.mjs} +9 -9
- package/dist/{manage-locations-S7MCWAUJ.mjs → manage-locations-XEXCUBR7.mjs} +3 -5
- package/dist/{order-allocate-items-VY6KJFRE.mjs → order-allocate-items-W7HUKJ6F.mjs} +4 -5
- package/dist/{order-create-claim-QF2LTPUX.mjs → order-create-claim-M5NNIQWR.mjs} +13 -15
- package/dist/{order-create-edit-Z7LU7AVG.mjs → order-create-edit-A2TMNFRS.mjs} +12 -14
- package/dist/{order-create-exchange-5XWD2Q2E.mjs → order-create-exchange-CIB7URQD.mjs} +13 -15
- package/dist/{order-create-fulfillment-AQJXDSWH.mjs → order-create-fulfillment-YC4GFUTQ.mjs} +10 -11
- package/dist/{order-create-refund-B3WOHTK4.mjs → order-create-refund-EE7SWYLL.mjs} +11 -13
- package/dist/{order-create-return-XNBOIYPL.mjs → order-create-return-UWF4YKOP.mjs} +6 -8
- package/dist/{order-create-shipment-N2CVYZMG.mjs → order-create-shipment-DNVN7NYA.mjs} +10 -11
- package/dist/{order-detail-S3IQ75KS.mjs → order-detail-FZ7PM4K3.mjs} +13 -13
- package/dist/{order-edit-billing-address-6YKACKAU.mjs → order-edit-billing-address-XH37NDI5.mjs} +11 -13
- package/dist/{order-edit-email-HHOPFQEQ.mjs → order-edit-email-NZE32DBD.mjs} +11 -13
- package/dist/{order-edit-shipping-address-OLSZVXOS.mjs → order-edit-shipping-address-KMLTH4SM.mjs} +11 -13
- package/dist/{order-list-H2B5LA5D.mjs → order-list-NT5PQ2WS.mjs} +7 -7
- package/dist/{order-metadata-PGARNQGC.mjs → order-metadata-VWNNC7RO.mjs} +11 -12
- package/dist/{order-receive-return-F3RVWIUS.mjs → order-receive-return-O5P477EZ.mjs} +12 -14
- package/dist/{order-request-transfer-BSA2D7PD.mjs → order-request-transfer-XOAINCAS.mjs} +11 -13
- package/dist/{price-list-configuration-FXGLWS3K.mjs → price-list-configuration-N2WC2QQP.mjs} +5 -7
- package/dist/{price-list-create-Z7GJDHLB.mjs → price-list-create-NOTXIPOJ.mjs} +16 -17
- package/dist/{price-list-detail-SGYXWAHQ.mjs → price-list-detail-BD2QQKAR.mjs} +12 -12
- package/dist/{price-list-edit-S3DCFSO2.mjs → price-list-edit-UB2Z2726.mjs} +4 -6
- package/dist/{price-list-list-FLINOQCK.mjs → price-list-list-D4UPKCNL.mjs} +3 -3
- package/dist/{price-list-prices-add-SXP3V7NI.mjs → price-list-prices-add-25FOFNBS.mjs} +14 -14
- package/dist/{price-list-prices-edit-L4EETPG2.mjs → price-list-prices-edit-CXXOO22Q.mjs} +5 -5
- package/dist/{product-attributes-J6ZXEBZ2.mjs → product-attributes-W6URSOII.mjs} +15 -19
- package/dist/{product-create-7HZSIZI3.mjs → product-create-IJXK2CPJ.mjs} +15 -17
- package/dist/{product-create-option-JSL4OV4M.mjs → product-create-option-AQRYQJSJ.mjs} +7 -6
- package/dist/{product-create-variant-MNWLL3SD.mjs → product-create-variant-YBJ2ZVUG.mjs} +15 -14
- package/dist/{product-detail-GMNO25SN.mjs → product-detail-3QA6OXHI.mjs} +21 -15
- package/dist/{product-edit-LRBW7OOF.mjs → product-edit-WPVM44C2.mjs} +15 -19
- package/dist/{product-edit-option-OL6OBCK6.mjs → product-edit-option-BL5XHROM.mjs} +7 -6
- package/dist/{product-export-SQG7U5CK.mjs → product-export-H4ZOJWIB.mjs} +14 -16
- package/dist/{product-image-variants-edit-7IN3QHSF.mjs → product-image-variants-edit-3YEXAIKS.mjs} +15 -14
- package/dist/{product-import-6ZZIQ6R5.mjs → product-import-PPULHBTB.mjs} +11 -13
- package/dist/{product-list-E4KRZBEX.mjs → product-list-NPLVU37E.mjs} +14 -14
- package/dist/{product-media-NFLMXXXU.mjs → product-media-L4COURP2.mjs} +6 -4
- package/dist/{product-metadata-TY3LCH2W.mjs → product-metadata-SS7DIDYB.mjs} +15 -13
- package/dist/{product-organization-2SS6DA6S.mjs → product-organization-QG53UJ2J.mjs} +16 -20
- package/dist/{product-prices-DI4WDLZZ.mjs → product-prices-UZB2T6UD.mjs} +6 -4
- package/dist/{product-sales-channels-BOCECT5M.mjs → product-sales-channels-BKKIG6BE.mjs} +9 -7
- package/dist/{product-shipping-profile-MP6QBJHY.mjs → product-shipping-profile-MWE5S5TZ.mjs} +5 -53
- package/dist/{product-stock-UXOYOHMR.mjs → product-stock-3A22RDIR.mjs} +10 -11
- package/dist/{product-tag-create-OURLUGEL.mjs → product-tag-create-XIWCLMRJ.mjs} +10 -11
- package/dist/{product-tag-detail-MENTQYX2.mjs → product-tag-detail-NVV6QQMN.mjs} +13 -13
- package/dist/{product-tag-edit-BGPR3BIP.mjs → product-tag-edit-H7YA4HEV.mjs} +11 -13
- package/dist/{product-tag-list-B5YMQ2KC.mjs → product-tag-list-LGVKUJLL.mjs} +13 -13
- package/dist/{product-tag-metadata-5GOTVYAI.mjs → product-tag-metadata-JBYEI3M4.mjs} +11 -12
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-Y752WGBV.mjs} +1 -2
- package/dist/{product-type-detail-WIIXVV2K.mjs → product-type-detail-S6YG37AR.mjs} +11 -11
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SMPJ5ZEF.mjs} +2 -4
- package/dist/{product-type-metadata-XACGB4IA.mjs → product-type-metadata-LRTMJT2P.mjs} +11 -12
- package/dist/{product-variant-detail-EFKGSJ5B.mjs → product-variant-detail-GIHXE5YG.mjs} +9 -9
- package/dist/{product-variant-edit-7OJLUVHS.mjs → product-variant-edit-36MBVNPO.mjs} +13 -14
- package/dist/{product-variant-manage-inventory-items-HVU7YWDU.mjs → product-variant-manage-inventory-items-EYKESIRF.mjs} +2 -3
- package/dist/{product-variant-media-3JWQ27SI.mjs → product-variant-media-A3XHS3IZ.mjs} +2 -3
- package/dist/{product-variant-metadata-POPOT4LV.mjs → product-variant-metadata-LH7YGFW4.mjs} +11 -12
- package/dist/{profile-edit-5EEKOEO5.mjs → profile-edit-NFVR5Y4I.mjs} +2 -4
- package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-MKDYE7MW.mjs} +2 -3
- package/dist/{promotion-create-Q7EYW4L2.mjs → promotion-create-XOB4S6H5.mjs} +12 -13
- package/dist/{promotion-detail-Q5INURX6.mjs → promotion-detail-YR4MNPNS.mjs} +9 -9
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-AKKNOCLM.mjs} +2 -4
- package/dist/{refund-reason-create-MXVWKVZ5.mjs → refund-reason-create-LSAPI6XB.mjs} +10 -11
- package/dist/{refund-reason-edit-7EW5QRCM.mjs → refund-reason-edit-R4RV6BFG.mjs} +11 -13
- package/dist/{refund-reason-list-GHMGAXQY.mjs → refund-reason-list-MPTKOWX7.mjs} +12 -12
- package/dist/{region-add-countries-AFWXMQ6W.mjs → region-add-countries-6GB2QDJK.mjs} +1 -2
- package/dist/{region-create-YC4VZ4AS.mjs → region-create-QLPSK6TX.mjs} +2 -4
- package/dist/{region-edit-5GO25GDF.mjs → region-edit-JCJHA6TY.mjs} +2 -4
- package/dist/{region-metadata-MEJEMQ7Y.mjs → region-metadata-4IMJHPZO.mjs} +11 -12
- package/dist/{reservation-create-P66MJ6LN.mjs → reservation-create-UAUWU3UN.mjs} +3 -4
- package/dist/{reservation-detail-ARGPFIAK.mjs → reservation-detail-HWKSPGBU.mjs} +9 -9
- package/dist/{reservation-list-RGL67CIU.mjs → reservation-list-SOJRN5RI.mjs} +2 -2
- package/dist/{reservation-metadata-I5JUAZNA.mjs → reservation-metadata-IIX7FU74.mjs} +11 -12
- package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-PLQNC4KW.mjs} +1 -2
- package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-XJCPMZ6U.mjs} +2 -4
- package/dist/{return-reason-list-SGCFBGSL.mjs → return-reason-list-IFFIDA5O.mjs} +1 -1
- package/dist/{sales-channel-add-products-N6CLM26Y.mjs → sales-channel-add-products-VH7V4XWO.mjs} +12 -13
- package/dist/{sales-channel-create-74PCSWSX.mjs → sales-channel-create-YAORCXP3.mjs} +3 -4
- package/dist/{sales-channel-detail-WFCPUJF5.mjs → sales-channel-detail-VMRKBYCG.mjs} +11 -11
- package/dist/{sales-channel-edit-IUGTN65E.mjs → sales-channel-edit-6UDMBSO3.mjs} +4 -6
- package/dist/{sales-channel-list-TEH3IEG5.mjs → sales-channel-list-U7IVFVYC.mjs} +11 -11
- package/dist/{sales-channel-metadata-YYQAM5OW.mjs → sales-channel-metadata-5EO4EB6E.mjs} +11 -12
- package/dist/{shipping-option-type-create-73EVE35U.mjs → shipping-option-type-create-DJEHSOSG.mjs} +10 -11
- package/dist/{shipping-option-type-detail-WX6ZFA3K.mjs → shipping-option-type-detail-GWULT3WO.mjs} +10 -10
- package/dist/{shipping-option-type-edit-YSRIA7FD.mjs → shipping-option-type-edit-FSXPDBLI.mjs} +11 -13
- package/dist/{shipping-option-type-list-OKHJ5XQ3.mjs → shipping-option-type-list-DAKNQ3N6.mjs} +10 -10
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-NKFUOBVZ.mjs} +1 -2
- package/dist/{shipping-profile-metadata-GZOMZUZ5.mjs → shipping-profile-metadata-37GNDVFQ.mjs} +11 -12
- package/dist/{store-add-currencies-3VMLZ6KB.mjs → store-add-currencies-QVG2SI26.mjs} +1 -2
- package/dist/{store-detail-FU3AMVC5.mjs → store-detail-TTHDKQYD.mjs} +14 -280
- package/dist/store-edit-3XS6IC2Z.mjs +238 -0
- package/dist/{store-metadata-C32LZ5A5.mjs → store-metadata-KLQUPUQ4.mjs} +11 -12
- package/dist/{tax-region-create-JPIGFA7Q.mjs → tax-region-create-FIGRJOC5.mjs} +10 -11
- package/dist/{tax-region-detail-LM3TUUVX.mjs → tax-region-detail-AXT4TMZB.mjs} +16 -17
- package/dist/{tax-region-edit-J3COT5DI.mjs → tax-region-edit-UOGPNA25.mjs} +11 -13
- package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-T2LKEDTK.mjs} +1 -2
- package/dist/{tax-region-province-detail-OLLH4XDG.mjs → tax-region-province-detail-4YCWNZPW.mjs} +16 -17
- package/dist/{tax-region-tax-override-create-BFIJFC4G.mjs → tax-region-tax-override-create-FHUXLTPK.mjs} +15 -17
- package/dist/{tax-region-tax-override-edit-OALFHSLF.mjs → tax-region-tax-override-edit-GQYS6HCW.mjs} +15 -16
- package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-UEOU5QRU.mjs} +1 -2
- package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-ILCDNXHV.mjs} +2 -4
- package/dist/{user-detail-N6PT3KRP.mjs → user-detail-KEDJ7N3Q.mjs} +1 -1
- package/dist/{user-edit-LXQCTDGA.mjs → user-edit-25HD3BYT.mjs} +2 -4
- package/dist/{user-invite-2OKB7SCF.mjs → user-invite-CRQTVEYA.mjs} +1 -2
- package/dist/{user-list-YYUOQKQY.mjs → user-list-6KATHOTJ.mjs} +2 -2
- package/dist/{user-metadata-3FJIJONR.mjs → user-metadata-RU3Z3BLD.mjs} +11 -12
- package/dist/{workflow-execution-detail-P72V2O2R.mjs → workflow-execution-detail-R2FDAUMD.mjs} +9 -9
- package/package.json +9 -9
- package/src/components/search/use-search-results.tsx +3 -1
- package/src/components/utilities/error-boundary/error-boundary.tsx +20 -0
- package/src/dashboard-app/routes/get-route.map.tsx +0 -4
- package/src/hooks/api/feature-flags.tsx +5 -9
- package/src/hooks/api/index.ts +0 -1
- package/src/hooks/api/products.tsx +5 -1
- package/src/hooks/table/query/use-product-table-query.tsx +2 -1
- package/src/i18n/translations/$schema.json +0 -28
- package/src/i18n/translations/en.json +0 -7
- package/src/i18n/translations/es.json +0 -7
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-prices-form.tsx +3 -1
- package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-prices-form.tsx +3 -1
- package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +3 -1
- package/src/routes/product-variants/product-variant-edit/product-variant-edit.tsx +2 -1
- package/src/routes/products/product-attributes/product-attributes.tsx +3 -2
- package/src/routes/products/product-create-option/product-create-option.tsx +5 -1
- package/src/routes/products/product-create-variant/product-create-variant.tsx +4 -1
- package/src/routes/products/product-detail/breadcrumb.tsx +3 -2
- package/src/routes/products/product-edit/product-edit.tsx +3 -2
- package/src/routes/products/product-edit-option/product-edit-option.tsx +4 -1
- package/src/routes/products/product-image-variants-edit/product-image-variants-edit.tsx +5 -1
- package/src/routes/products/product-media/product-media.tsx +4 -1
- package/src/routes/products/product-metadata/product-metadata.tsx +5 -1
- package/src/routes/products/product-organization/product-organization.tsx +2 -2
- package/src/routes/products/product-prices/product-prices.tsx +4 -1
- package/src/routes/products/product-sales-channels/product-sales-channels.tsx +4 -1
- package/src/routes/products/product-shipping-profile/product-shipping-profile.tsx +3 -2
- package/src/routes/store/store-detail/components/store-general-section/store-general-section.tsx +0 -24
- package/src/routes/store/store-detail/store-detail.tsx +0 -4
- package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +3 -50
- package/src/routes/tax-regions/common/components/target-item/target-item.tsx +5 -1
- package/src/routes/tax-regions/common/components/tax-override-card/tax-override-card.tsx +10 -10
- package/dist/chunk-77XTTZK7.mjs +0 -13
- package/dist/chunk-XNIVMZHA.mjs +0 -50
- package/dist/chunk-XXBP2Z5M.mjs +0 -182
- package/dist/store-add-locales-LXRWHBME.mjs +0 -264
- package/dist/store-edit-EPAHLLKP.mjs +0 -288
- package/src/hooks/api/locales.tsx +0 -52
- package/src/routes/store/common/hooks/use-locales-table-columns.tsx +0 -29
- package/src/routes/store/common/hooks/use-locales-table-query.tsx +0 -21
- package/src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx +0 -240
- package/src/routes/store/store-add-locales/index.ts +0 -1
- package/src/routes/store/store-add-locales/store-add-locales.tsx +0 -29
- package/src/routes/store/store-detail/components/store-locale-section/index.ts +0 -1
- package/src/routes/store/store-detail/components/store-locale-section/store-locale-section.tsx +0 -290
package/dist/{shipping-option-type-edit-YSRIA7FD.mjs → shipping-option-type-edit-FSXPDBLI.mjs}
RENAMED
|
@@ -3,44 +3,42 @@ import {
|
|
|
3
3
|
KeyboundForm
|
|
4
4
|
} from "./chunk-6HTZNHPT.mjs";
|
|
5
5
|
import {
|
|
6
|
-
RouteDrawer
|
|
7
|
-
} from "./chunk-XXBP2Z5M.mjs";
|
|
8
|
-
import {
|
|
6
|
+
RouteDrawer,
|
|
9
7
|
useRouteModal
|
|
10
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AERWK3TJ.mjs";
|
|
11
9
|
import {
|
|
12
10
|
Form
|
|
13
11
|
} from "./chunk-OBQI23QM.mjs";
|
|
14
12
|
import {
|
|
15
13
|
useShippingOptionType,
|
|
16
14
|
useUpdateShippingOptionType
|
|
17
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6BP5RSIK.mjs";
|
|
18
16
|
import "./chunk-I4OBEAOJ.mjs";
|
|
19
17
|
import "./chunk-HI6URQ7H.mjs";
|
|
20
18
|
import "./chunk-6CLQKVAU.mjs";
|
|
21
19
|
import "./chunk-HKIF5HVL.mjs";
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XIVBRONM.mjs";
|
|
23
21
|
import "./chunk-KI7TOXBR.mjs";
|
|
24
22
|
import "./chunk-WAXMT4IY.mjs";
|
|
25
23
|
import "./chunk-DYDGGABK.mjs";
|
|
26
24
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
27
25
|
import "./chunk-CN7JXSGW.mjs";
|
|
28
26
|
import "./chunk-5BQQRHQS.mjs";
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
30
28
|
import "./chunk-5AFMB7XQ.mjs";
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
32
30
|
import "./chunk-A63RZVX6.mjs";
|
|
33
31
|
import "./chunk-HBXV7ENS.mjs";
|
|
34
32
|
import "./chunk-CDORR33H.mjs";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
34
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
35
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
36
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
39
37
|
import "./chunk-3BF5SC66.mjs";
|
|
40
38
|
import "./chunk-VCSSQVPD.mjs";
|
|
41
39
|
import "./chunk-HP2JH45P.mjs";
|
|
42
40
|
import "./chunk-SQDIZZDW.mjs";
|
|
43
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
44
42
|
import "./chunk-FXYH54JP.mjs";
|
|
45
43
|
import "./chunk-774WSTCC.mjs";
|
|
46
44
|
import "./chunk-NFEK63OE.mjs";
|
package/dist/{shipping-option-type-list-OKHJ5XQ3.mjs → shipping-option-type-list-DAKNQ3N6.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteShippingOptionTypeAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CPF5RDPF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TextCell
|
|
6
6
|
} from "./chunk-MSDRGCRR.mjs";
|
|
@@ -38,33 +38,33 @@ import "./chunk-S4DMV3ZT.mjs";
|
|
|
38
38
|
import "./chunk-SUYYSKCB.mjs";
|
|
39
39
|
import {
|
|
40
40
|
useShippingOptionTypes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6BP5RSIK.mjs";
|
|
42
42
|
import "./chunk-I4OBEAOJ.mjs";
|
|
43
43
|
import "./chunk-HI6URQ7H.mjs";
|
|
44
44
|
import "./chunk-6CLQKVAU.mjs";
|
|
45
45
|
import "./chunk-HKIF5HVL.mjs";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-XIVBRONM.mjs";
|
|
47
47
|
import "./chunk-KI7TOXBR.mjs";
|
|
48
48
|
import "./chunk-WAXMT4IY.mjs";
|
|
49
49
|
import "./chunk-DYDGGABK.mjs";
|
|
50
50
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
51
51
|
import "./chunk-CN7JXSGW.mjs";
|
|
52
52
|
import "./chunk-5BQQRHQS.mjs";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
54
54
|
import "./chunk-5AFMB7XQ.mjs";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
56
56
|
import "./chunk-A63RZVX6.mjs";
|
|
57
57
|
import "./chunk-HBXV7ENS.mjs";
|
|
58
58
|
import "./chunk-CDORR33H.mjs";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
60
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
61
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
62
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
63
63
|
import "./chunk-3BF5SC66.mjs";
|
|
64
64
|
import "./chunk-VCSSQVPD.mjs";
|
|
65
65
|
import "./chunk-HP2JH45P.mjs";
|
|
66
66
|
import "./chunk-SQDIZZDW.mjs";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
68
68
|
import "./chunk-FXYH54JP.mjs";
|
|
69
69
|
import "./chunk-774WSTCC.mjs";
|
|
70
70
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -2,11 +2,10 @@ import "./chunk-IUCDCPJU.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
KeyboundForm
|
|
4
4
|
} from "./chunk-6HTZNHPT.mjs";
|
|
5
|
-
import "./chunk-XXBP2Z5M.mjs";
|
|
6
5
|
import {
|
|
7
6
|
RouteFocusModal,
|
|
8
7
|
useRouteModal
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AERWK3TJ.mjs";
|
|
10
9
|
import {
|
|
11
10
|
Form
|
|
12
11
|
} from "./chunk-OBQI23QM.mjs";
|
package/dist/{shipping-profile-metadata-GZOMZUZ5.mjs → shipping-profile-metadata-37GNDVFQ.mjs}
RENAMED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MetadataForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6VRDTPH2.mjs";
|
|
4
4
|
import "./chunk-IUCDCPJU.mjs";
|
|
5
5
|
import "./chunk-6HTZNHPT.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-42OOM4DJ.mjs";
|
|
6
|
+
import "./chunk-AERWK3TJ.mjs";
|
|
8
7
|
import "./chunk-LPEUYMRK.mjs";
|
|
9
8
|
import "./chunk-OC7BQLYI.mjs";
|
|
10
9
|
import "./chunk-S4DMV3ZT.mjs";
|
|
11
10
|
import "./chunk-OBQI23QM.mjs";
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6BP5RSIK.mjs";
|
|
13
12
|
import "./chunk-I4OBEAOJ.mjs";
|
|
14
13
|
import "./chunk-HI6URQ7H.mjs";
|
|
15
14
|
import "./chunk-6CLQKVAU.mjs";
|
|
16
15
|
import "./chunk-HKIF5HVL.mjs";
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XIVBRONM.mjs";
|
|
18
17
|
import "./chunk-KI7TOXBR.mjs";
|
|
19
18
|
import "./chunk-WAXMT4IY.mjs";
|
|
20
19
|
import {
|
|
@@ -24,21 +23,21 @@ import {
|
|
|
24
23
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
25
24
|
import "./chunk-CN7JXSGW.mjs";
|
|
26
25
|
import "./chunk-5BQQRHQS.mjs";
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
28
27
|
import "./chunk-5AFMB7XQ.mjs";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
30
29
|
import "./chunk-A63RZVX6.mjs";
|
|
31
30
|
import "./chunk-HBXV7ENS.mjs";
|
|
32
31
|
import "./chunk-CDORR33H.mjs";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
33
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
34
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
35
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
37
36
|
import "./chunk-3BF5SC66.mjs";
|
|
38
37
|
import "./chunk-VCSSQVPD.mjs";
|
|
39
38
|
import "./chunk-HP2JH45P.mjs";
|
|
40
39
|
import "./chunk-SQDIZZDW.mjs";
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
42
41
|
import "./chunk-FXYH54JP.mjs";
|
|
43
42
|
import "./chunk-774WSTCC.mjs";
|
|
44
43
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -18,11 +18,10 @@ import "./chunk-IUCDCPJU.mjs";
|
|
|
18
18
|
import {
|
|
19
19
|
KeyboundForm
|
|
20
20
|
} from "./chunk-6HTZNHPT.mjs";
|
|
21
|
-
import "./chunk-XXBP2Z5M.mjs";
|
|
22
21
|
import {
|
|
23
22
|
RouteFocusModal,
|
|
24
23
|
useRouteModal
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AERWK3TJ.mjs";
|
|
26
25
|
import "./chunk-LPEUYMRK.mjs";
|
|
27
26
|
import "./chunk-OC7BQLYI.mjs";
|
|
28
27
|
import "./chunk-S4DMV3ZT.mjs";
|
|
@@ -2,10 +2,6 @@ import {
|
|
|
2
2
|
useCurrenciesTableColumns,
|
|
3
3
|
useCurrenciesTableQuery
|
|
4
4
|
} from "./chunk-NEZX6265.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useLocalesTableColumns,
|
|
7
|
-
useLocalesTableQuery
|
|
8
|
-
} from "./chunk-XNIVMZHA.mjs";
|
|
9
5
|
import "./chunk-MSDRGCRR.mjs";
|
|
10
6
|
import {
|
|
11
7
|
StatusCell
|
|
@@ -24,9 +20,6 @@ import {
|
|
|
24
20
|
} from "./chunk-GIZFNLKK.mjs";
|
|
25
21
|
import "./chunk-C76H5USB.mjs";
|
|
26
22
|
import "./chunk-DZWH2RV6.mjs";
|
|
27
|
-
import {
|
|
28
|
-
useFeatureFlag
|
|
29
|
-
} from "./chunk-G4BWCU5P.mjs";
|
|
30
23
|
import {
|
|
31
24
|
useExtension
|
|
32
25
|
} from "./chunk-C5P5PL3E.mjs";
|
|
@@ -39,14 +32,12 @@ import {
|
|
|
39
32
|
import "./chunk-OC7BQLYI.mjs";
|
|
40
33
|
import "./chunk-S4DMV3ZT.mjs";
|
|
41
34
|
import "./chunk-SUYYSKCB.mjs";
|
|
42
|
-
import
|
|
43
|
-
useLocales
|
|
44
|
-
} from "./chunk-GV4XPCM5.mjs";
|
|
35
|
+
import "./chunk-6BP5RSIK.mjs";
|
|
45
36
|
import "./chunk-I4OBEAOJ.mjs";
|
|
46
37
|
import "./chunk-HI6URQ7H.mjs";
|
|
47
38
|
import "./chunk-6CLQKVAU.mjs";
|
|
48
39
|
import "./chunk-HKIF5HVL.mjs";
|
|
49
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-XIVBRONM.mjs";
|
|
50
41
|
import "./chunk-KI7TOXBR.mjs";
|
|
51
42
|
import "./chunk-WAXMT4IY.mjs";
|
|
52
43
|
import "./chunk-DYDGGABK.mjs";
|
|
@@ -55,20 +46,20 @@ import {
|
|
|
55
46
|
} from "./chunk-LGNTHZ5Y.mjs";
|
|
56
47
|
import "./chunk-CN7JXSGW.mjs";
|
|
57
48
|
import "./chunk-5BQQRHQS.mjs";
|
|
58
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
59
50
|
import "./chunk-5AFMB7XQ.mjs";
|
|
60
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
61
52
|
import "./chunk-A63RZVX6.mjs";
|
|
62
53
|
import "./chunk-HBXV7ENS.mjs";
|
|
63
54
|
import {
|
|
64
55
|
useStockLocation
|
|
65
56
|
} from "./chunk-CDORR33H.mjs";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
58
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
59
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
69
60
|
import {
|
|
70
61
|
useSalesChannel
|
|
71
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-N3FCYZV6.mjs";
|
|
72
63
|
import "./chunk-3BF5SC66.mjs";
|
|
73
64
|
import {
|
|
74
65
|
retrieveActiveStore,
|
|
@@ -82,7 +73,7 @@ import {
|
|
|
82
73
|
import {
|
|
83
74
|
usePricePreferences
|
|
84
75
|
} from "./chunk-SQDIZZDW.mjs";
|
|
85
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
86
77
|
import {
|
|
87
78
|
queryClient
|
|
88
79
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -111,12 +102,10 @@ import { Link } from "react-router-dom";
|
|
|
111
102
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
112
103
|
var StoreGeneralSection = ({ store }) => {
|
|
113
104
|
const { t } = useTranslation();
|
|
114
|
-
const isTranslationsEnabled = useFeatureFlag("translation");
|
|
115
105
|
const { region } = useRegion(store.default_region_id, void 0, {
|
|
116
106
|
enabled: !!store.default_region_id
|
|
117
107
|
});
|
|
118
108
|
const defaultCurrency = store.supported_currencies?.find((c) => c.is_default);
|
|
119
|
-
const defaultLocale = store.supported_locales?.find((l) => l.is_default);
|
|
120
109
|
const { sales_channel } = useSalesChannel(store.default_sales_channel_id, {
|
|
121
110
|
enabled: !!store.default_sales_channel_id
|
|
122
111
|
});
|
|
@@ -163,13 +152,6 @@ var StoreGeneralSection = ({ store }) => {
|
|
|
163
152
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: defaultCurrency.currency?.name })
|
|
164
153
|
] }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" })
|
|
165
154
|
] }),
|
|
166
|
-
isTranslationsEnabled && /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
167
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("store.defaultLocale") }),
|
|
168
|
-
defaultLocale ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
169
|
-
/* @__PURE__ */ jsx(Badge, { size: "2xsmall", children: defaultLocale.locale_code?.toUpperCase() }),
|
|
170
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: defaultLocale.locale?.name })
|
|
171
|
-
] }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" })
|
|
172
|
-
] }),
|
|
173
155
|
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
174
156
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("store.defaultRegion") }),
|
|
175
157
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: region ? /* @__PURE__ */ jsx(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: `/settings/regions/${region.id}`, children: region.name }) }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
@@ -506,268 +488,21 @@ var useColumns = () => {
|
|
|
506
488
|
);
|
|
507
489
|
};
|
|
508
490
|
|
|
509
|
-
// src/routes/store/store-detail/components/store-locale-section/store-locale-section.tsx
|
|
510
|
-
import { Plus as Plus2, Trash as Trash2 } from "@medusajs/icons";
|
|
511
|
-
import {
|
|
512
|
-
Checkbox as Checkbox2,
|
|
513
|
-
CommandBar as CommandBar2,
|
|
514
|
-
Container as Container3,
|
|
515
|
-
Heading as Heading3,
|
|
516
|
-
toast as toast2,
|
|
517
|
-
usePrompt as usePrompt2
|
|
518
|
-
} from "@medusajs/ui";
|
|
519
|
-
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
520
|
-
import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
|
|
521
|
-
import { useMemo as useMemo2, useState as useState2 } from "react";
|
|
522
|
-
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
523
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
524
|
-
var PAGE_SIZE2 = 10;
|
|
525
|
-
var StoreLocaleSection = ({ store }) => {
|
|
526
|
-
const [rowSelection, setRowSelection] = useState2({});
|
|
527
|
-
const { searchParams, raw } = useLocalesTableQuery({ pageSize: PAGE_SIZE2 });
|
|
528
|
-
const { locales, count, isPending, isError, error } = useLocales(
|
|
529
|
-
{
|
|
530
|
-
code: store.supported_locales?.map((l) => l.locale_code),
|
|
531
|
-
...searchParams
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
placeholderData: keepPreviousData2,
|
|
535
|
-
enabled: !!store.supported_locales?.length
|
|
536
|
-
}
|
|
537
|
-
);
|
|
538
|
-
const columns = useColumns2();
|
|
539
|
-
const { table } = useDataTable({
|
|
540
|
-
data: locales ?? [],
|
|
541
|
-
columns,
|
|
542
|
-
count,
|
|
543
|
-
getRowId: (row) => row.code,
|
|
544
|
-
rowSelection: {
|
|
545
|
-
state: rowSelection,
|
|
546
|
-
updater: setRowSelection
|
|
547
|
-
},
|
|
548
|
-
enablePagination: true,
|
|
549
|
-
enableRowSelection: true,
|
|
550
|
-
pageSize: PAGE_SIZE2,
|
|
551
|
-
meta: {
|
|
552
|
-
storeId: store.id,
|
|
553
|
-
supportedLocales: store.supported_locales,
|
|
554
|
-
defaultLocaleCode: store.supported_locales?.find((l) => l.is_default)?.locale_code
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
const { mutateAsync } = useUpdateStore(store.id);
|
|
558
|
-
const { t } = useTranslation3();
|
|
559
|
-
const prompt = usePrompt2();
|
|
560
|
-
const handleDeleteLocales = async () => {
|
|
561
|
-
const ids = Object.keys(rowSelection);
|
|
562
|
-
const result = await prompt({
|
|
563
|
-
title: t("general.areYouSure"),
|
|
564
|
-
description: t("store.removeLocaleWarning", {
|
|
565
|
-
count: ids.length
|
|
566
|
-
}),
|
|
567
|
-
confirmText: t("actions.remove"),
|
|
568
|
-
cancelText: t("actions.cancel")
|
|
569
|
-
});
|
|
570
|
-
if (!result) {
|
|
571
|
-
return;
|
|
572
|
-
}
|
|
573
|
-
await mutateAsync(
|
|
574
|
-
{
|
|
575
|
-
supported_locales: store.supported_locales?.filter(
|
|
576
|
-
(l) => !ids.includes(l.locale_code)
|
|
577
|
-
) ?? []
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
onSuccess: () => {
|
|
581
|
-
setRowSelection({});
|
|
582
|
-
toast2.success(t("store.toast.localesRemoved"));
|
|
583
|
-
},
|
|
584
|
-
onError: (e) => {
|
|
585
|
-
toast2.error(e.message);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
);
|
|
589
|
-
};
|
|
590
|
-
if (isError) {
|
|
591
|
-
throw error;
|
|
592
|
-
}
|
|
593
|
-
const isLoading = isPending;
|
|
594
|
-
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
|
|
595
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
596
|
-
/* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("store.locales") }),
|
|
597
|
-
/* @__PURE__ */ jsx3(
|
|
598
|
-
ActionMenu,
|
|
599
|
-
{
|
|
600
|
-
groups: [
|
|
601
|
-
{
|
|
602
|
-
actions: [
|
|
603
|
-
{
|
|
604
|
-
icon: /* @__PURE__ */ jsx3(Plus2, {}),
|
|
605
|
-
label: t("actions.add"),
|
|
606
|
-
to: "locales"
|
|
607
|
-
}
|
|
608
|
-
]
|
|
609
|
-
}
|
|
610
|
-
]
|
|
611
|
-
}
|
|
612
|
-
)
|
|
613
|
-
] }),
|
|
614
|
-
/* @__PURE__ */ jsx3(
|
|
615
|
-
_DataTable,
|
|
616
|
-
{
|
|
617
|
-
orderBy: [
|
|
618
|
-
{ key: "name", label: t("fields.name") },
|
|
619
|
-
{ key: "code", label: t("fields.code") }
|
|
620
|
-
],
|
|
621
|
-
search: true,
|
|
622
|
-
pagination: true,
|
|
623
|
-
table,
|
|
624
|
-
pageSize: PAGE_SIZE2,
|
|
625
|
-
columns,
|
|
626
|
-
count: !store.supported_locales?.length ? 0 : count,
|
|
627
|
-
isLoading: !store.supported_locales?.length ? false : isLoading,
|
|
628
|
-
queryObject: raw
|
|
629
|
-
}
|
|
630
|
-
),
|
|
631
|
-
/* @__PURE__ */ jsx3(CommandBar2, { open: !!Object.keys(rowSelection).length, children: /* @__PURE__ */ jsxs3(CommandBar2.Bar, { children: [
|
|
632
|
-
/* @__PURE__ */ jsx3(CommandBar2.Value, { children: t("general.countSelected", {
|
|
633
|
-
count: Object.keys(rowSelection).length
|
|
634
|
-
}) }),
|
|
635
|
-
/* @__PURE__ */ jsx3(CommandBar2.Seperator, {}),
|
|
636
|
-
/* @__PURE__ */ jsx3(
|
|
637
|
-
CommandBar2.Command,
|
|
638
|
-
{
|
|
639
|
-
action: handleDeleteLocales,
|
|
640
|
-
shortcut: "r",
|
|
641
|
-
label: t("actions.remove")
|
|
642
|
-
}
|
|
643
|
-
)
|
|
644
|
-
] }) })
|
|
645
|
-
] });
|
|
646
|
-
};
|
|
647
|
-
var LocaleActions = ({
|
|
648
|
-
storeId,
|
|
649
|
-
locale,
|
|
650
|
-
supportedLocales,
|
|
651
|
-
defaultLocaleCode
|
|
652
|
-
}) => {
|
|
653
|
-
const { mutateAsync } = useUpdateStore(storeId);
|
|
654
|
-
const { t } = useTranslation3();
|
|
655
|
-
const prompt = usePrompt2();
|
|
656
|
-
const handleRemove = async () => {
|
|
657
|
-
const result = await prompt({
|
|
658
|
-
title: t("general.areYouSure"),
|
|
659
|
-
description: t("store.removeLocaleWarning", {
|
|
660
|
-
count: 1
|
|
661
|
-
}),
|
|
662
|
-
verificationInstruction: t("general.typeToConfirm"),
|
|
663
|
-
verificationText: locale.name,
|
|
664
|
-
confirmText: t("actions.remove"),
|
|
665
|
-
cancelText: t("actions.cancel")
|
|
666
|
-
});
|
|
667
|
-
if (!result) {
|
|
668
|
-
return;
|
|
669
|
-
}
|
|
670
|
-
await mutateAsync(
|
|
671
|
-
{
|
|
672
|
-
supported_locales: supportedLocales.filter(
|
|
673
|
-
(l) => l.locale_code !== locale.code
|
|
674
|
-
)
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
onSuccess: () => {
|
|
678
|
-
toast2.success(t("store.toast.localesRemoved"));
|
|
679
|
-
},
|
|
680
|
-
onError: (e) => {
|
|
681
|
-
toast2.error(e.message);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
);
|
|
685
|
-
};
|
|
686
|
-
return /* @__PURE__ */ jsx3(
|
|
687
|
-
ActionMenu,
|
|
688
|
-
{
|
|
689
|
-
groups: [
|
|
690
|
-
{
|
|
691
|
-
actions: [
|
|
692
|
-
{
|
|
693
|
-
icon: /* @__PURE__ */ jsx3(Trash2, {}),
|
|
694
|
-
label: t("actions.remove"),
|
|
695
|
-
onClick: handleRemove,
|
|
696
|
-
disabled: locale.code === defaultLocaleCode
|
|
697
|
-
}
|
|
698
|
-
]
|
|
699
|
-
}
|
|
700
|
-
]
|
|
701
|
-
}
|
|
702
|
-
);
|
|
703
|
-
};
|
|
704
|
-
var columnHelper2 = createColumnHelper2();
|
|
705
|
-
var useColumns2 = () => {
|
|
706
|
-
const base = useLocalesTableColumns();
|
|
707
|
-
const { t } = useTranslation3();
|
|
708
|
-
return useMemo2(
|
|
709
|
-
() => [
|
|
710
|
-
columnHelper2.display({
|
|
711
|
-
id: "select",
|
|
712
|
-
header: ({ table }) => {
|
|
713
|
-
return /* @__PURE__ */ jsx3(
|
|
714
|
-
Checkbox2,
|
|
715
|
-
{
|
|
716
|
-
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
717
|
-
onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
|
|
718
|
-
}
|
|
719
|
-
);
|
|
720
|
-
},
|
|
721
|
-
cell: ({ row }) => {
|
|
722
|
-
return /* @__PURE__ */ jsx3(
|
|
723
|
-
Checkbox2,
|
|
724
|
-
{
|
|
725
|
-
checked: row.getIsSelected(),
|
|
726
|
-
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
727
|
-
onClick: (e) => {
|
|
728
|
-
e.stopPropagation();
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
);
|
|
732
|
-
}
|
|
733
|
-
}),
|
|
734
|
-
...base,
|
|
735
|
-
columnHelper2.display({
|
|
736
|
-
id: "actions",
|
|
737
|
-
cell: ({ row, table }) => {
|
|
738
|
-
const { supportedLocales, storeId, defaultLocaleCode } = table.options.meta;
|
|
739
|
-
return /* @__PURE__ */ jsx3(
|
|
740
|
-
LocaleActions,
|
|
741
|
-
{
|
|
742
|
-
storeId,
|
|
743
|
-
locale: row.original,
|
|
744
|
-
supportedLocales,
|
|
745
|
-
defaultLocaleCode
|
|
746
|
-
}
|
|
747
|
-
);
|
|
748
|
-
}
|
|
749
|
-
})
|
|
750
|
-
],
|
|
751
|
-
[base, t]
|
|
752
|
-
);
|
|
753
|
-
};
|
|
754
|
-
|
|
755
491
|
// src/routes/store/store-detail/store-detail.tsx
|
|
756
|
-
import { jsx as
|
|
492
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
757
493
|
var StoreDetail = () => {
|
|
758
494
|
const initialData = useLoaderData();
|
|
759
|
-
const isTranslationsEnabled = useFeatureFlag("translation");
|
|
760
495
|
const { store, isPending, isError, error } = useStore(void 0, {
|
|
761
496
|
initialData
|
|
762
497
|
});
|
|
763
498
|
const { getWidgets } = useExtension();
|
|
764
499
|
if (isPending || !store) {
|
|
765
|
-
return /* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ jsx3(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
|
|
766
501
|
}
|
|
767
502
|
if (isError) {
|
|
768
503
|
throw error;
|
|
769
504
|
}
|
|
770
|
-
return /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ jsxs3(
|
|
771
506
|
SingleColumnPage,
|
|
772
507
|
{
|
|
773
508
|
widgets: {
|
|
@@ -779,9 +514,8 @@ var StoreDetail = () => {
|
|
|
779
514
|
showMetadata: true,
|
|
780
515
|
showJSON: true,
|
|
781
516
|
children: [
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
isTranslationsEnabled && /* @__PURE__ */ jsx4(StoreLocaleSection, { store })
|
|
517
|
+
/* @__PURE__ */ jsx3(StoreGeneralSection, { store }),
|
|
518
|
+
/* @__PURE__ */ jsx3(StoreCurrencySection, { store })
|
|
785
519
|
]
|
|
786
520
|
}
|
|
787
521
|
);
|