@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Questions/Questions.js +2 -1
  3. package/build/cjs/blocks/Security/Security.css +142 -0
  4. package/build/cjs/blocks/Security/Security.d.ts +3 -0
  5. package/build/cjs/blocks/Security/Security.js +29 -0
  6. package/build/cjs/blocks/Security/i18n/en.json +3 -0
  7. package/build/cjs/blocks/Security/i18n/index.d.ts +2 -0
  8. package/build/cjs/blocks/Security/i18n/index.js +8 -0
  9. package/build/cjs/blocks/Security/i18n/ru.json +3 -0
  10. package/build/cjs/blocks/Security/schema.d.ts +170 -0
  11. package/build/cjs/blocks/Security/schema.js +32 -0
  12. package/build/cjs/blocks/index.d.ts +1 -0
  13. package/build/cjs/blocks/index.js +3 -1
  14. package/build/cjs/blocks/validators.d.ts +1 -0
  15. package/build/cjs/blocks/validators.js +1 -0
  16. package/build/cjs/constructor-items.d.ts +1 -0
  17. package/build/cjs/constructor-items.js +1 -0
  18. package/build/cjs/models/constructor-items/blocks.d.ts +20 -1
  19. package/build/cjs/models/constructor-items/blocks.js +1 -0
  20. package/build/cjs/schema/index.js +1 -1
  21. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  22. package/build/cjs/schema/validators/blocks.js +1 -0
  23. package/build/cjs/schema/validators/components.d.ts +2 -0
  24. package/build/cjs/schema/validators/components.js +5 -0
  25. package/build/cjs/schema/validators/index.d.ts +2 -0
  26. package/build/cjs/schema/validators/index.js +2 -0
  27. package/build/esm/blocks/Questions/Questions.js +2 -1
  28. package/build/esm/blocks/Security/Security.css +142 -0
  29. package/build/esm/blocks/Security/Security.d.ts +4 -0
  30. package/build/esm/blocks/Security/Security.js +25 -0
  31. package/build/esm/blocks/Security/i18n/en.json +3 -0
  32. package/build/esm/blocks/Security/i18n/index.d.ts +2 -0
  33. package/build/esm/blocks/Security/i18n/index.js +5 -0
  34. package/build/esm/blocks/Security/i18n/ru.json +3 -0
  35. package/build/esm/blocks/Security/schema.d.ts +170 -0
  36. package/build/esm/blocks/Security/schema.js +28 -0
  37. package/build/esm/blocks/index.d.ts +1 -0
  38. package/build/esm/blocks/index.js +1 -0
  39. package/build/esm/blocks/validators.d.ts +1 -0
  40. package/build/esm/blocks/validators.js +1 -0
  41. package/build/esm/constructor-items.d.ts +1 -0
  42. package/build/esm/constructor-items.js +2 -1
  43. package/build/esm/models/constructor-items/blocks.d.ts +20 -1
  44. package/build/esm/models/constructor-items/blocks.js +1 -0
  45. package/build/esm/schema/index.js +2 -2
  46. package/build/esm/schema/validators/blocks.d.ts +1 -0
  47. package/build/esm/schema/validators/blocks.js +1 -0
  48. package/build/esm/schema/validators/components.d.ts +2 -0
  49. package/build/esm/schema/validators/components.js +2 -0
  50. package/build/esm/schema/validators/index.d.ts +2 -0
  51. package/build/esm/schema/validators/index.js +2 -0
  52. package/package.json +1 -4
  53. package/server/models/constructor-items/blocks.d.ts +20 -1
  54. 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";