@gravity-ui/page-constructor 5.15.2 → 5.16.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 +1 -1
- package/build/cjs/blocks/CardLayout/CardLayout.d.ts +2 -2
- package/build/cjs/blocks/Header/Header.d.ts +3 -2
- package/build/cjs/blocks/Slider/Slider.d.ts +3 -2
- package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +3 -3
- package/build/cjs/components/Author/Author.d.ts +3 -2
- package/build/cjs/components/BackgroundImage/BackgroundImage.d.ts +3 -2
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.d.ts +3 -3
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.d.ts +2 -2
- package/build/cjs/components/FileLink/FileLink.d.ts +3 -2
- package/build/cjs/components/Foldable/Foldable.d.ts +3 -2
- package/build/cjs/components/HTML/HTML.d.ts +1 -2
- package/build/cjs/components/Link/Link.d.ts +3 -2
- package/build/cjs/components/RouterLink/RouterLink.d.ts +2 -2
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.d.ts +2 -2
- package/build/cjs/constructor-items.d.ts +2 -2
- package/build/cjs/containers/PageConstructor/Provider.d.ts +3 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.d.ts +2 -2
- package/build/cjs/context/locationContext/locationContext.d.ts +1 -2
- package/build/cjs/grid/Col/Col.d.ts +2 -2
- package/build/cjs/grid/Grid/Grid.d.ts +1 -2
- package/build/cjs/models/constructor.d.ts +2 -2
- package/build/cjs/models/index.d.ts +0 -1
- package/build/cjs/models/index.js +0 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +4 -4
- package/build/esm/blocks/CardLayout/CardLayout.d.ts +2 -2
- package/build/esm/blocks/Header/Header.d.ts +3 -2
- package/build/esm/blocks/Slider/Slider.d.ts +3 -2
- package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +3 -3
- package/build/esm/components/Author/Author.d.ts +3 -2
- package/build/esm/components/BackgroundImage/BackgroundImage.d.ts +3 -2
- package/build/esm/components/BalancedMasonry/BalancedMasonry.d.ts +3 -3
- package/build/esm/components/ErrorWrapper/ErrorWrapper.d.ts +2 -2
- package/build/esm/components/FileLink/FileLink.d.ts +3 -2
- package/build/esm/components/Foldable/Foldable.d.ts +3 -2
- package/build/esm/components/HTML/HTML.d.ts +1 -2
- package/build/esm/components/Link/Link.d.ts +3 -2
- package/build/esm/components/Link/Link.js +1 -1
- package/build/esm/components/RouterLink/RouterLink.d.ts +2 -2
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.d.ts +2 -2
- package/build/esm/constructor-items.d.ts +2 -2
- package/build/esm/containers/PageConstructor/Provider.d.ts +3 -2
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +2 -2
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -2
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.d.ts +2 -2
- package/build/esm/context/locationContext/locationContext.d.ts +1 -2
- package/build/esm/grid/Col/Col.d.ts +2 -2
- package/build/esm/grid/Grid/Grid.d.ts +1 -2
- package/build/esm/models/constructor.d.ts +2 -2
- package/build/esm/models/index.d.ts +0 -1
- package/build/esm/models/index.js +0 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +4 -4
- package/package.json +1 -1
- package/server/models/constructor.d.ts +2 -2
- package/server/models/index.d.ts +0 -1
- package/server/models/index.js +0 -1
- package/widget/index.js +1 -1
- package/build/cjs/models/react.d.ts +0 -4
- package/build/cjs/models/react.js +0 -2
- package/build/esm/models/react.d.ts +0 -4
- package/build/esm/models/react.js +0 -1
- package/server/models/react.d.ts +0 -4
- package/server/models/react.js +0 -2
package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConstructorBlock } from '../../../../models';
|
|
2
3
|
export interface ConstructorItemProps {
|
|
3
4
|
data: ConstructorBlock;
|
|
4
5
|
blockKey: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const ConstructorItem: ({ data, blockKey, children }:
|
|
7
|
+
export declare const ConstructorItem: ({ data, blockKey, children, }: React.PropsWithChildren<ConstructorItemProps>) => JSX.Element;
|
|
7
8
|
export declare const ConstructorHeader: ({ data, blockKey, }: Pick<ConstructorItemProps, 'data' | 'blockKey'>) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import { BlockIdContext } from '../../../../context/blockIdContext';
|
|
4
4
|
import { InnerContext } from '../../../../context/innerContext';
|
|
5
5
|
import { BlockDecoration } from '../../../../customization/BlockDecoration';
|
|
6
|
-
export const ConstructorItem = ({ data, blockKey, children }) => {
|
|
6
|
+
export const ConstructorItem = ({ data, blockKey, children, }) => {
|
|
7
7
|
const { itemMap } = useContext(InnerContext);
|
|
8
8
|
const { type } = data, rest = __rest(data, ["type"]);
|
|
9
9
|
const Component = itemMap[type];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './ConstructorRow.css';
|
|
3
|
-
export declare const ConstructorRow: ({ children }:
|
|
3
|
+
export declare const ConstructorRow: ({ children }: React.PropsWithChildren<{}>) => JSX.Element | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RouterLinkProps } from '../../components/RouterLink/RouterLink';
|
|
3
|
-
import { WithChildren } from '../../models';
|
|
4
3
|
export interface History {
|
|
5
4
|
action: 'PUSH' | 'POP' | 'REPLACE' | '';
|
|
6
5
|
replace(location: Partial<Location>): void;
|
|
@@ -8,7 +7,7 @@ export interface History {
|
|
|
8
7
|
goBack(): void;
|
|
9
8
|
length: number;
|
|
10
9
|
}
|
|
11
|
-
export type RouterLink = React.ComponentClass<RouterLinkProps> | React.FC<
|
|
10
|
+
export type RouterLink = React.ComponentClass<RouterLinkProps> | React.FC<React.PropsWithChildren<RouterLinkProps>>;
|
|
12
11
|
export type LocationContextProps = {
|
|
13
12
|
history?: History;
|
|
14
13
|
search?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { QAProps, Refable, Roleable
|
|
2
|
+
import { QAProps, Refable, Roleable } from '../../models';
|
|
3
3
|
import { GridColumnClassParams } from '../types';
|
|
4
4
|
export interface GridColumnProps extends GridColumnClassParams, Refable<HTMLDivElement>, QAProps, Roleable {
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const Col: React.ForwardRefExoticComponent<Pick<
|
|
8
|
+
export declare const Col: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<GridColumnProps>, "style" | "children" | "sizes" | "className" | "hidden" | "role" | "qa" | "reset" | "visible" | "offsets" | "orders" | "alignSelf" | "justifyContent"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithChildren } from '../../models';
|
|
3
2
|
import '../styles/bootstrap.css';
|
|
4
3
|
import './Grid.css';
|
|
5
4
|
export interface GridProps {
|
|
@@ -8,4 +7,4 @@ export interface GridProps {
|
|
|
8
7
|
containerClass?: string;
|
|
9
8
|
style?: React.CSSProperties;
|
|
10
9
|
}
|
|
11
|
-
export declare const Grid: ({ debug, children, className, style, containerClass, }:
|
|
10
|
+
export declare const Grid: ({ debug, children, className, style, containerClass, }: React.PropsWithChildren<GridProps>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Animatable, BlockDecorationProps, ConstructorItem, ThemedMediaProps
|
|
2
|
+
import { Animatable, BlockDecorationProps, ConstructorItem, ThemedMediaProps } from './';
|
|
3
3
|
export interface PageData {
|
|
4
4
|
content: PageContent;
|
|
5
5
|
}
|
|
@@ -28,7 +28,7 @@ export type FetchLoadableData<TData = LoadableData> = (params: FetchLoadableData
|
|
|
28
28
|
export type ShouldRenderBlock = (block: ConstructorBlock, blockKey: string) => Boolean;
|
|
29
29
|
export type OnInit = (data: InitConstrucorState) => void;
|
|
30
30
|
type ComponentProps = React.ComponentProps<React.ComponentClass<any>>;
|
|
31
|
-
export type CustomItem =
|
|
31
|
+
export type CustomItem = React.PropsWithChildren<ComponentProps> | React.ComponentType<PropsWithChildren<ComponentProps>>;
|
|
32
32
|
export type CustomItems = Record<string, CustomItem>;
|
|
33
33
|
export interface LoadableConfigItem {
|
|
34
34
|
fetch: FetchLoadableData;
|
|
@@ -157,8 +157,8 @@ unpredictable css rules order in build */
|
|
|
157
157
|
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display {
|
|
158
158
|
position: relative;
|
|
159
159
|
}
|
|
160
|
-
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required):before,
|
|
161
|
-
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display span:not(.hs-form-required):before {
|
|
160
|
+
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display > span:not(.hs-form-required):before,
|
|
161
|
+
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display > span:not(.hs-form-required):before {
|
|
162
162
|
content: "";
|
|
163
163
|
position: absolute;
|
|
164
164
|
top: 0;
|
|
@@ -170,8 +170,8 @@ unpredictable css rules order in build */
|
|
|
170
170
|
border: 1px solid var(--g-color-line-generic-accent);
|
|
171
171
|
transition: background-color 0.1s linear;
|
|
172
172
|
}
|
|
173
|
-
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required):after,
|
|
174
|
-
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display span:not(.hs-form-required):after {
|
|
173
|
+
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display > span:not(.hs-form-required):after,
|
|
174
|
+
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display > span:not(.hs-form-required):after {
|
|
175
175
|
content: "";
|
|
176
176
|
position: absolute;
|
|
177
177
|
top: -10px;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Animatable, BlockDecorationProps, ConstructorItem, ThemedMediaProps
|
|
2
|
+
import { Animatable, BlockDecorationProps, ConstructorItem, ThemedMediaProps } from './';
|
|
3
3
|
export interface PageData {
|
|
4
4
|
content: PageContent;
|
|
5
5
|
}
|
|
@@ -28,7 +28,7 @@ export type FetchLoadableData<TData = LoadableData> = (params: FetchLoadableData
|
|
|
28
28
|
export type ShouldRenderBlock = (block: ConstructorBlock, blockKey: string) => Boolean;
|
|
29
29
|
export type OnInit = (data: InitConstrucorState) => void;
|
|
30
30
|
type ComponentProps = React.ComponentProps<React.ComponentClass<any>>;
|
|
31
|
-
export type CustomItem =
|
|
31
|
+
export type CustomItem = React.PropsWithChildren<ComponentProps> | React.ComponentType<PropsWithChildren<ComponentProps>>;
|
|
32
32
|
export type CustomItems = Record<string, CustomItem>;
|
|
33
33
|
export interface LoadableConfigItem {
|
|
34
34
|
fetch: FetchLoadableData;
|
package/server/models/index.d.ts
CHANGED
package/server/models/index.js
CHANGED
|
@@ -19,6 +19,5 @@ __exportStar(require("./constructor-items"), exports);
|
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
20
|
__exportStar(require("./components"), exports);
|
|
21
21
|
__exportStar(require("./guards"), exports);
|
|
22
|
-
__exportStar(require("./react"), exports);
|
|
23
22
|
__exportStar(require("./navigation"), exports);
|
|
24
23
|
__exportStar(require("./customization"), exports);
|