@open-mercato/core 0.8.1-develop.7254.1.ab24f26208 → 0.8.1-develop.7261.1.5d42353f61
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/modules/catalog/backend/catalog/products/[id]/page.js +11 -3
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/customer_accounts/api/admin/users.js +27 -14
- package/dist/modules/customer_accounts/api/admin/users.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/users/PortalUsersPageClient.js +9 -0
- package/dist/modules/customer_accounts/backend/customer_accounts/users/PortalUsersPageClient.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/users/[id]/PortalUserDetailPageClient.js +8 -8
- package/dist/modules/customer_accounts/backend/customer_accounts/users/[id]/PortalUserDetailPageClient.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/map/page.js +10 -2
- package/dist/modules/customers/backend/customers/deals/map/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js +10 -2
- package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/pipeline/components/ViewTabsRow.js +41 -66
- package/dist/modules/customers/backend/customers/deals/pipeline/components/ViewTabsRow.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js +6 -2
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js.map +2 -2
- package/dist/modules/customers/components/formConfig.js +3 -3
- package/dist/modules/customers/components/formConfig.js.map +2 -2
- package/dist/modules/customers/data/validators.js +3 -1
- package/dist/modules/customers/data/validators.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +19 -5
- package/src/modules/catalog/i18n/de.json +1 -0
- package/src/modules/catalog/i18n/en.json +1 -0
- package/src/modules/catalog/i18n/es.json +1 -0
- package/src/modules/catalog/i18n/ko.json +1 -0
- package/src/modules/catalog/i18n/pl.json +1 -0
- package/src/modules/customer_accounts/api/admin/users.ts +30 -14
- package/src/modules/customer_accounts/backend/customer_accounts/users/PortalUsersPageClient.tsx +11 -0
- package/src/modules/customer_accounts/backend/customer_accounts/users/[id]/PortalUserDetailPageClient.tsx +11 -11
- package/src/modules/customer_accounts/i18n/de.json +1 -0
- package/src/modules/customer_accounts/i18n/en.json +1 -0
- package/src/modules/customer_accounts/i18n/es.json +1 -0
- package/src/modules/customer_accounts/i18n/ko.json +1 -0
- package/src/modules/customer_accounts/i18n/pl.json +1 -0
- package/src/modules/customers/backend/customers/deals/map/page.tsx +13 -2
- package/src/modules/customers/backend/customers/deals/page.tsx +13 -2
- package/src/modules/customers/backend/customers/deals/pipeline/components/ViewTabsRow.tsx +69 -56
- package/src/modules/customers/backend/customers/deals/pipeline/page.tsx +8 -2
- package/src/modules/customers/components/formConfig.tsx +3 -3
- package/src/modules/customers/data/validators.ts +2 -1
- package/src/modules/customers/i18n/de.json +1 -0
- package/src/modules/customers/i18n/en.json +1 -0
- package/src/modules/customers/i18n/es.json +1 -0
- package/src/modules/customers/i18n/ko.json +1 -0
- package/src/modules/customers/i18n/pl.json +1 -0
|
@@ -651,7 +651,8 @@ function EditCatalogProductPage({
|
|
|
651
651
|
{
|
|
652
652
|
values,
|
|
653
653
|
setValue,
|
|
654
|
-
errors
|
|
654
|
+
errors,
|
|
655
|
+
variantCount: variants.length
|
|
655
656
|
}
|
|
656
657
|
)
|
|
657
658
|
},
|
|
@@ -1487,7 +1488,11 @@ function ProductMetadataSection({ values, setValue }) {
|
|
|
1487
1488
|
);
|
|
1488
1489
|
return /* @__PURE__ */ jsx(MetadataEditor, { value: metadata, onChange: handleMetadataChange, embedded: true });
|
|
1489
1490
|
}
|
|
1490
|
-
function ProductOptionsSection({
|
|
1491
|
+
function ProductOptionsSection({
|
|
1492
|
+
values,
|
|
1493
|
+
setValue,
|
|
1494
|
+
variantCount = 0
|
|
1495
|
+
}) {
|
|
1491
1496
|
const t = useT();
|
|
1492
1497
|
const [schemaDialogOpen, setSchemaDialogOpen] = React.useState(false);
|
|
1493
1498
|
const [schemaTemplates, setSchemaTemplates] = React.useState([]);
|
|
@@ -1743,7 +1748,10 @@ function ProductOptionsSection({ values, setValue }) {
|
|
|
1743
1748
|
)
|
|
1744
1749
|
] })
|
|
1745
1750
|
] }, option.id)),
|
|
1746
|
-
!values.options?.length ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(
|
|
1751
|
+
!values.options?.length ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: variantCount > 0 ? t(
|
|
1752
|
+
"catalog.products.edit.optionsBuilder.emptyWithVariants",
|
|
1753
|
+
"This product has variants without an option schema. Options are optional."
|
|
1754
|
+
) : t(
|
|
1747
1755
|
"catalog.products.create.optionsBuilder.empty",
|
|
1748
1756
|
"No options yet. Add your first option to generate variants."
|
|
1749
1757
|
) }) : null
|