@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { MetrikaGoal } from './';
|
|
2
3
|
export interface Refable<T> {
|
|
3
4
|
ref?: React.Ref<T>;
|
|
4
5
|
}
|
|
@@ -7,9 +8,59 @@ export declare enum Theme {
|
|
|
7
8
|
Dark = "dark"
|
|
8
9
|
}
|
|
9
10
|
export declare const themeNames: Record<Theme, string>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Pixel will be deleted
|
|
13
|
+
*/
|
|
14
|
+
type PixelCommand = 'track' | 'trackCustom';
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Pixel will be deleted
|
|
17
|
+
*/
|
|
18
|
+
export interface PixelEvent {
|
|
19
|
+
command: PixelCommand;
|
|
20
|
+
event: PixelEventType | string;
|
|
21
|
+
data?: Object;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Pixel will be deleted from package
|
|
25
|
+
*/
|
|
26
|
+
export declare enum PixelEventType {
|
|
27
|
+
AddPaymentInfo = "AddPaymentInfo",
|
|
28
|
+
AddToCart = "AddToCart",
|
|
29
|
+
AddToWishlist = "AddToWishlist",
|
|
30
|
+
CompleteRegistration = "CompleteRegistration",
|
|
31
|
+
Contact = "Contact",
|
|
32
|
+
CustomizeProduct = "CustomizeProduct",
|
|
33
|
+
Donate = "Donate",
|
|
34
|
+
FindLocation = "FindLocation",
|
|
35
|
+
InitiateCheckout = "InitiateCheckout",
|
|
36
|
+
Lead = "Lead",
|
|
37
|
+
PageView = "PageView",
|
|
38
|
+
Purchase = "Purchase",
|
|
39
|
+
Schedule = "Schedule",
|
|
40
|
+
Search = "Search",
|
|
41
|
+
StartTrial = "StartTrial",
|
|
42
|
+
SubmitApplication = "SubmitApplication",
|
|
43
|
+
Subscribe = "Subscribe",
|
|
44
|
+
ViewContent = "ViewContent"
|
|
45
|
+
}
|
|
10
46
|
export type Modifiers = {
|
|
11
47
|
[name: string]: string | boolean | undefined;
|
|
12
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Pixel will be deleted
|
|
51
|
+
*/
|
|
52
|
+
export interface Pixel<TEvent = string> {
|
|
53
|
+
trackStandard: (event: TEvent, data?: Object) => void;
|
|
54
|
+
trackCustom: (event: string, data?: Object) => void;
|
|
55
|
+
track: (trackEvents: string | string[] | PixelEvent[] | PixelEvent) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Metrika will be deleted
|
|
59
|
+
*/
|
|
60
|
+
export interface Metrika {
|
|
61
|
+
reachGoal: (counterName: string, ...args: any) => void;
|
|
62
|
+
reachGoals: (goals: MetrikaGoal, counterName?: string) => void;
|
|
63
|
+
}
|
|
13
64
|
export interface ClassNameProps {
|
|
14
65
|
className?: string;
|
|
15
66
|
}
|
|
@@ -46,7 +97,7 @@ export type AnalyticsEvent<T = {}> = T & {
|
|
|
46
97
|
context?: string;
|
|
47
98
|
target?: string;
|
|
48
99
|
};
|
|
49
|
-
export type AnalyticsEventsProp = AnalyticsEvent | AnalyticsEvent[];
|
|
50
100
|
export interface AnalyticsEventsBase {
|
|
51
|
-
analyticsEvents?:
|
|
101
|
+
analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
|
|
52
102
|
}
|
|
103
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultEventNames = exports.PredefinedEventTypes = exports.themeNames = exports.Theme = void 0;
|
|
3
|
+
exports.DefaultEventNames = exports.PredefinedEventTypes = exports.PixelEventType = exports.themeNames = exports.Theme = void 0;
|
|
4
4
|
var Theme;
|
|
5
5
|
(function (Theme) {
|
|
6
6
|
Theme["Light"] = "light";
|
|
@@ -10,6 +10,30 @@ exports.themeNames = {
|
|
|
10
10
|
[Theme.Light]: 'Light',
|
|
11
11
|
[Theme.Dark]: 'Dark',
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Pixel will be deleted from package
|
|
15
|
+
*/
|
|
16
|
+
var PixelEventType;
|
|
17
|
+
(function (PixelEventType) {
|
|
18
|
+
PixelEventType["AddPaymentInfo"] = "AddPaymentInfo";
|
|
19
|
+
PixelEventType["AddToCart"] = "AddToCart";
|
|
20
|
+
PixelEventType["AddToWishlist"] = "AddToWishlist";
|
|
21
|
+
PixelEventType["CompleteRegistration"] = "CompleteRegistration";
|
|
22
|
+
PixelEventType["Contact"] = "Contact";
|
|
23
|
+
PixelEventType["CustomizeProduct"] = "CustomizeProduct";
|
|
24
|
+
PixelEventType["Donate"] = "Donate";
|
|
25
|
+
PixelEventType["FindLocation"] = "FindLocation";
|
|
26
|
+
PixelEventType["InitiateCheckout"] = "InitiateCheckout";
|
|
27
|
+
PixelEventType["Lead"] = "Lead";
|
|
28
|
+
PixelEventType["PageView"] = "PageView";
|
|
29
|
+
PixelEventType["Purchase"] = "Purchase";
|
|
30
|
+
PixelEventType["Schedule"] = "Schedule";
|
|
31
|
+
PixelEventType["Search"] = "Search";
|
|
32
|
+
PixelEventType["StartTrial"] = "StartTrial";
|
|
33
|
+
PixelEventType["SubmitApplication"] = "SubmitApplication";
|
|
34
|
+
PixelEventType["Subscribe"] = "Subscribe";
|
|
35
|
+
PixelEventType["ViewContent"] = "ViewContent";
|
|
36
|
+
})(PixelEventType = exports.PixelEventType || (exports.PixelEventType = {}));
|
|
13
37
|
var PredefinedEventTypes;
|
|
14
38
|
(function (PredefinedEventTypes) {
|
|
15
39
|
PredefinedEventTypes["Default"] = "default-event";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, HTMLProps, ReactNode } from 'react';
|
|
2
2
|
import { ButtonView, ButtonProps as UikitButtonProps } from '@gravity-ui/uikit';
|
|
3
3
|
import { ThemeSupporting } from '../../utils';
|
|
4
|
-
import { AnalyticsEventsBase,
|
|
4
|
+
import { AnalyticsEventsBase, ClassNameProps, PixelEvent, PixelEventType, QAProps } from '../common';
|
|
5
5
|
export declare enum AuthorType {
|
|
6
6
|
Column = "column",
|
|
7
7
|
Line = "line"
|
|
@@ -62,6 +62,7 @@ export type ContentSize = 's' | 'l';
|
|
|
62
62
|
export type ContentTextSize = 's' | 'm' | 'l';
|
|
63
63
|
export type ContentTheme = 'default' | 'dark' | 'light';
|
|
64
64
|
export type FileLinkType = 'vertical' | 'horizontal';
|
|
65
|
+
export type ImageCardMargins = 's' | 'm';
|
|
65
66
|
export interface Themable {
|
|
66
67
|
theme?: TextTheme;
|
|
67
68
|
}
|
|
@@ -124,6 +125,7 @@ export interface MediaVideoProps extends AnalyticsEventsBase {
|
|
|
124
125
|
playButton?: PlayButtonProps;
|
|
125
126
|
controls?: MediaVideoControlsType;
|
|
126
127
|
customControlsOptions?: CustomControlsOptions;
|
|
128
|
+
metrika?: MetrikaVideo;
|
|
127
129
|
ariaLabel?: string;
|
|
128
130
|
}
|
|
129
131
|
export interface LinkProps extends AnalyticsEventsBase, Stylable, Tabbable {
|
|
@@ -135,6 +137,8 @@ export interface LinkProps extends AnalyticsEventsBase, Stylable, Tabbable {
|
|
|
135
137
|
colorTheme?: TextTheme;
|
|
136
138
|
arrow?: boolean;
|
|
137
139
|
target?: string;
|
|
140
|
+
metrikaGoals?: MetrikaGoal;
|
|
141
|
+
pixelEvents?: ButtonPixel;
|
|
138
142
|
extraProps?: HTMLProps<HTMLAnchorElement>;
|
|
139
143
|
}
|
|
140
144
|
export interface FileLinkProps extends ClassNameProps, Tabbable {
|
|
@@ -155,6 +159,8 @@ export interface ButtonProps extends AnalyticsEventsBase, Pick<UikitButtonProps,
|
|
|
155
159
|
primary?: boolean;
|
|
156
160
|
theme?: ButtonTheme;
|
|
157
161
|
img?: ButtonImageProps | string;
|
|
162
|
+
metrikaGoals?: MetrikaGoal;
|
|
163
|
+
pixelEvents?: ButtonPixel;
|
|
158
164
|
target?: string;
|
|
159
165
|
}
|
|
160
166
|
export type ButtonImagePosition = 'left' | 'right';
|
|
@@ -178,6 +184,7 @@ export interface MediaComponentVideoProps extends AnalyticsEventsBase {
|
|
|
178
184
|
video: MediaVideoProps;
|
|
179
185
|
height?: number;
|
|
180
186
|
ratio?: number;
|
|
187
|
+
metrika?: MetrikaVideo;
|
|
181
188
|
previewImg?: string;
|
|
182
189
|
}
|
|
183
190
|
export interface MediaComponentYoutubeProps {
|
|
@@ -231,6 +238,23 @@ export interface YMapMarkerLabel {
|
|
|
231
238
|
}
|
|
232
239
|
export type MapProps = GMapProps | YMapProps;
|
|
233
240
|
export type ThemedMediaProps = ThemeSupporting<MediaProps>;
|
|
241
|
+
export interface NewMetrikaGoal {
|
|
242
|
+
name: string;
|
|
243
|
+
isCrossSite?: boolean;
|
|
244
|
+
counterName?: string;
|
|
245
|
+
params?: Record<string, string>;
|
|
246
|
+
}
|
|
247
|
+
export type MetrikaGoal = string | string[] | NewMetrikaGoal[];
|
|
248
|
+
export interface MetrikaVideo {
|
|
249
|
+
counterName?: string;
|
|
250
|
+
play?: MetrikaGoal;
|
|
251
|
+
stop?: MetrikaGoal;
|
|
252
|
+
}
|
|
253
|
+
export interface ButtonPixelEvent {
|
|
254
|
+
name: PixelEventType;
|
|
255
|
+
data?: Object;
|
|
256
|
+
}
|
|
257
|
+
export type ButtonPixel = ButtonPixelEvent[];
|
|
234
258
|
export interface DataLensObjectProps {
|
|
235
259
|
id: string;
|
|
236
260
|
theme: 'dark' | 'light';
|
|
@@ -255,7 +279,8 @@ export interface HeaderBreadCrumbsProps extends ClassNameProps {
|
|
|
255
279
|
text: ReactNode;
|
|
256
280
|
}[];
|
|
257
281
|
theme?: TextTheme;
|
|
258
|
-
|
|
282
|
+
metrikaGoals?: MetrikaGoal;
|
|
283
|
+
pixelEvents?: ButtonPixel;
|
|
259
284
|
}
|
|
260
285
|
export interface TitleItemProps extends Justifyable, TitleItemBaseProps {
|
|
261
286
|
navTitle?: string;
|
|
@@ -344,6 +369,8 @@ export interface YandexFormProps extends AnalyticsEventsBase {
|
|
|
344
369
|
};
|
|
345
370
|
onSubmit?: () => void;
|
|
346
371
|
onLoad?: () => void;
|
|
372
|
+
metrikaGoals?: string | string[];
|
|
373
|
+
pixelEvents?: string | string[] | PixelEvent | PixelEvent[];
|
|
347
374
|
}
|
|
348
375
|
export interface WithBorder {
|
|
349
376
|
border?: MediaBorder;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ClassNameProps, QuoteType } from '../../models';
|
|
2
2
|
import { ThemeSupporting } from '../../utils';
|
|
3
3
|
import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
|
|
4
|
-
import { AnalyticsEventsBase } from '../common';
|
|
4
|
+
import { AnalyticsEventsBase, PixelEvent } from '../common';
|
|
5
5
|
import { ContentBlockProps } from './blocks';
|
|
6
|
-
import { AuthorItem, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
|
|
6
|
+
import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageCardMargins, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
|
|
7
7
|
export declare enum SubBlockType {
|
|
8
8
|
Divider = "divider",
|
|
9
9
|
Quote = "quote",
|
|
@@ -22,7 +22,8 @@ export declare enum SubBlockType {
|
|
|
22
22
|
* @deprecated Will be removed, use BasicCard instead
|
|
23
23
|
*/
|
|
24
24
|
Card = "card",
|
|
25
|
-
PriceCard = "price-card"
|
|
25
|
+
PriceCard = "price-card",
|
|
26
|
+
ImageCard = "image-card"
|
|
26
27
|
}
|
|
27
28
|
export declare enum IconPosition {
|
|
28
29
|
Top = "top",
|
|
@@ -35,6 +36,10 @@ export interface PositionedIcon {
|
|
|
35
36
|
export interface IconWrapperProps {
|
|
36
37
|
icon?: PositionedIcon;
|
|
37
38
|
}
|
|
39
|
+
export declare enum ImageCardDirection {
|
|
40
|
+
Direct = "direct",
|
|
41
|
+
Reverse = "reverse"
|
|
42
|
+
}
|
|
38
43
|
export declare const SubBlockTypes: SubBlockType[];
|
|
39
44
|
export interface DividerProps {
|
|
40
45
|
size?: DividerSize;
|
|
@@ -65,6 +70,7 @@ export interface HubspotFormProps extends HubspotEventHandlers, AnalyticsEventsB
|
|
|
65
70
|
* To use this handler for component that is rendered in iframe, set up useLoopBackHubspotEvents hook on top level frame
|
|
66
71
|
*/
|
|
67
72
|
onLoad?: (arg: HubspotEventData) => void;
|
|
73
|
+
pixelEvents?: string | string[] | PixelEvent | PixelEvent[] | ButtonPixel;
|
|
68
74
|
hubspotEvents?: string[];
|
|
69
75
|
createDOMElement?: boolean;
|
|
70
76
|
}
|
|
@@ -136,6 +142,13 @@ export interface LayoutItemProps extends ClassNameProps, AnalyticsEventsBase {
|
|
|
136
142
|
fullscreen?: boolean;
|
|
137
143
|
icon?: PositionedIcon;
|
|
138
144
|
}
|
|
145
|
+
export interface ImageCardProps extends CardBaseProps, Pick<ContentBlockProps, 'title' | 'text'> {
|
|
146
|
+
image: ImageProps;
|
|
147
|
+
enableImageBorderRadius?: boolean;
|
|
148
|
+
margins?: ImageCardMargins;
|
|
149
|
+
direction?: ImageCardDirection;
|
|
150
|
+
backgroundColor?: string;
|
|
151
|
+
}
|
|
139
152
|
export type DividerModel = {
|
|
140
153
|
type: SubBlockType.Divider;
|
|
141
154
|
} & DividerProps;
|
|
@@ -166,5 +179,8 @@ export type BasicCardModel = {
|
|
|
166
179
|
export type PriceCardModel = {
|
|
167
180
|
type: SubBlockType.PriceCard;
|
|
168
181
|
} & PriceCardProps;
|
|
169
|
-
export type
|
|
182
|
+
export type ImageCardModel = {
|
|
183
|
+
type: SubBlockType.ImageCard;
|
|
184
|
+
} & ImageCardProps;
|
|
185
|
+
export type SubBlockModels = DividerModel | QuoteModel | PriceDetailedModel | MediaCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | PriceCardModel | LayoutItemModel | ImageCardModel;
|
|
170
186
|
export type SubBlock = SubBlockModels;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubBlockTypes = exports.IconPosition = exports.SubBlockType = void 0;
|
|
3
|
+
exports.SubBlockTypes = exports.ImageCardDirection = exports.IconPosition = exports.SubBlockType = void 0;
|
|
4
4
|
var SubBlockType;
|
|
5
5
|
(function (SubBlockType) {
|
|
6
6
|
SubBlockType["Divider"] = "divider";
|
|
@@ -21,10 +21,16 @@ var SubBlockType;
|
|
|
21
21
|
*/
|
|
22
22
|
SubBlockType["Card"] = "card";
|
|
23
23
|
SubBlockType["PriceCard"] = "price-card";
|
|
24
|
+
SubBlockType["ImageCard"] = "image-card";
|
|
24
25
|
})(SubBlockType = exports.SubBlockType || (exports.SubBlockType = {}));
|
|
25
26
|
var IconPosition;
|
|
26
27
|
(function (IconPosition) {
|
|
27
28
|
IconPosition["Top"] = "top";
|
|
28
29
|
IconPosition["Left"] = "left";
|
|
29
30
|
})(IconPosition = exports.IconPosition || (exports.IconPosition = {}));
|
|
31
|
+
var ImageCardDirection;
|
|
32
|
+
(function (ImageCardDirection) {
|
|
33
|
+
ImageCardDirection["Direct"] = "direct";
|
|
34
|
+
ImageCardDirection["Reverse"] = "reverse";
|
|
35
|
+
})(ImageCardDirection = exports.ImageCardDirection || (exports.ImageCardDirection = {}));
|
|
30
36
|
exports.SubBlockTypes = Object.values(SubBlockType);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Block, ConstructorItem, FormBlockData, FormBlockHubspotData, FormBlockYandexData } from './';
|
|
2
|
+
import { MetrikaGoal, NewMetrikaGoal } from './index';
|
|
2
3
|
export declare function isBlock(block: ConstructorItem): block is Block;
|
|
4
|
+
export declare function isNewMetrikaFormat(metrika: MetrikaGoal): metrika is NewMetrikaGoal[];
|
|
3
5
|
export declare function isYandexDataForm(data: FormBlockData): data is FormBlockYandexData;
|
|
4
6
|
export declare function isHubspotDataForm(data: FormBlockData): data is FormBlockHubspotData;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isHubspotDataForm = exports.isYandexDataForm = exports.isBlock = void 0;
|
|
3
|
+
exports.isHubspotDataForm = exports.isYandexDataForm = exports.isNewMetrikaFormat = exports.isBlock = void 0;
|
|
4
4
|
const _1 = require("./");
|
|
5
5
|
function isBlock(block) {
|
|
6
6
|
return block.type in _1.BlockTypes;
|
|
7
7
|
}
|
|
8
8
|
exports.isBlock = isBlock;
|
|
9
|
+
function isNewMetrikaFormat(metrika) {
|
|
10
|
+
return Boolean(Array.isArray(metrika) && metrika.length && typeof metrika[0] === 'object');
|
|
11
|
+
}
|
|
12
|
+
exports.isNewMetrikaFormat = isNewMetrikaFormat;
|
|
9
13
|
function isYandexDataForm(data) {
|
|
10
14
|
return Boolean(data.yandex);
|
|
11
15
|
}
|
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
import { BlockType } from '../models';
|
|
2
2
|
export declare const blockSchemas: Record<BlockType, object>;
|
|
3
3
|
export declare const cardSchemas: {
|
|
4
|
+
'image-card': {
|
|
5
|
+
additionalProperties: boolean;
|
|
6
|
+
required: string[];
|
|
7
|
+
properties: {
|
|
8
|
+
image: {
|
|
9
|
+
oneOf: ({
|
|
10
|
+
type: string;
|
|
11
|
+
properties: {
|
|
12
|
+
when: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
type: string;
|
|
18
|
+
pattern: string;
|
|
19
|
+
optionName: string;
|
|
20
|
+
})[];
|
|
21
|
+
};
|
|
22
|
+
direction: {
|
|
23
|
+
type: string;
|
|
24
|
+
enum: string[];
|
|
25
|
+
};
|
|
26
|
+
margins: {
|
|
27
|
+
type: string;
|
|
28
|
+
enum: string[];
|
|
29
|
+
};
|
|
30
|
+
backgroundColor: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
title: {
|
|
34
|
+
oneOf: ({
|
|
35
|
+
type: string;
|
|
36
|
+
contentType: string;
|
|
37
|
+
optionName: string;
|
|
38
|
+
} | {
|
|
39
|
+
optionName: string;
|
|
40
|
+
type: string;
|
|
41
|
+
additionalProperties: boolean;
|
|
42
|
+
required: string[];
|
|
43
|
+
properties: {
|
|
44
|
+
text: {
|
|
45
|
+
type: string;
|
|
46
|
+
contentType: string;
|
|
47
|
+
};
|
|
48
|
+
textSize: {
|
|
49
|
+
type: string;
|
|
50
|
+
enum: string[];
|
|
51
|
+
};
|
|
52
|
+
url: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
urlTitle: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
resetMargin: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
contentType?: undefined;
|
|
63
|
+
})[];
|
|
64
|
+
};
|
|
65
|
+
text: {
|
|
66
|
+
type: string;
|
|
67
|
+
contentType: string;
|
|
68
|
+
inputType: string;
|
|
69
|
+
};
|
|
70
|
+
border: {
|
|
71
|
+
type: string;
|
|
72
|
+
enum: string[];
|
|
73
|
+
};
|
|
74
|
+
type: {};
|
|
75
|
+
when: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
4
80
|
'price-card': {
|
|
5
81
|
additionalProperties: boolean;
|
|
6
82
|
required: string[];
|
|
@@ -78,6 +154,94 @@ export declare const cardSchemas: {
|
|
|
78
154
|
optionName: string;
|
|
79
155
|
})[];
|
|
80
156
|
};
|
|
157
|
+
metrikaGoals: {
|
|
158
|
+
oneOf: ({
|
|
159
|
+
type: string;
|
|
160
|
+
optionName: string;
|
|
161
|
+
items?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
type: string;
|
|
164
|
+
items: {
|
|
165
|
+
type: string;
|
|
166
|
+
additionalProperties?: undefined;
|
|
167
|
+
required?: undefined;
|
|
168
|
+
properties?: undefined;
|
|
169
|
+
};
|
|
170
|
+
optionName: string;
|
|
171
|
+
} | {
|
|
172
|
+
type: string;
|
|
173
|
+
items: {
|
|
174
|
+
type: string;
|
|
175
|
+
additionalProperties: boolean;
|
|
176
|
+
required: string[];
|
|
177
|
+
properties: {
|
|
178
|
+
name: {
|
|
179
|
+
type: string;
|
|
180
|
+
};
|
|
181
|
+
isCrossSite: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
optionName: string;
|
|
187
|
+
})[];
|
|
188
|
+
};
|
|
189
|
+
pixelEvents: {
|
|
190
|
+
type: string;
|
|
191
|
+
items: {
|
|
192
|
+
type: string;
|
|
193
|
+
required: string[];
|
|
194
|
+
additionalProperties: boolean;
|
|
195
|
+
properties: {
|
|
196
|
+
name: {
|
|
197
|
+
type: string;
|
|
198
|
+
enum: import("../models").PixelEventType[];
|
|
199
|
+
};
|
|
200
|
+
data: {};
|
|
201
|
+
};
|
|
202
|
+
select: {
|
|
203
|
+
$data: string;
|
|
204
|
+
};
|
|
205
|
+
selectCases: {
|
|
206
|
+
SubmitApplication: {
|
|
207
|
+
additionalProperties: boolean;
|
|
208
|
+
properties: {
|
|
209
|
+
name: {};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
Contact: {
|
|
213
|
+
additionalProperties: boolean;
|
|
214
|
+
properties: {
|
|
215
|
+
name: {};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
Lead: {
|
|
219
|
+
additionalProperties: boolean;
|
|
220
|
+
properties: {
|
|
221
|
+
name: {};
|
|
222
|
+
data: {
|
|
223
|
+
type: string;
|
|
224
|
+
additionalProperties: boolean;
|
|
225
|
+
properties: {
|
|
226
|
+
content_category: {
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
229
|
+
content_name: {
|
|
230
|
+
type: string;
|
|
231
|
+
};
|
|
232
|
+
currency: {
|
|
233
|
+
type: string;
|
|
234
|
+
};
|
|
235
|
+
value: {
|
|
236
|
+
type: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
81
245
|
analyticsEvents: {
|
|
82
246
|
oneOf: ({
|
|
83
247
|
optionName: string;
|
|
@@ -978,6 +1142,94 @@ export declare const cardSchemas: {
|
|
|
978
1142
|
optionName: string;
|
|
979
1143
|
})[];
|
|
980
1144
|
};
|
|
1145
|
+
metrikaGoals: {
|
|
1146
|
+
oneOf: ({
|
|
1147
|
+
type: string;
|
|
1148
|
+
optionName: string;
|
|
1149
|
+
items?: undefined;
|
|
1150
|
+
} | {
|
|
1151
|
+
type: string;
|
|
1152
|
+
items: {
|
|
1153
|
+
type: string;
|
|
1154
|
+
additionalProperties?: undefined;
|
|
1155
|
+
required?: undefined;
|
|
1156
|
+
properties?: undefined;
|
|
1157
|
+
};
|
|
1158
|
+
optionName: string;
|
|
1159
|
+
} | {
|
|
1160
|
+
type: string;
|
|
1161
|
+
items: {
|
|
1162
|
+
type: string;
|
|
1163
|
+
additionalProperties: boolean;
|
|
1164
|
+
required: string[];
|
|
1165
|
+
properties: {
|
|
1166
|
+
name: {
|
|
1167
|
+
type: string;
|
|
1168
|
+
};
|
|
1169
|
+
isCrossSite: {
|
|
1170
|
+
type: string;
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
optionName: string;
|
|
1175
|
+
})[];
|
|
1176
|
+
};
|
|
1177
|
+
pixelEvents: {
|
|
1178
|
+
type: string;
|
|
1179
|
+
items: {
|
|
1180
|
+
type: string;
|
|
1181
|
+
required: string[];
|
|
1182
|
+
additionalProperties: boolean;
|
|
1183
|
+
properties: {
|
|
1184
|
+
name: {
|
|
1185
|
+
type: string;
|
|
1186
|
+
enum: import("../models").PixelEventType[];
|
|
1187
|
+
};
|
|
1188
|
+
data: {};
|
|
1189
|
+
};
|
|
1190
|
+
select: {
|
|
1191
|
+
$data: string;
|
|
1192
|
+
};
|
|
1193
|
+
selectCases: {
|
|
1194
|
+
SubmitApplication: {
|
|
1195
|
+
additionalProperties: boolean;
|
|
1196
|
+
properties: {
|
|
1197
|
+
name: {};
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
Contact: {
|
|
1201
|
+
additionalProperties: boolean;
|
|
1202
|
+
properties: {
|
|
1203
|
+
name: {};
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
Lead: {
|
|
1207
|
+
additionalProperties: boolean;
|
|
1208
|
+
properties: {
|
|
1209
|
+
name: {};
|
|
1210
|
+
data: {
|
|
1211
|
+
type: string;
|
|
1212
|
+
additionalProperties: boolean;
|
|
1213
|
+
properties: {
|
|
1214
|
+
content_category: {
|
|
1215
|
+
type: string;
|
|
1216
|
+
};
|
|
1217
|
+
content_name: {
|
|
1218
|
+
type: string;
|
|
1219
|
+
};
|
|
1220
|
+
currency: {
|
|
1221
|
+
type: string;
|
|
1222
|
+
};
|
|
1223
|
+
value: {
|
|
1224
|
+
type: string;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
981
1233
|
analyticsEvents: {
|
|
982
1234
|
oneOf: ({
|
|
983
1235
|
optionName: string;
|
|
@@ -4,7 +4,7 @@ exports.constructorCardSchemaNames = exports.constructorBlockSchemaNames = expor
|
|
|
4
4
|
const blocks_1 = require("./validators/blocks");
|
|
5
5
|
const sub_blocks_1 = require("./validators/sub-blocks");
|
|
6
6
|
exports.blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock), blocks_1.FormBlock);
|
|
7
|
-
exports.cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.BackgroundCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard), sub_blocks_1.PriceCardBlock);
|
|
7
|
+
exports.cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.BackgroundCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard), sub_blocks_1.PriceCardBlock), sub_blocks_1.ImageCard);
|
|
8
8
|
exports.constructorBlockSchemaNames = [
|
|
9
9
|
'divider',
|
|
10
10
|
'quote',
|
|
@@ -41,4 +41,5 @@ exports.constructorCardSchemaNames = [
|
|
|
41
41
|
'basic-card',
|
|
42
42
|
'layout-item',
|
|
43
43
|
'price-card',
|
|
44
|
+
'image-card',
|
|
44
45
|
];
|