@gravity-ui/page-constructor 4.36.0-alpha.1 → 4.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/build/cjs/blocks/Companies/Companies.css +0 -16
- package/build/cjs/blocks/Companies/Companies.d.ts +1 -1
- package/build/cjs/blocks/Companies/Companies.js +2 -2
- package/build/cjs/blocks/Icons/Icons.d.ts +1 -1
- package/build/cjs/blocks/Icons/Icons.js +2 -2
- package/build/cjs/blocks/Tabs/Tabs.css +37 -3
- package/build/cjs/blocks/Tabs/Tabs.js +18 -21
- package/build/cjs/components/Image/Image.d.ts +1 -2
- package/build/cjs/components/Image/Image.js +2 -2
- package/build/cjs/components/ImageBase/ImageBase.d.ts +1 -2
- package/build/cjs/components/Media/Image/Image.d.ts +0 -1
- package/build/cjs/components/Media/Image/Image.js +2 -2
- package/build/cjs/components/Media/Media.js +3 -4
- package/build/cjs/components/RootCn/index.d.ts +4 -0
- package/build/cjs/components/RootCn/index.js +11 -0
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +0 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
- package/build/cjs/constructor-items.d.ts +2 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.js +2 -3
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -0
- package/build/cjs/navigation/components/Navigation/Navigation.css +0 -3
- package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/cjs/navigation/components/Navigation/Navigation.js +2 -2
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +2 -2
- package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +7 -0
- package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.js +13 -0
- package/build/cjs/navigation/components/Standalone/index.d.ts +3 -0
- package/build/cjs/navigation/components/Standalone/index.js +9 -0
- package/build/cjs/navigation/containers/Layout/Layout.css +7 -2
- package/build/cjs/navigation/containers/Layout/Layout.js +1 -1
- package/build/cjs/navigation/index.d.ts +1 -0
- package/build/cjs/navigation/index.js +8 -0
- package/build/cjs/text-transform/config.js +2 -7
- package/build/cjs/utils/cn.d.ts +1 -0
- package/build/cjs/utils/cn.js +3 -1
- package/build/esm/blocks/Companies/Companies.css +0 -16
- package/build/esm/blocks/Companies/Companies.d.ts +1 -1
- package/build/esm/blocks/Companies/Companies.js +3 -3
- package/build/esm/blocks/Icons/Icons.d.ts +1 -1
- package/build/esm/blocks/Icons/Icons.js +2 -2
- package/build/esm/blocks/Tabs/Tabs.css +37 -3
- package/build/esm/blocks/Tabs/Tabs.js +19 -22
- package/build/esm/components/Image/Image.d.ts +1 -2
- package/build/esm/components/Image/Image.js +3 -3
- package/build/esm/components/ImageBase/ImageBase.d.ts +1 -2
- package/build/esm/components/Media/Image/Image.d.ts +0 -1
- package/build/esm/components/Media/Image/Image.js +2 -2
- package/build/esm/components/Media/Media.js +3 -4
- package/build/esm/components/RootCn/index.d.ts +4 -0
- package/build/esm/components/RootCn/index.js +8 -0
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +0 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +2 -2
- package/build/esm/constructor-items.d.ts +2 -2
- package/build/esm/containers/PageConstructor/PageConstructor.js +3 -4
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.js +1 -0
- package/build/esm/models/constructor-items/blocks.d.ts +2 -0
- package/build/esm/navigation/components/Navigation/Navigation.css +0 -3
- package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/esm/navigation/components/Navigation/Navigation.js +2 -2
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +3 -3
- package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +7 -0
- package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.js +8 -0
- package/build/esm/navigation/components/Standalone/index.d.ts +3 -0
- package/build/esm/navigation/components/Standalone/index.js +6 -0
- package/build/esm/navigation/containers/Layout/Layout.css +7 -2
- package/build/esm/navigation/containers/Layout/Layout.js +1 -1
- package/build/esm/navigation/index.d.ts +1 -0
- package/build/esm/navigation/index.js +1 -0
- package/build/esm/text-transform/config.js +2 -7
- package/build/esm/utils/cn.d.ts +1 -0
- package/build/esm/utils/cn.js +2 -0
- package/package.json +1 -1
- package/server/models/constructor-items/blocks.d.ts +2 -0
- package/server/text-transform/config.js +2 -7
- package/server/utils/cn.d.ts +1 -0
- package/server/utils/cn.js +3 -1
- package/widget/index.js +1 -1
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.css +0 -24
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +0 -10
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.js +0 -17
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.css +0 -24
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +0 -11
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.js +0 -13
|
@@ -4,6 +4,6 @@ import Navigation from '../../components/Navigation/Navigation';
|
|
|
4
4
|
import './Layout.css';
|
|
5
5
|
const b = block('layout');
|
|
6
6
|
const Layout = ({ children, navigation }) => (React.createElement("div", { className: b() },
|
|
7
|
-
navigation && React.createElement(Navigation, { data: navigation.header, logo: navigation.logo }),
|
|
7
|
+
navigation && (React.createElement(Navigation, { data: navigation.header, logo: navigation.logo, className: b('navigation') })),
|
|
8
8
|
React.createElement("main", { className: b('content') }, children)));
|
|
9
9
|
export default Layout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from './components/Standalone';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from './components/Standalone';
|
|
@@ -153,6 +153,7 @@ export const config = {
|
|
|
153
153
|
},
|
|
154
154
|
],
|
|
155
155
|
[BlockType.SliderBlock]: blockHeaderTransformer,
|
|
156
|
+
[BlockType.CompaniesBlock]: blockHeaderTransformer,
|
|
156
157
|
[BlockType.QuestionsBlock]: [
|
|
157
158
|
{
|
|
158
159
|
fields: ['title'],
|
|
@@ -298,11 +299,5 @@ export const config = {
|
|
|
298
299
|
},
|
|
299
300
|
],
|
|
300
301
|
[BlockType.CardLayoutBlock]: blockHeaderTransformer,
|
|
301
|
-
[BlockType.IconsBlock]:
|
|
302
|
-
{
|
|
303
|
-
fields: ['title'],
|
|
304
|
-
transformer: typografTransformer,
|
|
305
|
-
parser: parseTitle,
|
|
306
|
-
},
|
|
307
|
-
],
|
|
302
|
+
[BlockType.IconsBlock]: blockHeaderTransformer,
|
|
308
303
|
};
|
package/build/esm/utils/cn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const NAMESPACE = "pc-";
|
|
2
2
|
export declare const cn: import("@bem-react/classname").ClassNameInitilizer;
|
|
3
3
|
export declare const block: import("@bem-react/classname").ClassNameInitilizer;
|
|
4
|
+
export declare const rootCn: import("@bem-react/classname").ClassNameFormatter;
|
|
4
5
|
export type CnBlock = ReturnType<typeof cn>;
|
package/build/esm/utils/cn.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { withNaming } from '@bem-react/classname';
|
|
2
|
+
import { UIKIT_ROOT_CLASS } from '../components/constants';
|
|
2
3
|
export const NAMESPACE = 'pc-';
|
|
3
4
|
export const cn = withNaming({ e: '__', m: '_' });
|
|
4
5
|
export const block = withNaming({ n: NAMESPACE, e: '__', m: '_' });
|
|
6
|
+
export const rootCn = cn(UIKIT_ROOT_CLASS);
|
package/package.json
CHANGED
|
@@ -154,6 +154,7 @@ export interface BannerBlockProps extends BannerCardProps, Animatable {
|
|
|
154
154
|
}
|
|
155
155
|
export interface CompaniesBlockProps extends Animatable {
|
|
156
156
|
title: string;
|
|
157
|
+
description?: string;
|
|
157
158
|
images: ThemeSupporting<ImageDeviceProps>;
|
|
158
159
|
}
|
|
159
160
|
export interface MediaBaseBlockProps extends Animatable, MediaContentProps {
|
|
@@ -254,6 +255,7 @@ export interface IconsBlockItemProps extends AnalyticsEventsBase {
|
|
|
254
255
|
}
|
|
255
256
|
export interface IconsBlockProps {
|
|
256
257
|
title?: string;
|
|
258
|
+
description?: string;
|
|
257
259
|
size?: 's' | 'm' | 'l';
|
|
258
260
|
items: IconsBlockItemProps[];
|
|
259
261
|
}
|
|
@@ -166,6 +166,7 @@ exports.config = {
|
|
|
166
166
|
},
|
|
167
167
|
],
|
|
168
168
|
[models_1.BlockType.SliderBlock]: exports.blockHeaderTransformer,
|
|
169
|
+
[models_1.BlockType.CompaniesBlock]: exports.blockHeaderTransformer,
|
|
169
170
|
[models_1.BlockType.QuestionsBlock]: [
|
|
170
171
|
{
|
|
171
172
|
fields: ['title'],
|
|
@@ -311,11 +312,5 @@ exports.config = {
|
|
|
311
312
|
},
|
|
312
313
|
],
|
|
313
314
|
[models_1.BlockType.CardLayoutBlock]: exports.blockHeaderTransformer,
|
|
314
|
-
[models_1.BlockType.IconsBlock]:
|
|
315
|
-
{
|
|
316
|
-
fields: ['title'],
|
|
317
|
-
transformer: common_1.typografTransformer,
|
|
318
|
-
parser: parseTitle,
|
|
319
|
-
},
|
|
320
|
-
],
|
|
315
|
+
[models_1.BlockType.IconsBlock]: exports.blockHeaderTransformer,
|
|
321
316
|
};
|
package/server/utils/cn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const NAMESPACE = "pc-";
|
|
2
2
|
export declare const cn: import("@bem-react/classname").ClassNameInitilizer;
|
|
3
3
|
export declare const block: import("@bem-react/classname").ClassNameInitilizer;
|
|
4
|
+
export declare const rootCn: import("@bem-react/classname").ClassNameFormatter;
|
|
4
5
|
export type CnBlock = ReturnType<typeof cn>;
|
package/server/utils/cn.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.block = exports.cn = exports.NAMESPACE = void 0;
|
|
3
|
+
exports.rootCn = exports.block = exports.cn = exports.NAMESPACE = void 0;
|
|
4
4
|
const classname_1 = require("@bem-react/classname");
|
|
5
|
+
const constants_1 = require("../components/constants");
|
|
5
6
|
exports.NAMESPACE = 'pc-';
|
|
6
7
|
exports.cn = (0, classname_1.withNaming)({ e: '__', m: '_' });
|
|
7
8
|
exports.block = (0, classname_1.withNaming)({ n: exports.NAMESPACE, e: '__', m: '_' });
|
|
9
|
+
exports.rootCn = (0, exports.cn)(constants_1.UIKIT_ROOT_CLASS);
|