@gravity-ui/page-constructor 3.0.0-alpha.3 → 3.0.0-alpha.4
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/README.md +0 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +1 -1
- package/build/cjs/blocks/Icons/Icons.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -1
- package/build/cjs/blocks/Slider/Slider.js +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +1 -1
- package/build/cjs/components/MediaBase/MediaBase.js +1 -1
- package/build/cjs/components/Title/Title.d.ts +1 -1
- package/build/cjs/components/Title/Title.js +4 -4
- package/build/cjs/components/Title/TitleItem.d.ts +2 -2
- package/build/cjs/components/Title/TitleItem.js +2 -2
- package/build/cjs/components/index.d.ts +0 -1
- package/build/cjs/components/index.js +3 -5
- package/build/cjs/constructor-items.d.ts +0 -1
- package/build/cjs/constructor-items.js +0 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.css +0 -12
- package/build/cjs/containers/PageConstructor/PageConstructor.js +3 -8
- package/build/cjs/models/constructor-items/blocks.d.ts +4 -2
- package/build/cjs/models/constructor-items/common.d.ts +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -14
- package/build/cjs/models/constructor-items/sub-blocks.js +0 -1
- package/build/cjs/models/constructor.d.ts +0 -1
- package/build/cjs/schema/index.d.ts +0 -6
- package/build/cjs/schema/index.js +2 -8
- package/build/cjs/schema/validators/sub-blocks.d.ts +0 -1
- package/build/cjs/schema/validators/sub-blocks.js +0 -1
- package/build/cjs/sub-blocks/Content/Content.js +3 -3
- package/build/cjs/sub-blocks/index.d.ts +0 -1
- package/build/cjs/sub-blocks/index.js +1 -3
- package/build/cjs/text-transform/transformers.d.ts +0 -2
- package/build/cjs/text-transform/transformers.js +1 -4
- package/build/esm/blocks/CardLayout/CardLayout.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/esm/blocks/FilterBlock/FilterBlock.js +2 -2
- package/build/esm/blocks/Icons/Icons.js +2 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -1
- package/build/esm/blocks/Slider/Slider.js +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +1 -1
- package/build/esm/components/MediaBase/MediaBase.js +1 -1
- package/build/esm/components/Title/Title.d.ts +1 -1
- package/build/esm/components/Title/Title.js +4 -4
- package/build/esm/components/Title/TitleItem.d.ts +2 -2
- package/build/esm/components/Title/TitleItem.js +2 -2
- package/build/esm/components/index.d.ts +0 -1
- package/build/esm/components/index.js +0 -1
- package/build/esm/constructor-items.d.ts +0 -1
- package/build/esm/constructor-items.js +1 -2
- package/build/esm/containers/PageConstructor/PageConstructor.css +0 -12
- package/build/esm/containers/PageConstructor/PageConstructor.js +3 -8
- package/build/esm/models/constructor-items/blocks.d.ts +4 -2
- package/build/esm/models/constructor-items/common.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -14
- package/build/esm/models/constructor-items/sub-blocks.js +0 -1
- package/build/esm/models/constructor.d.ts +0 -1
- package/build/esm/schema/index.d.ts +0 -6
- package/build/esm/schema/index.js +3 -9
- package/build/esm/schema/validators/sub-blocks.d.ts +0 -1
- package/build/esm/schema/validators/sub-blocks.js +0 -1
- package/build/esm/sub-blocks/Content/Content.js +3 -3
- package/build/esm/sub-blocks/index.d.ts +0 -1
- package/build/esm/sub-blocks/index.js +0 -1
- package/build/esm/text-transform/transformers.d.ts +0 -2
- package/build/esm/text-transform/transformers.js +1 -4
- package/package.json +4 -1
- package/server/models/constructor-items/blocks.d.ts +4 -2
- package/server/models/constructor-items/common.d.ts +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +1 -14
- package/server/models/constructor-items/sub-blocks.js +0 -1
- package/server/models/constructor.d.ts +0 -1
- package/server/text-transform/transformers.d.ts +0 -2
- package/server/text-transform/transformers.js +1 -4
- package/styles/styles.css +0 -12
- package/styles/yfm.scss +0 -14
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.css +0 -12
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.d.ts +0 -8
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +0 -19
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/index.d.ts +0 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/index.js +0 -4
- package/build/cjs/sub-blocks/NewsCard/NewsCard.css +0 -18
- package/build/cjs/sub-blocks/NewsCard/NewsCard.d.ts +0 -3
- package/build/cjs/sub-blocks/NewsCard/NewsCard.js +0 -16
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +0 -23
- package/build/cjs/sub-blocks/NewsCard/schema.js +0 -20
- package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.css +0 -12
- package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.d.ts +0 -9
- package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +0 -15
- package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/index.d.ts +0 -1
- package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/index.js +0 -1
- package/build/esm/sub-blocks/NewsCard/NewsCard.css +0 -18
- package/build/esm/sub-blocks/NewsCard/NewsCard.d.ts +0 -4
- package/build/esm/sub-blocks/NewsCard/NewsCard.js +0 -14
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +0 -23
- package/build/esm/sub-blocks/NewsCard/schema.js +0 -17
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.pc-news-card__title {
|
|
2
|
-
margin: 0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* use this for style redefinitions to awoid problems with
|
|
6
|
-
unpredictable css rules order in build */
|
|
7
|
-
.pc-news-card__date {
|
|
8
|
-
display: block;
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
margin-bottom: 8px;
|
|
11
|
-
color: var(--yc-color-text-secondary);
|
|
12
|
-
}
|
|
13
|
-
.pc-news-card__title {
|
|
14
|
-
font-size: var(--yc-text-header-1-font-size);
|
|
15
|
-
line-height: var(--yc-text-header-1-line-height);
|
|
16
|
-
color: var(--pc-text-header-color);
|
|
17
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const components_1 = require("../../components");
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
|
-
const b = (0, utils_1.block)('news-card');
|
|
8
|
-
const NewsCard = (props) => {
|
|
9
|
-
const { date, isoDate, title, border, url } = props;
|
|
10
|
-
return (react_1.default.createElement(components_1.CardBase, { className: b(), url: url, border: border },
|
|
11
|
-
react_1.default.createElement(components_1.CardBase.Content, null,
|
|
12
|
-
isoDate ? (react_1.default.createElement("time", { className: b('date'), dateTime: isoDate }, date)) : (react_1.default.createElement("p", { className: b('date') }, date)),
|
|
13
|
-
react_1.default.createElement("h4", { className: b('title') },
|
|
14
|
-
react_1.default.createElement(components_1.HTML, null, title)))));
|
|
15
|
-
};
|
|
16
|
-
exports.default = NewsCard;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const NewsCard: {
|
|
2
|
-
'news-card': {
|
|
3
|
-
additionalProperties: boolean;
|
|
4
|
-
required: string[];
|
|
5
|
-
properties: {
|
|
6
|
-
title: {
|
|
7
|
-
type: string;
|
|
8
|
-
contentType: string;
|
|
9
|
-
};
|
|
10
|
-
url: {
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
date: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
isoDate: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
type: {};
|
|
20
|
-
when: {};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewsCard = void 0;
|
|
4
|
-
const common_1 = require("../../schema/validators/common");
|
|
5
|
-
exports.NewsCard = {
|
|
6
|
-
'news-card': {
|
|
7
|
-
additionalProperties: false,
|
|
8
|
-
required: ['title', 'url', 'date'],
|
|
9
|
-
properties: Object.assign(Object.assign({}, common_1.BaseProps), { title: {
|
|
10
|
-
type: 'string',
|
|
11
|
-
contentType: 'text',
|
|
12
|
-
}, url: {
|
|
13
|
-
type: 'string',
|
|
14
|
-
}, date: {
|
|
15
|
-
type: 'string',
|
|
16
|
-
}, isoDate: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
} }),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
|
2
|
-
unpredictable css rules order in build */
|
|
3
|
-
.pc-constructor-footnotes {
|
|
4
|
-
margin: 0;
|
|
5
|
-
padding: 32px 0 32px 16px;
|
|
6
|
-
font-size: var(--yc-text-body-1-font-size);
|
|
7
|
-
line-height: var(--yc-text-body-1-line-height);
|
|
8
|
-
color: var(--yc-color-text-hint);
|
|
9
|
-
}
|
|
10
|
-
.pc-constructor-footnotes__item + .pc-constructor-footnotes__item {
|
|
11
|
-
margin-top: 12px;
|
|
12
|
-
}
|
package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { YFMWrapper } from '../../../../components';
|
|
3
|
-
import { block } from '../../../../utils';
|
|
4
|
-
import './ConstructorFootnotes.css';
|
|
5
|
-
const b = block('constructor-footnotes');
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use Content block instead
|
|
8
|
-
*
|
|
9
|
-
* @return - JSX
|
|
10
|
-
*/
|
|
11
|
-
export const ConstructorFootnotes = ({ items }) => (React.createElement("ol", { className: b() }, items.map((footnote, index) => (React.createElement("li", { className: b('item'), key: index },
|
|
12
|
-
React.createElement(YFMWrapper, { content: footnote, modifiers: {
|
|
13
|
-
constructor: true,
|
|
14
|
-
constructorFootnotePage: true,
|
|
15
|
-
} }))))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConstructorFootnotes';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConstructorFootnotes';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.pc-news-card__title {
|
|
2
|
-
margin: 0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* use this for style redefinitions to awoid problems with
|
|
6
|
-
unpredictable css rules order in build */
|
|
7
|
-
.pc-news-card__date {
|
|
8
|
-
display: block;
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
margin-bottom: 8px;
|
|
11
|
-
color: var(--yc-color-text-secondary);
|
|
12
|
-
}
|
|
13
|
-
.pc-news-card__title {
|
|
14
|
-
font-size: var(--yc-text-header-1-font-size);
|
|
15
|
-
line-height: var(--yc-text-header-1-line-height);
|
|
16
|
-
color: var(--pc-text-header-color);
|
|
17
|
-
font-weight: var(--yc-text-accent-font-weight);
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardBase, HTML } from '../../components';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
|
-
import './NewsCard.css';
|
|
5
|
-
const b = block('news-card');
|
|
6
|
-
const NewsCard = (props) => {
|
|
7
|
-
const { date, isoDate, title, border, url } = props;
|
|
8
|
-
return (React.createElement(CardBase, { className: b(), url: url, border: border },
|
|
9
|
-
React.createElement(CardBase.Content, null,
|
|
10
|
-
isoDate ? (React.createElement("time", { className: b('date'), dateTime: isoDate }, date)) : (React.createElement("p", { className: b('date') }, date)),
|
|
11
|
-
React.createElement("h4", { className: b('title') },
|
|
12
|
-
React.createElement(HTML, null, title)))));
|
|
13
|
-
};
|
|
14
|
-
export default NewsCard;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const NewsCard: {
|
|
2
|
-
'news-card': {
|
|
3
|
-
additionalProperties: boolean;
|
|
4
|
-
required: string[];
|
|
5
|
-
properties: {
|
|
6
|
-
title: {
|
|
7
|
-
type: string;
|
|
8
|
-
contentType: string;
|
|
9
|
-
};
|
|
10
|
-
url: {
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
date: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
isoDate: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
type: {};
|
|
20
|
-
when: {};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseProps } from '../../schema/validators/common';
|
|
2
|
-
export const NewsCard = {
|
|
3
|
-
'news-card': {
|
|
4
|
-
additionalProperties: false,
|
|
5
|
-
required: ['title', 'url', 'date'],
|
|
6
|
-
properties: Object.assign(Object.assign({}, BaseProps), { title: {
|
|
7
|
-
type: 'string',
|
|
8
|
-
contentType: 'text',
|
|
9
|
-
}, url: {
|
|
10
|
-
type: 'string',
|
|
11
|
-
}, date: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
}, isoDate: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
} }),
|
|
16
|
-
},
|
|
17
|
-
};
|