@medusajs/dashboard 2.10.4-preview-20250924060154 → 2.10.4-preview-20250924120212
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-BWIP24MA.mjs → add-campaign-promotions-APV4J7Z2.mjs} +4 -4
- package/dist/{api-key-management-detail-WGWZQCFC.mjs → api-key-management-detail-P2CXWYQG.mjs} +2 -2
- package/dist/{api-key-management-sales-channels-H5TVIHTV.mjs → api-key-management-sales-channels-ESGRJKDT.mjs} +1 -1
- package/dist/app.css +0 -3
- package/dist/app.js +3533 -3527
- package/dist/app.mjs +3 -3
- package/dist/{campaign-budget-edit-OXNTSPGE.mjs → campaign-budget-edit-UWGCET5Z.mjs} +1 -1
- package/dist/{campaign-configuration-Z5HA2DG3.mjs → campaign-configuration-WWCCFNYQ.mjs} +1 -1
- package/dist/{campaign-create-GRKYQY5D.mjs → campaign-create-CQ3XBHSY.mjs} +2 -2
- package/dist/{campaign-detail-EJD7LQCW.mjs → campaign-detail-CBO7PBOR.mjs} +4 -4
- package/dist/{campaign-edit-3TDW52BO.mjs → campaign-edit-R43GXNET.mjs} +1 -1
- package/dist/{campaign-list-IDPRC2MD.mjs → campaign-list-CDO5PRTL.mjs} +1 -1
- package/dist/{categories-metadata-JFNWZA5D.mjs → categories-metadata-HNABPXTE.mjs} +1 -1
- package/dist/{category-detail-CL3XCV7E.mjs → category-detail-JUKMFR4W.mjs} +1 -1
- package/dist/{category-products-UZEG63WY.mjs → category-products-CWLUKUVK.mjs} +1 -1
- package/dist/{chunk-U2FXUMKA.mjs → chunk-3S523T5F.mjs} +1 -1
- package/dist/{chunk-FUQ27NT5.mjs → chunk-5FAWKUSU.mjs} +1 -1
- package/dist/{chunk-OQPVQGSH.mjs → chunk-7GBCLBMX.mjs} +24 -11
- package/dist/{chunk-LJDVFJK7.mjs → chunk-AXXGAOQL.mjs} +1 -1
- package/dist/{chunk-CAZKNJTG.mjs → chunk-FGF5B6J4.mjs} +112 -112
- package/dist/{chunk-4CGHNQP2.mjs → chunk-G3VGLFVH.mjs} +47 -47
- package/dist/{chunk-YPSSUJUZ.mjs → chunk-KTBA6OOV.mjs} +7 -3
- package/dist/{chunk-2252SSK6.mjs → chunk-NUA3JO5E.mjs} +1 -1
- package/dist/{chunk-ZODJNBAV.mjs → chunk-R2G2B47Y.mjs} +1 -0
- package/dist/{chunk-V53HAFWH.mjs → chunk-TEMN4ESF.mjs} +1 -1
- package/dist/{chunk-6RWF7BPW.mjs → chunk-V6JXTITD.mjs} +1 -1
- package/dist/{chunk-WP5CXGGO.mjs → chunk-ZWWM2OU2.mjs} +1 -1
- package/dist/{collection-add-products-QTFBLLND.mjs → collection-add-products-E22XLIP7.mjs} +1 -1
- package/dist/{collection-detail-ZEAUSZBJ.mjs → collection-detail-LOJ6WZLT.mjs} +1 -1
- package/dist/{collection-list-V27JHDAD.mjs → collection-list-KKEZLFLJ.mjs} +1 -1
- package/dist/{collection-metadata-JAEMZMU6.mjs → collection-metadata-MEA56JQC.mjs} +1 -1
- package/dist/{customer-detail-YBOM6KGC.mjs → customer-detail-Z5TU254N.mjs} +1 -1
- package/dist/{customer-group-detail-72VFORGF.mjs → customer-group-detail-VCRUQIYD.mjs} +1 -1
- package/dist/{customer-group-list-UTC5ZCJZ.mjs → customer-group-list-MCQ4AUJF.mjs} +2 -2
- package/dist/{customers-add-customer-group-ZUCFXW2U.mjs → customers-add-customer-group-X3VHASZ6.mjs} +1 -1
- package/dist/{edit-rules-RY7JMYLR.mjs → edit-rules-SVG7IOSY.mjs} +2 -2
- package/dist/{inventory-create-F5PSTEN2.mjs → inventory-create-DR5LNYQB.mjs} +1 -1
- package/dist/{inventory-detail-BO5E7KXO.mjs → inventory-detail-D4MBCFS2.mjs} +2 -2
- package/dist/{inventory-metadata-QGPVSAUI.mjs → inventory-metadata-T22JZF4O.mjs} +1 -1
- package/dist/{inventory-stock-VQNXCIOA.mjs → inventory-stock-CPNDJYBD.mjs} +1 -1
- package/dist/{location-detail-M4CYDTSY.mjs → location-detail-SG4X4HBT.mjs} +1 -1
- package/dist/{location-edit-RNGPJ26L.mjs → location-edit-X6JBEWIF.mjs} +1 -1
- package/dist/{location-fulfillment-providers-XVEQZCUD.mjs → location-fulfillment-providers-YNKCL3FV.mjs} +1 -1
- package/dist/location-list-VNEYHAKV.mjs +323 -0
- package/dist/{location-sales-channels-NSXV65ZM.mjs → location-sales-channels-HVZHZMBY.mjs} +1 -1
- package/dist/{location-service-zone-shipping-option-create-I3HAEEFA.mjs → location-service-zone-shipping-option-create-PF7YJSC3.mjs} +1 -1
- package/dist/{login-QOENXTB7.mjs → login-23RIW4IY.mjs} +1 -1
- package/dist/{order-create-claim-MOBLO4YM.mjs → order-create-claim-LBA6UTTF.mjs} +1 -1
- package/dist/{order-create-edit-C75GUZJE.mjs → order-create-edit-7GLQP5CD.mjs} +1 -1
- package/dist/{order-create-exchange-RCUALEXO.mjs → order-create-exchange-IXPHBHKP.mjs} +1 -1
- package/dist/{order-create-fulfillment-EZTEZ4CF.mjs → order-create-fulfillment-5UJQFERR.mjs} +1 -1
- package/dist/{order-create-refund-4FAIESAN.mjs → order-create-refund-QZRNHK2D.mjs} +1 -1
- package/dist/{order-create-shipment-PTUJKVWK.mjs → order-create-shipment-TQJHHC7T.mjs} +1 -1
- package/dist/{order-detail-6XQLJ5TU.mjs → order-detail-NERZLT7X.mjs} +31 -23
- package/dist/{order-edit-billing-address-46CFUZGL.mjs → order-edit-billing-address-BMUX3GJL.mjs} +1 -1
- package/dist/{order-edit-email-FOK5GQW2.mjs → order-edit-email-CS4AIJZS.mjs} +1 -1
- package/dist/{order-edit-shipping-address-WFN2SVKM.mjs → order-edit-shipping-address-GXSNNDBC.mjs} +1 -1
- package/dist/{order-list-OTPVQKU6.mjs → order-list-YWPAJ7FR.mjs} +2 -2
- package/dist/{order-metadata-COJNFRPZ.mjs → order-metadata-KWZX64YP.mjs} +1 -1
- package/dist/{order-receive-return-P4OPVOPM.mjs → order-receive-return-EXZAUMCI.mjs} +1 -1
- package/dist/{order-request-transfer-HRPCEL5L.mjs → order-request-transfer-RLU2TK44.mjs} +1 -1
- package/dist/{price-list-create-FJ2FM6GL.mjs → price-list-create-RHSKBROB.mjs} +1 -1
- package/dist/{price-list-detail-VNZ3Q426.mjs → price-list-detail-7E2SZNKI.mjs} +1 -1
- package/dist/{price-list-prices-add-FMZKGOHD.mjs → price-list-prices-add-RM5FDABU.mjs} +1 -1
- package/dist/{product-attributes-5PLACMXK.mjs → product-attributes-K5EMRHFS.mjs} +4 -4
- package/dist/{product-create-6FMLIS5X.mjs → product-create-5KQFXFJF.mjs} +5 -5
- package/dist/{product-create-variant-KGBSFIKQ.mjs → product-create-variant-37CVX4QI.mjs} +1 -1
- package/dist/{product-detail-2BJJMCCO.mjs → product-detail-UM6PIKWQ.mjs} +5 -5
- package/dist/{product-edit-N5P7RVNS.mjs → product-edit-QSCZEH74.mjs} +4 -4
- package/dist/{product-export-XA5POQKT.mjs → product-export-JNLDMDUS.mjs} +1 -1
- package/dist/{product-import-DYTT4YDA.mjs → product-import-CA75XMEH.mjs} +1 -1
- package/dist/{product-list-EUQX3NBE.mjs → product-list-XA5SJLXF.mjs} +3 -3
- package/dist/{product-media-XJGAON6B.mjs → product-media-36YW62IO.mjs} +2 -2
- package/dist/{product-metadata-44VYAXZD.mjs → product-metadata-JKWIAMVB.mjs} +1 -1
- package/dist/{product-organization-FB6BVKKL.mjs → product-organization-YL4ZUCC4.mjs} +4 -4
- package/dist/{product-sales-channels-QBQDLU7Z.mjs → product-sales-channels-UX7AOJIF.mjs} +1 -1
- package/dist/{product-shipping-profile-UZQSV54B.mjs → product-shipping-profile-PEIUF5AK.mjs} +4 -4
- package/dist/{product-stock-PX5NAHH6.mjs → product-stock-4XECV73O.mjs} +1 -1
- package/dist/{product-tag-create-R4YSSXD6.mjs → product-tag-create-U5DAEOBS.mjs} +1 -1
- package/dist/{product-tag-detail-XJEGQD7U.mjs → product-tag-detail-YB44E6JT.mjs} +1 -1
- package/dist/{product-tag-edit-7JXF42HY.mjs → product-tag-edit-J3OPHCDJ.mjs} +1 -1
- package/dist/{product-tag-list-GTUMQQ6V.mjs → product-tag-list-6TGDOAMD.mjs} +1 -1
- package/dist/{product-tag-metadata-5QV3HMXJ.mjs → product-tag-metadata-VAHEGSFJ.mjs} +1 -1
- package/dist/{product-type-detail-CN74BB3Y.mjs → product-type-detail-EN3WAIVO.mjs} +1 -1
- package/dist/{product-type-metadata-JPFREADV.mjs → product-type-metadata-R3YLZGY5.mjs} +1 -1
- package/dist/{product-variant-detail-BSLEUW5J.mjs → product-variant-detail-TYV4BYNG.mjs} +1 -1
- package/dist/{product-variant-edit-VOW5633S.mjs → product-variant-edit-YPQDVG5C.mjs} +1 -1
- package/dist/{product-variant-metadata-KDSV47PE.mjs → product-variant-metadata-DII5YHIK.mjs} +1 -1
- package/dist/{promotion-add-campaign-JXBRCUXL.mjs → promotion-add-campaign-YREHV6TQ.mjs} +7 -20
- package/dist/{promotion-create-YPX2R3ZB.mjs → promotion-create-TLW6T5IO.mjs} +4 -4
- package/dist/{promotion-detail-VB5GZDCC.mjs → promotion-detail-BYA66IL7.mjs} +113 -64
- package/dist/{promotion-edit-details-I5DYHQUM.mjs → promotion-edit-details-A2UUSAZA.mjs} +1 -1
- package/dist/{promotion-list-NAUTWXNU.mjs → promotion-list-TOYJAQ4D.mjs} +4 -4
- package/dist/{refund-reason-create-CYHPXX2O.mjs → refund-reason-create-D5DJVOXP.mjs} +1 -1
- package/dist/{refund-reason-list-VBHGRLJJ.mjs → refund-reason-list-V7UO2NAY.mjs} +10 -5
- package/dist/{region-metadata-NXD563F4.mjs → region-metadata-23FQEWQ7.mjs} +1 -1
- package/dist/{reservation-detail-64MMXK7D.mjs → reservation-detail-USSX2THW.mjs} +1 -1
- package/dist/{reservation-metadata-4GZCEGM7.mjs → reservation-metadata-PKWRLWNT.mjs} +1 -1
- package/dist/{reset-password-ZCKXQZNQ.mjs → reset-password-EKZEJXQU.mjs} +1 -1
- package/dist/{sales-channel-add-products-EAWW7ADY.mjs → sales-channel-add-products-DKDV65UU.mjs} +1 -1
- package/dist/{sales-channel-detail-3F3HFTD2.mjs → sales-channel-detail-JKJLEM4C.mjs} +1 -1
- package/dist/{sales-channel-list-R4HT6A7P.mjs → sales-channel-list-FOAVTG7H.mjs} +2 -2
- package/dist/{sales-channel-metadata-LAHTTRLQ.mjs → sales-channel-metadata-3RXYX7U2.mjs} +1 -1
- package/dist/{shipping-option-type-create-IPKK5MRS.mjs → shipping-option-type-create-ZLYFQFYI.mjs} +1 -1
- package/dist/{shipping-option-type-detail-NEQ4RA5F.mjs → shipping-option-type-detail-OMVJZSOI.mjs} +1 -1
- package/dist/{shipping-option-type-edit-CC64TWSB.mjs → shipping-option-type-edit-5XHFIDEZ.mjs} +1 -1
- package/dist/{shipping-option-type-list-3GTGTBK7.mjs → shipping-option-type-list-SGTTVHWK.mjs} +1 -1
- package/dist/{shipping-profile-metadata-EPVLPEEM.mjs → shipping-profile-metadata-3TZDQ27Z.mjs} +1 -1
- package/dist/{store-detail-PUOKMK4K.mjs → store-detail-72GMDFY7.mjs} +1 -1
- package/dist/{store-metadata-JYIVRRLW.mjs → store-metadata-TXSRTL6B.mjs} +1 -1
- package/dist/{tax-region-create-2GDG36NQ.mjs → tax-region-create-U6XXHBMJ.mjs} +2 -2
- package/dist/{tax-region-detail-MQKBEBOZ.mjs → tax-region-detail-V4E63XUI.mjs} +1 -1
- package/dist/{tax-region-edit-2H5ACSFG.mjs → tax-region-edit-2DQPKIJG.mjs} +1 -1
- package/dist/{tax-region-province-detail-HNK2ZJWL.mjs → tax-region-province-detail-P6LPVSQJ.mjs} +1 -1
- package/dist/{tax-region-tax-override-create-XZJ3EIFJ.mjs → tax-region-tax-override-create-BPZKBPN6.mjs} +1 -1
- package/dist/{tax-region-tax-override-edit-QHQHFI2Y.mjs → tax-region-tax-override-edit-O7LUBRQN.mjs} +1 -1
- package/dist/{user-list-TPBPZ7KJ.mjs → user-list-G4H2RSDX.mjs} +1 -1
- package/dist/{user-metadata-F6KRFYDW.mjs → user-metadata-TM3FFLIR.mjs} +1 -1
- package/dist/{workflow-execution-detail-JRJZATNU.mjs → workflow-execution-detail-3IBZZVRE.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/data-table/data-table.tsx +64 -46
- package/src/hooks/api/campaigns.tsx +1 -0
- package/src/i18n/translations/$schema.json +19 -2
- package/src/i18n/translations/en.json +7 -3
- package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
- package/src/routes/locations/location-list/index.ts +0 -1
- package/src/routes/locations/location-list/location-list.tsx +52 -14
- package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
- package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
- package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
- package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +45 -52
- package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +4 -21
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +12 -4
- package/dist/chunk-BKJC5BGQ.mjs +0 -53
- package/dist/location-list-NKIOBHG4.mjs +0 -298
- package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
- package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
- package/src/routes/locations/location-list/loader.ts +0 -36
@@ -1,6 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
CreateCampaignFormFields
|
3
3
|
} from "./chunk-CY33DS7K.mjs";
|
4
|
+
import {
|
5
|
+
useComboboxData
|
6
|
+
} from "./chunk-HFB3OQXI.mjs";
|
7
|
+
import {
|
8
|
+
Combobox
|
9
|
+
} from "./chunk-CD7VQIPA.mjs";
|
4
10
|
import {
|
5
11
|
KeyboundForm
|
6
12
|
} from "./chunk-6HTZNHPT.mjs";
|
@@ -15,15 +21,19 @@ import {
|
|
15
21
|
Form
|
16
22
|
} from "./chunk-OBQI23QM.mjs";
|
17
23
|
import {
|
24
|
+
useCampaign,
|
18
25
|
useUpdatePromotion
|
19
|
-
} from "./chunk-
|
26
|
+
} from "./chunk-R2G2B47Y.mjs";
|
27
|
+
import {
|
28
|
+
sdk
|
29
|
+
} from "./chunk-DEQUVHHE.mjs";
|
20
30
|
|
21
31
|
// src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx
|
22
32
|
import { zodResolver } from "@hookform/resolvers/zod";
|
23
|
-
import { Button, RadioGroup,
|
33
|
+
import { Button, RadioGroup, toast } from "@medusajs/ui";
|
24
34
|
import { useEffect } from "react";
|
25
35
|
import { useForm, useWatch } from "react-hook-form";
|
26
|
-
import {
|
36
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
27
37
|
import * as zod from "zod";
|
28
38
|
|
29
39
|
// src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/campaign-details.tsx
|
@@ -86,10 +96,11 @@ var EditPromotionSchema = zod.object({
|
|
86
96
|
});
|
87
97
|
var AddCampaignPromotionFields = ({
|
88
98
|
form,
|
89
|
-
|
90
|
-
|
99
|
+
withNewCampaign = true,
|
100
|
+
promotionCurrencyCode
|
91
101
|
}) => {
|
92
102
|
const { t } = useTranslation2();
|
103
|
+
const direction = useDocumentDirection();
|
93
104
|
const watchCampaignId = useWatch({
|
94
105
|
control: form.control,
|
95
106
|
name: "campaign_id"
|
@@ -98,8 +109,25 @@ var AddCampaignPromotionFields = ({
|
|
98
109
|
control: form.control,
|
99
110
|
name: "campaign_choice"
|
100
111
|
});
|
101
|
-
const
|
102
|
-
|
112
|
+
const campaignsCombobox = useComboboxData({
|
113
|
+
queryFn: (params) => sdk.admin.campaign.list({
|
114
|
+
...params
|
115
|
+
}),
|
116
|
+
queryKey: ["campaigns"],
|
117
|
+
getOptions: (data) => data.campaigns.map((campaign) => ({
|
118
|
+
label: campaign.name.toUpperCase(),
|
119
|
+
value: campaign.id,
|
120
|
+
disabled: campaign.budget?.currency_code && campaign.budget?.currency_code?.toLowerCase() !== promotionCurrencyCode?.toLowerCase()
|
121
|
+
// also cannot add promotion which doesn't have currency defined to a campaign with a currency amount budget
|
122
|
+
}))
|
123
|
+
});
|
124
|
+
const { campaign: selectedCampaign } = useCampaign(
|
125
|
+
watchCampaignId,
|
126
|
+
void 0,
|
127
|
+
{
|
128
|
+
enabled: !!watchCampaignId
|
129
|
+
}
|
130
|
+
);
|
103
131
|
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-y-8", children: [
|
104
132
|
/* @__PURE__ */ jsx2(
|
105
133
|
Form.Field,
|
@@ -159,47 +187,20 @@ var AddCampaignPromotionFields = ({
|
|
159
187
|
{
|
160
188
|
control: form.control,
|
161
189
|
name: "campaign_id",
|
162
|
-
render: ({ field: { onChange,
|
190
|
+
render: ({ field: { onChange, ...field } }) => {
|
163
191
|
return /* @__PURE__ */ jsxs2(Form.Item, { children: [
|
164
|
-
/* @__PURE__ */ jsx2(Form.Label, { children: t("promotions.form.campaign.existing.title") }),
|
165
|
-
/* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */
|
166
|
-
|
192
|
+
/* @__PURE__ */ jsx2(Form.Label, { tooltip: t("campaigns.fields.campaign_id.hint"), children: t("promotions.form.campaign.existing.title") }),
|
193
|
+
/* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsx2(
|
194
|
+
Combobox,
|
167
195
|
{
|
168
196
|
dir: direction,
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
!campaigns.length && /* @__PURE__ */ jsxs2("div", { className: "flex h-[120px] flex-col items-center justify-center gap-2 p-2", children: [
|
175
|
-
/* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(
|
176
|
-
"promotions.form.campaign.existing.placeholder.title"
|
177
|
-
) }),
|
178
|
-
/* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-muted", children: t(
|
179
|
-
"promotions.form.campaign.existing.placeholder.desc"
|
180
|
-
) })
|
181
|
-
] }),
|
182
|
-
campaigns.map((c) => /* @__PURE__ */ jsx2(Select.Item, { value: c.id, children: c.name?.toUpperCase() }, c.id))
|
183
|
-
] })
|
184
|
-
]
|
197
|
+
options: campaignsCombobox.options,
|
198
|
+
searchValue: campaignsCombobox.searchValue,
|
199
|
+
onSearchValueChange: campaignsCombobox.onSearchValueChange,
|
200
|
+
onChange,
|
201
|
+
...field
|
185
202
|
}
|
186
203
|
) }),
|
187
|
-
/* @__PURE__ */ jsx2(
|
188
|
-
Text2,
|
189
|
-
{
|
190
|
-
size: "small",
|
191
|
-
leading: "compact",
|
192
|
-
className: "text-ui-fg-subtle",
|
193
|
-
children: /* @__PURE__ */ jsx2(
|
194
|
-
Trans,
|
195
|
-
{
|
196
|
-
t,
|
197
|
-
i18nKey: "campaigns.fields.campaign_id.hint",
|
198
|
-
components: [/* @__PURE__ */ jsx2("br", {}, "break")]
|
199
|
-
}
|
200
|
-
)
|
201
|
-
}
|
202
|
-
),
|
203
204
|
/* @__PURE__ */ jsx2(Form.ErrorMessage, {})
|
204
205
|
] });
|
205
206
|
}
|
@@ -210,8 +211,7 @@ var AddCampaignPromotionFields = ({
|
|
210
211
|
] });
|
211
212
|
};
|
212
213
|
var AddCampaignPromotionForm = ({
|
213
|
-
promotion
|
214
|
-
campaigns
|
214
|
+
promotion
|
215
215
|
}) => {
|
216
216
|
const { t } = useTranslation2();
|
217
217
|
const { handleSuccess } = useRouteModal();
|
@@ -262,8 +262,8 @@ var AddCampaignPromotionForm = ({
|
|
262
262
|
AddCampaignPromotionFields,
|
263
263
|
{
|
264
264
|
form,
|
265
|
-
|
266
|
-
|
265
|
+
withNewCampaign: false,
|
266
|
+
promotionCurrencyCode: promotion.application_method?.currency_code
|
267
267
|
}
|
268
268
|
) }),
|
269
269
|
/* @__PURE__ */ jsx2(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
|
@@ -10285,7 +10285,10 @@ var en_default = {
|
|
10285
10285
|
stockLocations: {
|
10286
10286
|
domain: "Locations & Shipping",
|
10287
10287
|
list: {
|
10288
|
-
description: "Manage your store's stock locations and shipping options."
|
10288
|
+
description: "Manage your store's stock locations and shipping options.",
|
10289
|
+
noRecordsMessage: "No records",
|
10290
|
+
noRecordsMessageEmpty: "No locations found",
|
10291
|
+
noRecordsMessageFiltered: "No locations found matching the filters"
|
10289
10292
|
},
|
10290
10293
|
create: {
|
10291
10294
|
header: "Create Stock Location",
|
@@ -10298,7 +10301,8 @@ var en_default = {
|
|
10298
10301
|
successToast: "Location {{name}} was successfully updated."
|
10299
10302
|
},
|
10300
10303
|
delete: {
|
10301
|
-
confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.'
|
10304
|
+
confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.',
|
10305
|
+
successToast: 'Location "{{name}}" was successfully deleted.'
|
10302
10306
|
},
|
10303
10307
|
fulfillmentProviders: {
|
10304
10308
|
header: "Fulfillment Providers",
|
@@ -10980,7 +10984,7 @@ var en_default = {
|
|
10980
10984
|
total_used: "Budget used",
|
10981
10985
|
budget_limit: "Budget limit",
|
10982
10986
|
campaign_id: {
|
10983
|
-
hint: "
|
10987
|
+
hint: "Disabled campaigns have budget in a different currency than the promotion."
|
10984
10988
|
}
|
10985
10989
|
},
|
10986
10990
|
budget: {
|
@@ -77,6 +77,7 @@ var useAddOrRemoveCampaignPromotions = (id, options) => {
|
|
77
77
|
onSuccess: (data, variables, context) => {
|
78
78
|
queryClient.invalidateQueries({ queryKey: campaignsQueryKeys.details() });
|
79
79
|
queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.lists() });
|
80
|
+
queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.details() });
|
80
81
|
options?.onSuccess?.(data, variables, context);
|
81
82
|
},
|
82
83
|
...options
|
@@ -54,7 +54,7 @@ import {
|
|
54
54
|
useCollection,
|
55
55
|
useUpdateCollectionProducts
|
56
56
|
} from "./chunk-NCR5UWRI.mjs";
|
57
|
-
import "./chunk-
|
57
|
+
import "./chunk-R2G2B47Y.mjs";
|
58
58
|
import "./chunk-GRT22PE5.mjs";
|
59
59
|
import "./chunk-32IQRUVY.mjs";
|
60
60
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -61,7 +61,7 @@ import {
|
|
61
61
|
useDeleteCollection,
|
62
62
|
useUpdateCollectionProducts
|
63
63
|
} from "./chunk-NCR5UWRI.mjs";
|
64
|
-
import "./chunk-
|
64
|
+
import "./chunk-R2G2B47Y.mjs";
|
65
65
|
import "./chunk-GRT22PE5.mjs";
|
66
66
|
import "./chunk-32IQRUVY.mjs";
|
67
67
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -59,7 +59,7 @@ import {
|
|
59
59
|
useRemoveCustomersFromGroup
|
60
60
|
} from "./chunk-F6PXCY3N.mjs";
|
61
61
|
import "./chunk-NCR5UWRI.mjs";
|
62
|
-
import "./chunk-
|
62
|
+
import "./chunk-R2G2B47Y.mjs";
|
63
63
|
import "./chunk-GRT22PE5.mjs";
|
64
64
|
import "./chunk-32IQRUVY.mjs";
|
65
65
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -6,7 +6,7 @@ import {
|
|
6
6
|
} from "./chunk-Q33G337Z.mjs";
|
7
7
|
import {
|
8
8
|
DataTable
|
9
|
-
} from "./chunk-
|
9
|
+
} from "./chunk-7GBCLBMX.mjs";
|
10
10
|
import {
|
11
11
|
useQueryParams
|
12
12
|
} from "./chunk-C76H5USB.mjs";
|
@@ -41,7 +41,7 @@ import {
|
|
41
41
|
useDeleteCustomerGroupLazy
|
42
42
|
} from "./chunk-F6PXCY3N.mjs";
|
43
43
|
import "./chunk-NCR5UWRI.mjs";
|
44
|
-
import "./chunk-
|
44
|
+
import "./chunk-R2G2B47Y.mjs";
|
45
45
|
import "./chunk-GRT22PE5.mjs";
|
46
46
|
import "./chunk-32IQRUVY.mjs";
|
47
47
|
import "./chunk-KSRI5LOF.mjs";
|
package/dist/{customers-add-customer-group-ZUCFXW2U.mjs → customers-add-customer-group-X3VHASZ6.mjs}
RENAMED
@@ -54,7 +54,7 @@ import {
|
|
54
54
|
useCustomerGroups
|
55
55
|
} from "./chunk-F6PXCY3N.mjs";
|
56
56
|
import "./chunk-NCR5UWRI.mjs";
|
57
|
-
import "./chunk-
|
57
|
+
import "./chunk-R2G2B47Y.mjs";
|
58
58
|
import "./chunk-GRT22PE5.mjs";
|
59
59
|
import "./chunk-32IQRUVY.mjs";
|
60
60
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
RulesFormField
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-5FAWKUSU.mjs";
|
4
4
|
import "./chunk-HFB3OQXI.mjs";
|
5
5
|
import "./chunk-CD7VQIPA.mjs";
|
6
6
|
import "./chunk-IUCDCPJU.mjs";
|
@@ -36,7 +36,7 @@ import {
|
|
36
36
|
usePromotionRemoveRules,
|
37
37
|
usePromotionUpdateRules,
|
38
38
|
useUpdatePromotion
|
39
|
-
} from "./chunk-
|
39
|
+
} from "./chunk-R2G2B47Y.mjs";
|
40
40
|
import "./chunk-GRT22PE5.mjs";
|
41
41
|
import "./chunk-32IQRUVY.mjs";
|
42
42
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -52,7 +52,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
52
52
|
import "./chunk-OHSRRFGN.mjs";
|
53
53
|
import "./chunk-F6PXCY3N.mjs";
|
54
54
|
import "./chunk-NCR5UWRI.mjs";
|
55
|
-
import "./chunk-
|
55
|
+
import "./chunk-R2G2B47Y.mjs";
|
56
56
|
import "./chunk-GRT22PE5.mjs";
|
57
57
|
import {
|
58
58
|
useStockLocations
|
@@ -30,7 +30,7 @@ import {
|
|
30
30
|
} from "./chunk-GIZFNLKK.mjs";
|
31
31
|
import {
|
32
32
|
DataTable
|
33
|
-
} from "./chunk-
|
33
|
+
} from "./chunk-7GBCLBMX.mjs";
|
34
34
|
import {
|
35
35
|
useQueryParams
|
36
36
|
} from "./chunk-C76H5USB.mjs";
|
@@ -71,7 +71,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
71
71
|
import "./chunk-OHSRRFGN.mjs";
|
72
72
|
import "./chunk-F6PXCY3N.mjs";
|
73
73
|
import "./chunk-NCR5UWRI.mjs";
|
74
|
-
import "./chunk-
|
74
|
+
import "./chunk-R2G2B47Y.mjs";
|
75
75
|
import "./chunk-GRT22PE5.mjs";
|
76
76
|
import {
|
77
77
|
useStockLocations
|
@@ -28,7 +28,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
28
28
|
import "./chunk-OHSRRFGN.mjs";
|
29
29
|
import "./chunk-F6PXCY3N.mjs";
|
30
30
|
import "./chunk-NCR5UWRI.mjs";
|
31
|
-
import "./chunk-
|
31
|
+
import "./chunk-R2G2B47Y.mjs";
|
32
32
|
import "./chunk-GRT22PE5.mjs";
|
33
33
|
import "./chunk-32IQRUVY.mjs";
|
34
34
|
import "./chunk-KSRI5LOF.mjs";
|
@@ -42,7 +42,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
42
42
|
import "./chunk-OHSRRFGN.mjs";
|
43
43
|
import "./chunk-F6PXCY3N.mjs";
|
44
44
|
import "./chunk-NCR5UWRI.mjs";
|
45
|
-
import "./chunk-
|
45
|
+
import "./chunk-R2G2B47Y.mjs";
|
46
46
|
import "./chunk-GRT22PE5.mjs";
|
47
47
|
import {
|
48
48
|
useStockLocations
|
@@ -58,7 +58,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
58
58
|
import "./chunk-OHSRRFGN.mjs";
|
59
59
|
import "./chunk-F6PXCY3N.mjs";
|
60
60
|
import "./chunk-NCR5UWRI.mjs";
|
61
|
-
import "./chunk-
|
61
|
+
import "./chunk-R2G2B47Y.mjs";
|
62
62
|
import {
|
63
63
|
useDeleteShippingOption
|
64
64
|
} from "./chunk-GRT22PE5.mjs";
|
@@ -61,7 +61,7 @@ import "./chunk-ZCZL3STK.mjs";
|
|
61
61
|
import "./chunk-OHSRRFGN.mjs";
|
62
62
|
import "./chunk-F6PXCY3N.mjs";
|
63
63
|
import "./chunk-NCR5UWRI.mjs";
|
64
|
-
import "./chunk-
|
64
|
+
import "./chunk-R2G2B47Y.mjs";
|
65
65
|
import "./chunk-GRT22PE5.mjs";
|
66
66
|
import {
|
67
67
|
useFulfillmentProviders,
|