@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.
@@ -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;
@@ -45,6 +45,14 @@ export declare const BackgroundCard: {
45
45
  disableCompress: {
46
46
  type: string;
47
47
  };
48
+ loading: {
49
+ type: string;
50
+ enum: string[];
51
+ };
52
+ fetchPriority: {
53
+ type: string;
54
+ enum: string[];
55
+ };
48
56
  };
49
57
  } & {
50
58
  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-content__link),
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-content__link),
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-content__link),
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-content__link) {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.19.0",
3
+ "version": "5.20.1",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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<HTMLProps<HTMLImageElement>, 'aria-describedby'> {
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 {