@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 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
- declare const BlockBase: (props: PropsWithChildren<BlockBaseProps & ClassNameProps>) => JSX.Element;
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;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { Block, BlockBaseProps, WithChildren } from '../../../../models';
3
- interface ConstructorBlockProps extends Pick<BlockBaseProps, 'index'> {
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" | "visible" | "reset" | "sizes" | "offsets" | "orders" | "hidden" | "alignSelf" | "justifyContent" | "dataQa"> & React.RefAttributes<HTMLDivElement>>;
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>>;
@@ -30,8 +30,6 @@ export interface Childable {
30
30
  children?: SubBlock[];
31
31
  }
32
32
  export interface BlockBaseProps {
33
- type: BlockType;
34
- index?: number;
35
33
  anchor?: AnchorProps;
36
34
  visible?: GridColumnSize;
37
35
  resetPaddings?: boolean;
@@ -1,4 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { BlockBaseProps } from './constructor-items';
3
- export type BlockDecorationProps = Pick<BlockBaseProps, 'index' | 'type'> & PropsWithChildren;
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
- declare const BlockBase: (props: PropsWithChildren<BlockBaseProps & ClassNameProps>) => JSX.Element;
4
+ export type BlockBaseFullProps = BlockBaseProps & BlockDecorationProps & ClassNameProps & PropsWithChildren;
5
+ declare const BlockBase: (props: BlockBaseFullProps) => JSX.Element;
5
6
  export default BlockBase;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { Block, BlockBaseProps, WithChildren } from '../../../../models';
3
- interface ConstructorBlockProps extends Pick<BlockBaseProps, 'index'> {
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" | "visible" | "reset" | "sizes" | "offsets" | "orders" | "hidden" | "alignSelf" | "justifyContent" | "dataQa"> & React.RefAttributes<HTMLDivElement>>;
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>>;
@@ -30,8 +30,6 @@ export interface Childable {
30
30
  children?: SubBlock[];
31
31
  }
32
32
  export interface BlockBaseProps {
33
- type: BlockType;
34
- index?: number;
35
33
  anchor?: AnchorProps;
36
34
  visible?: GridColumnSize;
37
35
  resetPaddings?: boolean;
@@ -1,4 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { BlockBaseProps } from './constructor-items';
3
- export type BlockDecorationProps = Pick<BlockBaseProps, 'index' | 'type'> & PropsWithChildren;
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.0",
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": "^1.9.2",
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",
@@ -30,8 +30,6 @@ export interface Childable {
30
30
  children?: SubBlock[];
31
31
  }
32
32
  export interface BlockBaseProps {
33
- type: BlockType;
34
- index?: number;
35
33
  anchor?: AnchorProps;
36
34
  visible?: GridColumnSize;
37
35
  resetPaddings?: boolean;
@@ -1,4 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { BlockBaseProps } from './constructor-items';
3
- export type BlockDecorationProps = Pick<BlockBaseProps, 'index' | 'type'> & PropsWithChildren;
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;