@doyourjob/gravity-ui-page-constructor 5.31.224 → 5.31.225
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/Scroller/Scroller.css +4 -19
- package/build/cjs/blocks/Scroller/Scroller.js +6 -8
- package/build/cjs/blocks/Scroller/schema.d.ts +0 -6
- package/build/cjs/blocks/Scroller/schema.js +1 -5
- package/build/cjs/blocks/WhatsNew/WhatsNew.css +83 -0
- package/build/cjs/blocks/WhatsNew/WhatsNew.d.ts +4 -0
- package/build/cjs/blocks/WhatsNew/WhatsNew.js +21 -0
- package/build/cjs/blocks/WhatsNew/schema.d.ts +362 -0
- package/build/cjs/blocks/WhatsNew/schema.js +53 -0
- package/build/cjs/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- package/build/cjs/constructor-items.d.ts +2 -0
- package/build/cjs/constructor-items.js +2 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +18 -6
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +14 -1
- package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +35 -0
- package/build/cjs/schema/constants.js +4 -2
- package/build/cjs/schema/validators/blocks.d.ts +1 -0
- package/build/cjs/schema/validators/blocks.js +1 -0
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/cjs/sub-blocks/NewsCard/NewsCard.css +61 -0
- package/build/cjs/sub-blocks/NewsCard/NewsCard.d.ts +3 -0
- package/build/cjs/sub-blocks/NewsCard/NewsCard.js +16 -0
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +37 -0
- package/build/cjs/sub-blocks/NewsCard/schema.js +28 -0
- package/build/cjs/sub-blocks/index.d.ts +1 -0
- package/build/cjs/sub-blocks/index.js +3 -1
- package/build/esm/blocks/Scroller/Scroller.css +4 -19
- package/build/esm/blocks/Scroller/Scroller.js +6 -8
- package/build/esm/blocks/Scroller/schema.d.ts +0 -6
- package/build/esm/blocks/Scroller/schema.js +1 -5
- package/build/esm/blocks/WhatsNew/WhatsNew.css +83 -0
- package/build/esm/blocks/WhatsNew/WhatsNew.d.ts +5 -0
- package/build/esm/blocks/WhatsNew/WhatsNew.js +19 -0
- package/build/esm/blocks/WhatsNew/schema.d.ts +362 -0
- package/build/esm/blocks/WhatsNew/schema.js +50 -0
- package/build/esm/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- package/build/esm/constructor-items.d.ts +2 -0
- package/build/esm/constructor-items.js +4 -2
- package/build/esm/models/constructor-items/blocks.d.ts +18 -6
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/models/constructor-items/sub-blocks.d.ts +14 -1
- package/build/esm/models/constructor-items/sub-blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +35 -0
- package/build/esm/schema/constants.js +6 -4
- package/build/esm/schema/validators/blocks.d.ts +1 -0
- package/build/esm/schema/validators/blocks.js +1 -0
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/build/esm/sub-blocks/NewsCard/NewsCard.css +61 -0
- package/build/esm/sub-blocks/NewsCard/NewsCard.d.ts +4 -0
- package/build/esm/sub-blocks/NewsCard/NewsCard.js +14 -0
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +37 -0
- package/build/esm/sub-blocks/NewsCard/schema.js +25 -0
- package/build/esm/sub-blocks/index.d.ts +1 -0
- package/build/esm/sub-blocks/index.js +1 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +18 -6
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/models/constructor-items/sub-blocks.d.ts +14 -1
- package/server/models/constructor-items/sub-blocks.js +1 -0
|
@@ -13,36 +13,21 @@ unpredictable css rules order in build */
|
|
|
13
13
|
transition-delay: 0s;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
.pc-scroller-block__header {
|
|
17
|
-
margin-bottom: 72px;
|
|
18
|
-
}
|
|
19
|
-
.pc-scroller-block__title {
|
|
20
|
-
color: #001a2b;
|
|
21
|
-
font-size: 48px;
|
|
22
|
-
line-height: 52px;
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
text-align: center;
|
|
25
|
-
}
|
|
26
|
-
.pc-scroller-block__text {
|
|
27
|
-
color: #001a2b;
|
|
28
|
-
margin-top: 16px;
|
|
29
|
-
font-size: 24px;
|
|
30
|
-
line-height: 28px;
|
|
31
|
-
text-align: center;
|
|
32
|
-
}
|
|
33
16
|
.pc-scroller-block__content {
|
|
34
17
|
position: relative;
|
|
35
18
|
gap: 16px;
|
|
36
19
|
display: flex;
|
|
37
20
|
flex-wrap: nowrap;
|
|
38
|
-
|
|
39
|
-
overflow: scroll;
|
|
21
|
+
overflow-x: auto;
|
|
40
22
|
-webkit-overflow-scrolling: touch;
|
|
41
23
|
scrollbar-width: none;
|
|
42
24
|
}
|
|
43
25
|
.pc-scroller-block__content::-webkit-scrollbar {
|
|
44
26
|
display: none;
|
|
45
27
|
}
|
|
28
|
+
.pc-scroller-block__content_fullWidth {
|
|
29
|
+
width: 100vw;
|
|
30
|
+
}
|
|
46
31
|
.pc-scroller-block__content_gapLong {
|
|
47
32
|
gap: 48px;
|
|
48
33
|
}
|
|
@@ -7,16 +7,17 @@ const components_1 = require("../../components");
|
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
8
8
|
const b = (0, utils_1.block)('scroller-block');
|
|
9
9
|
const ScrollerBlock = (props) => {
|
|
10
|
-
const { animated,
|
|
10
|
+
const { animated, widths, gapLong, fullWidth, children } = props;
|
|
11
11
|
const rootRef = (0, react_1.useRef)(null);
|
|
12
12
|
const contentRef = (0, react_1.useRef)(null);
|
|
13
13
|
(0, react_1.useEffect)(() => {
|
|
14
14
|
const updateSize = () => {
|
|
15
|
-
if (contentRef.current && rootRef.current) {
|
|
15
|
+
if (contentRef.current && rootRef.current && fullWidth) {
|
|
16
16
|
const space = (window.innerWidth - rootRef.current.clientWidth) / 2;
|
|
17
17
|
contentRef.current.style.setProperty('padding-left', `${space}px`);
|
|
18
18
|
contentRef.current.style.setProperty('padding-right', `${space}px`);
|
|
19
19
|
contentRef.current.style.setProperty('left', `${-space}px`);
|
|
20
|
+
contentRef.current.style.setProperty('width', `calc(100% + ${2 * space}px)`);
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
23
|
updateSize();
|
|
@@ -24,13 +25,10 @@ const ScrollerBlock = (props) => {
|
|
|
24
25
|
return () => {
|
|
25
26
|
window.removeEventListener('resize', updateSize);
|
|
26
27
|
};
|
|
27
|
-
}, []);
|
|
28
|
-
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
|
|
28
|
+
}, [fullWidth]);
|
|
29
|
+
return (react_1.default.createElement(components_1.AnimateBlock, { className: b({ fullWidth }), animate: animated },
|
|
29
30
|
react_1.default.createElement("div", { className: b('root'), ref: rootRef },
|
|
30
|
-
(
|
|
31
|
-
title && react_1.default.createElement("div", { className: b('title') }, title),
|
|
32
|
-
text && react_1.default.createElement("div", { className: b('text') }, text))),
|
|
33
|
-
react_1.default.createElement("div", { className: b('content', { gapLong }), ref: contentRef }, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement("div", { key: index, className: b('item'), style: { width: (widths === null || widths === void 0 ? void 0 : widths[index]) || '100%' } }, child)))))));
|
|
31
|
+
react_1.default.createElement("div", { className: b('content', { gapLong, fullWidth }), ref: contentRef }, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement("div", { key: index, className: b('item'), style: { width: (widths === null || widths === void 0 ? void 0 : widths[index]) || 'auto' } }, child)))))));
|
|
34
32
|
};
|
|
35
33
|
exports.ScrollerBlock = ScrollerBlock;
|
|
36
34
|
exports.default = exports.ScrollerBlock;
|
|
@@ -6,11 +6,7 @@ exports.ScrollerBlock = {
|
|
|
6
6
|
'scroller-block': {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), {
|
|
10
|
-
type: 'string',
|
|
11
|
-
}, text: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
}, widths: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { widths: {
|
|
14
10
|
type: 'array',
|
|
15
11
|
items: {
|
|
16
12
|
type: 'string',
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
@media (min-width: 769px) {
|
|
4
|
+
.pc-whats-new-block.pc-AnimateBlock .pc-whats-new-block__root, .pc-AnimateBlock .pc-whats-new-block .pc-whats-new-block__root {
|
|
5
|
+
position: relative;
|
|
6
|
+
top: 100px;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
.pc-whats-new-block.pc-AnimateBlock.animate .pc-whats-new-block__root, .pc-AnimateBlock .pc-whats-new-block.animate .pc-whats-new-block__root {
|
|
10
|
+
top: 0;
|
|
11
|
+
opacity: 1;
|
|
12
|
+
transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
13
|
+
transition-delay: 0s;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.pc-whats-new-block__root {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 32px;
|
|
20
|
+
}
|
|
21
|
+
.pc-whats-new-block__head {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: 16px;
|
|
25
|
+
align-items: center;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
.pc-whats-new-block__title {
|
|
29
|
+
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
30
|
+
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
33
|
+
color: var(--g-color-text-primary);
|
|
34
|
+
}
|
|
35
|
+
@media (max-width: 769px) {
|
|
36
|
+
.pc-whats-new-block__title {
|
|
37
|
+
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
38
|
+
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.pc-whats-new-block__footer {
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: 32px;
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 769px) {
|
|
48
|
+
.pc-whats-new-block__footer {
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: 12px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.pc-whats-new-block__footnote {
|
|
54
|
+
font-size: 24px;
|
|
55
|
+
line-height: 40px;
|
|
56
|
+
color: var(--g-color-text-primary);
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
}
|
|
59
|
+
@media (max-width: 769px) {
|
|
60
|
+
.pc-whats-new-block__footnote {
|
|
61
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
62
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.pc-whats-new-block__links {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
}
|
|
69
|
+
.pc-whats-new-block__link {
|
|
70
|
+
display: flex;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
@media (hover: hover) and (pointer: fine) {
|
|
74
|
+
.pc-whats-new-block__link:hover {
|
|
75
|
+
opacity: 0.8;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.pc-whats-new-block__icon {
|
|
79
|
+
display: block;
|
|
80
|
+
width: 40px;
|
|
81
|
+
height: 40px;
|
|
82
|
+
object-fit: cover;
|
|
83
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 NewsCard_1 = tslib_1.__importDefault(require("../../sub-blocks/NewsCard/NewsCard"));
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const Scroller_1 = tslib_1.__importDefault(require("../Scroller/Scroller"));
|
|
9
|
+
const b = (0, utils_1.block)('whats-new-block');
|
|
10
|
+
const WhatsNew = ({ title, items, footnote, links, animated }) => {
|
|
11
|
+
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
|
|
12
|
+
react_1.default.createElement("div", { className: b('root') },
|
|
13
|
+
title && (react_1.default.createElement("div", { className: b('head') },
|
|
14
|
+
react_1.default.createElement("h2", { className: b('title') }, title))),
|
|
15
|
+
react_1.default.createElement(Scroller_1.default, { fullWidth: true }, items.map((item, index) => (react_1.default.createElement(NewsCard_1.default, Object.assign({ key: index }, item))))),
|
|
16
|
+
(footnote || (links === null || links === void 0 ? void 0 : links.length)) && (react_1.default.createElement("div", { className: b('footer') },
|
|
17
|
+
footnote && react_1.default.createElement("div", { className: b('footnote') }, footnote),
|
|
18
|
+
(links === null || links === void 0 ? void 0 : links.length) ? (react_1.default.createElement("div", { className: b('links') }, links.map((link, index) => (react_1.default.createElement("a", { key: index, href: link.url, className: b('link'), target: "_blank", rel: "noopener noreferrer" },
|
|
19
|
+
react_1.default.createElement(components_1.Image, { src: link.icon, className: b('icon') })))))) : null)))));
|
|
20
|
+
};
|
|
21
|
+
exports.default = WhatsNew;
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
export declare const WhatsNewBlock: {
|
|
2
|
+
'whats-new-block': {
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
required: string[];
|
|
5
|
+
properties: {
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
items: {
|
|
9
|
+
type: string;
|
|
10
|
+
required: string[];
|
|
11
|
+
properties: {
|
|
12
|
+
image: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
square: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
text: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
links: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
type: string;
|
|
25
|
+
additionalProperties: boolean;
|
|
26
|
+
required: string[];
|
|
27
|
+
properties: {
|
|
28
|
+
url: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
icon: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
footnote: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
links: {
|
|
44
|
+
type: string;
|
|
45
|
+
items: {
|
|
46
|
+
type: string;
|
|
47
|
+
additionalProperties: boolean;
|
|
48
|
+
required: string[];
|
|
49
|
+
properties: {
|
|
50
|
+
url: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
icon: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
title: {
|
|
60
|
+
oneOf: ({
|
|
61
|
+
type: string;
|
|
62
|
+
optionName: string;
|
|
63
|
+
} | {
|
|
64
|
+
optionName: string;
|
|
65
|
+
type: string;
|
|
66
|
+
additionalProperties: boolean;
|
|
67
|
+
required: string[];
|
|
68
|
+
properties: {
|
|
69
|
+
text: {
|
|
70
|
+
type: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
};
|
|
73
|
+
link: {
|
|
74
|
+
type: string;
|
|
75
|
+
additionalProperties: boolean;
|
|
76
|
+
required: string[];
|
|
77
|
+
properties: {
|
|
78
|
+
text: {
|
|
79
|
+
type: string;
|
|
80
|
+
contentType: string;
|
|
81
|
+
};
|
|
82
|
+
url: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
urlTitle: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
arrow: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
theme: {
|
|
92
|
+
type: string;
|
|
93
|
+
enum: string[];
|
|
94
|
+
};
|
|
95
|
+
textSize: {
|
|
96
|
+
type: string;
|
|
97
|
+
enum: string[];
|
|
98
|
+
};
|
|
99
|
+
target: {
|
|
100
|
+
type: string;
|
|
101
|
+
enum: string[];
|
|
102
|
+
};
|
|
103
|
+
analyticsEvents: {
|
|
104
|
+
oneOf: ({
|
|
105
|
+
optionName: string;
|
|
106
|
+
type: string;
|
|
107
|
+
additionalProperties: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
required: string[];
|
|
111
|
+
properties: {
|
|
112
|
+
name: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
type: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
counters: {
|
|
119
|
+
type: string;
|
|
120
|
+
additionalProperties: boolean;
|
|
121
|
+
required: never[];
|
|
122
|
+
properties: {
|
|
123
|
+
include: {
|
|
124
|
+
type: string;
|
|
125
|
+
items: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
exclude: {
|
|
130
|
+
type: string;
|
|
131
|
+
items: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
context: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
items?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
type: string;
|
|
144
|
+
items: {
|
|
145
|
+
type: string;
|
|
146
|
+
additionalProperties: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
required: string[];
|
|
150
|
+
properties: {
|
|
151
|
+
name: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
type: {
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
counters: {
|
|
158
|
+
type: string;
|
|
159
|
+
additionalProperties: boolean;
|
|
160
|
+
required: never[];
|
|
161
|
+
properties: {
|
|
162
|
+
include: {
|
|
163
|
+
type: string;
|
|
164
|
+
items: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
exclude: {
|
|
169
|
+
type: string;
|
|
170
|
+
items: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
context: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
optionName: string;
|
|
182
|
+
})[];
|
|
183
|
+
};
|
|
184
|
+
type: {};
|
|
185
|
+
when: {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
textSize: {
|
|
191
|
+
type: string;
|
|
192
|
+
enum: string[];
|
|
193
|
+
};
|
|
194
|
+
bottomSpace: {
|
|
195
|
+
type: string;
|
|
196
|
+
enum: string[];
|
|
197
|
+
};
|
|
198
|
+
centered: {
|
|
199
|
+
type: string;
|
|
200
|
+
};
|
|
201
|
+
url: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
urlTitle: {
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
resetMargin: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
})[];
|
|
212
|
+
};
|
|
213
|
+
description: {
|
|
214
|
+
type: string;
|
|
215
|
+
contentType: string;
|
|
216
|
+
inputType: string;
|
|
217
|
+
};
|
|
218
|
+
animated: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
anchor: {
|
|
222
|
+
type: string;
|
|
223
|
+
additionalProperties: boolean;
|
|
224
|
+
required: string[];
|
|
225
|
+
properties: {
|
|
226
|
+
text: {
|
|
227
|
+
type: string;
|
|
228
|
+
contentType: string;
|
|
229
|
+
};
|
|
230
|
+
url: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
urlTitle: {
|
|
234
|
+
type: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
visibility: {
|
|
239
|
+
oneOf: ({
|
|
240
|
+
type: string;
|
|
241
|
+
enum: string[];
|
|
242
|
+
additionalProperties?: undefined;
|
|
243
|
+
properties?: undefined;
|
|
244
|
+
} | {
|
|
245
|
+
type: string;
|
|
246
|
+
additionalProperties: boolean;
|
|
247
|
+
properties: {
|
|
248
|
+
xs: {
|
|
249
|
+
type: string;
|
|
250
|
+
};
|
|
251
|
+
sm: {
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
md: {
|
|
255
|
+
type: string;
|
|
256
|
+
};
|
|
257
|
+
lg: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
xl: {
|
|
261
|
+
type: string;
|
|
262
|
+
};
|
|
263
|
+
xxl: {
|
|
264
|
+
type: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
enum?: undefined;
|
|
268
|
+
})[];
|
|
269
|
+
};
|
|
270
|
+
visible: {
|
|
271
|
+
type: string;
|
|
272
|
+
enum: string[];
|
|
273
|
+
};
|
|
274
|
+
hidden: {
|
|
275
|
+
type: string;
|
|
276
|
+
enum: string[];
|
|
277
|
+
};
|
|
278
|
+
resetPaddings: {
|
|
279
|
+
type: string;
|
|
280
|
+
};
|
|
281
|
+
context: {
|
|
282
|
+
type: string;
|
|
283
|
+
};
|
|
284
|
+
indent: {
|
|
285
|
+
type: string;
|
|
286
|
+
additionalProperties: boolean;
|
|
287
|
+
properties: {
|
|
288
|
+
top: {
|
|
289
|
+
enum: string[];
|
|
290
|
+
};
|
|
291
|
+
bottom: {
|
|
292
|
+
enum: string[];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
backgroundFull: {
|
|
297
|
+
type: string;
|
|
298
|
+
};
|
|
299
|
+
visibilityFilter: {
|
|
300
|
+
oneOf: ({
|
|
301
|
+
type: string;
|
|
302
|
+
items?: undefined;
|
|
303
|
+
} | {
|
|
304
|
+
type: string;
|
|
305
|
+
items: {
|
|
306
|
+
type: string;
|
|
307
|
+
};
|
|
308
|
+
})[];
|
|
309
|
+
};
|
|
310
|
+
blockUnicorn: {
|
|
311
|
+
type: string;
|
|
312
|
+
};
|
|
313
|
+
blockBackground: {
|
|
314
|
+
oneOf: ({
|
|
315
|
+
type: string;
|
|
316
|
+
additionalProperties?: undefined;
|
|
317
|
+
properties?: undefined;
|
|
318
|
+
} | {
|
|
319
|
+
type: string;
|
|
320
|
+
additionalProperties: boolean;
|
|
321
|
+
properties: {
|
|
322
|
+
color: {
|
|
323
|
+
type: string;
|
|
324
|
+
};
|
|
325
|
+
image: {
|
|
326
|
+
type: string;
|
|
327
|
+
};
|
|
328
|
+
size: {
|
|
329
|
+
type: string;
|
|
330
|
+
};
|
|
331
|
+
repeat: {
|
|
332
|
+
type: string;
|
|
333
|
+
};
|
|
334
|
+
position: {
|
|
335
|
+
type: string;
|
|
336
|
+
};
|
|
337
|
+
attachment: {
|
|
338
|
+
type: string;
|
|
339
|
+
};
|
|
340
|
+
clip: {
|
|
341
|
+
type: string;
|
|
342
|
+
};
|
|
343
|
+
origin: {
|
|
344
|
+
type: string;
|
|
345
|
+
};
|
|
346
|
+
blendMode: {
|
|
347
|
+
type: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
})[];
|
|
351
|
+
};
|
|
352
|
+
column: {
|
|
353
|
+
type: string;
|
|
354
|
+
enum: string[];
|
|
355
|
+
};
|
|
356
|
+
type: {};
|
|
357
|
+
when: {
|
|
358
|
+
type: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WhatsNewBlock = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.WhatsNewBlock = {
|
|
6
|
+
'whats-new-block': {
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
required: ['items'],
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), common_1.BlockHeaderProps), { items: {
|
|
10
|
+
type: 'array',
|
|
11
|
+
items: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
required: ['image'],
|
|
14
|
+
properties: {
|
|
15
|
+
image: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
},
|
|
18
|
+
square: {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
},
|
|
21
|
+
text: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
},
|
|
24
|
+
links: {
|
|
25
|
+
type: 'array',
|
|
26
|
+
items: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
additionalProperties: false,
|
|
29
|
+
required: ['url', 'icon'],
|
|
30
|
+
properties: {
|
|
31
|
+
url: { type: 'string' },
|
|
32
|
+
icon: { type: 'string' },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}, footnote: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
}, links: {
|
|
41
|
+
type: 'array',
|
|
42
|
+
items: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
required: ['url', 'icon'],
|
|
46
|
+
properties: {
|
|
47
|
+
url: { type: 'string' },
|
|
48
|
+
icon: { type: 'string' },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
} }),
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -60,4 +60,5 @@ export { default as SidebarWidgetBlock } from './SidebarWidget/SidebarWidget';
|
|
|
60
60
|
export { default as CatBlock } from './Cat/Cat';
|
|
61
61
|
export { default as AudioBlock } from './Audio/Audio';
|
|
62
62
|
export { default as OnetrustCookieListBlock } from './OnetrustCookieList/OnetrustCookieList';
|
|
63
|
+
export { default as WhatsNewBlock } from './WhatsNew/WhatsNew';
|
|
63
64
|
export { default as ScienceSuggestBlock } from './ScienceSuggest/ScienceSuggest';
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ScienceFeedBlock = exports.BlogFeedBlock = exports.EventsSectionBlock = exports.ResourceHubPostsBlock = exports.PartnersFeedBlock = exports.EventsFeedBlock = exports.LinkTableBlock = exports.FormWallBlock = exports.ReportsSectionsBlock = exports.ReportsCardsBlock = exports.PartnerHeaderBlock = exports.YFMBlock = exports.LayoutBlock = exports.AboutHeaderBlock = exports.ScienceHeaderBlock = exports.ReportsBlock = exports.QuotesBlock = exports.ServicesBlock = exports.SolutionsBlock = exports.MarqueeLinksBlock = exports.FormBlock = exports.FilterCardLayoutBlock = exports.FilterBlock = exports.ShareBlock = exports.BannerMinifyBlock = exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderMinifyBlock = exports.HeaderBlock = exports.TabLinksBlock = exports.TabsHighlightTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.ScrollerBlock = exports.BenefitsBlock = exports.AdvantagesBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderNewBlock = exports.SliderBlock = exports.MapBlock = exports.MediaBlock = exports.InfoBlock = exports.CompaniesBlock = exports.UnicornCardsBlock = exports.LogoRotatorBlock = exports.BannerBlock = void 0;
|
|
7
|
-
exports.ScienceSuggestBlock = exports.OnetrustCookieListBlock = exports.AudioBlock = exports.CatBlock = exports.SidebarWidgetBlock = exports.BenchmarkBlock = exports.MiniCaseBlock = exports.HighlightTableBlock = exports.PressReleasesBlock = exports.RelevantReportsBlock = exports.RelevantReportsCardsBlock = exports.RelevantPostsBlock = exports.CustomerStoriesFeedBlock = void 0;
|
|
7
|
+
exports.ScienceSuggestBlock = exports.WhatsNewBlock = exports.OnetrustCookieListBlock = exports.AudioBlock = exports.CatBlock = exports.SidebarWidgetBlock = exports.BenchmarkBlock = exports.MiniCaseBlock = exports.HighlightTableBlock = exports.PressReleasesBlock = exports.RelevantReportsBlock = exports.RelevantReportsCardsBlock = exports.RelevantPostsBlock = exports.CustomerStoriesFeedBlock = void 0;
|
|
8
8
|
var Banner_1 = require("./Banner/Banner");
|
|
9
9
|
Object.defineProperty(exports, "BannerBlock", { enumerable: true, get: function () { return __importDefault(Banner_1).default; } });
|
|
10
10
|
var LogoRotator_1 = require("./LogoRotator/LogoRotator");
|
|
@@ -129,5 +129,7 @@ var Audio_1 = require("./Audio/Audio");
|
|
|
129
129
|
Object.defineProperty(exports, "AudioBlock", { enumerable: true, get: function () { return __importDefault(Audio_1).default; } });
|
|
130
130
|
var OnetrustCookieList_1 = require("./OnetrustCookieList/OnetrustCookieList");
|
|
131
131
|
Object.defineProperty(exports, "OnetrustCookieListBlock", { enumerable: true, get: function () { return __importDefault(OnetrustCookieList_1).default; } });
|
|
132
|
+
var WhatsNew_1 = require("./WhatsNew/WhatsNew");
|
|
133
|
+
Object.defineProperty(exports, "WhatsNewBlock", { enumerable: true, get: function () { return __importDefault(WhatsNew_1).default; } });
|
|
132
134
|
var ScienceSuggest_1 = require("./ScienceSuggest/ScienceSuggest");
|
|
133
135
|
Object.defineProperty(exports, "ScienceSuggestBlock", { enumerable: true, get: function () { return __importDefault(ScienceSuggest_1).default; } });
|
|
@@ -22,3 +22,4 @@ tslib_1.__exportStar(require("./Table/schema"), exports);
|
|
|
22
22
|
tslib_1.__exportStar(require("./Share/schema"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./MarqueeLinks/schema"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./ResourceHubPosts/schema"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./WhatsNew/schema"), exports);
|