@gravity-ui/page-constructor 4.29.1 → 4.29.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.
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultAnimatedDivQa = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
+ const web_1 = require("@react-spring/web");
6
7
  const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
7
- const react_spring_1 = require("react-spring");
8
8
  const Slider_1 = tslib_1.__importDefault(require("../../../blocks/Slider/Slider"));
9
9
  const models_1 = require("../../../models");
10
10
  const utils_1 = require("../../../utils");
@@ -18,9 +18,9 @@ const Image = (props) => {
18
18
  const { parallax, image, height, imageClassName, isBackground, hasVideoFallback, video, fullscreen, qa, } = props;
19
19
  const qaAttributes = (0, utils_1.getQaAttrubutes)(qa, 'fullscreen-image', 'animate', 'background-image', 'image-view', 'slider-block');
20
20
  const [scrollY, setScrollY] = (0, react_1.useState)(0);
21
- const [{ springScrollY }, springSetScrollY] = (0, react_spring_1.useSpring)(() => ({
21
+ const [{ springScrollY }, springSetScrollY] = (0, web_1.useSpring)(() => ({
22
22
  springScrollY: 0,
23
- config: react_spring_1.config.molasses,
23
+ config: web_1.config.molasses,
24
24
  }));
25
25
  let parallaxInterpolate = '';
26
26
  (0, react_1.useEffect)(() => {
@@ -44,7 +44,7 @@ const Image = (props) => {
44
44
  };
45
45
  const imageBackground = (oneImage) => {
46
46
  const imageData = (0, utils_2.getMediaImage)(oneImage);
47
- return (react_1.default.createElement(react_spring_1.animated.div, { style: { transform: parallaxInterpolate }, "data-qa": qaAttributes.animate },
47
+ return (react_1.default.createElement(web_1.animated.div, { style: { transform: parallaxInterpolate }, "data-qa": qaAttributes.animate },
48
48
  react_1.default.createElement(BackgroundImage_1.default, Object.assign({}, imageData, { className: imageClass, style: { height }, qa: qaAttributes.backgroundImage }))));
49
49
  };
50
50
  const imageOnly = (oneImage) => {
@@ -1,6 +1,6 @@
1
1
  import React, { Fragment, useEffect, useState } from 'react';
2
+ import { animated, config, useSpring } from '@react-spring/web';
2
3
  import debounce from 'lodash/debounce';
3
- import { animated, config, useSpring } from 'react-spring';
4
4
  import SliderBlock from '../../../blocks/Slider/Slider';
5
5
  import { SliderType } from '../../../models';
6
6
  import { block, getQaAttrubutes } from '../../../utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.29.1",
3
+ "version": "4.29.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -84,6 +84,7 @@
84
84
  "@gravity-ui/components": "^2.4.0",
85
85
  "@gravity-ui/dynamic-forms": "^2.3.0",
86
86
  "@gravity-ui/i18n": "^1.0.0",
87
+ "@react-spring/web": "^9.7.3",
87
88
  "ajv": "^8.12.0",
88
89
  "final-form": "^4.20.9",
89
90
  "github-buttons": "2.23.0",
@@ -93,7 +94,6 @@
93
94
  "react-monaco-editor": "^0.53.0",
94
95
  "react-player": "^2.9.0",
95
96
  "react-slick": "^0.29.0",
96
- "react-spring": "^9.7.2",
97
97
  "react-transition-group": "^4.4.2",
98
98
  "react-waypoint": "^10.1.0",
99
99
  "sanitize-html": "2.6.1",