@gravity-ui/page-constructor 4.51.2-alpha.0 → 4.53.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 +3 -5
- package/build/cjs/blocks/Banner/schema.d.ts +264 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +2 -2
- package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +2 -1
- package/build/cjs/blocks/FilterBlock/i18n/index.js +3 -4
- package/build/cjs/blocks/Map/schema.d.ts +88 -0
- package/build/cjs/blocks/Media/schema.d.ts +176 -0
- package/build/cjs/blocks/Security/i18n/index.d.ts +2 -1
- package/build/cjs/blocks/Security/i18n/index.js +3 -4
- package/build/cjs/blocks/Share/Share.js +4 -4
- package/build/cjs/blocks/Share/i18n/index.d.ts +2 -1
- package/build/cjs/blocks/Share/i18n/index.js +3 -4
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/i18n/index.d.ts +2 -1
- package/build/cjs/blocks/Slider/i18n/index.js +3 -4
- package/build/cjs/components/Button/Button.js +7 -4
- package/build/cjs/components/Button/i18n/index.d.ts +2 -1
- package/build/cjs/components/Button/i18n/index.js +3 -4
- package/build/cjs/components/CardBase/CardBase.d.ts +3 -1
- package/build/cjs/components/CardBase/CardBase.js +4 -1
- package/build/cjs/components/Control/Control.js +2 -2
- package/build/cjs/components/Control/i18n/index.d.ts +2 -1
- package/build/cjs/components/Control/i18n/index.js +3 -4
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +3 -3
- package/build/cjs/components/FullscreenImage/i18n/index.d.ts +2 -1
- package/build/cjs/components/FullscreenImage/i18n/index.js +3 -4
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +6 -3
- package/build/cjs/components/Link/Link.js +4 -1
- 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 +2 -1
- package/build/cjs/components/Map/YMap/i18n/index.js +3 -4
- package/build/cjs/components/Media/DataLens/DataLens.js +2 -2
- package/build/cjs/components/Media/DataLens/i18n/index.d.ts +2 -1
- package/build/cjs/components/Media/DataLens/i18n/index.js +3 -4
- package/build/cjs/components/Media/Iframe/Iframe.js +2 -2
- package/build/cjs/components/Media/Iframe/i18n/index.d.ts +2 -1
- package/build/cjs/components/Media/Iframe/i18n/index.js +3 -4
- package/build/cjs/components/Media/Media.js +3 -1
- package/build/cjs/components/Media/Video/Video.js +3 -2
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
- package/build/cjs/components/OverflowScroller/i18n/index.d.ts +2 -1
- package/build/cjs/components/OverflowScroller/i18n/index.js +3 -4
- package/build/cjs/components/ReactPlayer/CustomBarControls.js +3 -3
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +38 -6
- package/build/cjs/components/ReactPlayer/i18n/index.d.ts +2 -1
- package/build/cjs/components/ReactPlayer/i18n/index.js +3 -4
- package/build/cjs/components/ReactPlayer/utils/youtube.d.ts +2 -0
- package/build/cjs/components/ReactPlayer/utils/youtube.js +7 -0
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
- package/build/cjs/components/UnpublishedLabel/i18n/index.d.ts +2 -1
- package/build/cjs/components/UnpublishedLabel/i18n/index.js +3 -4
- package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
- package/build/cjs/components/VideoBlock/i18n/index.d.ts +2 -1
- package/build/cjs/components/VideoBlock/i18n/index.js +3 -4
- package/build/cjs/components/YandexForm/YandexForm.js +13 -2
- package/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/containers/Loadable/Loadable.js +2 -2
- package/build/cjs/containers/Loadable/i18n/index.d.ts +2 -1
- package/build/cjs/containers/Loadable/i18n/index.js +3 -4
- package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -0
- package/build/cjs/containers/PageConstructor/Provider.js +3 -1
- package/build/cjs/context/localeContext/localeContext.d.ts +2 -2
- package/build/cjs/context/localeContext/localeContext.js +2 -2
- package/build/cjs/context/metrikaContext/index.d.ts +1 -0
- package/build/cjs/context/metrikaContext/index.js +4 -0
- package/build/cjs/context/metrikaContext/metrikaContext.d.ts +13 -0
- package/build/cjs/context/metrikaContext/metrikaContext.js +6 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +3 -3
- package/build/cjs/editor/components/ControlPanel/i18n/en.json +1 -2
- package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +2 -1
- package/build/cjs/editor/components/ControlPanel/i18n/index.js +3 -4
- package/build/cjs/editor/components/ControlPanel/i18n/ru.json +1 -2
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +2 -1
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +3 -4
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +2 -2
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +2 -1
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +3 -4
- package/build/cjs/hooks/useAnalytics.d.ts +2 -2
- package/build/cjs/hooks/useMetrika.d.ts +13 -1
- package/build/cjs/hooks/useMetrika.js +41 -0
- package/build/cjs/i18n.d.ts +2 -0
- package/build/cjs/i18n.js +12 -0
- package/build/cjs/models/common.d.ts +53 -2
- package/build/cjs/models/common.js +25 -1
- package/build/cjs/models/constructor-items/common.d.ts +29 -2
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +20 -4
- package/build/cjs/models/constructor-items/sub-blocks.js +7 -1
- package/build/cjs/models/guards.d.ts +2 -0
- package/build/cjs/models/guards.js +5 -1
- package/build/cjs/schema/constants.d.ts +252 -0
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/validators/common.d.ts +188 -0
- package/build/cjs/schema/validators/common.js +31 -0
- package/build/cjs/schema/validators/index.d.ts +2 -0
- package/build/cjs/schema/validators/index.js +2 -0
- package/build/cjs/schema/validators/pixel.d.ts +57 -0
- package/build/cjs/schema/validators/pixel.js +63 -0
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/build/cjs/sub-blocks/HubspotForm/index.js +6 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.css +59 -0
- package/build/cjs/sub-blocks/ImageCard/ImageCard.d.ts +3 -0
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js +21 -0
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +78 -0
- package/build/cjs/sub-blocks/ImageCard/schema.js +24 -0
- package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +15 -1
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +88 -0
- package/build/cjs/sub-blocks/index.d.ts +1 -0
- package/build/cjs/sub-blocks/index.js +3 -1
- 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/configure.d.ts +12 -0
- package/build/cjs/utils/configure.js +26 -0
- package/build/cjs/utils/index.d.ts +1 -0
- package/build/cjs/utils/index.js +4 -1
- package/build/cjs/utils/registerKeyset.d.ts +5 -0
- package/build/cjs/utils/registerKeyset.js +9 -0
- package/build/esm/blocks/Banner/schema.d.ts +264 -0
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
- package/build/esm/blocks/FilterBlock/i18n/index.d.ts +2 -1
- package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
- package/build/esm/blocks/Map/schema.d.ts +88 -0
- package/build/esm/blocks/Media/schema.d.ts +176 -0
- package/build/esm/blocks/Security/i18n/index.d.ts +2 -1
- 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 +2 -1
- 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 +2 -1
- package/build/esm/blocks/Slider/i18n/index.js +3 -3
- package/build/esm/components/Button/Button.js +6 -3
- package/build/esm/components/Button/i18n/index.d.ts +2 -1
- package/build/esm/components/Button/i18n/index.js +3 -3
- package/build/esm/components/CardBase/CardBase.d.ts +3 -1
- package/build/esm/components/CardBase/CardBase.js +4 -1
- package/build/esm/components/Control/Control.js +1 -1
- package/build/esm/components/Control/i18n/index.d.ts +2 -1
- 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 +2 -1
- package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +6 -3
- package/build/esm/components/Link/Link.js +4 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
- package/build/esm/components/Media/Media.js +3 -1
- package/build/esm/components/Media/Video/Video.js +3 -2
- package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/esm/components/OverflowScroller/i18n/index.d.ts +2 -1
- 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 +37 -5
- package/build/esm/components/ReactPlayer/i18n/index.d.ts +2 -1
- package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
- package/build/esm/components/ReactPlayer/utils/youtube.d.ts +2 -0
- package/build/esm/components/ReactPlayer/utils/youtube.js +3 -0
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
- package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +2 -1
- 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 +2 -1
- package/build/esm/components/VideoBlock/i18n/index.js +3 -3
- package/build/esm/components/YandexForm/YandexForm.js +13 -2
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/containers/Loadable/Loadable.js +1 -1
- package/build/esm/containers/Loadable/i18n/index.d.ts +2 -1
- package/build/esm/containers/Loadable/i18n/index.js +3 -3
- package/build/esm/containers/PageConstructor/Provider.d.ts +2 -0
- package/build/esm/containers/PageConstructor/Provider.js +3 -1
- package/build/esm/context/localeContext/localeContext.d.ts +2 -2
- package/build/esm/context/localeContext/localeContext.js +1 -1
- package/build/esm/context/metrikaContext/index.d.ts +1 -0
- package/build/esm/context/metrikaContext/index.js +1 -0
- package/build/esm/context/metrikaContext/metrikaContext.d.ts +13 -0
- package/build/esm/context/metrikaContext/metrikaContext.js +2 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
- package/build/esm/editor/components/ControlPanel/i18n/en.json +1 -2
- package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +2 -1
- package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
- package/build/esm/editor/components/ControlPanel/i18n/ru.json +1 -2
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +2 -1
- 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 +2 -1
- 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 +13 -1
- package/build/esm/hooks/useMetrika.js +38 -1
- package/build/esm/i18n.d.ts +2 -0
- package/build/esm/i18n.js +9 -0
- package/build/esm/models/common.d.ts +53 -2
- package/build/esm/models/common.js +24 -0
- package/build/esm/models/constructor-items/common.d.ts +29 -2
- package/build/esm/models/constructor-items/sub-blocks.d.ts +20 -4
- package/build/esm/models/constructor-items/sub-blocks.js +6 -0
- package/build/esm/models/guards.d.ts +2 -0
- package/build/esm/models/guards.js +3 -0
- package/build/esm/schema/constants.d.ts +252 -0
- package/build/esm/schema/constants.js +3 -2
- package/build/esm/schema/validators/common.d.ts +188 -0
- package/build/esm/schema/validators/common.js +31 -0
- package/build/esm/schema/validators/index.d.ts +2 -0
- package/build/esm/schema/validators/index.js +2 -0
- package/build/esm/schema/validators/pixel.d.ts +57 -0
- package/build/esm/schema/validators/pixel.js +60 -0
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/build/esm/sub-blocks/HubspotForm/index.js +6 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.css +59 -0
- package/build/esm/sub-blocks/ImageCard/ImageCard.d.ts +4 -0
- package/build/esm/sub-blocks/ImageCard/ImageCard.js +19 -0
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +78 -0
- package/build/esm/sub-blocks/ImageCard/schema.js +20 -0
- package/build/esm/sub-blocks/LayoutItem/utils.d.ts +15 -1
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +88 -0
- package/build/esm/sub-blocks/index.d.ts +1 -0
- package/build/esm/sub-blocks/index.js +1 -0
- 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/configure.d.ts +12 -0
- package/build/esm/utils/configure.js +20 -0
- package/build/esm/utils/index.d.ts +1 -0
- package/build/esm/utils/index.js +1 -0
- package/build/esm/utils/registerKeyset.d.ts +5 -0
- package/build/esm/utils/registerKeyset.js +5 -0
- package/package.json +2 -1
- package/server/models/common.d.ts +53 -2
- package/server/models/common.js +25 -1
- package/server/models/constructor-items/common.d.ts +29 -2
- package/server/models/constructor-items/sub-blocks.d.ts +20 -4
- package/server/models/constructor-items/sub-blocks.js +7 -1
- package/server/models/guards.d.ts +2 -0
- package/server/models/guards.js +5 -1
- 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/configure.d.ts +12 -0
- package/server/utils/configure.js +26 -0
- package/server/utils/index.d.ts +1 -0
- package/server/utils/index.js +4 -1
- package/widget/index.js +1 -1
|
@@ -76,6 +76,94 @@ 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
|
+
};
|
|
79
167
|
analyticsEvents: {
|
|
80
168
|
oneOf: ({
|
|
81
169
|
optionName: string;
|
|
@@ -9,3 +9,4 @@ export { default as BasicCard } from './BasicCard/BasicCard';
|
|
|
9
9
|
export { default as Content } from './Content/Content';
|
|
10
10
|
export { default as HubspotForm } from './HubspotForm';
|
|
11
11
|
export { default as PriceCard } from './PriceCard/PriceCard';
|
|
12
|
+
export { default as ImageCard } from './ImageCard/ImageCard';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PriceCard = exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.LayoutItem = exports.BannerCard = exports.MediaCard = exports.PriceDetailed = exports.Quote = exports.Divider = void 0;
|
|
6
|
+
exports.ImageCard = exports.PriceCard = exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.LayoutItem = exports.BannerCard = exports.MediaCard = exports.PriceDetailed = exports.Quote = exports.Divider = void 0;
|
|
7
7
|
var Divider_1 = require("./Divider/Divider");
|
|
8
8
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return __importDefault(Divider_1).default; } });
|
|
9
9
|
var Quote_1 = require("./Quote/Quote");
|
|
@@ -26,3 +26,5 @@ var HubspotForm_1 = require("./HubspotForm");
|
|
|
26
26
|
Object.defineProperty(exports, "HubspotForm", { enumerable: true, get: function () { return __importDefault(HubspotForm_1).default; } });
|
|
27
27
|
var PriceCard_1 = require("./PriceCard/PriceCard");
|
|
28
28
|
Object.defineProperty(exports, "PriceCard", { enumerable: true, get: function () { return __importDefault(PriceCard_1).default; } });
|
|
29
|
+
var ImageCard_1 = require("./ImageCard/ImageCard");
|
|
30
|
+
Object.defineProperty(exports, "ImageCard", { enumerable: true, get: function () { return __importDefault(ImageCard_1).default; } });
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MarkdownItPluginCb } from '@doc-tools/transform/lib/plugins/typings';
|
|
2
|
-
import { Lang } from '
|
|
2
|
+
import { Lang } from '../utils/configure';
|
|
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:
|
|
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:
|
|
15
|
+
export declare function yfmTransformer(lang: Lang, content: string, options?: {
|
|
16
16
|
plugins?: MarkdownItPluginCb[];
|
|
17
17
|
}): string;
|
|
18
|
-
export declare function typografTransformer(lang:
|
|
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';
|
|
3
2
|
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:
|
|
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';
|
|
3
2
|
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:
|
|
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?:
|
|
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:
|
|
22
|
-
export declare function typografToText(text: string, lang:
|
|
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:
|
|
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");
|
|
7
6
|
const sanitize_html_1 = tslib_1.__importDefault(require("sanitize-html"));
|
|
8
7
|
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 =
|
|
51
|
+
function typograf(text, lang = configure_1.Lang.Ru) {
|
|
52
52
|
const localeByLang = {
|
|
53
|
-
[
|
|
54
|
-
[
|
|
53
|
+
[configure_1.Lang.Ru]: ['ru', 'en-US'],
|
|
54
|
+
[configure_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 =
|
|
88
|
+
function typografEntity({ entity, fields, lang = configure_1.Lang.Ru, transformType = TransformType.Text, }) {
|
|
89
89
|
const transformTypeMap = {
|
|
90
90
|
text: typografToText,
|
|
91
91
|
html: typografToHTML,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum Lang {
|
|
2
|
+
Ru = "ru",
|
|
3
|
+
En = "en"
|
|
4
|
+
}
|
|
5
|
+
interface Config {
|
|
6
|
+
lang?: Lang;
|
|
7
|
+
}
|
|
8
|
+
type Subscriber = (config: Config) => void;
|
|
9
|
+
export declare const configure: (newConfig: Config) => void;
|
|
10
|
+
export declare const subscribeConfigure: (sub: Subscriber) => () => void;
|
|
11
|
+
export declare const getConfig: () => Config;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfig = exports.subscribeConfigure = exports.configure = exports.Lang = void 0;
|
|
4
|
+
var Lang;
|
|
5
|
+
(function (Lang) {
|
|
6
|
+
Lang["Ru"] = "ru";
|
|
7
|
+
Lang["En"] = "en";
|
|
8
|
+
})(Lang = exports.Lang || (exports.Lang = {}));
|
|
9
|
+
let subs = [];
|
|
10
|
+
const config = {};
|
|
11
|
+
const configure = (newConfig) => {
|
|
12
|
+
Object.assign(config, newConfig);
|
|
13
|
+
subs.forEach((sub) => {
|
|
14
|
+
sub(config);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.configure = configure;
|
|
18
|
+
const subscribeConfigure = (sub) => {
|
|
19
|
+
subs.push(sub);
|
|
20
|
+
return () => {
|
|
21
|
+
subs = subs.filter((item) => item !== sub);
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.subscribeConfigure = subscribeConfigure;
|
|
25
|
+
const getConfig = () => config;
|
|
26
|
+
exports.getConfig = getConfig;
|
|
@@ -5,5 +5,6 @@ export * from './url';
|
|
|
5
5
|
export * from './cn';
|
|
6
6
|
export * from './url';
|
|
7
7
|
export * from './theme';
|
|
8
|
+
export { Lang, configure } from './configure';
|
|
8
9
|
export type { HubspotEventData, HubspotEventHandlers, HubspotEventName } from './hubspot';
|
|
9
10
|
export { isHubspotEventData } from './hubspot';
|
package/build/cjs/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isHubspotEventData = void 0;
|
|
3
|
+
exports.isHubspotEventData = exports.configure = exports.Lang = 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,5 +9,8 @@ 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; } });
|
|
12
15
|
var hubspot_1 = require("./hubspot");
|
|
13
16
|
Object.defineProperty(exports, "isHubspotEventData", { enumerable: true, get: function () { return hubspot_1.isHubspotEventData; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i18n } from '../i18n';
|
|
2
|
+
import { Lang } from './configure';
|
|
3
|
+
type KeysData = Parameters<typeof i18n.registerKeyset>[2];
|
|
4
|
+
export declare function registerKeyset<T extends KeysData>(data: Record<Lang, T>, keysetName: string): (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerKeyset = void 0;
|
|
4
|
+
const i18n_1 = require("../i18n");
|
|
5
|
+
function registerKeyset(data, keysetName) {
|
|
6
|
+
Object.entries(data).forEach(([lang, keys]) => i18n_1.i18n.registerKeyset(lang, keysetName, keys));
|
|
7
|
+
return i18n_1.i18n.keyset(keysetName);
|
|
8
|
+
}
|
|
9
|
+
exports.registerKeyset = registerKeyset;
|
|
@@ -103,6 +103,94 @@ export declare const BannerCardProps: {
|
|
|
103
103
|
optionName: string;
|
|
104
104
|
})[];
|
|
105
105
|
};
|
|
106
|
+
metrikaGoals: {
|
|
107
|
+
oneOf: ({
|
|
108
|
+
type: string;
|
|
109
|
+
optionName: string;
|
|
110
|
+
items?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
type: string;
|
|
113
|
+
items: {
|
|
114
|
+
type: string;
|
|
115
|
+
additionalProperties?: undefined;
|
|
116
|
+
required?: undefined;
|
|
117
|
+
properties?: undefined;
|
|
118
|
+
};
|
|
119
|
+
optionName: string;
|
|
120
|
+
} | {
|
|
121
|
+
type: string;
|
|
122
|
+
items: {
|
|
123
|
+
type: string;
|
|
124
|
+
additionalProperties: boolean;
|
|
125
|
+
required: string[];
|
|
126
|
+
properties: {
|
|
127
|
+
name: {
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
isCrossSite: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
optionName: string;
|
|
136
|
+
})[];
|
|
137
|
+
};
|
|
138
|
+
pixelEvents: {
|
|
139
|
+
type: string;
|
|
140
|
+
items: {
|
|
141
|
+
type: string;
|
|
142
|
+
required: string[];
|
|
143
|
+
additionalProperties: boolean;
|
|
144
|
+
properties: {
|
|
145
|
+
name: {
|
|
146
|
+
type: string;
|
|
147
|
+
enum: import("../..").PixelEventType[];
|
|
148
|
+
};
|
|
149
|
+
data: {};
|
|
150
|
+
};
|
|
151
|
+
select: {
|
|
152
|
+
$data: string;
|
|
153
|
+
};
|
|
154
|
+
selectCases: {
|
|
155
|
+
SubmitApplication: {
|
|
156
|
+
additionalProperties: boolean;
|
|
157
|
+
properties: {
|
|
158
|
+
name: {};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
Contact: {
|
|
162
|
+
additionalProperties: boolean;
|
|
163
|
+
properties: {
|
|
164
|
+
name: {};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
Lead: {
|
|
168
|
+
additionalProperties: boolean;
|
|
169
|
+
properties: {
|
|
170
|
+
name: {};
|
|
171
|
+
data: {
|
|
172
|
+
type: string;
|
|
173
|
+
additionalProperties: boolean;
|
|
174
|
+
properties: {
|
|
175
|
+
content_category: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
content_name: {
|
|
179
|
+
type: string;
|
|
180
|
+
};
|
|
181
|
+
currency: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
value: {
|
|
185
|
+
type: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
106
194
|
analyticsEvents: {
|
|
107
195
|
oneOf: ({
|
|
108
196
|
optionName: string;
|
|
@@ -322,6 +410,94 @@ export declare const BannerBlock: {
|
|
|
322
410
|
optionName: string;
|
|
323
411
|
})[];
|
|
324
412
|
};
|
|
413
|
+
metrikaGoals: {
|
|
414
|
+
oneOf: ({
|
|
415
|
+
type: string;
|
|
416
|
+
optionName: string;
|
|
417
|
+
items?: undefined;
|
|
418
|
+
} | {
|
|
419
|
+
type: string;
|
|
420
|
+
items: {
|
|
421
|
+
type: string;
|
|
422
|
+
additionalProperties?: undefined;
|
|
423
|
+
required?: undefined;
|
|
424
|
+
properties?: undefined;
|
|
425
|
+
};
|
|
426
|
+
optionName: string;
|
|
427
|
+
} | {
|
|
428
|
+
type: string;
|
|
429
|
+
items: {
|
|
430
|
+
type: string;
|
|
431
|
+
additionalProperties: boolean;
|
|
432
|
+
required: string[];
|
|
433
|
+
properties: {
|
|
434
|
+
name: {
|
|
435
|
+
type: string;
|
|
436
|
+
};
|
|
437
|
+
isCrossSite: {
|
|
438
|
+
type: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
optionName: string;
|
|
443
|
+
})[];
|
|
444
|
+
};
|
|
445
|
+
pixelEvents: {
|
|
446
|
+
type: string;
|
|
447
|
+
items: {
|
|
448
|
+
type: string;
|
|
449
|
+
required: string[];
|
|
450
|
+
additionalProperties: boolean;
|
|
451
|
+
properties: {
|
|
452
|
+
name: {
|
|
453
|
+
type: string;
|
|
454
|
+
enum: import("../..").PixelEventType[];
|
|
455
|
+
};
|
|
456
|
+
data: {};
|
|
457
|
+
};
|
|
458
|
+
select: {
|
|
459
|
+
$data: string;
|
|
460
|
+
};
|
|
461
|
+
selectCases: {
|
|
462
|
+
SubmitApplication: {
|
|
463
|
+
additionalProperties: boolean;
|
|
464
|
+
properties: {
|
|
465
|
+
name: {};
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
Contact: {
|
|
469
|
+
additionalProperties: boolean;
|
|
470
|
+
properties: {
|
|
471
|
+
name: {};
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
Lead: {
|
|
475
|
+
additionalProperties: boolean;
|
|
476
|
+
properties: {
|
|
477
|
+
name: {};
|
|
478
|
+
data: {
|
|
479
|
+
type: string;
|
|
480
|
+
additionalProperties: boolean;
|
|
481
|
+
properties: {
|
|
482
|
+
content_category: {
|
|
483
|
+
type: string;
|
|
484
|
+
};
|
|
485
|
+
content_name: {
|
|
486
|
+
type: string;
|
|
487
|
+
};
|
|
488
|
+
currency: {
|
|
489
|
+
type: string;
|
|
490
|
+
};
|
|
491
|
+
value: {
|
|
492
|
+
type: string;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
325
501
|
analyticsEvents: {
|
|
326
502
|
oneOf: ({
|
|
327
503
|
optionName: string;
|
|
@@ -542,6 +718,94 @@ export declare const BannerCard: {
|
|
|
542
718
|
optionName: string;
|
|
543
719
|
})[];
|
|
544
720
|
};
|
|
721
|
+
metrikaGoals: {
|
|
722
|
+
oneOf: ({
|
|
723
|
+
type: string;
|
|
724
|
+
optionName: string;
|
|
725
|
+
items?: undefined;
|
|
726
|
+
} | {
|
|
727
|
+
type: string;
|
|
728
|
+
items: {
|
|
729
|
+
type: string;
|
|
730
|
+
additionalProperties?: undefined;
|
|
731
|
+
required?: undefined;
|
|
732
|
+
properties?: undefined;
|
|
733
|
+
};
|
|
734
|
+
optionName: string;
|
|
735
|
+
} | {
|
|
736
|
+
type: string;
|
|
737
|
+
items: {
|
|
738
|
+
type: string;
|
|
739
|
+
additionalProperties: boolean;
|
|
740
|
+
required: string[];
|
|
741
|
+
properties: {
|
|
742
|
+
name: {
|
|
743
|
+
type: string;
|
|
744
|
+
};
|
|
745
|
+
isCrossSite: {
|
|
746
|
+
type: string;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
optionName: string;
|
|
751
|
+
})[];
|
|
752
|
+
};
|
|
753
|
+
pixelEvents: {
|
|
754
|
+
type: string;
|
|
755
|
+
items: {
|
|
756
|
+
type: string;
|
|
757
|
+
required: string[];
|
|
758
|
+
additionalProperties: boolean;
|
|
759
|
+
properties: {
|
|
760
|
+
name: {
|
|
761
|
+
type: string;
|
|
762
|
+
enum: import("../..").PixelEventType[];
|
|
763
|
+
};
|
|
764
|
+
data: {};
|
|
765
|
+
};
|
|
766
|
+
select: {
|
|
767
|
+
$data: string;
|
|
768
|
+
};
|
|
769
|
+
selectCases: {
|
|
770
|
+
SubmitApplication: {
|
|
771
|
+
additionalProperties: boolean;
|
|
772
|
+
properties: {
|
|
773
|
+
name: {};
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
Contact: {
|
|
777
|
+
additionalProperties: boolean;
|
|
778
|
+
properties: {
|
|
779
|
+
name: {};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
Lead: {
|
|
783
|
+
additionalProperties: boolean;
|
|
784
|
+
properties: {
|
|
785
|
+
name: {};
|
|
786
|
+
data: {
|
|
787
|
+
type: string;
|
|
788
|
+
additionalProperties: boolean;
|
|
789
|
+
properties: {
|
|
790
|
+
content_category: {
|
|
791
|
+
type: string;
|
|
792
|
+
};
|
|
793
|
+
content_name: {
|
|
794
|
+
type: string;
|
|
795
|
+
};
|
|
796
|
+
currency: {
|
|
797
|
+
type: string;
|
|
798
|
+
};
|
|
799
|
+
value: {
|
|
800
|
+
type: string;
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
};
|
|
545
809
|
analyticsEvents: {
|
|
546
810
|
oneOf: ({
|
|
547
811
|
optionName: string;
|
|
@@ -19,7 +19,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
|
|
|
19
19
|
return (React.createElement(AnimateBlock, { className: b(), animate: animated },
|
|
20
20
|
React.createElement(Title, { title: title, subtitle: description, className: b('header') }),
|
|
21
21
|
React.createElement("div", { className: b('items') },
|
|
22
|
-
React.createElement(Row, null, items.map(({ title: itemTitle, text, link, links, label, icon, buttons, additionalInfo, }) => {
|
|
22
|
+
React.createElement(Row, null, items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }) => {
|
|
23
23
|
const itemLinks = links || [];
|
|
24
24
|
const iconThemed = icon && getThemedValue(icon, theme);
|
|
25
25
|
const iconData = iconThemed && getMediaImage(iconThemed);
|
|
@@ -35,7 +35,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
|
|
|
35
35
|
}, React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(HTML, null, itemTitle),
|
|
37
37
|
label && (React.createElement("span", { className: b('item-label') }, label)))),
|
|
38
|
-
React.createElement(Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
|
|
38
|
+
React.createElement(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
|
|
39
39
|
})))));
|
|
40
40
|
};
|
|
41
41
|
export default ExtendedFeaturesBlock;
|
|
@@ -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
|
|
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 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
|
2
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NAMESPACE } from '../../../utils/cn';
|
|
1
|
+
import { registerKeyset } from '../../../utils/registerKeyset';
|
|
3
2
|
import en from './en.json';
|
|
4
3
|
import ru from './ru.json';
|
|
5
|
-
|
|
4
|
+
const COMPONENT = 'FilterBlock';
|
|
5
|
+
export default registerKeyset({ en, ru }, COMPONENT);
|