@gravity-ui/page-constructor 8.7.0 → 8.8.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 (30) hide show
  1. package/build/cjs/blocks/HeaderSlider/schema.d.ts +1 -3
  2. package/build/cjs/blocks/Hero/Hero.css +1 -1
  3. package/build/cjs/blocks/Slider/schema.d.ts +48 -52
  4. package/build/cjs/blocks/Slider/schema.js +1 -1
  5. package/build/cjs/blocks/Slider/schema.js.map +1 -1
  6. package/build/cjs/blocks/SliderOld/schema.d.ts +30 -34
  7. package/build/cjs/blocks/SliderOld/schema.js +1 -1
  8. package/build/cjs/blocks/SliderOld/schema.js.map +1 -1
  9. package/build/cjs/demo/ComponentsText.stories.js +1 -1
  10. package/build/cjs/demo/ComponentsText.stories.js.map +1 -1
  11. package/build/cjs/schema/constants.d.ts +81 -0
  12. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +81 -0
  13. package/build/cjs/sub-blocks/ImageCard/schema.js +14 -0
  14. package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
  15. package/build/esm/blocks/HeaderSlider/schema.d.ts +1 -3
  16. package/build/esm/blocks/Hero/Hero.css +1 -1
  17. package/build/esm/blocks/Slider/schema.d.ts +48 -52
  18. package/build/esm/blocks/Slider/schema.js +1 -1
  19. package/build/esm/blocks/Slider/schema.js.map +1 -1
  20. package/build/esm/blocks/SliderOld/schema.d.ts +30 -34
  21. package/build/esm/blocks/SliderOld/schema.js +1 -1
  22. package/build/esm/blocks/SliderOld/schema.js.map +1 -1
  23. package/build/esm/demo/ComponentsText.stories.js +1 -1
  24. package/build/esm/demo/ComponentsText.stories.js.map +1 -1
  25. package/build/esm/schema/constants.d.ts +81 -0
  26. package/build/esm/sub-blocks/ImageCard/schema.d.ts +81 -0
  27. package/build/esm/sub-blocks/ImageCard/schema.js +14 -0
  28. package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
  29. package/package.json +1 -1
  30. package/schema/index.js +1 -1
@@ -654,9 +654,7 @@ export declare const HeaderSliderBlock: {
654
654
  type: string;
655
655
  };
656
656
  animated: {
657
- animated: {
658
- type: string;
659
- };
657
+ type: string;
660
658
  };
661
659
  arrowSize: {
662
660
  type: string;
@@ -158,7 +158,7 @@ unpredictable css rules order in build */
158
158
  @media (max-width: 769px) {
159
159
  .pc-hero-block__wrapper {
160
160
  gap: 0;
161
- padding-block: 20px 24px;
161
+ padding-block: 20px 32px;
162
162
  }
163
163
  .pc-hero-block__breadcrumbs {
164
164
  position: initial;
@@ -1,30 +1,4 @@
1
1
  export declare const SliderProps: {
2
- dots: {
3
- type: string;
4
- };
5
- arrows: {
6
- type: string;
7
- };
8
- randomOrder: {
9
- type: string;
10
- };
11
- autoplay: {
12
- type: string;
13
- };
14
- type: {
15
- type: string;
16
- };
17
- adaptive: {
18
- type: string;
19
- };
20
- arrowSize: {
21
- type: string;
22
- };
23
- animated: {
24
- animated: {
25
- type: string;
26
- };
27
- };
28
2
  slidesToShow: {
29
3
  oneOf: ({
30
4
  type: string;
@@ -91,6 +65,30 @@ export declare const SliderProps: {
91
65
  $ref: string;
92
66
  };
93
67
  };
68
+ animated: {
69
+ type: string;
70
+ };
71
+ dots: {
72
+ type: string;
73
+ };
74
+ arrows: {
75
+ type: string;
76
+ };
77
+ randomOrder: {
78
+ type: string;
79
+ };
80
+ autoplay: {
81
+ type: string;
82
+ };
83
+ type: {
84
+ type: string;
85
+ };
86
+ adaptive: {
87
+ type: string;
88
+ };
89
+ arrowSize: {
90
+ type: string;
91
+ };
94
92
  };
95
93
  export declare const SliderBlock: {
96
94
  'slider-block': {
@@ -210,32 +208,6 @@ export declare const SliderBlock: {
210
208
  contentType: string;
211
209
  inputType: string;
212
210
  };
213
- dots: {
214
- type: string;
215
- };
216
- arrows: {
217
- type: string;
218
- };
219
- randomOrder: {
220
- type: string;
221
- };
222
- autoplay: {
223
- type: string;
224
- };
225
- type: {
226
- type: string;
227
- };
228
- adaptive: {
229
- type: string;
230
- };
231
- arrowSize: {
232
- type: string;
233
- };
234
- animated: {
235
- animated: {
236
- type: string;
237
- };
238
- };
239
211
  slidesToShow: {
240
212
  oneOf: ({
241
213
  type: string;
@@ -302,6 +274,30 @@ export declare const SliderBlock: {
302
274
  $ref: string;
303
275
  };
304
276
  };
277
+ animated: {
278
+ type: string;
279
+ };
280
+ dots: {
281
+ type: string;
282
+ };
283
+ arrows: {
284
+ type: string;
285
+ };
286
+ randomOrder: {
287
+ type: string;
288
+ };
289
+ autoplay: {
290
+ type: string;
291
+ };
292
+ type: {
293
+ type: string;
294
+ };
295
+ adaptive: {
296
+ type: string;
297
+ };
298
+ arrowSize: {
299
+ type: string;
300
+ };
305
301
  anchor: {
306
302
  type: string;
307
303
  additionalProperties: boolean;
@@ -76,7 +76,7 @@ exports.SliderProps = {
76
76
  arrowSize: {
77
77
  type: 'number',
78
78
  },
79
- animated: common_1.AnimatableProps,
79
+ ...common_1.AnimatableProps,
80
80
  slidesToShow: common_1.sliderSizesObject,
81
81
  disclaimer: DisclaimerProps,
82
82
  loadable: LoadableProps,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Slider/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAExC,MAAM,aAAa,GAAG;IAClB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,0DAA0D;YAC1D,0DAA0D;SAC7D;QACD;;WAEG;QACH,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,iBAAiB,EAAE;gBACf,IAAI,EAAE;oBACF,KAAK,EAAE;wBACH;4BACI,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC;yBACxC;wBACD;4BACI,IAAI,EAAE,QAAQ;4BACd,oBAAoB,EAAE,IAAI;yBAC7B;wBACD;4BACI,IAAI,EAAE,OAAO;yBAChB;qBACJ;iBACJ;aACJ;SACJ;KACJ;IACD,gEAAgE;IAChE,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,eAAe,GAAG;IACpB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAQ;SACjB;KACJ;CACJ,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE;QACF,IAAI,EAAE,SAAS;KAClB;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,SAAS;KAClB;IACD,WAAW,EAAE;QACT,IAAI,EAAE,SAAS;KAClB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE,wBAAe;IACzB,YAAY,EAAE,0BAAiB;IAC/B,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,2BAAkB;CAC/B,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,GAAG,wBAAe;YAClB,GAAG,mBAAW;YACd,GAAG,yBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n ChildrenCardsProps,\n sliderSizesObject,\n textSize,\n} from '../../schema/validators/common';\n\nconst LoadableProps = {\n additionalProperties: false,\n required: ['source'],\n properties: {\n source: {\n type: 'string',\n // add loadable sources here if you use it in your project\n // enum: ['my-loadable-source-1', 'my-loadable-source-1'],\n },\n /**\n * @deprecated\n */\n minCount: {\n type: 'number',\n },\n params: {\n type: 'object',\n patternProperties: {\n '.*': {\n oneOf: [\n {\n type: ['string', 'number', 'boolean'],\n },\n {\n type: 'object',\n additionalProperties: true,\n },\n {\n type: 'array',\n },\n ],\n },\n },\n },\n },\n // remove it in your custom validator schema if you use loadable\n disabled: true,\n};\n\nconst DisclaimerProps = {\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nexport const SliderProps = {\n dots: {\n type: 'boolean',\n },\n arrows: {\n type: 'boolean',\n },\n randomOrder: {\n type: 'boolean',\n },\n autoplay: {\n type: 'number',\n },\n type: {\n type: 'string',\n },\n adaptive: {\n type: 'boolean',\n },\n arrowSize: {\n type: 'number',\n },\n animated: AnimatableProps,\n slidesToShow: sliderSizesObject,\n disclaimer: DisclaimerProps,\n loadable: LoadableProps,\n children: ChildrenCardsProps,\n};\n\nexport const SliderBlock = {\n 'slider-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...SliderProps,\n ...BlockHeaderProps,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Slider/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAExC,MAAM,aAAa,GAAG;IAClB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,0DAA0D;YAC1D,0DAA0D;SAC7D;QACD;;WAEG;QACH,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;Y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jB,GAAG,wBAAe;YAClB,GAAG,mBAAW;YACd,GAAG,yBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n ChildrenCardsProps,\n sliderSizesObject,\n textSize,\n} from '../../schema/validators/common';\n\nconst LoadableProps = {\n additionalProperties: false,\n required: ['source'],\n properties: {\n source: {\n type: 'string',\n // add loadable sources here if you use it in your project\n // enum: ['my-loadable-source-1', 'my-loadable-source-1'],\n },\n /**\n * @deprecated\n */\n minCount: {\n type: 'number',\n },\n params: {\n type: 'object',\n patternProperties: {\n '.*': {\n oneOf: [\n {\n type: ['string', 'number', 'boolean'],\n },\n {\n type: 'object',\n additionalProperties: true,\n },\n {\n type: 'array',\n },\n ],\n },\n },\n },\n },\n // remove it in your custom validator schema if you use loadable\n disabled: true,\n};\n\nconst DisclaimerProps = {\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nexport const SliderProps = {\n dots: {\n type: 'boolean',\n },\n arrows: {\n type: 'boolean',\n },\n randomOrder: {\n type: 'boolean',\n },\n autoplay: {\n type: 'number',\n },\n type: {\n type: 'string',\n },\n adaptive: {\n type: 'boolean',\n },\n arrowSize: {\n type: 'number',\n },\n ...AnimatableProps,\n slidesToShow: sliderSizesObject,\n disclaimer: DisclaimerProps,\n loadable: LoadableProps,\n children: ChildrenCardsProps,\n};\n\nexport const SliderBlock = {\n 'slider-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...SliderProps,\n ...BlockHeaderProps,\n },\n },\n};\n"]}
@@ -1,21 +1,4 @@
1
1
  export declare const SliderOldProps: {
2
- dots: {
3
- type: string;
4
- };
5
- arrows: {
6
- type: string;
7
- };
8
- randomOrder: {
9
- type: string;
10
- };
11
- autoplay: {
12
- type: string;
13
- };
14
- animated: {
15
- animated: {
16
- type: string;
17
- };
18
- };
19
2
  slidesToShow: {
20
3
  oneOf: ({
21
4
  type: string;
@@ -82,6 +65,21 @@ export declare const SliderOldProps: {
82
65
  $ref: string;
83
66
  };
84
67
  };
68
+ animated: {
69
+ type: string;
70
+ };
71
+ dots: {
72
+ type: string;
73
+ };
74
+ arrows: {
75
+ type: string;
76
+ };
77
+ randomOrder: {
78
+ type: string;
79
+ };
80
+ autoplay: {
81
+ type: string;
82
+ };
85
83
  };
86
84
  /** @deprecated */
87
85
  export declare const SliderOldBlock: {
@@ -202,23 +200,6 @@ export declare const SliderOldBlock: {
202
200
  contentType: string;
203
201
  inputType: string;
204
202
  };
205
- dots: {
206
- type: string;
207
- };
208
- arrows: {
209
- type: string;
210
- };
211
- randomOrder: {
212
- type: string;
213
- };
214
- autoplay: {
215
- type: string;
216
- };
217
- animated: {
218
- animated: {
219
- type: string;
220
- };
221
- };
222
203
  slidesToShow: {
223
204
  oneOf: ({
224
205
  type: string;
@@ -285,6 +266,21 @@ export declare const SliderOldBlock: {
285
266
  $ref: string;
286
267
  };
287
268
  };
269
+ animated: {
270
+ type: string;
271
+ };
272
+ dots: {
273
+ type: string;
274
+ };
275
+ arrows: {
276
+ type: string;
277
+ };
278
+ randomOrder: {
279
+ type: string;
280
+ };
281
+ autoplay: {
282
+ type: string;
283
+ };
288
284
  anchor: {
289
285
  type: string;
290
286
  additionalProperties: boolean;
@@ -67,7 +67,7 @@ exports.SliderOldProps = {
67
67
  autoplay: {
68
68
  type: 'number',
69
69
  },
70
- animated: common_1.AnimatableProps,
70
+ ...common_1.AnimatableProps,
71
71
  slidesToShow: common_1.sliderSizesObject,
72
72
  disclaimer: DisclaimerProps,
73
73
  loadable: LoadableProps,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/SliderOld/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAExC,MAAM,aAAa,GAAG;IAClB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,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BAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,GAAG,wBAAe;YAClB,GAAG,sBAAc;YACjB,GAAG,yBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n ChildrenCardsProps,\n sliderSizesObject,\n textSize,\n} from '../../schema/validators/common';\n\nconst LoadableProps = {\n additionalProperties: false,\n required: ['source'],\n properties: {\n source: {\n type: 'string',\n // add loadable sources here if you use it in your project\n // enum: ['my-loadable-source-1', 'my-loadable-source-1'],\n },\n /**\n * @deprecated\n */\n minCount: {\n type: 'number',\n },\n params: {\n type: 'object',\n patternProperties: {\n '.*': {\n oneOf: [\n {\n type: ['string', 'number', 'boolean'],\n },\n {\n type: 'object',\n additionalProperties: true,\n },\n {\n type: 'array',\n },\n ],\n },\n },\n },\n },\n // remove it in your custom validator schema if you use loadable\n disabled: true,\n};\n\nconst DisclaimerProps = {\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nexport const SliderOldProps = {\n dots: {\n type: 'boolean',\n },\n arrows: {\n type: 'boolean',\n },\n randomOrder: {\n type: 'boolean',\n },\n autoplay: {\n type: 'number',\n },\n animated: AnimatableProps,\n slidesToShow: sliderSizesObject,\n disclaimer: DisclaimerProps,\n loadable: LoadableProps,\n children: ChildrenCardsProps,\n};\n\n/** @deprecated */\nexport const SliderOldBlock = {\n 'slider-old-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...SliderOldProps,\n ...BlockHeaderProps,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/SliderOld/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAExC,MAAM,aAAa,GAAG;IAClB,oBAAoB,E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AkB,EAAE;QAChB,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,GAAG,wBAAe;YAClB,GAAG,sBAAc;YACjB,GAAG,yBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n ChildrenCardsProps,\n sliderSizesObject,\n textSize,\n} from '../../schema/validators/common';\n\nconst LoadableProps = {\n additionalProperties: false,\n required: ['source'],\n properties: {\n source: {\n type: 'string',\n // add loadable sources here if you use it in your project\n // enum: ['my-loadable-source-1', 'my-loadable-source-1'],\n },\n /**\n * @deprecated\n */\n minCount: {\n type: 'number',\n },\n params: {\n type: 'object',\n patternProperties: {\n '.*': {\n oneOf: [\n {\n type: ['string', 'number', 'boolean'],\n },\n {\n type: 'object',\n additionalProperties: true,\n },\n {\n type: 'array',\n },\n ],\n },\n },\n },\n },\n // remove it in your custom validator schema if you use loadable\n disabled: true,\n};\n\nconst DisclaimerProps = {\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nexport const SliderOldProps = {\n dots: {\n type: 'boolean',\n },\n arrows: {\n type: 'boolean',\n },\n randomOrder: {\n type: 'boolean',\n },\n autoplay: {\n type: 'number',\n },\n ...AnimatableProps,\n slidesToShow: sliderSizesObject,\n disclaimer: DisclaimerProps,\n loadable: LoadableProps,\n children: ChildrenCardsProps,\n};\n\n/** @deprecated */\nexport const SliderOldBlock = {\n 'slider-old-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...SliderOldProps,\n ...BlockHeaderProps,\n },\n },\n};\n"]}
@@ -21,6 +21,6 @@ const defaultTitleArgs = {
21
21
  subtitle: (0, utils_1.yfmTransform)(data_json_4.default.default.subtitle),
22
22
  };
23
23
  const transformContentList = (item) => (0, utils_1.blockTransform)(item);
24
- const Default = () => ((0, jsx_runtime_1.jsxs)("div", { style: { padding: '40px', display: 'flex', flexDirection: 'column', gap: '48px' }, children: [(0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 default" }), (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 sizes (l \u2192 xs)" }), (0, jsx_runtime_1.jsx)("div", { children: Object.entries(data_json_4.default.sizes).map(([size, props]) => ((0, jsx_runtime_1.jsx)("div", { style: { paddingBottom: '32px' }, children: (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs, title: props }) }, size))) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 with link" }), (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs, title: data_json_4.default.titleLink.title })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "YFMWrapper" }), (0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { ...data_json_5.default.default.content })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Author \u2014 column" }), (0, jsx_runtime_1.jsx)(Author_1.default, { ...data_json_1.default.default.content })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Author \u2014 line" }), (0, jsx_runtime_1.jsx)(Author_1.default, { ...data_json_1.default.default.content, type: models_1.AuthorType.Line })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 default" }), (0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(data_json_2.default.default) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 without icon" }), (0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(data_json_2.default.withoutIcon) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 sizes (s / m / l)" }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' }, children: data_json_2.default.sizes.map((item, index) => ((0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(item) }, index))) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "MetaInfo" }), (0, jsx_runtime_1.jsx)(MetaInfo_1.default, { ...data_json_3.default.default.content })] })] }));
24
+ const Default = () => ((0, jsx_runtime_1.jsxs)("div", { style: { padding: '40px', display: 'flex', flexDirection: 'column', gap: '48px' }, children: [(0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 default" }), (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 sizes (l \u2192 xs)" }), (0, jsx_runtime_1.jsx)("div", { children: Object.entries(data_json_4.default.sizes).map(([size, props]) => ((0, jsx_runtime_1.jsx)("div", { style: { paddingBottom: '32px' }, children: (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs, title: props }) }, size))) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Title \u2014 with link" }), (0, jsx_runtime_1.jsx)(Title_1.default, { ...defaultTitleArgs, title: data_json_4.default.titleLink.title })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "YFMWrapper" }), (0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { ...data_json_5.default.default.content })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Author \u2014 column" }), (0, jsx_runtime_1.jsx)(Author_1.default, { ...data_json_1.default.default })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Author \u2014 line" }), (0, jsx_runtime_1.jsx)(Author_1.default, { ...data_json_1.default.default, type: models_1.AuthorType.Line })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 default" }), (0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(data_json_2.default.default) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 without icon" }), (0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(data_json_2.default.withoutIcon) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "ContentList \u2014 sizes (s / m / l)" }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' }, children: data_json_2.default.sizes.map((item, index) => ((0, jsx_runtime_1.jsx)(ContentList_1.default, { ...transformContentList(item) }, index))) })] }), (0, jsx_runtime_1.jsxs)("section", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "MetaInfo" }), (0, jsx_runtime_1.jsx)(MetaInfo_1.default, { ...data_json_3.default.default.content })] })] }));
25
25
  exports.Default = Default;
26
26
  //# sourceMappingURL=ComponentsText.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentsText.stories.js","sourceRoot":"../../../src","sources":["demo/ComponentsText.stories.tsx"],"names":[],"mappings":";;;;;AAEA,qDAAoE;AACpE,oFAAiD;AACjD,mGAAgE;AAChE,0FAAuD;AACvD,iFAA8C;AAC9C,gGAA6D;AAC7D,+CAAoF;AAEpF,mGAAoE;AACpE,wGAA8E;AAC9E,qGAAwE;AACxE,kGAAkE;AAClE,uGAA4E;AAE5E,kBAAe,EAAC,KAAK,EAAE,kCAAkC,EAA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AAI,GAAI,IAC3D,EACV,gDACI,4EAAsC,EACtC,uBAAC,qBAAW,OAAK,oBAAoB,CAAC,mBAAe,CAAC,OAAO,CAAC,GAAI,IAC5D,EACV,gDACI,iFAA2C,EAC3C,uBAAC,qBAAW,OAAK,oBAAoB,CAAC,mBAAe,CAAC,WAAW,CAAC,GAAI,IAChE,EACV,gDACI,sFAAgD,EAChD,gCAAK,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAC,YAC9D,mBAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,uBAAC,qBAAW,OAAiB,oBAAoB,CAAC,IAAI,CAAC,IAArC,KAAK,CAAoC,CAC9D,CAAC,GACA,IACA,EACV,gDACI,0DAAyB,EACzB,uBAAC,kBAAQ,OAAK,mBAAY,CAAC,OAAO,CAAC,OAAO,GAAI,IACxC,IACR,CACT,CAAC;AArDW,QAAA,OAAO,WAqDlB","sourcesContent":["import {Meta, StoryFn} from '@storybook/react';\n\nimport {blockTransform, yfmTransform} from '../../.storybook/utils';\nimport Author from '../components/Author/Author';\nimport ContentList from '../components/ContentList/ContentList';\nimport MetaInfo from '../components/MetaInfo/MetaInfo';\nimport Title from '../components/Title/Title';\nimport YFMWrapper from '../components/YFMWrapper/YFMWrapper';\nimport {AuthorType, ContentListProps, CustomBlock, TitleItemProps} from '../models';\n\nimport authorData from '../components/Author/__stories__/data.json';\nimport contentListData from '../components/ContentList/__stories__/data.json';\nimport metaInfoData from '../components/MetaInfo/__stories__/data.json';\nimport titleData from '../components/Title/__stories__/data.json';\nimport yfmWrapperData from '../components/YFMWrapper/__stories__/data.json';\n\nexport default {title: 'Lab/Tokenization/Components/Text'} as Meta;\n\nconst defaultTitleArgs = {\n title: titleData.default.title as TitleItemProps,\n subtitle: yfmTransform(titleData.default.subtitle),\n};\n\nconst transformContentList = (item: unknown) =>\n blockTransform(item as unknown as CustomBlock) as ContentListProps;\n\nexport const Default: StoryFn = () => (\n <div style={{padding: '40px', display: 'flex', flexDirection: 'column', gap: '48px'}}>\n <section>\n <strong>Title — default</strong>\n <Title {...defaultTitleArgs} />\n </section>\n <section>\n <strong>Title — sizes (l → xs)</strong>\n <div>\n {Object.entries(titleData.sizes).map(([size, props]) => (\n <div key={size} style={{paddingBottom: '32px'}}>\n <Title {...defaultTitleArgs} title={props as TitleItemProps} />\n </div>\n ))}\n </div>\n </section>\n <section>\n <strong>Title — with link</strong>\n <Title {...defaultTitleArgs} title={titleData.titleLink.title as TitleItemProps} />\n </section>\n <section>\n <strong>YFMWrapper</strong>\n <YFMWrapper {...yfmWrapperData.default.content} />\n </section>\n <section>\n <strong>Author — column</strong>\n <Author {...authorData.default.content} />\n </section>\n <section>\n <strong>Author — line</strong>\n <Author {...authorData.default.content} type={AuthorType.Line} />\n </section>\n <section>\n <strong>ContentList — default</strong>\n <ContentList {...transformContentList(contentListData.default)} />\n </section>\n <section>\n <strong>ContentList — without icon</strong>\n <ContentList {...transformContentList(contentListData.withoutIcon)} />\n </section>\n <section>\n <strong>ContentList — sizes (s / m / l)</strong>\n <div style={{display: 'flex', flexDirection: 'column', gap: '16px'}}>\n {contentListData.sizes.map((item, index) => (\n <ContentList key={index} {...transformContentList(item)} />\n ))}\n </div>\n </section>\n <section>\n <strong>MetaInfo</strong>\n <MetaInfo {...metaInfoData.default.content} />\n </section>\n </div>\n);\n"]}
1
+ {"version":3,"file":"ComponentsText.stories.js","sourceRoot":"../../../src","sources":["demo/ComponentsText.stories.tsx"],"names":[],"mappings":";;;;;AAEA,qDAAoE;AACpE,oFAAiD;AACjD,mGAAgE;AAChE,0FAAuD;AACvD,iFAA8C;AAC9C,gGAA6D;AAC7D,+CAAiG;AAEjG,mGAAoE;AACpE,wGAA8E;AAC9E,qGAAwE;AACxE,kGAAkE;AAClE,uGAA4E;AAE5E,kBAAe,EAAC,KAAK,EAAE,kCAAkC,EA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V,gDACI,4EAAsC,EACtC,uBAAC,qBAAW,OAAK,oBAAoB,CAAC,mBAAe,CAAC,OAAO,CAAC,GAAI,IAC5D,EACV,gDACI,iFAA2C,EAC3C,uBAAC,qBAAW,OAAK,oBAAoB,CAAC,mBAAe,CAAC,WAAW,CAAC,GAAI,IAChE,EACV,gDACI,sFAAgD,EAChD,gCAAK,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAC,YAC9D,mBAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,uBAAC,qBAAW,OAAiB,oBAAoB,CAAC,IAAI,CAAC,IAArC,KAAK,CAAoC,CAC9D,CAAC,GACA,IACA,EACV,gDACI,0DAAyB,EACzB,uBAAC,kBAAQ,OAAK,mBAAY,CAAC,OAAO,CAAC,OAAO,GAAI,IACxC,IACR,CACT,CAAC;AArDW,QAAA,OAAO,WAqDlB","sourcesContent":["import {Meta, StoryFn} from '@storybook/react';\n\nimport {blockTransform, yfmTransform} from '../../.storybook/utils';\nimport Author from '../components/Author/Author';\nimport ContentList from '../components/ContentList/ContentList';\nimport MetaInfo from '../components/MetaInfo/MetaInfo';\nimport Title from '../components/Title/Title';\nimport YFMWrapper from '../components/YFMWrapper/YFMWrapper';\nimport {AuthorProps, AuthorType, ContentListProps, CustomBlock, TitleItemProps} from '../models';\n\nimport authorData from '../components/Author/__stories__/data.json';\nimport contentListData from '../components/ContentList/__stories__/data.json';\nimport metaInfoData from '../components/MetaInfo/__stories__/data.json';\nimport titleData from '../components/Title/__stories__/data.json';\nimport yfmWrapperData from '../components/YFMWrapper/__stories__/data.json';\n\nexport default {title: 'Lab/Tokenization/Components/Text'} as Meta;\n\nconst defaultTitleArgs = {\n title: titleData.default.title as TitleItemProps,\n subtitle: yfmTransform(titleData.default.subtitle),\n};\n\nconst transformContentList = (item: unknown) =>\n blockTransform(item as unknown as CustomBlock) as ContentListProps;\n\nexport const Default: StoryFn = () => (\n <div style={{padding: '40px', display: 'flex', flexDirection: 'column', gap: '48px'}}>\n <section>\n <strong>Title — default</strong>\n <Title {...defaultTitleArgs} />\n </section>\n <section>\n <strong>Title — sizes (l → xs)</strong>\n <div>\n {Object.entries(titleData.sizes).map(([size, props]) => (\n <div key={size} style={{paddingBottom: '32px'}}>\n <Title {...defaultTitleArgs} title={props as TitleItemProps} />\n </div>\n ))}\n </div>\n </section>\n <section>\n <strong>Title — with link</strong>\n <Title {...defaultTitleArgs} title={titleData.titleLink.title as TitleItemProps} />\n </section>\n <section>\n <strong>YFMWrapper</strong>\n <YFMWrapper {...yfmWrapperData.default.content} />\n </section>\n <section>\n <strong>Author — column</strong>\n <Author {...(authorData.default as AuthorProps)} />\n </section>\n <section>\n <strong>Author — line</strong>\n <Author {...(authorData.default as AuthorProps)} type={AuthorType.Line} />\n </section>\n <section>\n <strong>ContentList — default</strong>\n <ContentList {...transformContentList(contentListData.default)} />\n </section>\n <section>\n <strong>ContentList — without icon</strong>\n <ContentList {...transformContentList(contentListData.withoutIcon)} />\n </section>\n <section>\n <strong>ContentList — sizes (s / m / l)</strong>\n <div style={{display: 'flex', flexDirection: 'column', gap: '16px'}}>\n {contentListData.sizes.map((item, index) => (\n <ContentList key={index} {...transformContentList(item)} />\n ))}\n </div>\n </section>\n <section>\n <strong>MetaInfo</strong>\n <MetaInfo {...metaInfoData.default.content} />\n </section>\n </div>\n);\n"]}
@@ -49,6 +49,87 @@ export declare const cardSchemas: {
49
49
  urlTitle: {
50
50
  type: string;
51
51
  };
52
+ analyticsEvents: {
53
+ oneOf: ({
54
+ optionName: string;
55
+ type: string;
56
+ additionalProperties: {
57
+ type: string;
58
+ };
59
+ required: string[];
60
+ properties: {
61
+ name: {
62
+ type: string;
63
+ };
64
+ type: {
65
+ type: string;
66
+ };
67
+ counters: {
68
+ type: string;
69
+ additionalProperties: boolean;
70
+ required: never[];
71
+ properties: {
72
+ include: {
73
+ type: string;
74
+ items: {
75
+ type: string;
76
+ };
77
+ };
78
+ exclude: {
79
+ type: string;
80
+ items: {
81
+ type: string;
82
+ };
83
+ };
84
+ };
85
+ };
86
+ context: {
87
+ type: string;
88
+ };
89
+ };
90
+ items?: undefined;
91
+ } | {
92
+ type: string;
93
+ items: {
94
+ type: string;
95
+ additionalProperties: {
96
+ type: string;
97
+ };
98
+ required: string[];
99
+ properties: {
100
+ name: {
101
+ type: string;
102
+ };
103
+ type: {
104
+ type: string;
105
+ };
106
+ counters: {
107
+ type: string;
108
+ additionalProperties: boolean;
109
+ required: never[];
110
+ properties: {
111
+ include: {
112
+ type: string;
113
+ items: {
114
+ type: string;
115
+ };
116
+ };
117
+ exclude: {
118
+ type: string;
119
+ items: {
120
+ type: string;
121
+ };
122
+ };
123
+ };
124
+ };
125
+ context: {
126
+ type: string;
127
+ };
128
+ };
129
+ };
130
+ optionName: string;
131
+ })[];
132
+ };
52
133
  title?: {
53
134
  oneOf: ({
54
135
  type: string;
@@ -47,6 +47,87 @@ export declare const ImageCard: {
47
47
  urlTitle: {
48
48
  type: string;
49
49
  };
50
+ analyticsEvents: {
51
+ oneOf: ({
52
+ optionName: string;
53
+ type: string;
54
+ additionalProperties: {
55
+ type: string;
56
+ };
57
+ required: string[];
58
+ properties: {
59
+ name: {
60
+ type: string;
61
+ };
62
+ type: {
63
+ type: string;
64
+ };
65
+ counters: {
66
+ type: string;
67
+ additionalProperties: boolean;
68
+ required: never[];
69
+ properties: {
70
+ include: {
71
+ type: string;
72
+ items: {
73
+ type: string;
74
+ };
75
+ };
76
+ exclude: {
77
+ type: string;
78
+ items: {
79
+ type: string;
80
+ };
81
+ };
82
+ };
83
+ };
84
+ context: {
85
+ type: string;
86
+ };
87
+ };
88
+ items?: undefined;
89
+ } | {
90
+ type: string;
91
+ items: {
92
+ type: string;
93
+ additionalProperties: {
94
+ type: string;
95
+ };
96
+ required: string[];
97
+ properties: {
98
+ name: {
99
+ type: string;
100
+ };
101
+ type: {
102
+ type: string;
103
+ };
104
+ counters: {
105
+ type: string;
106
+ additionalProperties: boolean;
107
+ required: never[];
108
+ properties: {
109
+ include: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ };
115
+ exclude: {
116
+ type: string;
117
+ items: {
118
+ type: string;
119
+ };
120
+ };
121
+ };
122
+ };
123
+ context: {
124
+ type: string;
125
+ };
126
+ };
127
+ };
128
+ optionName: string;
129
+ })[];
130
+ };
50
131
  title?: {
51
132
  oneOf: ({
52
133
  type: string;
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
6
6
  const common_1 = require("../../schema/validators/common.js");
7
7
  const components_1 = require("../../schema/validators/components.js");
8
+ const event_1 = require("../../schema/validators/event.js");
8
9
  const schema_1 = require("../Content/schema.js");
9
10
  const ImageCardBlockContentProps = (0, omit_1.default)(schema_1.ContentBase, ['centered', 'colSizes', 'controlPosition']);
10
11
  exports.ImageCard = {
@@ -34,6 +35,19 @@ exports.ImageCard = {
34
35
  urlTitle: {
35
36
  type: 'string',
36
37
  },
38
+ analyticsEvents: {
39
+ oneOf: [
40
+ {
41
+ ...event_1.AnalyticsEventSchema,
42
+ optionName: 'single',
43
+ },
44
+ {
45
+ type: 'array',
46
+ items: event_1.AnalyticsEventSchema,
47
+ optionName: 'list',
48
+ },
49
+ ],
50
+ },
37
51
  },
38
52
  },
39
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAAoF;AACpF,sEAA8D;AAC9D,iDAA8C;AAE9C,MAAM,0BAA0B,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAErF,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,wBAAe;YAClB,GAAG,0BAA0B;YAC7B,KAAK,EAAE,uBAAU;YACjB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;aAC9B;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aACnB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {BaseProps, CardBase, CardLayoutProps} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {ContentBase} from '../Content/schema';\n\nconst ImageCardBlockContentProps = omit(ContentBase, ['centered', 'colSizes', 'controlPosition']);\n\nexport const ImageCard = {\n 'image-card': {\n additionalProperties: false,\n required: ['image'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...ImageCardBlockContentProps,\n image: ImageProps,\n direction: {\n type: 'string',\n enum: ['direct', 'reverse'],\n },\n margins: {\n type: 'string',\n enum: ['s', 'm'],\n },\n backgroundColor: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAAoF;AACpF,sEAA8D;AAC9D,4DAAmE;AACnE,iDAA8C;AAE9C,MAAM,0BAA0B,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAErF,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,wBAAe;YAClB,GAAG,0BAA0B;YAC7B,KAAK,EAAE,uBAAU;YACjB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;aAC9B;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aACnB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,eAAe,EAAE;gBACb,KAAK,EAAE;oBACH;wBACI,GAAG,4BAAoB;wBACvB,UAAU,EAAE,QAAQ;qBACvB;oBACD;wBACI,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,4BAAoB;wBAC3B,UAAU,EAAE,MAAM;qBACrB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {BaseProps, CardBase, CardLayoutProps} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst ImageCardBlockContentProps = omit(ContentBase, ['centered', 'colSizes', 'controlPosition']);\n\nexport const ImageCard = {\n 'image-card': {\n additionalProperties: false,\n required: ['image'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...ImageCardBlockContentProps,\n image: ImageProps,\n direction: {\n type: 'string',\n enum: ['direct', 'reverse'],\n },\n margins: {\n type: 'string',\n enum: ['s', 'm'],\n },\n backgroundColor: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n },\n};\n"]}
@@ -654,9 +654,7 @@ export declare const HeaderSliderBlock: {
654
654
  type: string;
655
655
  };
656
656
  animated: {
657
- animated: {
658
- type: string;
659
- };
657
+ type: string;
660
658
  };
661
659
  arrowSize: {
662
660
  type: string;
@@ -158,7 +158,7 @@ unpredictable css rules order in build */
158
158
  @media (max-width: 769px) {
159
159
  .pc-hero-block__wrapper {
160
160
  gap: 0;
161
- padding-block: 20px 24px;
161
+ padding-block: 20px 32px;
162
162
  }
163
163
  .pc-hero-block__breadcrumbs {
164
164
  position: initial;