@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.
- package/README.md +5 -3
- package/build/cjs/blocks/Banner/schema.d.ts +12 -264
- package/build/cjs/blocks/Banner/schema.js +4 -1
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +2 -2
- package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +1 -2
- package/build/cjs/blocks/FilterBlock/i18n/index.js +4 -3
- package/build/cjs/blocks/Header/schema.js +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +0 -88
- package/build/cjs/blocks/Media/schema.d.ts +0 -176
- package/build/cjs/blocks/Security/i18n/index.d.ts +1 -2
- package/build/cjs/blocks/Security/i18n/index.js +4 -3
- package/build/cjs/blocks/Share/Share.js +4 -4
- package/build/cjs/blocks/Share/i18n/index.d.ts +1 -2
- package/build/cjs/blocks/Share/i18n/index.js +4 -3
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/i18n/index.d.ts +1 -2
- package/build/cjs/blocks/Slider/i18n/index.js +4 -3
- package/build/cjs/components/Button/Button.js +4 -7
- package/build/cjs/components/Button/i18n/index.d.ts +1 -2
- package/build/cjs/components/Button/i18n/index.js +4 -3
- package/build/cjs/components/CardBase/CardBase.d.ts +1 -3
- package/build/cjs/components/CardBase/CardBase.js +1 -4
- package/build/cjs/components/Control/Control.js +2 -2
- package/build/cjs/components/Control/i18n/index.d.ts +1 -2
- package/build/cjs/components/Control/i18n/index.js +4 -3
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +3 -3
- package/build/cjs/components/FullscreenImage/i18n/index.d.ts +1 -2
- package/build/cjs/components/FullscreenImage/i18n/index.js +4 -3
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
- package/build/cjs/components/Link/Link.js +1 -4
- package/build/cjs/components/Map/GoogleMap.js +2 -2
- package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
- package/build/cjs/components/Map/YMap/i18n/index.d.ts +1 -2
- package/build/cjs/components/Map/YMap/i18n/index.js +4 -3
- package/build/cjs/components/Media/DataLens/DataLens.js +2 -2
- package/build/cjs/components/Media/DataLens/i18n/index.d.ts +1 -2
- package/build/cjs/components/Media/DataLens/i18n/index.js +4 -3
- package/build/cjs/components/Media/Iframe/Iframe.js +2 -2
- package/build/cjs/components/Media/Iframe/i18n/index.d.ts +1 -2
- package/build/cjs/components/Media/Iframe/i18n/index.js +4 -3
- package/build/cjs/components/Media/Media.js +1 -3
- package/build/cjs/components/Media/Video/Video.js +2 -3
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
- package/build/cjs/components/OverflowScroller/i18n/index.d.ts +1 -2
- package/build/cjs/components/OverflowScroller/i18n/index.js +4 -3
- package/build/cjs/components/ReactPlayer/CustomBarControls.js +3 -3
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +5 -29
- package/build/cjs/components/ReactPlayer/i18n/index.d.ts +1 -2
- package/build/cjs/components/ReactPlayer/i18n/index.js +4 -3
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
- package/build/cjs/components/UnpublishedLabel/i18n/index.d.ts +1 -2
- package/build/cjs/components/UnpublishedLabel/i18n/index.js +4 -3
- package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
- package/build/cjs/components/VideoBlock/i18n/index.d.ts +1 -2
- package/build/cjs/components/VideoBlock/i18n/index.js +4 -3
- package/build/cjs/components/YandexForm/YandexForm.js +2 -13
- package/build/cjs/containers/Loadable/Loadable.js +2 -2
- package/build/cjs/containers/Loadable/i18n/index.d.ts +1 -2
- package/build/cjs/containers/Loadable/i18n/index.js +4 -3
- package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
- package/build/cjs/containers/PageConstructor/Provider.js +1 -3
- package/build/cjs/context/localeContext/localeContext.d.ts +2 -2
- package/build/cjs/context/localeContext/localeContext.js +2 -2
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +3 -3
- package/build/cjs/editor/components/ControlPanel/i18n/en.json +2 -1
- package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +1 -2
- package/build/cjs/editor/components/ControlPanel/i18n/index.js +4 -3
- package/build/cjs/editor/components/ControlPanel/i18n/ru.json +2 -1
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +4 -3
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +2 -2
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +4 -3
- package/build/cjs/hooks/useAnalytics.d.ts +2 -2
- package/build/cjs/hooks/useMetrika.d.ts +1 -13
- package/build/cjs/hooks/useMetrika.js +0 -41
- package/build/cjs/models/common.d.ts +2 -53
- package/build/cjs/models/common.js +1 -25
- package/build/cjs/models/constructor-items/common.d.ts +2 -28
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -3
- package/build/cjs/models/guards.d.ts +0 -2
- package/build/cjs/models/guards.js +1 -5
- package/build/cjs/schema/constants.d.ts +4 -176
- package/build/cjs/schema/validators/common.d.ts +1 -188
- package/build/cjs/schema/validators/common.js +2 -32
- package/build/cjs/schema/validators/index.d.ts +0 -2
- package/build/cjs/schema/validators/index.js +0 -2
- package/build/cjs/sub-blocks/HubspotForm/index.js +1 -6
- package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -15
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +0 -88
- package/build/cjs/text-transform/common.d.ts +4 -4
- package/build/cjs/text-transform/transformers.d.ts +2 -2
- package/build/cjs/text-transform/utils.d.ts +6 -6
- package/build/cjs/text-transform/utils.js +5 -5
- package/build/cjs/utils/index.d.ts +0 -1
- package/build/cjs/utils/index.js +1 -4
- package/build/esm/blocks/Banner/schema.d.ts +12 -264
- package/build/esm/blocks/Banner/schema.js +5 -2
- package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
- package/build/esm/blocks/FilterBlock/i18n/index.d.ts +1 -2
- package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
- package/build/esm/blocks/Header/schema.js +2 -2
- package/build/esm/blocks/Map/schema.d.ts +0 -88
- package/build/esm/blocks/Media/schema.d.ts +0 -176
- package/build/esm/blocks/Security/i18n/index.d.ts +1 -2
- package/build/esm/blocks/Security/i18n/index.js +3 -3
- package/build/esm/blocks/Share/Share.js +1 -1
- package/build/esm/blocks/Share/i18n/index.d.ts +1 -2
- package/build/esm/blocks/Share/i18n/index.js +3 -3
- package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/Slider/i18n/index.d.ts +1 -2
- package/build/esm/blocks/Slider/i18n/index.js +3 -3
- package/build/esm/components/Button/Button.js +3 -6
- package/build/esm/components/Button/i18n/index.d.ts +1 -2
- package/build/esm/components/Button/i18n/index.js +3 -3
- package/build/esm/components/CardBase/CardBase.d.ts +1 -3
- package/build/esm/components/CardBase/CardBase.js +1 -4
- package/build/esm/components/Control/Control.js +1 -1
- package/build/esm/components/Control/i18n/index.d.ts +1 -2
- package/build/esm/components/Control/i18n/index.js +3 -3
- package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/esm/components/FullscreenImage/i18n/index.d.ts +1 -2
- package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
- package/build/esm/components/Link/Link.js +1 -4
- package/build/esm/components/Map/GoogleMap.js +1 -1
- package/build/esm/components/Map/YMap/YandexMap.js +1 -1
- package/build/esm/components/Map/YMap/i18n/index.d.ts +1 -2
- package/build/esm/components/Map/YMap/i18n/index.js +3 -3
- package/build/esm/components/Media/DataLens/DataLens.js +1 -1
- package/build/esm/components/Media/DataLens/i18n/index.d.ts +1 -2
- package/build/esm/components/Media/DataLens/i18n/index.js +3 -3
- package/build/esm/components/Media/Iframe/Iframe.js +1 -1
- package/build/esm/components/Media/Iframe/i18n/index.d.ts +1 -2
- package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
- package/build/esm/components/Media/Media.js +1 -3
- package/build/esm/components/Media/Video/Video.js +2 -3
- package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/esm/components/OverflowScroller/i18n/index.d.ts +1 -2
- package/build/esm/components/OverflowScroller/i18n/index.js +3 -3
- package/build/esm/components/ReactPlayer/CustomBarControls.js +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.js +4 -28
- package/build/esm/components/ReactPlayer/i18n/index.d.ts +1 -2
- package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
- package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +1 -2
- package/build/esm/components/UnpublishedLabel/i18n/index.js +3 -3
- package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
- package/build/esm/components/VideoBlock/i18n/index.d.ts +1 -2
- package/build/esm/components/VideoBlock/i18n/index.js +3 -3
- package/build/esm/components/YandexForm/YandexForm.js +2 -13
- package/build/esm/containers/Loadable/Loadable.js +1 -1
- package/build/esm/containers/Loadable/i18n/index.d.ts +1 -2
- package/build/esm/containers/Loadable/i18n/index.js +3 -3
- package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
- package/build/esm/containers/PageConstructor/Provider.js +1 -3
- package/build/esm/context/localeContext/localeContext.d.ts +2 -2
- package/build/esm/context/localeContext/localeContext.js +1 -1
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
- package/build/esm/editor/components/ControlPanel/i18n/en.json +2 -1
- package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +1 -2
- package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
- package/build/esm/editor/components/ControlPanel/i18n/ru.json +2 -1
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
- package/build/esm/editor/components/ErrorBoundary/i18n/index.js +3 -3
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +1 -1
- package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
- package/build/esm/editor/components/NotFoundBlock/i18n/index.js +3 -3
- package/build/esm/hooks/useAnalytics.d.ts +2 -2
- package/build/esm/hooks/useMetrika.d.ts +1 -13
- package/build/esm/hooks/useMetrika.js +1 -38
- package/build/esm/models/common.d.ts +2 -53
- package/build/esm/models/common.js +0 -24
- package/build/esm/models/constructor-items/common.d.ts +2 -28
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -3
- package/build/esm/models/guards.d.ts +0 -2
- package/build/esm/models/guards.js +0 -3
- package/build/esm/schema/constants.d.ts +4 -176
- package/build/esm/schema/validators/common.d.ts +1 -188
- package/build/esm/schema/validators/common.js +1 -31
- package/build/esm/schema/validators/index.d.ts +0 -2
- package/build/esm/schema/validators/index.js +0 -2
- package/build/esm/sub-blocks/HubspotForm/index.js +1 -6
- package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -15
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +0 -88
- package/build/esm/text-transform/common.d.ts +4 -4
- package/build/esm/text-transform/transformers.d.ts +2 -2
- package/build/esm/text-transform/utils.d.ts +6 -6
- package/build/esm/text-transform/utils.js +1 -1
- package/build/esm/utils/index.d.ts +0 -1
- package/build/esm/utils/index.js +0 -1
- package/package.json +1 -1
- package/server/models/common.d.ts +2 -53
- package/server/models/common.js +1 -25
- package/server/models/constructor-items/common.d.ts +2 -28
- package/server/models/constructor-items/sub-blocks.d.ts +2 -3
- package/server/models/guards.d.ts +0 -2
- package/server/models/guards.js +1 -5
- package/server/text-transform/common.d.ts +4 -4
- package/server/text-transform/transformers.d.ts +2 -2
- package/server/text-transform/utils.d.ts +6 -6
- package/server/text-transform/utils.js +5 -5
- package/server/utils/index.d.ts +0 -1
- package/server/utils/index.js +1 -4
- package/widget/index.js +1 -1
- package/build/cjs/context/metrikaContext/index.d.ts +0 -1
- package/build/cjs/context/metrikaContext/index.js +0 -4
- package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -13
- package/build/cjs/context/metrikaContext/metrikaContext.js +0 -6
- package/build/cjs/i18n.d.ts +0 -2
- package/build/cjs/i18n.js +0 -12
- package/build/cjs/schema/validators/pixel.d.ts +0 -57
- package/build/cjs/schema/validators/pixel.js +0 -63
- package/build/cjs/utils/configure.d.ts +0 -12
- package/build/cjs/utils/configure.js +0 -26
- package/build/cjs/utils/registerKeyset.d.ts +0 -5
- package/build/cjs/utils/registerKeyset.js +0 -9
- package/build/esm/context/metrikaContext/index.d.ts +0 -1
- package/build/esm/context/metrikaContext/index.js +0 -1
- package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -13
- package/build/esm/context/metrikaContext/metrikaContext.js +0 -2
- package/build/esm/i18n.d.ts +0 -2
- package/build/esm/i18n.js +0 -9
- package/build/esm/schema/validators/pixel.d.ts +0 -57
- package/build/esm/schema/validators/pixel.js +0 -60
- package/build/esm/utils/configure.d.ts +0 -12
- package/build/esm/utils/configure.js +0 -20
- package/build/esm/utils/registerKeyset.d.ts +0 -5
- package/build/esm/utils/registerKeyset.js +0 -5
- package/server/utils/configure.d.ts +0 -12
- package/server/utils/configure.js +0 -26
package/README.md
CHANGED
|
@@ -215,12 +215,14 @@ To add a theme to a block property:
|
|
|
215
215
|
|
|
216
216
|
### i18n
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
The `page-constructor` is a `uikit-based` library, and we use an instance of `i18n` from uikit. To set up internationalization, you just need to use the `configure` from uikit:
|
|
219
219
|
|
|
220
220
|
```typescript
|
|
221
|
-
import {configure
|
|
221
|
+
import {configure} from '@gravity-ui/uikit';
|
|
222
222
|
|
|
223
|
-
configure({
|
|
223
|
+
configure({
|
|
224
|
+
lang: 'ru',
|
|
225
|
+
});
|
|
224
226
|
```
|
|
225
227
|
|
|
226
228
|
### Maps
|
|
@@ -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;
|
|
@@ -13,7 +13,10 @@ exports.BannerCardProps = {
|
|
|
13
13
|
contentType: 'yfm',
|
|
14
14
|
}, image: (0, common_1.withTheme)({
|
|
15
15
|
type: 'string',
|
|
16
|
-
}),
|
|
16
|
+
}), mediaView: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
enum: common_1.mediaView,
|
|
19
|
+
}, disableCompress: {
|
|
17
20
|
type: 'boolean',
|
|
18
21
|
}, color: (0, common_1.withTheme)({
|
|
19
22
|
type: 'string',
|
|
@@ -8,12 +8,12 @@ const ButtonTabs_1 = tslib_1.__importDefault(require("../../components/ButtonTab
|
|
|
8
8
|
const ConstructorItem_1 = require("../../containers/PageConstructor/components/ConstructorItem");
|
|
9
9
|
const grid_1 = require("../../grid");
|
|
10
10
|
const utils_1 = require("../../utils");
|
|
11
|
-
const i18n_1 =
|
|
11
|
+
const i18n_1 = require("./i18n");
|
|
12
12
|
const b = (0, utils_1.block)('filter-block');
|
|
13
13
|
const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items, colSizes, centered, animated, }) => {
|
|
14
14
|
const tabButtons = (0, react_1.useMemo)(() => {
|
|
15
15
|
const allButton = allTag
|
|
16
|
-
? { id: null, title: typeof allTag === 'boolean' ? (0, i18n_1.
|
|
16
|
+
? { id: null, title: typeof allTag === 'boolean' ? (0, i18n_1.i18n)('label-all-tag') : allTag }
|
|
17
17
|
: undefined;
|
|
18
18
|
const otherButtons = tags && tags.map((tag) => ({ id: tag.id, title: tag.label }));
|
|
19
19
|
return [...(allButton ? [allButton] : []), ...(otherButtons ? otherButtons : [])];
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default _default;
|
|
1
|
+
export declare const i18n: (key: "label-all-tag", params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.i18n = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
5
|
+
const i18n_1 = require("@gravity-ui/uikit/i18n");
|
|
6
|
+
const cn_1 = require("../../../utils/cn");
|
|
5
7
|
const en_json_1 = tslib_1.__importDefault(require("./en.json"));
|
|
6
8
|
const ru_json_1 = tslib_1.__importDefault(require("./ru.json"));
|
|
7
|
-
|
|
8
|
-
exports.default = (0, registerKeyset_1.registerKeyset)({ en: en_json_1.default, ru: ru_json_1.default }, COMPONENT);
|
|
9
|
+
exports.i18n = (0, i18n_1.addComponentKeysets)({ en: en_json_1.default, ru: ru_json_1.default }, `${cn_1.NAMESPACE}FilterBlock`);
|
|
@@ -182,94 +182,6 @@ export declare const MapBlock: {
|
|
|
182
182
|
optionName: string;
|
|
183
183
|
})[];
|
|
184
184
|
};
|
|
185
|
-
metrikaGoals: {
|
|
186
|
-
oneOf: ({
|
|
187
|
-
type: string;
|
|
188
|
-
optionName: string;
|
|
189
|
-
items?: undefined;
|
|
190
|
-
} | {
|
|
191
|
-
type: string;
|
|
192
|
-
items: {
|
|
193
|
-
type: string;
|
|
194
|
-
additionalProperties?: undefined;
|
|
195
|
-
required?: undefined;
|
|
196
|
-
properties?: undefined;
|
|
197
|
-
};
|
|
198
|
-
optionName: string;
|
|
199
|
-
} | {
|
|
200
|
-
type: string;
|
|
201
|
-
items: {
|
|
202
|
-
type: string;
|
|
203
|
-
additionalProperties: boolean;
|
|
204
|
-
required: string[];
|
|
205
|
-
properties: {
|
|
206
|
-
name: {
|
|
207
|
-
type: string;
|
|
208
|
-
};
|
|
209
|
-
isCrossSite: {
|
|
210
|
-
type: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
optionName: string;
|
|
215
|
-
})[];
|
|
216
|
-
};
|
|
217
|
-
pixelEvents: {
|
|
218
|
-
type: string;
|
|
219
|
-
items: {
|
|
220
|
-
type: string;
|
|
221
|
-
required: string[];
|
|
222
|
-
additionalProperties: boolean;
|
|
223
|
-
properties: {
|
|
224
|
-
name: {
|
|
225
|
-
type: string;
|
|
226
|
-
enum: import("../..").PixelEventType[];
|
|
227
|
-
};
|
|
228
|
-
data: {};
|
|
229
|
-
};
|
|
230
|
-
select: {
|
|
231
|
-
$data: string;
|
|
232
|
-
};
|
|
233
|
-
selectCases: {
|
|
234
|
-
SubmitApplication: {
|
|
235
|
-
additionalProperties: boolean;
|
|
236
|
-
properties: {
|
|
237
|
-
name: {};
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
Contact: {
|
|
241
|
-
additionalProperties: boolean;
|
|
242
|
-
properties: {
|
|
243
|
-
name: {};
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
Lead: {
|
|
247
|
-
additionalProperties: boolean;
|
|
248
|
-
properties: {
|
|
249
|
-
name: {};
|
|
250
|
-
data: {
|
|
251
|
-
type: string;
|
|
252
|
-
additionalProperties: boolean;
|
|
253
|
-
properties: {
|
|
254
|
-
content_category: {
|
|
255
|
-
type: string;
|
|
256
|
-
};
|
|
257
|
-
content_name: {
|
|
258
|
-
type: string;
|
|
259
|
-
};
|
|
260
|
-
currency: {
|
|
261
|
-
type: string;
|
|
262
|
-
};
|
|
263
|
-
value: {
|
|
264
|
-
type: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
185
|
analyticsEvents: {
|
|
274
186
|
oneOf: ({
|
|
275
187
|
optionName: string;
|
|
@@ -349,94 +349,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
349
349
|
optionName: string;
|
|
350
350
|
})[];
|
|
351
351
|
};
|
|
352
|
-
metrikaGoals: {
|
|
353
|
-
oneOf: ({
|
|
354
|
-
type: string;
|
|
355
|
-
optionName: string;
|
|
356
|
-
items?: undefined;
|
|
357
|
-
} | {
|
|
358
|
-
type: string;
|
|
359
|
-
items: {
|
|
360
|
-
type: string;
|
|
361
|
-
additionalProperties?: undefined;
|
|
362
|
-
required?: undefined;
|
|
363
|
-
properties?: undefined;
|
|
364
|
-
};
|
|
365
|
-
optionName: string;
|
|
366
|
-
} | {
|
|
367
|
-
type: string;
|
|
368
|
-
items: {
|
|
369
|
-
type: string;
|
|
370
|
-
additionalProperties: boolean;
|
|
371
|
-
required: string[];
|
|
372
|
-
properties: {
|
|
373
|
-
name: {
|
|
374
|
-
type: string;
|
|
375
|
-
};
|
|
376
|
-
isCrossSite: {
|
|
377
|
-
type: string;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
optionName: string;
|
|
382
|
-
})[];
|
|
383
|
-
};
|
|
384
|
-
pixelEvents: {
|
|
385
|
-
type: string;
|
|
386
|
-
items: {
|
|
387
|
-
type: string;
|
|
388
|
-
required: string[];
|
|
389
|
-
additionalProperties: boolean;
|
|
390
|
-
properties: {
|
|
391
|
-
name: {
|
|
392
|
-
type: string;
|
|
393
|
-
enum: import("../..").PixelEventType[];
|
|
394
|
-
};
|
|
395
|
-
data: {};
|
|
396
|
-
};
|
|
397
|
-
select: {
|
|
398
|
-
$data: string;
|
|
399
|
-
};
|
|
400
|
-
selectCases: {
|
|
401
|
-
SubmitApplication: {
|
|
402
|
-
additionalProperties: boolean;
|
|
403
|
-
properties: {
|
|
404
|
-
name: {};
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
Contact: {
|
|
408
|
-
additionalProperties: boolean;
|
|
409
|
-
properties: {
|
|
410
|
-
name: {};
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
Lead: {
|
|
414
|
-
additionalProperties: boolean;
|
|
415
|
-
properties: {
|
|
416
|
-
name: {};
|
|
417
|
-
data: {
|
|
418
|
-
type: string;
|
|
419
|
-
additionalProperties: boolean;
|
|
420
|
-
properties: {
|
|
421
|
-
content_category: {
|
|
422
|
-
type: string;
|
|
423
|
-
};
|
|
424
|
-
content_name: {
|
|
425
|
-
type: string;
|
|
426
|
-
};
|
|
427
|
-
currency: {
|
|
428
|
-
type: string;
|
|
429
|
-
};
|
|
430
|
-
value: {
|
|
431
|
-
type: string;
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
352
|
analyticsEvents: {
|
|
441
353
|
oneOf: ({
|
|
442
354
|
optionName: string;
|
|
@@ -1035,94 +947,6 @@ export declare const MediaBlock: {
|
|
|
1035
947
|
optionName: string;
|
|
1036
948
|
})[];
|
|
1037
949
|
};
|
|
1038
|
-
metrikaGoals: {
|
|
1039
|
-
oneOf: ({
|
|
1040
|
-
type: string;
|
|
1041
|
-
optionName: string;
|
|
1042
|
-
items?: undefined;
|
|
1043
|
-
} | {
|
|
1044
|
-
type: string;
|
|
1045
|
-
items: {
|
|
1046
|
-
type: string;
|
|
1047
|
-
additionalProperties?: undefined;
|
|
1048
|
-
required?: undefined;
|
|
1049
|
-
properties?: undefined;
|
|
1050
|
-
};
|
|
1051
|
-
optionName: string;
|
|
1052
|
-
} | {
|
|
1053
|
-
type: string;
|
|
1054
|
-
items: {
|
|
1055
|
-
type: string;
|
|
1056
|
-
additionalProperties: boolean;
|
|
1057
|
-
required: string[];
|
|
1058
|
-
properties: {
|
|
1059
|
-
name: {
|
|
1060
|
-
type: string;
|
|
1061
|
-
};
|
|
1062
|
-
isCrossSite: {
|
|
1063
|
-
type: string;
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
optionName: string;
|
|
1068
|
-
})[];
|
|
1069
|
-
};
|
|
1070
|
-
pixelEvents: {
|
|
1071
|
-
type: string;
|
|
1072
|
-
items: {
|
|
1073
|
-
type: string;
|
|
1074
|
-
required: string[];
|
|
1075
|
-
additionalProperties: boolean;
|
|
1076
|
-
properties: {
|
|
1077
|
-
name: {
|
|
1078
|
-
type: string;
|
|
1079
|
-
enum: import("../..").PixelEventType[];
|
|
1080
|
-
};
|
|
1081
|
-
data: {};
|
|
1082
|
-
};
|
|
1083
|
-
select: {
|
|
1084
|
-
$data: string;
|
|
1085
|
-
};
|
|
1086
|
-
selectCases: {
|
|
1087
|
-
SubmitApplication: {
|
|
1088
|
-
additionalProperties: boolean;
|
|
1089
|
-
properties: {
|
|
1090
|
-
name: {};
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
Contact: {
|
|
1094
|
-
additionalProperties: boolean;
|
|
1095
|
-
properties: {
|
|
1096
|
-
name: {};
|
|
1097
|
-
};
|
|
1098
|
-
};
|
|
1099
|
-
Lead: {
|
|
1100
|
-
additionalProperties: boolean;
|
|
1101
|
-
properties: {
|
|
1102
|
-
name: {};
|
|
1103
|
-
data: {
|
|
1104
|
-
type: string;
|
|
1105
|
-
additionalProperties: boolean;
|
|
1106
|
-
properties: {
|
|
1107
|
-
content_category: {
|
|
1108
|
-
type: string;
|
|
1109
|
-
};
|
|
1110
|
-
content_name: {
|
|
1111
|
-
type: string;
|
|
1112
|
-
};
|
|
1113
|
-
currency: {
|
|
1114
|
-
type: string;
|
|
1115
|
-
};
|
|
1116
|
-
value: {
|
|
1117
|
-
type: string;
|
|
1118
|
-
};
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
};
|
|
1126
950
|
analyticsEvents: {
|
|
1127
951
|
oneOf: ({
|
|
1128
952
|
optionName: string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default _default;
|
|
1
|
+
export declare const i18n: (key: "image-alt", params?: import("@gravity-ui/i18n").Params | undefined) => string;
|