@gravity-ui/page-constructor 5.28.7-alpha.3 → 5.28.8
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/build/cjs/blocks/Media/Media.js +2 -7
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -6
- package/build/cjs/blocks/Tabs/Tabs.js +2 -8
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +2 -2
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.js +6 -12
- package/build/cjs/components/Media/Media.js +2 -11
- package/build/cjs/components/Title/TitleItem.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +0 -3
- package/build/cjs/containers/PageConstructor/PageConstructor.js +2 -3
- package/build/cjs/context/innerContext/InnerContext.d.ts +0 -3
- package/build/cjs/context/innerContext/InnerContext.js +0 -1
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +0 -8
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -9
- package/build/esm/blocks/Media/Media.js +2 -7
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -6
- package/build/esm/blocks/Tabs/Tabs.js +2 -8
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +2 -2
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.js +6 -12
- package/build/esm/components/Media/Media.js +3 -12
- package/build/esm/components/Title/TitleItem.d.ts +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +0 -3
- package/build/esm/containers/PageConstructor/PageConstructor.js +2 -3
- package/build/esm/context/innerContext/InnerContext.d.ts +0 -3
- package/build/esm/context/innerContext/InnerContext.js +0 -1
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/common.d.ts +0 -8
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -9
- package/package.json +1 -1
- package/server/models/constructor-items/common.d.ts +0 -8
- package/widget/index.js +1 -1
- package/build/cjs/utils/microdata.d.ts +0 -3
- package/build/cjs/utils/microdata.js +0 -11
- package/build/esm/utils/microdata.d.ts +0 -3
- package/build/esm/utils/microdata.js +0 -5
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sanitizeMicrodata = exports.mergeVideoMicrodata = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const sanitize_html_1 = tslib_1.__importDefault(require("sanitize-html"));
|
|
6
|
-
const mergeVideoMicrodata = (values = {}, newValues = {}) => (Object.assign(Object.assign({}, values), { videoMicrodata: Object.assign(Object.assign({}, newValues), (values.videoMicrodata || {})) }));
|
|
7
|
-
exports.mergeVideoMicrodata = mergeVideoMicrodata;
|
|
8
|
-
function sanitizeMicrodata(html) {
|
|
9
|
-
return html && (0, sanitize_html_1.default)(html, { allowedTags: [], allowedAttributes: {} });
|
|
10
|
-
}
|
|
11
|
-
exports.sanitizeMicrodata = sanitizeMicrodata;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import sanitize from 'sanitize-html';
|
|
2
|
-
export const mergeVideoMicrodata = (values = {}, newValues = {}) => (Object.assign(Object.assign({}, values), { videoMicrodata: Object.assign(Object.assign({}, newValues), (values.videoMicrodata || {})) }));
|
|
3
|
-
export function sanitizeMicrodata(html) {
|
|
4
|
-
return html && sanitize(html, { allowedTags: [], allowedAttributes: {} });
|
|
5
|
-
}
|