@gravity-ui/page-constructor 2.13.0-alpha.0 → 2.13.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/Security/Security.css +142 -0
  3. package/build/cjs/blocks/Security/Security.d.ts +3 -0
  4. package/build/cjs/blocks/Security/Security.js +29 -0
  5. package/build/cjs/blocks/Security/i18n/en.json +3 -0
  6. package/build/cjs/blocks/Security/i18n/index.d.ts +2 -0
  7. package/build/cjs/blocks/Security/i18n/index.js +8 -0
  8. package/build/cjs/blocks/Security/i18n/ru.json +3 -0
  9. package/build/cjs/blocks/Security/schema.d.ts +170 -0
  10. package/build/cjs/blocks/Security/schema.js +32 -0
  11. package/build/cjs/blocks/index.d.ts +1 -0
  12. package/build/cjs/blocks/index.js +3 -1
  13. package/build/cjs/blocks/validators.d.ts +1 -0
  14. package/build/cjs/blocks/validators.js +1 -0
  15. package/build/cjs/constructor-items.d.ts +1 -0
  16. package/build/cjs/constructor-items.js +1 -0
  17. package/build/cjs/models/constructor-items/blocks.d.ts +20 -1
  18. package/build/cjs/models/constructor-items/blocks.js +1 -0
  19. package/build/cjs/schema/index.js +1 -1
  20. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  21. package/build/cjs/schema/validators/blocks.js +1 -0
  22. package/build/cjs/schema/validators/components.d.ts +2 -0
  23. package/build/cjs/schema/validators/components.js +5 -0
  24. package/build/cjs/schema/validators/index.d.ts +2 -0
  25. package/build/cjs/schema/validators/index.js +2 -0
  26. package/build/esm/blocks/Security/Security.css +142 -0
  27. package/build/esm/blocks/Security/Security.d.ts +4 -0
  28. package/build/esm/blocks/Security/Security.js +25 -0
  29. package/build/esm/blocks/Security/i18n/en.json +3 -0
  30. package/build/esm/blocks/Security/i18n/index.d.ts +2 -0
  31. package/build/esm/blocks/Security/i18n/index.js +5 -0
  32. package/build/esm/blocks/Security/i18n/ru.json +3 -0
  33. package/build/esm/blocks/Security/schema.d.ts +170 -0
  34. package/build/esm/blocks/Security/schema.js +28 -0
  35. package/build/esm/blocks/index.d.ts +1 -0
  36. package/build/esm/blocks/index.js +1 -0
  37. package/build/esm/blocks/validators.d.ts +1 -0
  38. package/build/esm/blocks/validators.js +1 -0
  39. package/build/esm/constructor-items.d.ts +1 -0
  40. package/build/esm/constructor-items.js +2 -1
  41. package/build/esm/models/constructor-items/blocks.d.ts +20 -1
  42. package/build/esm/models/constructor-items/blocks.js +1 -0
  43. package/build/esm/schema/index.js +2 -2
  44. package/build/esm/schema/validators/blocks.d.ts +1 -0
  45. package/build/esm/schema/validators/blocks.js +1 -0
  46. package/build/esm/schema/validators/components.d.ts +2 -0
  47. package/build/esm/schema/validators/components.js +2 -0
  48. package/build/esm/schema/validators/index.d.ts +2 -0
  49. package/build/esm/schema/validators/index.js +2 -0
  50. package/package.json +1 -4
  51. package/server/models/constructor-items/blocks.d.ts +20 -1
  52. package/server/models/constructor-items/blocks.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.13.0](https://github.com/gravity-ui/page-constructor/compare/v2.12.0...v2.13.0) (2023-04-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * add components schemas in export ([#319](https://github.com/gravity-ui/page-constructor/issues/319)) ([756c209](https://github.com/gravity-ui/page-constructor/commit/756c20932c8643ffffbbd132a4a3d9e51439fbf7))
9
+
3
10
  ## [2.12.0](https://github.com/gravity-ui/page-constructor/compare/v2.11.0...v2.12.0) (2023-04-25)
4
11
 
5
12
 
@@ -0,0 +1,142 @@
1
+ .pc-SecurityBlock__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-SecurityBlock_theme_dark {
8
+ color: var(--yc-color-text-light-primary);
9
+ }
10
+ .pc-SecurityBlock_theme_dark h1,
11
+ .pc-SecurityBlock_theme_dark h2,
12
+ .pc-SecurityBlock_theme_dark h3,
13
+ .pc-SecurityBlock_theme_dark h4,
14
+ .pc-SecurityBlock_theme_dark h5,
15
+ .pc-SecurityBlock_theme_dark h6,
16
+ .pc-SecurityBlock_theme_dark .yfm {
17
+ color: var(--yc-color-text-light-primary);
18
+ }
19
+ .pc-SecurityBlock_theme_light .pc-SecurityBlock__background {
20
+ background-color: var(--yc-color-base-background);
21
+ }
22
+ .pc-SecurityBlock_theme_light .pc-SecurityBlock__content {
23
+ padding: 0;
24
+ }
25
+ .pc-SecurityBlock_theme_light .pc-SecurityBlock__point-icon,
26
+ .pc-SecurityBlock_theme_light .pc-SecurityBlock__point-text {
27
+ color: var(--yc-color-text-primary);
28
+ }
29
+ .pc-SecurityBlock__title {
30
+ font-size: var(--yc-text-display-2-font-size);
31
+ line-height: var(--yc-text-display-2-line-height);
32
+ color: var(--pc-text-header-color);
33
+ font-weight: var(--yc-text-accent-font-weight);
34
+ }
35
+ @media (max-width: 576px) {
36
+ .pc-SecurityBlock__title {
37
+ font-size: var(--yc-text-display-1-font-size);
38
+ line-height: var(--yc-text-display-1-line-height);
39
+ }
40
+ }
41
+ .pc-SecurityBlock__background {
42
+ background-color: var(--yc-color-promo-base-asphalt);
43
+ }
44
+ .pc-SecurityBlock__content {
45
+ padding: 96px 0 128px;
46
+ }
47
+ .pc-SecurityBlock__points {
48
+ padding-top: 20px;
49
+ }
50
+ .pc-SecurityBlock__point-icon {
51
+ width: 48px;
52
+ height: 48px;
53
+ }
54
+ .pc-SecurityBlock__point-text {
55
+ color: var(--yc-color-text-light-primary);
56
+ }
57
+ .pc-SecurityBlock__point-text a {
58
+ outline: none;
59
+ color: var(--yc-color-text-link);
60
+ text-decoration: none;
61
+ cursor: pointer;
62
+ }
63
+ .utilityfocus .pc-SecurityBlock__point-text a:focus {
64
+ outline: 2px solid #ffdb4d;
65
+ }
66
+ .pc-SecurityBlock__point-text a:hover, .pc-SecurityBlock__point-text a:active {
67
+ --pc-text-header-color: var(--yc-color-text-link-hover);
68
+ color: var(--yc-color-text-link-hover);
69
+ }
70
+ .pc-SecurityBlock__point-text, .pc-SecurityBlock__point-link {
71
+ font-size: var(--yc-text-body-2-font-size);
72
+ line-height: var(--yc-text-body-2-line-height);
73
+ margin-top: 8px;
74
+ }
75
+ .pc-SecurityBlock__media {
76
+ margin-top: 48px;
77
+ border-radius: var(--pc-border-radius);
78
+ overflow: hidden;
79
+ }
80
+ @media (max-width: 577px) {
81
+ .pc-SecurityBlock__content {
82
+ padding: 64px 0;
83
+ }
84
+ .pc-SecurityBlock__point + .pc-SecurityBlock__point {
85
+ margin-top: 20px;
86
+ }
87
+ }
88
+ @media (min-width: 769px) {
89
+ .pc-SecurityBlock.pc-AnimateBlock .pc-SecurityBlock__point, .pc-AnimateBlock .pc-SecurityBlock .pc-SecurityBlock__point {
90
+ position: relative;
91
+ top: 100px;
92
+ opacity: 0;
93
+ }
94
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point, .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point {
95
+ top: 0;
96
+ opacity: 1;
97
+ 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);
98
+ }
99
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(0), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(0) {
100
+ transition-delay: 0s;
101
+ }
102
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(1), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(1) {
103
+ transition-delay: 0.1s;
104
+ }
105
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(2), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(2) {
106
+ transition-delay: 0.2s;
107
+ }
108
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(3), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(3) {
109
+ transition-delay: 0.3s;
110
+ }
111
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(4), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(4) {
112
+ transition-delay: 0.4s;
113
+ }
114
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(5), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(5) {
115
+ transition-delay: 0.5s;
116
+ }
117
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(6), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(6) {
118
+ transition-delay: 0.6s;
119
+ }
120
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(7), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(7) {
121
+ transition-delay: 0.7s;
122
+ }
123
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(8), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(8) {
124
+ transition-delay: 0.8s;
125
+ }
126
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__point:nth-child(9), .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__point:nth-child(9) {
127
+ transition-delay: 0.9s;
128
+ }
129
+ }
130
+ @media (min-width: 769px) {
131
+ .pc-SecurityBlock.pc-AnimateBlock .pc-SecurityBlock__media, .pc-AnimateBlock .pc-SecurityBlock .pc-SecurityBlock__media {
132
+ position: relative;
133
+ top: 100px;
134
+ opacity: 0;
135
+ }
136
+ .pc-SecurityBlock.pc-AnimateBlock.animate .pc-SecurityBlock__media, .pc-AnimateBlock .pc-SecurityBlock.animate .pc-SecurityBlock__media {
137
+ top: 0;
138
+ opacity: 1;
139
+ 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);
140
+ transition-delay: 0.5s;
141
+ }
142
+ }
@@ -0,0 +1,3 @@
1
+ import { SecurityBlockProps } from '../../models';
2
+ export declare const SecurityBlock: (props: SecurityBlockProps) => JSX.Element;
3
+ export default SecurityBlock;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecurityBlock = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const components_1 = require("../../components");
7
+ const grid_1 = require("../../grid");
8
+ const utils_1 = require("../../utils");
9
+ const i18n_1 = tslib_1.__importDefault(require("./i18n"));
10
+ const b = (0, utils_1.block)('SecurityBlock');
11
+ const SecurityBlock = (props) => {
12
+ const { backgroundColor, theme = 'dark', title, points, media, animated } = props;
13
+ return (react_1.default.createElement(components_1.AnimateBlock, { className: b({ theme }), offset: 200, animate: animated },
14
+ react_1.default.createElement("div", { className: b('content') },
15
+ react_1.default.createElement(components_1.FullWidthBackground, { className: b('background'), style: { backgroundColor } }),
16
+ react_1.default.createElement(grid_1.Grid, null,
17
+ react_1.default.createElement(grid_1.Row, null,
18
+ react_1.default.createElement(grid_1.Col, null,
19
+ react_1.default.createElement("h2", { className: b('title') }, title))),
20
+ points && (react_1.default.createElement(grid_1.Row, { className: b('points') }, points.map(({ text, link, img }, index) => (react_1.default.createElement(grid_1.Col, { key: index, className: b('point'), sizes: { sm: 4, all: 12 } },
21
+ react_1.default.createElement(components_1.ImageBase, { className: b('point-icon'), src: img, alt: text || (0, i18n_1.default)('image-alt') }),
22
+ react_1.default.createElement(components_1.HTML, { className: b('point-text'), block: true }, text),
23
+ link && (react_1.default.createElement(components_1.Link, { className: b('point-link'), text: link.text, url: link.url, theme: 'normal', arrow: true }))))))),
24
+ media && (react_1.default.createElement(grid_1.Row, { className: b('media') },
25
+ react_1.default.createElement(grid_1.Col, null,
26
+ react_1.default.createElement(components_1.Media, Object.assign({ className: b('media') }, media)))))))));
27
+ };
28
+ exports.SecurityBlock = SecurityBlock;
29
+ exports.default = exports.SecurityBlock;
@@ -0,0 +1,3 @@
1
+ {
2
+ "image-alt": "Point icon"
3
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const registerKeyset_1 = require("../../../utils/registerKeyset");
5
+ const en_json_1 = tslib_1.__importDefault(require("./en.json"));
6
+ const ru_json_1 = tslib_1.__importDefault(require("./ru.json"));
7
+ const COMPONENT = 'SecurityBlock';
8
+ exports.default = (0, registerKeyset_1.registerKeyset)({ en: en_json_1.default, ru: ru_json_1.default }, COMPONENT);
@@ -0,0 +1,3 @@
1
+ {
2
+ "image-alt": "Иконка"
3
+ }
@@ -0,0 +1,170 @@
1
+ export declare const SecurityBlock: {
2
+ 'security-block': {
3
+ additionalProperties: boolean;
4
+ required: string[];
5
+ properties: {
6
+ theme: {
7
+ type: string;
8
+ enum: string[];
9
+ };
10
+ backgroundColor: {
11
+ type: string;
12
+ };
13
+ title: {
14
+ type: string;
15
+ contentType: string;
16
+ };
17
+ media: {
18
+ type: string;
19
+ additionalProperties: boolean;
20
+ required: never[];
21
+ properties: {
22
+ color: {
23
+ type: string;
24
+ };
25
+ image: {
26
+ anyOf: ({
27
+ oneOf: ({
28
+ type: string;
29
+ properties: {
30
+ when: {
31
+ type: string;
32
+ };
33
+ };
34
+ } | {
35
+ type: string;
36
+ pattern: string;
37
+ })[];
38
+ } | {
39
+ type: string;
40
+ items: {
41
+ oneOf: ({
42
+ type: string;
43
+ properties: {
44
+ when: {
45
+ type: string;
46
+ };
47
+ };
48
+ } | {
49
+ type: string;
50
+ pattern: string;
51
+ })[];
52
+ };
53
+ })[];
54
+ };
55
+ video: {
56
+ type: string;
57
+ additionalProperties: boolean;
58
+ required: string[];
59
+ properties: {
60
+ src: {
61
+ type: string;
62
+ items: {
63
+ type: string;
64
+ };
65
+ };
66
+ loop: {
67
+ anyOf: ({
68
+ type: string;
69
+ additionalProperties: boolean;
70
+ required: string[];
71
+ properties: {
72
+ start: {
73
+ type: string;
74
+ };
75
+ end: {
76
+ type: string;
77
+ };
78
+ };
79
+ } | {
80
+ type: string;
81
+ })[];
82
+ };
83
+ type: {
84
+ type: string;
85
+ enum: string[];
86
+ };
87
+ muted: {
88
+ type: string;
89
+ };
90
+ playing: {
91
+ type: string;
92
+ };
93
+ elapsedTime: {
94
+ type: string;
95
+ };
96
+ playIcon: {
97
+ type: string;
98
+ additionalProperties: boolean;
99
+ properties: {
100
+ type: {
101
+ type: string;
102
+ enum: string[];
103
+ };
104
+ theme: {
105
+ type: string;
106
+ enum: string[];
107
+ };
108
+ text: {
109
+ type: string;
110
+ contentType: string;
111
+ };
112
+ };
113
+ };
114
+ controls: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ };
119
+ };
120
+ youtube: {
121
+ type: string;
122
+ };
123
+ parallax: {
124
+ type: string;
125
+ };
126
+ height: {
127
+ type: string;
128
+ };
129
+ previewImg: {
130
+ type: string;
131
+ };
132
+ dataLens: {
133
+ oneOf: ({
134
+ type: string;
135
+ additionalProperties: boolean;
136
+ required: string[];
137
+ properties: {
138
+ id: {
139
+ type: string;
140
+ };
141
+ theme: {
142
+ type: string;
143
+ enum: string[];
144
+ };
145
+ };
146
+ } | {
147
+ type: string;
148
+ })[];
149
+ };
150
+ };
151
+ };
152
+ points: {
153
+ type: string;
154
+ items: {
155
+ type: string;
156
+ properties: {
157
+ when: {
158
+ type: string;
159
+ };
160
+ };
161
+ };
162
+ };
163
+ animated: {
164
+ type: string;
165
+ };
166
+ type: {};
167
+ when: {};
168
+ };
169
+ };
170
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecurityBlock = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const lodash_1 = tslib_1.__importDefault(require("lodash"));
6
+ const common_1 = require("../../schema/validators/common");
7
+ const utils_1 = require("../../schema/validators/utils");
8
+ const schema_1 = require("../Media/schema");
9
+ exports.SecurityBlock = {
10
+ 'security-block': {
11
+ additionalProperties: false,
12
+ required: ['title', 'media'],
13
+ properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { theme: common_1.ThemeProps, backgroundColor: {
14
+ type: 'string',
15
+ }, title: {
16
+ type: 'string',
17
+ contentType: 'text',
18
+ }, media: schema_1.Media, points: (0, utils_1.filteredArray)({
19
+ type: 'object',
20
+ properties: {
21
+ img: {
22
+ type: 'string',
23
+ },
24
+ text: {
25
+ type: 'string',
26
+ contentType: 'text',
27
+ },
28
+ link: lodash_1.default.pick(common_1.LinkProps, ['text', 'url']),
29
+ },
30
+ }) }),
31
+ },
32
+ };
@@ -5,6 +5,7 @@ export { default as InfoBlock } from './Info/Info';
5
5
  export { default as MediaBlock } from './Media/Media';
6
6
  export { default as MapBlock } from './Map/Map';
7
7
  export { default as PreviewBlock } from './Preview/Preview';
8
+ export { default as SecurityBlock } from './Security/Security';
8
9
  export { default as SliderBlock } from './Slider/Slider';
9
10
  export { default as ExtendedFeaturesBlock } from './ExtendedFeatures/ExtendedFeatures';
10
11
  export { default as PromoFeaturesBlock } from './PromoFeaturesBlock/PromoFeaturesBlock';
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FilterBlock = exports.ShareBlock = exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderBlock = exports.LinkTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderBlock = exports.PreviewBlock = exports.MapBlock = exports.MediaBlock = exports.InfoBlock = exports.SimpleBlock = exports.CompaniesBlock = exports.BannerBlock = void 0;
6
+ exports.FilterBlock = exports.ShareBlock = exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderBlock = exports.LinkTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderBlock = exports.SecurityBlock = exports.PreviewBlock = exports.MapBlock = exports.MediaBlock = exports.InfoBlock = exports.SimpleBlock = exports.CompaniesBlock = exports.BannerBlock = void 0;
7
7
  var Banner_1 = require("./Banner/Banner");
8
8
  Object.defineProperty(exports, "BannerBlock", { enumerable: true, get: function () { return __importDefault(Banner_1).default; } });
9
9
  var Companies_1 = require("./Companies/Companies");
@@ -18,6 +18,8 @@ var Map_1 = require("./Map/Map");
18
18
  Object.defineProperty(exports, "MapBlock", { enumerable: true, get: function () { return __importDefault(Map_1).default; } });
19
19
  var Preview_1 = require("./Preview/Preview");
20
20
  Object.defineProperty(exports, "PreviewBlock", { enumerable: true, get: function () { return __importDefault(Preview_1).default; } });
21
+ var Security_1 = require("./Security/Security");
22
+ Object.defineProperty(exports, "SecurityBlock", { enumerable: true, get: function () { return __importDefault(Security_1).default; } });
21
23
  var Slider_1 = require("./Slider/Slider");
22
24
  Object.defineProperty(exports, "SliderBlock", { enumerable: true, get: function () { return __importDefault(Slider_1).default; } });
23
25
  var ExtendedFeatures_1 = require("./ExtendedFeatures/ExtendedFeatures");
@@ -12,6 +12,7 @@ export * from './Media/schema';
12
12
  export * from './Preview/schema';
13
13
  export * from './PromoFeaturesBlock/schema';
14
14
  export * from './Questions/schema';
15
+ export * from './Security/schema';
15
16
  export * from './Simple/schema';
16
17
  export * from './Slider/schema';
17
18
  export * from './Table/schema';
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./Media/schema"), exports);
15
15
  tslib_1.__exportStar(require("./Preview/schema"), exports);
16
16
  tslib_1.__exportStar(require("./PromoFeaturesBlock/schema"), exports);
17
17
  tslib_1.__exportStar(require("./Questions/schema"), exports);
18
+ tslib_1.__exportStar(require("./Security/schema"), exports);
18
19
  tslib_1.__exportStar(require("./Simple/schema"), exports);
19
20
  tslib_1.__exportStar(require("./Slider/schema"), exports);
20
21
  tslib_1.__exportStar(require("./Table/schema"), exports);
@@ -9,6 +9,7 @@ export declare const blockMap: {
9
9
  "media-block": (props: import("./models").MediaBlockProps) => JSX.Element;
10
10
  "preview-block": (props: import("./models").PreviewBlockProps) => JSX.Element;
11
11
  "info-block": (props: import("./models").InfoBlockProps) => JSX.Element;
12
+ "security-block": (props: import("./models").SecurityBlockProps) => JSX.Element;
12
13
  "table-block": (props: import("./models").TableBlockProps) => JSX.Element;
13
14
  "tabs-block": ({ items, title, description, animated, tabsColSizes, centered, direction, }: import("./models").TabsBlockProps) => JSX.Element;
14
15
  "link-table-block": ({ items, title, description, linkTheme }: import("./models").LinkTableBlockProps) => JSX.Element;
@@ -15,6 +15,7 @@ exports.blockMap = {
15
15
  [models_1.BlockType.MediaBlock]: blocks_1.MediaBlock,
16
16
  [models_1.BlockType.PreviewBlock]: blocks_1.PreviewBlock,
17
17
  [models_1.BlockType.InfoBlock]: blocks_1.InfoBlock,
18
+ [models_1.BlockType.SecurityBlock]: blocks_1.SecurityBlock,
18
19
  [models_1.BlockType.TableBlock]: blocks_1.TableBlock,
19
20
  [models_1.BlockType.TabsBlock]: blocks_1.TabsBlock,
20
21
  [models_1.BlockType.LinkTableBlock]: blocks_1.LinkTableBlock,
@@ -16,6 +16,7 @@ export declare enum BlockType {
16
16
  MediaBlock = "media-block",
17
17
  PreviewBlock = "preview-block",
18
18
  InfoBlock = "info-block",
19
+ SecurityBlock = "security-block",
19
20
  TableBlock = "table-block",
20
21
  TabsBlock = "tabs-block",
21
22
  SimpleBlock = "simple-block",
@@ -203,6 +204,21 @@ export interface InfoBlockProps {
203
204
  leftContent?: Omit<ContentBlockProps, 'colSizes' | 'theme' | 'size'>;
204
205
  rightContent?: Omit<ContentBlockProps, 'colSizes' | 'theme' | 'size'>;
205
206
  }
207
+ export interface SecurityBlockPoint {
208
+ img: string;
209
+ text: string;
210
+ link: {
211
+ text: string;
212
+ url: string;
213
+ };
214
+ }
215
+ export interface SecurityBlockProps extends Animatable {
216
+ theme?: TextTheme;
217
+ backgroundColor?: string;
218
+ title: string;
219
+ points?: SecurityBlockPoint[];
220
+ media: MediaProps;
221
+ }
206
222
  export interface TableProps {
207
223
  content: string[][];
208
224
  legend?: string[];
@@ -337,6 +353,9 @@ export type PreviewBlockModel = {
337
353
  export type InfoBlockModel = {
338
354
  type: BlockType.InfoBlock;
339
355
  } & InfoBlockProps;
356
+ export type SecurityBlockModel = {
357
+ type: BlockType.SecurityBlock;
358
+ } & SecurityBlockProps;
340
359
  export type TableBlockModel = {
341
360
  type: BlockType.TableBlock;
342
361
  } & TableBlockProps;
@@ -367,6 +386,6 @@ export type ContentLayoutBlockModel = {
367
386
  export type ShareBLockModel = {
368
387
  type: BlockType.ShareBlock;
369
388
  } & ShareBlockProps;
370
- type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | MapBlockModel | InfoBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel | FilterBlockModel;
389
+ type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | MapBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel | FilterBlockModel;
371
390
  export type Block = BlockModels & BlockBaseProps;
372
391
  export {};
@@ -14,6 +14,7 @@ var BlockType;
14
14
  BlockType["MediaBlock"] = "media-block";
15
15
  BlockType["PreviewBlock"] = "preview-block";
16
16
  BlockType["InfoBlock"] = "info-block";
17
+ BlockType["SecurityBlock"] = "security-block";
17
18
  BlockType["TableBlock"] = "table-block";
18
19
  BlockType["TabsBlock"] = "tabs-block";
19
20
  BlockType["SimpleBlock"] = "simple-block";
@@ -14,7 +14,7 @@ const getBlocksCases = (blocks) => {
14
14
  exports.getBlocksCases = getBlocksCases;
15
15
  function generateDefaultSchema(config) {
16
16
  const { cards = {}, blocks = {}, extensions = {} } = config !== null && config !== void 0 ? config : {};
17
- const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.SimpleBlock), blocks_1.LinkTableBlock), blocks_1.PreviewBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock);
17
+ const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.SecurityBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.SimpleBlock), blocks_1.LinkTableBlock), blocks_1.PreviewBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock);
18
18
  const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.PartnerBlock), sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.TutorialCard), sub_blocks_1.BackgroundCard), sub_blocks_1.NewsCard), sub_blocks_1.CardWithImage), sub_blocks_1.Quote), sub_blocks_1.BasicCard);
19
19
  const constructorBlockSchemaNames = [
20
20
  'divider',
@@ -8,6 +8,7 @@ export * from '../../blocks/Info/schema';
8
8
  export * from '../../blocks/Media/schema';
9
9
  export * from '../../blocks/Map/schema';
10
10
  export * from '../../blocks/Questions/schema';
11
+ export * from '../../blocks/Security/schema';
11
12
  export * from '../../blocks/Slider/schema';
12
13
  export * from '../../blocks/Table/schema';
13
14
  export * from '../../blocks/LinkTable/schema';
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("../../blocks/Info/schema"), exports);
11
11
  tslib_1.__exportStar(require("../../blocks/Media/schema"), exports);
12
12
  tslib_1.__exportStar(require("../../blocks/Map/schema"), exports);
13
13
  tslib_1.__exportStar(require("../../blocks/Questions/schema"), exports);
14
+ tslib_1.__exportStar(require("../../blocks/Security/schema"), exports);
14
15
  tslib_1.__exportStar(require("../../blocks/Slider/schema"), exports);
15
16
  tslib_1.__exportStar(require("../../blocks/Table/schema"), exports);
16
17
  tslib_1.__exportStar(require("../../blocks/LinkTable/schema"), exports);
@@ -0,0 +1,2 @@
1
+ export * from '../../components/Author/schema';
2
+ export * from '../../components/Image/schema';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("../../components/Author/schema"), exports);
5
+ tslib_1.__exportStar(require("../../components/Image/schema"), exports);
@@ -1,5 +1,6 @@
1
1
  import * as blocks from './blocks';
2
2
  import * as common from './common';
3
+ import * as components from './components';
3
4
  import * as navigation from './navigation';
4
5
  import * as pixel from './pixel';
5
6
  import * as subBlocks from './sub-blocks';
@@ -7,6 +8,7 @@ import * as utils from './utils';
7
8
  export declare const validators: {
8
9
  blocks: typeof blocks;
9
10
  common: typeof common;
11
+ components: typeof components;
10
12
  subBlocks: typeof subBlocks;
11
13
  pixel: typeof pixel;
12
14
  utils: typeof utils;
@@ -4,6 +4,7 @@ exports.validators = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const blocks = tslib_1.__importStar(require("./blocks"));
6
6
  const common = tslib_1.__importStar(require("./common"));
7
+ const components = tslib_1.__importStar(require("./components"));
7
8
  const navigation = tslib_1.__importStar(require("./navigation"));
8
9
  const pixel = tslib_1.__importStar(require("./pixel"));
9
10
  const subBlocks = tslib_1.__importStar(require("./sub-blocks"));
@@ -11,6 +12,7 @@ const utils = tslib_1.__importStar(require("./utils"));
11
12
  exports.validators = {
12
13
  blocks,
13
14
  common,
15
+ components,
14
16
  subBlocks,
15
17
  pixel,
16
18
  utils,