@gravity-ui/page-constructor 4.51.0 → 4.51.2-alpha.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 (233) hide show
  1. package/README.md +5 -3
  2. package/build/cjs/blocks/Banner/schema.d.ts +12 -264
  3. package/build/cjs/blocks/Banner/schema.js +4 -1
  4. package/build/cjs/blocks/FilterBlock/FilterBlock.js +2 -2
  5. package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +1 -2
  6. package/build/cjs/blocks/FilterBlock/i18n/index.js +4 -3
  7. package/build/cjs/blocks/Header/schema.js +1 -1
  8. package/build/cjs/blocks/Map/schema.d.ts +0 -88
  9. package/build/cjs/blocks/Media/schema.d.ts +0 -176
  10. package/build/cjs/blocks/Security/i18n/index.d.ts +1 -2
  11. package/build/cjs/blocks/Security/i18n/index.js +4 -3
  12. package/build/cjs/blocks/Share/Share.js +4 -4
  13. package/build/cjs/blocks/Share/i18n/index.d.ts +1 -2
  14. package/build/cjs/blocks/Share/i18n/index.js +4 -3
  15. package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
  16. package/build/cjs/blocks/Slider/i18n/index.d.ts +1 -2
  17. package/build/cjs/blocks/Slider/i18n/index.js +4 -3
  18. package/build/cjs/components/Button/Button.js +4 -7
  19. package/build/cjs/components/Button/i18n/index.d.ts +1 -2
  20. package/build/cjs/components/Button/i18n/index.js +4 -3
  21. package/build/cjs/components/CardBase/CardBase.d.ts +1 -3
  22. package/build/cjs/components/CardBase/CardBase.js +1 -4
  23. package/build/cjs/components/Control/Control.js +2 -2
  24. package/build/cjs/components/Control/i18n/index.d.ts +1 -2
  25. package/build/cjs/components/Control/i18n/index.js +4 -3
  26. package/build/cjs/components/FullscreenImage/FullscreenImage.js +3 -3
  27. package/build/cjs/components/FullscreenImage/i18n/index.d.ts +1 -2
  28. package/build/cjs/components/FullscreenImage/i18n/index.js +4 -3
  29. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  30. package/build/cjs/components/Link/Link.js +1 -4
  31. package/build/cjs/components/Map/GoogleMap.js +2 -2
  32. package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
  33. package/build/cjs/components/Map/YMap/i18n/index.d.ts +1 -2
  34. package/build/cjs/components/Map/YMap/i18n/index.js +4 -3
  35. package/build/cjs/components/Media/DataLens/DataLens.js +2 -2
  36. package/build/cjs/components/Media/DataLens/i18n/index.d.ts +1 -2
  37. package/build/cjs/components/Media/DataLens/i18n/index.js +4 -3
  38. package/build/cjs/components/Media/Iframe/Iframe.js +2 -2
  39. package/build/cjs/components/Media/Iframe/i18n/index.d.ts +1 -2
  40. package/build/cjs/components/Media/Iframe/i18n/index.js +4 -3
  41. package/build/cjs/components/Media/Media.js +1 -3
  42. package/build/cjs/components/Media/Video/Video.js +2 -3
  43. package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
  44. package/build/cjs/components/OverflowScroller/i18n/index.d.ts +1 -2
  45. package/build/cjs/components/OverflowScroller/i18n/index.js +4 -3
  46. package/build/cjs/components/ReactPlayer/CustomBarControls.js +3 -3
  47. package/build/cjs/components/ReactPlayer/ReactPlayer.js +5 -29
  48. package/build/cjs/components/ReactPlayer/i18n/index.d.ts +1 -2
  49. package/build/cjs/components/ReactPlayer/i18n/index.js +4 -3
  50. package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
  51. package/build/cjs/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  52. package/build/cjs/components/UnpublishedLabel/i18n/index.js +4 -3
  53. package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
  54. package/build/cjs/components/VideoBlock/i18n/index.d.ts +1 -2
  55. package/build/cjs/components/VideoBlock/i18n/index.js +4 -3
  56. package/build/cjs/components/YandexForm/YandexForm.js +2 -13
  57. package/build/cjs/containers/Loadable/Loadable.js +2 -2
  58. package/build/cjs/containers/Loadable/i18n/index.d.ts +1 -2
  59. package/build/cjs/containers/Loadable/i18n/index.js +4 -3
  60. package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
  61. package/build/cjs/containers/PageConstructor/Provider.js +1 -3
  62. package/build/cjs/context/localeContext/localeContext.d.ts +2 -2
  63. package/build/cjs/context/localeContext/localeContext.js +2 -2
  64. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +3 -3
  65. package/build/cjs/editor/components/ControlPanel/i18n/en.json +2 -1
  66. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  67. package/build/cjs/editor/components/ControlPanel/i18n/index.js +4 -3
  68. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +2 -1
  69. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +3 -3
  70. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  71. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +4 -3
  72. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +2 -2
  73. package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  74. package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +4 -3
  75. package/build/cjs/hooks/useAnalytics.d.ts +2 -2
  76. package/build/cjs/hooks/useMetrika.d.ts +1 -13
  77. package/build/cjs/hooks/useMetrika.js +0 -41
  78. package/build/cjs/models/common.d.ts +2 -53
  79. package/build/cjs/models/common.js +1 -25
  80. package/build/cjs/models/constructor-items/common.d.ts +2 -28
  81. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -3
  82. package/build/cjs/models/guards.d.ts +0 -2
  83. package/build/cjs/models/guards.js +1 -5
  84. package/build/cjs/schema/constants.d.ts +4 -176
  85. package/build/cjs/schema/validators/common.d.ts +1 -188
  86. package/build/cjs/schema/validators/common.js +2 -32
  87. package/build/cjs/schema/validators/index.d.ts +0 -2
  88. package/build/cjs/schema/validators/index.js +0 -2
  89. package/build/cjs/sub-blocks/HubspotForm/index.js +1 -6
  90. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -15
  91. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +0 -88
  92. package/build/cjs/text-transform/common.d.ts +4 -4
  93. package/build/cjs/text-transform/transformers.d.ts +2 -2
  94. package/build/cjs/text-transform/utils.d.ts +6 -6
  95. package/build/cjs/text-transform/utils.js +5 -5
  96. package/build/cjs/utils/index.d.ts +0 -1
  97. package/build/cjs/utils/index.js +1 -4
  98. package/build/esm/blocks/Banner/schema.d.ts +12 -264
  99. package/build/esm/blocks/Banner/schema.js +5 -2
  100. package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
  101. package/build/esm/blocks/FilterBlock/i18n/index.d.ts +1 -2
  102. package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
  103. package/build/esm/blocks/Header/schema.js +2 -2
  104. package/build/esm/blocks/Map/schema.d.ts +0 -88
  105. package/build/esm/blocks/Media/schema.d.ts +0 -176
  106. package/build/esm/blocks/Security/i18n/index.d.ts +1 -2
  107. package/build/esm/blocks/Security/i18n/index.js +3 -3
  108. package/build/esm/blocks/Share/Share.js +1 -1
  109. package/build/esm/blocks/Share/i18n/index.d.ts +1 -2
  110. package/build/esm/blocks/Share/i18n/index.js +3 -3
  111. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  112. package/build/esm/blocks/Slider/i18n/index.d.ts +1 -2
  113. package/build/esm/blocks/Slider/i18n/index.js +3 -3
  114. package/build/esm/components/Button/Button.js +3 -6
  115. package/build/esm/components/Button/i18n/index.d.ts +1 -2
  116. package/build/esm/components/Button/i18n/index.js +3 -3
  117. package/build/esm/components/CardBase/CardBase.d.ts +1 -3
  118. package/build/esm/components/CardBase/CardBase.js +1 -4
  119. package/build/esm/components/Control/Control.js +1 -1
  120. package/build/esm/components/Control/i18n/index.d.ts +1 -2
  121. package/build/esm/components/Control/i18n/index.js +3 -3
  122. package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
  123. package/build/esm/components/FullscreenImage/i18n/index.d.ts +1 -2
  124. package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
  125. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  126. package/build/esm/components/Link/Link.js +1 -4
  127. package/build/esm/components/Map/GoogleMap.js +1 -1
  128. package/build/esm/components/Map/YMap/YandexMap.js +1 -1
  129. package/build/esm/components/Map/YMap/i18n/index.d.ts +1 -2
  130. package/build/esm/components/Map/YMap/i18n/index.js +3 -3
  131. package/build/esm/components/Media/DataLens/DataLens.js +1 -1
  132. package/build/esm/components/Media/DataLens/i18n/index.d.ts +1 -2
  133. package/build/esm/components/Media/DataLens/i18n/index.js +3 -3
  134. package/build/esm/components/Media/Iframe/Iframe.js +1 -1
  135. package/build/esm/components/Media/Iframe/i18n/index.d.ts +1 -2
  136. package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
  137. package/build/esm/components/Media/Media.js +1 -3
  138. package/build/esm/components/Media/Video/Video.js +2 -3
  139. package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
  140. package/build/esm/components/OverflowScroller/i18n/index.d.ts +1 -2
  141. package/build/esm/components/OverflowScroller/i18n/index.js +3 -3
  142. package/build/esm/components/ReactPlayer/CustomBarControls.js +1 -1
  143. package/build/esm/components/ReactPlayer/ReactPlayer.js +4 -28
  144. package/build/esm/components/ReactPlayer/i18n/index.d.ts +1 -2
  145. package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
  146. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
  147. package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  148. package/build/esm/components/UnpublishedLabel/i18n/index.js +3 -3
  149. package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
  150. package/build/esm/components/VideoBlock/i18n/index.d.ts +1 -2
  151. package/build/esm/components/VideoBlock/i18n/index.js +3 -3
  152. package/build/esm/components/YandexForm/YandexForm.js +2 -13
  153. package/build/esm/containers/Loadable/Loadable.js +1 -1
  154. package/build/esm/containers/Loadable/i18n/index.d.ts +1 -2
  155. package/build/esm/containers/Loadable/i18n/index.js +3 -3
  156. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  157. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  158. package/build/esm/context/localeContext/localeContext.d.ts +2 -2
  159. package/build/esm/context/localeContext/localeContext.js +1 -1
  160. package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
  161. package/build/esm/editor/components/ControlPanel/i18n/en.json +2 -1
  162. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  163. package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
  164. package/build/esm/editor/components/ControlPanel/i18n/ru.json +2 -1
  165. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
  166. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  167. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +3 -3
  168. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +1 -1
  169. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  170. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +3 -3
  171. package/build/esm/hooks/useAnalytics.d.ts +2 -2
  172. package/build/esm/hooks/useMetrika.d.ts +1 -13
  173. package/build/esm/hooks/useMetrika.js +1 -38
  174. package/build/esm/models/common.d.ts +2 -53
  175. package/build/esm/models/common.js +0 -24
  176. package/build/esm/models/constructor-items/common.d.ts +2 -28
  177. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -3
  178. package/build/esm/models/guards.d.ts +0 -2
  179. package/build/esm/models/guards.js +0 -3
  180. package/build/esm/schema/constants.d.ts +4 -176
  181. package/build/esm/schema/validators/common.d.ts +1 -188
  182. package/build/esm/schema/validators/common.js +1 -31
  183. package/build/esm/schema/validators/index.d.ts +0 -2
  184. package/build/esm/schema/validators/index.js +0 -2
  185. package/build/esm/sub-blocks/HubspotForm/index.js +1 -6
  186. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -15
  187. package/build/esm/sub-blocks/PriceCard/schema.d.ts +0 -88
  188. package/build/esm/text-transform/common.d.ts +4 -4
  189. package/build/esm/text-transform/transformers.d.ts +2 -2
  190. package/build/esm/text-transform/utils.d.ts +6 -6
  191. package/build/esm/text-transform/utils.js +1 -1
  192. package/build/esm/utils/index.d.ts +0 -1
  193. package/build/esm/utils/index.js +0 -1
  194. package/package.json +1 -1
  195. package/server/models/common.d.ts +2 -53
  196. package/server/models/common.js +1 -25
  197. package/server/models/constructor-items/common.d.ts +2 -28
  198. package/server/models/constructor-items/sub-blocks.d.ts +2 -3
  199. package/server/models/guards.d.ts +0 -2
  200. package/server/models/guards.js +1 -5
  201. package/server/text-transform/common.d.ts +4 -4
  202. package/server/text-transform/transformers.d.ts +2 -2
  203. package/server/text-transform/utils.d.ts +6 -6
  204. package/server/text-transform/utils.js +5 -5
  205. package/server/utils/index.d.ts +0 -1
  206. package/server/utils/index.js +1 -4
  207. package/widget/index.js +1 -1
  208. package/build/cjs/context/metrikaContext/index.d.ts +0 -1
  209. package/build/cjs/context/metrikaContext/index.js +0 -4
  210. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -13
  211. package/build/cjs/context/metrikaContext/metrikaContext.js +0 -6
  212. package/build/cjs/i18n.d.ts +0 -2
  213. package/build/cjs/i18n.js +0 -12
  214. package/build/cjs/schema/validators/pixel.d.ts +0 -57
  215. package/build/cjs/schema/validators/pixel.js +0 -63
  216. package/build/cjs/utils/configure.d.ts +0 -12
  217. package/build/cjs/utils/configure.js +0 -26
  218. package/build/cjs/utils/registerKeyset.d.ts +0 -5
  219. package/build/cjs/utils/registerKeyset.js +0 -9
  220. package/build/esm/context/metrikaContext/index.d.ts +0 -1
  221. package/build/esm/context/metrikaContext/index.js +0 -1
  222. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -13
  223. package/build/esm/context/metrikaContext/metrikaContext.js +0 -2
  224. package/build/esm/i18n.d.ts +0 -2
  225. package/build/esm/i18n.js +0 -9
  226. package/build/esm/schema/validators/pixel.d.ts +0 -57
  227. package/build/esm/schema/validators/pixel.js +0 -60
  228. package/build/esm/utils/configure.d.ts +0 -12
  229. package/build/esm/utils/configure.js +0 -20
  230. package/build/esm/utils/registerKeyset.d.ts +0 -5
  231. package/build/esm/utils/registerKeyset.js +0 -5
  232. package/server/utils/configure.d.ts +0 -12
  233. package/server/utils/configure.js +0 -26
@@ -8,22 +8,8 @@ export declare const getLayoutItemLinks: (links: LayoutItemProps['content']['lin
8
8
  colorTheme?: import("../../models").TextTheme | undefined;
9
9
  arrow?: boolean | undefined;
10
10
  target?: string | undefined;
11
- metrikaGoals?: import("../../models").MetrikaGoal | undefined;
12
- pixelEvents?: import("../../models").ButtonPixel | undefined;
13
11
  extraProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
14
- analyticsEvents?: {
15
- name: string;
16
- type?: string | undefined;
17
- counters?: import("../../models").AnalyticsCounters | undefined;
18
- context?: string | undefined;
19
- target?: string | undefined;
20
- } | {
21
- name: string;
22
- type?: string | undefined;
23
- counters?: import("../../models").AnalyticsCounters | undefined;
24
- context?: string | undefined;
25
- target?: string | undefined;
26
- }[] | undefined;
12
+ analyticsEvents?: import("../../models").AnalyticsEventsProp | undefined;
27
13
  className?: string | undefined;
28
14
  tabIndex?: number | undefined;
29
15
  }[] | undefined;
@@ -76,94 +76,6 @@ export declare const PriceCardBlock: {
76
76
  optionName: string;
77
77
  })[];
78
78
  };
79
- metrikaGoals: {
80
- oneOf: ({
81
- type: string;
82
- optionName: string;
83
- items?: undefined;
84
- } | {
85
- type: string;
86
- items: {
87
- type: string;
88
- additionalProperties?: undefined;
89
- required?: undefined;
90
- properties?: undefined;
91
- };
92
- optionName: string;
93
- } | {
94
- type: string;
95
- items: {
96
- type: string;
97
- additionalProperties: boolean;
98
- required: string[];
99
- properties: {
100
- name: {
101
- type: string;
102
- };
103
- isCrossSite: {
104
- type: string;
105
- };
106
- };
107
- };
108
- optionName: string;
109
- })[];
110
- };
111
- pixelEvents: {
112
- type: string;
113
- items: {
114
- type: string;
115
- required: string[];
116
- additionalProperties: boolean;
117
- properties: {
118
- name: {
119
- type: string;
120
- enum: import("../..").PixelEventType[];
121
- };
122
- data: {};
123
- };
124
- select: {
125
- $data: string;
126
- };
127
- selectCases: {
128
- SubmitApplication: {
129
- additionalProperties: boolean;
130
- properties: {
131
- name: {};
132
- };
133
- };
134
- Contact: {
135
- additionalProperties: boolean;
136
- properties: {
137
- name: {};
138
- };
139
- };
140
- Lead: {
141
- additionalProperties: boolean;
142
- properties: {
143
- name: {};
144
- data: {
145
- type: string;
146
- additionalProperties: boolean;
147
- properties: {
148
- content_category: {
149
- type: string;
150
- };
151
- content_name: {
152
- type: string;
153
- };
154
- currency: {
155
- type: string;
156
- };
157
- value: {
158
- type: string;
159
- };
160
- };
161
- };
162
- };
163
- };
164
- };
165
- };
166
- };
167
79
  analyticsEvents: {
168
80
  oneOf: ({
169
81
  optionName: string;
@@ -1,18 +1,18 @@
1
1
  import { MarkdownItPluginCb } from '@doc-tools/transform/lib/plugins/typings';
2
- import { Lang } from '../utils/configure';
2
+ import { Lang } from '@gravity-ui/uikit';
3
3
  export type ComplexItem = {
4
4
  [key: string]: string;
5
5
  };
6
6
  export type Item = string | null | ComplexItem;
7
7
  export type Transformer = (text: string) => string;
8
- export type TransformerRaw = (lang: Lang, content: string, options: {
8
+ export type TransformerRaw = (lang: `${Lang}`, content: string, options: {
9
9
  plugins: MarkdownItPluginCb[];
10
10
  }) => string;
11
11
  export type Parser<T = any> = (transformer: Transformer, block: T) => T;
12
12
  export declare const createItemsParser: (fields: string[]) => (transformer: Transformer, items: Item[]) => (string | {
13
13
  [x: string]: string;
14
14
  } | null)[];
15
- export declare function yfmTransformer(lang: Lang, content: string, options?: {
15
+ export declare function yfmTransformer(lang: `${Lang}`, content: string, options?: {
16
16
  plugins?: MarkdownItPluginCb[];
17
17
  }): string;
18
- export declare function typografTransformer(lang: Lang, content: string): string;
18
+ export declare function typografTransformer(lang: `${Lang}`, content: string): string;
@@ -1,13 +1,13 @@
1
1
  import { MarkdownItPluginCb } from '@doc-tools/transform/lib/plugins/typings';
2
+ import { Lang } from '@gravity-ui/uikit';
2
3
  import { ConstructorBlock } from '../models/constructor';
3
- import { Lang } from '../utils/configure';
4
4
  export type ContentVariables = Record<string, string>;
5
5
  export type ContentTransformerProps = {
6
6
  content: {
7
7
  blocks?: ConstructorBlock[];
8
8
  };
9
9
  options: {
10
- lang: Lang;
10
+ lang: `${Lang}`;
11
11
  customConfig?: {};
12
12
  vars?: ContentVariables;
13
13
  plugins?: MarkdownItPluginCb[];
@@ -1,13 +1,13 @@
1
1
  import { Options, Output } from '@doc-tools/transform';
2
+ import { Lang } from '@gravity-ui/uikit';
2
3
  import sanitize from 'sanitize-html';
3
- import { Lang } from '../utils/configure';
4
4
  import AddRuleOptions = typograf.AddRuleOptions;
5
5
  export declare enum TransformType {
6
6
  Text = "text",
7
7
  Html = "html"
8
8
  }
9
9
  interface TransformOptions extends Options {
10
- lang: Lang;
10
+ lang: `${Lang}`;
11
11
  }
12
12
  export declare const DEFAULT_ALLOWED_TAGS: string[];
13
13
  export declare const typografConfig: {
@@ -16,16 +16,16 @@ export declare const typografConfig: {
16
16
  };
17
17
  export declare const sanitizeStripOptions: sanitize.IOptions;
18
18
  export declare function addTypografRules(options: AddRuleOptions[]): void;
19
- export declare function typograf(text: string, lang?: Lang): string;
19
+ export declare function typograf(text: string, lang?: `${Lang}`): string;
20
20
  export declare function sanitizeHtml(html: string, options?: sanitize.IOptions): string;
21
- export declare function typografToHTML(text: string, lang: Lang, allowedTags?: string[]): string;
22
- export declare function typografToText(text: string, lang: Lang): string;
21
+ export declare function typografToHTML(text: string, lang: `${Lang}`, allowedTags?: string[]): string;
22
+ export declare function typografToText(text: string, lang: `${Lang}`): string;
23
23
  export declare const transformMarkdown: (input: string, options: TransformOptions) => Output['result'];
24
24
  export declare function fullTransform(input: string, { lang, ...options }: TransformOptions): Output['result'];
25
25
  export interface TypografEntityParams {
26
26
  entity: Record<string, string>;
27
27
  fields: string[];
28
- lang: Lang;
28
+ lang: `${Lang}`;
29
29
  transformType: TransformType;
30
30
  }
31
31
  export declare function typografEntity({ entity, fields, lang, transformType, }: TypografEntityParams): Record<string, string>;
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.typografEntity = exports.fullTransform = exports.transformMarkdown = exports.typografToText = exports.typografToHTML = exports.sanitizeHtml = exports.typograf = exports.addTypografRules = exports.sanitizeStripOptions = exports.typografConfig = exports.DEFAULT_ALLOWED_TAGS = exports.TransformType = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const transform_1 = tslib_1.__importDefault(require("@doc-tools/transform"));
6
+ const uikit_1 = require("@gravity-ui/uikit");
6
7
  const sanitize_html_1 = tslib_1.__importDefault(require("sanitize-html"));
7
8
  const typograf_1 = tslib_1.__importDefault(require("typograf"));
8
- const configure_1 = require("../utils/configure");
9
9
  var TransformType;
10
10
  (function (TransformType) {
11
11
  TransformType["Text"] = "text";
@@ -48,10 +48,10 @@ function enableRules(tp) {
48
48
  enabled.forEach((rule) => tp.enableRule(rule));
49
49
  disabled.forEach((rule) => tp.disableRule(rule));
50
50
  }
51
- function typograf(text, lang = configure_1.Lang.Ru) {
51
+ function typograf(text, lang = uikit_1.Lang.Ru) {
52
52
  const localeByLang = {
53
- [configure_1.Lang.Ru]: ['ru', 'en-US'],
54
- [configure_1.Lang.En]: ['en-US', 'ru'],
53
+ [uikit_1.Lang.Ru]: ['ru', 'en-US'],
54
+ [uikit_1.Lang.En]: ['en-US', 'ru'],
55
55
  };
56
56
  const tp = new typograf_1.default({
57
57
  locale: localeByLang[lang],
@@ -85,7 +85,7 @@ function fullTransform(input, _a) {
85
85
  return Object.assign(Object.assign({}, result), { html: typograf(html, lang), title: title && typograf(title, lang) });
86
86
  }
87
87
  exports.fullTransform = fullTransform;
88
- function typografEntity({ entity, fields, lang = configure_1.Lang.Ru, transformType = TransformType.Text, }) {
88
+ function typografEntity({ entity, fields, lang = uikit_1.Lang.Ru, transformType = TransformType.Text, }) {
89
89
  const transformTypeMap = {
90
90
  text: typografToText,
91
91
  html: typografToHTML,
@@ -5,6 +5,5 @@ export * from './url';
5
5
  export * from './cn';
6
6
  export * from './url';
7
7
  export * from './theme';
8
- export { Lang, configure } from './configure';
9
8
  export type { HubspotEventData, HubspotEventHandlers, HubspotEventName } from './hubspot';
10
9
  export { isHubspotEventData } from './hubspot';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isHubspotEventData = exports.configure = exports.Lang = void 0;
3
+ exports.isHubspotEventData = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./common"), exports);
6
6
  tslib_1.__exportStar(require("./analytics"), exports);
@@ -9,8 +9,5 @@ tslib_1.__exportStar(require("./url"), exports);
9
9
  tslib_1.__exportStar(require("./cn"), exports);
10
10
  tslib_1.__exportStar(require("./url"), exports);
11
11
  tslib_1.__exportStar(require("./theme"), exports);
12
- var configure_1 = require("./configure");
13
- Object.defineProperty(exports, "Lang", { enumerable: true, get: function () { return configure_1.Lang; } });
14
- Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return configure_1.configure; } });
15
12
  var hubspot_1 = require("./hubspot");
16
13
  Object.defineProperty(exports, "isHubspotEventData", { enumerable: true, get: function () { return hubspot_1.isHubspotEventData; } });
@@ -23,6 +23,10 @@ export declare const BannerCardProps: {
23
23
  optionName: string;
24
24
  })[];
25
25
  };
26
+ mediaView: {
27
+ type: string;
28
+ enum: string[];
29
+ };
26
30
  disableCompress: {
27
31
  type: string;
28
32
  };
@@ -99,94 +103,6 @@ export declare const BannerCardProps: {
99
103
  optionName: string;
100
104
  })[];
101
105
  };
102
- metrikaGoals: {
103
- oneOf: ({
104
- type: string;
105
- optionName: string;
106
- items?: undefined;
107
- } | {
108
- type: string;
109
- items: {
110
- type: string;
111
- additionalProperties?: undefined;
112
- required?: undefined;
113
- properties?: undefined;
114
- };
115
- optionName: string;
116
- } | {
117
- type: string;
118
- items: {
119
- type: string;
120
- additionalProperties: boolean;
121
- required: string[];
122
- properties: {
123
- name: {
124
- type: string;
125
- };
126
- isCrossSite: {
127
- type: string;
128
- };
129
- };
130
- };
131
- optionName: string;
132
- })[];
133
- };
134
- pixelEvents: {
135
- type: string;
136
- items: {
137
- type: string;
138
- required: string[];
139
- additionalProperties: boolean;
140
- properties: {
141
- name: {
142
- type: string;
143
- enum: import("../..").PixelEventType[];
144
- };
145
- data: {};
146
- };
147
- select: {
148
- $data: string;
149
- };
150
- selectCases: {
151
- SubmitApplication: {
152
- additionalProperties: boolean;
153
- properties: {
154
- name: {};
155
- };
156
- };
157
- Contact: {
158
- additionalProperties: boolean;
159
- properties: {
160
- name: {};
161
- };
162
- };
163
- Lead: {
164
- additionalProperties: boolean;
165
- properties: {
166
- name: {};
167
- data: {
168
- type: string;
169
- additionalProperties: boolean;
170
- properties: {
171
- content_category: {
172
- type: string;
173
- };
174
- content_name: {
175
- type: string;
176
- };
177
- currency: {
178
- type: string;
179
- };
180
- value: {
181
- type: string;
182
- };
183
- };
184
- };
185
- };
186
- };
187
- };
188
- };
189
- };
190
106
  analyticsEvents: {
191
107
  oneOf: ({
192
108
  optionName: string;
@@ -326,6 +242,10 @@ export declare const BannerBlock: {
326
242
  optionName: string;
327
243
  })[];
328
244
  };
245
+ mediaView: {
246
+ type: string;
247
+ enum: string[];
248
+ };
329
249
  disableCompress: {
330
250
  type: string;
331
251
  };
@@ -402,94 +322,6 @@ export declare const BannerBlock: {
402
322
  optionName: string;
403
323
  })[];
404
324
  };
405
- metrikaGoals: {
406
- oneOf: ({
407
- type: string;
408
- optionName: string;
409
- items?: undefined;
410
- } | {
411
- type: string;
412
- items: {
413
- type: string;
414
- additionalProperties?: undefined;
415
- required?: undefined;
416
- properties?: undefined;
417
- };
418
- optionName: string;
419
- } | {
420
- type: string;
421
- items: {
422
- type: string;
423
- additionalProperties: boolean;
424
- required: string[];
425
- properties: {
426
- name: {
427
- type: string;
428
- };
429
- isCrossSite: {
430
- type: string;
431
- };
432
- };
433
- };
434
- optionName: string;
435
- })[];
436
- };
437
- pixelEvents: {
438
- type: string;
439
- items: {
440
- type: string;
441
- required: string[];
442
- additionalProperties: boolean;
443
- properties: {
444
- name: {
445
- type: string;
446
- enum: import("../..").PixelEventType[];
447
- };
448
- data: {};
449
- };
450
- select: {
451
- $data: string;
452
- };
453
- selectCases: {
454
- SubmitApplication: {
455
- additionalProperties: boolean;
456
- properties: {
457
- name: {};
458
- };
459
- };
460
- Contact: {
461
- additionalProperties: boolean;
462
- properties: {
463
- name: {};
464
- };
465
- };
466
- Lead: {
467
- additionalProperties: boolean;
468
- properties: {
469
- name: {};
470
- data: {
471
- type: string;
472
- additionalProperties: boolean;
473
- properties: {
474
- content_category: {
475
- type: string;
476
- };
477
- content_name: {
478
- type: string;
479
- };
480
- currency: {
481
- type: string;
482
- };
483
- value: {
484
- type: string;
485
- };
486
- };
487
- };
488
- };
489
- };
490
- };
491
- };
492
- };
493
325
  analyticsEvents: {
494
326
  oneOf: ({
495
327
  optionName: string;
@@ -630,6 +462,10 @@ export declare const BannerCard: {
630
462
  optionName: string;
631
463
  })[];
632
464
  };
465
+ mediaView: {
466
+ type: string;
467
+ enum: string[];
468
+ };
633
469
  disableCompress: {
634
470
  type: string;
635
471
  };
@@ -706,94 +542,6 @@ export declare const BannerCard: {
706
542
  optionName: string;
707
543
  })[];
708
544
  };
709
- metrikaGoals: {
710
- oneOf: ({
711
- type: string;
712
- optionName: string;
713
- items?: undefined;
714
- } | {
715
- type: string;
716
- items: {
717
- type: string;
718
- additionalProperties?: undefined;
719
- required?: undefined;
720
- properties?: undefined;
721
- };
722
- optionName: string;
723
- } | {
724
- type: string;
725
- items: {
726
- type: string;
727
- additionalProperties: boolean;
728
- required: string[];
729
- properties: {
730
- name: {
731
- type: string;
732
- };
733
- isCrossSite: {
734
- type: string;
735
- };
736
- };
737
- };
738
- optionName: string;
739
- })[];
740
- };
741
- pixelEvents: {
742
- type: string;
743
- items: {
744
- type: string;
745
- required: string[];
746
- additionalProperties: boolean;
747
- properties: {
748
- name: {
749
- type: string;
750
- enum: import("../..").PixelEventType[];
751
- };
752
- data: {};
753
- };
754
- select: {
755
- $data: string;
756
- };
757
- selectCases: {
758
- SubmitApplication: {
759
- additionalProperties: boolean;
760
- properties: {
761
- name: {};
762
- };
763
- };
764
- Contact: {
765
- additionalProperties: boolean;
766
- properties: {
767
- name: {};
768
- };
769
- };
770
- Lead: {
771
- additionalProperties: boolean;
772
- properties: {
773
- name: {};
774
- data: {
775
- type: string;
776
- additionalProperties: boolean;
777
- properties: {
778
- content_category: {
779
- type: string;
780
- };
781
- content_name: {
782
- type: string;
783
- };
784
- currency: {
785
- type: string;
786
- };
787
- value: {
788
- type: string;
789
- };
790
- };
791
- };
792
- };
793
- };
794
- };
795
- };
796
- };
797
545
  analyticsEvents: {
798
546
  oneOf: ({
799
547
  optionName: string;
@@ -1,4 +1,4 @@
1
- import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, withTheme, } from '../../schema/validators/common';
1
+ import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, mediaView, withTheme, } from '../../schema/validators/common';
2
2
  export const BannerCardProps = {
3
3
  additionalProperties: false,
4
4
  required: ['title', 'button'],
@@ -10,7 +10,10 @@ export const BannerCardProps = {
10
10
  contentType: 'yfm',
11
11
  }, image: withTheme({
12
12
  type: 'string',
13
- }), disableCompress: {
13
+ }), mediaView: {
14
+ type: 'string',
15
+ enum: mediaView,
16
+ }, disableCompress: {
14
17
  type: 'boolean',
15
18
  }, color: withTheme({
16
19
  type: 'string',
@@ -5,7 +5,7 @@ import ButtonTabs from '../../components/ButtonTabs/ButtonTabs';
5
5
  import { ConstructorItem } from '../../containers/PageConstructor/components/ConstructorItem';
6
6
  import { Col, Row } from '../../grid';
7
7
  import { block, getBlockKey } from '../../utils';
8
- import i18n from './i18n';
8
+ import { i18n } from './i18n';
9
9
  import './FilterBlock.css';
10
10
  const b = block('filter-block');
11
11
  const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items, colSizes, centered, animated, }) => {
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "label-all-tag", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'FilterBlock';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}FilterBlock`);
@@ -1,5 +1,5 @@
1
1
  import { ImageProps } from '../../components/Image/schema';
2
- import { BlockBaseProps, ButtonBlock, MediaProps, VideoProps, withTheme, } from '../../schema/validators/common';
2
+ import { BlockBaseProps, ButtonBlock, MediaProps, VideoProps, mediaView, withTheme, } from '../../schema/validators/common';
3
3
  import { filteredArray } from '../../schema/validators/utils';
4
4
  export const HeaderBackgroundProps = {
5
5
  type: 'object',
@@ -34,7 +34,7 @@ export const HeaderProperties = {
34
34
  video: withTheme(VideoProps),
35
35
  mediaView: {
36
36
  type: 'string',
37
- enum: ['fit', 'full'],
37
+ enum: mediaView,
38
38
  },
39
39
  backLink: {
40
40
  type: 'object',