@open-mercato/core 0.6.6-develop.5716.1.b108502d0d → 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
|
@@ -232,7 +232,8 @@ function CreateCatalogProductPage() {
|
|
|
232
232
|
component: ({
|
|
233
233
|
values,
|
|
234
234
|
setValue,
|
|
235
|
-
errors
|
|
235
|
+
errors,
|
|
236
|
+
requiredFieldIds
|
|
236
237
|
}) => /* @__PURE__ */ jsx(
|
|
237
238
|
ProductBuilder,
|
|
238
239
|
{
|
|
@@ -240,7 +241,8 @@ function CreateCatalogProductPage() {
|
|
|
240
241
|
setValue,
|
|
241
242
|
errors,
|
|
242
243
|
priceKinds,
|
|
243
|
-
taxRates
|
|
244
|
+
taxRates,
|
|
245
|
+
requiredFieldIds
|
|
244
246
|
}
|
|
245
247
|
)
|
|
246
248
|
},
|
|
@@ -786,7 +788,8 @@ function ProductBuilder({
|
|
|
786
788
|
setValue,
|
|
787
789
|
errors,
|
|
788
790
|
priceKinds,
|
|
789
|
-
taxRates
|
|
791
|
+
taxRates,
|
|
792
|
+
requiredFieldIds
|
|
790
793
|
}) {
|
|
791
794
|
const t = useT();
|
|
792
795
|
const steps = PRODUCT_FORM_STEPS;
|
|
@@ -1090,10 +1093,10 @@ function ProductBuilder({
|
|
|
1090
1093
|
step
|
|
1091
1094
|
)) }),
|
|
1092
1095
|
currentStepKey === "general" ? /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
1093
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
1096
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "title", children: [
|
|
1094
1097
|
/* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
|
|
1095
1098
|
t("catalog.products.form.title", "Title"),
|
|
1096
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
1099
|
+
/* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" })
|
|
1097
1100
|
] }),
|
|
1098
1101
|
/* @__PURE__ */ jsx(
|
|
1099
1102
|
Input,
|
|
@@ -1106,11 +1109,14 @@ function ProductBuilder({
|
|
|
1106
1109
|
)
|
|
1107
1110
|
}
|
|
1108
1111
|
),
|
|
1109
|
-
errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
1112
|
+
errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.title }) : null
|
|
1110
1113
|
] }),
|
|
1111
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
1114
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "description", children: [
|
|
1112
1115
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1113
|
-
/* @__PURE__ */
|
|
1116
|
+
/* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
|
|
1117
|
+
t("catalog.products.form.description", "Description"),
|
|
1118
|
+
requiredFieldIds?.has("description") ? /* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" }) : null
|
|
1119
|
+
] }),
|
|
1114
1120
|
/* @__PURE__ */ jsxs(
|
|
1115
1121
|
Button,
|
|
1116
1122
|
{
|
|
@@ -1149,7 +1155,8 @@ function ProductBuilder({
|
|
|
1149
1155
|
"Describe the product..."
|
|
1150
1156
|
)
|
|
1151
1157
|
}
|
|
1152
|
-
)
|
|
1158
|
+
),
|
|
1159
|
+
errors.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.description }) : null
|
|
1153
1160
|
] }),
|
|
1154
1161
|
/* @__PURE__ */ jsx(
|
|
1155
1162
|
ProductMediaManager,
|