@mercurjs/vendor 2.2.0-canary.35 → 2.2.0-canary.37
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/{[id]-NVWGO5GW.js → [id]-723MIJNH.js} +2 -2
- package/dist/{[id]-CGGHWBCD.js → [id]-7UGDLE7D.js} +3 -3
- package/dist/{[id]-QD47YZUM.js → [id]-C5CBGPVF.js} +4 -5
- package/dist/{add-VELAOHYG.js → add-3KOZ5ZLM.js} +2 -2
- package/dist/{add-OC7HJE2H.js → add-AZFG2H4K.js} +2 -2
- package/dist/{add-promotions-Q6YIKZTP.js → add-promotions-NH7YL5WP.js} +3 -3
- package/dist/{breadcrumb-UQNOHARQ.js → breadcrumb-BXD3SRM7.js} +1 -1
- package/dist/{chunk-MZRZVLWD.js → chunk-3C2T27YW.js} +1 -1
- package/dist/{chunk-TKSKCYM3.js → chunk-5FBQOAXU.js} +8 -1
- package/dist/{chunk-BNHIPRR7.js → chunk-5K5NPIWZ.js} +5 -4
- package/dist/{chunk-CMTMUL4S.js → chunk-6TJIKN6S.js} +1 -1
- package/dist/{chunk-PXS7WEG4.js → chunk-6YE7WQLK.js} +2 -2
- package/dist/{chunk-SOYN6N65.js → chunk-76EC7Y3H.js} +1 -1
- package/dist/{chunk-SWRW2NL5.js → chunk-7W2QSBGR.js} +36 -21
- package/dist/{chunk-YJVQBCPP.js → chunk-FQIIYVUA.js} +1 -1
- package/dist/{chunk-I5JII7OA.js → chunk-GKASDQN6.js} +1 -1
- package/dist/{chunk-QC2VB7YS.js → chunk-MKDG6SUF.js} +2 -2
- package/dist/{chunk-LJ2KCQOL.js → chunk-Q6SPIHFR.js} +3 -1
- package/dist/{chunk-V25DEJEO.js → chunk-R3NMO65F.js} +1 -1
- package/dist/{chunk-OBLUNXH6.js → chunk-UMVZ2ZGM.js} +1 -1
- package/dist/{create-RIAKCS7Y.js → create-D4GQXHMB.js} +5 -5
- package/dist/{create-GHMOBVUU.js → create-IDGXIIGU.js} +1 -1
- package/dist/{create-OXXB5RWB.js → create-P5XT6EQW.js} +2 -2
- package/dist/{create-DTR2FWZB.js → create-SD4OHU2P.js} +4 -3
- package/dist/{create-SFQM53BE.js → create-VKG5OL4O.js} +2 -2
- package/dist/{edit-FKHX3YXU.js → edit-3ZDWHUAC.js} +6 -29
- package/dist/{edit-7OTEUMDE.js → edit-BKVJPZB4.js} +3 -3
- package/dist/{edit-EFJWXYXC.js → edit-CFIXT7MW.js} +3 -3
- package/dist/{edit-QFPVJY3V.js → edit-VN4MD5TS.js} +2 -2
- package/dist/{edit-price-R22WECH7.js → edit-price-F7ZWM3FN.js} +1 -1
- package/dist/{edit-stock-7KPWVYCL.js → edit-stock-ITAZNHPU.js} +1 -1
- package/dist/index.js +34 -34
- package/dist/{inventory-TQBOOVHG.js → inventory-4JKLAZ2Q.js} +1 -1
- package/dist/{media-PXVWQR6V.js → media-FKTY3BWW.js} +3 -3
- package/dist/{offer-create-page-I3LAPBLT.js → offer-create-page-PRNJY2OR.js} +1 -1
- package/dist/pages/index.js +8 -8
- package/dist/{pricing-YBPHH6S4.js → pricing-5VUPPNKS.js} +1 -1
- package/dist/{pricing-KPE5F4A5.js → pricing-POKK7VCU.js} +2 -2
- package/dist/{product-variant-edit-AOO2LVNS.js → product-variant-edit-XEHH3SSH.js} +1 -1
- package/dist/{products-EREMI6BJ.js → products-U3UTG6W7.js} +5 -5
- package/dist/{promotions-IOMDCW4S.js → promotions-UUMCXA3T.js} +4 -4
- package/dist/{register-72GZ6LMZ.js → register-TXHHFYXK.js} +1 -1
- package/dist/{reset-password-ZAEY6ITS.js → reset-password-ZPUR7W43.js} +1 -1
- package/dist/{stock-4O42RV37.js → stock-5AXXW3KI.js} +1 -1
- package/package.json +6 -6
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-BWGPN6XV.js";
|
|
7
7
|
import {
|
|
8
8
|
StatusCell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GKASDQN6.js";
|
|
10
10
|
import "./chunk-FMFVTERD.js";
|
|
11
11
|
import "./chunk-DB6ANJBO.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5K5NPIWZ.js";
|
|
13
13
|
import {
|
|
14
14
|
NoRecords
|
|
15
15
|
} from "./chunk-634XVU3D.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableColumns,
|
|
9
9
|
usePromotionTableQuery
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-6TJIKN6S.js";
|
|
11
|
+
import "./chunk-GKASDQN6.js";
|
|
12
12
|
import "./chunk-JHIMVLB2.js";
|
|
13
13
|
import {
|
|
14
14
|
usePromotionTableFilters
|
|
@@ -19,7 +19,7 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
19
19
|
import {
|
|
20
20
|
currencies
|
|
21
21
|
} from "./chunk-IQPN4PZJ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-5K5NPIWZ.js";
|
|
23
23
|
import "./chunk-FQERBIVS.js";
|
|
24
24
|
import {
|
|
25
25
|
_DataTable,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-JJP6AKMV.js";
|
|
67
67
|
import {
|
|
68
68
|
PRODUCT_DETAIL_QUERY
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-Q6SPIHFR.js";
|
|
70
70
|
import {
|
|
71
71
|
productsQueryKeys,
|
|
72
72
|
useCancelProductEdit,
|
|
@@ -590,7 +590,6 @@ var useOrderBy = () => {
|
|
|
590
590
|
|
|
591
591
|
// src/pages/products/[id]/_components/product-attribute-section/product-attribute-section.tsx
|
|
592
592
|
import {
|
|
593
|
-
ListBullet,
|
|
594
593
|
Plus,
|
|
595
594
|
Trash as Trash2,
|
|
596
595
|
Swatch,
|
|
@@ -752,12 +751,12 @@ var ProductAttributeSection = ({
|
|
|
752
751
|
{
|
|
753
752
|
label: t("products.create.attributes.addExisting"),
|
|
754
753
|
to: "attributes/add",
|
|
755
|
-
icon: /* @__PURE__ */ jsx4(
|
|
754
|
+
icon: /* @__PURE__ */ jsx4(Plus, {})
|
|
756
755
|
},
|
|
757
756
|
{
|
|
758
757
|
label: t("products.create.attributes.createNew"),
|
|
759
758
|
to: "attributes/create",
|
|
760
|
-
icon: /* @__PURE__ */ jsx4(
|
|
759
|
+
icon: /* @__PURE__ */ jsx4(PencilSquare3, {})
|
|
761
760
|
}
|
|
762
761
|
]
|
|
763
762
|
}
|
|
@@ -771,7 +770,7 @@ var ProductAttributeSection = ({
|
|
|
771
770
|
AttributeGroup,
|
|
772
771
|
{
|
|
773
772
|
icon: /* @__PURE__ */ jsx4(Swatch, {}),
|
|
774
|
-
title: t("products.
|
|
773
|
+
title: t("products.attributeVariations"),
|
|
775
774
|
description: t("products.attributeVariantsDescription"),
|
|
776
775
|
attributes: variantAttributes,
|
|
777
776
|
productId: product.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeValueInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YE7WQLK.js";
|
|
4
4
|
import {
|
|
5
5
|
useAttributeTableFilters,
|
|
6
6
|
useAttributeTableQuery
|
|
@@ -55,7 +55,7 @@ import "./chunk-6FDPVW7Y.js";
|
|
|
55
55
|
import "./chunk-JJP6AKMV.js";
|
|
56
56
|
import {
|
|
57
57
|
PRODUCT_DETAIL_QUERY
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-Q6SPIHFR.js";
|
|
59
59
|
import {
|
|
60
60
|
useBatchProductAttributes,
|
|
61
61
|
useProduct,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PriceListCreateProductsSchema,
|
|
3
3
|
usePriceListCurrencyData,
|
|
4
4
|
usePriceListGridColumns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-76EC7Y3H.js";
|
|
6
6
|
import "./chunk-N335VHD3.js";
|
|
7
7
|
import "./chunk-EBZ5VZEO.js";
|
|
8
8
|
import "./chunk-4F5GP7J7.js";
|
|
@@ -57,7 +57,7 @@ import "./chunk-DB6ANJBO.js";
|
|
|
57
57
|
import "./chunk-PHOCVOZ5.js";
|
|
58
58
|
import {
|
|
59
59
|
DataGrid
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5FBQOAXU.js";
|
|
61
61
|
import "./chunk-IQPN4PZJ.js";
|
|
62
62
|
import "./chunk-SMQT3ZNO.js";
|
|
63
63
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6TJIKN6S.js";
|
|
5
|
+
import "./chunk-GKASDQN6.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableFilters
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import "./chunk-FMFVTERD.js";
|
|
11
11
|
import "./chunk-DB6ANJBO.js";
|
|
12
12
|
import "./chunk-PHOCVOZ5.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-5K5NPIWZ.js";
|
|
14
14
|
import "./chunk-TKGWSUEI.js";
|
|
15
15
|
import {
|
|
16
16
|
KeyboundForm
|
|
@@ -3392,7 +3392,14 @@ var DataGridHeader = ({
|
|
|
3392
3392
|
)
|
|
3393
3393
|
] }),
|
|
3394
3394
|
/* @__PURE__ */ jsxs9("div", { className: "ml-auto flex items-center gap-x-2", children: [
|
|
3395
|
-
headerContent
|
|
3395
|
+
headerContent && /* @__PURE__ */ jsx12(
|
|
3396
|
+
"div",
|
|
3397
|
+
{
|
|
3398
|
+
className: "flex items-center",
|
|
3399
|
+
onFocusCapture: () => onHeaderInteractionChange(true),
|
|
3400
|
+
children: headerContent
|
|
3401
|
+
}
|
|
3402
|
+
),
|
|
3396
3403
|
errorCount > 0 && /* @__PURE__ */ jsxs9(
|
|
3397
3404
|
Button2,
|
|
3398
3405
|
{
|
|
@@ -9348,7 +9348,7 @@ var en_default = {
|
|
|
9348
9348
|
successToast: "Product {{title}} was successfully created.",
|
|
9349
9349
|
requestSuccessToast: "Product was successfully requested. You can now create offers for this product. Once the product is approved by the admin, your offers will appear on the storefront. Only offers with stock levels and prices set will be visible.",
|
|
9350
9350
|
attributes: {
|
|
9351
|
-
description: "Manage attributes and variations for your product, e.g. color, size, brand etc. Select from attributes defined by the
|
|
9351
|
+
description: "Manage attributes and variations for your product, e.g. color, size, brand etc. Select from attributes defined by the marketplace or create your own.",
|
|
9352
9352
|
requiredHeading: "Required Attributes",
|
|
9353
9353
|
requiredDescription: "These attributes are required for products in this category.",
|
|
9354
9354
|
buttonLabel: "Attribute",
|
|
@@ -9361,11 +9361,11 @@ var en_default = {
|
|
|
9361
9361
|
addExisting: "Add existing",
|
|
9362
9362
|
createNew: "Create new",
|
|
9363
9363
|
requiredAttributes: "Required attributes",
|
|
9364
|
-
requiredAttributesHint: "These attributes are required by the
|
|
9364
|
+
requiredAttributesHint: "These attributes are required by the marketplace. Select them before proceeding.",
|
|
9365
9365
|
selectValues: "Select values",
|
|
9366
9366
|
tip: "Tip",
|
|
9367
9367
|
useForVariants: "Use for variants",
|
|
9368
|
-
useForVariantsDescription: "If checked,
|
|
9368
|
+
useForVariantsDescription: "If checked, you will be able to create variants using this attribute. If not, the attribute will be used for informational purposes only.",
|
|
9369
9369
|
variantAxisTip: "This attribute will create variants. You can define them in the next step.",
|
|
9370
9370
|
editVariantAxisTip: "You will be able to create variants using this attribute.",
|
|
9371
9371
|
warning: "Warning",
|
|
@@ -9439,7 +9439,8 @@ var en_default = {
|
|
|
9439
9439
|
}
|
|
9440
9440
|
},
|
|
9441
9441
|
attributes: "Attributes",
|
|
9442
|
-
|
|
9442
|
+
attributeVariations: "Variations",
|
|
9443
|
+
attributeVariantsDescription: "Attributes used for variants",
|
|
9443
9444
|
attributeProductInformation: "Product Information",
|
|
9444
9445
|
attributeProductInformationDescription: "Attributes used for informational purposes",
|
|
9445
9446
|
attributeRequiredByMarketplace: "This attribute is required by the Marketplace",
|
|
@@ -46,7 +46,7 @@ var AttributeValueInput = ({
|
|
|
46
46
|
/* @__PURE__ */ jsx(Select.Trigger, { children: /* @__PURE__ */ jsx(
|
|
47
47
|
Select.Value,
|
|
48
48
|
{
|
|
49
|
-
placeholder: t("products.create.attributes.
|
|
49
|
+
placeholder: t("products.create.attributes.selectValuePlaceholder")
|
|
50
50
|
}
|
|
51
51
|
) }),
|
|
52
52
|
/* @__PURE__ */ jsx(Select.Content, { children: availableValues.map((v) => /* @__PURE__ */ jsx(Select.Item, { value: v.name, children: v.name }, v.id)) })
|
|
@@ -63,7 +63,7 @@ var AttributeValueInput = ({
|
|
|
63
63
|
/* @__PURE__ */ jsx(Select.Trigger, { children: /* @__PURE__ */ jsx(
|
|
64
64
|
Select.Value,
|
|
65
65
|
{
|
|
66
|
-
placeholder: t("products.create.attributes.
|
|
66
|
+
placeholder: t("products.create.attributes.selectValuePlaceholder")
|
|
67
67
|
}
|
|
68
68
|
) }),
|
|
69
69
|
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DataGrid,
|
|
6
6
|
createDataGridHelper
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5FBQOAXU.js";
|
|
8
8
|
import {
|
|
9
9
|
HandleInput
|
|
10
10
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
} from "./chunk-OVPAOBZB.js";
|
|
20
20
|
import {
|
|
21
21
|
UploadMediaFormItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FQIIYVUA.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
25
25
|
ProductCreateSchema,
|
|
26
26
|
generateVariantsFromAttributes,
|
|
27
27
|
normalizeProductFormValues
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R3NMO65F.js";
|
|
29
29
|
import {
|
|
30
30
|
ChipInput
|
|
31
31
|
} from "./chunk-KDE4HKH2.js";
|
|
@@ -89,6 +89,7 @@ var import_types = __toESM(require_dist(), 1);
|
|
|
89
89
|
import { XMarkMini } from "@medusajs/icons";
|
|
90
90
|
import {
|
|
91
91
|
Button as Button2,
|
|
92
|
+
clx,
|
|
92
93
|
Heading,
|
|
93
94
|
Hint,
|
|
94
95
|
IconButton,
|
|
@@ -638,7 +639,7 @@ var SelectedAttributes = ({
|
|
|
638
639
|
Select.Value,
|
|
639
640
|
{
|
|
640
641
|
placeholder: t(
|
|
641
|
-
"products.create.attributes.
|
|
642
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
642
643
|
)
|
|
643
644
|
}
|
|
644
645
|
) }),
|
|
@@ -660,7 +661,7 @@ var SelectedAttributes = ({
|
|
|
660
661
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
661
662
|
onChange: (e) => onChange(e.target.value),
|
|
662
663
|
placeholder: t(
|
|
663
|
-
"products.create.attributes.
|
|
664
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
664
665
|
)
|
|
665
666
|
}
|
|
666
667
|
)
|
|
@@ -681,7 +682,7 @@ var SelectedAttributes = ({
|
|
|
681
682
|
Select.Value,
|
|
682
683
|
{
|
|
683
684
|
placeholder: t(
|
|
684
|
-
"products.create.attributes.
|
|
685
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
685
686
|
)
|
|
686
687
|
}
|
|
687
688
|
) }),
|
|
@@ -705,7 +706,7 @@ var SelectedAttributes = ({
|
|
|
705
706
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
706
707
|
onChange: (e) => onChange(e.target.value),
|
|
707
708
|
placeholder: t(
|
|
708
|
-
"products.create.attributes.
|
|
709
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
709
710
|
)
|
|
710
711
|
}
|
|
711
712
|
)
|
|
@@ -713,7 +714,7 @@ var SelectedAttributes = ({
|
|
|
713
714
|
),
|
|
714
715
|
field.use_for_variants && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
715
716
|
/* @__PURE__ */ jsx2("div", {}),
|
|
716
|
-
/* @__PURE__ */ jsx2(VariantAxisTip, {})
|
|
717
|
+
/* @__PURE__ */ jsx2(VariantAxisTip, { className: "border-none" })
|
|
717
718
|
] })
|
|
718
719
|
] }),
|
|
719
720
|
/* @__PURE__ */ jsx2(
|
|
@@ -834,7 +835,7 @@ var RequiredAttributeField = ({
|
|
|
834
835
|
Select.Value,
|
|
835
836
|
{
|
|
836
837
|
placeholder: t(
|
|
837
|
-
"products.create.attributes.
|
|
838
|
+
"products.create.attributes.selectValuePlaceholder"
|
|
838
839
|
)
|
|
839
840
|
}
|
|
840
841
|
) }),
|
|
@@ -864,7 +865,7 @@ var RequiredAttributeField = ({
|
|
|
864
865
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
865
866
|
onChange: (e) => onChange(e.target.value),
|
|
866
867
|
placeholder: t(
|
|
867
|
-
"products.create.attributes.
|
|
868
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
868
869
|
)
|
|
869
870
|
}
|
|
870
871
|
) : attribute.type === import_types.AttributeType.TOGGLE ? /* @__PURE__ */ jsx2(
|
|
@@ -883,7 +884,7 @@ var RequiredAttributeField = ({
|
|
|
883
884
|
value: typeof value === "string" ? value : value?.[0] ?? "",
|
|
884
885
|
onChange: (e) => onChange(e.target.value),
|
|
885
886
|
placeholder: t(
|
|
886
|
-
"products.create.attributes.
|
|
887
|
+
"products.create.attributes.enterValuePlaceholder"
|
|
887
888
|
)
|
|
888
889
|
}
|
|
889
890
|
) }),
|
|
@@ -893,9 +894,16 @@ var RequiredAttributeField = ({
|
|
|
893
894
|
}
|
|
894
895
|
);
|
|
895
896
|
};
|
|
896
|
-
var VariantAxisTip = () => {
|
|
897
|
+
var VariantAxisTip = ({ className }) => {
|
|
897
898
|
const { t } = useTranslation2();
|
|
898
|
-
return /* @__PURE__ */ jsx2(
|
|
899
|
+
return /* @__PURE__ */ jsx2(
|
|
900
|
+
InlineTip,
|
|
901
|
+
{
|
|
902
|
+
className: clx("border-none", className),
|
|
903
|
+
label: t("products.create.attributes.tip"),
|
|
904
|
+
children: t("products.create.attributes.variantAxisTip")
|
|
905
|
+
}
|
|
906
|
+
);
|
|
899
907
|
};
|
|
900
908
|
Root._tabMeta = defineTabMeta({
|
|
901
909
|
id: "attributes",
|
|
@@ -1572,16 +1580,23 @@ var Root4 = () => {
|
|
|
1572
1580
|
{
|
|
1573
1581
|
className: "flex size-full flex-col divide-y overflow-hidden",
|
|
1574
1582
|
"data-testid": "product-create-variants-form",
|
|
1575
|
-
children: /* @__PURE__ */ jsx8(
|
|
1576
|
-
|
|
1583
|
+
children: /* @__PURE__ */ jsx8(
|
|
1584
|
+
"div",
|
|
1577
1585
|
{
|
|
1578
|
-
|
|
1579
|
-
data:
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1586
|
+
className: "min-h-0 flex-1 overflow-hidden",
|
|
1587
|
+
"data-testid": "product-create-variants-form-datagrid",
|
|
1588
|
+
children: /* @__PURE__ */ jsx8(
|
|
1589
|
+
DataGrid,
|
|
1590
|
+
{
|
|
1591
|
+
columns,
|
|
1592
|
+
data: filteredVariantData,
|
|
1593
|
+
state: form,
|
|
1594
|
+
onEditingChange: (editing) => setCloseOnEscape(!editing),
|
|
1595
|
+
headerContent
|
|
1596
|
+
}
|
|
1597
|
+
)
|
|
1583
1598
|
}
|
|
1584
|
-
)
|
|
1599
|
+
)
|
|
1585
1600
|
}
|
|
1586
1601
|
);
|
|
1587
1602
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListUpdateProductsSchema,
|
|
3
3
|
usePriceListGridColumns
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-76EC7Y3H.js";
|
|
5
5
|
import {
|
|
6
6
|
isProductRow
|
|
7
7
|
} from "./chunk-XRNDVICA.js";
|
|
8
8
|
import {
|
|
9
9
|
DataGrid
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5FBQOAXU.js";
|
|
11
11
|
import {
|
|
12
12
|
castNumber
|
|
13
13
|
} from "./chunk-SMQT3ZNO.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductCreate,
|
|
3
3
|
ProductCreatePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7W2QSBGR.js";
|
|
5
5
|
import "./chunk-LEWA4BPH.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5FBQOAXU.js";
|
|
7
7
|
import "./chunk-HJ56YXBU.js";
|
|
8
8
|
import "./chunk-IQPN4PZJ.js";
|
|
9
9
|
import "./chunk-YVCBMOJG.js";
|
|
10
10
|
import "./chunk-4IRQSBA7.js";
|
|
11
11
|
import "./chunk-OVPAOBZB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FQIIYVUA.js";
|
|
13
13
|
import {
|
|
14
14
|
EditProductMediaSchema,
|
|
15
15
|
MediaSchema,
|
|
16
16
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
17
17
|
ProductCreateSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-R3NMO65F.js";
|
|
19
19
|
import "./chunk-AJLGY3LQ.js";
|
|
20
20
|
import "./chunk-SMQT3ZNO.js";
|
|
21
21
|
import "./chunk-KDE4HKH2.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-HFRHHT36.js";
|
|
|
24
24
|
import "./chunk-IV57G2CB.js";
|
|
25
25
|
import "./chunk-VBRTC2VU.js";
|
|
26
26
|
import "./chunk-WJ5EU3KW.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-5K5NPIWZ.js";
|
|
28
28
|
import "./chunk-TKGWSUEI.js";
|
|
29
29
|
import "./chunk-SITRHMZZ.js";
|
|
30
30
|
import "./chunk-GDWBOQI5.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ConditionalPriceSchema,
|
|
4
4
|
ShippingOptionPriceProvider,
|
|
5
5
|
useShippingOptionPriceColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3C2T27YW.js";
|
|
7
7
|
import {
|
|
8
8
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
9
9
|
ShippingOptionPriceType
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import "./chunk-3BXCPHN6.js";
|
|
12
12
|
import {
|
|
13
13
|
DataGrid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5FBQOAXU.js";
|
|
15
15
|
import "./chunk-IQPN4PZJ.js";
|
|
16
16
|
import {
|
|
17
17
|
useComboboxData
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeValueInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YE7WQLK.js";
|
|
4
4
|
import "./chunk-VBRTC2VU.js";
|
|
5
5
|
import "./chunk-TKGWSUEI.js";
|
|
6
6
|
import {
|
|
@@ -41,7 +41,7 @@ import "./chunk-6FDPVW7Y.js";
|
|
|
41
41
|
import "./chunk-JJP6AKMV.js";
|
|
42
42
|
import {
|
|
43
43
|
PRODUCT_DETAIL_QUERY
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Q6SPIHFR.js";
|
|
45
45
|
import {
|
|
46
46
|
useCreateProductVariant,
|
|
47
47
|
useProduct
|
|
@@ -100,7 +100,7 @@ var CreateProductVariantForm = ({
|
|
|
100
100
|
});
|
|
101
101
|
const { mutateAsync, isPending } = useCreateProductVariant(product.id);
|
|
102
102
|
const handleSubmit = form.handleSubmit(async (data) => {
|
|
103
|
-
const { title, options } = data;
|
|
103
|
+
const { title, sku, options } = data;
|
|
104
104
|
const cleanedOptions = variantAttributes.reduce(
|
|
105
105
|
(acc, attr) => {
|
|
106
106
|
const fieldKey = attr.handle ?? attr.id;
|
|
@@ -113,6 +113,7 @@ var CreateProductVariantForm = ({
|
|
|
113
113
|
await mutateAsync(
|
|
114
114
|
{
|
|
115
115
|
title,
|
|
116
|
+
sku: sku || void 0,
|
|
116
117
|
options: Object.keys(cleanedOptions).length ? cleanedOptions : void 0
|
|
117
118
|
},
|
|
118
119
|
{
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PriceListRulesSchema,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76EC7Y3H.js";
|
|
7
7
|
import {
|
|
8
8
|
exctractPricesFromProducts,
|
|
9
9
|
isProductRow
|
|
@@ -24,7 +24,7 @@ import "./chunk-DB6ANJBO.js";
|
|
|
24
24
|
import "./chunk-PHOCVOZ5.js";
|
|
25
25
|
import {
|
|
26
26
|
DataGrid
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5FBQOAXU.js";
|
|
28
28
|
import "./chunk-IQPN4PZJ.js";
|
|
29
29
|
import "./chunk-SMQT3ZNO.js";
|
|
30
30
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeValueInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YE7WQLK.js";
|
|
4
4
|
import {
|
|
5
5
|
ChipInput
|
|
6
6
|
} from "./chunk-KDE4HKH2.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-6FDPVW7Y.js";
|
|
|
44
44
|
import "./chunk-JJP6AKMV.js";
|
|
45
45
|
import {
|
|
46
46
|
PRODUCT_DETAIL_QUERY
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-Q6SPIHFR.js";
|
|
48
48
|
import {
|
|
49
49
|
useBatchProductAttributes,
|
|
50
50
|
useProduct
|
|
@@ -58,22 +58,14 @@ import {
|
|
|
58
58
|
} from "./chunk-NBMM2TZK.js";
|
|
59
59
|
|
|
60
60
|
// src/pages/products/[id]/attributes/[attribute_id]/edit/index.tsx
|
|
61
|
-
import { Heading
|
|
61
|
+
import { Heading } from "@medusajs/ui";
|
|
62
62
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
63
63
|
import { useParams } from "react-router-dom";
|
|
64
64
|
|
|
65
65
|
// src/pages/products/[id]/attributes/[attribute_id]/edit/components/edit-attribute-form/edit-attribute-form.tsx
|
|
66
66
|
var import_types = __toESM(require_dist(), 1);
|
|
67
67
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
68
|
-
import {
|
|
69
|
-
Button,
|
|
70
|
-
Hint,
|
|
71
|
-
InlineTip,
|
|
72
|
-
Input,
|
|
73
|
-
Label,
|
|
74
|
-
Switch,
|
|
75
|
-
toast
|
|
76
|
-
} from "@medusajs/ui";
|
|
68
|
+
import { Button, InlineTip, Input, Label, toast } from "@medusajs/ui";
|
|
77
69
|
import { useForm } from "react-hook-form";
|
|
78
70
|
import { useTranslation } from "react-i18next";
|
|
79
71
|
import * as zod from "zod";
|
|
@@ -220,22 +212,7 @@ var EditScopedAttributeForm = ({
|
|
|
220
212
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
221
213
|
] })
|
|
222
214
|
}
|
|
223
|
-
)
|
|
224
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
225
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-3 py-1.5", children: [
|
|
226
|
-
/* @__PURE__ */ jsx(
|
|
227
|
-
Switch,
|
|
228
|
-
{
|
|
229
|
-
className: "shrink-0 rtl:rotate-180",
|
|
230
|
-
checked: isAxis,
|
|
231
|
-
disabled: true
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
235
|
-
/* @__PURE__ */ jsx(Label, { size: "xsmall", weight: "plus", children: t("products.create.attributes.useForVariants") }),
|
|
236
|
-
/* @__PURE__ */ jsx(Hint, { className: "!txt-small", children: t("products.create.attributes.useForVariantsDescription") })
|
|
237
|
-
] })
|
|
238
|
-
] })
|
|
215
|
+
)
|
|
239
216
|
] }) }),
|
|
240
217
|
isAxis && /* @__PURE__ */ jsx(VariantAxisTip, {}),
|
|
241
218
|
/* @__PURE__ */ jsx(AttributeWarning, {})
|
|
@@ -380,7 +357,7 @@ var Component = () => {
|
|
|
380
357
|
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
381
358
|
/* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
|
|
382
359
|
/* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.editAttribute") }) }),
|
|
383
|
-
/* @__PURE__ */ jsx2(RouteDrawer.Description, {
|
|
360
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("products.editAttributeHint") })
|
|
384
361
|
] }),
|
|
385
362
|
ready && /* @__PURE__ */ jsx2(EditAttributeForm, { productId: id, attribute })
|
|
386
363
|
] });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListPricesEditForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKDG6SUF.js";
|
|
4
4
|
import {
|
|
5
5
|
usePriceListCurrencyData
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76EC7Y3H.js";
|
|
7
7
|
import "./chunk-XRNDVICA.js";
|
|
8
8
|
import "./chunk-6IJMSVC6.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5FBQOAXU.js";
|
|
10
10
|
import "./chunk-IQPN4PZJ.js";
|
|
11
11
|
import "./chunk-SMQT3ZNO.js";
|
|
12
12
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListPricesEditForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKDG6SUF.js";
|
|
4
4
|
import {
|
|
5
5
|
usePriceListCurrencyData
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76EC7Y3H.js";
|
|
7
7
|
import "./chunk-XRNDVICA.js";
|
|
8
8
|
import "./chunk-6IJMSVC6.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5FBQOAXU.js";
|
|
10
10
|
import "./chunk-IQPN4PZJ.js";
|
|
11
11
|
import "./chunk-SMQT3ZNO.js";
|
|
12
12
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
FileUpload,
|
|
9
9
|
MediaSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R3NMO65F.js";
|
|
11
11
|
import "./chunk-AJLGY3LQ.js";
|
|
12
12
|
import "./chunk-SMQT3ZNO.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-5K5NPIWZ.js";
|
|
14
14
|
import "./chunk-TKGWSUEI.js";
|
|
15
15
|
import {
|
|
16
16
|
KeyboundForm
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-WJ5EU3KW.js";
|
|
9
9
|
import {
|
|
10
10
|
I18n
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5K5NPIWZ.js";
|
|
12
12
|
import "./chunk-TKGWSUEI.js";
|
|
13
13
|
import "./chunk-SITRHMZZ.js";
|
|
14
14
|
import "./chunk-GDWBOQI5.js";
|
|
@@ -2907,7 +2907,7 @@ function getRouteMap({
|
|
|
2907
2907
|
{
|
|
2908
2908
|
path: "",
|
|
2909
2909
|
lazy: async () => {
|
|
2910
|
-
const { ProductListPage } = await import("./products-
|
|
2910
|
+
const { ProductListPage } = await import("./products-U3UTG6W7.js");
|
|
2911
2911
|
return {
|
|
2912
2912
|
Component: ProductListPage
|
|
2913
2913
|
};
|
|
@@ -2916,7 +2916,7 @@ function getRouteMap({
|
|
|
2916
2916
|
{
|
|
2917
2917
|
path: "create",
|
|
2918
2918
|
lazy: async () => {
|
|
2919
|
-
const { ProductCreatePage } = await import("./create-
|
|
2919
|
+
const { ProductCreatePage } = await import("./create-D4GQXHMB.js");
|
|
2920
2920
|
return {
|
|
2921
2921
|
Component: ProductCreatePage
|
|
2922
2922
|
};
|
|
@@ -2927,8 +2927,8 @@ function getRouteMap({
|
|
|
2927
2927
|
{
|
|
2928
2928
|
path: ":id",
|
|
2929
2929
|
lazy: async () => {
|
|
2930
|
-
const { loader } = await import("./[id]-
|
|
2931
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
2930
|
+
const { loader } = await import("./[id]-C5CBGPVF.js");
|
|
2931
|
+
const { Breadcrumb } = await import("./breadcrumb-BXD3SRM7.js");
|
|
2932
2932
|
return {
|
|
2933
2933
|
Component: Outlet4,
|
|
2934
2934
|
loader,
|
|
@@ -2941,7 +2941,7 @@ function getRouteMap({
|
|
|
2941
2941
|
{
|
|
2942
2942
|
path: "",
|
|
2943
2943
|
lazy: async () => {
|
|
2944
|
-
const { ProductDetailPage } = await import("./[id]-
|
|
2944
|
+
const { ProductDetailPage } = await import("./[id]-C5CBGPVF.js");
|
|
2945
2945
|
return {
|
|
2946
2946
|
Component: ProductDetailPage
|
|
2947
2947
|
};
|
|
@@ -2953,7 +2953,7 @@ function getRouteMap({
|
|
|
2953
2953
|
},
|
|
2954
2954
|
{
|
|
2955
2955
|
path: "edit-variant",
|
|
2956
|
-
lazy: () => import("./product-variant-edit-
|
|
2956
|
+
lazy: () => import("./product-variant-edit-XEHH3SSH.js")
|
|
2957
2957
|
},
|
|
2958
2958
|
{
|
|
2959
2959
|
path: "sales-channels",
|
|
@@ -2965,7 +2965,7 @@ function getRouteMap({
|
|
|
2965
2965
|
},
|
|
2966
2966
|
{
|
|
2967
2967
|
path: "media",
|
|
2968
|
-
lazy: () => import("./media-
|
|
2968
|
+
lazy: () => import("./media-FKTY3BWW.js")
|
|
2969
2969
|
},
|
|
2970
2970
|
{
|
|
2971
2971
|
path: "attributes",
|
|
@@ -2977,11 +2977,11 @@ function getRouteMap({
|
|
|
2977
2977
|
},
|
|
2978
2978
|
{
|
|
2979
2979
|
path: "attributes/add",
|
|
2980
|
-
lazy: () => import("./add-
|
|
2980
|
+
lazy: () => import("./add-3KOZ5ZLM.js")
|
|
2981
2981
|
},
|
|
2982
2982
|
{
|
|
2983
2983
|
path: "attributes/:attribute_id/edit",
|
|
2984
|
-
lazy: () => import("./edit-
|
|
2984
|
+
lazy: () => import("./edit-3ZDWHUAC.js")
|
|
2985
2985
|
},
|
|
2986
2986
|
{
|
|
2987
2987
|
path: "metadata",
|
|
@@ -2993,7 +2993,7 @@ function getRouteMap({
|
|
|
2993
2993
|
},
|
|
2994
2994
|
{
|
|
2995
2995
|
path: "variants/create",
|
|
2996
|
-
lazy: () => import("./create-
|
|
2996
|
+
lazy: () => import("./create-SD4OHU2P.js")
|
|
2997
2997
|
}
|
|
2998
2998
|
]
|
|
2999
2999
|
},
|
|
@@ -3016,7 +3016,7 @@ function getRouteMap({
|
|
|
3016
3016
|
children: [
|
|
3017
3017
|
{
|
|
3018
3018
|
path: "edit",
|
|
3019
|
-
lazy: () => import("./product-variant-edit-
|
|
3019
|
+
lazy: () => import("./product-variant-edit-XEHH3SSH.js")
|
|
3020
3020
|
},
|
|
3021
3021
|
{
|
|
3022
3022
|
path: "media",
|
|
@@ -3377,7 +3377,7 @@ function getRouteMap({
|
|
|
3377
3377
|
children: [
|
|
3378
3378
|
{
|
|
3379
3379
|
path: "create",
|
|
3380
|
-
lazy: () => import("./offer-create-page-
|
|
3380
|
+
lazy: () => import("./offer-create-page-PRNJY2OR.js")
|
|
3381
3381
|
}
|
|
3382
3382
|
]
|
|
3383
3383
|
},
|
|
@@ -3404,11 +3404,11 @@ function getRouteMap({
|
|
|
3404
3404
|
children: [
|
|
3405
3405
|
{
|
|
3406
3406
|
path: "edit-price",
|
|
3407
|
-
lazy: () => import("./edit-price-
|
|
3407
|
+
lazy: () => import("./edit-price-F7ZWM3FN.js")
|
|
3408
3408
|
},
|
|
3409
3409
|
{
|
|
3410
3410
|
path: "edit-stock",
|
|
3411
|
-
lazy: () => import("./edit-stock-
|
|
3411
|
+
lazy: () => import("./edit-stock-ITAZNHPU.js")
|
|
3412
3412
|
}
|
|
3413
3413
|
]
|
|
3414
3414
|
},
|
|
@@ -3443,11 +3443,11 @@ function getRouteMap({
|
|
|
3443
3443
|
},
|
|
3444
3444
|
{
|
|
3445
3445
|
path: "pricing",
|
|
3446
|
-
lazy: () => import("./pricing-
|
|
3446
|
+
lazy: () => import("./pricing-5VUPPNKS.js")
|
|
3447
3447
|
},
|
|
3448
3448
|
{
|
|
3449
3449
|
path: "inventory",
|
|
3450
|
-
lazy: () => import("./inventory-
|
|
3450
|
+
lazy: () => import("./inventory-4JKLAZ2Q.js")
|
|
3451
3451
|
}
|
|
3452
3452
|
]
|
|
3453
3453
|
}
|
|
@@ -3474,11 +3474,11 @@ function getRouteMap({
|
|
|
3474
3474
|
children: [
|
|
3475
3475
|
{
|
|
3476
3476
|
path: "create",
|
|
3477
|
-
lazy: () => import("./create-
|
|
3477
|
+
lazy: () => import("./create-IDGXIIGU.js")
|
|
3478
3478
|
},
|
|
3479
3479
|
{
|
|
3480
3480
|
path: "stock",
|
|
3481
|
-
lazy: () => import("./stock-
|
|
3481
|
+
lazy: () => import("./stock-5AXXW3KI.js")
|
|
3482
3482
|
}
|
|
3483
3483
|
]
|
|
3484
3484
|
},
|
|
@@ -3540,7 +3540,7 @@ function getRouteMap({
|
|
|
3540
3540
|
{
|
|
3541
3541
|
path: "",
|
|
3542
3542
|
lazy: async () => {
|
|
3543
|
-
const { PromotionListPage } = await import("./promotions-
|
|
3543
|
+
const { PromotionListPage } = await import("./promotions-UUMCXA3T.js");
|
|
3544
3544
|
return {
|
|
3545
3545
|
Component: PromotionListPage
|
|
3546
3546
|
};
|
|
@@ -3555,7 +3555,7 @@ function getRouteMap({
|
|
|
3555
3555
|
{
|
|
3556
3556
|
path: ":id",
|
|
3557
3557
|
lazy: async () => {
|
|
3558
|
-
const { loader } = await import("./[id]-
|
|
3558
|
+
const { loader } = await import("./[id]-723MIJNH.js");
|
|
3559
3559
|
const { Breadcrumb } = await import("./breadcrumb-WG6TIF4C.js");
|
|
3560
3560
|
return {
|
|
3561
3561
|
Component: Outlet4,
|
|
@@ -3569,7 +3569,7 @@ function getRouteMap({
|
|
|
3569
3569
|
{
|
|
3570
3570
|
path: "",
|
|
3571
3571
|
lazy: async () => {
|
|
3572
|
-
const { PromotionDetailPage } = await import("./[id]-
|
|
3572
|
+
const { PromotionDetailPage } = await import("./[id]-723MIJNH.js");
|
|
3573
3573
|
return {
|
|
3574
3574
|
Component: PromotionDetailPage
|
|
3575
3575
|
};
|
|
@@ -3617,7 +3617,7 @@ function getRouteMap({
|
|
|
3617
3617
|
{
|
|
3618
3618
|
path: ":id",
|
|
3619
3619
|
lazy: async () => {
|
|
3620
|
-
const { loader } = await import("./[id]-
|
|
3620
|
+
const { loader } = await import("./[id]-7UGDLE7D.js");
|
|
3621
3621
|
const { Breadcrumb } = await import("./breadcrumb-L262VPBO.js");
|
|
3622
3622
|
return {
|
|
3623
3623
|
Component: Outlet4,
|
|
@@ -3631,7 +3631,7 @@ function getRouteMap({
|
|
|
3631
3631
|
{
|
|
3632
3632
|
path: "",
|
|
3633
3633
|
lazy: async () => {
|
|
3634
|
-
const { CampaignDetailPage } = await import("./[id]-
|
|
3634
|
+
const { CampaignDetailPage } = await import("./[id]-7UGDLE7D.js");
|
|
3635
3635
|
return {
|
|
3636
3636
|
Component: CampaignDetailPage
|
|
3637
3637
|
};
|
|
@@ -3652,7 +3652,7 @@ function getRouteMap({
|
|
|
3652
3652
|
{
|
|
3653
3653
|
path: "add-promotions",
|
|
3654
3654
|
lazy: async () => {
|
|
3655
|
-
const { AddPromotionsPage } = await import("./add-promotions-
|
|
3655
|
+
const { AddPromotionsPage } = await import("./add-promotions-NH7YL5WP.js");
|
|
3656
3656
|
return {
|
|
3657
3657
|
Component: AddPromotionsPage
|
|
3658
3658
|
};
|
|
@@ -3679,7 +3679,7 @@ function getRouteMap({
|
|
|
3679
3679
|
children: [
|
|
3680
3680
|
{
|
|
3681
3681
|
path: "create",
|
|
3682
|
-
lazy: () => import("./create-
|
|
3682
|
+
lazy: () => import("./create-VKG5OL4O.js")
|
|
3683
3683
|
}
|
|
3684
3684
|
]
|
|
3685
3685
|
},
|
|
@@ -3714,15 +3714,15 @@ function getRouteMap({
|
|
|
3714
3714
|
},
|
|
3715
3715
|
{
|
|
3716
3716
|
path: "products/add",
|
|
3717
|
-
lazy: () => import("./add-
|
|
3717
|
+
lazy: () => import("./add-AZFG2H4K.js")
|
|
3718
3718
|
},
|
|
3719
3719
|
{
|
|
3720
3720
|
path: "products/edit",
|
|
3721
|
-
lazy: () => import("./edit-
|
|
3721
|
+
lazy: () => import("./edit-BKVJPZB4.js")
|
|
3722
3722
|
},
|
|
3723
3723
|
{
|
|
3724
3724
|
path: "products/:variant_id/edit",
|
|
3725
|
-
lazy: () => import("./edit-
|
|
3725
|
+
lazy: () => import("./edit-CFIXT7MW.js")
|
|
3726
3726
|
}
|
|
3727
3727
|
]
|
|
3728
3728
|
}
|
|
@@ -3799,7 +3799,7 @@ function getRouteMap({
|
|
|
3799
3799
|
children: [
|
|
3800
3800
|
{
|
|
3801
3801
|
path: "edit",
|
|
3802
|
-
lazy: () => import("./edit-
|
|
3802
|
+
lazy: () => import("./edit-VN4MD5TS.js")
|
|
3803
3803
|
},
|
|
3804
3804
|
{
|
|
3805
3805
|
path: "address",
|
|
@@ -3943,7 +3943,7 @@ function getRouteMap({
|
|
|
3943
3943
|
},
|
|
3944
3944
|
{
|
|
3945
3945
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/create",
|
|
3946
|
-
lazy: () => import("./create-
|
|
3946
|
+
lazy: () => import("./create-P5XT6EQW.js")
|
|
3947
3947
|
},
|
|
3948
3948
|
{
|
|
3949
3949
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/edit",
|
|
@@ -3951,7 +3951,7 @@ function getRouteMap({
|
|
|
3951
3951
|
},
|
|
3952
3952
|
{
|
|
3953
3953
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/pricing",
|
|
3954
|
-
lazy: () => import("./pricing-
|
|
3954
|
+
lazy: () => import("./pricing-POKK7VCU.js")
|
|
3955
3955
|
}
|
|
3956
3956
|
]
|
|
3957
3957
|
}
|
|
@@ -4212,12 +4212,12 @@ function getRouteMap({
|
|
|
4212
4212
|
},
|
|
4213
4213
|
{
|
|
4214
4214
|
path: "/reset-password",
|
|
4215
|
-
lazy: () => import("./reset-password-
|
|
4215
|
+
lazy: () => import("./reset-password-ZPUR7W43.js")
|
|
4216
4216
|
},
|
|
4217
4217
|
{
|
|
4218
4218
|
path: "/register",
|
|
4219
4219
|
lazy: async () => {
|
|
4220
|
-
const { RegisterPage } = await import("./register-
|
|
4220
|
+
const { RegisterPage } = await import("./register-TXHHFYXK.js");
|
|
4221
4221
|
return { Component: RegisterPage };
|
|
4222
4222
|
}
|
|
4223
4223
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UploadMediaFormItem
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQIIYVUA.js";
|
|
4
4
|
import {
|
|
5
5
|
EditProductMediaSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R3NMO65F.js";
|
|
7
7
|
import "./chunk-AJLGY3LQ.js";
|
|
8
8
|
import "./chunk-SMQT3ZNO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5K5NPIWZ.js";
|
|
10
10
|
import "./chunk-TKGWSUEI.js";
|
|
11
11
|
import {
|
|
12
12
|
KeyboundForm
|
package/dist/pages/index.js
CHANGED
|
@@ -36,9 +36,9 @@ import {
|
|
|
36
36
|
import "../chunk-7TIZP4YG.js";
|
|
37
37
|
import {
|
|
38
38
|
PromotionListPage
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-UMVZ2ZGM.js";
|
|
40
|
+
import "../chunk-6TJIKN6S.js";
|
|
41
|
+
import "../chunk-GKASDQN6.js";
|
|
42
42
|
import {
|
|
43
43
|
InventoryListPage
|
|
44
44
|
} from "../chunk-MGV65SKV.js";
|
|
@@ -110,21 +110,21 @@ import "../chunk-PHOCVOZ5.js";
|
|
|
110
110
|
import {
|
|
111
111
|
ProductCreate,
|
|
112
112
|
ProductCreatePage
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-7W2QSBGR.js";
|
|
114
114
|
import "../chunk-LEWA4BPH.js";
|
|
115
|
-
import "../chunk-
|
|
115
|
+
import "../chunk-5FBQOAXU.js";
|
|
116
116
|
import "../chunk-HJ56YXBU.js";
|
|
117
117
|
import "../chunk-IQPN4PZJ.js";
|
|
118
118
|
import "../chunk-YVCBMOJG.js";
|
|
119
119
|
import "../chunk-4IRQSBA7.js";
|
|
120
120
|
import "../chunk-OVPAOBZB.js";
|
|
121
|
-
import "../chunk-
|
|
121
|
+
import "../chunk-FQIIYVUA.js";
|
|
122
122
|
import {
|
|
123
123
|
EditProductMediaSchema,
|
|
124
124
|
MediaSchema,
|
|
125
125
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
126
126
|
ProductCreateSchema
|
|
127
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-R3NMO65F.js";
|
|
128
128
|
import "../chunk-AJLGY3LQ.js";
|
|
129
129
|
import "../chunk-SMQT3ZNO.js";
|
|
130
130
|
import "../chunk-KDE4HKH2.js";
|
|
@@ -133,7 +133,7 @@ import "../chunk-HFRHHT36.js";
|
|
|
133
133
|
import "../chunk-IV57G2CB.js";
|
|
134
134
|
import "../chunk-VBRTC2VU.js";
|
|
135
135
|
import "../chunk-WJ5EU3KW.js";
|
|
136
|
-
import "../chunk-
|
|
136
|
+
import "../chunk-5K5NPIWZ.js";
|
|
137
137
|
import "../chunk-TKGWSUEI.js";
|
|
138
138
|
import "../chunk-SITRHMZZ.js";
|
|
139
139
|
import "../chunk-GDWBOQI5.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ShippingOptionPriceProvider,
|
|
4
4
|
UpdateConditionalPriceSchema,
|
|
5
5
|
useShippingOptionPriceColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3C2T27YW.js";
|
|
7
7
|
import {
|
|
8
8
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
9
9
|
ITEM_TOTAL_ATTRIBUTE,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import "./chunk-3BXCPHN6.js";
|
|
13
13
|
import {
|
|
14
14
|
DataGrid
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5FBQOAXU.js";
|
|
16
16
|
import "./chunk-IQPN4PZJ.js";
|
|
17
17
|
import {
|
|
18
18
|
castNumber
|
|
@@ -11,21 +11,21 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
11
11
|
import {
|
|
12
12
|
ProductCreate,
|
|
13
13
|
ProductCreatePage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7W2QSBGR.js";
|
|
15
15
|
import "./chunk-LEWA4BPH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-5FBQOAXU.js";
|
|
17
17
|
import "./chunk-HJ56YXBU.js";
|
|
18
18
|
import "./chunk-IQPN4PZJ.js";
|
|
19
19
|
import "./chunk-YVCBMOJG.js";
|
|
20
20
|
import "./chunk-4IRQSBA7.js";
|
|
21
21
|
import "./chunk-OVPAOBZB.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-FQIIYVUA.js";
|
|
23
23
|
import {
|
|
24
24
|
EditProductMediaSchema,
|
|
25
25
|
MediaSchema,
|
|
26
26
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
27
27
|
ProductCreateSchema
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R3NMO65F.js";
|
|
29
29
|
import "./chunk-AJLGY3LQ.js";
|
|
30
30
|
import "./chunk-SMQT3ZNO.js";
|
|
31
31
|
import "./chunk-KDE4HKH2.js";
|
|
@@ -34,7 +34,7 @@ import "./chunk-HFRHHT36.js";
|
|
|
34
34
|
import "./chunk-IV57G2CB.js";
|
|
35
35
|
import "./chunk-VBRTC2VU.js";
|
|
36
36
|
import "./chunk-WJ5EU3KW.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-5K5NPIWZ.js";
|
|
38
38
|
import "./chunk-TKGWSUEI.js";
|
|
39
39
|
import "./chunk-SITRHMZZ.js";
|
|
40
40
|
import "./chunk-GDWBOQI5.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromotionListPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UMVZ2ZGM.js";
|
|
4
|
+
import "./chunk-6TJIKN6S.js";
|
|
5
|
+
import "./chunk-GKASDQN6.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import "./chunk-S2WEYEQR.js";
|
|
8
8
|
import "./chunk-FMFVTERD.js";
|
|
9
9
|
import "./chunk-DB6ANJBO.js";
|
|
10
10
|
import "./chunk-PHOCVOZ5.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5K5NPIWZ.js";
|
|
12
12
|
import "./chunk-FQERBIVS.js";
|
|
13
13
|
import "./chunk-XRLRKSND.js";
|
|
14
14
|
import "./chunk-YN3FGNJM.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/vendor",
|
|
3
|
-
"version": "2.2.0-canary.
|
|
3
|
+
"version": "2.2.0-canary.37",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"lint": "oxlint --max-warnings 0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mercurjs/dashboard-shared": "2.2.0-canary.
|
|
33
|
-
"@mercurjs/client": "2.2.0-canary.
|
|
32
|
+
"@mercurjs/dashboard-shared": "2.2.0-canary.37",
|
|
33
|
+
"@mercurjs/client": "2.2.0-canary.37",
|
|
34
34
|
"@ariakit/react": "^0.4.15",
|
|
35
35
|
"@babel/runtime": "^7.26.10",
|
|
36
36
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"tsup": "^8.0.2",
|
|
84
84
|
"typescript": "5.9.3",
|
|
85
85
|
"@medusajs/types": "options-preview",
|
|
86
|
-
"@mercurjs/core": "2.2.0-canary.
|
|
87
|
-
"@mercurjs/dashboard-sdk": "2.2.0-canary.
|
|
88
|
-
"@mercurjs/types": "2.2.0-canary.
|
|
86
|
+
"@mercurjs/core": "2.2.0-canary.37",
|
|
87
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.37",
|
|
88
|
+
"@mercurjs/types": "2.2.0-canary.37"
|
|
89
89
|
}
|
|
90
90
|
}
|