@megafon/ui-shared 6.1.0 → 6.1.2

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 CHANGED
@@ -3,6 +3,28 @@
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
+ ## [6.1.2](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@6.1.1...@megafon/ui-shared@6.1.2) (2024-08-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **instructions:** remove convert to html for item title render ([89dc492](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/89dc492aa2f5f2249c29c5a329b7cad2221eaeb7))
12
+
13
+
14
+
15
+
16
+
17
+ ## [6.1.1](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@6.1.0...@megafon/ui-shared@6.1.1) (2024-08-20)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **instructions:** fix tag render for items with mobile numeration ([b5ff10d](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/b5ff10d77907e77e2fbba6a93802bc85e5208082))
23
+
24
+
25
+
26
+
27
+
6
28
  # [6.1.0](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@6.0.0...@megafon/ui-shared@6.1.0) (2024-08-19)
7
29
 
8
30
 
@@ -267,14 +267,15 @@ var Instructions = function Instructions(_ref) {
267
267
  })
268
268
  }, instructionItems.map(function (_ref6, i) {
269
269
  var itemTitle = _ref6.title;
270
- return slideIndex === i && /*#__PURE__*/React.createElement("div", _extends({
270
+ return slideIndex === i && /*#__PURE__*/React.createElement("div", {
271
271
  key: i,
272
- "data-index": i
273
- }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
274
- className: cn('articles-title', [mobileItemTitle])
275
- }), showMobileNumeration && /*#__PURE__*/React.createElement("span", {
272
+ "data-index": i,
273
+ className: cn('articles-title')
274
+ }, showMobileNumeration && /*#__PURE__*/React.createElement("span", {
276
275
  className: cn('articles-num')
277
- }, i + 1), itemTitle);
276
+ }, i + 1), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
277
+ className: cn('articles-title-text', [mobileItemTitle])
278
+ }), itemTitle));
278
279
  })));
279
280
  }, [dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, instructionItems, mobileItemTitle, slideIndex, isMobileReversed, showMobileNumeration]);
280
281
  var renderArrows = React.useCallback(function () {
@@ -303,14 +303,15 @@ var Instructions = function Instructions(_ref) {
303
303
  })
304
304
  }, instructionItems.map(function (_ref6, i) {
305
305
  var itemTitle = _ref6.title;
306
- return slideIndex === i && /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
306
+ return slideIndex === i && /*#__PURE__*/_react["default"].createElement("div", {
307
307
  key: i,
308
- "data-index": i
309
- }, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
310
- className: cn('articles-title', [mobileItemTitle])
311
- }), showMobileNumeration && /*#__PURE__*/_react["default"].createElement("span", {
308
+ "data-index": i,
309
+ className: cn('articles-title')
310
+ }, showMobileNumeration && /*#__PURE__*/_react["default"].createElement("span", {
312
311
  className: cn('articles-num')
313
- }, i + 1), itemTitle);
312
+ }, i + 1), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
313
+ className: cn('articles-title-text', [mobileItemTitle])
314
+ }), itemTitle));
314
315
  })));
315
316
  }, [dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, instructionItems, mobileItemTitle, slideIndex, isMobileReversed, showMobileNumeration]);
316
317
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -48,7 +48,7 @@
48
48
  "@babel/preset-env": "^7.8.6",
49
49
  "@babel/preset-react": "^7.8.3",
50
50
  "@babel/preset-typescript": "^7.8.3",
51
- "@megafon/ui-icons": "^2.27.0",
51
+ "@megafon/ui-icons": "^2.28.0",
52
52
  "@svgr/core": "^2.4.1",
53
53
  "@testing-library/jest-dom": "5.16.2",
54
54
  "@testing-library/react": "12.1.2",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@babel/runtime": "^7.8.4",
85
- "@megafon/ui-core": "^6.1.0",
85
+ "@megafon/ui-core": "^6.1.1",
86
86
  "@megafon/ui-helpers": "^2.6.0",
87
87
  "core-js": "^3.6.4",
88
88
  "htmr": "^0.9.2",
@@ -90,5 +90,5 @@
90
90
  "prop-types": "^15.7.2",
91
91
  "swiper": "^6.5.6"
92
92
  },
93
- "gitHead": "95b986f266f6dbbe074afdadf3164d249b58140a"
93
+ "gitHead": "b2707ab2fa7d6ac169e704c882967300ac5d8b7b"
94
94
  }