@gravity-ui/page-constructor 8.18.0 → 8.20.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 (172) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +3 -0
  2. package/build/cjs/blocks/CardLayout/schema.d.ts +529 -195
  3. package/build/cjs/blocks/CardLayout/schema.js +12 -13
  4. package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
  5. package/build/cjs/blocks/Companies/schema.d.ts +88 -3
  6. package/build/cjs/blocks/Companies/schema.js +5 -20
  7. package/build/cjs/blocks/Companies/schema.js.map +1 -1
  8. package/build/cjs/blocks/ContentLayout/schema.d.ts +258 -194
  9. package/build/cjs/blocks/ContentLayout/schema.js +1 -1
  10. package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
  11. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +311 -39
  12. package/build/cjs/blocks/ExtendedFeatures/schema.js +18 -19
  13. package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
  14. package/build/cjs/blocks/Footer/schema.d.ts +3 -6
  15. package/build/cjs/blocks/Form/schema.d.ts +197 -15
  16. package/build/cjs/blocks/Form/schema.js +15 -3
  17. package/build/cjs/blocks/Form/schema.js.map +1 -1
  18. package/build/cjs/blocks/Header/schema.d.ts +461 -206
  19. package/build/cjs/blocks/Header/schema.js +18 -2
  20. package/build/cjs/blocks/Header/schema.js.map +1 -1
  21. package/build/cjs/blocks/HeaderSlider/schema.d.ts +150 -71
  22. package/build/cjs/blocks/Hero/schema.d.ts +19 -437
  23. package/build/cjs/blocks/Hero/schema.js +12 -3
  24. package/build/cjs/blocks/Hero/schema.js.map +1 -1
  25. package/build/cjs/blocks/Icons/Icons.js.map +1 -1
  26. package/build/cjs/blocks/Icons/schema.js +1 -1
  27. package/build/cjs/blocks/Icons/schema.js.map +1 -1
  28. package/build/cjs/blocks/Info/schema.d.ts +49 -1
  29. package/build/cjs/blocks/Info/schema.js +2 -2
  30. package/build/cjs/blocks/Info/schema.js.map +1 -1
  31. package/build/cjs/blocks/Map/schema.d.ts +7 -2
  32. package/build/cjs/blocks/Map/schema.js +1 -1
  33. package/build/cjs/blocks/Map/schema.js.map +1 -1
  34. package/build/cjs/blocks/Media/schema.d.ts +20 -9
  35. package/build/cjs/blocks/Media/schema.js +15 -2
  36. package/build/cjs/blocks/Media/schema.js.map +1 -1
  37. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
  38. package/build/cjs/blocks/Table/schema.d.ts +1 -0
  39. package/build/cjs/blocks/Table/schema.js +1 -0
  40. package/build/cjs/blocks/Table/schema.js.map +1 -1
  41. package/build/cjs/blocks/Tabs/schema.d.ts +7 -6
  42. package/build/cjs/blocks/Tabs/schema.js +1 -1
  43. package/build/cjs/blocks/Tabs/schema.js.map +1 -1
  44. package/build/cjs/components/Author/schema.d.ts +1 -2
  45. package/build/cjs/components/Image/schema.d.ts +33 -8
  46. package/build/cjs/components/Image/schema.js +22 -22
  47. package/build/cjs/components/Image/schema.js.map +1 -1
  48. package/build/cjs/components/index.d.ts +1 -0
  49. package/build/cjs/components/index.js +3 -1
  50. package/build/cjs/components/index.js.map +1 -1
  51. package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
  52. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  53. package/build/cjs/models/constructor-items/common.d.ts +1 -1
  54. package/build/cjs/models/constructor-items/common.js.map +1 -1
  55. package/build/cjs/navigation/schema.d.ts +1 -2
  56. package/build/cjs/navigation/schema.js +1 -0
  57. package/build/cjs/navigation/schema.js.map +1 -1
  58. package/build/cjs/schema/constants.d.ts +940 -29
  59. package/build/cjs/schema/constants.js +36 -40
  60. package/build/cjs/schema/constants.js.map +1 -1
  61. package/build/cjs/schema/validators/common.d.ts +11 -8
  62. package/build/cjs/schema/validators/common.js +10 -6
  63. package/build/cjs/schema/validators/common.js.map +1 -1
  64. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +82 -2
  65. package/build/cjs/sub-blocks/BasicCard/schema.js +15 -1
  66. package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
  67. package/build/cjs/sub-blocks/Content/schema.d.ts +2 -5
  68. package/build/cjs/sub-blocks/Content/schema.js +1 -8
  69. package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
  70. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +33 -17
  71. package/build/cjs/sub-blocks/ImageCard/schema.js +8 -1
  72. package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
  73. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1023 -312
  74. package/build/cjs/sub-blocks/LayoutItem/schema.js +40 -9
  75. package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
  76. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +2 -4
  77. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +5 -0
  78. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
  79. package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
  80. package/build/cjs/sub-blocks/Quote/schema.d.ts +164 -6
  81. package/build/cjs/sub-blocks/Quote/schema.js +2 -0
  82. package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
  83. package/build/docs/blocks/Hero.md +15 -15
  84. package/build/docs/blocks/Icons.md +2 -2
  85. package/build/docs/blocks/Media.md +1 -1
  86. package/build/esm/blocks/Banner/schema.d.ts +3 -0
  87. package/build/esm/blocks/CardLayout/schema.d.ts +529 -195
  88. package/build/esm/blocks/CardLayout/schema.js +14 -15
  89. package/build/esm/blocks/CardLayout/schema.js.map +1 -1
  90. package/build/esm/blocks/Companies/schema.d.ts +88 -3
  91. package/build/esm/blocks/Companies/schema.js +5 -21
  92. package/build/esm/blocks/Companies/schema.js.map +1 -1
  93. package/build/esm/blocks/ContentLayout/schema.d.ts +258 -194
  94. package/build/esm/blocks/ContentLayout/schema.js +2 -2
  95. package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
  96. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +311 -39
  97. package/build/esm/blocks/ExtendedFeatures/schema.js +17 -18
  98. package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
  99. package/build/esm/blocks/Footer/schema.d.ts +3 -6
  100. package/build/esm/blocks/Form/schema.d.ts +197 -15
  101. package/build/esm/blocks/Form/schema.js +17 -5
  102. package/build/esm/blocks/Form/schema.js.map +1 -1
  103. package/build/esm/blocks/Header/schema.d.ts +446 -191
  104. package/build/esm/blocks/Header/schema.js +19 -3
  105. package/build/esm/blocks/Header/schema.js.map +1 -1
  106. package/build/esm/blocks/HeaderSlider/schema.d.ts +150 -71
  107. package/build/esm/blocks/Hero/schema.d.ts +19 -437
  108. package/build/esm/blocks/Hero/schema.js +12 -3
  109. package/build/esm/blocks/Hero/schema.js.map +1 -1
  110. package/build/esm/blocks/Icons/Icons.js.map +1 -1
  111. package/build/esm/blocks/Icons/schema.js +1 -1
  112. package/build/esm/blocks/Icons/schema.js.map +1 -1
  113. package/build/esm/blocks/Info/schema.d.ts +49 -1
  114. package/build/esm/blocks/Info/schema.js +3 -3
  115. package/build/esm/blocks/Info/schema.js.map +1 -1
  116. package/build/esm/blocks/Map/schema.d.ts +7 -2
  117. package/build/esm/blocks/Map/schema.js +1 -1
  118. package/build/esm/blocks/Map/schema.js.map +1 -1
  119. package/build/esm/blocks/Media/schema.d.ts +20 -9
  120. package/build/esm/blocks/Media/schema.js +16 -3
  121. package/build/esm/blocks/Media/schema.js.map +1 -1
  122. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
  123. package/build/esm/blocks/Table/schema.d.ts +1 -0
  124. package/build/esm/blocks/Table/schema.js +1 -0
  125. package/build/esm/blocks/Table/schema.js.map +1 -1
  126. package/build/esm/blocks/Tabs/schema.d.ts +7 -6
  127. package/build/esm/blocks/Tabs/schema.js +2 -2
  128. package/build/esm/blocks/Tabs/schema.js.map +1 -1
  129. package/build/esm/components/Author/schema.d.ts +1 -2
  130. package/build/esm/components/Image/schema.d.ts +33 -8
  131. package/build/esm/components/Image/schema.js +22 -22
  132. package/build/esm/components/Image/schema.js.map +1 -1
  133. package/build/esm/components/index.d.ts +1 -0
  134. package/build/esm/components/index.js +1 -0
  135. package/build/esm/components/index.js.map +1 -1
  136. package/build/esm/models/constructor-items/blocks.d.ts +6 -5
  137. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  138. package/build/esm/models/constructor-items/common.d.ts +1 -1
  139. package/build/esm/models/constructor-items/common.js.map +1 -1
  140. package/build/esm/navigation/schema.d.ts +1 -2
  141. package/build/esm/navigation/schema.js +2 -1
  142. package/build/esm/navigation/schema.js.map +1 -1
  143. package/build/esm/schema/constants.d.ts +940 -29
  144. package/build/esm/schema/constants.js +37 -41
  145. package/build/esm/schema/constants.js.map +1 -1
  146. package/build/esm/schema/validators/common.d.ts +11 -8
  147. package/build/esm/schema/validators/common.js +8 -4
  148. package/build/esm/schema/validators/common.js.map +1 -1
  149. package/build/esm/sub-blocks/BasicCard/schema.d.ts +82 -2
  150. package/build/esm/sub-blocks/BasicCard/schema.js +16 -2
  151. package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
  152. package/build/esm/sub-blocks/Content/schema.d.ts +2 -5
  153. package/build/esm/sub-blocks/Content/schema.js +1 -8
  154. package/build/esm/sub-blocks/Content/schema.js.map +1 -1
  155. package/build/esm/sub-blocks/ImageCard/schema.d.ts +33 -17
  156. package/build/esm/sub-blocks/ImageCard/schema.js +9 -2
  157. package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
  158. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1023 -312
  159. package/build/esm/sub-blocks/LayoutItem/schema.js +37 -6
  160. package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
  161. package/build/esm/sub-blocks/MediaCard/schema.d.ts +2 -4
  162. package/build/esm/sub-blocks/PriceCard/schema.d.ts +5 -0
  163. package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -1
  164. package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
  165. package/build/esm/sub-blocks/Quote/schema.d.ts +164 -6
  166. package/build/esm/sub-blocks/Quote/schema.js +3 -1
  167. package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
  168. package/package.json +1 -1
  169. package/schema/index.js +1 -1
  170. package/server/models/constructor-items/blocks.d.ts +6 -5
  171. package/server/models/constructor-items/common.d.ts +1 -1
  172. package/widget/index.js +1 -1
@@ -1,33 +1,61 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutItem = void 0;
3
+ exports.LayoutItemBlock = exports.LayoutItem = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
6
- const schema_1 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
5
+ const schema_1 = require("../../components/Image/schema.js");
6
+ const schema_2 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
7
+ const models_1 = require("../../models/index.js");
7
8
  const common_1 = require("../../schema/validators/common.js");
8
9
  const event_1 = require("../../schema/validators/event.js");
9
- const schema_2 = require("../Content/schema.js");
10
+ const schema_3 = require("../Content/schema.js");
11
+ const LayoutItemIconImage = {
12
+ oneOf: schema_1.ImageProps.oneOf.filter(({ type }) => type !== 'array'),
13
+ };
14
+ const LayoutItemIconPosition = [models_1.IconPosition.Top, models_1.IconPosition.Left];
15
+ const LayoutItemIcon = {
16
+ type: 'object',
17
+ additionalProperties: false,
18
+ required: ['value'],
19
+ properties: {
20
+ value: LayoutItemIconImage,
21
+ position: {
22
+ type: 'string',
23
+ enum: LayoutItemIconPosition,
24
+ },
25
+ },
26
+ };
10
27
  exports.LayoutItem = {
11
28
  type: 'object',
12
29
  additionalProperties: false,
13
- required: ['content', 'media'],
30
+ required: ['content'],
14
31
  properties: {
15
32
  ...common_1.BaseProps,
16
33
  ...common_1.CardLayoutProps,
17
- media: common_1.MediaProps,
18
- content: (0, omit_1.default)(schema_2.ContentBase, ['colSize', 'centered']),
34
+ media: {
35
+ type: 'object',
36
+ additionalProperties: false,
37
+ required: [],
38
+ properties: common_1.MediaProps,
39
+ },
40
+ content: {
41
+ type: 'object',
42
+ additionalProperties: false,
43
+ required: [],
44
+ properties: schema_3.ContentBase,
45
+ },
19
46
  contentMargin: {
20
47
  type: 'string',
21
48
  enum: ['m', 'l'],
22
49
  default: 'm',
23
50
  },
24
- metaInfo: schema_1.default,
51
+ metaInfo: schema_2.default,
25
52
  border: {
26
53
  type: 'boolean',
27
54
  },
28
55
  fullscreen: {
29
56
  type: 'boolean',
30
57
  },
58
+ icon: (0, common_1.withTheme)(LayoutItemIcon),
31
59
  url: {
32
60
  type: 'string',
33
61
  },
@@ -36,7 +64,7 @@ exports.LayoutItem = {
36
64
  },
37
65
  target: {
38
66
  type: 'string',
39
- enum: ['_blank', '_parent', '_top', '_self'],
67
+ enum: common_1.linkTargets,
40
68
  },
41
69
  analyticsEvents: {
42
70
  oneOf: [
@@ -53,4 +81,7 @@ exports.LayoutItem = {
53
81
  },
54
82
  },
55
83
  };
84
+ exports.LayoutItemBlock = {
85
+ 'layout-item': exports.LayoutItem,
86
+ };
56
87
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,yFAAwD;AACxD,8DAAsF;AACtF,4DAAmE;AACnE,iDAA4D;AAE/C,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE,mBAAU;QACjB,OAAO,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QACnD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;SAC/C;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {BaseProps, CardLayoutProps, MediaProps} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content', 'media'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: MediaProps,\n content: omit(ContentBase, ['colSize', 'centered']),\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\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"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,6DAAyD;AACzD,yFAAwD;AACxD,kDAA0C;AAC1C,8DAMwC;AACxC,4DAAmE;AACnE,iDAA4D;AAE5D,MAAM,mBAAmB,GAAG;IACxB,KAAK,EAAE,mBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;CAC/D,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,qBAAY,CAAC,GAAG,EAAE,qBAAY,CAAC,IAAI,CAAC,CAAC;AAErE,MAAM,cAAc,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE,mBAAmB;QAC1B,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,sBAAsB;SAC/B;KACJ;CACJ,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,mBAAU;SACzB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,oBAAW;SAC1B;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE,IAAA,kBAAS,EAAC,cAAc,CAAC;QAC/B,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oBAAW;SACpB;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEW,QAAA,eAAe,GAAG;IAC3B,aAAa,EAAE,kBAAU;CAC5B,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {IconPosition} from '../../models';\nimport {\n BaseProps,\n CardLayoutProps,\n MediaProps,\n linkTargets,\n withTheme,\n} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nconst LayoutItemIconImage = {\n oneOf: ImageProps.oneOf.filter(({type}) => type !== 'array'),\n};\n\nconst LayoutItemIconPosition = [IconPosition.Top, IconPosition.Left];\n\nconst LayoutItemIcon = {\n type: 'object',\n additionalProperties: false,\n required: ['value'],\n properties: {\n value: LayoutItemIconImage,\n position: {\n type: 'string',\n enum: LayoutItemIconPosition,\n },\n },\n};\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: MediaProps,\n },\n content: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: ContentBase,\n },\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n icon: withTheme(LayoutItemIcon),\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n target: {\n type: 'string',\n enum: linkTargets,\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\nexport const LayoutItemBlock = {\n 'layout-item': LayoutItem,\n};\n"]}
@@ -101,9 +101,9 @@ export declare const MediaCardBlock: {
101
101
  };
102
102
  };
103
103
  } | {
104
+ optionName: string;
104
105
  type: string;
105
106
  pattern: string;
106
- optionName: string;
107
107
  items?: undefined;
108
108
  } | {
109
109
  type: string;
@@ -116,7 +116,6 @@ export declare const MediaCardBlock: {
116
116
  };
117
117
  };
118
118
  optionName: string;
119
- pattern?: undefined;
120
119
  })[];
121
120
  type?: undefined;
122
121
  items?: undefined;
@@ -131,9 +130,9 @@ export declare const MediaCardBlock: {
131
130
  };
132
131
  };
133
132
  } | {
133
+ optionName: string;
134
134
  type: string;
135
135
  pattern: string;
136
- optionName: string;
137
136
  items?: undefined;
138
137
  } | {
139
138
  type: string;
@@ -146,7 +145,6 @@ export declare const MediaCardBlock: {
146
145
  };
147
146
  };
148
147
  optionName: string;
149
- pattern?: undefined;
150
148
  })[];
151
149
  };
152
150
  optionName: string;
@@ -171,6 +171,7 @@ export declare const PriceCardBlock: {
171
171
  theme: {
172
172
  enum: string[];
173
173
  };
174
+ required: string[];
174
175
  };
175
176
  };
176
177
  then: {
@@ -213,6 +214,10 @@ export declare const PriceCardBlock: {
213
214
  type: string;
214
215
  enum: string[];
215
216
  };
217
+ colorTheme: {
218
+ type: string;
219
+ enum: string[];
220
+ };
216
221
  analyticsEvents: {
217
222
  oneOf: ({
218
223
  optionName: string;
@@ -152,6 +152,7 @@ const PriceItem = {
152
152
  additionalProperties: false,
153
153
  required: ['title', 'description'],
154
154
  properties: {
155
+ ...common_1.CardBase,
155
156
  ...PriceDetailsProps,
156
157
  ...PriceDescriptionProps,
157
158
  analyticsEvents: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAoF;AACpF,4DAAmE;AACnE,4DAA4D;AAE5D,MAAM,wBAAwB,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAC7D,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC9D,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAErE,MAAM,qBAAqB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;IACxE,OAAO;QACH,GAAG,MAAM;QACT,CAAC,UAAU,CAAC,EAAE;YACV,IAAI,EAAE,QAAQ;SACjB;KACJ,CAAC;AACN,CAAC,EAAE,EAAE,CAAC,CAAC;AAEP,MAAM,mCAAmC,GAAG;IACxC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEF,MAAM,iCAAiC,GAAG;IACtC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAQ;SACjB;QACD,UAAU,EAA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rB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAkB;AACL,QAAA,kBAAkB,GAAG;IAC9B,gBAAgB,EAAE;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,wBAAe;YAClB,KAAK,EAAE,IAAA,qBAAa,EAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,6BAA6B;YAC1C,OAAO,EAAE,yBAAyB;YAClC,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,wBAAwB;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aAClB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,SAAS;aAClB;YACD,QAAQ,EAAE,iCAAiC;YAC3C,iBAAiB,EAAE,mCAAmC;SACzD;KACJ;CACJ,CAAC","sourcesContent":["import {AnimatableProps, BaseProps, textSize} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {filteredArray} from '../../schema/validators/utils';\n\nconst PriceDetailedDetailsType = ['marked-list', 'settings'];\nconst PriceDetailedDescriptionColor = ['cornflower', 'black'];\nconst PriceLabelColor = ['blue', 'green', 'yellow', 'purple', 'red'];\n\nconst LabelsDefaultTextProp = PriceLabelColor.reduce((result, labelColor) => {\n return {\n ...result,\n [labelColor]: {\n type: 'string',\n },\n };\n}, {});\n\nconst PriceDetailedLabelsDefaultTextProps = {\n additionalProperties: false,\n required: [],\n properties: LabelsDefaultTextProp,\n};\n\nconst PriceDetailedFoldableDetailsProps = {\n additionalProperties: false,\n required: ['title'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDetailedDetailsProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDetailedDescriptionProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDescriptionLabelProps = {\n additionalProperties: false,\n required: ['color'],\n properties: {\n color: {\n type: 'string',\n enum: PriceLabelColor,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDescriptionProps = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n detailedTitle: {\n type: 'string',\n contentType: 'text',\n },\n label: PriceDescriptionLabelProps,\n};\n\nconst PriceDetailsSettingsProps = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsListProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsProps = {\n items: {\n oneOf: [\n {\n ...filteredArray({\n ...PriceDetailsListProps,\n }),\n optionName: 'marked-list',\n },\n {\n ...filteredArray({\n ...PriceDetailsSettingsProps,\n }),\n optionName: 'settings',\n },\n ],\n },\n};\n\nconst PriceItem = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n ...PriceDetailsProps,\n ...PriceDescriptionProps,\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/** @deprecated */\nexport const PriceDetailedBlock = {\n 'price-detailed': {\n additionalProperties: false,\n required: ['items'],\n properties: {\n ...BaseProps,\n ...AnimatableProps,\n items: filteredArray(PriceItem),\n description: PriceDetailedDescriptionProps,\n details: PriceDetailedDetailsProps,\n priceType: {\n type: 'string',\n enum: PriceDetailedDetailsType,\n default: 'settings',\n },\n numberGroupItems: {\n type: 'number',\n enum: [3, 4, 5],\n },\n isCombined: {\n type: 'boolean',\n },\n useMixedView: {\n type: 'boolean',\n },\n foldable: PriceDetailedFoldableDetailsProps,\n labelsDefaultText: PriceDetailedLabelsDefaultTextProps,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":";;;AAAA,8DAA8F;AAC9F,4DAAmE;AACnE,4DAA4D;AAE5D,MAAM,wBAAwB,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAC7D,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC9D,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAErE,MAAM,qBAAqB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;IACxE,OAAO;QACH,GAAG,MAAM;QACT,CAAC,UAAU,CAAC,EAAE;YACV,IAAI,EAAE,QAAQ;SACjB;KACJ,CAAC;AACN,CAAC,EAAE,EAAE,CAAC,CAAC;AAEP,MAAM,mCAAmC,GAAG;IACxC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEF,MAAM,iCAAiC,GAAG;IACtC,oBAAoB,EAAE,KAAK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AG,iBAAQ;QACX,GAAG,iBAAiB;QACpB,GAAG,qBAAqB;QACxB,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAkB;AACL,QAAA,kBAAkB,GAAG;IAC9B,gBAAgB,EAAE;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,wBAAe;YAClB,KAAK,EAAE,IAAA,qBAAa,EAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,6BAA6B;YAC1C,OAAO,EAAE,yBAAyB;YAClC,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,wBAAwB;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aAClB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,SAAS;aAClB;YACD,QAAQ,EAAE,iCAAiC;YAC3C,iBAAiB,EAAE,mCAAmC;SACzD;KACJ;CACJ,CAAC","sourcesContent":["import {AnimatableProps, BaseProps, CardBase, textSize} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {filteredArray} from '../../schema/validators/utils';\n\nconst PriceDetailedDetailsType = ['marked-list', 'settings'];\nconst PriceDetailedDescriptionColor = ['cornflower', 'black'];\nconst PriceLabelColor = ['blue', 'green', 'yellow', 'purple', 'red'];\n\nconst LabelsDefaultTextProp = PriceLabelColor.reduce((result, labelColor) => {\n return {\n ...result,\n [labelColor]: {\n type: 'string',\n },\n };\n}, {});\n\nconst PriceDetailedLabelsDefaultTextProps = {\n additionalProperties: false,\n required: [],\n properties: LabelsDefaultTextProp,\n};\n\nconst PriceDetailedFoldableDetailsProps = {\n additionalProperties: false,\n required: ['title'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDetailedDetailsProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDetailedDescriptionProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDescriptionLabelProps = {\n additionalProperties: false,\n required: ['color'],\n properties: {\n color: {\n type: 'string',\n enum: PriceLabelColor,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDescriptionProps = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n detailedTitle: {\n type: 'string',\n contentType: 'text',\n },\n label: PriceDescriptionLabelProps,\n};\n\nconst PriceDetailsSettingsProps = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsListProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsProps = {\n items: {\n oneOf: [\n {\n ...filteredArray({\n ...PriceDetailsListProps,\n }),\n optionName: 'marked-list',\n },\n {\n ...filteredArray({\n ...PriceDetailsSettingsProps,\n }),\n optionName: 'settings',\n },\n ],\n },\n};\n\nconst PriceItem = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n ...CardBase,\n ...PriceDetailsProps,\n ...PriceDescriptionProps,\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/** @deprecated */\nexport const PriceDetailedBlock = {\n 'price-detailed': {\n additionalProperties: false,\n required: ['items'],\n properties: {\n ...BaseProps,\n ...AnimatableProps,\n items: filteredArray(PriceItem),\n description: PriceDetailedDescriptionProps,\n details: PriceDetailedDetailsProps,\n priceType: {\n type: 'string',\n enum: PriceDetailedDetailsType,\n default: 'settings',\n },\n numberGroupItems: {\n type: 'number',\n enum: [3, 4, 5],\n },\n isCombined: {\n type: 'boolean',\n },\n useMixedView: {\n type: 'boolean',\n },\n foldable: PriceDetailedFoldableDetailsProps,\n labelsDefaultText: PriceDetailedLabelsDefaultTextProps,\n },\n },\n};\n"]}
@@ -21,9 +21,9 @@ export declare const Quote: {
21
21
  };
22
22
  };
23
23
  } | {
24
+ optionName: string;
24
25
  type: string;
25
26
  pattern: string;
26
- optionName: string;
27
27
  items?: undefined;
28
28
  } | {
29
29
  type: string;
@@ -36,7 +36,6 @@ export declare const Quote: {
36
36
  };
37
37
  };
38
38
  optionName: string;
39
- pattern?: undefined;
40
39
  })[];
41
40
  } & {
42
41
  optionName: string;
@@ -57,9 +56,9 @@ export declare const Quote: {
57
56
  };
58
57
  };
59
58
  } | {
59
+ optionName: string;
60
60
  type: string;
61
61
  pattern: string;
62
- optionName: string;
63
62
  items?: undefined;
64
63
  } | {
65
64
  type: string;
@@ -72,7 +71,6 @@ export declare const Quote: {
72
71
  };
73
72
  };
74
73
  optionName: string;
75
- pattern?: undefined;
76
74
  })[];
77
75
  };
78
76
  color: {
@@ -87,6 +85,163 @@ export declare const Quote: {
87
85
  buttonText: {
88
86
  type: string;
89
87
  };
88
+ button: {
89
+ type: string;
90
+ additionalProperties: boolean;
91
+ properties: {
92
+ text: {
93
+ type: string;
94
+ contentType: string;
95
+ };
96
+ url: {
97
+ type: string;
98
+ };
99
+ urlTitle: {
100
+ type: string;
101
+ };
102
+ primary: {
103
+ type: string;
104
+ };
105
+ size: {
106
+ type: string;
107
+ enum: string[];
108
+ };
109
+ theme: {
110
+ type: string;
111
+ enum: string[];
112
+ };
113
+ img: {
114
+ oneOf: ({
115
+ type: string;
116
+ optionName: string;
117
+ additionalProperties?: undefined;
118
+ required?: undefined;
119
+ properties?: undefined;
120
+ } | {
121
+ type: string;
122
+ additionalProperties: boolean;
123
+ required: string[];
124
+ properties: {
125
+ data: {
126
+ type: string;
127
+ };
128
+ position: {
129
+ type: string;
130
+ enum: string[];
131
+ };
132
+ alt: {
133
+ type: string;
134
+ contentType: string;
135
+ };
136
+ };
137
+ optionName: string;
138
+ })[];
139
+ };
140
+ analyticsEvents: {
141
+ oneOf: ({
142
+ optionName: string;
143
+ type: string;
144
+ additionalProperties: {
145
+ type: string;
146
+ };
147
+ required: string[];
148
+ properties: {
149
+ name: {
150
+ type: string;
151
+ };
152
+ type: {
153
+ type: string;
154
+ };
155
+ counters: {
156
+ type: string;
157
+ additionalProperties: boolean;
158
+ required: never[];
159
+ properties: {
160
+ include: {
161
+ type: string;
162
+ items: {
163
+ type: string;
164
+ };
165
+ };
166
+ exclude: {
167
+ type: string;
168
+ items: {
169
+ type: string;
170
+ };
171
+ };
172
+ };
173
+ };
174
+ context: {
175
+ type: string;
176
+ };
177
+ };
178
+ items?: undefined;
179
+ } | {
180
+ type: string;
181
+ items: {
182
+ type: string;
183
+ additionalProperties: {
184
+ type: string;
185
+ };
186
+ required: string[];
187
+ properties: {
188
+ name: {
189
+ type: string;
190
+ };
191
+ type: {
192
+ type: string;
193
+ };
194
+ counters: {
195
+ type: string;
196
+ additionalProperties: boolean;
197
+ required: never[];
198
+ properties: {
199
+ include: {
200
+ type: string;
201
+ items: {
202
+ type: string;
203
+ };
204
+ };
205
+ exclude: {
206
+ type: string;
207
+ items: {
208
+ type: string;
209
+ };
210
+ };
211
+ };
212
+ };
213
+ context: {
214
+ type: string;
215
+ };
216
+ };
217
+ };
218
+ optionName: string;
219
+ })[];
220
+ };
221
+ target: {
222
+ type: string;
223
+ enum: string[];
224
+ };
225
+ width: {
226
+ type: string;
227
+ enum: string[];
228
+ };
229
+ };
230
+ if: {
231
+ properties: {
232
+ theme: {
233
+ enum: string[];
234
+ };
235
+ required: string[];
236
+ };
237
+ };
238
+ then: {
239
+ required: string[];
240
+ };
241
+ else: {
242
+ required: string[];
243
+ };
244
+ };
90
245
  theme: {
91
246
  type: string;
92
247
  enum: string[];
@@ -112,9 +267,9 @@ export declare const Quote: {
112
267
  };
113
268
  };
114
269
  } | {
270
+ optionName: string;
115
271
  type: string;
116
272
  pattern: string;
117
- optionName: string;
118
273
  items?: undefined;
119
274
  } | {
120
275
  type: string;
@@ -127,7 +282,6 @@ export declare const Quote: {
127
282
  };
128
283
  };
129
284
  optionName: string;
130
- pattern?: undefined;
131
285
  })[];
132
286
  };
133
287
  description: {
@@ -140,6 +294,10 @@ export declare const Quote: {
140
294
  type: string;
141
295
  enum: import("../../index.js").QuoteType[];
142
296
  };
297
+ border: {
298
+ type: string;
299
+ enum: string[];
300
+ };
143
301
  type: {};
144
302
  when: {
145
303
  type: string;
@@ -9,6 +9,7 @@ exports.Quote = {
9
9
  required: ['image', 'logo'],
10
10
  properties: {
11
11
  ...common_1.BaseProps,
12
+ ...common_1.CardBase,
12
13
  text: {
13
14
  type: 'string',
14
15
  contentType: 'text',
@@ -31,6 +32,7 @@ exports.Quote = {
31
32
  buttonText: {
32
33
  type: 'string',
33
34
  },
35
+ button: common_1.ButtonBlock,
34
36
  theme: common_1.ThemeProps,
35
37
  author: common_1.authorItem,
36
38
  quoteType: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,8DAMwC;AAE3B,QAAA,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE,IAAA,kBAAS,EAAC,mBAAU,CAAC;YAC5B,IAAI,EAAE,mBAAU;YAChB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,KAAK,EAAE,mBAAU;YACjB,MAAM,EAAE,mBAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,mBAAU;aACnB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n ThemeProps,\n authorItem,\n quoteTypes,\n withTheme,\n} from '../../schema/validators/common';\n\nexport const Quote = {\n quote: {\n additionalProperties: false,\n required: ['image', 'logo'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n yfmText: {\n type: 'string',\n contentType: 'text',\n },\n image: withTheme(ImageProps),\n logo: ImageProps,\n color: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n buttonText: {\n type: 'string',\n },\n theme: ThemeProps,\n author: authorItem,\n quoteType: {\n type: 'string',\n enum: quoteTypes,\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,8DAQwC;AAE3B,QAAA,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE,IAAA,kBAAS,EAAC,mBAAU,CAAC;YAC5B,IAAI,EAAE,mBAAU;YAChB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,MAAM,EAAE,oBAAW;YACnB,KAAK,EAAE,mBAAU;YACjB,MAAM,EAAE,mBAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,mBAAU;aACnB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n ButtonBlock,\n CardBase,\n ThemeProps,\n authorItem,\n quoteTypes,\n withTheme,\n} from '../../schema/validators/common';\n\nexport const Quote = {\n quote: {\n additionalProperties: false,\n required: ['image', 'logo'],\n properties: {\n ...BaseProps,\n ...CardBase,\n text: {\n type: 'string',\n contentType: 'text',\n },\n yfmText: {\n type: 'string',\n contentType: 'text',\n },\n image: withTheme(ImageProps),\n logo: ImageProps,\n color: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n buttonText: {\n type: 'string',\n },\n button: ButtonBlock,\n theme: ThemeProps,\n author: authorItem,\n quoteType: {\n type: 'string',\n enum: quoteTypes,\n },\n },\n },\n};\n"]}
@@ -34,21 +34,21 @@ Renders a modern, content-driven hero block: an overtitle, a rich content column
34
34
 
35
35
  ## Properties
36
36
 
37
- | Property | Type | Default | Description |
38
- | ------------------ | -------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------- |
39
- | `title` _required_ | `string \| TitleProps` | — | Main heading. A string or a `TitleProps` object (`text`, `textSize`, `url`, `urlTitle`, `analyticsEvents`). |
40
- | `text` | `string` | — | YFM body content rendered below the title. |
41
- | `additionalInfo` | `string` | — | YFM supplementary text under the body. |
42
- | `links` | `LinkProps[]` | — | Inline text links rendered below the content. |
43
- | `list` | `ContentItem[]` | — | Bullet-style list; each item has `title`, `text`, and an `icon`/`gravityIcon`. |
44
- | `theme` | `'default' \| 'light' \| 'dark'` | `'default'` | Color theme; `default` follows the runtime theme, `light`/`dark` force a monochrome scheme. |
45
- | `overtitle` | `string` | — | Small label rendered above the title. |
46
- | `buttons` | `HeroButton[] \| {light, dark}[]` | — | CTA buttons. Each requires `text` + `url` and supports `theme`, `primary`, `size`, `extraProps`. |
47
- | `media` | `MediaProps & {roundCorners?: boolean} \| {light, dark}` | — | Media column (image/video/youtube/iframe/dataLens). `roundCorners` defaults to `true`. |
48
- | `fullWidth` | `boolean` | `false` | Extends the background to the full viewport width. |
49
- | `verticalOffset` | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | Vertical spacing around the content. |
50
- | `background` | `HeroBackground \| {light, dark}` | — | Background color and/or media behind the block. |
51
- | `breadcrumbs` | `{items: {url, text}[], theme?}` | — | Breadcrumb navigation rendered above the content. |
37
+ | Property | Type | Default | Description |
38
+ | ------------------ | -------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | `title` _required_ | `string \| TitleProps` | — | Main heading. A string or a `TitleProps` object (`text`, `textSize`, `url`, `urlTitle`, `analyticsEvents`). |
40
+ | `text` | `string` | — | YFM body content rendered below the title. |
41
+ | `additionalInfo` | `string` | — | YFM supplementary text under the body. |
42
+ | `links` | `LinkProps[]` | — | Inline text links rendered below the content. |
43
+ | `list` | `ContentItem[]` | — | Bullet-style list; each item has `title`, `text`, and an `icon`/`gravityIcon`. |
44
+ | `theme` | `'default' \| 'light' \| 'dark'` | `'default'` | Color theme; `default` follows the runtime theme, `light`/`dark` force a monochrome scheme. |
45
+ | `overtitle` | `string` | — | Small label rendered above the title. |
46
+ | `buttons` | `HeroButton[] \| {light, dark}[]` | — | CTA buttons. Each requires `text` + `url` and supports `theme`, `primary`, `target`, `analyticsEvents`, `extraProps`, `when`. Always rendered at size `xl`: a per-button `size` is accepted but ignored. |
47
+ | `media` | `MediaProps & {roundCorners?: boolean} \| {light, dark}` | — | Media column (image/video/youtube/iframe/dataLens). `roundCorners` defaults to `true`. |
48
+ | `fullWidth` | `boolean` | `false` | Extends the background to the full viewport width. |
49
+ | `verticalOffset` | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | Vertical spacing around the content. |
50
+ | `background` | `HeroBackground \| {light, dark}` | — | Background color and/or media behind the block. |
51
+ | `breadcrumbs` | `{items: {url, text}[], theme?}` | — | Breadcrumb navigation rendered above the content. |
52
52
 
53
53
  `HeroBackground` accepts `image`, `video`, `parallax`, `height`, `ratio`, `previewImg` (from `MediaProps`) plus `color`.
54
54
 
@@ -43,9 +43,9 @@ Renders a responsive grid of small icon items, each consisting of an image and a
43
43
 
44
44
  | Property | Type | Default | Description |
45
45
  | ----------------- | ------------------------------------ | ------- | ---------------------------------------------------------------------------- |
46
- | `url` _required_ | `string` | — | If present, the item is rendered as a link wrapping the icon and text. |
47
- | `text` _required_ | `string` | — | Caption rendered under the icon; also used as the link `aria-label`/`title`. |
48
46
  | `src` _required_ | `string \| {light, dark}` | — | Icon image URL. |
47
+ | `url` | `string` | — | If present, the item is rendered as a link wrapping the icon and text. |
48
+ | `text` | `string` | — | Caption rendered under the icon; also used as the link `aria-label`/`title`. |
49
49
  | `analyticsEvents` | `AnalyticsEvent \| AnalyticsEvent[]` | — | Analytics events fired when the item link is clicked. |
50
50
 
51
51
  ### Common properties
@@ -32,7 +32,7 @@ Renders a two-column layout that pairs a content column (title, body, list, link
32
32
 
33
33
  | Property | Type | Default | Description |
34
34
  | -------------------- | ------------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
35
- | `title` _required_ | `string \| TitleProps` | — | Section heading. String or `TitleProps` (`text`, `textSize`, `url`, `urlTitle`, `analyticsEvents`). |
35
+ | `title` | `string \| TitleProps` | — | Section heading. String or `TitleProps` (`text`, `textSize`, `url`, `urlTitle`, `analyticsEvents`). Required unless `mediaOnly: true`. |
36
36
  | `media` _required_ | `MediaProps \| {light, dark}` | — | Media column: `image` (single or array → slider), `video`, `youtube`, `videoIframe`, `iframe`, `dataLens`, plus `previewImg`, `autoplay`, `parallax`, `height`, `ratio`, `fullscreen`, `margins`, etc. |
37
37
  | `description` | `string` | — | YFM body text rendered under the title. |
38
38
  | `additionalInfo` | `string` | — | YFM supplementary text below the body. |
@@ -198,6 +198,7 @@ export declare const BannerCardProps: {
198
198
  theme: {
199
199
  enum: string[];
200
200
  };
201
+ required: string[];
201
202
  };
202
203
  };
203
204
  then: {
@@ -417,6 +418,7 @@ export declare const BannerBlock: {
417
418
  theme: {
418
419
  enum: string[];
419
420
  };
421
+ required: string[];
420
422
  };
421
423
  };
422
424
  then: {
@@ -637,6 +639,7 @@ export declare const BannerCard: {
637
639
  theme: {
638
640
  enum: string[];
639
641
  };
642
+ required: string[];
640
643
  };
641
644
  };
642
645
  then: {