@gravity-ui/page-constructor 1.18.1 → 1.19.1
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/CHANGELOG.md +14 -0
- package/README.md +8 -0
- package/build/cjs/blocks/Map/Map.d.ts +3 -0
- package/build/cjs/blocks/Map/Map.js +15 -0
- package/build/cjs/blocks/Map/schema.d.ts +384 -0
- package/build/cjs/blocks/Map/schema.js +18 -0
- package/build/cjs/blocks/Media/Media.js +5 -27
- package/build/cjs/blocks/Media/schema.d.ts +265 -9
- package/build/cjs/blocks/Media/schema.js +18 -17
- package/build/cjs/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/components/Map/GoogleMap.d.ts +4 -0
- package/build/cjs/components/Map/GoogleMap.js +42 -0
- package/build/cjs/components/Map/Map.css +20 -0
- package/build/cjs/components/Map/Map.d.ts +3 -0
- package/build/cjs/components/Map/Map.js +21 -0
- package/build/cjs/components/Map/YMap/YMap.d.ts +13 -0
- package/build/cjs/components/Map/YMap/YMap.js +97 -0
- package/build/cjs/components/Map/YMap/YandexMap.d.ts +4 -0
- package/build/cjs/components/Map/YMap/YandexMap.js +72 -0
- package/build/cjs/components/Map/YMap/YandexMapApiLoader.d.ts +11 -0
- package/build/cjs/components/Map/YMap/YandexMapApiLoader.js +37 -0
- package/build/cjs/components/Map/YMap/i18n/en.json +4 -0
- package/build/cjs/components/Map/YMap/i18n/index.d.ts +2 -0
- package/build/cjs/components/Map/YMap/i18n/index.js +8 -0
- package/build/cjs/components/Map/YMap/i18n/ru.json +4 -0
- package/build/cjs/components/Map/helpers.d.ts +1 -0
- package/build/cjs/components/Map/helpers.js +7 -0
- package/build/cjs/{blocks/Media/Media.css → components/MediaBase/MediaBase.css} +15 -14
- package/build/cjs/components/MediaBase/MediaBase.d.ts +13 -0
- package/build/cjs/components/MediaBase/MediaBase.js +39 -0
- package/build/{esm/blocks/Media/MediaContent.css → cjs/components/MediaBase/MediaBaseContent.css} +2 -2
- package/build/cjs/{blocks/Media/MediaContent.js → components/MediaBase/MediaBaseContent.js} +1 -1
- package/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -0
- package/build/cjs/containers/PageConstructor/Provider.js +3 -1
- package/build/cjs/context/mapsContext/mapsContext.d.ts +22 -0
- package/build/cjs/context/mapsContext/mapsContext.js +20 -0
- package/build/cjs/context/mapsContext/mapsProvider.d.ts +10 -0
- package/build/cjs/context/mapsContext/mapsProvider.js +15 -0
- package/build/cjs/context/mapsContext/useMap.d.ts +2 -0
- package/build/cjs/context/mapsContext/useMap.js +11 -0
- package/build/cjs/internal-typings/global.d.ts +36 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +18 -9
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/models/constructor-items/common.d.ts +25 -0
- package/build/cjs/schema/index.js +1 -1
- package/build/cjs/schema/validators/blocks.d.ts +1 -0
- package/build/cjs/schema/validators/blocks.js +1 -0
- package/build/cjs/schema/validators/common.d.ts +108 -0
- package/build/cjs/schema/validators/common.js +53 -1
- package/build/cjs/utils/blocks.d.ts +1 -1
- package/build/cjs/utils/common.d.ts +6 -0
- package/build/cjs/utils/common.js +24 -0
- package/build/cjs/utils/index.d.ts +1 -0
- package/build/cjs/utils/index.js +1 -0
- package/build/esm/blocks/Map/Map.d.ts +3 -0
- package/build/esm/blocks/Map/Map.js +11 -0
- package/build/esm/blocks/Map/schema.d.ts +384 -0
- package/build/esm/blocks/Map/schema.js +15 -0
- package/build/esm/blocks/Media/Media.d.ts +0 -1
- package/build/esm/blocks/Media/Media.js +7 -31
- package/build/esm/blocks/Media/schema.d.ts +265 -9
- package/build/esm/blocks/Media/schema.js +17 -16
- package/build/esm/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/components/Map/GoogleMap.d.ts +4 -0
- package/build/esm/components/Map/GoogleMap.js +39 -0
- package/build/esm/components/Map/Map.css +20 -0
- package/build/esm/components/Map/Map.d.ts +4 -0
- package/build/esm/components/Map/Map.js +17 -0
- package/build/esm/components/Map/YMap/YMap.d.ts +13 -0
- package/build/esm/components/Map/YMap/YMap.js +93 -0
- package/build/esm/components/Map/YMap/YandexMap.d.ts +4 -0
- package/build/esm/components/Map/YMap/YandexMap.js +69 -0
- package/build/esm/components/Map/YMap/YandexMapApiLoader.d.ts +11 -0
- package/build/esm/components/Map/YMap/YandexMapApiLoader.js +33 -0
- package/build/esm/components/Map/YMap/i18n/en.json +4 -0
- package/build/esm/components/Map/YMap/i18n/index.d.ts +2 -0
- package/build/esm/components/Map/YMap/i18n/index.js +5 -0
- package/build/esm/components/Map/YMap/i18n/ru.json +4 -0
- package/build/esm/components/Map/helpers.d.ts +1 -0
- package/build/esm/components/Map/helpers.js +3 -0
- package/build/esm/{blocks/Media/Media.css → components/MediaBase/MediaBase.css} +15 -14
- package/build/esm/components/MediaBase/MediaBase.d.ts +14 -0
- package/build/esm/components/MediaBase/MediaBase.js +36 -0
- package/build/{cjs/blocks/Media/MediaContent.css → esm/components/MediaBase/MediaBaseContent.css} +2 -2
- package/build/esm/{blocks/Media/MediaContent.d.ts → components/MediaBase/MediaBaseContent.d.ts} +1 -1
- package/build/esm/{blocks/Media/MediaContent.js → components/MediaBase/MediaBaseContent.js} +2 -2
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/containers/PageConstructor/Provider.d.ts +2 -0
- package/build/esm/containers/PageConstructor/Provider.js +3 -1
- package/build/esm/context/mapsContext/mapsContext.d.ts +22 -0
- package/build/esm/context/mapsContext/mapsContext.js +16 -0
- package/build/esm/context/mapsContext/mapsProvider.d.ts +10 -0
- package/build/esm/context/mapsContext/mapsProvider.js +10 -0
- package/build/esm/context/mapsContext/useMap.d.ts +2 -0
- package/build/esm/context/mapsContext/useMap.js +6 -0
- package/build/esm/internal-typings/global.d.ts +36 -0
- package/build/esm/models/constructor-items/blocks.d.ts +18 -9
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/models/constructor-items/common.d.ts +25 -0
- package/build/esm/schema/index.js +2 -2
- package/build/esm/schema/validators/blocks.d.ts +1 -0
- package/build/esm/schema/validators/blocks.js +1 -0
- package/build/esm/schema/validators/common.d.ts +108 -0
- package/build/esm/schema/validators/common.js +52 -0
- package/build/esm/utils/blocks.d.ts +1 -1
- package/build/esm/utils/common.d.ts +6 -0
- package/build/esm/utils/common.js +20 -0
- package/build/esm/utils/index.d.ts +1 -0
- package/build/esm/utils/index.js +1 -0
- package/package.json +1 -1
- package/server/models/constructor-items/blocks.d.ts +18 -9
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/models/constructor-items/common.d.ts +25 -0
- package/server/utils/blocks.d.ts +1 -1
- package/server/utils/common.d.ts +6 -0
- package/server/utils/common.js +24 -0
- package/server/utils/index.d.ts +1 -0
- package/server/utils/index.js +1 -0
- /package/build/cjs/{blocks/Media/MediaContent.d.ts → components/MediaBase/MediaBaseContent.d.ts} +0 -0
|
@@ -863,6 +863,114 @@ export declare const MediaProps: {
|
|
|
863
863
|
})[];
|
|
864
864
|
};
|
|
865
865
|
};
|
|
866
|
+
export declare const YMapMarkerLabel: {
|
|
867
|
+
type: string;
|
|
868
|
+
required: never[];
|
|
869
|
+
properties: {
|
|
870
|
+
iconCaption: {
|
|
871
|
+
type: string;
|
|
872
|
+
};
|
|
873
|
+
iconContent: {
|
|
874
|
+
type: string;
|
|
875
|
+
};
|
|
876
|
+
iconColor: {
|
|
877
|
+
type: string;
|
|
878
|
+
};
|
|
879
|
+
preset: {
|
|
880
|
+
type: string;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
export declare const YMapMarker: {
|
|
885
|
+
type: string;
|
|
886
|
+
additionalProperties: boolean;
|
|
887
|
+
required: never[];
|
|
888
|
+
properties: {
|
|
889
|
+
coordinate: {
|
|
890
|
+
type: string;
|
|
891
|
+
items: {
|
|
892
|
+
type: string;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
address: {
|
|
896
|
+
type: string;
|
|
897
|
+
};
|
|
898
|
+
label: {
|
|
899
|
+
type: string;
|
|
900
|
+
required: never[];
|
|
901
|
+
properties: {
|
|
902
|
+
iconCaption: {
|
|
903
|
+
type: string;
|
|
904
|
+
};
|
|
905
|
+
iconContent: {
|
|
906
|
+
type: string;
|
|
907
|
+
};
|
|
908
|
+
iconColor: {
|
|
909
|
+
type: string;
|
|
910
|
+
};
|
|
911
|
+
preset: {
|
|
912
|
+
type: string;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
export declare const MapProps: {
|
|
919
|
+
zoom: {
|
|
920
|
+
type: string;
|
|
921
|
+
};
|
|
922
|
+
center: {
|
|
923
|
+
type: string;
|
|
924
|
+
items: {
|
|
925
|
+
type: string;
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
address: {
|
|
929
|
+
type: string;
|
|
930
|
+
};
|
|
931
|
+
id: {
|
|
932
|
+
type: string;
|
|
933
|
+
};
|
|
934
|
+
markers: {
|
|
935
|
+
type: string;
|
|
936
|
+
items: {
|
|
937
|
+
type: {
|
|
938
|
+
type: string;
|
|
939
|
+
additionalProperties: boolean;
|
|
940
|
+
required: never[];
|
|
941
|
+
properties: {
|
|
942
|
+
coordinate: {
|
|
943
|
+
type: string;
|
|
944
|
+
items: {
|
|
945
|
+
type: string;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
address: {
|
|
949
|
+
type: string;
|
|
950
|
+
};
|
|
951
|
+
label: {
|
|
952
|
+
type: string;
|
|
953
|
+
required: never[];
|
|
954
|
+
properties: {
|
|
955
|
+
iconCaption: {
|
|
956
|
+
type: string;
|
|
957
|
+
};
|
|
958
|
+
iconContent: {
|
|
959
|
+
type: string;
|
|
960
|
+
};
|
|
961
|
+
iconColor: {
|
|
962
|
+
type: string;
|
|
963
|
+
};
|
|
964
|
+
preset: {
|
|
965
|
+
type: string;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
};
|
|
866
974
|
export declare const CardBase: {
|
|
867
975
|
border: {
|
|
868
976
|
type: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockHeaderProps = exports.CardBase = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.PlayIconProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
3
|
+
exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.PlayIconProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
4
4
|
const pixel_1 = require("./pixel");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
6
|
const schema_1 = require("../../components/Image/schema");
|
|
@@ -442,6 +442,58 @@ exports.MediaProps = {
|
|
|
442
442
|
},
|
|
443
443
|
dataLens: exports.DataLensProps,
|
|
444
444
|
};
|
|
445
|
+
exports.YMapMarkerLabel = {
|
|
446
|
+
type: 'object',
|
|
447
|
+
required: [],
|
|
448
|
+
properties: {
|
|
449
|
+
iconCaption: {
|
|
450
|
+
type: 'string',
|
|
451
|
+
},
|
|
452
|
+
iconContent: {
|
|
453
|
+
type: 'string',
|
|
454
|
+
},
|
|
455
|
+
iconColor: {
|
|
456
|
+
type: 'string',
|
|
457
|
+
},
|
|
458
|
+
preset: {
|
|
459
|
+
type: 'string',
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
};
|
|
463
|
+
exports.YMapMarker = {
|
|
464
|
+
type: 'object',
|
|
465
|
+
additionalProperties: false,
|
|
466
|
+
required: [],
|
|
467
|
+
properties: {
|
|
468
|
+
coordinate: {
|
|
469
|
+
type: 'array',
|
|
470
|
+
items: { type: 'number' },
|
|
471
|
+
},
|
|
472
|
+
address: {
|
|
473
|
+
type: 'string',
|
|
474
|
+
},
|
|
475
|
+
label: exports.YMapMarkerLabel,
|
|
476
|
+
},
|
|
477
|
+
};
|
|
478
|
+
exports.MapProps = {
|
|
479
|
+
zoom: {
|
|
480
|
+
type: 'number',
|
|
481
|
+
},
|
|
482
|
+
center: {
|
|
483
|
+
type: 'array',
|
|
484
|
+
items: { type: 'number' },
|
|
485
|
+
},
|
|
486
|
+
address: {
|
|
487
|
+
type: 'string',
|
|
488
|
+
},
|
|
489
|
+
id: {
|
|
490
|
+
type: 'string',
|
|
491
|
+
},
|
|
492
|
+
markers: {
|
|
493
|
+
type: 'array',
|
|
494
|
+
items: { type: exports.YMapMarker },
|
|
495
|
+
},
|
|
496
|
+
};
|
|
445
497
|
exports.CardBase = {
|
|
446
498
|
border: {
|
|
447
499
|
type: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConstructorBlock } from '../models/constructor';
|
|
2
2
|
import { TextSize, CustomConfig, PCShareSocialNetwork } from '../models';
|
|
3
|
-
export declare function getHeaderTag(size: TextSize): "h1" | "
|
|
3
|
+
export declare function getHeaderTag(size: TextSize): "h1" | "h2" | "h4";
|
|
4
4
|
export declare function getBlockKey(block: ConstructorBlock, index: number): string;
|
|
5
5
|
export declare const getCustomBlockTypes: ({ blocks, headers }?: CustomConfig) => string[];
|
|
6
6
|
export declare const getCustomItems: ({ blocks, headers, subBlocks }?: CustomConfig) => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadScript = void 0;
|
|
4
|
+
async function loadScript(src, { id, defer = false, async = true }) {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
6
|
+
return new Promise((resolve, reject) => {
|
|
7
|
+
const script = document.createElement('script');
|
|
8
|
+
script.src = src;
|
|
9
|
+
script.id = id;
|
|
10
|
+
script.defer = defer;
|
|
11
|
+
script.async = async;
|
|
12
|
+
script.onload = (event) => {
|
|
13
|
+
resolve(event);
|
|
14
|
+
};
|
|
15
|
+
script.onerror = (event) => {
|
|
16
|
+
var _a;
|
|
17
|
+
const element = document.getElementById(id);
|
|
18
|
+
(_a = element === null || element === void 0 ? void 0 : element.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(element);
|
|
19
|
+
reject(event);
|
|
20
|
+
};
|
|
21
|
+
document.head.appendChild(script);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.loadScript = loadScript;
|
package/build/cjs/utils/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isHubspotEventData = exports.configure = exports.Lang = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./common"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./blocks"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./scroll"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./url"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Map from '../../components/Map/Map';
|
|
4
|
+
import MediaBase from '../../components/MediaBase/MediaBase';
|
|
5
|
+
export const MapBlock = (_a) => {
|
|
6
|
+
var { map } = _a, props = __rest(_a, ["map"]);
|
|
7
|
+
return (React.createElement(MediaBase, Object.assign({}, props),
|
|
8
|
+
React.createElement(MediaBase.Card, null,
|
|
9
|
+
React.createElement(Map, Object.assign({}, map)))));
|
|
10
|
+
};
|
|
11
|
+
export default MapBlock;
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
export declare const Map: {
|
|
2
|
+
type: string;
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
required: never[];
|
|
5
|
+
properties: {
|
|
6
|
+
zoom: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
center: {
|
|
10
|
+
type: string;
|
|
11
|
+
items: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
address: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
id: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
markers: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
type: {
|
|
25
|
+
type: string;
|
|
26
|
+
additionalProperties: boolean;
|
|
27
|
+
required: never[];
|
|
28
|
+
properties: {
|
|
29
|
+
coordinate: {
|
|
30
|
+
type: string;
|
|
31
|
+
items: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
address: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
label: {
|
|
39
|
+
type: string;
|
|
40
|
+
required: never[];
|
|
41
|
+
properties: {
|
|
42
|
+
iconCaption: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
iconContent: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
iconColor: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
preset: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const MapBlock: {
|
|
63
|
+
'map-block': {
|
|
64
|
+
additionalProperties: boolean;
|
|
65
|
+
required: string[];
|
|
66
|
+
properties: {
|
|
67
|
+
map: {
|
|
68
|
+
type: string;
|
|
69
|
+
additionalProperties: boolean;
|
|
70
|
+
required: never[];
|
|
71
|
+
properties: {
|
|
72
|
+
zoom: {
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
center: {
|
|
76
|
+
type: string;
|
|
77
|
+
items: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
address: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
id: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
markers: {
|
|
88
|
+
type: string;
|
|
89
|
+
items: {
|
|
90
|
+
type: {
|
|
91
|
+
type: string;
|
|
92
|
+
additionalProperties: boolean;
|
|
93
|
+
required: never[];
|
|
94
|
+
properties: {
|
|
95
|
+
coordinate: {
|
|
96
|
+
type: string;
|
|
97
|
+
items: {
|
|
98
|
+
type: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
address: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
label: {
|
|
105
|
+
type: string;
|
|
106
|
+
required: never[];
|
|
107
|
+
properties: {
|
|
108
|
+
iconCaption: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
iconContent: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
iconColor: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
preset: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
description: {
|
|
129
|
+
type: string;
|
|
130
|
+
contentType: string;
|
|
131
|
+
};
|
|
132
|
+
direction: {
|
|
133
|
+
type: string;
|
|
134
|
+
enum: string[];
|
|
135
|
+
};
|
|
136
|
+
mobileDirection: {
|
|
137
|
+
type: string;
|
|
138
|
+
enum: string[];
|
|
139
|
+
};
|
|
140
|
+
largeMedia: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
mediaOnly: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
disableShadow: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
button: {
|
|
150
|
+
type: string;
|
|
151
|
+
additionalProperties: boolean;
|
|
152
|
+
properties: {
|
|
153
|
+
text: {
|
|
154
|
+
type: string;
|
|
155
|
+
contentType: string;
|
|
156
|
+
};
|
|
157
|
+
url: {
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
primary: {
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
size: {
|
|
164
|
+
type: string;
|
|
165
|
+
enum: string[];
|
|
166
|
+
};
|
|
167
|
+
theme: {
|
|
168
|
+
type: string;
|
|
169
|
+
enum: string[];
|
|
170
|
+
};
|
|
171
|
+
img: {
|
|
172
|
+
anyOf: ({
|
|
173
|
+
type: string;
|
|
174
|
+
additionalProperties?: undefined;
|
|
175
|
+
required?: undefined;
|
|
176
|
+
properties?: undefined;
|
|
177
|
+
} | {
|
|
178
|
+
type: string;
|
|
179
|
+
additionalProperties: boolean;
|
|
180
|
+
required: string[];
|
|
181
|
+
properties: {
|
|
182
|
+
data: {
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
position: {
|
|
186
|
+
type: string;
|
|
187
|
+
enum: string[];
|
|
188
|
+
};
|
|
189
|
+
alt: {
|
|
190
|
+
type: string;
|
|
191
|
+
contentType: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
})[];
|
|
195
|
+
};
|
|
196
|
+
metrikaGoals: {
|
|
197
|
+
anyOf: ({
|
|
198
|
+
type: string;
|
|
199
|
+
items?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
type: string;
|
|
202
|
+
items: {
|
|
203
|
+
type: string;
|
|
204
|
+
additionalProperties?: undefined;
|
|
205
|
+
required?: undefined;
|
|
206
|
+
properties?: undefined;
|
|
207
|
+
};
|
|
208
|
+
} | {
|
|
209
|
+
type: string;
|
|
210
|
+
items: {
|
|
211
|
+
type: string;
|
|
212
|
+
additionalProperties: boolean;
|
|
213
|
+
required: string[];
|
|
214
|
+
properties: {
|
|
215
|
+
name: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
isCrossSite: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
})[];
|
|
224
|
+
};
|
|
225
|
+
pixelEvents: {
|
|
226
|
+
type: string;
|
|
227
|
+
items: {
|
|
228
|
+
type: string;
|
|
229
|
+
required: string[];
|
|
230
|
+
additionalProperties: boolean;
|
|
231
|
+
properties: {
|
|
232
|
+
name: {
|
|
233
|
+
type: string;
|
|
234
|
+
enum: import("../..").PixelEventType[];
|
|
235
|
+
};
|
|
236
|
+
data: {};
|
|
237
|
+
};
|
|
238
|
+
select: {
|
|
239
|
+
$data: string;
|
|
240
|
+
};
|
|
241
|
+
selectCases: {
|
|
242
|
+
SubmitApplication: {
|
|
243
|
+
additionalProperties: boolean;
|
|
244
|
+
properties: {
|
|
245
|
+
name: {};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
Contact: {
|
|
249
|
+
additionalProperties: boolean;
|
|
250
|
+
properties: {
|
|
251
|
+
name: {};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
Lead: {
|
|
255
|
+
additionalProperties: boolean;
|
|
256
|
+
properties: {
|
|
257
|
+
name: {};
|
|
258
|
+
data: {
|
|
259
|
+
type: string;
|
|
260
|
+
additionalProperties: boolean;
|
|
261
|
+
properties: {
|
|
262
|
+
content_category: {
|
|
263
|
+
type: string;
|
|
264
|
+
};
|
|
265
|
+
content_name: {
|
|
266
|
+
type: string;
|
|
267
|
+
};
|
|
268
|
+
currency: {
|
|
269
|
+
type: string;
|
|
270
|
+
};
|
|
271
|
+
value: {
|
|
272
|
+
type: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
target: {
|
|
282
|
+
type: string;
|
|
283
|
+
enum: string[];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
if: {
|
|
287
|
+
properties: {
|
|
288
|
+
theme: {
|
|
289
|
+
enum: string[];
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
then: {
|
|
294
|
+
required: string[];
|
|
295
|
+
};
|
|
296
|
+
else: {
|
|
297
|
+
required: string[];
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
title: {
|
|
301
|
+
oneOf: ({
|
|
302
|
+
type: string;
|
|
303
|
+
additionalProperties: boolean;
|
|
304
|
+
required: string[];
|
|
305
|
+
properties: {
|
|
306
|
+
text: {
|
|
307
|
+
type: string;
|
|
308
|
+
contentType: string;
|
|
309
|
+
};
|
|
310
|
+
textSize: {
|
|
311
|
+
type: string;
|
|
312
|
+
enum: string[];
|
|
313
|
+
};
|
|
314
|
+
url: {
|
|
315
|
+
type: string;
|
|
316
|
+
};
|
|
317
|
+
resetMargin: {
|
|
318
|
+
type: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
type: string;
|
|
323
|
+
contentType: string;
|
|
324
|
+
})[];
|
|
325
|
+
};
|
|
326
|
+
size: {
|
|
327
|
+
type: string;
|
|
328
|
+
enum: string[];
|
|
329
|
+
};
|
|
330
|
+
additionalInfo: {
|
|
331
|
+
type: string;
|
|
332
|
+
contentType: string;
|
|
333
|
+
};
|
|
334
|
+
links: {
|
|
335
|
+
type: string;
|
|
336
|
+
items: {
|
|
337
|
+
type: string;
|
|
338
|
+
properties: {
|
|
339
|
+
when: {
|
|
340
|
+
type: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
buttons: {
|
|
346
|
+
type: string;
|
|
347
|
+
items: {
|
|
348
|
+
type: string;
|
|
349
|
+
properties: {
|
|
350
|
+
when: {
|
|
351
|
+
type: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
animated: {
|
|
357
|
+
type: string;
|
|
358
|
+
};
|
|
359
|
+
anchor: {
|
|
360
|
+
type: string;
|
|
361
|
+
additionalProperties: boolean;
|
|
362
|
+
required: string[];
|
|
363
|
+
properties: {
|
|
364
|
+
text: {
|
|
365
|
+
type: string;
|
|
366
|
+
contentType: string;
|
|
367
|
+
};
|
|
368
|
+
url: {
|
|
369
|
+
type: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
visible: {
|
|
374
|
+
type: string;
|
|
375
|
+
enum: string[];
|
|
376
|
+
};
|
|
377
|
+
resetPaddings: {
|
|
378
|
+
type: string;
|
|
379
|
+
};
|
|
380
|
+
type: {};
|
|
381
|
+
when: {};
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MapProps } from '../../schema/validators/common';
|
|
2
|
+
import { MediaBlockBaseProps } from '../Media/schema';
|
|
3
|
+
export const Map = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: [],
|
|
7
|
+
properties: MapProps,
|
|
8
|
+
};
|
|
9
|
+
export const MapBlock = {
|
|
10
|
+
'map-block': {
|
|
11
|
+
additionalProperties: false,
|
|
12
|
+
required: ['title', 'map'],
|
|
13
|
+
properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { map: Map }),
|
|
14
|
+
},
|
|
15
|
+
};
|