@gravity-ui/page-constructor 4.45.0 → 4.46.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/README.md +1 -1
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/schema/validators/components.d.ts +1 -0
- package/build/cjs/schema/validators/components.js +1 -0
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/esm/schema/validators/components.d.ts +1 -0
- package/build/esm/schema/validators/components.js +1 -0
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/package.json +1 -1
- package/widget/index.js +1 -1
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@ The page constructor uses the `bootstrap` grid and its implementation based on R
|
|
|
151
151
|
Usage example:
|
|
152
152
|
|
|
153
153
|
```jsx
|
|
154
|
-
import {Grid, Row, Col} from '@gravity-ui/page-constructor
|
|
154
|
+
import {Grid, Row, Col} from '@gravity-ui/page-constructor';
|
|
155
155
|
|
|
156
156
|
const Page: React.FC<PageProps> = ({children}) => (
|
|
157
157
|
<Grid>
|
|
@@ -23,7 +23,7 @@ const BalancedMasonry = (props) => {
|
|
|
23
23
|
}
|
|
24
24
|
for (const [rawWidth, columnCount] of breakpoints) {
|
|
25
25
|
const width = Number(rawWidth);
|
|
26
|
-
if (document.body.clientWidth <= width) {
|
|
26
|
+
if ((document === null || document === void 0 ? void 0 : document.body.clientWidth) <= width) {
|
|
27
27
|
result = columnCount;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("../../components/Author/schema"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("../../components/Image/schema"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../../components/YandexForm/schema"), exports);
|
|
@@ -10,3 +10,4 @@ tslib_1.__exportStar(require("../../sub-blocks/Quote/schema"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("../../sub-blocks/Divider/schema"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("../../sub-blocks/BasicCard/schema"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("../../sub-blocks/PriceCard/schema"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("../../sub-blocks/HubspotForm/schema"), exports);
|
|
@@ -21,7 +21,7 @@ const BalancedMasonry = (props) => {
|
|
|
21
21
|
}
|
|
22
22
|
for (const [rawWidth, columnCount] of breakpoints) {
|
|
23
23
|
const width = Number(rawWidth);
|
|
24
|
-
if (document.body.clientWidth <= width) {
|
|
24
|
+
if ((document === null || document === void 0 ? void 0 : document.body.clientWidth) <= width) {
|
|
25
25
|
result = columnCount;
|
|
26
26
|
}
|
|
27
27
|
}
|