@medusajs/dashboard 2.12.3-preview-20251217120154 → 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/{add-campaign-promotions-4QLXO46G.mjs → add-campaign-promotions-OYPGISTF.mjs} +2 -2
- package/dist/{adjust-inventory-2MFA656V.mjs → adjust-inventory-26YXAXQL.mjs} +4 -3
- package/dist/{api-key-management-create-ZUVF3SLR.mjs → api-key-management-create-EMP32G2D.mjs} +6 -5
- package/dist/{api-key-management-detail-THD74G7I.mjs → api-key-management-detail-6RCDH73M.mjs} +11 -10
- package/dist/{api-key-management-edit-42HNUSXL.mjs → api-key-management-edit-IBM3ZXHK.mjs} +6 -5
- package/dist/{api-key-management-list-66CFOILY.mjs → api-key-management-list-KC5GOWAU.mjs} +4 -3
- package/dist/{api-key-management-sales-channels-HN3THM5J.mjs → api-key-management-sales-channels-LUB5G6RC.mjs} +6 -5
- package/dist/app.css +53 -0
- package/dist/app.js +13537 -11320
- package/dist/app.mjs +12 -11
- package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-B5MSE26J.mjs} +2 -2
- package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-QOE3D2BE.mjs} +2 -2
- package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-FJOECKGT.mjs} +3 -3
- package/dist/{campaign-detail-WR3XHHV2.mjs → campaign-detail-5Q4BYCPX.mjs} +11 -10
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-K2POQH7M.mjs} +2 -2
- package/dist/{categories-metadata-BCZ463KN.mjs → categories-metadata-J7M3XWI7.mjs} +14 -13
- package/dist/{category-create-FFIBWXAH.mjs → category-create-KHJZSC7G.mjs} +5 -4
- package/dist/{category-detail-4HXJ5Z7N.mjs → category-detail-S5IPXMHX.mjs} +29 -13
- package/dist/{category-edit-74MZ6TXN.mjs → category-edit-CTA2EPDG.mjs} +5 -4
- package/dist/{category-list-OCJY2UJV.mjs → category-list-QBYJ4T3R.mjs} +20 -4
- package/dist/{category-organize-B6EFBFKB.mjs → category-organize-SXP33XET.mjs} +5 -4
- package/dist/{category-products-2HXLZDHL.mjs → category-products-KPW6BA5J.mjs} +14 -13
- package/dist/{chunk-XIVBRONM.mjs → chunk-23GTCEOV.mjs} +1 -1
- package/dist/{chunk-2NZDHAOE.mjs → chunk-27MGH3HR.mjs} +2 -2
- package/dist/{chunk-N3FCYZV6.mjs → chunk-2XTBDCGE.mjs} +1 -1
- package/dist/{chunk-RU4ZS47V.mjs → chunk-4JQR6QNW.mjs} +2 -2
- package/dist/{chunk-Z6NHG5LQ.mjs → chunk-6P4Q4AAP.mjs} +3 -3
- package/dist/{chunk-F5NZDW7L.mjs → chunk-A2WBKOXJ.mjs} +2 -2
- package/dist/{chunk-F63F3FIT.mjs → chunk-A4XYK3MY.mjs} +2 -2
- package/dist/{chunk-NT6C7CHT.mjs → chunk-AWRCV3ME.mjs} +1 -1
- package/dist/{chunk-5X6SKB2P.mjs → chunk-BMS2QLJY.mjs} +1 -1
- package/dist/{chunk-3YPRDSZ6.mjs → chunk-BZKI5J2M.mjs} +1 -1
- package/dist/{chunk-25UWYEJX.mjs → chunk-CQOOXWPZ.mjs} +1 -1
- package/dist/{chunk-5DUMSVP6.mjs → chunk-CVHJAKLQ.mjs} +3 -3
- package/dist/{chunk-42OOM4DJ.mjs → chunk-D6UW7URG.mjs} +23 -6
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-DBXWB3RF.mjs} +2 -2
- package/dist/{chunk-N4O5FAUC.mjs → chunk-FYWHE3W5.mjs} +1 -1
- package/dist/{chunk-QPKW37WR.mjs → chunk-GRZSG4EP.mjs} +244 -14
- package/dist/chunk-HGRIOEAR.mjs +32 -0
- package/dist/{chunk-Y5UO73CH.mjs → chunk-HTCYX4VD.mjs} +1 -1
- package/dist/{chunk-34KFHPN6.mjs → chunk-IAV7IKJ6.mjs} +1 -1
- package/dist/{chunk-6W3BKVOC.mjs → chunk-KFYQTOGB.mjs} +1 -1
- package/dist/{chunk-EQTBJSBZ.mjs → chunk-KIIT4BNH.mjs} +3 -0
- package/dist/{chunk-W7SLPIO2.mjs → chunk-LZFWCKOF.mjs} +655 -147
- package/dist/{chunk-PNPT4W2F.mjs → chunk-MJDHVDOW.mjs} +1 -1
- package/dist/{chunk-D4J3CEWH.mjs → chunk-N3SAXQVR.mjs} +2 -2
- package/dist/{chunk-Q6MSICBU.mjs → chunk-O333RR6K.mjs} +1 -1
- package/dist/{chunk-F65T2X7G.mjs → chunk-OL24RDYM.mjs} +5 -5
- package/dist/{chunk-7ZYDO3XO.mjs → chunk-OL6MEUKW.mjs} +295 -194
- package/dist/{chunk-7AX6R6G6.mjs → chunk-OSHH5GAS.mjs} +13 -1
- package/dist/{chunk-YAPTGHGP.mjs → chunk-PHLCT2HA.mjs} +1 -1
- package/dist/{chunk-35LSPN2U.mjs → chunk-QKALAT7P.mjs} +1 -1
- package/dist/{chunk-UM4OIJZ3.mjs → chunk-S22SJRPO.mjs} +1 -1
- package/dist/{chunk-4YAPXPLM.mjs → chunk-ST4P6BQN.mjs} +1 -1
- package/dist/{chunk-B3AOQW2B.mjs → chunk-U6G4M5LP.mjs} +1 -1
- package/dist/{chunk-HWKLNKOY.mjs → chunk-U726TGCM.mjs} +1 -1
- package/dist/{chunk-HKIF5HVL.mjs → chunk-UJ2TMPV4.mjs} +12 -0
- package/dist/{chunk-NHDFPGQ3.mjs → chunk-UWY5ZV66.mjs} +13 -1
- package/dist/{chunk-XXBP2Z5M.mjs → chunk-WVA4O7QS.mjs} +1 -1
- package/dist/{chunk-PXJFCRIV.mjs → chunk-WYATCUOM.mjs} +4 -4
- package/dist/{chunk-AH4DORIW.mjs → chunk-XY7A7GZJ.mjs} +1 -1
- package/dist/{chunk-FQDPOKEK.mjs → chunk-Y2YVTIJI.mjs} +1 -1
- package/dist/{chunk-L4NOVTH5.mjs → chunk-YIOBBZUB.mjs} +2 -2
- package/dist/{chunk-MY6I7UJG.mjs → chunk-YYOPBKME.mjs} +3 -3
- package/dist/{chunk-LEJUZW3P.mjs → chunk-Z6BFNHEO.mjs} +12 -0
- package/dist/{chunk-HFT7Q5Y5.mjs → chunk-ZMG5B4FG.mjs} +1 -1
- package/dist/{collection-add-products-JWAQ277T.mjs → collection-add-products-FU2BS3D3.mjs} +14 -13
- package/dist/{collection-create-DCRW344Z.mjs → collection-create-GWKWVT7B.mjs} +5 -4
- package/dist/{collection-detail-F4ON763T.mjs → collection-detail-VJE7XHLV.mjs} +28 -12
- package/dist/{collection-edit-UNFEW6HT.mjs → collection-edit-EZIO2BR5.mjs} +5 -4
- package/dist/{collection-list-4C5HVO6Y.mjs → collection-list-IGA6SCNF.mjs} +29 -13
- package/dist/{collection-metadata-P4A5DXBQ.mjs → collection-metadata-QK7MI3D2.mjs} +14 -13
- package/dist/{customer-create-XCLZENJS.mjs → customer-create-IA56MXE6.mjs} +2 -2
- package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-27M25HTO.mjs} +2 -2
- package/dist/{customer-detail-X3RQJPXP.mjs → customer-detail-MOV2T3LF.mjs} +12 -11
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-XQ5NWIVX.mjs} +2 -2
- package/dist/{customer-group-add-customers-SOXMSWQH.mjs → customer-group-add-customers-XMR2WBXX.mjs} +2 -2
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-RY4FVEIW.mjs} +2 -2
- package/dist/{customer-group-detail-NG32WKJT.mjs → customer-group-detail-6T7OXGQD.mjs} +11 -10
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-MQWARIQZ.mjs} +2 -2
- package/dist/{customer-group-list-EBETHKKO.mjs → customer-group-list-AJEAF5D2.mjs} +11 -10
- package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-JQJRLLXG.mjs} +3 -3
- package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-HN2DYD5I.mjs} +3 -3
- package/dist/{customers-add-customer-group-7FYD54MZ.mjs → customers-add-customer-group-QVTVSQYM.mjs} +13 -12
- package/dist/{edit-inventory-item-Y5W6VTHJ.mjs → edit-inventory-item-H7DAZWIT.mjs} +4 -3
- package/dist/{edit-inventory-item-attributes-NAAZDFEJ.mjs → edit-inventory-item-attributes-7HTXXPGZ.mjs} +4 -3
- package/dist/{edit-reservation-2UD4RZJX.mjs → edit-reservation-OVTRZHJR.mjs} +5 -4
- package/dist/{edit-rules-2W3BXEXR.mjs → edit-rules-SMVRTCUP.mjs} +13 -12
- package/dist/en.json +38 -0
- package/dist/{inventory-create-VQEK7C5T.mjs → inventory-create-BK52VALF.mjs} +14 -13
- package/dist/{inventory-detail-HUHQ6ZNE.mjs → inventory-detail-ZPSEMYI2.mjs} +11 -10
- package/dist/{inventory-list-RUSSPKHE.mjs → inventory-list-RXJPSVZE.mjs} +2 -1
- package/dist/{inventory-metadata-X52VGHA7.mjs → inventory-metadata-FNEJ3RAT.mjs} +14 -13
- package/dist/{inventory-stock-EKTOYN2F.mjs → inventory-stock-6WYWLWJ7.mjs} +15 -14
- package/dist/{invite-VKHAAF4Z.mjs → invite-FVE4ZBKB.mjs} +2 -2
- package/dist/{location-create-RPLEXUZR.mjs → location-create-WZ43K3W7.mjs} +2 -2
- package/dist/{location-detail-UVWYE6Q2.mjs → location-detail-N3GUZSY7.mjs} +12 -11
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-VCS7GVWQ.mjs} +2 -2
- package/dist/{location-fulfillment-providers-HZZUHPVL.mjs → location-fulfillment-providers-7ZUJAGNY.mjs} +15 -14
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-KVBA6J47.mjs} +2 -2
- package/dist/{location-sales-channels-XIMOK66B.mjs → location-sales-channels-P3QJTFDT.mjs} +5 -4
- package/dist/{location-service-zone-create-7ZNVLEE3.mjs → location-service-zone-create-J43WN6G4.mjs} +3 -3
- package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-KHHMSPXD.mjs} +2 -2
- package/dist/{location-service-zone-manage-areas-EOULKRYD.mjs → location-service-zone-manage-areas-6ZPMKMSX.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-M7G4SKNP.mjs → location-service-zone-shipping-option-create-CNRWYZQC.mjs} +15 -14
- package/dist/{location-service-zone-shipping-option-edit-M2HJAASG.mjs → location-service-zone-shipping-option-edit-4CGPQ3VT.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-OGWI7VPT.mjs} +4 -4
- package/dist/{login-NSCAMAU6.mjs → login-VNOLI5YG.mjs} +13 -12
- package/dist/{manage-locations-JD6FSBOT.mjs → manage-locations-7HH6R4UP.mjs} +4 -3
- package/dist/{order-allocate-items-5T57NZOB.mjs → order-allocate-items-HZGGYJ42.mjs} +6 -5
- package/dist/{order-create-claim-TE56IE7P.mjs → order-create-claim-SCDJGM46.mjs} +15 -14
- package/dist/{order-create-edit-RDFYBVFY.mjs → order-create-edit-2WALBPXS.mjs} +14 -13
- package/dist/{order-create-exchange-B5ZOEQCJ.mjs → order-create-exchange-LQU4YN7F.mjs} +15 -14
- package/dist/{order-create-fulfillment-SRRP6X64.mjs → order-create-fulfillment-OWUVTZXW.mjs} +13 -12
- package/dist/{order-create-refund-PTOM65QK.mjs → order-create-refund-Q6HQY42R.mjs} +13 -12
- package/dist/{order-create-return-3C2QVNYN.mjs → order-create-return-52GHGW5Z.mjs} +7 -6
- package/dist/{order-create-shipment-HNILNFXB.mjs → order-create-shipment-WAGGEPRW.mjs} +13 -12
- package/dist/{order-detail-3OUZOQ7G.mjs → order-detail-PVPGEWGY.mjs} +15 -14
- package/dist/{order-edit-billing-address-3IO7GXIK.mjs → order-edit-billing-address-UM76J4KX.mjs} +13 -12
- package/dist/{order-edit-email-QIAEOUBV.mjs → order-edit-email-CL3KNOCM.mjs} +13 -12
- package/dist/{order-edit-shipping-address-QGGMHGBC.mjs → order-edit-shipping-address-PIESTGVL.mjs} +13 -12
- package/dist/{order-export-JYYFTOWR.mjs → order-export-LE363ZLB.mjs} +14 -13
- package/dist/{order-list-RFR3HNDQ.mjs → order-list-GRLQWN4L.mjs} +6 -5
- package/dist/{order-metadata-ZBDTMBHZ.mjs → order-metadata-FHBB7MTG.mjs} +14 -13
- package/dist/{order-receive-return-V42FTCFY.mjs → order-receive-return-PRVKP6J2.mjs} +14 -13
- package/dist/{order-request-transfer-A6NNIN2O.mjs → order-request-transfer-XSAGRUMT.mjs} +13 -12
- package/dist/{price-list-configuration-RTUEJENE.mjs → price-list-configuration-6S3MLNXQ.mjs} +6 -5
- package/dist/{price-list-create-GRT27KOM.mjs → price-list-create-K5JEZT57.mjs} +17 -16
- package/dist/{price-list-detail-VKIWM7HP.mjs → price-list-detail-Q5VG5VGW.mjs} +13 -12
- package/dist/{price-list-edit-SW7YIR3Z.mjs → price-list-edit-53UW35L3.mjs} +5 -4
- package/dist/{price-list-list-LF2PL4B5.mjs → price-list-list-DG5YEZ44.mjs} +4 -3
- package/dist/{price-list-prices-add-ISLZDQNI.mjs → price-list-prices-add-2MQ226U4.mjs} +16 -15
- package/dist/{price-list-prices-edit-C6SX2TLJ.mjs → price-list-prices-edit-OJZLV7OS.mjs} +7 -6
- package/dist/{product-attributes-REJ5NF2D.mjs → product-attributes-YF4TZOIO.mjs} +14 -13
- package/dist/{product-create-4TFE3JHQ.mjs → product-create-KJML2332.mjs} +16 -15
- package/dist/{product-create-option-GEGQNSMQ.mjs → product-create-option-7AOXAA4S.mjs} +4 -3
- package/dist/{product-create-variant-WI6D5CDG.mjs → product-create-variant-5EBCLM54.mjs} +14 -13
- package/dist/{product-detail-BEIDGPKY.mjs → product-detail-QG72542C.mjs} +59 -17
- package/dist/{product-edit-ZRQUK5OQ.mjs → product-edit-DZZR775Q.mjs} +14 -13
- package/dist/{product-edit-option-HBIOBQTS.mjs → product-edit-option-LWJT3CYJ.mjs} +4 -3
- package/dist/{product-export-GIEFG4MA.mjs → product-export-5AD7NELI.mjs} +15 -14
- package/dist/{product-image-variants-edit-AAMRK4KQ.mjs → product-image-variants-edit-M6QF2RLE.mjs} +13 -12
- package/dist/{product-import-43UXKCL3.mjs → product-import-V3KQN4TV.mjs} +13 -12
- package/dist/{product-list-D4CVUBQQ.mjs → product-list-EUWZIFTM.mjs} +25 -12
- package/dist/{product-media-EGK66SRX.mjs → product-media-3VJ7KENL.mjs} +4 -3
- package/dist/{product-metadata-55CAQTPS.mjs → product-metadata-GL2MVPDI.mjs} +14 -13
- package/dist/{product-organization-7J7MUM6F.mjs → product-organization-O7RHELMQ.mjs} +15 -14
- package/dist/{product-prices-WQDE4XYT.mjs → product-prices-YWV6MSM6.mjs} +5 -4
- package/dist/{product-sales-channels-GIJ7Q57M.mjs → product-sales-channels-PPXUG4KT.mjs} +5 -4
- package/dist/{product-shipping-profile-KIDRTPWA.mjs → product-shipping-profile-ETQFZ7DC.mjs} +4 -3
- package/dist/{product-stock-22S2HGMM.mjs → product-stock-AKEFMK5O.mjs} +15 -14
- package/dist/{product-tag-create-7GPE246H.mjs → product-tag-create-PQMDDKWH.mjs} +13 -12
- package/dist/{product-tag-detail-R6C2TTA4.mjs → product-tag-detail-I3MBZX7U.mjs} +30 -14
- package/dist/{product-tag-edit-WA6FGSIP.mjs → product-tag-edit-K3BBQLJR.mjs} +13 -12
- package/dist/{product-tag-list-U7PLHMLF.mjs → product-tag-list-JUWSOMB7.mjs} +30 -14
- package/dist/{product-tag-metadata-EJ7FEXSE.mjs → product-tag-metadata-MJH5LH7E.mjs} +14 -13
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-DRFXTL5O.mjs} +4 -3
- package/dist/{product-type-detail-TYQ7MJFE.mjs → product-type-detail-RKHT5NBL.mjs} +29 -13
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SRHCZDK7.mjs} +4 -3
- package/dist/{product-type-list-KIKWBPD7.mjs → product-type-list-QQKAHBJ3.mjs} +19 -3
- package/dist/{product-type-metadata-Q6W5GL7Z.mjs → product-type-metadata-CDJDFFGQ.mjs} +14 -13
- package/dist/{product-variant-detail-SPJ7MZTK.mjs → product-variant-detail-XAYG5CKE.mjs} +27 -11
- package/dist/{product-variant-edit-BW7QMHC5.mjs → product-variant-edit-DEZEY2H2.mjs} +13 -12
- package/dist/{product-variant-manage-inventory-items-BLHCH6QD.mjs → product-variant-manage-inventory-items-Y2VEOHP7.mjs} +4 -3
- package/dist/{product-variant-media-KLSUISGH.mjs → product-variant-media-2WLVNGI4.mjs} +4 -3
- package/dist/{product-variant-metadata-GDMVC4MZ.mjs → product-variant-metadata-VTZDNWUT.mjs} +14 -13
- package/dist/{profile-edit-YBBXXCCK.mjs → profile-edit-ZNXO6WME.mjs} +2 -2
- package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-DO67QK6M.mjs} +3 -3
- package/dist/{promotion-create-HF6DTKCC.mjs → promotion-create-HWFNUQXG.mjs} +15 -14
- package/dist/{promotion-detail-HTM3F2VO.mjs → promotion-detail-QC36KXB3.mjs} +11 -10
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-6BSOOWQN.mjs} +2 -2
- package/dist/{refund-reason-create-RKIH46D6.mjs → refund-reason-create-YHCDEHGQ.mjs} +13 -12
- package/dist/{refund-reason-edit-V3KC6NMO.mjs → refund-reason-edit-CZ5QZ2SZ.mjs} +13 -12
- package/dist/{refund-reason-list-M5BOHFWU.mjs → refund-reason-list-OJYYEYJE.mjs} +11 -10
- package/dist/{region-add-countries-OF5RUSYU.mjs → region-add-countries-2VAVXMJQ.mjs} +2 -2
- package/dist/{region-create-BGOWVCTR.mjs → region-create-NA7Y2LN4.mjs} +2 -2
- package/dist/{region-edit-5GO25GDF.mjs → region-edit-WAU347DP.mjs} +2 -2
- package/dist/{region-metadata-5NGUNAXZ.mjs → region-metadata-H6XXUQ4S.mjs} +14 -13
- package/dist/{reservation-create-Z2SUMBGT.mjs → reservation-create-ZCIYM6JI.mjs} +5 -4
- package/dist/{reservation-detail-JH77TQHN.mjs → reservation-detail-LZAQL4XA.mjs} +11 -10
- package/dist/{reservation-list-WHBGZSVH.mjs → reservation-list-B47DXTA7.mjs} +3 -2
- package/dist/{reservation-metadata-ERCWXYVL.mjs → reservation-metadata-5HZSDDOK.mjs} +14 -13
- package/dist/{reset-password-5TAYQEUV.mjs → reset-password-Y5WVXV4Q.mjs} +2 -2
- package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-HM54WRJY.mjs} +2 -2
- package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-VSIRHVQ6.mjs} +2 -2
- package/dist/{sales-channel-add-products-DTAXWL6H.mjs → sales-channel-add-products-F7YV4MO5.mjs} +14 -13
- package/dist/{sales-channel-create-E7BDTPWD.mjs → sales-channel-create-MI7HHZYE.mjs} +5 -4
- package/dist/{sales-channel-detail-XWHV7J7X.mjs → sales-channel-detail-MXIPZCGA.mjs} +12 -11
- package/dist/{sales-channel-edit-HMPA3Y3L.mjs → sales-channel-edit-VSHOIR37.mjs} +5 -4
- package/dist/{sales-channel-list-7NSEFCXQ.mjs → sales-channel-list-RLGL7FM3.mjs} +11 -10
- package/dist/{sales-channel-metadata-CMZN74K7.mjs → sales-channel-metadata-M364R4RJ.mjs} +14 -13
- package/dist/{shipping-option-type-create-4BN2GBHP.mjs → shipping-option-type-create-C5WUWON7.mjs} +13 -12
- package/dist/{shipping-option-type-detail-YB3TCED2.mjs → shipping-option-type-detail-PENS2K73.mjs} +12 -11
- package/dist/{shipping-option-type-edit-MDO7ALAU.mjs → shipping-option-type-edit-CIU5EHRP.mjs} +13 -12
- package/dist/{shipping-option-type-list-DJAT4RKX.mjs → shipping-option-type-list-DIOX7VG7.mjs} +12 -11
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-26R64I3Z.mjs} +2 -2
- package/dist/{shipping-profile-metadata-HQI7PCPU.mjs → shipping-profile-metadata-75G2NNMA.mjs} +14 -13
- package/dist/{store-add-currencies-PEWNEWCH.mjs → store-add-currencies-OX2WXFMS.mjs} +2 -2
- package/dist/{store-add-locales-JLRTXG3Q.mjs → store-add-locales-VJ4RJ7UI.mjs} +12 -11
- package/dist/{store-detail-MOLAYNQZ.mjs → store-detail-JSNPOB2F.mjs} +11 -10
- package/dist/{store-edit-FTLPT55E.mjs → store-edit-5ZS562ZO.mjs} +2 -2
- package/dist/{store-metadata-ZJD23O4D.mjs → store-metadata-CYXTVJUE.mjs} +14 -13
- package/dist/{tax-region-create-NCO2OQ3I.mjs → tax-region-create-DWGL4EUT.mjs} +13 -12
- package/dist/{tax-region-detail-RIABXU7D.mjs → tax-region-detail-2AE2EFI3.mjs} +21 -20
- package/dist/{tax-region-edit-YZALLSZY.mjs → tax-region-edit-EEVEEU2Q.mjs} +13 -12
- package/dist/{tax-region-list-BXZBUXRJ.mjs → tax-region-list-P4LDOPZD.mjs} +3 -3
- package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-GKJ7WMRS.mjs} +2 -2
- package/dist/{tax-region-province-detail-UKLRVJS2.mjs → tax-region-province-detail-4ERSEQFF.mjs} +20 -19
- package/dist/{tax-region-tax-override-create-33XGHH7A.mjs → tax-region-tax-override-create-PHCGEF7V.mjs} +16 -15
- package/dist/{tax-region-tax-override-edit-WOKZSPTY.mjs → tax-region-tax-override-edit-SMRPSILC.mjs} +17 -16
- package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-MECFGVPL.mjs} +2 -2
- package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-7DYSPYOD.mjs} +2 -2
- package/dist/translation-list-UF7FLXOW.mjs +441 -0
- package/dist/translations-edit-USQJNMAY.mjs +707 -0
- package/dist/{user-detail-KEDJ7N3Q.mjs → user-detail-BJUXLZZQ.mjs} +2 -1
- package/dist/{user-edit-LXQCTDGA.mjs → user-edit-ZBB4RMTP.mjs} +2 -2
- package/dist/{user-invite-YH33WUC2.mjs → user-invite-GAGIM5DO.mjs} +2 -2
- package/dist/{user-metadata-4WOICEE7.mjs → user-metadata-2WPJOEJA.mjs} +14 -13
- package/dist/{workflow-execution-detail-OKM6P4SX.mjs → workflow-execution-detail-H2AKEZJX.mjs} +11 -10
- package/package.json +9 -9
- package/src/components/common/icon-avatar/icon-avatar.tsx +4 -0
- package/src/components/data-grid/components/data-grid-cell-container.tsx +13 -4
- package/src/components/data-grid/components/data-grid-multiline-cell.tsx +103 -0
- package/src/components/data-grid/components/data-grid-readonly-cell.tsx +13 -3
- package/src/components/data-grid/components/data-grid-root.tsx +271 -60
- package/src/components/data-grid/components/data-grid-text-cell.tsx +7 -7
- package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +233 -0
- package/src/components/data-grid/components/index.ts +2 -0
- package/src/components/data-grid/data-grid.tsx +16 -1
- package/src/components/data-grid/helpers/create-data-grid-column-helper.ts +18 -0
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +12 -1
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +43 -3
- package/src/components/data-grid/types.ts +1 -0
- package/src/components/layout/settings-layout/settings-layout.tsx +11 -1
- package/src/components/modals/route-focus-modal/route-focus-modal.tsx +8 -3
- package/src/components/modals/route-modal-form/route-modal-form.tsx +6 -1
- package/src/components/modals/route-modal-provider/route-provider.tsx +16 -4
- package/src/dashboard-app/routes/get-route.map.tsx +19 -0
- package/src/hooks/api/categories.tsx +32 -0
- package/src/hooks/api/collections.tsx +31 -0
- package/src/hooks/api/index.ts +1 -0
- package/src/hooks/api/product-types.tsx +32 -0
- package/src/hooks/api/product-variants.tsx +47 -3
- package/src/hooks/api/products.tsx +29 -0
- package/src/hooks/api/tags.tsx +32 -0
- package/src/hooks/api/translations.tsx +306 -0
- package/src/hooks/use-infinite-list.tsx +92 -0
- package/src/i18n/translations/$schema.json +122 -0
- package/src/i18n/translations/en.json +38 -0
- package/src/i18n/translations/es.json +38 -0
- package/src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx +16 -1
- package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +16 -1
- package/src/routes/collections/collection-detail/components/collection-general-section/collection-general-section.tsx +16 -1
- package/src/routes/collections/collection-list/components/collection-list-table/collection-row-actions.tsx +16 -1
- package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx +16 -1
- package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/product-tag-list-table.tsx +16 -1
- package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +16 -1
- package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +16 -1
- package/src/routes/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx +16 -1
- package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +16 -1
- package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +32 -1
- package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +15 -1
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +68 -0
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +44 -0
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +224 -0
- package/src/routes/translations/translation-list/index.tsx +1 -0
- package/src/routes/translations/translation-list/translation-list.tsx +138 -0
- package/src/routes/translations/translations-edit/components/translations-edit-form/index.ts +1 -0
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +792 -0
- package/src/routes/translations/translations-edit/index.ts +1 -0
- package/src/routes/translations/translations-edit/translations-edit.tsx +90 -0
|
@@ -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 {
|
|
8
8
|
PercentageInput
|
|
9
9
|
} from "./chunk-KEQOAJC2.mjs";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
RouteDrawer,
|
|
18
18
|
StackedDrawer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useRouteModal,
|
|
22
22
|
useStackedModal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
24
24
|
import {
|
|
25
25
|
useDocumentDirection
|
|
26
26
|
} from "./chunk-S4DMV3ZT.mjs";
|
|
@@ -57,7 +57,9 @@ var RouteModalForm = ({
|
|
|
57
57
|
formState: { isDirty }
|
|
58
58
|
} = form;
|
|
59
59
|
const blocker = useBlocker(({ currentLocation, nextLocation }) => {
|
|
60
|
-
const { isSubmitSuccessful } = nextLocation.state || {};
|
|
60
|
+
const { isSubmitSuccessful: nextIsSuccessful } = nextLocation.state || {};
|
|
61
|
+
const { isSubmitSuccessful: currentIsSuccessful } = currentLocation.state || {};
|
|
62
|
+
const isSubmitSuccessful = nextIsSuccessful || currentIsSuccessful;
|
|
61
63
|
if (isSubmitSuccessful) {
|
|
62
64
|
onClose?.(true);
|
|
63
65
|
return false;
|
|
@@ -101,20 +103,31 @@ var RouteModalForm = ({
|
|
|
101
103
|
|
|
102
104
|
// src/components/modals/route-modal-provider/route-provider.tsx
|
|
103
105
|
import { useCallback, useMemo as useMemo2, useState } from "react";
|
|
104
|
-
import { useNavigate } from "react-router-dom";
|
|
106
|
+
import { useLocation as useLocation2, useNavigate } from "react-router-dom";
|
|
105
107
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
106
108
|
var RouteModalProvider = ({
|
|
107
109
|
prev,
|
|
108
110
|
children
|
|
109
111
|
}) => {
|
|
110
112
|
const navigate = useNavigate();
|
|
113
|
+
const location = useLocation2();
|
|
111
114
|
const [closeOnEscape, setCloseOnEscape] = useState(true);
|
|
112
115
|
const handleSuccess = useCallback(
|
|
113
116
|
(path) => {
|
|
114
117
|
const to = path || prev;
|
|
115
|
-
|
|
118
|
+
if (typeof to === "number") {
|
|
119
|
+
navigate(location.pathname + location.search, {
|
|
120
|
+
replace: true,
|
|
121
|
+
state: { ...location.state, isSubmitSuccessful: true }
|
|
122
|
+
});
|
|
123
|
+
setTimeout(() => {
|
|
124
|
+
navigate(to);
|
|
125
|
+
}, 0);
|
|
126
|
+
} else {
|
|
127
|
+
navigate(to, { replace: true, state: { isSubmitSuccessful: true } });
|
|
128
|
+
}
|
|
116
129
|
},
|
|
117
|
-
[navigate, prev]
|
|
130
|
+
[navigate, prev, location]
|
|
118
131
|
);
|
|
119
132
|
const value = useMemo2(
|
|
120
133
|
() => ({
|
|
@@ -196,7 +209,7 @@ var Root = ({ prev = "..", children }) => {
|
|
|
196
209
|
const navigate = useNavigate2();
|
|
197
210
|
const [open, setOpen] = useState3(false);
|
|
198
211
|
const [stackedModalOpen, onStackedModalOpen] = useState3(false);
|
|
199
|
-
const to = useStateAwareTo(prev);
|
|
212
|
+
const to = typeof prev === "number" ? prev : useStateAwareTo(prev);
|
|
200
213
|
useEffect(() => {
|
|
201
214
|
setOpen(true);
|
|
202
215
|
return () => {
|
|
@@ -207,7 +220,11 @@ var Root = ({ prev = "..", children }) => {
|
|
|
207
220
|
const handleOpenChange = (open2) => {
|
|
208
221
|
if (!open2) {
|
|
209
222
|
document.body.style.pointerEvents = "auto";
|
|
210
|
-
|
|
223
|
+
if (typeof to === "number") {
|
|
224
|
+
navigate(to);
|
|
225
|
+
} else {
|
|
226
|
+
navigate(to, { replace: true });
|
|
227
|
+
}
|
|
211
228
|
return;
|
|
212
229
|
}
|
|
213
230
|
setOpen(open2);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useCombinedRefs,
|
|
13
13
|
useDataGridCell,
|
|
14
14
|
useDataGridCellError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LZFWCKOF.mjs";
|
|
16
16
|
import {
|
|
17
17
|
currencies
|
|
18
18
|
} from "./chunk-DK4WIVY6.mjs";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-6HTZNHPT.mjs";
|
|
25
25
|
import {
|
|
26
26
|
StackedFocusModal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Form
|
|
30
30
|
} from "./chunk-OBQI23QM.mjs";
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
productTypesQueryKeys,
|
|
3
|
+
useInfiniteProductTypes
|
|
4
|
+
} from "./chunk-UJ2TMPV4.mjs";
|
|
5
|
+
import {
|
|
6
|
+
collectionsQueryKeys,
|
|
7
|
+
useInfiniteCollections
|
|
8
|
+
} from "./chunk-UWY5ZV66.mjs";
|
|
1
9
|
import {
|
|
2
10
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4JQR6QNW.mjs";
|
|
12
|
+
import {
|
|
13
|
+
categoriesQueryKeys,
|
|
14
|
+
useInfiniteCategories
|
|
15
|
+
} from "./chunk-OSHH5GAS.mjs";
|
|
16
|
+
import {
|
|
17
|
+
productsQueryKeys,
|
|
18
|
+
useInfiniteProducts
|
|
19
|
+
} from "./chunk-Z6BFNHEO.mjs";
|
|
20
|
+
import {
|
|
21
|
+
useInfiniteList
|
|
22
|
+
} from "./chunk-HGRIOEAR.mjs";
|
|
4
23
|
import {
|
|
5
24
|
queryClient
|
|
6
25
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -25,7 +44,9 @@ var usePlugins = (options) => {
|
|
|
25
44
|
};
|
|
26
45
|
|
|
27
46
|
// src/hooks/api/product-variants.tsx
|
|
28
|
-
import {
|
|
47
|
+
import {
|
|
48
|
+
useQuery as useQuery2
|
|
49
|
+
} from "@tanstack/react-query";
|
|
29
50
|
var PRODUCT_VARIANT_QUERY_KEY = "product_variant";
|
|
30
51
|
var productVariantQueryKeys = queryKeysFactory(
|
|
31
52
|
PRODUCT_VARIANT_QUERY_KEY
|
|
@@ -38,6 +59,16 @@ var useVariants = (query, options) => {
|
|
|
38
59
|
});
|
|
39
60
|
return { ...data, ...rest };
|
|
40
61
|
};
|
|
62
|
+
var useInfiniteVariants = (query, options) => {
|
|
63
|
+
return useInfiniteList({
|
|
64
|
+
queryKey: (params) => productVariantQueryKeys.list(params),
|
|
65
|
+
queryFn: async (params) => {
|
|
66
|
+
return await sdk.admin.productVariant.list(params);
|
|
67
|
+
},
|
|
68
|
+
query,
|
|
69
|
+
options
|
|
70
|
+
});
|
|
71
|
+
};
|
|
41
72
|
|
|
42
73
|
// src/hooks/api/refund-reasons.tsx
|
|
43
74
|
import {
|
|
@@ -196,6 +227,14 @@ var useProductTags = (query, options) => {
|
|
|
196
227
|
});
|
|
197
228
|
return { ...data, ...rest };
|
|
198
229
|
};
|
|
230
|
+
var useInfiniteProductTags = (query, options) => {
|
|
231
|
+
return useInfiniteList({
|
|
232
|
+
queryKey: (params) => productTagsQueryKeys.list(params),
|
|
233
|
+
queryFn: (params) => sdk.admin.productTag.list(params),
|
|
234
|
+
query,
|
|
235
|
+
options
|
|
236
|
+
});
|
|
237
|
+
};
|
|
199
238
|
var useCreateProductTag = (query, options) => {
|
|
200
239
|
return useMutation3({
|
|
201
240
|
mutationFn: async (data) => sdk.admin.productTag.create(data, query),
|
|
@@ -239,17 +278,204 @@ var useDeleteProductTag = (id, options) => {
|
|
|
239
278
|
});
|
|
240
279
|
};
|
|
241
280
|
|
|
281
|
+
// src/hooks/api/translations.tsx
|
|
282
|
+
import {
|
|
283
|
+
useMutation as useMutation4,
|
|
284
|
+
useQuery as useQuery6
|
|
285
|
+
} from "@tanstack/react-query";
|
|
286
|
+
var TRANSLATIONS_QUERY_KEY = "translations";
|
|
287
|
+
var translationsQueryKeys = queryKeysFactory(TRANSLATIONS_QUERY_KEY);
|
|
288
|
+
var TRANSLATION_SETTINGS_QUERY_KEY = "translation_settings";
|
|
289
|
+
var translationSettingsQueryKeys = queryKeysFactory(
|
|
290
|
+
TRANSLATION_SETTINGS_QUERY_KEY
|
|
291
|
+
);
|
|
292
|
+
var TRANSLATION_STATISTICS_QUERY_KEY = "translation_statistics";
|
|
293
|
+
var translationStatisticsQueryKeys = queryKeysFactory(
|
|
294
|
+
TRANSLATION_STATISTICS_QUERY_KEY
|
|
295
|
+
);
|
|
296
|
+
var useReferenceTranslations = (reference, translatableFields, referenceId, options) => {
|
|
297
|
+
const referenceHookMap = /* @__PURE__ */ new Map([
|
|
298
|
+
[
|
|
299
|
+
"product",
|
|
300
|
+
() => {
|
|
301
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
302
|
+
const { data: data2, ...rest2 } = useInfiniteProducts(
|
|
303
|
+
{ fields, id: referenceId ?? [] },
|
|
304
|
+
options
|
|
305
|
+
);
|
|
306
|
+
const products = data2?.pages.flatMap((page) => page.products) ?? [];
|
|
307
|
+
return {
|
|
308
|
+
...rest2,
|
|
309
|
+
data: {
|
|
310
|
+
translations: products?.flatMap((product) => product.translations ?? []) ?? [],
|
|
311
|
+
references: products ?? [],
|
|
312
|
+
count: data2?.pages[0]?.count ?? 0
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
[
|
|
318
|
+
"product_variant",
|
|
319
|
+
() => {
|
|
320
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
321
|
+
const { data: data2, ...rest2 } = useInfiniteVariants(
|
|
322
|
+
{ id: referenceId ?? [], fields },
|
|
323
|
+
options
|
|
324
|
+
);
|
|
325
|
+
const variants = data2?.pages.flatMap((page) => page.variants) ?? [];
|
|
326
|
+
return {
|
|
327
|
+
...rest2,
|
|
328
|
+
data: {
|
|
329
|
+
translations: variants?.flatMap((variant) => variant.translations ?? []) ?? [],
|
|
330
|
+
references: variants ?? [],
|
|
331
|
+
translatableFields,
|
|
332
|
+
count: data2?.pages[0]?.count ?? 0
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
[
|
|
338
|
+
"product_category",
|
|
339
|
+
() => {
|
|
340
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
341
|
+
const { data: data2, ...rest2 } = useInfiniteCategories(
|
|
342
|
+
{ id: referenceId ?? [], fields },
|
|
343
|
+
options
|
|
344
|
+
);
|
|
345
|
+
const categories = data2?.pages.flatMap((page) => page.product_categories) ?? [];
|
|
346
|
+
return {
|
|
347
|
+
...rest2,
|
|
348
|
+
data: {
|
|
349
|
+
translations: categories?.flatMap((category) => category.translations ?? []) ?? [],
|
|
350
|
+
references: categories ?? [],
|
|
351
|
+
translatableFields,
|
|
352
|
+
count: data2?.pages[0]?.count ?? 0
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
[
|
|
358
|
+
"product_collection",
|
|
359
|
+
() => {
|
|
360
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
361
|
+
const { data: data2, ...rest2 } = useInfiniteCollections(
|
|
362
|
+
{ id: referenceId ?? [], fields },
|
|
363
|
+
options
|
|
364
|
+
);
|
|
365
|
+
const collections = data2?.pages.flatMap((page) => page.collections) ?? [];
|
|
366
|
+
return {
|
|
367
|
+
...rest2,
|
|
368
|
+
data: {
|
|
369
|
+
translations: collections?.flatMap(
|
|
370
|
+
(collection) => collection.translations ?? []
|
|
371
|
+
) ?? [],
|
|
372
|
+
references: collections ?? [],
|
|
373
|
+
translatableFields,
|
|
374
|
+
count: data2?.pages[0]?.count ?? 0
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
"product_type",
|
|
381
|
+
() => {
|
|
382
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
383
|
+
const { data: data2, ...rest2 } = useInfiniteProductTypes(
|
|
384
|
+
{ id: referenceId ?? [], fields },
|
|
385
|
+
options
|
|
386
|
+
);
|
|
387
|
+
const product_types = data2?.pages.flatMap((page) => page.product_types) ?? [];
|
|
388
|
+
return {
|
|
389
|
+
...rest2,
|
|
390
|
+
data: {
|
|
391
|
+
translations: product_types?.flatMap((type) => type.translations ?? []) ?? [],
|
|
392
|
+
references: product_types ?? [],
|
|
393
|
+
count: data2?.pages[0]?.count ?? 0,
|
|
394
|
+
translatableFields
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
"product_tag",
|
|
401
|
+
() => {
|
|
402
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
403
|
+
const { data: data2, ...rest2 } = useInfiniteProductTags(
|
|
404
|
+
{ id: referenceId ?? [], fields },
|
|
405
|
+
options
|
|
406
|
+
);
|
|
407
|
+
const product_tags = data2?.pages.flatMap((page) => page.product_tags) ?? [];
|
|
408
|
+
return {
|
|
409
|
+
...rest2,
|
|
410
|
+
data: {
|
|
411
|
+
translations: product_tags?.flatMap((tag) => tag.translations ?? []) ?? [],
|
|
412
|
+
references: product_tags ?? [],
|
|
413
|
+
translatableFields,
|
|
414
|
+
count: data2?.pages[0]?.count ?? 0
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
// TODO: product option and option values
|
|
420
|
+
]);
|
|
421
|
+
const referenceHook = referenceHookMap.get(reference);
|
|
422
|
+
if (!referenceHook) {
|
|
423
|
+
throw new Error(`No hook found for reference type: ${reference}`);
|
|
424
|
+
}
|
|
425
|
+
const { data, ...rest } = referenceHook();
|
|
426
|
+
return { ...data, ...rest };
|
|
427
|
+
};
|
|
428
|
+
var useBatchTranslations = (reference, options) => {
|
|
429
|
+
const referenceInvalidationKeysMap = /* @__PURE__ */ new Map([
|
|
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({
|
|
438
|
+
mutationFn: (payload) => sdk.admin.translation.batch(payload),
|
|
439
|
+
onSuccess: (data, variables, context) => {
|
|
440
|
+
queryClient.invalidateQueries({
|
|
441
|
+
queryKey: referenceInvalidationKeysMap.get(reference)
|
|
442
|
+
});
|
|
443
|
+
queryClient.invalidateQueries({
|
|
444
|
+
queryKey: translationStatisticsQueryKeys.lists()
|
|
445
|
+
});
|
|
446
|
+
options?.onSuccess?.(data, variables, context);
|
|
447
|
+
},
|
|
448
|
+
...options
|
|
449
|
+
});
|
|
450
|
+
};
|
|
451
|
+
var useTranslationSettings = (query, options) => {
|
|
452
|
+
const { data, ...rest } = useQuery6({
|
|
453
|
+
queryKey: translationSettingsQueryKeys.list(query),
|
|
454
|
+
queryFn: () => sdk.admin.translation.settings(query),
|
|
455
|
+
...options
|
|
456
|
+
});
|
|
457
|
+
return { ...data, ...rest };
|
|
458
|
+
};
|
|
459
|
+
var useTranslationStatistics = (query, options) => {
|
|
460
|
+
const { data, ...rest } = useQuery6({
|
|
461
|
+
queryKey: translationStatisticsQueryKeys.list(query),
|
|
462
|
+
queryFn: () => sdk.admin.translation.statistics(query),
|
|
463
|
+
...options
|
|
464
|
+
});
|
|
465
|
+
return { ...data, ...rest };
|
|
466
|
+
};
|
|
467
|
+
|
|
242
468
|
// src/hooks/api/fulfillment.tsx
|
|
243
|
-
import { useMutation as
|
|
469
|
+
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
244
470
|
var FULFILLMENTS_QUERY_KEY = "fulfillments";
|
|
245
471
|
var fulfillmentsQueryKeys = queryKeysFactory(FULFILLMENTS_QUERY_KEY);
|
|
246
472
|
|
|
247
473
|
// src/hooks/api/locales.tsx
|
|
248
|
-
import { useQuery as
|
|
474
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
249
475
|
var LOCALES_QUERY_KEY = "locales";
|
|
250
476
|
var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
|
|
251
477
|
var useLocales = (query, options) => {
|
|
252
|
-
const { data, ...rest } =
|
|
478
|
+
const { data, ...rest } = useQuery7({
|
|
253
479
|
queryFn: () => sdk.admin.locale.list(query),
|
|
254
480
|
queryKey: localesQueryKeys.list(query),
|
|
255
481
|
...options
|
|
@@ -258,11 +484,11 @@ var useLocales = (query, options) => {
|
|
|
258
484
|
};
|
|
259
485
|
|
|
260
486
|
// src/hooks/api/notification.tsx
|
|
261
|
-
import { useQuery as
|
|
487
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
262
488
|
var NOTIFICATION_QUERY_KEY = "notification";
|
|
263
489
|
var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
|
|
264
490
|
var useNotifications = (query, options) => {
|
|
265
|
-
const { data, ...rest } =
|
|
491
|
+
const { data, ...rest } = useQuery8({
|
|
266
492
|
queryFn: () => sdk.admin.notification.list(query),
|
|
267
493
|
queryKey: notificationQueryKeys.list(query),
|
|
268
494
|
...options
|
|
@@ -271,13 +497,13 @@ var useNotifications = (query, options) => {
|
|
|
271
497
|
};
|
|
272
498
|
|
|
273
499
|
// src/hooks/api/payment-collections.tsx
|
|
274
|
-
import { useMutation as
|
|
500
|
+
import { useMutation as useMutation6 } from "@tanstack/react-query";
|
|
275
501
|
var PAYMENT_COLLECTION_QUERY_KEY = "payment-collection";
|
|
276
502
|
var paymentCollectionQueryKeys = queryKeysFactory(
|
|
277
503
|
PAYMENT_COLLECTION_QUERY_KEY
|
|
278
504
|
);
|
|
279
505
|
var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) => {
|
|
280
|
-
return
|
|
506
|
+
return useMutation6({
|
|
281
507
|
mutationFn: (payload) => sdk.admin.paymentCollection.markAsPaid(paymentCollectionId, payload),
|
|
282
508
|
onSuccess: (data, variables, context) => {
|
|
283
509
|
queryClient.invalidateQueries({
|
|
@@ -297,8 +523,8 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
|
|
|
297
523
|
|
|
298
524
|
// src/hooks/api/payments.tsx
|
|
299
525
|
import {
|
|
300
|
-
useMutation as
|
|
301
|
-
useQuery as
|
|
526
|
+
useMutation as useMutation7,
|
|
527
|
+
useQuery as useQuery9
|
|
302
528
|
} from "@tanstack/react-query";
|
|
303
529
|
var PAYMENT_QUERY_KEY = "payment";
|
|
304
530
|
var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
|
|
@@ -307,7 +533,7 @@ var paymentProvidersQueryKeys = queryKeysFactory(
|
|
|
307
533
|
PAYMENT_PROVIDERS_QUERY_KEY
|
|
308
534
|
);
|
|
309
535
|
var useCapturePayment = (orderId, paymentId, options) => {
|
|
310
|
-
return
|
|
536
|
+
return useMutation7({
|
|
311
537
|
mutationFn: (payload) => sdk.admin.payment.capture(paymentId, payload),
|
|
312
538
|
onSuccess: (data, variables, context) => {
|
|
313
539
|
queryClient.invalidateQueries({
|
|
@@ -322,7 +548,7 @@ var useCapturePayment = (orderId, paymentId, options) => {
|
|
|
322
548
|
});
|
|
323
549
|
};
|
|
324
550
|
var useRefundPayment = (orderId, paymentId, options) => {
|
|
325
|
-
return
|
|
551
|
+
return useMutation7({
|
|
326
552
|
mutationFn: (payload) => sdk.admin.payment.refund(paymentId, payload),
|
|
327
553
|
onSuccess: (data, variables, context) => {
|
|
328
554
|
queryClient.invalidateQueries({
|
|
@@ -364,5 +590,9 @@ export {
|
|
|
364
590
|
useProductTags,
|
|
365
591
|
useCreateProductTag,
|
|
366
592
|
useUpdateProductTag,
|
|
367
|
-
useDeleteProductTag
|
|
593
|
+
useDeleteProductTag,
|
|
594
|
+
useReferenceTranslations,
|
|
595
|
+
useBatchTranslations,
|
|
596
|
+
useTranslationSettings,
|
|
597
|
+
useTranslationStatistics
|
|
368
598
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/hooks/use-infinite-list.tsx
|
|
2
|
+
import {
|
|
3
|
+
useInfiniteQuery
|
|
4
|
+
} from "@tanstack/react-query";
|
|
5
|
+
var useInfiniteList = ({
|
|
6
|
+
queryKey,
|
|
7
|
+
queryFn,
|
|
8
|
+
query,
|
|
9
|
+
options
|
|
10
|
+
}) => {
|
|
11
|
+
const { limit = 50, offset: _, ..._query } = query ?? {};
|
|
12
|
+
const resolvedQueryKey = typeof queryKey === "function" ? queryKey(_query) : queryKey;
|
|
13
|
+
const infiniteQueryKey = resolvedQueryKey[resolvedQueryKey.length - 1] === "__infinite" ? resolvedQueryKey : [...resolvedQueryKey, "__infinite"];
|
|
14
|
+
return useInfiniteQuery({
|
|
15
|
+
// Infinite queries must not share the exact same queryKey as non-infinite queries,
|
|
16
|
+
// since the cached data shape differs (InfiniteData<T> vs T).
|
|
17
|
+
queryKey: infiniteQueryKey,
|
|
18
|
+
queryFn: ({ pageParam = 0 }) => {
|
|
19
|
+
return queryFn({ ..._query, limit, offset: pageParam });
|
|
20
|
+
},
|
|
21
|
+
initialPageParam: 0,
|
|
22
|
+
getNextPageParam: (lastPage) => {
|
|
23
|
+
const moreItemsExist = lastPage.count > lastPage.offset + lastPage.limit;
|
|
24
|
+
return moreItemsExist ? lastPage.offset + lastPage.limit : void 0;
|
|
25
|
+
},
|
|
26
|
+
...options
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
useInfiniteList
|
|
32
|
+
};
|
|
@@ -3,6 +3,7 @@ import { clx } from "@medusajs/ui";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var IconAvatar = ({
|
|
5
5
|
size = "small",
|
|
6
|
+
variant = "rounded",
|
|
6
7
|
children,
|
|
7
8
|
className
|
|
8
9
|
}) => {
|
|
@@ -11,6 +12,8 @@ var IconAvatar = ({
|
|
|
11
12
|
{
|
|
12
13
|
className: clx(
|
|
13
14
|
"shadow-borders-base flex size-7 items-center justify-center",
|
|
15
|
+
variant === "squared" && "rounded-md",
|
|
16
|
+
variant === "rounded" && "rounded-full",
|
|
14
17
|
"[&>div]:bg-ui-bg-field [&>div]:text-ui-fg-subtle [&>div]:flex [&>div]:size-6 [&>div]:items-center [&>div]:justify-center",
|
|
15
18
|
{
|
|
16
19
|
"size-7 rounded-md [&>div]:size-6 [&>div]:rounded-[4px]": size === "small",
|