@open-mercato/core 0.8.1-develop.7254.1.ab24f26208 → 0.8.1-develop.7263.1.bbc6db3437
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
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
getCustomerDictionaryManageHref
|
|
52
52
|
} from "../lib/dictionaries.js";
|
|
53
53
|
import { normalizeCustomFieldSubmitValue } from "./detail/customFieldUtils.js";
|
|
54
|
-
import { CUSTOMER_PHONE_INVALID_MESSAGE_KEY } from "../data/validators.js";
|
|
54
|
+
import { CUSTOMER_PHONE_INVALID_MESSAGE_KEY, CUSTOMER_URL_INVALID_MESSAGE_KEY } from "../data/validators.js";
|
|
55
55
|
const metadata = {
|
|
56
56
|
navHidden: true
|
|
57
57
|
};
|
|
@@ -877,7 +877,7 @@ const createCompanyFormSchema = () => z.object({
|
|
|
877
877
|
legalName: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
878
878
|
brandName: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
879
879
|
domain: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
880
|
-
websiteUrl: z.string().trim().url().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
880
|
+
websiteUrl: z.string().trim().url(CUSTOMER_URL_INVALID_MESSAGE_KEY).optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
881
881
|
industry: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
882
882
|
sizeBucket: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
883
883
|
annualRevenue: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional()
|
|
@@ -1136,7 +1136,7 @@ function buildCompanyPayload(values, organizationId) {
|
|
|
1136
1136
|
return payload;
|
|
1137
1137
|
}
|
|
1138
1138
|
const optionalString = () => z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional();
|
|
1139
|
-
const clearableUrlField = () => z.string().trim().url().optional().or(z.literal("")).transform((val) => val === "" ? null : val).optional();
|
|
1139
|
+
const clearableUrlField = () => z.string().trim().url(CUSTOMER_URL_INVALID_MESSAGE_KEY).optional().or(z.literal("")).transform((val) => val === "" ? null : val).optional();
|
|
1140
1140
|
const clearableEmailField = () => z.string().trim().email().optional().or(z.literal("")).transform((val) => val === "" ? null : val).optional();
|
|
1141
1141
|
const clearableDomainField = () => z.string().trim().max(200).optional().or(z.literal("")).transform((val) => val === "" ? null : val).optional();
|
|
1142
1142
|
const clearableTextField = () => z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? null : val).optional();
|