@gravity-ui/page-constructor 1.9.1-alpha.1 → 1.9.1-alpha.2
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/build/cjs/blocks/index.d.ts +0 -1
- package/build/cjs/blocks/index.js +1 -3
- package/build/cjs/blocks/validators.d.ts +0 -1
- package/build/cjs/blocks/validators.js +0 -1
- package/build/cjs/{blocks → components}/Share/Share.css +0 -0
- package/build/cjs/components/Share/Share.d.ts +7 -0
- package/build/cjs/{blocks → components}/Share/Share.js +0 -0
- package/build/cjs/{blocks → components}/Share/i18n/en.json +0 -0
- package/build/cjs/{blocks → components}/Share/i18n/index.d.ts +0 -0
- package/build/cjs/{blocks → components}/Share/i18n/index.js +0 -0
- package/build/cjs/{blocks → components}/Share/i18n/ru.json +0 -0
- package/build/cjs/components/index.d.ts +1 -2
- package/build/cjs/components/index.js +2 -4
- package/build/cjs/components/navigation/components/Header/Header.d.ts +3 -3
- package/build/cjs/components/navigation/components/Logo/Logo.d.ts +2 -2
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
- package/build/cjs/components/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +2 -2
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +3 -3
- package/build/cjs/components/navigation/containers/Layout/Layout.d.ts +2 -2
- package/build/cjs/constructor-items.d.ts +0 -1
- package/build/cjs/constructor-items.js +0 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +2 -2
- package/build/cjs/models/components.d.ts +6 -0
- package/build/cjs/models/components.js +8 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -16
- package/build/cjs/models/constructor-items/blocks.js +1 -9
- package/build/cjs/models/navigation.d.ts +25 -25
- package/build/cjs/schema/index.js +1 -1
- package/build/cjs/schema/validators/blocks.d.ts +0 -1
- package/build/cjs/schema/validators/blocks.js +0 -1
- package/build/cjs/text-transform/blocks.js +0 -6
- package/build/esm/blocks/index.d.ts +0 -1
- package/build/esm/blocks/index.js +0 -1
- package/build/esm/blocks/validators.d.ts +0 -1
- package/build/esm/blocks/validators.js +0 -1
- package/build/esm/{blocks → components}/Share/Share.css +0 -0
- package/build/esm/components/Share/Share.d.ts +8 -0
- package/build/esm/{blocks → components}/Share/Share.js +0 -0
- package/build/esm/{blocks → components}/Share/i18n/en.json +0 -0
- package/build/esm/{blocks → components}/Share/i18n/index.d.ts +0 -0
- package/build/esm/{blocks → components}/Share/i18n/index.js +0 -0
- package/build/esm/{blocks → components}/Share/i18n/ru.json +0 -0
- package/build/esm/components/index.d.ts +1 -2
- package/build/esm/components/index.js +1 -2
- package/build/esm/components/navigation/components/Header/Header.d.ts +3 -3
- package/build/esm/components/navigation/components/Logo/Logo.d.ts +2 -2
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
- package/build/esm/components/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +2 -2
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +3 -3
- package/build/esm/components/navigation/containers/Layout/Layout.d.ts +2 -2
- package/build/esm/constructor-items.d.ts +0 -1
- package/build/esm/constructor-items.js +1 -2
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +2 -2
- package/build/esm/models/components.d.ts +6 -0
- package/build/esm/models/components.js +7 -1
- package/build/esm/models/constructor-items/blocks.d.ts +2 -16
- package/build/esm/models/constructor-items/blocks.js +0 -8
- package/build/esm/models/navigation.d.ts +25 -25
- package/build/esm/schema/index.js +2 -2
- package/build/esm/schema/validators/blocks.d.ts +0 -1
- package/build/esm/schema/validators/blocks.js +0 -1
- package/build/esm/text-transform/blocks.js +0 -6
- package/package.json +1 -1
- package/server/models/components.d.ts +6 -0
- package/server/models/components.js +8 -0
- package/server/models/constructor-items/blocks.d.ts +2 -16
- package/server/models/constructor-items/blocks.js +1 -9
- package/server/models/navigation.d.ts +25 -25
- package/server/text-transform/blocks.js +0 -6
- package/build/cjs/blocks/Share/Share.d.ts +0 -3
- package/build/cjs/blocks/Share/schema.d.ts +0 -24
- package/build/cjs/blocks/Share/schema.js +0 -19
- package/build/esm/blocks/Share/Share.d.ts +0 -4
- package/build/esm/blocks/Share/schema.d.ts +0 -24
- package/build/esm/blocks/Share/schema.js +0 -16
|
@@ -17,4 +17,3 @@ export { default as IconsBlock } from './Icons/Icons';
|
|
|
17
17
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
18
18
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
19
19
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
20
|
-
export { default as ShareBlock } from './Share/Share';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderBlock = exports.LinkTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderBlock = exports.SecurityBlock = exports.PreviewBlock = exports.MediaBlock = exports.InfoBlock = exports.SimpleBlock = exports.CompaniesBlock = exports.BannerBlock = void 0;
|
|
7
7
|
var Banner_1 = require("./Banner/Banner");
|
|
8
8
|
Object.defineProperty(exports, "BannerBlock", { enumerable: true, get: function () { return __importDefault(Banner_1).default; } });
|
|
9
9
|
var Companies_1 = require("./Companies/Companies");
|
|
@@ -42,5 +42,3 @@ var CardLayout_1 = require("./CardLayout/CardLayout");
|
|
|
42
42
|
Object.defineProperty(exports, "CardLayoutBlock", { enumerable: true, get: function () { return __importDefault(CardLayout_1).default; } });
|
|
43
43
|
var ContentLayout_1 = require("./ContentLayout/ContentLayout");
|
|
44
44
|
Object.defineProperty(exports, "ContentLayoutBlock", { enumerable: true, get: function () { return __importDefault(ContentLayout_1).default; } });
|
|
45
|
-
var Share_1 = require("./Share/Share");
|
|
46
|
-
Object.defineProperty(exports, "ShareBlock", { enumerable: true, get: function () { return __importDefault(Share_1).default; } });
|
|
@@ -19,4 +19,3 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
(0, tslib_1.__exportStar)(require("./Simple/schema"), exports);
|
|
20
20
|
(0, tslib_1.__exportStar)(require("./Slider/schema"), exports);
|
|
21
21
|
(0, tslib_1.__exportStar)(require("./Table/schema"), exports);
|
|
22
|
-
(0, tslib_1.__exportStar)(require("./Share/schema"), exports);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -33,6 +33,5 @@ export { default as OverflowScroller } from './OverflowScroller/OverflowScroller
|
|
|
33
33
|
export { default as Author } from './Author/Author';
|
|
34
34
|
export { default as RouterLink } from './RouterLink/RouterLink';
|
|
35
35
|
export { default as HTML } from './HTML/HTML';
|
|
36
|
-
export
|
|
37
|
-
export * as Navigation from './navigation/components/index';
|
|
36
|
+
export * from './navigation/components/index';
|
|
38
37
|
export type { RouterLinkProps } from './RouterLink/RouterLink';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.HTML = exports.RouterLink = exports.Author = exports.OverflowScroller = exports.Control = exports.YandexForm = exports.YFMWrapper = exports.VideoBlock = exports.UnpublishedLabel = exports.ToggleArrow = exports.Title = exports.Table = exports.ReactPlayer = exports.OutsideClick = exports.Media = exports.Links = exports.Link = exports.Image = exports.HeightCalculator = exports.HeaderBreadcrumbs = exports.FullWidthBackground = exports.FullscreenImage = exports.Foldable = exports.FileLink = exports.ErrorWrapper = exports.CardBase = exports.Button = exports.BlockHeader = exports.BlockBase = exports.BalancedMasonry = exports.BackLink = exports.BackgroundMedia = exports.BackgroundImage = exports.AnimateBlock = exports.Anchor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var Anchor_1 = require("./Anchor/Anchor");
|
|
6
6
|
Object.defineProperty(exports, "Anchor", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Anchor_1).default; } });
|
|
@@ -72,6 +72,4 @@ var RouterLink_1 = require("./RouterLink/RouterLink");
|
|
|
72
72
|
Object.defineProperty(exports, "RouterLink", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(RouterLink_1).default; } });
|
|
73
73
|
var HTML_1 = require("./HTML/HTML");
|
|
74
74
|
Object.defineProperty(exports, "HTML", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(HTML_1).default; } });
|
|
75
|
-
|
|
76
|
-
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Header_1).default; } });
|
|
77
|
-
exports.Navigation = (0, tslib_1.__importStar)(require("./navigation/components/index"));
|
|
75
|
+
(0, tslib_1.__exportStar)(require("./navigation/components/index"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HeaderDataProps, NavigationLogoProps } from '../../../../models';
|
|
3
3
|
export interface HeaderProps {
|
|
4
|
-
logo:
|
|
5
|
-
data:
|
|
4
|
+
logo: NavigationLogoProps;
|
|
5
|
+
data: HeaderDataProps;
|
|
6
6
|
}
|
|
7
7
|
export declare const Header: React.FC<HeaderProps>;
|
|
8
8
|
export default Header;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface LogoProps extends
|
|
2
|
+
import { NavigationLogoProps } from '../../../../models';
|
|
3
|
+
export interface LogoProps extends NavigationLogoProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
6
|
declare const Logo: React.FC<LogoProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationItemProps as NavigationItemModel } from '../../../../models/navigation';
|
|
3
3
|
export interface MobileNavigationProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
isOpened?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { MouseEventHandler } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationDropdownItemProps, NavigationItemProps as NavigationItemModel } from '../../../../models/navigation';
|
|
3
3
|
export interface NavigationProps {
|
|
4
4
|
links: NavigationItemModel[];
|
|
5
5
|
activeItemIndex: number;
|
|
@@ -8,7 +8,7 @@ export interface NavigationProps {
|
|
|
8
8
|
highlightActiveItem?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface NavigationDropdownProps {
|
|
11
|
-
data:
|
|
11
|
+
data: NavigationDropdownItemProps;
|
|
12
12
|
onClick: MouseEventHandler;
|
|
13
13
|
isActive: boolean;
|
|
14
14
|
position: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { MouseEventHandler } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationItemDataProps } from '../../../../models';
|
|
3
3
|
export interface NavigationItemProps {
|
|
4
|
-
data:
|
|
4
|
+
data: NavigationItemDataProps;
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: MouseEventHandler;
|
|
7
7
|
isOpened?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationLinkItemProps } from '../../../../models';
|
|
3
3
|
export interface NavigationPopupProps {
|
|
4
|
-
items:
|
|
4
|
+
items: NavigationLinkItemProps[];
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
left?: number;
|
|
7
7
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { NavigationSocialItemProps } from '../../../../models';
|
|
3
|
+
export interface NavigationSocialItemOwnProps extends NavigationSocialItemProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const SocialIcon: React.FC<
|
|
6
|
+
declare const SocialIcon: React.FC<NavigationSocialItemOwnProps>;
|
|
7
7
|
export default SocialIcon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationDataProps } from '../../../../models';
|
|
3
3
|
export interface LayoutProps {
|
|
4
|
-
navigation?:
|
|
4
|
+
navigation?: NavigationDataProps;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
declare const Layout: React.FC<LayoutProps>;
|
|
@@ -18,7 +18,6 @@ export declare const blockMap: {
|
|
|
18
18
|
"header-slider-block": ({ items, arrows, ...props }: import("./models").HeaderSliderBlockProps) => JSX.Element;
|
|
19
19
|
"card-layout-block": ({ title, description, animated, colSizes, children, }: import("./blocks/CardLayout/CardLayout").CardLayoutBlockProps) => JSX.Element;
|
|
20
20
|
"content-layout-block": (props: import("./models").ContentLayoutBlockProps) => JSX.Element;
|
|
21
|
-
"share-block": ({ items, title }: import("./models").ShareBlockProps) => JSX.Element;
|
|
22
21
|
};
|
|
23
22
|
export declare const subBlockMap: {
|
|
24
23
|
divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
|
|
@@ -24,7 +24,6 @@ exports.blockMap = {
|
|
|
24
24
|
[models_1.BlockType.HeaderSliderBlock]: blocks_1.HeaderSliderBlock,
|
|
25
25
|
[models_1.BlockType.CardLayoutBlock]: blocks_1.CardLayoutBlock,
|
|
26
26
|
[models_1.BlockType.ContentLayoutBlock]: blocks_1.ContentLayoutBlock,
|
|
27
|
-
[models_1.BlockType.ShareBlock]: blocks_1.ShareBlock,
|
|
28
27
|
};
|
|
29
28
|
exports.subBlockMap = {
|
|
30
29
|
[models_1.SubBlockType.Divider]: sub_blocks_1.Divider,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@doc-tools/transform/dist/js/yfm';
|
|
3
|
-
import { ShouldRenderBlock, CustomConfig, PageContent, CustomItems,
|
|
3
|
+
import { ShouldRenderBlock, CustomConfig, PageContent, CustomItems, NavigationDataProps } from '../../models';
|
|
4
4
|
import { blockMap, subBlockMap } from '../../constructor-items';
|
|
5
5
|
export declare type ItemMap = typeof blockMap & typeof subBlockMap & CustomItems;
|
|
6
6
|
export interface PageConstructorProps {
|
|
@@ -8,7 +8,7 @@ export interface PageConstructorProps {
|
|
|
8
8
|
shouldRenderBlock?: ShouldRenderBlock;
|
|
9
9
|
custom?: CustomConfig;
|
|
10
10
|
renderMenu?: () => React.ReactNode;
|
|
11
|
-
navigation?:
|
|
11
|
+
navigation?: NavigationDataProps;
|
|
12
12
|
}
|
|
13
13
|
export declare const Constructor: (props: PageConstructorProps) => JSX.Element;
|
|
14
14
|
export declare const PageConstructor: (props: PageConstructorProps) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PCShareSocialNetwork = void 0;
|
|
4
|
+
var PCShareSocialNetwork;
|
|
5
|
+
(function (PCShareSocialNetwork) {
|
|
6
|
+
PCShareSocialNetwork["Vk"] = "vk";
|
|
7
|
+
PCShareSocialNetwork["Telegram"] = "telegram";
|
|
8
|
+
PCShareSocialNetwork["Twitter"] = "twitter";
|
|
9
|
+
PCShareSocialNetwork["Facebook"] = "facebook";
|
|
10
|
+
})(PCShareSocialNetwork = exports.PCShareSocialNetwork || (exports.PCShareSocialNetwork = {}));
|
|
@@ -24,8 +24,7 @@ export declare enum BlockType {
|
|
|
24
24
|
HeaderBlock = "header-block",
|
|
25
25
|
IconsBlock = "icons-block",
|
|
26
26
|
CardLayoutBlock = "card-layout-block",
|
|
27
|
-
ContentLayoutBlock = "content-layout-block"
|
|
28
|
-
ShareBlock = "share-block"
|
|
27
|
+
ContentLayoutBlock = "content-layout-block"
|
|
29
28
|
}
|
|
30
29
|
export declare const BlockTypes: BlockType[];
|
|
31
30
|
export declare const HeaderBlockTypes: BlockType[];
|
|
@@ -276,16 +275,6 @@ export interface ContentBlockProps {
|
|
|
276
275
|
centered?: boolean;
|
|
277
276
|
theme?: ContentTheme;
|
|
278
277
|
}
|
|
279
|
-
export declare enum PCShareSocialNetwork {
|
|
280
|
-
Vk = "vk",
|
|
281
|
-
Telegram = "telegram",
|
|
282
|
-
Twitter = "twitter",
|
|
283
|
-
Facebook = "facebook"
|
|
284
|
-
}
|
|
285
|
-
export interface ShareBlockProps {
|
|
286
|
-
items: PCShareSocialNetwork[];
|
|
287
|
-
title?: string;
|
|
288
|
-
}
|
|
289
278
|
export declare type HeaderBlockModel = {
|
|
290
279
|
type: BlockType.HeaderBlock;
|
|
291
280
|
} & HeaderBlockProps;
|
|
@@ -349,9 +338,6 @@ export declare type HeaderSliderBlockModel = {
|
|
|
349
338
|
export declare type ContentLayoutBlockModel = {
|
|
350
339
|
type: BlockType.ContentLayoutBlock;
|
|
351
340
|
} & ContentLayoutBlockProps;
|
|
352
|
-
|
|
353
|
-
type: BlockType.ShareBlock;
|
|
354
|
-
} & ShareBlockProps;
|
|
355
|
-
declare type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel;
|
|
341
|
+
declare type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel;
|
|
356
342
|
export declare type Block = BlockModels & BlockBaseProps;
|
|
357
343
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SliderType = exports.SliderBreakpointNames = exports.HeaderBlockTypes = exports.BlockTypes = exports.BlockType = void 0;
|
|
4
4
|
var BlockType;
|
|
5
5
|
(function (BlockType) {
|
|
6
6
|
BlockType["PromoFeaturesBlock"] = "promo-features-block";
|
|
@@ -24,7 +24,6 @@ var BlockType;
|
|
|
24
24
|
BlockType["IconsBlock"] = "icons-block";
|
|
25
25
|
BlockType["CardLayoutBlock"] = "card-layout-block";
|
|
26
26
|
BlockType["ContentLayoutBlock"] = "content-layout-block";
|
|
27
|
-
BlockType["ShareBlock"] = "share-block";
|
|
28
27
|
})(BlockType = exports.BlockType || (exports.BlockType = {}));
|
|
29
28
|
exports.BlockTypes = Object.values(BlockType);
|
|
30
29
|
exports.HeaderBlockTypes = [BlockType.HeaderBlock, BlockType.HeaderSliderBlock];
|
|
@@ -40,10 +39,3 @@ var SliderType;
|
|
|
40
39
|
SliderType["MediaCard"] = "media-card";
|
|
41
40
|
SliderType["HeaderCard"] = "header-card";
|
|
42
41
|
})(SliderType = exports.SliderType || (exports.SliderType = {}));
|
|
43
|
-
var PCShareSocialNetwork;
|
|
44
|
-
(function (PCShareSocialNetwork) {
|
|
45
|
-
PCShareSocialNetwork["Vk"] = "vk";
|
|
46
|
-
PCShareSocialNetwork["Telegram"] = "telegram";
|
|
47
|
-
PCShareSocialNetwork["Twitter"] = "twitter";
|
|
48
|
-
PCShareSocialNetwork["Facebook"] = "facebook";
|
|
49
|
-
})(PCShareSocialNetwork = exports.PCShareSocialNetwork || (exports.PCShareSocialNetwork = {}));
|
|
@@ -5,58 +5,58 @@ export declare enum NavigationItemType {
|
|
|
5
5
|
Button = "button",
|
|
6
6
|
Social = "social"
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface NavigationItemBaseProps {
|
|
9
9
|
text: string;
|
|
10
10
|
icon?: ImageProps;
|
|
11
11
|
url?: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface NavigationLinkItemProps extends NavigationItemBaseProps {
|
|
14
14
|
type: NavigationItemType.Link;
|
|
15
15
|
url: string;
|
|
16
16
|
arrow?: boolean;
|
|
17
17
|
target?: string;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface NavigationButtonItemProps extends ButtonProps {
|
|
20
20
|
type: NavigationItemType.Button;
|
|
21
21
|
url: string;
|
|
22
22
|
target?: string;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface NavigationDropdownItemProps extends NavigationItemBaseProps {
|
|
25
25
|
type: NavigationItemType.Dropdown;
|
|
26
|
-
items:
|
|
26
|
+
items: NavigationLinkItemProps[];
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface NavigationSocialItemProps extends Omit<NavigationItemBaseProps, 'text'> {
|
|
29
29
|
type: NavigationItemType.Social;
|
|
30
30
|
icon: ImageProps;
|
|
31
31
|
url: string;
|
|
32
32
|
}
|
|
33
|
-
export declare type
|
|
34
|
-
export declare type
|
|
35
|
-
export declare type
|
|
36
|
-
export interface
|
|
33
|
+
export declare type NavigationItemProps = NavigationLinkItemProps | NavigationButtonItemProps | NavigationDropdownItemProps;
|
|
34
|
+
export declare type NavigationItemDataProps = NavigationLinkItemProps | NavigationButtonItemProps | NavigationSocialItemProps | DropdownItemDataProps;
|
|
35
|
+
export declare type DropdownItemDataProps = Omit<NavigationDropdownItemProps, 'items'>;
|
|
36
|
+
export interface NavigationLogoProps {
|
|
37
37
|
icon: ImageProps;
|
|
38
38
|
text?: string;
|
|
39
39
|
url?: string;
|
|
40
40
|
}
|
|
41
|
-
export interface
|
|
42
|
-
leftItems:
|
|
43
|
-
rightItems?:
|
|
41
|
+
export interface HeaderDataProps {
|
|
42
|
+
leftItems: NavigationItemProps[];
|
|
43
|
+
rightItems?: NavigationItemProps[];
|
|
44
44
|
}
|
|
45
|
-
export interface
|
|
45
|
+
export interface FooterColumnProps {
|
|
46
46
|
title: string;
|
|
47
|
-
links:
|
|
47
|
+
links: NavigationItemProps[];
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
50
|
-
links?:
|
|
49
|
+
export interface FooterUnderlineProps {
|
|
50
|
+
links?: NavigationItemProps[];
|
|
51
51
|
copyright?: string;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
54
|
-
columns:
|
|
55
|
-
social?:
|
|
56
|
-
underline?:
|
|
53
|
+
export interface FooterDataProps {
|
|
54
|
+
columns: FooterColumnProps[];
|
|
55
|
+
social?: NavigationSocialItemProps[];
|
|
56
|
+
underline?: FooterUnderlineProps;
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
59
|
-
logo:
|
|
60
|
-
header:
|
|
61
|
-
footer?:
|
|
58
|
+
export interface NavigationDataProps {
|
|
59
|
+
logo: NavigationLogoProps;
|
|
60
|
+
header: HeaderDataProps;
|
|
61
|
+
footer?: FooterDataProps;
|
|
62
62
|
}
|
|
@@ -53,7 +53,7 @@ function generateDefaultSchema(config) {
|
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
select: { $data: '0/type' },
|
|
56
|
-
selectCases: 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(Object.assign(
|
|
56
|
+
selectCases: 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(Object.assign({}, blocks_1.TabsBlock), blocks_1.SliderBlock), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.InfoBlock), blocks_1.QuestionsBlock), blocks_1.SecurityBlock), blocks_1.TableBlock), blocks_1.SimpleBlock), blocks_1.LinkTableBlock), blocks_1.PreviewBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), sub_blocks_1.Divider), (0, exports.getBlocksCases)(blocks)),
|
|
57
57
|
}),
|
|
58
58
|
cards: (0, utils_1.filteredItem)({
|
|
59
59
|
type: 'object',
|
|
@@ -20,4 +20,3 @@ const tslib_1 = require("tslib");
|
|
|
20
20
|
(0, tslib_1.__exportStar)(require("../../blocks/Icons/schema"), exports);
|
|
21
21
|
(0, tslib_1.__exportStar)(require("../../blocks/CardLayout/schema"), exports);
|
|
22
22
|
(0, tslib_1.__exportStar)(require("../../blocks/ContentLayout/schema"), exports);
|
|
23
|
-
(0, tslib_1.__exportStar)(require("../../blocks/Share/schema"), exports);
|
|
@@ -314,12 +314,6 @@ const config = {
|
|
|
314
314
|
parser: parseContentLayoutTitle,
|
|
315
315
|
},
|
|
316
316
|
],
|
|
317
|
-
[models_1.BlockType.ShareBlock]: [
|
|
318
|
-
{
|
|
319
|
-
fields: ['title'],
|
|
320
|
-
transformer: typografTransformer,
|
|
321
|
-
},
|
|
322
|
-
],
|
|
323
317
|
};
|
|
324
318
|
function addRandomOrder(block) {
|
|
325
319
|
if (block) {
|
|
@@ -17,4 +17,3 @@ export { default as IconsBlock } from './Icons/Icons';
|
|
|
17
17
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
18
18
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
19
19
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
20
|
-
export { default as ShareBlock } from './Share/Share';
|
|
@@ -17,4 +17,3 @@ export { default as IconsBlock } from './Icons/Icons';
|
|
|
17
17
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
18
18
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
19
19
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
20
|
-
export { default as ShareBlock } from './Share/Share';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -33,6 +33,5 @@ export { default as OverflowScroller } from './OverflowScroller/OverflowScroller
|
|
|
33
33
|
export { default as Author } from './Author/Author';
|
|
34
34
|
export { default as RouterLink } from './RouterLink/RouterLink';
|
|
35
35
|
export { default as HTML } from './HTML/HTML';
|
|
36
|
-
export
|
|
37
|
-
export * as Navigation from './navigation/components/index';
|
|
36
|
+
export * from './navigation/components/index';
|
|
38
37
|
export type { RouterLinkProps } from './RouterLink/RouterLink';
|
|
@@ -33,5 +33,4 @@ export { default as OverflowScroller } from './OverflowScroller/OverflowScroller
|
|
|
33
33
|
export { default as Author } from './Author/Author';
|
|
34
34
|
export { default as RouterLink } from './RouterLink/RouterLink';
|
|
35
35
|
export { default as HTML } from './HTML/HTML';
|
|
36
|
-
export
|
|
37
|
-
export * as Navigation from './navigation/components/index';
|
|
36
|
+
export * from './navigation/components/index';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HeaderDataProps, NavigationLogoProps } from '../../../../models';
|
|
3
3
|
import './Header.css';
|
|
4
4
|
export interface HeaderProps {
|
|
5
|
-
logo:
|
|
6
|
-
data:
|
|
5
|
+
logo: NavigationLogoProps;
|
|
6
|
+
data: HeaderDataProps;
|
|
7
7
|
}
|
|
8
8
|
export declare const Header: React.FC<HeaderProps>;
|
|
9
9
|
export default Header;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationLogoProps } from '../../../../models';
|
|
3
3
|
import './Logo.css';
|
|
4
|
-
export interface LogoProps extends
|
|
4
|
+
export interface LogoProps extends NavigationLogoProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const Logo: React.FC<LogoProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationItemProps as NavigationItemModel } from '../../../../models/navigation';
|
|
3
3
|
import './MobileNavigation.css';
|
|
4
4
|
export interface MobileNavigationProps {
|
|
5
5
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { MouseEventHandler } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationDropdownItemProps, NavigationItemProps as NavigationItemModel } from '../../../../models/navigation';
|
|
3
3
|
import './Navigation.css';
|
|
4
4
|
export interface NavigationProps {
|
|
5
5
|
links: NavigationItemModel[];
|
|
@@ -9,7 +9,7 @@ export interface NavigationProps {
|
|
|
9
9
|
highlightActiveItem?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export interface NavigationDropdownProps {
|
|
12
|
-
data:
|
|
12
|
+
data: NavigationDropdownItemProps;
|
|
13
13
|
onClick: MouseEventHandler;
|
|
14
14
|
isActive: boolean;
|
|
15
15
|
position: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { MouseEventHandler } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationItemDataProps } from '../../../../models';
|
|
3
3
|
import './NavigationItem.css';
|
|
4
4
|
export interface NavigationItemProps {
|
|
5
|
-
data:
|
|
5
|
+
data: NavigationItemDataProps;
|
|
6
6
|
className?: string;
|
|
7
7
|
onClick?: MouseEventHandler;
|
|
8
8
|
isOpened?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationLinkItemProps } from '../../../../models';
|
|
3
3
|
import './NavigationPopup.css';
|
|
4
4
|
export interface NavigationPopupProps {
|
|
5
|
-
items:
|
|
5
|
+
items: NavigationLinkItemProps[];
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
left?: number;
|
|
8
8
|
className?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationSocialItemProps } from '../../../../models';
|
|
3
3
|
import './SocialIcon.css';
|
|
4
|
-
export interface
|
|
4
|
+
export interface NavigationSocialItemOwnProps extends NavigationSocialItemProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const SocialIcon: React.FC<
|
|
7
|
+
declare const SocialIcon: React.FC<NavigationSocialItemOwnProps>;
|
|
8
8
|
export default SocialIcon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavigationDataProps } from '../../../../models';
|
|
3
3
|
import './Layout.css';
|
|
4
4
|
export interface LayoutProps {
|
|
5
|
-
navigation?:
|
|
5
|
+
navigation?: NavigationDataProps;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare const Layout: React.FC<LayoutProps>;
|
|
@@ -18,7 +18,6 @@ export declare const blockMap: {
|
|
|
18
18
|
"header-slider-block": ({ items, arrows, ...props }: import("./models").HeaderSliderBlockProps) => JSX.Element;
|
|
19
19
|
"card-layout-block": ({ title, description, animated, colSizes, children, }: import("./blocks/CardLayout/CardLayout").CardLayoutBlockProps) => JSX.Element;
|
|
20
20
|
"content-layout-block": (props: import("./models").ContentLayoutBlockProps) => JSX.Element;
|
|
21
|
-
"share-block": ({ items, title }: import("./models").ShareBlockProps) => JSX.Element;
|
|
22
21
|
};
|
|
23
22
|
export declare const subBlockMap: {
|
|
24
23
|
divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
|