@gravity-ui/page-constructor 5.19.0 → 5.20.1
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/build/cjs/blocks/CardLayout/schema.d.ts +32 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +34 -6
- package/build/cjs/components/Image/Image.js +2 -2
- package/build/cjs/components/Image/schema.d.ts +40 -0
- package/build/cjs/components/Image/schema.js +8 -0
- package/build/cjs/components/ImageBase/ImageBase.d.ts +1 -1
- package/build/cjs/components/ImageBase/ImageBase.js +8 -2
- package/build/cjs/context/imageContext/imageContext.d.ts +2 -3
- package/build/cjs/models/constructor-items/common.d.ts +3 -2
- package/build/cjs/schema/constants.d.ts +8 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +8 -0
- package/build/cjs/sub-blocks/Content/Content.css +4 -4
- package/build/esm/blocks/CardLayout/schema.d.ts +32 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +34 -6
- package/build/esm/components/Image/Image.js +2 -2
- package/build/esm/components/Image/schema.d.ts +40 -0
- package/build/esm/components/Image/schema.js +8 -0
- package/build/esm/components/ImageBase/ImageBase.d.ts +1 -1
- package/build/esm/components/ImageBase/ImageBase.js +9 -2
- package/build/esm/context/imageContext/imageContext.d.ts +2 -3
- package/build/esm/models/constructor-items/common.d.ts +3 -2
- package/build/esm/schema/constants.d.ts +8 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +8 -0
- package/build/esm/sub-blocks/Content/Content.css +4 -4
- package/package.json +1 -1
- package/server/models/constructor-items/common.d.ts +3 -2
- package/widget/index.js +1 -1
|
@@ -796,6 +796,14 @@ export declare const cardSchemas: {
|
|
|
796
796
|
disableCompress: {
|
|
797
797
|
type: string;
|
|
798
798
|
};
|
|
799
|
+
loading: {
|
|
800
|
+
type: string;
|
|
801
|
+
enum: string[];
|
|
802
|
+
};
|
|
803
|
+
fetchPriority: {
|
|
804
|
+
type: string;
|
|
805
|
+
enum: string[];
|
|
806
|
+
};
|
|
799
807
|
};
|
|
800
808
|
} & {
|
|
801
809
|
optionName: string;
|
|
@@ -148,12 +148,12 @@ unpredictable css rules order in build */
|
|
|
148
148
|
.pc-content_theme_light .pc-content__title a:hover {
|
|
149
149
|
color: var(--g-color-text-dark-secondary);
|
|
150
150
|
}
|
|
151
|
-
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-
|
|
151
|
+
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
|
|
152
152
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
|
|
153
|
-
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-
|
|
153
|
+
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
|
|
154
154
|
.pc-content_control-position_bottom .pc-content__text:has(+ .pc-content__buttons),
|
|
155
|
-
.pc-content_control-position_bottom .pc-content__text:has(+ .pc-
|
|
155
|
+
.pc-content_control-position_bottom .pc-content__text:has(+ .pc-content__links),
|
|
156
156
|
.pc-content_control-position_bottom .pc-content__title:has(+ .pc-content__buttons),
|
|
157
|
-
.pc-content_control-position_bottom .pc-content__title:has(+ .pc-
|
|
157
|
+
.pc-content_control-position_bottom .pc-content__title:has(+ .pc-content__links) {
|
|
158
158
|
margin-bottom: auto;
|
|
159
159
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { CSSProperties, HTMLProps, ReactNode } from 'react';
|
|
1
|
+
import React, { CSSProperties, DetailedHTMLProps, HTMLProps, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonView, ButtonProps as UikitButtonProps } from '@gravity-ui/uikit';
|
|
3
3
|
import { ThemeSupporting } from '../../utils';
|
|
4
4
|
import { AnalyticsEventsBase, AnalyticsEventsProp, ClassNameProps, QAProps } from '../common';
|
|
@@ -96,8 +96,9 @@ interface LoopProps {
|
|
|
96
96
|
start: number;
|
|
97
97
|
end?: number;
|
|
98
98
|
}
|
|
99
|
-
export interface ImageInfoProps extends Pick<
|
|
99
|
+
export interface ImageInfoProps extends Pick<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'aria-describedby' | 'loading'> {
|
|
100
100
|
alt?: string;
|
|
101
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
101
102
|
disableCompress?: boolean;
|
|
102
103
|
}
|
|
103
104
|
export interface ImageObjectProps extends ImageInfoProps {
|