@megafon/ui-shared 4.4.1 → 4.5.1

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,27 @@
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
+ ## [4.5.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.5.0...@megafon/ui-shared@4.5.1) (2022-11-15)
7
+
8
+ **Note:** Version bump only for package @megafon/ui-shared
9
+
10
+
11
+
12
+
13
+
14
+ # [4.5.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.4.1...@megafon/ui-shared@4.5.0) (2022-11-14)
15
+
16
+
17
+ ### Features
18
+
19
+ * **videoblock:** added for title and description render html tags ([d0d2255](https://github.com/MegafonWebLab/megafon-ui/commit/d0d2255abb80e73058151967721a447c8ebc4028))
20
+ * **videoblock:** fixed and ddded tag b for description ([6e7de85](https://github.com/MegafonWebLab/megafon-ui/commit/6e7de853b8ff920f4b0de2ecfd3cdb8538bc727a))
21
+ * **videoblock:** return types and change config for description ([75f18e1](https://github.com/MegafonWebLab/megafon-ui/commit/75f18e10e6cb22779cceaf90f8a6e0e258a92612))
22
+
23
+
24
+
25
+
26
+
6
27
  ## [4.4.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.4.0...@megafon/ui-shared@4.4.1) (2022-11-07)
7
28
 
8
29
 
@@ -47,7 +47,7 @@ var Partners = function Partners(_ref) {
47
47
  alt = item.alt;
48
48
  return /*#__PURE__*/React.createElement(Tile, {
49
49
  href: href,
50
- shadowLevel: "low",
50
+ shadowLevel: "default",
51
51
  isInteractive: !!href,
52
52
  className: cn('tile'),
53
53
  dataAttrs: {
@@ -5,7 +5,7 @@ import "core-js/modules/es.object.values";
5
5
  import _extends from "@babel/runtime/helpers/extends";
6
6
  import React from 'react';
7
7
  import { Header, Button, Grid, GridColumn } from '@megafon/ui-core';
8
- import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
8
+ import { cnCreate, filterDataAttrs, convert, titleConvertConfig, textConvertConfig } from '@megafon/ui-helpers';
9
9
  import PropTypes from 'prop-types';
10
10
  import "./VideoBlock.css";
11
11
  export var VideoTypes = {
@@ -83,9 +83,9 @@ var VideoBlock = function VideoBlock(_ref) {
83
83
  }, /*#__PURE__*/React.createElement(Header, {
84
84
  as: "h2",
85
85
  className: cn('header')
86
- }, title), /*#__PURE__*/React.createElement("div", {
86
+ }, convert(title, titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
87
87
  className: cn('description', [classes.description])
88
- }, description), buttonTitle && /*#__PURE__*/React.createElement(Button, {
88
+ }, typeof description === 'string' ? convert(description, textConvertConfig) : description), buttonTitle && /*#__PURE__*/React.createElement(Button, {
89
89
  dataAttrs: {
90
90
  root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
91
91
  },
@@ -68,7 +68,7 @@ var Partners = function Partners(_ref) {
68
68
  alt = item.alt;
69
69
  return /*#__PURE__*/React.createElement(_uiCore.Tile, {
70
70
  href: href,
71
- shadowLevel: "low",
71
+ shadowLevel: "default",
72
72
  isInteractive: !!href,
73
73
  className: cn('tile'),
74
74
  dataAttrs: {
@@ -103,9 +103,9 @@ var VideoBlock = function VideoBlock(_ref) {
103
103
  }, /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
104
104
  as: "h2",
105
105
  className: cn('header')
106
- }, title), /*#__PURE__*/_react["default"].createElement("div", {
106
+ }, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/_react["default"].createElement("div", {
107
107
  className: cn('description', [classes.description])
108
- }, description), buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
108
+ }, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
109
109
  dataAttrs: {
110
110
  root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
111
111
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "4.4.1",
3
+ "version": "4.5.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@babel/runtime": "^7.8.4",
88
- "@megafon/ui-core": "^4.7.0",
88
+ "@megafon/ui-core": "^4.8.1",
89
89
  "@megafon/ui-helpers": "^2.3.0",
90
90
  "core-js": "^3.6.4",
91
91
  "htmr": "^0.9.2",
@@ -93,5 +93,5 @@
93
93
  "prop-types": "^15.7.2",
94
94
  "swiper": "^6.5.6"
95
95
  },
96
- "gitHead": "d22bcb18842bee0a570b666fb4007c81ac3aced0"
96
+ "gitHead": "3abf1c61512c52a9d322edb9fb6bede9da952c44"
97
97
  }