@gravity-ui/page-constructor 1.8.0-alfa.1 → 1.8.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 +23 -0
- package/README.md +58 -36
- package/build/cjs/blocks/Banner/schema.d.ts +0 -12
- package/build/cjs/blocks/Banner/schema.js +0 -2
- package/build/cjs/blocks/CardLayout/schema.d.ts +0 -8
- package/build/cjs/blocks/CardLayout/schema.js +1 -2
- package/build/cjs/blocks/Companies/schema.d.ts +0 -2
- package/build/cjs/blocks/Companies/schema.js +0 -2
- package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -6
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -7
- package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -4
- package/build/cjs/blocks/Header/schema.d.ts +0 -16
- package/build/cjs/blocks/Header/schema.js +0 -5
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -11
- package/build/cjs/blocks/Icons/schema.d.ts +0 -6
- package/build/cjs/blocks/Icons/schema.js +0 -2
- package/build/cjs/blocks/Info/schema.d.ts +0 -10
- package/build/cjs/blocks/Info/schema.js +0 -2
- package/build/cjs/blocks/LinkTable/schema.d.ts +0 -2
- package/build/cjs/blocks/Media/schema.d.ts +0 -9
- package/build/cjs/blocks/Media/schema.js +1 -3
- package/build/cjs/blocks/Preview/schema.d.ts +0 -2
- package/build/cjs/blocks/Preview/schema.js +0 -4
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -4
- package/build/cjs/blocks/Questions/schema.d.ts +0 -5
- package/build/cjs/blocks/Questions/schema.js +0 -2
- package/build/cjs/blocks/Security/schema.d.ts +0 -2
- package/build/cjs/blocks/Security/schema.js +0 -2
- package/build/cjs/blocks/Simple/schema.d.ts +0 -3
- package/build/cjs/blocks/Simple/schema.js +0 -1
- package/build/cjs/blocks/Slider/schema.d.ts +0 -7
- package/build/cjs/blocks/Slider/schema.js +0 -2
- package/build/cjs/blocks/Table/schema.d.ts +0 -4
- package/build/cjs/blocks/Table/schema.js +0 -3
- package/build/cjs/blocks/Tabs/schema.d.ts +0 -8
- package/build/cjs/blocks/Tabs/schema.js +0 -4
- package/build/cjs/components/Author/schema.d.ts +0 -3
- package/build/cjs/components/Image/schema.d.ts +0 -2
- package/build/cjs/components/Image/schema.js +0 -2
- package/build/cjs/components/OverflowScroller/OverflowScroller.css +2 -0
- package/build/cjs/components/RouterLink/RouterLink.d.ts +1 -0
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +40 -39
- package/build/cjs/components/navigation/components/Header/Header.css +85 -0
- package/build/cjs/components/navigation/components/Header/Header.d.ts +8 -0
- package/build/cjs/components/navigation/components/Header/Header.js +55 -0
- package/build/cjs/components/navigation/components/Logo/Logo.css +23 -0
- package/build/cjs/components/navigation/components/Logo/Logo.d.ts +7 -0
- package/build/cjs/components/navigation/components/Logo/Logo.js +17 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +13 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.js +45 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.css +43 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.d.ts +18 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.js +69 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.d.ts +10 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.js +59 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +10 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.js +45 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +7 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.js +14 -0
- package/build/cjs/components/navigation/components/index.d.ts +7 -0
- package/build/cjs/components/navigation/components/index.js +20 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.css +10 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.d.ts +8 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.js +11 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +3 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.js +12 -10
- package/build/cjs/context/locationContext/locationContext.d.ts +1 -0
- package/build/cjs/icons/NavigationArrow.d.ts +2 -0
- package/build/cjs/icons/NavigationArrow.js +9 -0
- package/build/cjs/icons/NavigationClose.d.ts +2 -0
- package/build/cjs/icons/NavigationClose.js +9 -0
- package/build/cjs/icons/NavigationOpen.d.ts +2 -0
- package/build/cjs/icons/NavigationOpen.js +11 -0
- package/build/cjs/icons/index.d.ts +3 -0
- package/build/cjs/icons/index.js +3 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -4
- package/build/cjs/models/index.d.ts +1 -0
- package/build/cjs/models/index.js +1 -0
- package/build/cjs/models/navigation.d.ts +62 -0
- package/build/cjs/models/navigation.js +10 -0
- package/build/cjs/schema/index.d.ts +0 -2
- package/build/cjs/schema/validators/common.d.ts +0 -17
- package/build/cjs/schema/validators/common.js +0 -11
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -5
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +0 -4
- package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +0 -8
- package/build/cjs/sub-blocks/CardWithImage/schema.js +1 -4
- package/build/cjs/sub-blocks/Content/schema.d.ts +0 -8
- package/build/cjs/sub-blocks/Content/schema.js +1 -3
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +3 -0
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/NewsCard/schema.js +0 -1
- package/build/cjs/sub-blocks/Partner/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/Partner/schema.js +0 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +0 -8
- package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -4
- package/build/cjs/sub-blocks/Quote/schema.js +0 -1
- package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +0 -2
- package/build/cjs/sub-blocks/TutorialCard/schema.js +0 -2
- package/build/cjs/text-transform/blocks.js +0 -1
- package/build/esm/blocks/Banner/schema.d.ts +0 -12
- package/build/esm/blocks/Banner/schema.js +0 -2
- package/build/esm/blocks/CardLayout/schema.d.ts +0 -8
- package/build/esm/blocks/CardLayout/schema.js +1 -2
- package/build/esm/blocks/Companies/schema.d.ts +0 -2
- package/build/esm/blocks/Companies/schema.js +0 -2
- package/build/esm/blocks/ContentLayout/schema.d.ts +0 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -7
- package/build/esm/blocks/ExtendedFeatures/schema.js +1 -4
- package/build/esm/blocks/Header/schema.d.ts +0 -16
- package/build/esm/blocks/Header/schema.js +0 -5
- package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -11
- package/build/esm/blocks/Icons/schema.d.ts +0 -6
- package/build/esm/blocks/Icons/schema.js +0 -2
- package/build/esm/blocks/Info/schema.d.ts +0 -10
- package/build/esm/blocks/Info/schema.js +0 -2
- package/build/esm/blocks/LinkTable/schema.d.ts +0 -2
- package/build/esm/blocks/Media/schema.d.ts +0 -9
- package/build/esm/blocks/Media/schema.js +1 -3
- package/build/esm/blocks/Preview/schema.d.ts +0 -2
- package/build/esm/blocks/Preview/schema.js +0 -4
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -4
- package/build/esm/blocks/Questions/schema.d.ts +0 -5
- package/build/esm/blocks/Questions/schema.js +0 -2
- package/build/esm/blocks/Security/schema.d.ts +0 -2
- package/build/esm/blocks/Security/schema.js +0 -2
- package/build/esm/blocks/Simple/schema.d.ts +0 -3
- package/build/esm/blocks/Simple/schema.js +0 -1
- package/build/esm/blocks/Slider/schema.d.ts +0 -7
- package/build/esm/blocks/Slider/schema.js +0 -2
- package/build/esm/blocks/Table/schema.d.ts +0 -4
- package/build/esm/blocks/Table/schema.js +0 -3
- package/build/esm/blocks/Tabs/schema.d.ts +0 -8
- package/build/esm/blocks/Tabs/schema.js +0 -4
- package/build/esm/components/Author/schema.d.ts +0 -3
- package/build/esm/components/Image/schema.d.ts +0 -2
- package/build/esm/components/Image/schema.js +0 -2
- package/build/esm/components/OverflowScroller/OverflowScroller.css +2 -0
- package/build/esm/components/RouterLink/RouterLink.d.ts +1 -0
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/components/navigation/components/Header/Header.css +85 -0
- package/build/esm/components/navigation/components/Header/Header.d.ts +9 -0
- package/build/esm/components/navigation/components/Header/Header.js +51 -0
- package/build/esm/components/navigation/components/Logo/Logo.css +23 -0
- package/build/esm/components/navigation/components/Logo/Logo.d.ts +8 -0
- package/build/esm/components/navigation/components/Logo/Logo.js +15 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +14 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.js +43 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.css +43 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.d.ts +19 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.js +68 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.d.ts +11 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.js +58 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +11 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.js +41 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +8 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.js +12 -0
- package/build/esm/components/navigation/components/index.d.ts +7 -0
- package/build/esm/components/navigation/components/index.js +7 -0
- package/build/esm/components/navigation/containers/Layout/Layout.css +10 -0
- package/build/esm/components/navigation/containers/Layout/Layout.d.ts +9 -0
- package/build/esm/components/navigation/containers/Layout/Layout.js +9 -0
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +3 -2
- package/build/esm/containers/PageConstructor/PageConstructor.js +12 -10
- package/build/esm/context/locationContext/locationContext.d.ts +1 -0
- package/build/esm/icons/NavigationArrow.d.ts +2 -0
- package/build/esm/icons/NavigationArrow.js +4 -0
- package/build/esm/icons/NavigationClose.d.ts +2 -0
- package/build/esm/icons/NavigationClose.js +4 -0
- package/build/esm/icons/NavigationOpen.d.ts +2 -0
- package/build/esm/icons/NavigationOpen.js +6 -0
- package/build/esm/icons/index.d.ts +3 -0
- package/build/esm/icons/index.js +3 -0
- package/build/esm/models/constructor-items/blocks.d.ts +2 -4
- package/build/esm/models/index.d.ts +1 -0
- package/build/esm/models/index.js +1 -0
- package/build/esm/models/navigation.d.ts +62 -0
- package/build/esm/models/navigation.js +7 -0
- package/build/esm/schema/index.d.ts +0 -2
- package/build/esm/schema/validators/common.d.ts +0 -17
- package/build/esm/schema/validators/common.js +0 -11
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -5
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +0 -4
- package/build/esm/sub-blocks/CardWithImage/schema.d.ts +0 -8
- package/build/esm/sub-blocks/CardWithImage/schema.js +1 -4
- package/build/esm/sub-blocks/Content/schema.d.ts +0 -8
- package/build/esm/sub-blocks/Content/schema.js +1 -3
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +3 -0
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +0 -1
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +0 -1
- package/build/esm/sub-blocks/NewsCard/schema.js +0 -1
- package/build/esm/sub-blocks/Partner/schema.d.ts +0 -1
- package/build/esm/sub-blocks/Partner/schema.js +0 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +0 -8
- package/build/esm/sub-blocks/Quote/schema.d.ts +0 -4
- package/build/esm/sub-blocks/Quote/schema.js +0 -1
- package/build/esm/sub-blocks/TutorialCard/schema.d.ts +0 -2
- package/build/esm/sub-blocks/TutorialCard/schema.js +0 -2
- package/build/esm/text-transform/blocks.js +0 -1
- package/package.json +2 -5
- package/server/models/constructor-items/blocks.d.ts +2 -4
- package/server/models/index.d.ts +1 -0
- package/server/models/index.js +1 -0
- package/server/models/navigation.d.ts +62 -0
- package/server/models/navigation.js +10 -0
- package/server/text-transform/blocks.js +0 -1
- package/styles/mixins.scss +38 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.8.1](https://github.com/gravity-ui/page-constructor/compare/v1.8.0...v1.8.1) (2022-12-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* hs form field width limitations ([fe45a77](https://github.com/gravity-ui/page-constructor/commit/fe45a77f0dbeae555110602845307fd9c47f8495))
|
|
9
|
+
|
|
10
|
+
## [1.8.0](https://github.com/gravity-ui/page-constructor/compare/v1.7.1...v1.8.0) (2022-12-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add **navigation** ([99493a4](https://github.com/gravity-ui/page-constructor/commit/99493a4ab17af679bba250b3c7d00b4fe9256baa))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [1.7.1](https://github.com/gravity-ui/page-constructor/compare/v1.7.0...v1.7.1) (2022-11-29)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **ExtendedFeatures:** add props ([6254d62](https://github.com/gravity-ui/page-constructor/commit/6254d62b9ceded154d0fdcded9a554fd33772d13))
|
|
24
|
+
* storybook content ([b98eccc](https://github.com/gravity-ui/page-constructor/commit/b98ecccc96cfba2376552e4c9314a559913455d9))
|
|
25
|
+
|
|
3
26
|
## [1.7.0](https://github.com/gravity-ui/page-constructor/compare/v1.6.1...v1.7.0) (2022-11-10)
|
|
4
27
|
|
|
5
28
|
|
package/README.md
CHANGED
|
@@ -32,59 +32,81 @@ const Page: WithChildren<PageProps> = ({content}) => (
|
|
|
32
32
|
|
|
33
33
|
```typescript
|
|
34
34
|
interface PageConstructorProps {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
content: PageContent; //Blocks data in JSON format.
|
|
36
|
+
shouldRenderBlock?: ShouldRenderBlock; // A function that is invoked when rendering each block and lets you set conditions for its display.
|
|
37
|
+
custom?: Custom; //Custom blocks (see `Customization`).
|
|
38
|
+
renderMenu?: () => React.ReactNode; //A function that renders the page menu with navigation (we plan to add rendering for the default menu version).
|
|
39
|
+
navigation?: NavigationData; // Navigation data for using navigation component in JSON format
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
interface PageConstructorProviderProps {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
isMobile?: boolean; //A flag indicating that the code is executed in mobile mode.
|
|
44
|
+
locale?: LocaleContextProps; //Info about the language and domain (used when generating and formatting links).
|
|
45
|
+
location?: Location; //API of the browser or router history, the page URL.
|
|
46
|
+
metrika?: Metrika; //Functions for sending analytics
|
|
47
|
+
ssrConfig?: SSR; //A flag indicating that the code is run on the server size.
|
|
48
|
+
theme?: 'light' | 'dark'; //Theme to render the page with.
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export interface PageContent extends Animatable {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
blocks: Block[];
|
|
53
|
+
menu?: Menu;
|
|
54
|
+
background?: MediaProps;
|
|
55
|
+
footnotes?: string[];
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
interface Custom {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
blocks?: CustomItems;
|
|
60
|
+
subBlocks?: CustomItems;
|
|
61
|
+
headers?: CustomItems;
|
|
62
|
+
loadable?: LoadableConfig;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
type ShouldRenderBlock = (block: Block, blockKey: string) => Boolean;
|
|
65
66
|
|
|
66
|
-
interface Location
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
interface Locale = {
|
|
75
|
-
lang?: Lang;
|
|
76
|
-
tld?: string;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
interface SSR = {
|
|
80
|
-
isServer?: boolean;
|
|
67
|
+
interface Location {
|
|
68
|
+
history?: History;
|
|
69
|
+
search?: string;
|
|
70
|
+
hash?: string;
|
|
71
|
+
pathname?: string;
|
|
72
|
+
hostname?: string;
|
|
81
73
|
}
|
|
82
74
|
|
|
83
|
-
interface
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
interface Locale {
|
|
76
|
+
lang?: Lang;
|
|
77
|
+
tld?: string;
|
|
86
78
|
}
|
|
87
79
|
|
|
80
|
+
interface SSR {
|
|
81
|
+
isServer?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface Metrika {
|
|
85
|
+
metrika?: any;
|
|
86
|
+
pixel?: any;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface NavigationData {
|
|
90
|
+
logo: NavigationLogo;
|
|
91
|
+
header: HeaderData;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface NavigationLogo {
|
|
95
|
+
icon: ImageProps;
|
|
96
|
+
text?: string;
|
|
97
|
+
url?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface HeaderData {
|
|
101
|
+
leftItems: NavigationItem[];
|
|
102
|
+
rightItems?: NavigationItem[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface NavigationLogo {
|
|
106
|
+
icon: ImageProps;
|
|
107
|
+
text?: string;
|
|
108
|
+
url?: string;
|
|
109
|
+
}
|
|
88
110
|
```
|
|
89
111
|
|
|
90
112
|
### Custom blocks
|
|
@@ -4,11 +4,9 @@ export declare const BannerCardProps: {
|
|
|
4
4
|
properties: {
|
|
5
5
|
title: {
|
|
6
6
|
type: string;
|
|
7
|
-
content: string;
|
|
8
7
|
};
|
|
9
8
|
subtitle: {
|
|
10
9
|
type: string;
|
|
11
|
-
content: string;
|
|
12
10
|
};
|
|
13
11
|
image: {
|
|
14
12
|
oneOf: ({
|
|
@@ -47,7 +45,6 @@ export declare const BannerCardProps: {
|
|
|
47
45
|
properties: {
|
|
48
46
|
text: {
|
|
49
47
|
type: string;
|
|
50
|
-
content: string;
|
|
51
48
|
};
|
|
52
49
|
url: {
|
|
53
50
|
type: string;
|
|
@@ -83,7 +80,6 @@ export declare const BannerCardProps: {
|
|
|
83
80
|
};
|
|
84
81
|
alt: {
|
|
85
82
|
type: string;
|
|
86
|
-
content: string;
|
|
87
83
|
};
|
|
88
84
|
};
|
|
89
85
|
})[];
|
|
@@ -206,11 +202,9 @@ export declare const BannerBlock: {
|
|
|
206
202
|
properties: {
|
|
207
203
|
title: {
|
|
208
204
|
type: string;
|
|
209
|
-
content: string;
|
|
210
205
|
};
|
|
211
206
|
subtitle: {
|
|
212
207
|
type: string;
|
|
213
|
-
content: string;
|
|
214
208
|
};
|
|
215
209
|
image: {
|
|
216
210
|
oneOf: ({
|
|
@@ -249,7 +243,6 @@ export declare const BannerBlock: {
|
|
|
249
243
|
properties: {
|
|
250
244
|
text: {
|
|
251
245
|
type: string;
|
|
252
|
-
content: string;
|
|
253
246
|
};
|
|
254
247
|
url: {
|
|
255
248
|
type: string;
|
|
@@ -285,7 +278,6 @@ export declare const BannerBlock: {
|
|
|
285
278
|
};
|
|
286
279
|
alt: {
|
|
287
280
|
type: string;
|
|
288
|
-
content: string;
|
|
289
281
|
};
|
|
290
282
|
};
|
|
291
283
|
})[];
|
|
@@ -409,11 +401,9 @@ export declare const BannerCard: {
|
|
|
409
401
|
properties: {
|
|
410
402
|
title: {
|
|
411
403
|
type: string;
|
|
412
|
-
content: string;
|
|
413
404
|
};
|
|
414
405
|
subtitle: {
|
|
415
406
|
type: string;
|
|
416
|
-
content: string;
|
|
417
407
|
};
|
|
418
408
|
image: {
|
|
419
409
|
oneOf: ({
|
|
@@ -452,7 +442,6 @@ export declare const BannerCard: {
|
|
|
452
442
|
properties: {
|
|
453
443
|
text: {
|
|
454
444
|
type: string;
|
|
455
|
-
content: string;
|
|
456
445
|
};
|
|
457
446
|
url: {
|
|
458
447
|
type: string;
|
|
@@ -488,7 +477,6 @@ export declare const BannerCard: {
|
|
|
488
477
|
};
|
|
489
478
|
alt: {
|
|
490
479
|
type: string;
|
|
491
|
-
content: string;
|
|
492
480
|
};
|
|
493
481
|
};
|
|
494
482
|
})[];
|
|
@@ -7,10 +7,8 @@ exports.BannerCardProps = {
|
|
|
7
7
|
required: ['title', 'button'],
|
|
8
8
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
9
9
|
type: 'string',
|
|
10
|
-
content: 'text',
|
|
11
10
|
}, subtitle: {
|
|
12
11
|
type: 'string',
|
|
13
|
-
content: 'yfm',
|
|
14
12
|
}, image: (0, common_1.withTheme)({
|
|
15
13
|
type: 'string',
|
|
16
14
|
}), disableCompress: {
|
|
@@ -10,7 +10,6 @@ export declare const CardLayoutProps: {
|
|
|
10
10
|
properties: {
|
|
11
11
|
text: {
|
|
12
12
|
type: string;
|
|
13
|
-
content: string;
|
|
14
13
|
};
|
|
15
14
|
textSize: {
|
|
16
15
|
type: string;
|
|
@@ -25,12 +24,10 @@ export declare const CardLayoutProps: {
|
|
|
25
24
|
};
|
|
26
25
|
} | {
|
|
27
26
|
type: string;
|
|
28
|
-
content: string;
|
|
29
27
|
})[];
|
|
30
28
|
};
|
|
31
29
|
description: {
|
|
32
30
|
type: string;
|
|
33
|
-
content: string;
|
|
34
31
|
};
|
|
35
32
|
colSizes: {
|
|
36
33
|
type: string;
|
|
@@ -53,7 +50,6 @@ export declare const CardLayoutProps: {
|
|
|
53
50
|
properties: {
|
|
54
51
|
text: {
|
|
55
52
|
type: string;
|
|
56
|
-
content: string;
|
|
57
53
|
};
|
|
58
54
|
url: {
|
|
59
55
|
type: string;
|
|
@@ -84,7 +80,6 @@ export declare const CardLayoutBlock: {
|
|
|
84
80
|
properties: {
|
|
85
81
|
text: {
|
|
86
82
|
type: string;
|
|
87
|
-
content: string;
|
|
88
83
|
};
|
|
89
84
|
textSize: {
|
|
90
85
|
type: string;
|
|
@@ -99,12 +94,10 @@ export declare const CardLayoutBlock: {
|
|
|
99
94
|
};
|
|
100
95
|
} | {
|
|
101
96
|
type: string;
|
|
102
|
-
content: string;
|
|
103
97
|
})[];
|
|
104
98
|
};
|
|
105
99
|
description: {
|
|
106
100
|
type: string;
|
|
107
|
-
content: string;
|
|
108
101
|
};
|
|
109
102
|
colSizes: {
|
|
110
103
|
type: string;
|
|
@@ -127,7 +120,6 @@ export declare const CardLayoutBlock: {
|
|
|
127
120
|
properties: {
|
|
128
121
|
text: {
|
|
129
122
|
type: string;
|
|
130
|
-
content: string;
|
|
131
123
|
};
|
|
132
124
|
url: {
|
|
133
125
|
type: string;
|
|
@@ -6,10 +6,9 @@ exports.CardLayoutProps = {
|
|
|
6
6
|
additionalProperties: false,
|
|
7
7
|
required: ['title'],
|
|
8
8
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
9
|
-
oneOf: [{ type: 'string'
|
|
9
|
+
oneOf: [{ type: 'string' }, common_1.TitleProps],
|
|
10
10
|
}, description: {
|
|
11
11
|
type: 'string',
|
|
12
|
-
content: 'text',
|
|
13
12
|
}, colSizes: common_1.containerSizesObject, children: common_1.ChildrenCardsProps }),
|
|
14
13
|
};
|
|
15
14
|
exports.CardLayoutBlock = {
|
|
@@ -5,7 +5,6 @@ export declare const CompaniesBlock: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
7
|
type: string;
|
|
8
|
-
content: string;
|
|
9
8
|
};
|
|
10
9
|
images: {
|
|
11
10
|
oneOf: ({
|
|
@@ -23,7 +22,6 @@ export declare const CompaniesBlock: {
|
|
|
23
22
|
};
|
|
24
23
|
alt: {
|
|
25
24
|
type: string;
|
|
26
|
-
content: string;
|
|
27
25
|
};
|
|
28
26
|
};
|
|
29
27
|
} | {
|
|
@@ -8,7 +8,6 @@ exports.CompaniesBlock = {
|
|
|
8
8
|
required: ['title', 'images'],
|
|
9
9
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
10
10
|
type: 'string',
|
|
11
|
-
content: 'text',
|
|
12
11
|
}, images: (0, common_1.withTheme)({
|
|
13
12
|
type: 'object',
|
|
14
13
|
required: ['desktop', 'tablet', 'mobile'],
|
|
@@ -24,7 +23,6 @@ exports.CompaniesBlock = {
|
|
|
24
23
|
},
|
|
25
24
|
alt: {
|
|
26
25
|
type: 'string',
|
|
27
|
-
content: 'text',
|
|
28
26
|
},
|
|
29
27
|
},
|
|
30
28
|
}) }),
|
|
@@ -18,7 +18,6 @@ export declare const ContentLayoutBlock: {
|
|
|
18
18
|
properties: {
|
|
19
19
|
text: {
|
|
20
20
|
type: string;
|
|
21
|
-
content: string;
|
|
22
21
|
};
|
|
23
22
|
textSize: {
|
|
24
23
|
type: string;
|
|
@@ -33,16 +32,13 @@ export declare const ContentLayoutBlock: {
|
|
|
33
32
|
};
|
|
34
33
|
} | {
|
|
35
34
|
type: string;
|
|
36
|
-
content: string;
|
|
37
35
|
})[];
|
|
38
36
|
};
|
|
39
37
|
text: {
|
|
40
38
|
type: string;
|
|
41
|
-
content: string;
|
|
42
39
|
};
|
|
43
40
|
additionalInfo: {
|
|
44
41
|
type: string;
|
|
45
|
-
content: string;
|
|
46
42
|
};
|
|
47
43
|
size: {
|
|
48
44
|
type: string;
|
|
@@ -104,7 +100,6 @@ export declare const ContentLayoutBlock: {
|
|
|
104
100
|
};
|
|
105
101
|
alt: {
|
|
106
102
|
type: string;
|
|
107
|
-
content: string;
|
|
108
103
|
};
|
|
109
104
|
disableCompress: {
|
|
110
105
|
type: string;
|
|
@@ -130,7 +125,6 @@ export declare const ContentLayoutBlock: {
|
|
|
130
125
|
properties: {
|
|
131
126
|
text: {
|
|
132
127
|
type: string;
|
|
133
|
-
content: string;
|
|
134
128
|
};
|
|
135
129
|
url: {
|
|
136
130
|
type: string;
|
|
@@ -21,7 +21,7 @@ const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_S
|
|
|
21
21
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
|
|
22
22
|
react_1.default.createElement(components_1.BlockHeader, { title: title, description: description, className: b('header') }),
|
|
23
23
|
react_1.default.createElement("div", { className: b('items') },
|
|
24
|
-
react_1.default.createElement(grid_1.Row, null, items.map(({ title: itemTitle, text, link, links, label, icon }) => {
|
|
24
|
+
react_1.default.createElement(grid_1.Row, null, items.map(({ title: itemTitle, text, link, links, label, icon, buttons, additionalInfo, }) => {
|
|
25
25
|
const itemLinks = links || [];
|
|
26
26
|
const iconThemed = icon && (0, utils_1.getThemedValue)(icon, theme);
|
|
27
27
|
const iconData = iconThemed && (0, utils_2.getMediaImage)(iconThemed);
|
|
@@ -34,7 +34,7 @@ const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_S
|
|
|
34
34
|
itemTitle && (react_1.default.createElement("h5", { className: b('item-title') },
|
|
35
35
|
react_1.default.createElement(components_1.HTML, null, itemTitle),
|
|
36
36
|
label && (react_1.default.createElement("div", { className: b('item-label') }, label)))),
|
|
37
|
-
react_1.default.createElement(sub_blocks_1.Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 } }))));
|
|
37
|
+
react_1.default.createElement(sub_blocks_1.Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
|
|
38
38
|
})))));
|
|
39
39
|
};
|
|
40
40
|
exports.ExtendedFeaturesBlock = ExtendedFeaturesBlock;
|
|
@@ -4,11 +4,9 @@ export declare const ExtendedFeaturesItem: {
|
|
|
4
4
|
properties: {
|
|
5
5
|
title: {
|
|
6
6
|
type: string;
|
|
7
|
-
content: string;
|
|
8
7
|
};
|
|
9
8
|
text: {
|
|
10
9
|
type: string;
|
|
11
|
-
content: string;
|
|
12
10
|
};
|
|
13
11
|
label: {
|
|
14
12
|
type: string;
|
|
@@ -21,7 +19,6 @@ export declare const ExtendedFeaturesItem: {
|
|
|
21
19
|
properties: {
|
|
22
20
|
text: {
|
|
23
21
|
type: string;
|
|
24
|
-
content: string;
|
|
25
22
|
};
|
|
26
23
|
url: {
|
|
27
24
|
type: string;
|
|
@@ -63,7 +60,6 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
63
60
|
properties: {
|
|
64
61
|
text: {
|
|
65
62
|
type: string;
|
|
66
|
-
content: string;
|
|
67
63
|
};
|
|
68
64
|
textSize: {
|
|
69
65
|
type: string;
|
|
@@ -78,12 +74,10 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
78
74
|
};
|
|
79
75
|
} | {
|
|
80
76
|
type: string;
|
|
81
|
-
content: string;
|
|
82
77
|
})[];
|
|
83
78
|
};
|
|
84
79
|
description: {
|
|
85
80
|
type: string;
|
|
86
|
-
content: string;
|
|
87
81
|
};
|
|
88
82
|
items: {
|
|
89
83
|
type: string;
|
|
@@ -111,7 +105,6 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
111
105
|
properties: {
|
|
112
106
|
text: {
|
|
113
107
|
type: string;
|
|
114
|
-
content: string;
|
|
115
108
|
};
|
|
116
109
|
url: {
|
|
117
110
|
type: string;
|
|
@@ -9,11 +9,9 @@ exports.ExtendedFeaturesItem = {
|
|
|
9
9
|
properties: {
|
|
10
10
|
title: {
|
|
11
11
|
type: 'string',
|
|
12
|
-
content: 'text',
|
|
13
12
|
},
|
|
14
13
|
text: {
|
|
15
14
|
type: 'string',
|
|
16
|
-
content: 'yfm',
|
|
17
15
|
},
|
|
18
16
|
label: {
|
|
19
17
|
type: 'string',
|
|
@@ -30,10 +28,9 @@ exports.ExtendedFeaturesBlock = {
|
|
|
30
28
|
additionalProperties: false,
|
|
31
29
|
required: [],
|
|
32
30
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
33
|
-
oneOf: [{ type: 'string'
|
|
31
|
+
oneOf: [{ type: 'string' }, common_1.TitleProps],
|
|
34
32
|
}, description: {
|
|
35
33
|
type: 'string',
|
|
36
|
-
content: 'yfm',
|
|
37
34
|
}, items: (0, utils_1.filteredArray)(exports.ExtendedFeaturesItem), colSizes: common_1.containerSizesObject }),
|
|
38
35
|
},
|
|
39
36
|
};
|
|
@@ -97,7 +97,6 @@ export declare const HeaderBackgroundProps: {
|
|
|
97
97
|
};
|
|
98
98
|
text: {
|
|
99
99
|
type: string;
|
|
100
|
-
content: string;
|
|
101
100
|
};
|
|
102
101
|
};
|
|
103
102
|
};
|
|
@@ -142,15 +141,12 @@ export declare const HeaderBackgroundProps: {
|
|
|
142
141
|
export declare const HeaderProperties: {
|
|
143
142
|
title: {
|
|
144
143
|
type: string;
|
|
145
|
-
content: string;
|
|
146
144
|
};
|
|
147
145
|
overtitle: {
|
|
148
146
|
type: string;
|
|
149
|
-
content: string;
|
|
150
147
|
};
|
|
151
148
|
description: {
|
|
152
149
|
type: string;
|
|
153
|
-
content: string;
|
|
154
150
|
};
|
|
155
151
|
width: {
|
|
156
152
|
type: string;
|
|
@@ -247,7 +243,6 @@ export declare const HeaderProperties: {
|
|
|
247
243
|
};
|
|
248
244
|
text: {
|
|
249
245
|
type: string;
|
|
250
|
-
content: string;
|
|
251
246
|
};
|
|
252
247
|
};
|
|
253
248
|
};
|
|
@@ -272,7 +267,6 @@ export declare const HeaderProperties: {
|
|
|
272
267
|
};
|
|
273
268
|
title: {
|
|
274
269
|
type: string;
|
|
275
|
-
content: string;
|
|
276
270
|
};
|
|
277
271
|
};
|
|
278
272
|
};
|
|
@@ -384,7 +378,6 @@ export declare const HeaderProperties: {
|
|
|
384
378
|
};
|
|
385
379
|
text: {
|
|
386
380
|
type: string;
|
|
387
|
-
content: string;
|
|
388
381
|
};
|
|
389
382
|
};
|
|
390
383
|
};
|
|
@@ -453,7 +446,6 @@ export declare const HeaderProperties: {
|
|
|
453
446
|
};
|
|
454
447
|
text: {
|
|
455
448
|
type: string;
|
|
456
|
-
content: string;
|
|
457
449
|
};
|
|
458
450
|
};
|
|
459
451
|
};
|
|
@@ -475,15 +467,12 @@ export declare const HeaderBlock: {
|
|
|
475
467
|
properties: {
|
|
476
468
|
title: {
|
|
477
469
|
type: string;
|
|
478
|
-
content: string;
|
|
479
470
|
};
|
|
480
471
|
overtitle: {
|
|
481
472
|
type: string;
|
|
482
|
-
content: string;
|
|
483
473
|
};
|
|
484
474
|
description: {
|
|
485
475
|
type: string;
|
|
486
|
-
content: string;
|
|
487
476
|
};
|
|
488
477
|
width: {
|
|
489
478
|
type: string;
|
|
@@ -580,7 +569,6 @@ export declare const HeaderBlock: {
|
|
|
580
569
|
};
|
|
581
570
|
text: {
|
|
582
571
|
type: string;
|
|
583
|
-
content: string;
|
|
584
572
|
};
|
|
585
573
|
};
|
|
586
574
|
};
|
|
@@ -605,7 +593,6 @@ export declare const HeaderBlock: {
|
|
|
605
593
|
};
|
|
606
594
|
title: {
|
|
607
595
|
type: string;
|
|
608
|
-
content: string;
|
|
609
596
|
};
|
|
610
597
|
};
|
|
611
598
|
};
|
|
@@ -717,7 +704,6 @@ export declare const HeaderBlock: {
|
|
|
717
704
|
};
|
|
718
705
|
text: {
|
|
719
706
|
type: string;
|
|
720
|
-
content: string;
|
|
721
707
|
};
|
|
722
708
|
};
|
|
723
709
|
};
|
|
@@ -786,7 +772,6 @@ export declare const HeaderBlock: {
|
|
|
786
772
|
};
|
|
787
773
|
text: {
|
|
788
774
|
type: string;
|
|
789
|
-
content: string;
|
|
790
775
|
};
|
|
791
776
|
};
|
|
792
777
|
};
|
|
@@ -807,7 +792,6 @@ export declare const HeaderBlock: {
|
|
|
807
792
|
properties: {
|
|
808
793
|
text: {
|
|
809
794
|
type: string;
|
|
810
|
-
content: string;
|
|
811
795
|
};
|
|
812
796
|
url: {
|
|
813
797
|
type: string;
|
|
@@ -13,15 +13,12 @@ exports.HeaderBackgroundProps = {
|
|
|
13
13
|
exports.HeaderProperties = {
|
|
14
14
|
title: {
|
|
15
15
|
type: 'string',
|
|
16
|
-
content: 'text',
|
|
17
16
|
},
|
|
18
17
|
overtitle: {
|
|
19
18
|
type: 'string',
|
|
20
|
-
content: 'text',
|
|
21
19
|
},
|
|
22
20
|
description: {
|
|
23
21
|
type: 'string',
|
|
24
|
-
content: 'yfm',
|
|
25
22
|
},
|
|
26
23
|
width: {
|
|
27
24
|
type: 'string',
|
|
@@ -43,7 +40,6 @@ exports.HeaderProperties = {
|
|
|
43
40
|
},
|
|
44
41
|
title: {
|
|
45
42
|
type: 'string',
|
|
46
|
-
content: 'text',
|
|
47
43
|
},
|
|
48
44
|
},
|
|
49
45
|
},
|
|
@@ -77,7 +73,6 @@ exports.HeaderProperties = {
|
|
|
77
73
|
},
|
|
78
74
|
text: {
|
|
79
75
|
type: 'string',
|
|
80
|
-
content: 'text',
|
|
81
76
|
},
|
|
82
77
|
},
|
|
83
78
|
},
|