@gravity-ui/page-constructor 2.13.0-alpha.0 → 2.13.1
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/CHANGELOG.md +14 -0
- package/build/cjs/blocks/Questions/Questions.js +2 -1
- package/build/cjs/blocks/Security/Security.css +142 -0
- package/build/cjs/blocks/Security/Security.d.ts +3 -0
- package/build/cjs/blocks/Security/Security.js +29 -0
- package/build/cjs/blocks/Security/i18n/en.json +3 -0
- package/build/cjs/blocks/Security/i18n/index.d.ts +2 -0
- package/build/cjs/blocks/Security/i18n/index.js +8 -0
- package/build/cjs/blocks/Security/i18n/ru.json +3 -0
- package/build/cjs/blocks/Security/schema.d.ts +170 -0
- package/build/cjs/blocks/Security/schema.js +32 -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 +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +20 -1
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/schema/index.js +1 -1
- package/build/cjs/schema/validators/blocks.d.ts +1 -0
- package/build/cjs/schema/validators/blocks.js +1 -0
- package/build/cjs/schema/validators/components.d.ts +2 -0
- package/build/cjs/schema/validators/components.js +5 -0
- package/build/cjs/schema/validators/index.d.ts +2 -0
- package/build/cjs/schema/validators/index.js +2 -0
- package/build/esm/blocks/Questions/Questions.js +2 -1
- package/build/esm/blocks/Security/Security.css +142 -0
- package/build/esm/blocks/Security/Security.d.ts +4 -0
- package/build/esm/blocks/Security/Security.js +25 -0
- package/build/esm/blocks/Security/i18n/en.json +3 -0
- package/build/esm/blocks/Security/i18n/index.d.ts +2 -0
- package/build/esm/blocks/Security/i18n/index.js +5 -0
- package/build/esm/blocks/Security/i18n/ru.json +3 -0
- package/build/esm/blocks/Security/schema.d.ts +170 -0
- package/build/esm/blocks/Security/schema.js +28 -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 +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/models/constructor-items/blocks.d.ts +20 -1
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/schema/index.js +2 -2
- package/build/esm/schema/validators/blocks.d.ts +1 -0
- package/build/esm/schema/validators/blocks.js +1 -0
- package/build/esm/schema/validators/components.d.ts +2 -0
- package/build/esm/schema/validators/components.js +2 -0
- package/build/esm/schema/validators/index.d.ts +2 -0
- package/build/esm/schema/validators/index.js +2 -0
- package/package.json +1 -4
- package/server/models/constructor-items/blocks.d.ts +20 -1
- package/server/models/constructor-items/blocks.js +1 -0
|
@@ -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";
|