@medusajs/dashboard 2.12.2-snapshot-20251205131013 → 2.12.2-snapshot-20251207010855
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/{adjust-inventory-WZOCLB5V.mjs → adjust-inventory-SDWITRN3.mjs} +1 -1
- package/dist/{api-key-management-create-W7NL2IYN.mjs → api-key-management-create-FHLY4DD4.mjs} +3 -3
- package/dist/{api-key-management-detail-LDBEO446.mjs → api-key-management-detail-JQBB7UNB.mjs} +9 -9
- package/dist/{api-key-management-edit-TLVLXAVK.mjs → api-key-management-edit-5RQXMVDW.mjs} +3 -3
- package/dist/{api-key-management-list-FTLC3ELT.mjs → api-key-management-list-RGLZMUCB.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-NYY3NZOE.mjs → api-key-management-sales-channels-327HJKDQ.mjs} +3 -3
- package/dist/app.js +96 -62
- package/dist/app.mjs +10 -10
- package/dist/{campaign-detail-T3V6M3XE.mjs → campaign-detail-DLPAADFC.mjs} +9 -9
- package/dist/{categories-metadata-V6FDXGSN.mjs → categories-metadata-IN4T3BQY.mjs} +9 -9
- package/dist/{category-create-ELMCLH4J.mjs → category-create-U277OGU4.mjs} +2 -2
- package/dist/{category-detail-DNWTF4FV.mjs → category-detail-MJYZEZJX.mjs} +12 -12
- package/dist/{category-edit-TYKLEYGE.mjs → category-edit-I2LT3SZW.mjs} +2 -2
- package/dist/{category-list-IJ3DLPYQ.mjs → category-list-AH2EGTI7.mjs} +3 -3
- package/dist/{category-organize-PDLC54E2.mjs → category-organize-PNR7ZHPM.mjs} +2 -2
- package/dist/{category-products-ATK63QHB.mjs → category-products-UH7BGTSC.mjs} +11 -11
- package/dist/{chunk-AF7A24XI.mjs → chunk-34KFHPN6.mjs} +1 -1
- package/dist/{chunk-4MG5LND4.mjs → chunk-3HRJ5XSF.mjs} +1 -1
- package/dist/{chunk-VGXF4DOW.mjs → chunk-4GPZRJUJ.mjs} +13 -14
- package/dist/{chunk-MWBKAP7W.mjs → chunk-4VNR7DND.mjs} +2 -2
- package/dist/{chunk-RLDK4LY5.mjs → chunk-6BP5RSIK.mjs} +1 -1
- package/dist/{chunk-OAW7KLET.mjs → chunk-73EHKWNI.mjs} +2 -2
- package/dist/{chunk-56TDUOXV.mjs → chunk-7AX6R6G6.mjs} +1 -1
- package/dist/{chunk-ETOJCN3Q.mjs → chunk-AH4DORIW.mjs} +1 -1
- package/dist/{chunk-XDLBQGST.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-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-PCFUZKDS.mjs → chunk-R65S6ZZV.mjs} +4 -1
- package/dist/{chunk-UHIPGDJZ.mjs → chunk-XBJCK4CT.mjs} +7 -4
- package/dist/{chunk-IKTS7EHT.mjs → chunk-XHDXZAOR.mjs} +1 -1
- package/dist/{chunk-M3CKVBZC.mjs → chunk-XIVBRONM.mjs} +1 -1
- package/dist/{chunk-4JVOTR4M.mjs → chunk-XWXHIF3R.mjs} +146 -145
- package/dist/{collection-add-products-7WSD7YU4.mjs → collection-add-products-F7GTK2YV.mjs} +11 -11
- package/dist/{collection-create-I2A2X4VK.mjs → collection-create-WMTSRDDL.mjs} +2 -2
- package/dist/{collection-detail-NVE55BPK.mjs → collection-detail-EZ6UCFMP.mjs} +11 -11
- package/dist/{collection-edit-RGH7NCUE.mjs → collection-edit-PSVEWWPH.mjs} +2 -2
- package/dist/{collection-list-SXHRKTIU.mjs → collection-list-YUECGEOO.mjs} +12 -12
- package/dist/{collection-metadata-ZREV7BND.mjs → collection-metadata-XYMR7UIM.mjs} +9 -9
- package/dist/{customer-detail-MT553L3D.mjs → customer-detail-7B35STSY.mjs} +10 -10
- package/dist/{customer-group-detail-LSZA4ARM.mjs → customer-group-detail-TY4AFNQE.mjs} +9 -9
- package/dist/{customer-group-list-6JTEUJAC.mjs → customer-group-list-CELWB4WM.mjs} +9 -9
- package/dist/{customers-add-customer-group-MHJ34FDF.mjs → customers-add-customer-group-524NN3AG.mjs} +9 -9
- package/dist/{edit-inventory-item-LMDNUI6M.mjs → edit-inventory-item-O3SDWW2W.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-DPJIHBP3.mjs → edit-inventory-item-attributes-3QLOZMGC.mjs} +1 -1
- package/dist/{edit-reservation-IOOZBJ2T.mjs → edit-reservation-ISSU5XAY.mjs} +2 -2
- package/dist/{edit-rules-CEE2IKS6.mjs → edit-rules-K2UXPE62.mjs} +9 -9
- package/dist/{inventory-create-H62EOWR6.mjs → inventory-create-SYD3QXIB.mjs} +9 -9
- package/dist/{inventory-detail-ALOIH3H7.mjs → inventory-detail-IWCB7FND.mjs} +9 -9
- package/dist/{inventory-list-RQBI7UJX.mjs → inventory-list-BQPHK3FV.mjs} +1 -1
- package/dist/{inventory-metadata-ICOCEY75.mjs → inventory-metadata-YSDEZ4B7.mjs} +9 -9
- package/dist/{inventory-stock-LDEZTKU4.mjs → inventory-stock-JLJEWPUM.mjs} +9 -9
- package/dist/{location-detail-UNXAQQSZ.mjs → location-detail-LNQUKDLQ.mjs} +9 -9
- package/dist/{location-fulfillment-providers-XVFFAB6I.mjs → location-fulfillment-providers-566Z6CCG.mjs} +11 -11
- package/dist/{location-sales-channels-UVYT52SH.mjs → location-sales-channels-MXFZNLKR.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-create-THNTZX5P.mjs → location-service-zone-shipping-option-create-VENETBCK.mjs} +9 -9
- package/dist/{login-EMANCYJH.mjs → login-R5C7HZ2A.mjs} +9 -9
- package/dist/{manage-locations-2VDQ3ILT.mjs → manage-locations-XEXCUBR7.mjs} +1 -1
- package/dist/{order-allocate-items-FCJTB2IB.mjs → order-allocate-items-W7HUKJ6F.mjs} +3 -3
- package/dist/{order-create-claim-FRX7LT3X.mjs → order-create-claim-M5NNIQWR.mjs} +15 -15
- package/dist/{order-create-edit-CVPRRPOA.mjs → order-create-edit-A2TMNFRS.mjs} +10 -10
- package/dist/{order-create-exchange-2PL7GZUU.mjs → order-create-exchange-CIB7URQD.mjs} +15 -15
- package/dist/{order-create-fulfillment-SY6UM3NJ.mjs → order-create-fulfillment-YC4GFUTQ.mjs} +9 -9
- package/dist/{order-create-refund-AGKPMCF6.mjs → order-create-refund-EE7SWYLL.mjs} +9 -9
- package/dist/{order-create-return-WT6ECLMA.mjs → order-create-return-UWF4YKOP.mjs} +8 -8
- package/dist/{order-create-shipment-J34CYL32.mjs → order-create-shipment-DNVN7NYA.mjs} +9 -9
- package/dist/{order-detail-N5EUNPTC.mjs → order-detail-FZ7PM4K3.mjs} +13 -13
- package/dist/{order-edit-billing-address-JH3XNOCQ.mjs → order-edit-billing-address-XH37NDI5.mjs} +9 -9
- package/dist/{order-edit-email-KV2IHQRT.mjs → order-edit-email-NZE32DBD.mjs} +9 -9
- package/dist/{order-edit-shipping-address-WMNNU53B.mjs → order-edit-shipping-address-KMLTH4SM.mjs} +9 -9
- package/dist/{order-list-LGUDY3RD.mjs → order-list-NT5PQ2WS.mjs} +4 -4
- package/dist/{order-metadata-F4LZ73LR.mjs → order-metadata-VWNNC7RO.mjs} +9 -9
- package/dist/{order-receive-return-LSMD7POH.mjs → order-receive-return-O5P477EZ.mjs} +10 -10
- package/dist/{order-request-transfer-A3EBBZ5N.mjs → order-request-transfer-XOAINCAS.mjs} +9 -9
- package/dist/{price-list-configuration-2G3WFC3J.mjs → price-list-configuration-N2WC2QQP.mjs} +2 -2
- package/dist/{price-list-create-RLT7G7KF.mjs → price-list-create-NOTXIPOJ.mjs} +13 -12
- package/dist/{price-list-detail-TKRELOK2.mjs → price-list-detail-BD2QQKAR.mjs} +12 -12
- package/dist/{price-list-edit-6URYI6AK.mjs → price-list-edit-UB2Z2726.mjs} +2 -2
- package/dist/{price-list-list-FLINOQCK.mjs → price-list-list-D4UPKCNL.mjs} +3 -3
- package/dist/{price-list-prices-add-UPUY72HG.mjs → price-list-prices-add-25FOFNBS.mjs} +13 -12
- package/dist/{price-list-prices-edit-ZHAQDPWX.mjs → price-list-prices-edit-CXXOO22Q.mjs} +4 -3
- package/dist/{product-attributes-S7EMXFQ5.mjs → product-attributes-N7MYERZ6.mjs} +12 -14
- package/dist/{product-create-SJHV347G.mjs → product-create-JUSOUHH7.mjs} +11 -11
- package/dist/{product-create-option-GAEPSU6J.mjs → product-create-option-AQRYQJSJ.mjs} +5 -2
- package/dist/{product-create-variant-7C5PKKX7.mjs → product-create-variant-YBJ2ZVUG.mjs} +13 -10
- package/dist/{product-detail-OMNGEFIL.mjs → product-detail-POY2NLLI.mjs} +19 -13
- package/dist/{product-edit-4ELSOUAF.mjs → product-edit-UU64OGKJ.mjs} +12 -14
- package/dist/{product-edit-option-VIU3ZICO.mjs → product-edit-option-BL5XHROM.mjs} +5 -2
- package/dist/{product-export-GFLEIKIM.mjs → product-export-H4ZOJWIB.mjs} +12 -12
- package/dist/{product-image-variants-edit-TC3M4PGX.mjs → product-image-variants-edit-3YEXAIKS.mjs} +13 -10
- package/dist/{product-import-2Z5I7RXI.mjs → product-import-PPULHBTB.mjs} +9 -9
- package/dist/{product-list-PLOBORGE.mjs → product-list-NPLVU37E.mjs} +11 -11
- package/dist/{product-media-WCLPCVR3.mjs → product-media-L4COURP2.mjs} +5 -2
- package/dist/{product-metadata-GQU7EVZ3.mjs → product-metadata-SS7DIDYB.mjs} +13 -10
- package/dist/{product-organization-ZWDDZBZ7.mjs → product-organization-HZV5SKN5.mjs} +13 -15
- package/dist/{product-prices-MKMKBH6P.mjs → product-prices-UZB2T6UD.mjs} +5 -2
- package/dist/{product-sales-channels-5YIO22UW.mjs → product-sales-channels-BKKIG6BE.mjs} +6 -3
- package/dist/{product-shipping-profile-SOHI2VQH.mjs → product-shipping-profile-MWE5S5TZ.mjs} +3 -49
- package/dist/{product-stock-6QHBTDUQ.mjs → product-stock-3A22RDIR.mjs} +9 -9
- package/dist/{product-tag-create-B6EOKDJT.mjs → product-tag-create-XIWCLMRJ.mjs} +9 -9
- package/dist/{product-tag-detail-46QR5JGA.mjs → product-tag-detail-NVV6QQMN.mjs} +13 -13
- package/dist/{product-tag-edit-RPLWDG5A.mjs → product-tag-edit-H7YA4HEV.mjs} +9 -9
- package/dist/{product-tag-list-DEJCK2CE.mjs → product-tag-list-LGVKUJLL.mjs} +13 -13
- package/dist/{product-tag-metadata-FKKOT5CD.mjs → product-tag-metadata-JBYEI3M4.mjs} +9 -9
- package/dist/{product-type-detail-DDIBFR7O.mjs → product-type-detail-S6YG37AR.mjs} +11 -11
- package/dist/{product-type-metadata-EXCYTTQG.mjs → product-type-metadata-LRTMJT2P.mjs} +9 -9
- package/dist/{product-variant-detail-GCESZH4H.mjs → product-variant-detail-GIHXE5YG.mjs} +9 -9
- package/dist/{product-variant-edit-JHOQJN6U.mjs → product-variant-edit-36MBVNPO.mjs} +11 -10
- package/dist/{product-variant-manage-inventory-items-B7TUBSD5.mjs → product-variant-manage-inventory-items-EYKESIRF.mjs} +1 -1
- package/dist/{product-variant-media-6WWLRINP.mjs → product-variant-media-A3XHS3IZ.mjs} +1 -1
- package/dist/{product-variant-metadata-NEZIGTEP.mjs → product-variant-metadata-LH7YGFW4.mjs} +9 -9
- package/dist/{promotion-create-CUAQY2NH.mjs → promotion-create-XOB4S6H5.mjs} +9 -9
- package/dist/{promotion-detail-2S7FWTXF.mjs → promotion-detail-YR4MNPNS.mjs} +9 -9
- package/dist/{refund-reason-create-4YAO4325.mjs → refund-reason-create-LSAPI6XB.mjs} +9 -9
- package/dist/{refund-reason-edit-5J2VIRIL.mjs → refund-reason-edit-R4RV6BFG.mjs} +9 -9
- package/dist/{refund-reason-list-HEWOLF2L.mjs → refund-reason-list-MPTKOWX7.mjs} +10 -10
- package/dist/{region-metadata-C7DIBM35.mjs → region-metadata-4IMJHPZO.mjs} +9 -9
- package/dist/{reservation-create-BW4CDTWR.mjs → reservation-create-UAUWU3UN.mjs} +2 -2
- package/dist/{reservation-detail-GFNWLSI2.mjs → reservation-detail-HWKSPGBU.mjs} +9 -9
- package/dist/{reservation-list-RGL67CIU.mjs → reservation-list-SOJRN5RI.mjs} +2 -2
- package/dist/{reservation-metadata-OI2G4BDW.mjs → reservation-metadata-IIX7FU74.mjs} +9 -9
- package/dist/{return-reason-list-SGCFBGSL.mjs → return-reason-list-IFFIDA5O.mjs} +1 -1
- package/dist/{sales-channel-add-products-63NGB37Z.mjs → sales-channel-add-products-VH7V4XWO.mjs} +11 -11
- package/dist/{sales-channel-create-TOBEDYFD.mjs → sales-channel-create-YAORCXP3.mjs} +2 -2
- package/dist/{sales-channel-detail-LJPQAJDT.mjs → sales-channel-detail-VMRKBYCG.mjs} +11 -11
- package/dist/{sales-channel-edit-XUTE5GB5.mjs → sales-channel-edit-6UDMBSO3.mjs} +2 -2
- package/dist/{sales-channel-list-TBAN7UT6.mjs → sales-channel-list-U7IVFVYC.mjs} +9 -9
- package/dist/{sales-channel-metadata-SE4TGSDB.mjs → sales-channel-metadata-5EO4EB6E.mjs} +9 -9
- package/dist/{shipping-option-type-create-MB4ENYKV.mjs → shipping-option-type-create-DJEHSOSG.mjs} +9 -9
- package/dist/{shipping-option-type-detail-IX4JGSTK.mjs → shipping-option-type-detail-GWULT3WO.mjs} +10 -10
- package/dist/{shipping-option-type-edit-B5KU5LER.mjs → shipping-option-type-edit-FSXPDBLI.mjs} +9 -9
- package/dist/{shipping-option-type-list-TVR5OE2C.mjs → shipping-option-type-list-DAKNQ3N6.mjs} +10 -10
- package/dist/{shipping-profile-metadata-Z35SYLBS.mjs → shipping-profile-metadata-37GNDVFQ.mjs} +9 -9
- package/dist/{store-detail-VUJSSOKZ.mjs → store-detail-TTHDKQYD.mjs} +9 -9
- package/dist/{store-metadata-TYFTDOEK.mjs → store-metadata-KLQUPUQ4.mjs} +9 -9
- package/dist/{tax-region-create-ZTCTKE4C.mjs → tax-region-create-FIGRJOC5.mjs} +9 -9
- package/dist/{tax-region-detail-LPD4CB5X.mjs → tax-region-detail-AXT4TMZB.mjs} +15 -15
- package/dist/{tax-region-edit-SFJGFTAV.mjs → tax-region-edit-UOGPNA25.mjs} +9 -9
- package/dist/{tax-region-province-detail-P66NXHP7.mjs → tax-region-province-detail-4YCWNZPW.mjs} +15 -15
- package/dist/{tax-region-tax-override-create-SFQNRTGF.mjs → tax-region-tax-override-create-FHUXLTPK.mjs} +13 -13
- package/dist/{tax-region-tax-override-edit-PBZ6IAXQ.mjs → tax-region-tax-override-edit-GQYS6HCW.mjs} +14 -14
- package/dist/{user-detail-N6PT3KRP.mjs → user-detail-KEDJ7N3Q.mjs} +1 -1
- package/dist/{user-metadata-D5HNZWZY.mjs → user-metadata-RU3Z3BLD.mjs} +9 -9
- package/dist/{workflow-execution-detail-GSUDCTN3.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/hooks/api/products.tsx +5 -1
- package/src/hooks/table/query/use-product-table-query.tsx +2 -1
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +4 -11
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +4 -11
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +4 -11
- 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/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-5YNNQ6E6.mjs +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.12.2-snapshot-
|
|
3
|
+
"version": "2.12.2-snapshot-20251207010855",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "../../../node_modules/.bin/vite",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
47
|
"@hookform/error-message": "^2.0.1",
|
|
48
48
|
"@hookform/resolvers": "3.4.2",
|
|
49
|
-
"@medusajs/admin-shared": "2.12.2-snapshot-
|
|
50
|
-
"@medusajs/icons": "2.12.2-snapshot-
|
|
51
|
-
"@medusajs/js-sdk": "2.12.2-snapshot-
|
|
52
|
-
"@medusajs/ui": "4.0.30-snapshot-
|
|
49
|
+
"@medusajs/admin-shared": "2.12.2-snapshot-20251207010855",
|
|
50
|
+
"@medusajs/icons": "2.12.2-snapshot-20251207010855",
|
|
51
|
+
"@medusajs/js-sdk": "2.12.2-snapshot-20251207010855",
|
|
52
|
+
"@medusajs/ui": "4.0.30-snapshot-20251207010855",
|
|
53
53
|
"@radix-ui/react-dialog": "1.1.4",
|
|
54
54
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
55
55
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"zod": "3.25.76"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@medusajs/admin-shared": "2.12.2-snapshot-
|
|
84
|
-
"@medusajs/admin-vite-plugin": "2.12.2-snapshot-
|
|
85
|
-
"@medusajs/types": "2.12.2-snapshot-
|
|
86
|
-
"@medusajs/ui-preset": "2.12.2-snapshot-
|
|
83
|
+
"@medusajs/admin-shared": "2.12.2-snapshot-20251207010855",
|
|
84
|
+
"@medusajs/admin-vite-plugin": "2.12.2-snapshot-20251207010855",
|
|
85
|
+
"@medusajs/types": "2.12.2-snapshot-20251207010855",
|
|
86
|
+
"@medusajs/ui-preset": "2.12.2-snapshot-20251207010855"
|
|
87
87
|
},
|
|
88
88
|
"packageManager": "yarn@3.2.1"
|
|
89
89
|
}
|
|
@@ -117,7 +117,9 @@ const useDynamicSearchResults = (
|
|
|
117
117
|
{
|
|
118
118
|
q: debouncedSearch,
|
|
119
119
|
limit,
|
|
120
|
-
|
|
120
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
121
|
+
fields:
|
|
122
|
+
"id,title,thumbnail,-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
121
123
|
},
|
|
122
124
|
{
|
|
123
125
|
enabled: isAreaEnabled(currentArea, "product"),
|
|
@@ -340,7 +340,11 @@ export const useUpdateProduct = (
|
|
|
340
340
|
>
|
|
341
341
|
) => {
|
|
342
342
|
return useMutation({
|
|
343
|
-
mutationFn: (payload) =>
|
|
343
|
+
mutationFn: (payload) =>
|
|
344
|
+
sdk.admin.product.update(id, payload, {
|
|
345
|
+
fields:
|
|
346
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
347
|
+
}),
|
|
344
348
|
onSuccess: async (data, variables, context) => {
|
|
345
349
|
await queryClient.invalidateQueries({
|
|
346
350
|
queryKey: productsQueryKeys.lists(),
|
|
@@ -7,7 +7,8 @@ type UseProductTableQueryProps = {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const DEFAULT_FIELDS =
|
|
10
|
-
|
|
10
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
11
|
+
"id,title,handle,status,*collection,*sales_channels,variants.id,thumbnail,-type,-options,-tags,-images,-variants"
|
|
11
12
|
|
|
12
13
|
export const useProductTableQuery = ({
|
|
13
14
|
prefix,
|
package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx
CHANGED
|
@@ -568,16 +568,6 @@ export const ClaimCreateForm = ({
|
|
|
568
568
|
}
|
|
569
569
|
}, [])
|
|
570
570
|
|
|
571
|
-
/**
|
|
572
|
-
* For estimated difference show pending difference and subtract the total of inbound items (assume all items will be returned correctly)
|
|
573
|
-
* We don't include inbound total in the pending difference because it will be considered returned when the receive flow is completed
|
|
574
|
-
*/
|
|
575
|
-
const estimatedDifference =
|
|
576
|
-
preview.summary.pending_difference -
|
|
577
|
-
inboundPreviewItems.reduce((acc, item) => {
|
|
578
|
-
return acc + item.total
|
|
579
|
-
}, 0)
|
|
580
|
-
|
|
581
571
|
const inboundShippingTotal = useMemo(() => {
|
|
582
572
|
const method = preview.shipping_methods.find(
|
|
583
573
|
(sm) =>
|
|
@@ -1020,7 +1010,10 @@ export const ClaimCreateForm = ({
|
|
|
1020
1010
|
{t("orders.claims.refundAmount")}
|
|
1021
1011
|
</span>
|
|
1022
1012
|
<span className="txt-small font-medium">
|
|
1023
|
-
{getStylizedAmount(
|
|
1013
|
+
{getStylizedAmount(
|
|
1014
|
+
preview.summary.pending_difference,
|
|
1015
|
+
order.currency_code
|
|
1016
|
+
)}
|
|
1024
1017
|
</span>
|
|
1025
1018
|
</div>
|
|
1026
1019
|
</div>
|
|
@@ -272,16 +272,6 @@ export const ExchangeCreateForm = ({
|
|
|
272
272
|
}
|
|
273
273
|
}, [])
|
|
274
274
|
|
|
275
|
-
/**
|
|
276
|
-
* For estimated difference show pending difference and subtract the total of inbound items (assume all items will be returned correctly)
|
|
277
|
-
* We don't include inbound total in the pending difference because it will be considered returned when the receive flow is completed
|
|
278
|
-
*/
|
|
279
|
-
const estimatedDifference =
|
|
280
|
-
preview.summary.pending_difference -
|
|
281
|
-
inboundPreviewItems.reduce((acc, item) => {
|
|
282
|
-
return acc + item.total
|
|
283
|
-
}, 0)
|
|
284
|
-
|
|
285
275
|
const inboundShippingTotal = useMemo(() => {
|
|
286
276
|
const method = preview.shipping_methods.find(
|
|
287
277
|
(sm) =>
|
|
@@ -526,7 +516,10 @@ export const ExchangeCreateForm = ({
|
|
|
526
516
|
{t("orders.exchanges.refundAmount")}
|
|
527
517
|
</span>
|
|
528
518
|
<span className="txt-small font-medium">
|
|
529
|
-
{getStylizedAmount(
|
|
519
|
+
{getStylizedAmount(
|
|
520
|
+
preview.summary.pending_difference,
|
|
521
|
+
order.currency_code
|
|
522
|
+
)}
|
|
530
523
|
</span>
|
|
531
524
|
</div>
|
|
532
525
|
</div>
|
package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx
CHANGED
|
@@ -402,16 +402,6 @@ export const ReturnCreateForm = ({
|
|
|
402
402
|
return method?.total || 0
|
|
403
403
|
}, [preview.shipping_methods])
|
|
404
404
|
|
|
405
|
-
/**
|
|
406
|
-
* For estimated difference show pending difference and subtract the total of inbound items (assume all items will be returned correctly)
|
|
407
|
-
* We don't include inbound total in the pending difference because it will be considered returned when the receive flow is completed
|
|
408
|
-
*/
|
|
409
|
-
const estimatedDifference =
|
|
410
|
-
preview.summary.pending_difference -
|
|
411
|
-
previewItems.reduce((acc, item) => {
|
|
412
|
-
return acc + item.total
|
|
413
|
-
}, 0)
|
|
414
|
-
|
|
415
405
|
return (
|
|
416
406
|
<RouteFocusModal.Form
|
|
417
407
|
form={form}
|
|
@@ -717,7 +707,10 @@ export const ReturnCreateForm = ({
|
|
|
717
707
|
{t("orders.returns.estDifference")}
|
|
718
708
|
</span>
|
|
719
709
|
<span className="txt-small font-medium">
|
|
720
|
-
{getStylizedAmount(
|
|
710
|
+
{getStylizedAmount(
|
|
711
|
+
preview.summary.pending_difference,
|
|
712
|
+
order.currency_code
|
|
713
|
+
)}
|
|
721
714
|
</span>
|
|
722
715
|
</div>
|
|
723
716
|
</div>
|
|
@@ -35,7 +35,9 @@ export const PriceListPricesForm = ({
|
|
|
35
35
|
const { products, isLoading, isError, error } = useProducts({
|
|
36
36
|
id: ids.map((id) => id.id),
|
|
37
37
|
limit: ids.length,
|
|
38
|
-
|
|
38
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
39
|
+
fields:
|
|
40
|
+
"title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
|
|
39
41
|
})
|
|
40
42
|
|
|
41
43
|
const { setCloseOnEscape } = useRouteModal()
|
|
@@ -36,7 +36,9 @@ export const PriceListPricesAddPricesForm = ({
|
|
|
36
36
|
const { products, isLoading, isError, error } = useProducts({
|
|
37
37
|
id: ids.map((id) => id.id),
|
|
38
38
|
limit: ids.length,
|
|
39
|
-
|
|
39
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
40
|
+
fields:
|
|
41
|
+
"title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
|
|
40
42
|
})
|
|
41
43
|
|
|
42
44
|
const { setValue } = form
|
|
@@ -22,7 +22,9 @@ export const PriceListPricesEdit = () => {
|
|
|
22
22
|
id: productIds,
|
|
23
23
|
limit: productIds?.length || 9999, // Temporary until we support lazy loading in the DataGrid
|
|
24
24
|
price_list_id: [id!],
|
|
25
|
-
|
|
25
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
26
|
+
fields:
|
|
27
|
+
"title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
|
|
26
28
|
})
|
|
27
29
|
|
|
28
30
|
const { isReady, regions, currencies, pricePreferences } =
|
|
@@ -33,7 +33,8 @@ export const ProductVariantEdit = () => {
|
|
|
33
33
|
} = useProduct(
|
|
34
34
|
variant?.product_id!,
|
|
35
35
|
{
|
|
36
|
-
|
|
36
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
37
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
enabled: !!variant?.product_id,
|
|
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
|
|
|
4
4
|
|
|
5
5
|
import { RouteDrawer } from "../../../components/modals"
|
|
6
6
|
import { useProduct } from "../../../hooks/api/products"
|
|
7
|
-
import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
|
|
8
7
|
import { ProductAttributesForm } from "./components/product-attributes-form"
|
|
9
8
|
|
|
10
9
|
export const ProductAttributes = () => {
|
|
@@ -12,7 +11,9 @@ export const ProductAttributes = () => {
|
|
|
12
11
|
const { t } = useTranslation()
|
|
13
12
|
|
|
14
13
|
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
15
|
-
|
|
14
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
15
|
+
fields:
|
|
16
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
if (isError) {
|
|
@@ -9,7 +9,11 @@ export const ProductCreateOption = () => {
|
|
|
9
9
|
const { id } = useParams()
|
|
10
10
|
const { t } = useTranslation()
|
|
11
11
|
|
|
12
|
-
const { product, isLoading, isError, error } = useProduct(id
|
|
12
|
+
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
13
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
14
|
+
fields:
|
|
15
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
16
|
+
})
|
|
13
17
|
|
|
14
18
|
if (isError) {
|
|
15
19
|
throw error
|
|
@@ -6,7 +6,10 @@ import { CreateProductVariantForm } from "./components/create-product-variant-fo
|
|
|
6
6
|
export const ProductCreateVariant = () => {
|
|
7
7
|
const { id } = useParams()
|
|
8
8
|
|
|
9
|
-
const { product, isLoading, isError, error } = useProduct(id
|
|
9
|
+
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
10
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
11
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
|
|
12
|
+
})
|
|
10
13
|
|
|
11
14
|
if (isError) {
|
|
12
15
|
throw error
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HttpTypes } from "@medusajs/types"
|
|
2
2
|
import { UIMatch } from "react-router-dom"
|
|
3
3
|
import { useProduct } from "../../../hooks/api"
|
|
4
|
-
import { PRODUCT_DETAIL_FIELDS } from "./constants"
|
|
5
4
|
|
|
6
5
|
type ProductDetailBreadcrumbProps = UIMatch<HttpTypes.AdminProductResponse>
|
|
7
6
|
|
|
@@ -13,7 +12,9 @@ export const ProductDetailBreadcrumb = (
|
|
|
13
12
|
const { product } = useProduct(
|
|
14
13
|
id!,
|
|
15
14
|
{
|
|
16
|
-
|
|
15
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
16
|
+
fields:
|
|
17
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
initialData: props.data,
|
|
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
|
|
|
4
4
|
|
|
5
5
|
import { RouteDrawer } from "../../../components/modals"
|
|
6
6
|
import { useProduct } from "../../../hooks/api/products"
|
|
7
|
-
import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
|
|
8
7
|
import { EditProductForm } from "./components/edit-product-form"
|
|
9
8
|
|
|
10
9
|
export const ProductEdit = () => {
|
|
@@ -12,7 +11,9 @@ export const ProductEdit = () => {
|
|
|
12
11
|
const { t } = useTranslation()
|
|
13
12
|
|
|
14
13
|
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
15
|
-
|
|
14
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
15
|
+
fields:
|
|
16
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
if (isError) {
|
|
@@ -9,7 +9,10 @@ export const ProductEditOption = () => {
|
|
|
9
9
|
const { id, option_id } = useParams()
|
|
10
10
|
const { t } = useTranslation()
|
|
11
11
|
|
|
12
|
-
const { product, isPending, isFetching, isError, error } = useProduct(id
|
|
12
|
+
const { product, isPending, isFetching, isError, error } = useProduct(id!, {
|
|
13
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
14
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
|
|
15
|
+
})
|
|
13
16
|
|
|
14
17
|
const option = product?.options.find((o) => o.id === option_id)
|
|
15
18
|
|
|
@@ -21,7 +21,11 @@ export const ProductImageVariantsEdit = () => {
|
|
|
21
21
|
|
|
22
22
|
const { product, isPending } = useProduct(
|
|
23
23
|
product_id!,
|
|
24
|
-
{
|
|
24
|
+
{
|
|
25
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
26
|
+
fields:
|
|
27
|
+
"images.id,images.url,images.variants.id,-type,-collection,-options,-tags,-variants,-sales_channels",
|
|
28
|
+
},
|
|
25
29
|
{
|
|
26
30
|
enabled: !!product_id && !!image_id,
|
|
27
31
|
}
|
|
@@ -8,7 +8,10 @@ export const ProductMedia = () => {
|
|
|
8
8
|
const { t } = useTranslation()
|
|
9
9
|
const { id } = useParams()
|
|
10
10
|
|
|
11
|
-
const { product, isLoading, isError, error } = useProduct(id
|
|
11
|
+
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
12
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
13
|
+
fields: "-type,-collection,-options,-tags,-variants,-sales_channels",
|
|
14
|
+
})
|
|
12
15
|
|
|
13
16
|
const ready = !isLoading && product
|
|
14
17
|
|
|
@@ -5,7 +5,11 @@ import { useProduct, useUpdateProduct } from "../../../hooks/api"
|
|
|
5
5
|
export const ProductMetadata = () => {
|
|
6
6
|
const { id } = useParams()
|
|
7
7
|
|
|
8
|
-
const { product, isPending, isError, error } = useProduct(id
|
|
8
|
+
const { product, isPending, isError, error } = useProduct(id!, {
|
|
9
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
10
|
+
fields:
|
|
11
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
12
|
+
})
|
|
9
13
|
|
|
10
14
|
const { mutateAsync, isPending: isMutating } = useUpdateProduct(product?.id!)
|
|
11
15
|
|
|
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
|
|
|
4
4
|
|
|
5
5
|
import { RouteDrawer } from "../../../components/modals"
|
|
6
6
|
import { useProduct } from "../../../hooks/api/products"
|
|
7
|
-
import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
|
|
8
7
|
import { ProductOrganizationForm } from "./components/product-organization-form"
|
|
9
8
|
|
|
10
9
|
export const ProductOrganization = () => {
|
|
@@ -12,7 +11,8 @@ export const ProductOrganization = () => {
|
|
|
12
11
|
const { t } = useTranslation()
|
|
13
12
|
|
|
14
13
|
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
15
|
-
|
|
14
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
15
|
+
fields: "*categories,-options,-images,-variants,-sales_channels",
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
if (isError) {
|
|
@@ -7,7 +7,10 @@ import { PricingEdit } from "./pricing-edit"
|
|
|
7
7
|
export const ProductPrices = () => {
|
|
8
8
|
const { id, variant_id } = useParams()
|
|
9
9
|
|
|
10
|
-
const { product, isLoading, isError, error } = useProduct(id
|
|
10
|
+
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
11
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
12
|
+
fields: "-type,-collection,-options,-tags,-images,-sales_channels",
|
|
13
|
+
})
|
|
11
14
|
|
|
12
15
|
if (isError) {
|
|
13
16
|
throw error
|
|
@@ -6,7 +6,10 @@ import { EditSalesChannelsForm } from "./components/edit-sales-channels-form"
|
|
|
6
6
|
|
|
7
7
|
export const ProductSalesChannels = () => {
|
|
8
8
|
const { id } = useParams()
|
|
9
|
-
const { product, isLoading, isError, error } = useProduct(id
|
|
9
|
+
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
10
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
11
|
+
fields: "-type,-collection,-options,-tags,-images,-variants",
|
|
12
|
+
})
|
|
10
13
|
|
|
11
14
|
if (isError) {
|
|
12
15
|
throw error
|
|
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
|
|
|
4
4
|
|
|
5
5
|
import { RouteDrawer } from "../../../components/modals"
|
|
6
6
|
import { useProduct } from "../../../hooks/api/products"
|
|
7
|
-
import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
|
|
8
7
|
import { ProductShippingProfileForm } from "./components/product-organization-form"
|
|
9
8
|
|
|
10
9
|
export const ProductShippingProfile = () => {
|
|
@@ -12,7 +11,9 @@ export const ProductShippingProfile = () => {
|
|
|
12
11
|
const { t } = useTranslation()
|
|
13
12
|
|
|
14
13
|
const { product, isLoading, isError, error } = useProduct(id!, {
|
|
15
|
-
|
|
14
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
15
|
+
fields:
|
|
16
|
+
"*shipping_profile,-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
if (isError) {
|
|
@@ -17,7 +17,11 @@ export const TargetItem = ({
|
|
|
17
17
|
}: TargetItemProps) => {
|
|
18
18
|
const { product } = useProduct(
|
|
19
19
|
value,
|
|
20
|
-
{
|
|
20
|
+
{
|
|
21
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
22
|
+
fields:
|
|
23
|
+
"id,title,-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
24
|
+
},
|
|
21
25
|
{ enabled: !label }
|
|
22
26
|
)
|
|
23
27
|
|
|
@@ -39,18 +39,15 @@ export const TaxOverrideCard = ({ taxRate }: TaxOverrideCardProps) => {
|
|
|
39
39
|
return null
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
const groupedRules = taxRate.rules.reduce(
|
|
43
|
-
(acc
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
42
|
+
const groupedRules = taxRate.rules.reduce((acc, rule) => {
|
|
43
|
+
if (!acc[rule.reference]) {
|
|
44
|
+
acc[rule.reference] = []
|
|
45
|
+
}
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
acc[rule.reference].push(rule.reference_id)
|
|
49
48
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{} as Record<string, string[]>
|
|
53
|
-
)
|
|
49
|
+
return acc
|
|
50
|
+
}, {} as Record<string, string[]>)
|
|
54
51
|
|
|
55
52
|
const validKeys = Object.values(TaxRateRuleReferenceType)
|
|
56
53
|
const numberOfTargets = Object.keys(groupedRules).map((key) =>
|
|
@@ -282,6 +279,9 @@ const useReferenceValues = (
|
|
|
282
279
|
{
|
|
283
280
|
id: ids.slice(0, DISPLAY_OVERRIDE_ITEMS_LIMIT),
|
|
284
281
|
limit: DISPLAY_OVERRIDE_ITEMS_LIMIT,
|
|
282
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
283
|
+
fields:
|
|
284
|
+
"-type,-collection,-options,-tags,-images,-variants,-sales_channels",
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
enabled: !!ids.length && type === TaxRateRuleReferenceType.PRODUCT,
|
package/dist/chunk-5YNNQ6E6.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getLinkedFields
|
|
3
|
-
} from "./chunk-4JVOTR4M.mjs";
|
|
4
|
-
|
|
5
|
-
// src/routes/products/product-detail/constants.ts
|
|
6
|
-
var PRODUCT_DETAIL_FIELDS = getLinkedFields(
|
|
7
|
-
"product",
|
|
8
|
-
"*categories,*shipping_profile,-variants"
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
PRODUCT_DETAIL_FIELDS
|
|
13
|
-
};
|