@gravity-ui/page-constructor 1.9.1 → 1.9.3-alpha.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/CHANGELOG.md +15 -0
- package/build/cjs/blocks/Tabs/Tabs.css +3 -5
- package/build/cjs/components/Image/Image.d.ts +1 -0
- package/build/cjs/components/Image/Image.js +2 -4
- package/build/cjs/components/VideoBlock/VideoBlock.css +4 -0
- package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
- package/build/cjs/components/index.d.ts +0 -2
- package/build/cjs/components/index.js +39 -40
- package/build/cjs/containers/PageConstructor/PageConstructor.js +1 -1
- package/build/cjs/models/navigation.d.ts +7 -7
- package/build/cjs/{components/navigation → navigation}/components/Header/Header.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/Header/Header.d.ts +2 -2
- package/build/cjs/{components/navigation → navigation}/components/Header/Header.js +5 -5
- package/build/cjs/{components/navigation → navigation}/components/Logo/Logo.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/Logo/Logo.d.ts +2 -2
- package/build/cjs/{components/navigation → navigation}/components/Logo/Logo.js +5 -5
- package/build/cjs/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.d.ts +1 -1
- package/build/cjs/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.js +4 -4
- package/build/cjs/{components/navigation → navigation}/components/Navigation/Navigation.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/Navigation/Navigation.d.ts +1 -1
- package/build/cjs/{components/navigation → navigation}/components/Navigation/Navigation.js +4 -4
- package/build/cjs/{components/navigation → navigation}/components/NavigationItem/NavigationItem.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/NavigationItem/NavigationItem.d.ts +1 -1
- package/build/cjs/{components/navigation → navigation}/components/NavigationItem/NavigationItem.js +11 -11
- package/build/cjs/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.css +0 -0
- package/build/cjs/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.d.ts +1 -1
- package/build/cjs/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.js +3 -3
- package/build/cjs/{components/navigation → navigation}/components/SocialIcon/SocialIcon.css +0 -0
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.d.ts +7 -0
- package/build/cjs/{components/navigation → navigation}/components/SocialIcon/SocialIcon.js +4 -4
- package/build/cjs/{components/navigation → navigation}/containers/Layout/Layout.css +0 -0
- package/build/cjs/{components/navigation → navigation}/containers/Layout/Layout.d.ts +1 -1
- package/build/cjs/{components/navigation → navigation}/containers/Layout/Layout.js +1 -1
- package/build/cjs/schema/index.js +47 -44
- package/build/esm/blocks/Tabs/Tabs.css +3 -5
- package/build/esm/components/Image/Image.d.ts +1 -1
- package/build/esm/components/Image/Image.js +2 -5
- package/build/esm/components/VideoBlock/VideoBlock.css +4 -0
- package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
- package/build/esm/components/index.d.ts +0 -2
- package/build/esm/components/index.js +0 -2
- package/build/esm/containers/PageConstructor/PageConstructor.js +1 -1
- package/build/esm/models/navigation.d.ts +7 -7
- package/build/esm/{components/navigation → navigation}/components/Header/Header.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/Header/Header.d.ts +2 -2
- package/build/esm/{components/navigation → navigation}/components/Header/Header.js +5 -5
- package/build/esm/{components/navigation → navigation}/components/Logo/Logo.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/Logo/Logo.d.ts +2 -2
- package/build/esm/{components/navigation → navigation}/components/Logo/Logo.js +4 -4
- package/build/esm/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.d.ts +1 -1
- package/build/esm/{components/navigation → navigation}/components/MobileNavigation/MobileNavigation.js +3 -3
- package/build/esm/{components/navigation → navigation}/components/Navigation/Navigation.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/Navigation/Navigation.d.ts +1 -1
- package/build/esm/{components/navigation → navigation}/components/Navigation/Navigation.js +4 -4
- package/build/esm/{components/navigation → navigation}/components/NavigationItem/NavigationItem.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/NavigationItem/NavigationItem.d.ts +1 -1
- package/build/esm/{components/navigation → navigation}/components/NavigationItem/NavigationItem.js +6 -6
- package/build/esm/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.css +0 -0
- package/build/esm/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.d.ts +1 -1
- package/build/esm/{components/navigation → navigation}/components/NavigationPopup/NavigationPopup.js +2 -2
- package/build/esm/{components/navigation → navigation}/components/SocialIcon/SocialIcon.css +0 -0
- package/build/esm/navigation/components/SocialIcon/SocialIcon.d.ts +8 -0
- package/build/esm/{components/navigation → navigation}/components/SocialIcon/SocialIcon.js +3 -3
- package/build/esm/{components/navigation → navigation}/containers/Layout/Layout.css +0 -0
- package/build/esm/{components/navigation → navigation}/containers/Layout/Layout.d.ts +1 -1
- package/build/esm/{components/navigation → navigation}/containers/Layout/Layout.js +1 -1
- package/build/esm/schema/index.js +48 -45
- package/package.json +4 -1
- package/server/models/navigation.d.ts +7 -7
- package/build/cjs/components/Image/Image.css +0 -4
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +0 -7
- package/build/cjs/components/navigation/components/index.d.ts +0 -7
- package/build/cjs/components/navigation/components/index.js +0 -20
- package/build/esm/components/Image/Image.css +0 -4
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +0 -8
- package/build/esm/components/navigation/components/index.d.ts +0 -7
- package/build/esm/components/navigation/components/index.js +0 -7
|
@@ -30,24 +30,24 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
|
|
|
30
30
|
icon: ImageProps;
|
|
31
31
|
url: string;
|
|
32
32
|
}
|
|
33
|
-
export declare type
|
|
33
|
+
export declare type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
|
|
34
34
|
export declare type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
|
|
35
35
|
export declare type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
|
|
36
|
-
export interface
|
|
36
|
+
export interface NavigationLogoData {
|
|
37
37
|
icon: ImageProps;
|
|
38
38
|
text?: string;
|
|
39
39
|
url?: string;
|
|
40
40
|
}
|
|
41
41
|
export interface HeaderData {
|
|
42
|
-
leftItems:
|
|
43
|
-
rightItems?:
|
|
42
|
+
leftItems: NavigationItemModel[];
|
|
43
|
+
rightItems?: NavigationItemModel[];
|
|
44
44
|
}
|
|
45
45
|
export interface FooterColumn {
|
|
46
46
|
title: string;
|
|
47
|
-
links:
|
|
47
|
+
links: NavigationItemModel[];
|
|
48
48
|
}
|
|
49
49
|
export interface FooterUnderline {
|
|
50
|
-
links?:
|
|
50
|
+
links?: NavigationItemModel[];
|
|
51
51
|
copyright?: string;
|
|
52
52
|
}
|
|
53
53
|
export interface FooterData {
|
|
@@ -56,7 +56,7 @@ export interface FooterData {
|
|
|
56
56
|
underline?: FooterUnderline;
|
|
57
57
|
}
|
|
58
58
|
export interface NavigationData {
|
|
59
|
-
logo:
|
|
59
|
+
logo: NavigationLogoData;
|
|
60
60
|
header: HeaderData;
|
|
61
61
|
footer?: FooterData;
|
|
62
62
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NavigationSocialItem } from '../../../../models';
|
|
3
|
-
export interface NavigationSocialItemProps extends NavigationSocialItem {
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SocialIcon: React.FC<NavigationSocialItemProps>;
|
|
7
|
-
export default SocialIcon;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Header } from './Header/Header';
|
|
2
|
-
export { default as NavigationItem } from './NavigationItem/NavigationItem';
|
|
3
|
-
export { default as Logo } from './Logo/Logo';
|
|
4
|
-
export { default as MobileNavigation } from './MobileNavigation/MobileNavigation';
|
|
5
|
-
export { default as Navigation } from './Navigation/Navigation';
|
|
6
|
-
export { default as NavigationPopup } from './NavigationPopup/NavigationPopup';
|
|
7
|
-
export { default as SocialIcon } from './SocialIcon/SocialIcon';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SocialIcon = exports.NavigationPopup = exports.Navigation = exports.MobileNavigation = exports.Logo = exports.NavigationItem = exports.Header = void 0;
|
|
7
|
-
var Header_1 = require("./Header/Header");
|
|
8
|
-
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return __importDefault(Header_1).default; } });
|
|
9
|
-
var NavigationItem_1 = require("./NavigationItem/NavigationItem");
|
|
10
|
-
Object.defineProperty(exports, "NavigationItem", { enumerable: true, get: function () { return __importDefault(NavigationItem_1).default; } });
|
|
11
|
-
var Logo_1 = require("./Logo/Logo");
|
|
12
|
-
Object.defineProperty(exports, "Logo", { enumerable: true, get: function () { return __importDefault(Logo_1).default; } });
|
|
13
|
-
var MobileNavigation_1 = require("./MobileNavigation/MobileNavigation");
|
|
14
|
-
Object.defineProperty(exports, "MobileNavigation", { enumerable: true, get: function () { return __importDefault(MobileNavigation_1).default; } });
|
|
15
|
-
var Navigation_1 = require("./Navigation/Navigation");
|
|
16
|
-
Object.defineProperty(exports, "Navigation", { enumerable: true, get: function () { return __importDefault(Navigation_1).default; } });
|
|
17
|
-
var NavigationPopup_1 = require("./NavigationPopup/NavigationPopup");
|
|
18
|
-
Object.defineProperty(exports, "NavigationPopup", { enumerable: true, get: function () { return __importDefault(NavigationPopup_1).default; } });
|
|
19
|
-
var SocialIcon_1 = require("./SocialIcon/SocialIcon");
|
|
20
|
-
Object.defineProperty(exports, "SocialIcon", { enumerable: true, get: function () { return __importDefault(SocialIcon_1).default; } });
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NavigationSocialItem } from '../../../../models';
|
|
3
|
-
import './SocialIcon.css';
|
|
4
|
-
export interface NavigationSocialItemProps extends NavigationSocialItem {
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const SocialIcon: React.FC<NavigationSocialItemProps>;
|
|
8
|
-
export default SocialIcon;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Header } from './Header/Header';
|
|
2
|
-
export { default as NavigationItem } from './NavigationItem/NavigationItem';
|
|
3
|
-
export { default as Logo } from './Logo/Logo';
|
|
4
|
-
export { default as MobileNavigation } from './MobileNavigation/MobileNavigation';
|
|
5
|
-
export { default as Navigation } from './Navigation/Navigation';
|
|
6
|
-
export { default as NavigationPopup } from './NavigationPopup/NavigationPopup';
|
|
7
|
-
export { default as SocialIcon } from './SocialIcon/SocialIcon';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Header } from './Header/Header';
|
|
2
|
-
export { default as NavigationItem } from './NavigationItem/NavigationItem';
|
|
3
|
-
export { default as Logo } from './Logo/Logo';
|
|
4
|
-
export { default as MobileNavigation } from './MobileNavigation/MobileNavigation';
|
|
5
|
-
export { default as Navigation } from './Navigation/Navigation';
|
|
6
|
-
export { default as NavigationPopup } from './NavigationPopup/NavigationPopup';
|
|
7
|
-
export { default as SocialIcon } from './SocialIcon/SocialIcon';
|