@megafon/ui-shared 4.4.1 → 4.5.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
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
|
+
# [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)
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **videoblock:** added for title and description render html tags ([d0d2255](https://github.com/MegafonWebLab/megafon-ui/commit/d0d2255abb80e73058151967721a447c8ebc4028))
|
12
|
+
* **videoblock:** fixed and ddded tag b for description ([6e7de85](https://github.com/MegafonWebLab/megafon-ui/commit/6e7de853b8ff920f4b0de2ecfd3cdb8538bc727a))
|
13
|
+
* **videoblock:** return types and change config for description ([75f18e1](https://github.com/MegafonWebLab/megafon-ui/commit/75f18e10e6cb22779cceaf90f8a6e0e258a92612))
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
6
19
|
## [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
20
|
|
8
21
|
|
@@ -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
|
},
|
@@ -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.
|
3
|
+
"version": "4.5.0",
|
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.
|
88
|
+
"@megafon/ui-core": "^4.8.0",
|
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": "
|
96
|
+
"gitHead": "bcae549045e554803fd7e7b64e8d106a9aa6e31d"
|
97
97
|
}
|