@open-mercato/core 0.6.6-develop.5727.1.f3ae90ed42 → 0.6.6-develop.5738.1.4182c2b2c7
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +13 -7
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/create/page.js +16 -9
- package/dist/modules/catalog/backend/catalog/products/create/page.js.map +2 -2
- package/dist/modules/catalog/widgets/injection/product-seo/validation.js +39 -0
- package/dist/modules/catalog/widgets/injection/product-seo/validation.js.map +7 -0
- package/dist/modules/catalog/widgets/injection/product-seo/widget.js +8 -28
- package/dist/modules/catalog/widgets/injection/product-seo/widget.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +16 -6
- package/src/modules/catalog/backend/catalog/products/create/page.tsx +15 -5
- package/src/modules/catalog/widgets/injection/product-seo/validation.ts +47 -0
- package/src/modules/catalog/widgets/injection/product-seo/widget.ts +7 -29
package/.turbo/turbo-build.log
CHANGED
|
@@ -562,12 +562,13 @@ function EditCatalogProductPage({
|
|
|
562
562
|
{
|
|
563
563
|
id: "details",
|
|
564
564
|
column: 1,
|
|
565
|
-
component: ({ values, setValue, errors }) => /* @__PURE__ */ jsx(
|
|
565
|
+
component: ({ values, setValue, errors, requiredFieldIds }) => /* @__PURE__ */ jsx(
|
|
566
566
|
ProductDetailsSection,
|
|
567
567
|
{
|
|
568
568
|
values,
|
|
569
569
|
setValue,
|
|
570
570
|
errors,
|
|
571
|
+
requiredFieldIds,
|
|
571
572
|
productId: productId ?? "",
|
|
572
573
|
hasVariants: Boolean(
|
|
573
574
|
values.hasVariants
|
|
@@ -1125,6 +1126,7 @@ function ProductDetailsSection({
|
|
|
1125
1126
|
values,
|
|
1126
1127
|
setValue,
|
|
1127
1128
|
errors,
|
|
1129
|
+
requiredFieldIds,
|
|
1128
1130
|
productId,
|
|
1129
1131
|
hasVariants,
|
|
1130
1132
|
variantMediaGroups
|
|
@@ -1177,10 +1179,10 @@ function ProductDetailsSection({
|
|
|
1177
1179
|
[mediaItems, setValue]
|
|
1178
1180
|
);
|
|
1179
1181
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
1180
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
1182
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "title", children: [
|
|
1181
1183
|
/* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
|
|
1182
1184
|
t("catalog.products.form.title", "Title"),
|
|
1183
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
1185
|
+
/* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" })
|
|
1184
1186
|
] }),
|
|
1185
1187
|
/* @__PURE__ */ jsx(
|
|
1186
1188
|
Input,
|
|
@@ -1193,11 +1195,14 @@ function ProductDetailsSection({
|
|
|
1193
1195
|
)
|
|
1194
1196
|
}
|
|
1195
1197
|
),
|
|
1196
|
-
errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
1198
|
+
errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.title }) : null
|
|
1197
1199
|
] }),
|
|
1198
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
1200
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "description", children: [
|
|
1199
1201
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1200
|
-
/* @__PURE__ */
|
|
1202
|
+
/* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
|
|
1203
|
+
t("catalog.products.form.description", "Description"),
|
|
1204
|
+
requiredFieldIds?.has("description") ? /* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" }) : null
|
|
1205
|
+
] }),
|
|
1201
1206
|
/* @__PURE__ */ jsxs(
|
|
1202
1207
|
Button,
|
|
1203
1208
|
{
|
|
@@ -1233,7 +1238,8 @@ function ProductDetailsSection({
|
|
|
1233
1238
|
"Describe the product..."
|
|
1234
1239
|
)
|
|
1235
1240
|
}
|
|
1236
|
-
)
|
|
1241
|
+
),
|
|
1242
|
+
errors.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.description }) : null
|
|
1237
1243
|
] }),
|
|
1238
1244
|
/* @__PURE__ */ jsx(
|
|
1239
1245
|
ProductMediaManager,
|