@gravity-ui/page-constructor 3.6.0 → 3.6.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/CHANGELOG.md +14 -0
- package/build/cjs/components/BlockBase/BlockBase.d.ts +3 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -2
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +0 -2
- package/build/cjs/models/customization.d.ts +5 -2
- package/build/esm/components/BlockBase/BlockBase.d.ts +3 -2
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -2
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +0 -2
- package/build/esm/models/customization.d.ts +5 -2
- package/package.json +2 -2
- package/server/models/constructor-items/blocks.d.ts +0 -2
- package/server/models/customization.d.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.6.2](https://github.com/gravity-ui/page-constructor/compare/v3.6.1...v3.6.2) (2023-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* block base inner types ([#413](https://github.com/gravity-ui/page-constructor/issues/413)) ([616d387](https://github.com/gravity-ui/page-constructor/commit/616d387833330ec7ef4cddc0f2f31d164d4a1477))
|
|
9
|
+
|
|
10
|
+
## [3.6.1](https://github.com/gravity-ui/page-constructor/compare/v3.6.0...v3.6.1) (2023-06-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* downgrade dynamic forms to working ver ([#411](https://github.com/gravity-ui/page-constructor/issues/411)) ([d6634f0](https://github.com/gravity-ui/page-constructor/commit/d6634f0f3d51cdd24eebf408604da7cdc92aa0b3))
|
|
16
|
+
|
|
3
17
|
## [3.6.0](https://github.com/gravity-ui/page-constructor/compare/v3.5.0...v3.6.0) (2023-06-19)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BlockBaseProps, ClassNameProps } from '../../models';
|
|
3
|
-
|
|
2
|
+
import { BlockBaseProps, BlockDecorationProps, ClassNameProps } from '../../models';
|
|
3
|
+
export type BlockBaseFullProps = BlockBaseProps & BlockDecorationProps & ClassNameProps & PropsWithChildren;
|
|
4
|
+
declare const BlockBase: (props: BlockBaseFullProps) => JSX.Element;
|
|
4
5
|
export default BlockBase;
|
package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { BlockBaseFullProps } from '../../../../components/BlockBase/BlockBase';
|
|
3
|
+
import { Block, WithChildren } from '../../../../models';
|
|
4
|
+
interface ConstructorBlockProps extends Pick<BlockBaseFullProps, 'index'> {
|
|
4
5
|
data: Block;
|
|
5
6
|
}
|
|
6
7
|
export declare const ConstructorBlock: React.FC<WithChildren<ConstructorBlockProps>>;
|
|
@@ -7,4 +7,4 @@ export interface GridColumnProps extends GridColumnClassParams, Refable<HTMLDivE
|
|
|
7
7
|
dataQa?: string;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "className" | "
|
|
10
|
+
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "className" | "reset" | "visible" | "sizes" | "offsets" | "orders" | "hidden" | "alignSelf" | "justifyContent" | "dataQa"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import { BlockType } from './constructor-items';
|
|
3
|
+
export interface BlockDecorationProps extends PropsWithChildren {
|
|
4
|
+
type: BlockType;
|
|
5
|
+
index?: number;
|
|
6
|
+
}
|
|
4
7
|
export type BlockDecorator = (props: BlockDecorationProps) => React.ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BlockBaseProps, ClassNameProps } from '../../models';
|
|
2
|
+
import { BlockBaseProps, BlockDecorationProps, ClassNameProps } from '../../models';
|
|
3
3
|
import './BlockBase.css';
|
|
4
|
-
|
|
4
|
+
export type BlockBaseFullProps = BlockBaseProps & BlockDecorationProps & ClassNameProps & PropsWithChildren;
|
|
5
|
+
declare const BlockBase: (props: BlockBaseFullProps) => JSX.Element;
|
|
5
6
|
export default BlockBase;
|
package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { BlockBaseFullProps } from '../../../../components/BlockBase/BlockBase';
|
|
3
|
+
import { Block, WithChildren } from '../../../../models';
|
|
4
|
+
interface ConstructorBlockProps extends Pick<BlockBaseFullProps, 'index'> {
|
|
4
5
|
data: Block;
|
|
5
6
|
}
|
|
6
7
|
export declare const ConstructorBlock: React.FC<WithChildren<ConstructorBlockProps>>;
|
|
@@ -7,4 +7,4 @@ export interface GridColumnProps extends GridColumnClassParams, Refable<HTMLDivE
|
|
|
7
7
|
dataQa?: string;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "className" | "
|
|
10
|
+
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "className" | "reset" | "visible" | "sizes" | "offsets" | "orders" | "hidden" | "alignSelf" | "justifyContent" | "dataQa"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import { BlockType } from './constructor-items';
|
|
3
|
+
export interface BlockDecorationProps extends PropsWithChildren {
|
|
4
|
+
type: BlockType;
|
|
5
|
+
index?: number;
|
|
6
|
+
}
|
|
4
7
|
export type BlockDecorator = (props: BlockDecorationProps) => React.ReactElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/page-constructor",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "Gravity UI Page Constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"test:watch": "jest --watchAll"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@gravity-ui/dynamic-forms": "
|
|
80
|
+
"@gravity-ui/dynamic-forms": "1.7.1",
|
|
81
81
|
"@gravity-ui/i18n": "^1.0.0",
|
|
82
82
|
"bem-cn-lite": "^4.0.0",
|
|
83
83
|
"final-form": "^4.20.9",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import { BlockType } from './constructor-items';
|
|
3
|
+
export interface BlockDecorationProps extends PropsWithChildren {
|
|
4
|
+
type: BlockType;
|
|
5
|
+
index?: number;
|
|
6
|
+
}
|
|
4
7
|
export type BlockDecorator = (props: BlockDecorationProps) => React.ReactElement;
|