@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/dist/{api-key-management-create-W7NL2IYN.mjs → api-key-management-create-FHLY4DD4.mjs}
RENAMED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
} from "./chunk-OBQI23QM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useCreateApiKey
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XIVBRONM.mjs";
|
|
18
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
19
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
20
20
|
import "./chunk-FXYH54JP.mjs";
|
|
21
21
|
import "./chunk-774WSTCC.mjs";
|
|
22
22
|
import "./chunk-NFEK63OE.mjs";
|
package/dist/{api-key-management-detail-LDBEO446.mjs → api-key-management-detail-JQBB7UNB.mjs}
RENAMED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import "./chunk-OC7BQLYI.mjs";
|
|
39
39
|
import "./chunk-S4DMV3ZT.mjs";
|
|
40
40
|
import "./chunk-SUYYSKCB.mjs";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-6BP5RSIK.mjs";
|
|
42
42
|
import "./chunk-I4OBEAOJ.mjs";
|
|
43
43
|
import "./chunk-HI6URQ7H.mjs";
|
|
44
44
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
useBatchRemoveSalesChannelsFromApiKey,
|
|
50
50
|
useDeleteApiKey,
|
|
51
51
|
useRevokeApiKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XIVBRONM.mjs";
|
|
53
53
|
import "./chunk-KI7TOXBR.mjs";
|
|
54
54
|
import "./chunk-WAXMT4IY.mjs";
|
|
55
55
|
import "./chunk-DYDGGABK.mjs";
|
|
@@ -58,23 +58,23 @@ import "./chunk-CN7JXSGW.mjs";
|
|
|
58
58
|
import {
|
|
59
59
|
useUser
|
|
60
60
|
} from "./chunk-5BQQRHQS.mjs";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
62
62
|
import "./chunk-5AFMB7XQ.mjs";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
64
64
|
import "./chunk-A63RZVX6.mjs";
|
|
65
65
|
import "./chunk-HBXV7ENS.mjs";
|
|
66
66
|
import "./chunk-CDORR33H.mjs";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
68
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
69
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
70
70
|
import {
|
|
71
71
|
useSalesChannels
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-N3FCYZV6.mjs";
|
|
73
73
|
import "./chunk-3BF5SC66.mjs";
|
|
74
74
|
import "./chunk-VCSSQVPD.mjs";
|
|
75
75
|
import "./chunk-HP2JH45P.mjs";
|
|
76
76
|
import "./chunk-SQDIZZDW.mjs";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
78
78
|
import {
|
|
79
79
|
queryClient
|
|
80
80
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
useApiKey,
|
|
17
17
|
useUpdateApiKey
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-XIVBRONM.mjs";
|
|
19
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
20
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
21
21
|
import "./chunk-FXYH54JP.mjs";
|
|
22
22
|
import "./chunk-774WSTCC.mjs";
|
|
23
23
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
useApiKeys,
|
|
44
44
|
useDeleteApiKey,
|
|
45
45
|
useRevokeApiKey
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-XIVBRONM.mjs";
|
|
47
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
48
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
49
49
|
import "./chunk-FXYH54JP.mjs";
|
|
50
50
|
import "./chunk-774WSTCC.mjs";
|
|
51
51
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -33,12 +33,12 @@ import "./chunk-OBQI23QM.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
useApiKey,
|
|
35
35
|
useBatchAddSalesChannelsToApiKey
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XIVBRONM.mjs";
|
|
37
37
|
import {
|
|
38
38
|
useSalesChannels
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-N3FCYZV6.mjs";
|
|
40
40
|
import "./chunk-3BF5SC66.mjs";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
42
42
|
import "./chunk-FXYH54JP.mjs";
|
|
43
43
|
import "./chunk-774WSTCC.mjs";
|
|
44
44
|
import "./chunk-NFEK63OE.mjs";
|
package/dist/app.js
CHANGED
|
@@ -90766,7 +90766,9 @@ var init_products = __esm({
|
|
|
90766
90766
|
};
|
|
90767
90767
|
useUpdateProduct = (id2, options) => {
|
|
90768
90768
|
return (0, import_react_query6.useMutation)({
|
|
90769
|
-
mutationFn: (payload) => sdk.admin.product.update(id2, payload
|
|
90769
|
+
mutationFn: (payload) => sdk.admin.product.update(id2, payload, {
|
|
90770
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
90771
|
+
}),
|
|
90770
90772
|
onSuccess: async (data, variables, context) => {
|
|
90771
90773
|
await queryClient.invalidateQueries({
|
|
90772
90774
|
queryKey: productsQueryKeys.lists()
|
|
@@ -94150,7 +94152,8 @@ var init_use_search_results = __esm({
|
|
|
94150
94152
|
{
|
|
94151
94153
|
q: debouncedSearch,
|
|
94152
94154
|
limit,
|
|
94153
|
-
|
|
94155
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
94156
|
+
fields: "id,title,thumbnail,-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
94154
94157
|
},
|
|
94155
94158
|
{
|
|
94156
94159
|
enabled: isAreaEnabled(currentArea, "product"),
|
|
@@ -101973,7 +101976,8 @@ var init_use_product_table_query = __esm({
|
|
|
101973
101976
|
"src/hooks/table/query/use-product-table-query.tsx"() {
|
|
101974
101977
|
"use strict";
|
|
101975
101978
|
init_use_query_params();
|
|
101976
|
-
DEFAULT_FIELDS =
|
|
101979
|
+
DEFAULT_FIELDS = // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
101980
|
+
"id,title,handle,status,*collection,*sales_channels,variants.id,thumbnail,-type,-options,-tags,-images,-variants";
|
|
101977
101981
|
useProductTableQuery = ({
|
|
101978
101982
|
prefix,
|
|
101979
101983
|
pageSize = 20
|
|
@@ -115881,33 +115885,20 @@ var init_product_export2 = __esm({
|
|
|
115881
115885
|
}
|
|
115882
115886
|
});
|
|
115883
115887
|
|
|
115884
|
-
// src/routes/products/product-detail/constants.ts
|
|
115885
|
-
var PRODUCT_DETAIL_FIELDS;
|
|
115886
|
-
var init_constants4 = __esm({
|
|
115887
|
-
"src/routes/products/product-detail/constants.ts"() {
|
|
115888
|
-
"use strict";
|
|
115889
|
-
init_dashboard_app2();
|
|
115890
|
-
PRODUCT_DETAIL_FIELDS = getLinkedFields(
|
|
115891
|
-
"product",
|
|
115892
|
-
"*categories,*shipping_profile,-variants"
|
|
115893
|
-
);
|
|
115894
|
-
}
|
|
115895
|
-
});
|
|
115896
|
-
|
|
115897
115888
|
// src/routes/products/product-detail/breadcrumb.tsx
|
|
115898
115889
|
var import_jsx_runtime117, ProductDetailBreadcrumb;
|
|
115899
115890
|
var init_breadcrumb2 = __esm({
|
|
115900
115891
|
"src/routes/products/product-detail/breadcrumb.tsx"() {
|
|
115901
115892
|
"use strict";
|
|
115902
115893
|
init_api();
|
|
115903
|
-
init_constants4();
|
|
115904
115894
|
import_jsx_runtime117 = require("react/jsx-runtime");
|
|
115905
115895
|
ProductDetailBreadcrumb = (props) => {
|
|
115906
115896
|
const { id: id2 } = props.params || {};
|
|
115907
115897
|
const { product } = useProduct(
|
|
115908
115898
|
id2,
|
|
115909
115899
|
{
|
|
115910
|
-
|
|
115900
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
115901
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
115911
115902
|
},
|
|
115912
115903
|
{
|
|
115913
115904
|
initialData: props.data,
|
|
@@ -115922,6 +115913,19 @@ var init_breadcrumb2 = __esm({
|
|
|
115922
115913
|
}
|
|
115923
115914
|
});
|
|
115924
115915
|
|
|
115916
|
+
// src/routes/products/product-detail/constants.ts
|
|
115917
|
+
var PRODUCT_DETAIL_FIELDS;
|
|
115918
|
+
var init_constants4 = __esm({
|
|
115919
|
+
"src/routes/products/product-detail/constants.ts"() {
|
|
115920
|
+
"use strict";
|
|
115921
|
+
init_dashboard_app2();
|
|
115922
|
+
PRODUCT_DETAIL_FIELDS = getLinkedFields(
|
|
115923
|
+
"product",
|
|
115924
|
+
"*categories,*shipping_profile,-variants"
|
|
115925
|
+
);
|
|
115926
|
+
}
|
|
115927
|
+
});
|
|
115928
|
+
|
|
115925
115929
|
// src/routes/products/product-detail/loader.ts
|
|
115926
115930
|
var productDetailQuery, productLoader;
|
|
115927
115931
|
var init_loader3 = __esm({
|
|
@@ -117643,14 +117647,14 @@ var init_product_edit = __esm({
|
|
|
117643
117647
|
import_react_router_dom39 = require("react-router-dom");
|
|
117644
117648
|
init_modals();
|
|
117645
117649
|
init_products();
|
|
117646
|
-
init_constants4();
|
|
117647
117650
|
init_edit_product_form2();
|
|
117648
117651
|
import_jsx_runtime131 = require("react/jsx-runtime");
|
|
117649
117652
|
ProductEdit = () => {
|
|
117650
117653
|
const { id: id2 } = (0, import_react_router_dom39.useParams)();
|
|
117651
117654
|
const { t: t5 } = (0, import_react_i18next88.useTranslation)();
|
|
117652
117655
|
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
117653
|
-
|
|
117656
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
117657
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
117654
117658
|
});
|
|
117655
117659
|
if (isError) {
|
|
117656
117660
|
throw error;
|
|
@@ -118181,7 +118185,8 @@ var init_product_variant_edit = __esm({
|
|
|
118181
118185
|
} = useProduct(
|
|
118182
118186
|
variant?.product_id,
|
|
118183
118187
|
{
|
|
118184
|
-
|
|
118188
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
118189
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels"
|
|
118185
118190
|
},
|
|
118186
118191
|
{
|
|
118187
118192
|
enabled: !!variant?.product_id
|
|
@@ -118384,7 +118389,10 @@ var init_product_sales_channels = __esm({
|
|
|
118384
118389
|
import_jsx_runtime136 = require("react/jsx-runtime");
|
|
118385
118390
|
ProductSalesChannels = () => {
|
|
118386
118391
|
const { id: id2 } = (0, import_react_router_dom41.useParams)();
|
|
118387
|
-
const { product, isLoading, isError, error } = useProduct(id2
|
|
118392
|
+
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
118393
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
118394
|
+
fields: "-type,-collection,-options,-tags,-images,-variants"
|
|
118395
|
+
});
|
|
118388
118396
|
if (isError) {
|
|
118389
118397
|
throw error;
|
|
118390
118398
|
}
|
|
@@ -118674,14 +118682,14 @@ var init_product_attributes = __esm({
|
|
|
118674
118682
|
import_react_router_dom42 = require("react-router-dom");
|
|
118675
118683
|
init_modals();
|
|
118676
118684
|
init_products();
|
|
118677
|
-
init_constants4();
|
|
118678
118685
|
init_product_attributes_form2();
|
|
118679
118686
|
import_jsx_runtime138 = require("react/jsx-runtime");
|
|
118680
118687
|
ProductAttributes = () => {
|
|
118681
118688
|
const { id: id2 } = (0, import_react_router_dom42.useParams)();
|
|
118682
118689
|
const { t: t5 } = (0, import_react_i18next94.useTranslation)();
|
|
118683
118690
|
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
118684
|
-
|
|
118691
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
118692
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
118685
118693
|
});
|
|
118686
118694
|
if (isError) {
|
|
118687
118695
|
throw error;
|
|
@@ -118912,14 +118920,14 @@ var init_product_organization = __esm({
|
|
|
118912
118920
|
import_react_router_dom43 = require("react-router-dom");
|
|
118913
118921
|
init_modals();
|
|
118914
118922
|
init_products();
|
|
118915
|
-
init_constants4();
|
|
118916
118923
|
init_product_organization_form2();
|
|
118917
118924
|
import_jsx_runtime140 = require("react/jsx-runtime");
|
|
118918
118925
|
ProductOrganization = () => {
|
|
118919
118926
|
const { id: id2 } = (0, import_react_router_dom43.useParams)();
|
|
118920
118927
|
const { t: t5 } = (0, import_react_i18next96.useTranslation)();
|
|
118921
118928
|
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
118922
|
-
|
|
118929
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
118930
|
+
fields: "*categories,-options,-images,-variants,-sales_channels"
|
|
118923
118931
|
});
|
|
118924
118932
|
if (isError) {
|
|
118925
118933
|
throw error;
|
|
@@ -119064,14 +119072,14 @@ var init_product_shipping_profile = __esm({
|
|
|
119064
119072
|
import_react_router_dom44 = require("react-router-dom");
|
|
119065
119073
|
init_modals();
|
|
119066
119074
|
init_products();
|
|
119067
|
-
init_constants4();
|
|
119068
119075
|
init_product_organization_form3();
|
|
119069
119076
|
import_jsx_runtime142 = require("react/jsx-runtime");
|
|
119070
119077
|
ProductShippingProfile = () => {
|
|
119071
119078
|
const { id: id2 } = (0, import_react_router_dom44.useParams)();
|
|
119072
119079
|
const { t: t5 } = (0, import_react_i18next98.useTranslation)();
|
|
119073
119080
|
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
119074
|
-
|
|
119081
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
119082
|
+
fields: "*shipping_profile,-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
119075
119083
|
});
|
|
119076
119084
|
if (isError) {
|
|
119077
119085
|
throw error;
|
|
@@ -119791,7 +119799,10 @@ var init_product_media = __esm({
|
|
|
119791
119799
|
ProductMedia = () => {
|
|
119792
119800
|
const { t: t5 } = (0, import_react_i18next101.useTranslation)();
|
|
119793
119801
|
const { id: id2 } = (0, import_react_router_dom48.useParams)();
|
|
119794
|
-
const { product, isLoading, isError, error } = useProduct(id2
|
|
119802
|
+
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
119803
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
119804
|
+
fields: "-type,-collection,-options,-tags,-variants,-sales_channels"
|
|
119805
|
+
});
|
|
119795
119806
|
const ready = !isLoading && product;
|
|
119796
119807
|
if (isError) {
|
|
119797
119808
|
throw error;
|
|
@@ -120072,7 +120083,10 @@ var init_product_image_variants_edit = __esm({
|
|
|
120072
120083
|
const { id: product_id, image_id } = (0, import_react_router_dom49.useParams)();
|
|
120073
120084
|
const { product, isPending } = useProduct(
|
|
120074
120085
|
product_id,
|
|
120075
|
-
{
|
|
120086
|
+
{
|
|
120087
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
120088
|
+
fields: "images.id,images.url,images.variants.id,-type,-collection,-options,-tags,-variants,-sales_channels"
|
|
120089
|
+
},
|
|
120076
120090
|
{
|
|
120077
120091
|
enabled: !!product_id && !!image_id
|
|
120078
120092
|
}
|
|
@@ -120316,7 +120330,10 @@ var init_product_prices = __esm({
|
|
|
120316
120330
|
import_jsx_runtime151 = require("react/jsx-runtime");
|
|
120317
120331
|
ProductPrices = () => {
|
|
120318
120332
|
const { id: id2, variant_id } = (0, import_react_router_dom50.useParams)();
|
|
120319
|
-
const { product, isLoading, isError, error } = useProduct(id2
|
|
120333
|
+
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
120334
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
120335
|
+
fields: "-type,-collection,-options,-tags,-images,-sales_channels"
|
|
120336
|
+
});
|
|
120320
120337
|
if (isError) {
|
|
120321
120338
|
throw error;
|
|
120322
120339
|
}
|
|
@@ -120471,7 +120488,10 @@ var init_product_create_option = __esm({
|
|
|
120471
120488
|
ProductCreateOption = () => {
|
|
120472
120489
|
const { id: id2 } = (0, import_react_router_dom51.useParams)();
|
|
120473
120490
|
const { t: t5 } = (0, import_react_i18next107.useTranslation)();
|
|
120474
|
-
const { product, isLoading, isError, error } = useProduct(id2
|
|
120491
|
+
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
120492
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
120493
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
120494
|
+
});
|
|
120475
120495
|
if (isError) {
|
|
120476
120496
|
throw error;
|
|
120477
120497
|
}
|
|
@@ -120630,7 +120650,10 @@ var init_product_edit_option = __esm({
|
|
|
120630
120650
|
ProductEditOption = () => {
|
|
120631
120651
|
const { id: id2, option_id } = (0, import_react_router_dom52.useParams)();
|
|
120632
120652
|
const { t: t5 } = (0, import_react_i18next109.useTranslation)();
|
|
120633
|
-
const { product, isPending, isFetching, isError, error } = useProduct(id2
|
|
120653
|
+
const { product, isPending, isFetching, isError, error } = useProduct(id2, {
|
|
120654
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
120655
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels"
|
|
120656
|
+
});
|
|
120634
120657
|
const option = product?.options.find((o) => o.id === option_id);
|
|
120635
120658
|
if (!isPending && !isFetching && !option) {
|
|
120636
120659
|
throw (0, import_react_router_dom52.json)({ message: `An option with ID ${option_id} was not found` }, 404);
|
|
@@ -121449,7 +121472,10 @@ var init_product_create_variant = __esm({
|
|
|
121449
121472
|
import_jsx_runtime160 = require("react/jsx-runtime");
|
|
121450
121473
|
ProductCreateVariant = () => {
|
|
121451
121474
|
const { id: id2 } = (0, import_react_router_dom53.useParams)();
|
|
121452
|
-
const { product, isLoading, isError, error } = useProduct(id2
|
|
121475
|
+
const { product, isLoading, isError, error } = useProduct(id2, {
|
|
121476
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
121477
|
+
fields: "-type,-collection,-tags,-images,-variants,-sales_channels"
|
|
121478
|
+
});
|
|
121453
121479
|
if (isError) {
|
|
121454
121480
|
throw error;
|
|
121455
121481
|
}
|
|
@@ -122558,7 +122584,10 @@ var init_product_metadata = __esm({
|
|
|
122558
122584
|
import_jsx_runtime167 = require("react/jsx-runtime");
|
|
122559
122585
|
ProductMetadata = () => {
|
|
122560
122586
|
const { id: id2 } = (0, import_react_router_dom56.useParams)();
|
|
122561
|
-
const { product, isPending, isError, error } = useProduct(id2
|
|
122587
|
+
const { product, isPending, isError, error } = useProduct(id2, {
|
|
122588
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
122589
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
122590
|
+
});
|
|
122562
122591
|
const { mutateAsync, isPending: isMutating } = useUpdateProduct(product?.id);
|
|
122563
122592
|
if (isError) {
|
|
122564
122593
|
throw error;
|
|
@@ -135529,9 +135558,6 @@ var init_return_create_form = __esm({
|
|
|
135529
135558
|
);
|
|
135530
135559
|
return method?.total || 0;
|
|
135531
135560
|
}, [preview.shipping_methods]);
|
|
135532
|
-
const estimatedDifference = preview.summary.pending_difference - previewItems.reduce((acc, item) => {
|
|
135533
|
-
return acc + item.total;
|
|
135534
|
-
}, 0);
|
|
135535
135561
|
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
135536
135562
|
RouteFocusModal.Form,
|
|
135537
135563
|
{
|
|
@@ -135779,7 +135805,10 @@ var init_return_create_form = __esm({
|
|
|
135779
135805
|
] }),
|
|
135780
135806
|
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
|
|
135781
135807
|
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("span", { className: "txt-small font-medium", children: t5("orders.returns.estDifference") }),
|
|
135782
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
135808
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
135809
|
+
preview.summary.pending_difference,
|
|
135810
|
+
order.currency_code
|
|
135811
|
+
) })
|
|
135783
135812
|
] })
|
|
135784
135813
|
] }),
|
|
135785
135814
|
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("div", { className: "bg-ui-bg-field mt-8 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
@@ -137639,9 +137668,6 @@ var init_claim_create_form = __esm({
|
|
|
137639
137668
|
}
|
|
137640
137669
|
};
|
|
137641
137670
|
}, []);
|
|
137642
|
-
const estimatedDifference = preview.summary.pending_difference - inboundPreviewItems.reduce((acc, item) => {
|
|
137643
|
-
return acc + item.total;
|
|
137644
|
-
}, 0);
|
|
137645
137671
|
const inboundShippingTotal = (0, import_react171.useMemo)(() => {
|
|
137646
137672
|
const method = preview.shipping_methods.find(
|
|
137647
137673
|
(sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD" && !!a.return_id)
|
|
@@ -137993,7 +138019,10 @@ var init_claim_create_form = __esm({
|
|
|
137993
138019
|
] }),
|
|
137994
138020
|
/* @__PURE__ */ (0, import_jsx_runtime261.jsxs)("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
|
|
137995
138021
|
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)("span", { className: "txt-small font-medium", children: t5("orders.claims.refundAmount") }),
|
|
137996
|
-
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
138022
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
138023
|
+
preview.summary.pending_difference,
|
|
138024
|
+
order.currency_code
|
|
138025
|
+
) })
|
|
137997
138026
|
] })
|
|
137998
138027
|
] }),
|
|
137999
138028
|
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: "bg-ui-bg-field mt-8 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
@@ -139935,9 +139964,6 @@ var init_exchange_create_form = __esm({
|
|
|
139935
139964
|
}
|
|
139936
139965
|
};
|
|
139937
139966
|
}, []);
|
|
139938
|
-
const estimatedDifference = preview.summary.pending_difference - inboundPreviewItems.reduce((acc, item) => {
|
|
139939
|
-
return acc + item.total;
|
|
139940
|
-
}, 0);
|
|
139941
139967
|
const inboundShippingTotal = (0, import_react179.useMemo)(() => {
|
|
139942
139968
|
const method = preview.shipping_methods.find(
|
|
139943
139969
|
(sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD" && !!a.return_id)
|
|
@@ -140114,7 +140140,10 @@ var init_exchange_create_form = __esm({
|
|
|
140114
140140
|
] }),
|
|
140115
140141
|
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
|
|
140116
140142
|
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { className: "txt-small font-medium", children: t5("orders.exchanges.refundAmount") }),
|
|
140117
|
-
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
140143
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { className: "txt-small font-medium", children: getStylizedAmount(
|
|
140144
|
+
preview.summary.pending_difference,
|
|
140145
|
+
order.currency_code
|
|
140146
|
+
) })
|
|
140118
140147
|
] })
|
|
140119
140148
|
] }),
|
|
140120
140149
|
hasPromotions && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { className: "bg-ui-bg-field mt-4 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
@@ -151525,7 +151554,8 @@ var init_price_list_prices_form = __esm({
|
|
|
151525
151554
|
const { products, isLoading, isError, error } = useProducts({
|
|
151526
151555
|
id: ids.map((id2) => id2.id),
|
|
151527
151556
|
limit: ids.length,
|
|
151528
|
-
|
|
151557
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
151558
|
+
fields: "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels"
|
|
151529
151559
|
});
|
|
151530
151560
|
const { setCloseOnEscape } = useRouteModal();
|
|
151531
151561
|
const { setValue: setValue2 } = form;
|
|
@@ -153366,7 +153396,8 @@ var init_price_list_prices_add_prices_form = __esm({
|
|
|
153366
153396
|
const { products, isLoading, isError, error } = useProducts({
|
|
153367
153397
|
id: ids.map((id2) => id2.id),
|
|
153368
153398
|
limit: ids.length,
|
|
153369
|
-
|
|
153399
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
153400
|
+
fields: "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels"
|
|
153370
153401
|
});
|
|
153371
153402
|
const { setValue: setValue2 } = form;
|
|
153372
153403
|
const { setCloseOnEscape } = useRouteModal();
|
|
@@ -154181,7 +154212,8 @@ var init_price_list_prices_edit = __esm({
|
|
|
154181
154212
|
limit: productIds?.length || 9999,
|
|
154182
154213
|
// Temporary until we support lazy loading in the DataGrid
|
|
154183
154214
|
price_list_id: [id2],
|
|
154184
|
-
|
|
154215
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
154216
|
+
fields: "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels"
|
|
154185
154217
|
});
|
|
154186
154218
|
const { isReady, regions, currencies: currencies2, pricePreferences } = usePriceListCurrencyData();
|
|
154187
154219
|
const ready = !isLoading && !!price_list && !isProductsLoading && !!products && isReady;
|
|
@@ -181274,7 +181306,10 @@ var init_target_item = __esm({
|
|
|
181274
181306
|
}) => {
|
|
181275
181307
|
const { product } = useProduct(
|
|
181276
181308
|
value,
|
|
181277
|
-
{
|
|
181309
|
+
{
|
|
181310
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
181311
|
+
fields: "id,title,-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
181312
|
+
},
|
|
181278
181313
|
{ enabled: !label }
|
|
181279
181314
|
);
|
|
181280
181315
|
return /* @__PURE__ */ (0, import_jsx_runtime641.jsxs)("div", { className: "bg-ui-bg-field-component shadow-borders-base flex items-center justify-between gap-2 rounded-md px-2 py-0.5", children: [
|
|
@@ -181884,16 +181919,13 @@ var init_tax_override_card = __esm({
|
|
|
181884
181919
|
if (taxRate.is_default) {
|
|
181885
181920
|
return null;
|
|
181886
181921
|
}
|
|
181887
|
-
const groupedRules = taxRate.rules.reduce(
|
|
181888
|
-
(acc
|
|
181889
|
-
|
|
181890
|
-
|
|
181891
|
-
|
|
181892
|
-
|
|
181893
|
-
|
|
181894
|
-
},
|
|
181895
|
-
{}
|
|
181896
|
-
);
|
|
181922
|
+
const groupedRules = taxRate.rules.reduce((acc, rule) => {
|
|
181923
|
+
if (!acc[rule.reference]) {
|
|
181924
|
+
acc[rule.reference] = [];
|
|
181925
|
+
}
|
|
181926
|
+
acc[rule.reference].push(rule.reference_id);
|
|
181927
|
+
return acc;
|
|
181928
|
+
}, {});
|
|
181897
181929
|
const validKeys = Object.values(TaxRateRuleReferenceType);
|
|
181898
181930
|
const numberOfTargets = Object.keys(groupedRules).map(
|
|
181899
181931
|
(key) => validKeys.includes(key)
|
|
@@ -182061,7 +182093,9 @@ var init_tax_override_card = __esm({
|
|
|
182061
182093
|
const products = useProducts(
|
|
182062
182094
|
{
|
|
182063
182095
|
id: ids.slice(0, DISPLAY_OVERRIDE_ITEMS_LIMIT),
|
|
182064
|
-
limit: DISPLAY_OVERRIDE_ITEMS_LIMIT
|
|
182096
|
+
limit: DISPLAY_OVERRIDE_ITEMS_LIMIT,
|
|
182097
|
+
// TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
|
|
182098
|
+
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
182065
182099
|
},
|
|
182066
182100
|
{
|
|
182067
182101
|
enabled: !!ids.length && type === "product" /* PRODUCT */
|
package/dist/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XWXHIF3R.mjs";
|
|
4
4
|
import "./chunk-2SSUH2HJ.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
6
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -19,33 +19,33 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
19
19
|
import "./chunk-S4DMV3ZT.mjs";
|
|
20
20
|
import "./chunk-SUYYSKCB.mjs";
|
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6BP5RSIK.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
24
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
25
|
import "./chunk-6CLQKVAU.mjs";
|
|
26
26
|
import "./chunk-HKIF5HVL.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-XIVBRONM.mjs";
|
|
28
28
|
import "./chunk-KI7TOXBR.mjs";
|
|
29
29
|
import "./chunk-WAXMT4IY.mjs";
|
|
30
30
|
import "./chunk-DYDGGABK.mjs";
|
|
31
31
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
32
32
|
import "./chunk-CN7JXSGW.mjs";
|
|
33
33
|
import "./chunk-5BQQRHQS.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
35
35
|
import "./chunk-5AFMB7XQ.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
37
37
|
import "./chunk-A63RZVX6.mjs";
|
|
38
38
|
import "./chunk-HBXV7ENS.mjs";
|
|
39
39
|
import "./chunk-CDORR33H.mjs";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
41
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
42
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
43
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
44
44
|
import "./chunk-3BF5SC66.mjs";
|
|
45
45
|
import "./chunk-VCSSQVPD.mjs";
|
|
46
46
|
import "./chunk-HP2JH45P.mjs";
|
|
47
47
|
import "./chunk-SQDIZZDW.mjs";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
49
49
|
import "./chunk-FXYH54JP.mjs";
|
|
50
50
|
import "./chunk-774WSTCC.mjs";
|
|
51
51
|
import "./chunk-NFEK63OE.mjs";
|
|
@@ -42,21 +42,21 @@ import {
|
|
|
42
42
|
import "./chunk-OC7BQLYI.mjs";
|
|
43
43
|
import "./chunk-S4DMV3ZT.mjs";
|
|
44
44
|
import "./chunk-SUYYSKCB.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-6BP5RSIK.mjs";
|
|
46
46
|
import "./chunk-I4OBEAOJ.mjs";
|
|
47
47
|
import "./chunk-HI6URQ7H.mjs";
|
|
48
48
|
import "./chunk-6CLQKVAU.mjs";
|
|
49
49
|
import "./chunk-HKIF5HVL.mjs";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-XIVBRONM.mjs";
|
|
51
51
|
import "./chunk-KI7TOXBR.mjs";
|
|
52
52
|
import "./chunk-WAXMT4IY.mjs";
|
|
53
53
|
import "./chunk-DYDGGABK.mjs";
|
|
54
54
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
55
55
|
import "./chunk-CN7JXSGW.mjs";
|
|
56
56
|
import "./chunk-5BQQRHQS.mjs";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-EUF6RSI7.mjs";
|
|
58
58
|
import "./chunk-5AFMB7XQ.mjs";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-NHDFPGQ3.mjs";
|
|
60
60
|
import {
|
|
61
61
|
campaignsQueryKeys,
|
|
62
62
|
useAddOrRemoveCampaignPromotions,
|
|
@@ -66,15 +66,15 @@ import {
|
|
|
66
66
|
} from "./chunk-A63RZVX6.mjs";
|
|
67
67
|
import "./chunk-HBXV7ENS.mjs";
|
|
68
68
|
import "./chunk-CDORR33H.mjs";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
70
|
+
import "./chunk-N4O5FAUC.mjs";
|
|
71
|
+
import "./chunk-7AX6R6G6.mjs";
|
|
72
|
+
import "./chunk-N3FCYZV6.mjs";
|
|
73
73
|
import "./chunk-3BF5SC66.mjs";
|
|
74
74
|
import "./chunk-VCSSQVPD.mjs";
|
|
75
75
|
import "./chunk-HP2JH45P.mjs";
|
|
76
76
|
import "./chunk-SQDIZZDW.mjs";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-LEJUZW3P.mjs";
|
|
78
78
|
import {
|
|
79
79
|
queryClient
|
|
80
80
|
} from "./chunk-FXYH54JP.mjs";
|