@gravity-ui/page-constructor 2.12.0-alpha → 2.13.0-alpha.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 (104) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/index.d.ts +0 -1
  3. package/build/cjs/blocks/index.js +1 -3
  4. package/build/cjs/blocks/validators.d.ts +0 -1
  5. package/build/cjs/blocks/validators.js +0 -1
  6. package/build/cjs/components/Button/Button.js +2 -2
  7. package/build/cjs/components/Button/i18n/en.json +3 -0
  8. package/build/cjs/components/Button/i18n/index.d.ts +2 -0
  9. package/build/cjs/components/Button/i18n/index.js +8 -0
  10. package/build/cjs/components/Button/i18n/ru.json +3 -0
  11. package/build/cjs/components/Control/Control.js +2 -1
  12. package/build/cjs/components/Control/i18n/en.json +3 -0
  13. package/build/cjs/components/Control/i18n/index.d.ts +2 -0
  14. package/build/cjs/components/Control/i18n/index.js +8 -0
  15. package/build/cjs/components/Control/i18n/ru.json +3 -0
  16. package/build/cjs/components/FullscreenImage/FullscreenImage.js +3 -2
  17. package/build/cjs/components/FullscreenImage/i18n/en.json +3 -0
  18. package/build/cjs/components/FullscreenImage/i18n/index.d.ts +2 -0
  19. package/build/cjs/components/FullscreenImage/i18n/index.js +8 -0
  20. package/build/cjs/components/FullscreenImage/i18n/ru.json +3 -0
  21. package/build/cjs/components/Image/Image.js +2 -1
  22. package/build/cjs/components/Image/i18n/en.json +3 -0
  23. package/build/cjs/components/Image/i18n/index.d.ts +2 -0
  24. package/build/cjs/components/Image/i18n/index.js +8 -0
  25. package/build/cjs/components/Image/i18n/ru.json +3 -0
  26. package/build/cjs/components/Map/GoogleMap.js +1 -1
  27. package/build/cjs/components/Media/DataLens/DataLens.js +2 -1
  28. package/build/cjs/components/Media/DataLens/i18n/en.json +3 -0
  29. package/build/cjs/components/Media/DataLens/i18n/index.d.ts +2 -0
  30. package/build/cjs/components/Media/DataLens/i18n/index.js +8 -0
  31. package/build/cjs/components/Media/DataLens/i18n/ru.json +3 -0
  32. package/build/cjs/components/OverflowScroller/OverflowScroller.d.ts +0 -2
  33. package/build/cjs/components/OverflowScroller/OverflowScroller.js +3 -4
  34. package/build/cjs/components/VideoBlock/VideoBlock.js +3 -0
  35. package/build/cjs/components/VideoBlock/i18n/en.json +3 -0
  36. package/build/cjs/components/VideoBlock/i18n/index.d.ts +2 -0
  37. package/build/cjs/components/VideoBlock/i18n/index.js +8 -0
  38. package/build/cjs/components/VideoBlock/i18n/ru.json +3 -0
  39. package/build/cjs/components/YandexForm/YandexForm.js +1 -0
  40. package/build/cjs/constructor-items.d.ts +0 -1
  41. package/build/cjs/constructor-items.js +0 -1
  42. package/build/cjs/models/constructor-items/blocks.d.ts +1 -20
  43. package/build/cjs/models/constructor-items/blocks.js +0 -1
  44. package/build/cjs/schema/index.js +1 -1
  45. package/build/cjs/schema/validators/blocks.d.ts +0 -1
  46. package/build/cjs/schema/validators/blocks.js +0 -1
  47. package/build/esm/blocks/index.d.ts +0 -1
  48. package/build/esm/blocks/index.js +0 -1
  49. package/build/esm/blocks/validators.d.ts +0 -1
  50. package/build/esm/blocks/validators.js +0 -1
  51. package/build/esm/components/Button/Button.js +2 -2
  52. package/build/esm/components/Button/i18n/en.json +3 -0
  53. package/build/esm/components/Button/i18n/index.d.ts +2 -0
  54. package/build/esm/components/Button/i18n/index.js +5 -0
  55. package/build/esm/components/Button/i18n/ru.json +3 -0
  56. package/build/esm/components/Control/Control.js +2 -1
  57. package/build/esm/components/Control/i18n/en.json +3 -0
  58. package/build/esm/components/Control/i18n/index.d.ts +2 -0
  59. package/build/esm/components/Control/i18n/index.js +5 -0
  60. package/build/esm/components/Control/i18n/ru.json +3 -0
  61. package/build/esm/components/FullscreenImage/FullscreenImage.js +3 -2
  62. package/build/esm/components/FullscreenImage/i18n/en.json +3 -0
  63. package/build/esm/components/FullscreenImage/i18n/index.d.ts +2 -0
  64. package/build/esm/components/FullscreenImage/i18n/index.js +5 -0
  65. package/build/esm/components/FullscreenImage/i18n/ru.json +3 -0
  66. package/build/esm/components/Image/Image.js +2 -1
  67. package/build/esm/components/Image/i18n/en.json +3 -0
  68. package/build/esm/components/Image/i18n/index.d.ts +2 -0
  69. package/build/esm/components/Image/i18n/index.js +5 -0
  70. package/build/esm/components/Image/i18n/ru.json +3 -0
  71. package/build/esm/components/Map/GoogleMap.js +1 -1
  72. package/build/esm/components/Media/DataLens/DataLens.js +2 -1
  73. package/build/esm/components/Media/DataLens/i18n/en.json +3 -0
  74. package/build/esm/components/Media/DataLens/i18n/index.d.ts +2 -0
  75. package/build/esm/components/Media/DataLens/i18n/index.js +5 -0
  76. package/build/esm/components/Media/DataLens/i18n/ru.json +3 -0
  77. package/build/esm/components/OverflowScroller/OverflowScroller.d.ts +0 -2
  78. package/build/esm/components/OverflowScroller/OverflowScroller.js +3 -4
  79. package/build/esm/components/VideoBlock/VideoBlock.js +3 -0
  80. package/build/esm/components/VideoBlock/i18n/en.json +3 -0
  81. package/build/esm/components/VideoBlock/i18n/index.d.ts +2 -0
  82. package/build/esm/components/VideoBlock/i18n/index.js +5 -0
  83. package/build/esm/components/VideoBlock/i18n/ru.json +3 -0
  84. package/build/esm/components/YandexForm/YandexForm.js +1 -0
  85. package/build/esm/constructor-items.d.ts +0 -1
  86. package/build/esm/constructor-items.js +1 -2
  87. package/build/esm/models/constructor-items/blocks.d.ts +1 -20
  88. package/build/esm/models/constructor-items/blocks.js +0 -1
  89. package/build/esm/schema/index.js +2 -2
  90. package/build/esm/schema/validators/blocks.d.ts +0 -1
  91. package/build/esm/schema/validators/blocks.js +0 -1
  92. package/package.json +4 -1
  93. package/server/models/constructor-items/blocks.d.ts +1 -20
  94. package/server/models/constructor-items/blocks.js +0 -1
  95. package/build/cjs/blocks/Security/Security.css +0 -142
  96. package/build/cjs/blocks/Security/Security.d.ts +0 -3
  97. package/build/cjs/blocks/Security/Security.js +0 -28
  98. package/build/cjs/blocks/Security/schema.d.ts +0 -170
  99. package/build/cjs/blocks/Security/schema.js +0 -32
  100. package/build/esm/blocks/Security/Security.css +0 -142
  101. package/build/esm/blocks/Security/Security.d.ts +0 -4
  102. package/build/esm/blocks/Security/Security.js +0 -24
  103. package/build/esm/blocks/Security/schema.d.ts +0 -170
  104. package/build/esm/blocks/Security/schema.js +0 -28
@@ -1,170 +0,0 @@
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
- };
@@ -1,32 +0,0 @@
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
- };
@@ -1,142 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- import { SecurityBlockProps } from '../../models';
2
- import './Security.css';
3
- export declare const SecurityBlock: (props: SecurityBlockProps) => JSX.Element;
4
- export default SecurityBlock;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { AnimateBlock, FullWidthBackground, HTML, ImageBase, Link, Media } from '../../components';
3
- import { Col, Grid, Row } from '../../grid';
4
- import { block } from '../../utils';
5
- import './Security.css';
6
- const b = block('SecurityBlock');
7
- export const SecurityBlock = (props) => {
8
- const { backgroundColor, theme = 'dark', title, points, media, animated } = props;
9
- return (React.createElement(AnimateBlock, { className: b({ theme }), offset: 200, animate: animated },
10
- React.createElement("div", { className: b('content') },
11
- React.createElement(FullWidthBackground, { className: b('background'), style: { backgroundColor } }),
12
- React.createElement(Grid, null,
13
- React.createElement(Row, null,
14
- React.createElement(Col, null,
15
- React.createElement("h2", { className: b('title') }, title))),
16
- points && (React.createElement(Row, { className: b('points') }, points.map(({ text, link, img }, index) => (React.createElement(Col, { key: index, className: b('point'), sizes: { sm: 4, all: 12 } },
17
- React.createElement(ImageBase, { className: b('point-icon'), src: img }),
18
- React.createElement(HTML, { className: b('point-text'), block: true }, text),
19
- link && (React.createElement(Link, { className: b('point-link'), text: link.text, url: link.url, theme: 'normal', arrow: true }))))))),
20
- media && (React.createElement(Row, { className: b('media') },
21
- React.createElement(Col, null,
22
- React.createElement(Media, Object.assign({ className: b('media') }, media)))))))));
23
- };
24
- export default SecurityBlock;
@@ -1,170 +0,0 @@
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
- };
@@ -1,28 +0,0 @@
1
- import _ from 'lodash';
2
- import { AnimatableProps, BaseProps, LinkProps, ThemeProps } from '../../schema/validators/common';
3
- import { filteredArray } from '../../schema/validators/utils';
4
- import { Media } from '../Media/schema';
5
- export const SecurityBlock = {
6
- 'security-block': {
7
- additionalProperties: false,
8
- required: ['title', 'media'],
9
- properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { theme: ThemeProps, backgroundColor: {
10
- type: 'string',
11
- }, title: {
12
- type: 'string',
13
- contentType: 'text',
14
- }, media: Media, points: filteredArray({
15
- type: 'object',
16
- properties: {
17
- img: {
18
- type: 'string',
19
- },
20
- text: {
21
- type: 'string',
22
- contentType: 'text',
23
- },
24
- link: _.pick(LinkProps, ['text', 'url']),
25
- },
26
- }) }),
27
- },
28
- };