@cloud-ru/ds-uikit-product-header 1.3.10-preview-59feaf5c.0 → 1.4.0
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/CHANGELOG.md +13 -0
- package/dist/cjs/components/MainMenu/helperComponents/Banners/styles.module.css +1 -0
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SubCategory/SubCategory.js +2 -2
- package/dist/cjs/style.css +1 -0
- package/dist/esm/components/MainMenu/helperComponents/Banners/styles.module.css +1 -0
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SubCategory/SubCategory.js +2 -2
- package/dist/esm/style.css +1 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +28 -28
- package/src/components/MainMenu/helperComponents/Banners/styles.module.scss +2 -0
- package/src/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SubCategory/SubCategory.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.4.0 (2026-09-16)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **FF-9052:** min-height for favorite block ([734d9e3](https://github.com/cloud-ru-tech/snack-v2/commit/734d9e37531d2074dd1edc06240efc02c171f219))
|
|
11
|
+
- **FF-9052:** proper roleAppearance for PromoTag, disable hover ([f93431c](https://github.com/cloud-ru-tech/snack-v2/commit/f93431cd813a684515947f09be5236f4b83bd882))
|
|
12
|
+
- **FF-9052:** remove inner useEffect for handling activeSegment select ([b7e79cc](https://github.com/cloud-ru-tech/snack-v2/commit/b7e79cc80a63be27476c21f8791ee1bdbe726c17))
|
|
13
|
+
- **FF-9052:** use Card for header MenuBanner ([55152b3](https://github.com/cloud-ru-tech/snack-v2/commit/55152b3f19f98e234c41e459975b71d09ed746c7))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- **FF-9052:** allow to show subcategory without cards, fix category title hover color ([e3dea85](https://github.com/cloud-ru-tech/snack-v2/commit/e3dea85d4b61a0b9846e070216567d535729dbda))
|
|
18
|
+
|
|
6
19
|
## 1.3.9 (2026-09-14)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @ds/uikit-product-header
|
|
@@ -13,7 +13,7 @@ const constants_1 = require("../../../../constants");
|
|
|
13
13
|
const styles_module_scss_1 = __importDefault(require('../../styles.module.css'));
|
|
14
14
|
const styles_module_scss_2 = __importDefault(require('./styles.module.css'));
|
|
15
15
|
const SubCategoryTitle_1 = require("./SubCategoryTitle");
|
|
16
|
-
const
|
|
16
|
+
const noop = () => { };
|
|
17
17
|
function SubCategory({ groupId, service, showDescription, isMobile, dragDisabled, favorite, onServiceClick, groupFavoritesEnabled, }) {
|
|
18
18
|
const subcategoryId = (0, innerLink_1.getSubCategoryId)(groupId, service.id);
|
|
19
19
|
const nestedGroupId = (0, innerLink_1.getNestedServiceGroupId)(groupId, service.id);
|
|
@@ -31,7 +31,7 @@ function SubCategory({ groupId, service, showDescription, isMobile, dragDisabled
|
|
|
31
31
|
// 'group-title-only' — только заголовок подкатегории, без раскрываемого тела и кнопки
|
|
32
32
|
// переключения: карточка ведёт себя как обычная ссылка (см. isSubCategoryCard в utils/innerLink).
|
|
33
33
|
if (viewMode === 'group-title-only') {
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_2.default.subcategory, "data-title-only": true, "data-test-id": `${constants_1.TEST_IDS.subcategory}-${service.id}`, children: (0, jsx_runtime_1.jsx)(SubCategoryTitle_1.SubCategoryTitle, { groupId: groupId, service: service, expandable: { value: true, onClick:
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_2.default.subcategory, "data-title-only": true, "data-test-id": `${constants_1.TEST_IDS.subcategory}-${service.id}`, children: (0, jsx_runtime_1.jsx)(SubCategoryTitle_1.SubCategoryTitle, { groupId: groupId, service: service, expandable: { value: true, onClick: noop }, showDescription: showDescription, isMobile: isMobile, dragDisabled: dragDisabled, favorite: groupFavoritesEnabled ? favorite : undefined, onServiceClick: onServiceClick }) }));
|
|
35
35
|
}
|
|
36
36
|
if (viewMode === 'expanded') {
|
|
37
37
|
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_2.default.subcategory, "data-test-id": `${constants_1.TEST_IDS.subcategory}-${service.id}`, children: [(0, jsx_runtime_1.jsx)(SubCategoryTitle_1.SubCategoryTitle, { groupId: groupId, service: service, expandable: {
|
package/dist/cjs/style.css
CHANGED
|
@@ -7,7 +7,7 @@ import { TEST_IDS } from '../../../../constants.js';
|
|
|
7
7
|
import baseGroupStyles from '../../styles.module.css';
|
|
8
8
|
import styles from './styles.module.css';
|
|
9
9
|
import { SubCategoryTitle } from './SubCategoryTitle.js';
|
|
10
|
-
const
|
|
10
|
+
const noop = () => { };
|
|
11
11
|
export function SubCategory({ groupId, service, showDescription, isMobile, dragDisabled, favorite, onServiceClick, groupFavoritesEnabled, }) {
|
|
12
12
|
const subcategoryId = getSubCategoryId(groupId, service.id);
|
|
13
13
|
const nestedGroupId = getNestedServiceGroupId(groupId, service.id);
|
|
@@ -25,7 +25,7 @@ export function SubCategory({ groupId, service, showDescription, isMobile, dragD
|
|
|
25
25
|
// 'group-title-only' — только заголовок подкатегории, без раскрываемого тела и кнопки
|
|
26
26
|
// переключения: карточка ведёт себя как обычная ссылка (см. isSubCategoryCard в utils/innerLink).
|
|
27
27
|
if (viewMode === 'group-title-only') {
|
|
28
|
-
return (_jsx("div", { className: styles.subcategory, "data-title-only": true, "data-test-id": `${TEST_IDS.subcategory}-${service.id}`, children: _jsx(SubCategoryTitle, { groupId: groupId, service: service, expandable: { value: true, onClick:
|
|
28
|
+
return (_jsx("div", { className: styles.subcategory, "data-title-only": true, "data-test-id": `${TEST_IDS.subcategory}-${service.id}`, children: _jsx(SubCategoryTitle, { groupId: groupId, service: service, expandable: { value: true, onClick: noop }, showDescription: showDescription, isMobile: isMobile, dragDisabled: dragDisabled, favorite: groupFavoritesEnabled ? favorite : undefined, onServiceClick: onServiceClick }) }));
|
|
29
29
|
}
|
|
30
30
|
if (viewMode === 'expanded') {
|
|
31
31
|
return (_jsxs("div", { className: styles.subcategory, "data-test-id": `${TEST_IDS.subcategory}-${service.id}`, children: [_jsx(SubCategoryTitle, { groupId: groupId, service: service, expandable: {
|