@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,4 +1,5 @@
1
- import { ImageProps } from "../../components/Image/schema.js";
1
+ import { BackgroundImageProps, ImageProps, imageUrlPattern } from "../../components/Image/schema.js";
2
+ import { Theme } from "../../models/index.js";
2
3
  import { BlockBaseProps, ButtonBlock, HeaderBreadcrumbsProps, MediaProps, VideoProps, mediaView, withTheme, } from "../../schema/validators/common.js";
3
4
  import { filteredArray } from "../../schema/validators/utils.js";
4
5
  export const HeaderVideoIframeProps = {
@@ -18,6 +19,16 @@ export const HeaderBackgroundProps = {
18
19
  required: [],
19
20
  properties: {
20
21
  ...MediaProps,
22
+ image: {
23
+ oneOf: [
24
+ { type: 'string', pattern: imageUrlPattern, optionName: 'url' },
25
+ ...BackgroundImageProps.oneOf,
26
+ ],
27
+ },
28
+ /** @deprecated use `image` */
29
+ url: { type: 'string', pattern: imageUrlPattern },
30
+ /** @deprecated use `image` */
31
+ disableCompress: { type: 'boolean' },
21
32
  fullWidth: { type: 'boolean' },
22
33
  fullWidthMedia: { type: 'boolean' },
23
34
  },
@@ -52,7 +63,7 @@ export const HeaderProperties = {
52
63
  },
53
64
  image: withTheme(ImageProps),
54
65
  video: withTheme(VideoProps),
55
- videoIframe: withTheme(HeaderVideoIframeProps),
66
+ videoIframe: HeaderVideoIframeProps,
56
67
  mediaView: {
57
68
  type: 'string',
58
69
  enum: mediaView,
@@ -81,7 +92,12 @@ export const HeaderProperties = {
81
92
  background: withTheme(HeaderBackgroundProps),
82
93
  theme: {
83
94
  type: 'string',
84
- enum: ['default', 'dark'],
95
+ enum: [
96
+ Theme.Light,
97
+ Theme.Dark,
98
+ /** @deprecated */
99
+ 'default',
100
+ ],
85
101
  },
86
102
  breadcrumbs: HeaderBreadcrumbsProps,
87
103
  status: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,UAAU,EAAE;QACR,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QACrB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,UAAU,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC5B,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KAC3B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,GAAG,UAAU;QACb,SAAS,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC5B,cAAc,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;KACpC;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,MAAM;KACtB;IACD,WAAW,EAAE;QACT,IAAI,EAA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AsB;IACnC,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,gBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n ButtonBlock,\n HeaderBreadcrumbsProps,\n MediaProps,\n VideoProps,\n mediaView,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const HeaderVideoIframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {type: 'string'},\n autoplay: {type: 'boolean'},\n previewImg: {type: 'string'},\n height: {type: 'number'},\n },\n};\n\nexport const HeaderBackgroundProps = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...MediaProps,\n fullWidth: {type: 'boolean'},\n fullWidthMedia: {type: 'boolean'},\n },\n};\n\nexport const HeaderProperties = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n overtitle: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n width: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n },\n buttons: filteredArray(ButtonBlock),\n offset: {\n type: 'string',\n enum: ['default', 'large'],\n },\n image: withTheme(ImageProps),\n video: withTheme(VideoProps),\n videoIframe: withTheme(HeaderVideoIframeProps),\n mediaView: {\n type: 'string',\n enum: mediaView,\n },\n backLink: {\n type: 'object',\n required: ['url', 'title'],\n properties: {\n url: {\n type: 'string',\n },\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n imageSize: {\n type: 'string',\n enum: ['s', 'm'],\n },\n verticalOffset: {\n type: 'string',\n enum: ['0', 's', 'm', 'l', 'xl'],\n },\n background: withTheme(HeaderBackgroundProps),\n theme: {\n type: 'string',\n enum: ['default', 'dark'],\n },\n breadcrumbs: HeaderBreadcrumbsProps,\n status: {\n type: 'string',\n },\n centered: {\n type: 'boolean',\n },\n};\n\nexport const HeaderBlock = {\n 'header-block': {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BlockBaseProps,\n ...HeaderProperties,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAC,yCAAsC;AAChG,OAAO,EAAC,KAAK,EAAC,8BAAqB;AACnC,OAAO,EACH,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,UAAU,EAAE;QACR,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QACrB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,UAAU,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC5B,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KAC3B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,GAAG,UAAU;QACb,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,EA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ACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;QAC1B,UAAU,EAAE;YACR,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;SACJ;KACJ;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;KACnB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;KACnC;IACD,UAAU,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAC5C,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACF,KAAK,CAAC,KAAK;YACX,KAAK,CAAC,IAAI;YACV,kBAAkB;YAClB,SAAS;SACZ;KACJ;IACD,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,gBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {BackgroundImageProps, ImageProps, imageUrlPattern} from '../../components/Image/schema';\nimport {Theme} from '../../models';\nimport {\n BlockBaseProps,\n ButtonBlock,\n HeaderBreadcrumbsProps,\n MediaProps,\n VideoProps,\n mediaView,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const HeaderVideoIframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {type: 'string'},\n autoplay: {type: 'boolean'},\n previewImg: {type: 'string'},\n height: {type: 'number'},\n },\n};\n\nexport const HeaderBackgroundProps = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...MediaProps,\n image: {\n oneOf: [\n {type: 'string', pattern: imageUrlPattern, optionName: 'url'},\n ...BackgroundImageProps.oneOf,\n ],\n },\n /** @deprecated use `image` */\n url: {type: 'string', pattern: imageUrlPattern},\n /** @deprecated use `image` */\n disableCompress: {type: 'boolean'},\n fullWidth: {type: 'boolean'},\n fullWidthMedia: {type: 'boolean'},\n },\n};\n\nexport const HeaderProperties = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n overtitle: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n width: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n },\n buttons: filteredArray(ButtonBlock),\n offset: {\n type: 'string',\n enum: ['default', 'large'],\n },\n image: withTheme(ImageProps),\n video: withTheme(VideoProps),\n videoIframe: HeaderVideoIframeProps,\n mediaView: {\n type: 'string',\n enum: mediaView,\n },\n backLink: {\n type: 'object',\n required: ['url', 'title'],\n properties: {\n url: {\n type: 'string',\n },\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n imageSize: {\n type: 'string',\n enum: ['s', 'm'],\n },\n verticalOffset: {\n type: 'string',\n enum: ['0', 's', 'm', 'l', 'xl'],\n },\n background: withTheme(HeaderBackgroundProps),\n theme: {\n type: 'string',\n enum: [\n Theme.Light,\n Theme.Dark,\n /** @deprecated */\n 'default',\n ],\n },\n breadcrumbs: HeaderBreadcrumbsProps,\n status: {\n type: 'string',\n },\n centered: {\n type: 'boolean',\n },\n};\n\nexport const HeaderBlock = {\n 'header-block': {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BlockBaseProps,\n ...HeaderProperties,\n },\n },\n};\n"]}
@@ -57,9 +57,9 @@ export declare const HeaderSliderBlock: {
57
57
  };
58
58
  };
59
59
  } | {
60
+ optionName: string;
60
61
  type: string;
61
62
  pattern: string;
62
- optionName: string;
63
63
  items?: undefined;
64
64
  } | {
65
65
  type: string;
@@ -72,7 +72,6 @@ export declare const HeaderSliderBlock: {
72
72
  };
73
73
  };
74
74
  optionName: string;
75
- pattern?: undefined;
76
75
  })[];
77
76
  } & {
78
77
  optionName: string;
@@ -185,33 +184,23 @@ export declare const HeaderSliderBlock: {
185
184
  })[];
186
185
  };
187
186
  videoIframe: {
188
- oneOf: (({
189
- type: string;
190
- additionalProperties: boolean;
191
- required: string[];
192
- properties: {
193
- src: {
194
- type: string;
195
- };
196
- autoplay: {
197
- type: string;
198
- };
199
- previewImg: {
200
- type: string;
201
- };
202
- height: {
203
- type: string;
204
- };
187
+ type: string;
188
+ additionalProperties: boolean;
189
+ required: string[];
190
+ properties: {
191
+ src: {
192
+ type: string;
205
193
  };
206
- } & {
207
- optionName: string;
208
- }) | {
209
- type: string;
210
- additionalProperties: boolean;
211
- required: import("../../index.js").Theme[];
212
- properties: {};
213
- optionName: string;
214
- })[];
194
+ autoplay: {
195
+ type: string;
196
+ };
197
+ previewImg: {
198
+ type: string;
199
+ };
200
+ height: {
201
+ type: string;
202
+ };
203
+ };
215
204
  };
216
205
  mediaView: {
217
206
  type: string;
@@ -244,77 +233,167 @@ export declare const HeaderSliderBlock: {
244
233
  additionalProperties: boolean;
245
234
  required: never[];
246
235
  properties: {
247
- fullWidth: {
248
- type: string;
249
- };
250
- fullWidthMedia: {
251
- type: string;
252
- };
253
- color: {
254
- type: string;
255
- };
256
236
  image: {
257
237
  oneOf: ({
258
238
  optionName: string;
259
- oneOf: ({
260
- type: string;
261
- properties: {
262
- when: {
263
- type: string;
264
- };
239
+ type: string;
240
+ additionalProperties: boolean;
241
+ properties: {
242
+ src: {
243
+ type: string;
244
+ pattern: string;
265
245
  };
266
- } | {
267
- type: string;
268
- pattern: string;
269
- optionName: string;
270
- items?: undefined;
271
- } | {
272
- type: string;
273
- items: {
246
+ style: {
274
247
  type: string;
248
+ additionalProperties: boolean;
249
+ required: never[];
275
250
  properties: {
276
- when: {
251
+ backgroundColor: {
252
+ type: string;
253
+ };
254
+ height: {
255
+ type: string[];
256
+ };
257
+ width: {
258
+ type: string[];
259
+ };
260
+ color: {
277
261
  type: string;
278
262
  };
279
263
  };
280
264
  };
281
- optionName: string;
282
- pattern?: undefined;
283
- })[];
284
- type?: undefined;
285
- items?: undefined;
265
+ alt: {
266
+ type: string;
267
+ contentType: string;
268
+ };
269
+ disableCompress: {
270
+ type: string;
271
+ };
272
+ loading: {
273
+ type: string;
274
+ enum: string[];
275
+ };
276
+ fetchPriority: {
277
+ type: string;
278
+ enum: string[];
279
+ };
280
+ hide: {
281
+ oneOf: ({
282
+ type: string;
283
+ properties?: undefined;
284
+ } | {
285
+ type: string;
286
+ properties: {
287
+ mobile: {
288
+ type: string;
289
+ };
290
+ tablet: {
291
+ type: string;
292
+ };
293
+ desktop: {
294
+ type: string;
295
+ };
296
+ };
297
+ })[];
298
+ };
299
+ };
286
300
  } | {
287
- type: string;
288
- items: {
289
- oneOf: ({
301
+ properties: {
302
+ style: {
290
303
  type: string;
304
+ additionalProperties: boolean;
305
+ required: never[];
291
306
  properties: {
292
- when: {
307
+ backgroundColor: {
308
+ type: string;
309
+ };
310
+ height: {
311
+ type: string[];
312
+ };
313
+ width: {
314
+ type: string[];
315
+ };
316
+ color: {
293
317
  type: string;
294
318
  };
295
319
  };
296
- } | {
320
+ };
321
+ desktop: {
297
322
  type: string;
298
323
  pattern: string;
299
- optionName: string;
300
- items?: undefined;
301
- } | {
324
+ };
325
+ tablet: {
326
+ type: string;
327
+ pattern: string;
328
+ };
329
+ mobile: {
302
330
  type: string;
303
- items: {
331
+ pattern: string;
332
+ };
333
+ alt: {
334
+ type: string;
335
+ contentType: string;
336
+ };
337
+ disableCompress: {
338
+ type: string;
339
+ };
340
+ loading: {
341
+ type: string;
342
+ enum: string[];
343
+ };
344
+ fetchPriority: {
345
+ type: string;
346
+ enum: string[];
347
+ };
348
+ hide: {
349
+ oneOf: ({
350
+ type: string;
351
+ properties?: undefined;
352
+ } | {
304
353
  type: string;
305
354
  properties: {
306
- when: {
355
+ mobile: {
356
+ type: string;
357
+ };
358
+ tablet: {
359
+ type: string;
360
+ };
361
+ desktop: {
307
362
  type: string;
308
363
  };
309
364
  };
310
- };
311
- optionName: string;
312
- pattern?: undefined;
313
- })[];
365
+ })[];
366
+ };
314
367
  };
315
368
  optionName: string;
369
+ type: string;
370
+ additionalProperties: boolean;
371
+ required: import("../../index.js").Device[];
372
+ anyOf: {
373
+ required: import("../../index.js").Device[];
374
+ }[];
375
+ } | {
376
+ type: string;
377
+ pattern: string;
378
+ optionName: string;
316
379
  })[];
317
380
  };
381
+ url: {
382
+ type: string;
383
+ pattern: string;
384
+ };
385
+ disableCompress: {
386
+ type: string;
387
+ };
388
+ fullWidth: {
389
+ type: string;
390
+ };
391
+ fullWidthMedia: {
392
+ type: string;
393
+ };
394
+ color: {
395
+ type: string;
396
+ };
318
397
  disableImageSliderForArrayInput: {
319
398
  type: string;
320
399
  };