@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,17 +1,44 @@
1
- import omit from "lodash/omit.js";
1
+ import { ImageProps } from "../../components/Image/schema.js";
2
2
  import metaInfo from "../../components/MetaInfo/schema.js";
3
- import { BaseProps, CardLayoutProps, MediaProps } from "../../schema/validators/common.js";
3
+ import { IconPosition } from "../../models/index.js";
4
+ import { BaseProps, CardLayoutProps, MediaProps, linkTargets, withTheme, } from "../../schema/validators/common.js";
4
5
  import { AnalyticsEventSchema } from "../../schema/validators/event.js";
5
6
  import { ContentBase } from "../Content/schema.js";
7
+ const LayoutItemIconImage = {
8
+ oneOf: ImageProps.oneOf.filter(({ type }) => type !== 'array'),
9
+ };
10
+ const LayoutItemIconPosition = [IconPosition.Top, IconPosition.Left];
11
+ const LayoutItemIcon = {
12
+ type: 'object',
13
+ additionalProperties: false,
14
+ required: ['value'],
15
+ properties: {
16
+ value: LayoutItemIconImage,
17
+ position: {
18
+ type: 'string',
19
+ enum: LayoutItemIconPosition,
20
+ },
21
+ },
22
+ };
6
23
  export const LayoutItem = {
7
24
  type: 'object',
8
25
  additionalProperties: false,
9
- required: ['content', 'media'],
26
+ required: ['content'],
10
27
  properties: {
11
28
  ...BaseProps,
12
29
  ...CardLayoutProps,
13
- media: MediaProps,
14
- content: omit(ContentBase, ['colSize', 'centered']),
30
+ media: {
31
+ type: 'object',
32
+ additionalProperties: false,
33
+ required: [],
34
+ properties: MediaProps,
35
+ },
36
+ content: {
37
+ type: 'object',
38
+ additionalProperties: false,
39
+ required: [],
40
+ properties: ContentBase,
41
+ },
15
42
  contentMargin: {
16
43
  type: 'string',
17
44
  enum: ['m', 'l'],
@@ -24,6 +51,7 @@ export const LayoutItem = {
24
51
  fullscreen: {
25
52
  type: 'boolean',
26
53
  },
54
+ icon: withTheme(LayoutItemIcon),
27
55
  url: {
28
56
  type: 'string',
29
57
  },
@@ -32,7 +60,7 @@ export const LayoutItem = {
32
60
  },
33
61
  target: {
34
62
  type: 'string',
35
- enum: ['_blank', '_parent', '_top', '_self'],
63
+ enum: linkTargets,
36
64
  },
37
65
  analyticsEvents: {
38
66
  oneOf: [
@@ -49,4 +77,7 @@ export const LayoutItem = {
49
77
  },
50
78
  },
51
79
  };
80
+ export const LayoutItemBlock = {
81
+ 'layout-item': LayoutItem,
82
+ };
52
83
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,QAAQ,4CAAyC;AACxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAC,0CAAuC;AACtF,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EAAC,WAAW,EAAC,6BAAwC;AAE5D,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE;QACR,GAAG,SAAS;QACZ,GAAG,eAAe;QAClB,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,IAAI,CAAC,WAAW,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,QAAQ;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,oBAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,oBAAoB;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,OAAO,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AAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE,SAAS,CAAC,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,WAAW;SACpB;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,oBAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,aAAa,EAAE,UAAU;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;
@@ -1,4 +1,4 @@
1
- import { AnimatableProps, BaseProps, textSize } from "../../schema/validators/common.js";
1
+ import { AnimatableProps, BaseProps, CardBase, textSize } from "../../schema/validators/common.js";
2
2
  import { AnalyticsEventSchema } from "../../schema/validators/event.js";
3
3
  import { filteredArray } from "../../schema/validators/utils.js";
4
4
  const PriceDetailedDetailsType = ['marked-list', 'settings'];
@@ -149,6 +149,7 @@ const PriceItem = {
149
149
  additionalProperties: false,
150
150
  required: ['title', 'description'],
151
151
  properties: {
152
+ ...CardBase,
152
153
  ...PriceDetailsProps,
153
154
  ...PriceDescriptionProps,
154
155
  analyticsEvents: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAC,0CAAuC;AACpF,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EAAC,aAAa,EAAC,yCAAsC;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;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BAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;IAClC,UAAU,EAAE;QACR,GAAG,iBAAiB;QACpB,GAAG,qBAAqB;QACxB,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,oBAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAkB;AAClB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,gBAAgB,EAAE;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,eAAe;YAClB,KAAK,EAAE,aAAa,CAAC,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,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,0CAAuC;AAC9F,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EAAC,aAAa,EAAC,yCAAsC;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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;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;
@@ -1,11 +1,12 @@
1
1
  import { ImageProps } from "../../components/Image/schema.js";
2
- import { BaseProps, ThemeProps, authorItem, quoteTypes, withTheme, } from "../../schema/validators/common.js";
2
+ import { BaseProps, ButtonBlock, CardBase, ThemeProps, authorItem, quoteTypes, withTheme, } from "../../schema/validators/common.js";
3
3
  export const Quote = {
4
4
  quote: {
5
5
  additionalProperties: false,
6
6
  required: ['image', 'logo'],
7
7
  properties: {
8
8
  ...BaseProps,
9
+ ...CardBase,
9
10
  text: {
10
11
  type: 'string',
11
12
  contentType: 'text',
@@ -28,6 +29,7 @@ export const Quote = {
28
29
  buttonText: {
29
30
  type: 'string',
30
31
  },
32
+ button: ButtonBlock,
31
33
  theme: ThemeProps,
32
34
  author: authorItem,
33
35
  quoteType: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;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,SAAS,CAAC,UAAU,CAAC;YAC5B,IAAI,EAAE,UAAU;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,UAAU;YACjB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;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,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;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,SAAS,CAAC,UAAU,CAAC;YAC5B,IAAI,EAAE,UAAU;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,WAAW;YACnB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "8.18.0",
3
+ "version": "8.20.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",