@blaze-cms/react-page-builder 0.132.0-admin-updates.1 → 0.132.0-admin-updates.5
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/CHANGELOG.md +21 -65
- package/lib/components/Layout/Layout.js +7 -3
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +8 -4
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Layout/Layout.js +15 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.132.0-admin-updates.
|
|
6
|
+
# [0.132.0-admin-updates.5](https://github.com/thebyte9/blaze/compare/v0.132.0-admin-updates.4...v0.132.0-admin-updates.5) (2023-08-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.131.2](https://github.com/thebyte9/blaze/compare/v0.132.0-admin-updates.1...v0.131.2) (2023-08-04)
|
|
7
11
|
|
|
8
12
|
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* deconstruct sticky from children ([#4007](https://github.com/thebyte9/blaze/issues/4007)) ([1d3ad89](https://github.com/thebyte9/blaze/commit/1d3ad89c6a600ffb08964002ca9eda86c68e61f2))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# [0.132.0-admin-updates.2](https://github.com/thebyte9/blaze/compare/v0.132.0-admin-updates.1...v0.132.0-admin-updates.2) (2023-08-11)
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* deconstruct sticky from children ([e2ad5f2](https://github.com/thebyte9/blaze/commit/e2ad5f245a300e8a38fd6256daa01dcff4c3e29c))
|
|
26
|
+
|
|
27
|
+
# [0.132.0-admin-updates.1](https://github.com/thebyte9/blaze/compare/v0.131.1...v0.132.0-admin-updates.1) (2023-08-04)
|
|
28
|
+
|
|
9
29
|
### Bug Fixes
|
|
10
30
|
|
|
11
31
|
* add collapse property to searchContent ([#3964](https://github.com/thebyte9/blaze/issues/3964)) ([5bc7813](https://github.com/thebyte9/blaze/commit/5bc78136356ce826a92da7f8045ac4c2c44796ed))
|
|
@@ -25,7 +45,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
25
45
|
* set width to carousel container ([5926a7a](https://github.com/thebyte9/blaze/commit/5926a7a285c568514dfbca9360335c1e88836a0c))
|
|
26
46
|
* set width to carousel container ([7ff4e62](https://github.com/thebyte9/blaze/commit/7ff4e6242b2f31a83c605f5edec508ce256aab5a))
|
|
27
47
|
|
|
28
|
-
|
|
29
48
|
### Features
|
|
30
49
|
|
|
31
50
|
* add isHtml option to data summary component to render string as html ([#3969](https://github.com/thebyte9/blaze/issues/3969)) ([fbf2d75](https://github.com/thebyte9/blaze/commit/fbf2d75f39597f83f78cd435277c07676a21c245))
|
|
@@ -35,11 +54,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
54
|
* Filters and sorts now target generic or specific lists ([#3973](https://github.com/thebyte9/blaze/issues/3973)) ([39c0af3](https://github.com/thebyte9/blaze/commit/39c0af3ed266369968139efe827a805ced71bd70))
|
|
36
55
|
* filteryBy on cards allow for id prop which fetches related data on parent to render ([#3975](https://github.com/thebyte9/blaze/issues/3975)) ([4027759](https://github.com/thebyte9/blaze/commit/4027759ecf893976e9479db5d1c8d5aec8a2c031))
|
|
37
56
|
|
|
38
|
-
|
|
39
|
-
|
|
40
57
|
# [0.132.0-admin-updates.0](https://github.com/thebyte9/blaze/compare/v0.131.0...v0.132.0-admin-updates.0) (2023-07-27)
|
|
41
58
|
|
|
42
|
-
|
|
43
59
|
### Bug Fixes
|
|
44
60
|
|
|
45
61
|
* add collapse property to searchContent ([#3964](https://github.com/thebyte9/blaze/issues/3964)) ([3703a29](https://github.com/thebyte9/blaze/commit/3703a29d9a838f857863430d9223025900f29880))
|
|
@@ -58,7 +74,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
58
74
|
* reset search filters and handle single text property ([#3996](https://github.com/thebyte9/blaze/issues/3996)) ([0160414](https://github.com/thebyte9/blaze/commit/016041454d30cc4cfc0a4c8e2d484fcedc2a631c))
|
|
59
75
|
* set width to carousel container ([d8f3ffb](https://github.com/thebyte9/blaze/commit/d8f3ffbdd22df47dcac88446828c2af5ac0f3318))
|
|
60
76
|
|
|
61
|
-
|
|
62
77
|
### Features
|
|
63
78
|
|
|
64
79
|
* add isHtml option to data summary component to render string as html ([#3969](https://github.com/thebyte9/blaze/issues/3969)) ([6005cdf](https://github.com/thebyte9/blaze/commit/6005cdf0e18f2eea51cc7bc143cf34423743fe5e))
|
|
@@ -71,13 +86,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
71
86
|
* filteryBy on cards allow for id prop which fetches related data on parent to render ([#3975](https://github.com/thebyte9/blaze/issues/3975)) ([2eed0ed](https://github.com/thebyte9/blaze/commit/2eed0ed09cedda3a9424d3b88cb16bb437eada50))
|
|
72
87
|
* filteryBy on cards allow for id prop which fetches related data on parent to render ([#3975](https://github.com/thebyte9/blaze/issues/3975)) ([b18c177](https://github.com/thebyte9/blaze/commit/b18c177b9ad0c137fe98a979bfa6ca4baa5e214b))
|
|
73
88
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
89
|
# [0.132.0-admin-updates.0](https://github.com/thebyte9/blaze/compare/v0.131.0...v0.132.0-admin-updates.0) (2023-07-27)
|
|
79
90
|
|
|
80
|
-
|
|
81
91
|
### Bug Fixes
|
|
82
92
|
|
|
83
93
|
* add collapse property to searchContent ([#3964](https://github.com/thebyte9/blaze/issues/3964)) ([3703a29](https://github.com/thebyte9/blaze/commit/3703a29d9a838f857863430d9223025900f29880))
|
|
@@ -96,7 +106,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
96
106
|
* reset search filters and handle single text property ([#3996](https://github.com/thebyte9/blaze/issues/3996)) ([0160414](https://github.com/thebyte9/blaze/commit/016041454d30cc4cfc0a4c8e2d484fcedc2a631c))
|
|
97
107
|
* set width to carousel container ([d8f3ffb](https://github.com/thebyte9/blaze/commit/d8f3ffbdd22df47dcac88446828c2af5ac0f3318))
|
|
98
108
|
|
|
99
|
-
|
|
100
109
|
### Features
|
|
101
110
|
|
|
102
111
|
* add isHtml option to data summary component to render string as html ([#3969](https://github.com/thebyte9/blaze/issues/3969)) ([6005cdf](https://github.com/thebyte9/blaze/commit/6005cdf0e18f2eea51cc7bc143cf34423743fe5e))
|
|
@@ -109,40 +118,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
109
118
|
* filteryBy on cards allow for id prop which fetches related data on parent to render ([#3975](https://github.com/thebyte9/blaze/issues/3975)) ([2eed0ed](https://github.com/thebyte9/blaze/commit/2eed0ed09cedda3a9424d3b88cb16bb437eada50))
|
|
110
119
|
* filteryBy on cards allow for id prop which fetches related data on parent to render ([#3975](https://github.com/thebyte9/blaze/issues/3975)) ([b18c177](https://github.com/thebyte9/blaze/commit/b18c177b9ad0c137fe98a979bfa6ca4baa5e214b))
|
|
111
120
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
121
|
# [0.131.0](https://github.com/thebyte9/blaze/compare/v0.130.1...v0.131.0) (2023-07-18)
|
|
117
122
|
|
|
118
|
-
|
|
119
123
|
### Features
|
|
120
124
|
|
|
121
125
|
* add sticky setting to column and row ([#3988](https://github.com/thebyte9/blaze/issues/3988)) ([735b3b0](https://github.com/thebyte9/blaze/commit/735b3b09e0af15ad262119472579a1120da00347))
|
|
122
126
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
127
|
## [0.130.1](https://github.com/thebyte9/blaze/compare/v0.130.0...v0.130.1) (2023-07-06)
|
|
128
128
|
|
|
129
129
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
131
|
# [0.130.0](https://github.com/thebyte9/blaze/compare/v0.130.0-alpha.0...v0.130.0) (2023-07-04)
|
|
136
132
|
|
|
137
133
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
138
134
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
135
|
# [0.130.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.129.0...v0.130.0-alpha.0) (2023-07-04)
|
|
144
136
|
|
|
145
|
-
|
|
146
137
|
### Bug Fixes
|
|
147
138
|
|
|
148
139
|
* added basic style for smooth auto scrolling ([42ab95b](https://github.com/thebyte9/blaze/commit/42ab95b74c9fc77cfa735bc3b6c38ad562a628d6))
|
|
@@ -157,73 +148,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
157
148
|
* list az full render ([#3882](https://github.com/thebyte9/blaze/issues/3882)) ([899556e](https://github.com/thebyte9/blaze/commit/899556ec005235367c1002d35c03ac953d5c6991))
|
|
158
149
|
* updated snapshots ([8ce52c4](https://github.com/thebyte9/blaze/commit/8ce52c4f7ed243cc1f7d3454d0f1afc4a803d6f5))
|
|
159
150
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
151
|
# [0.129.0](https://github.com/thebyte9/blaze/compare/v0.129.0-alpha.1...v0.129.0) (2023-05-23)
|
|
165
152
|
|
|
166
153
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
167
154
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
155
|
# [0.129.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.129.0-alpha.0...v0.129.0-alpha.1) (2023-05-17)
|
|
173
156
|
|
|
174
157
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
175
158
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
159
|
# [0.129.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.128.2...v0.129.0-alpha.0) (2023-05-10)
|
|
181
160
|
|
|
182
161
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
183
162
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
163
|
## [0.128.1](https://github.com/thebyte9/blaze/compare/v0.128.1-alpha.0...v0.128.1) (2023-04-14)
|
|
189
164
|
|
|
190
165
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
191
166
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
167
|
## [0.128.1-alpha.0](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.4...v0.128.1-alpha.0) (2023-04-14)
|
|
197
168
|
|
|
198
169
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
199
170
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
171
|
# [0.128.0](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.4...v0.128.0) (2023-04-13)
|
|
205
172
|
|
|
206
173
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
207
174
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
175
|
# [0.128.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.3...v0.128.0-alpha.4) (2023-04-13)
|
|
213
176
|
|
|
214
|
-
|
|
215
177
|
### Bug Fixes
|
|
216
178
|
|
|
217
179
|
* data summary now uses url if prop matches checks ([68e2119](https://github.com/thebyte9/blaze/commit/68e2119559ac9f0005e16f0c85620aa823b62b76))
|
|
218
180
|
|
|
219
|
-
|
|
220
|
-
|
|
221
181
|
## [0.127.3](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.2...v0.127.3) (2023-03-31)
|
|
222
182
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
183
|
# [0.128.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.2...v0.128.0-alpha.3) (2023-04-12)
|
|
228
184
|
|
|
229
185
|
## [0.127.3](https://github.com/thebyte9/blaze/compare/v0.127.2...v0.127.3) (2023-03-31)
|
|
@@ -27,7 +27,7 @@ var _hooks = require("../../hooks");
|
|
|
27
27
|
var _helpers = require("./helpers");
|
|
28
28
|
var _helpers2 = require("../../helpers");
|
|
29
29
|
var _constants = require("../../constants");
|
|
30
|
-
var _excluded = ["type", "children", "settings", "modifier", "backgroundImage", "tagType", "dataNoSnippet"];
|
|
30
|
+
var _excluded = ["type", "children", "settings", "modifier", "backgroundImage", "tagType", "dataNoSnippet", "sticky"];
|
|
31
31
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
33
|
var Layout = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
@@ -38,6 +38,7 @@ var Layout = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
38
38
|
backgroundImage = _ref.backgroundImage,
|
|
39
39
|
tagType = _ref.tagType,
|
|
40
40
|
dataNoSnippet = _ref.dataNoSnippet,
|
|
41
|
+
sticky = _ref.sticky,
|
|
41
42
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
42
43
|
var _useGetImages = (0, _hooks.useGetImages)(backgroundImage),
|
|
43
44
|
_useGetImages$data$ge = _useGetImages.data.getFile,
|
|
@@ -49,7 +50,8 @@ var Layout = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
49
50
|
});
|
|
50
51
|
var title = settings.title;
|
|
51
52
|
var classModifiers = (0, _utils.getClassModifiers)(type, _objectSpread({
|
|
52
|
-
modifier: modifier
|
|
53
|
+
modifier: modifier,
|
|
54
|
+
sticky: sticky
|
|
53
55
|
}, otherProps));
|
|
54
56
|
var additionalRowModifier = (0, _helpers.checkIfRowHasColumns)(type, children) ? ' display-row' : '';
|
|
55
57
|
if (type === _constants.COLUMN && !(0, _helpers2.hasChildren)(children)) return null;
|
|
@@ -67,6 +69,7 @@ var Layout = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
67
69
|
});
|
|
68
70
|
Layout.propTypes = {
|
|
69
71
|
type: _propTypes["default"].string.isRequired,
|
|
72
|
+
sticky: _propTypes["default"].bool,
|
|
70
73
|
settings: _propTypes["default"].shape({
|
|
71
74
|
title: _propTypes["default"].string
|
|
72
75
|
}),
|
|
@@ -83,7 +86,8 @@ Layout.defaultProps = {
|
|
|
83
86
|
backgroundImage: '',
|
|
84
87
|
modifier: '',
|
|
85
88
|
tagType: '',
|
|
86
|
-
dataNoSnippet: false
|
|
89
|
+
dataNoSnippet: false,
|
|
90
|
+
sticky: false
|
|
87
91
|
};
|
|
88
92
|
var _default = Layout;
|
|
89
93
|
exports["default"] = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","names":["_react","_interopRequireDefault","require","_propTypes","_Wrapper","_utils","_hooks","_helpers","_helpers2","_constants","_excluded","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","Layout","React","forwardRef","_ref","ref","type","children","settings","modifier","backgroundImage","tagType","dataNoSnippet","otherProps","_objectWithoutProperties2","_useGetImages","useGetImages","_useGetImages$data$ge","data","getFile","_useGetImages$data$ge2","_useGetImages$data$ge3","url","style","getStylesToUpdate","title","classModifiers","getClassModifiers","additionalRowModifier","checkIfRowHasColumns","COLUMN","hasChildren","otherWrapperProps","createElement","_extends2","className","modifiers","concat","renderChildren","propTypes","PropTypes","string","isRequired","
|
|
1
|
+
{"version":3,"file":"Layout.js","names":["_react","_interopRequireDefault","require","_propTypes","_Wrapper","_utils","_hooks","_helpers","_helpers2","_constants","_excluded","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","Layout","React","forwardRef","_ref","ref","type","children","settings","modifier","backgroundImage","tagType","dataNoSnippet","sticky","otherProps","_objectWithoutProperties2","_useGetImages","useGetImages","_useGetImages$data$ge","data","getFile","_useGetImages$data$ge2","_useGetImages$data$ge3","url","style","getStylesToUpdate","title","classModifiers","getClassModifiers","additionalRowModifier","checkIfRowHasColumns","COLUMN","hasChildren","otherWrapperProps","createElement","_extends2","className","modifiers","concat","renderChildren","propTypes","PropTypes","string","isRequired","bool","shape","oneOfType","arrayOf","node","defaultProps","_default","exports"],"sources":["../../../src/components/Layout/Layout.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Wrapper from '../Wrapper';\nimport { getClassModifiers } from '../../utils';\nimport { useGetImages } from '../../hooks';\nimport { getStylesToUpdate, checkIfRowHasColumns } from './helpers';\nimport { renderChildren, hasChildren } from '../../helpers';\nimport { COLUMN } from '../../constants';\n\nconst Layout = React.forwardRef(\n (\n {\n type,\n children,\n settings,\n modifier,\n backgroundImage,\n tagType,\n dataNoSnippet,\n sticky,\n ...otherProps\n },\n ref\n ) => {\n const {\n data: { getFile: { url = null } = {} }\n } = useGetImages(backgroundImage);\n\n const style = getStylesToUpdate({ backgroundImage: url });\n const { title } = settings;\n\n const classModifiers = getClassModifiers(type, { modifier, sticky, ...otherProps });\n const additionalRowModifier = checkIfRowHasColumns(type, children) ? ' display-row' : '';\n\n if (type === COLUMN && !hasChildren(children)) return null;\n\n const otherWrapperProps = {};\n if (dataNoSnippet) otherWrapperProps['data-nosnippet'] = true;\n\n return (\n <Wrapper\n ref={ref}\n tagType={tagType}\n className={type}\n modifiers={`${classModifiers}${additionalRowModifier}`}\n style={style}\n {...otherWrapperProps}>\n {title && <h2 className=\"heading heading--section\">{title}</h2>}\n {renderChildren(children, otherProps)}\n </Wrapper>\n );\n }\n);\n\nLayout.propTypes = {\n type: PropTypes.string.isRequired,\n sticky: PropTypes.bool,\n settings: PropTypes.shape({\n title: PropTypes.string\n }),\n modifier: PropTypes.string,\n backgroundImage: PropTypes.string,\n tagType: PropTypes.string,\n dataNoSnippet: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nLayout.defaultProps = {\n settings: {\n title: ''\n },\n backgroundImage: '',\n modifier: '',\n tagType: '',\n dataNoSnippet: false,\n sticky: false\n};\n\nexport default Layout;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAAyC,IAAAQ,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
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
const _excluded = ["type", "children", "settings", "modifier", "backgroundImage", "tagType", "dataNoSnippet"];
|
|
4
|
+
const _excluded = ["type", "children", "settings", "modifier", "backgroundImage", "tagType", "dataNoSnippet", "sticky"];
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
import React from 'react';
|
|
@@ -20,7 +20,8 @@ const Layout = React.forwardRef((_ref, ref) => {
|
|
|
20
20
|
modifier,
|
|
21
21
|
backgroundImage,
|
|
22
22
|
tagType,
|
|
23
|
-
dataNoSnippet
|
|
23
|
+
dataNoSnippet,
|
|
24
|
+
sticky
|
|
24
25
|
} = _ref,
|
|
25
26
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
26
27
|
const {
|
|
@@ -37,7 +38,8 @@ const Layout = React.forwardRef((_ref, ref) => {
|
|
|
37
38
|
title
|
|
38
39
|
} = settings;
|
|
39
40
|
const classModifiers = getClassModifiers(type, _objectSpread({
|
|
40
|
-
modifier
|
|
41
|
+
modifier,
|
|
42
|
+
sticky
|
|
41
43
|
}, otherProps));
|
|
42
44
|
const additionalRowModifier = checkIfRowHasColumns(type, children) ? ' display-row' : '';
|
|
43
45
|
if (type === COLUMN && !hasChildren(children)) return null;
|
|
@@ -55,6 +57,7 @@ const Layout = React.forwardRef((_ref, ref) => {
|
|
|
55
57
|
});
|
|
56
58
|
Layout.propTypes = {
|
|
57
59
|
type: PropTypes.string.isRequired,
|
|
60
|
+
sticky: PropTypes.bool,
|
|
58
61
|
settings: PropTypes.shape({
|
|
59
62
|
title: PropTypes.string
|
|
60
63
|
}),
|
|
@@ -71,7 +74,8 @@ Layout.defaultProps = {
|
|
|
71
74
|
backgroundImage: '',
|
|
72
75
|
modifier: '',
|
|
73
76
|
tagType: '',
|
|
74
|
-
dataNoSnippet: false
|
|
77
|
+
dataNoSnippet: false,
|
|
78
|
+
sticky: false
|
|
75
79
|
};
|
|
76
80
|
export default Layout;
|
|
77
81
|
//# sourceMappingURL=Layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","names":["React","PropTypes","Wrapper","getClassModifiers","useGetImages","getStylesToUpdate","checkIfRowHasColumns","renderChildren","hasChildren","COLUMN","Layout","forwardRef","_ref","ref","type","children","settings","modifier","backgroundImage","tagType","dataNoSnippet","otherProps","_objectWithoutProperties","_excluded","data","getFile","url","style","title","classModifiers","_objectSpread","additionalRowModifier","otherWrapperProps","createElement","_extends","className","modifiers","propTypes","string","isRequired","
|
|
1
|
+
{"version":3,"file":"Layout.js","names":["React","PropTypes","Wrapper","getClassModifiers","useGetImages","getStylesToUpdate","checkIfRowHasColumns","renderChildren","hasChildren","COLUMN","Layout","forwardRef","_ref","ref","type","children","settings","modifier","backgroundImage","tagType","dataNoSnippet","sticky","otherProps","_objectWithoutProperties","_excluded","data","getFile","url","style","title","classModifiers","_objectSpread","additionalRowModifier","otherWrapperProps","createElement","_extends","className","modifiers","propTypes","string","isRequired","bool","shape","oneOfType","arrayOf","node","defaultProps"],"sources":["../../../src/components/Layout/Layout.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Wrapper from '../Wrapper';\nimport { getClassModifiers } from '../../utils';\nimport { useGetImages } from '../../hooks';\nimport { getStylesToUpdate, checkIfRowHasColumns } from './helpers';\nimport { renderChildren, hasChildren } from '../../helpers';\nimport { COLUMN } from '../../constants';\n\nconst Layout = React.forwardRef(\n (\n {\n type,\n children,\n settings,\n modifier,\n backgroundImage,\n tagType,\n dataNoSnippet,\n sticky,\n ...otherProps\n },\n ref\n ) => {\n const {\n data: { getFile: { url = null } = {} }\n } = useGetImages(backgroundImage);\n\n const style = getStylesToUpdate({ backgroundImage: url });\n const { title } = settings;\n\n const classModifiers = getClassModifiers(type, { modifier, sticky, ...otherProps });\n const additionalRowModifier = checkIfRowHasColumns(type, children) ? ' display-row' : '';\n\n if (type === COLUMN && !hasChildren(children)) return null;\n\n const otherWrapperProps = {};\n if (dataNoSnippet) otherWrapperProps['data-nosnippet'] = true;\n\n return (\n <Wrapper\n ref={ref}\n tagType={tagType}\n className={type}\n modifiers={`${classModifiers}${additionalRowModifier}`}\n style={style}\n {...otherWrapperProps}>\n {title && <h2 className=\"heading heading--section\">{title}</h2>}\n {renderChildren(children, otherProps)}\n </Wrapper>\n );\n }\n);\n\nLayout.propTypes = {\n type: PropTypes.string.isRequired,\n sticky: PropTypes.bool,\n settings: PropTypes.shape({\n title: PropTypes.string\n }),\n modifier: PropTypes.string,\n backgroundImage: PropTypes.string,\n tagType: PropTypes.string,\n dataNoSnippet: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nLayout.defaultProps = {\n settings: {\n title: ''\n },\n backgroundImage: '',\n modifier: '',\n tagType: '',\n dataNoSnippet: false,\n sticky: false\n};\n\nexport default Layout;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,YAAY;AAChC,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,YAAY,QAAQ,aAAa;AAC1C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AG,GAAEP,cAAe,GAAEE,qBAAsB,EAAE;IACvDJ,KAAK,EAAEA;EAAM,GACTK,iBAAiB,GACpBJ,KAAK,iBAAI7B,KAAA,CAAAkC,aAAA;IAAIE,SAAS,EAAC;EAA0B,GAAEP,KAAU,CAAC,EAC9DtB,cAAc,CAACQ,QAAQ,EAAEO,UAAU,CAC7B,CAAC;AAEd,CACF,CAAC;AAEDZ,MAAM,CAAC4B,SAAS,GAAG;EACjBxB,IAAI,EAAEb,SAAS,CAACsC,MAAM,CAACC,UAAU;EACjCnB,MAAM,EAAEpB,SAAS,CAACwC,IAAI;EACtBzB,QAAQ,EAAEf,SAAS,CAACyC,KAAK,CAAC;IACxBb,KAAK,EAAE5B,SAAS,CAACsC;EACnB,CAAC,CAAC;EACFtB,QAAQ,EAAEhB,SAAS,CAACsC,MAAM;EAC1BrB,eAAe,EAAEjB,SAAS,CAACsC,MAAM;EACjCpB,OAAO,EAAElB,SAAS,CAACsC,MAAM;EACzBnB,aAAa,EAAEnB,SAAS,CAACwC,IAAI;EAC7B1B,QAAQ,EAAEd,SAAS,CAAC0C,SAAS,CAAC,CAAC1C,SAAS,CAAC2C,OAAO,CAAC3C,SAAS,CAAC4C,IAAI,CAAC,EAAE5C,SAAS,CAAC4C,IAAI,CAAC,CAAC,CAACL;AACrF,CAAC;AAED9B,MAAM,CAACoC,YAAY,GAAG;EACpB9B,QAAQ,EAAE;IACRa,KAAK,EAAE;EACT,CAAC;EACDX,eAAe,EAAE,EAAE;EACnBD,QAAQ,EAAE,EAAE;EACZE,OAAO,EAAE,EAAE;EACXC,aAAa,EAAE,KAAK;EACpBC,MAAM,EAAE;AACV,CAAC;AAED,eAAeX,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/react-page-builder",
|
|
3
|
-
"version": "0.132.0-admin-updates.
|
|
3
|
+
"version": "0.132.0-admin-updates.5",
|
|
4
4
|
"description": "Blaze react page builder",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"lib/*",
|
|
90
90
|
"lib-es/*"
|
|
91
91
|
],
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "24fcdaf314ec2f059230396748e62e7f43af7775"
|
|
93
93
|
}
|
|
@@ -9,7 +9,17 @@ import { COLUMN } from '../../constants';
|
|
|
9
9
|
|
|
10
10
|
const Layout = React.forwardRef(
|
|
11
11
|
(
|
|
12
|
-
{
|
|
12
|
+
{
|
|
13
|
+
type,
|
|
14
|
+
children,
|
|
15
|
+
settings,
|
|
16
|
+
modifier,
|
|
17
|
+
backgroundImage,
|
|
18
|
+
tagType,
|
|
19
|
+
dataNoSnippet,
|
|
20
|
+
sticky,
|
|
21
|
+
...otherProps
|
|
22
|
+
},
|
|
13
23
|
ref
|
|
14
24
|
) => {
|
|
15
25
|
const {
|
|
@@ -19,7 +29,7 @@ const Layout = React.forwardRef(
|
|
|
19
29
|
const style = getStylesToUpdate({ backgroundImage: url });
|
|
20
30
|
const { title } = settings;
|
|
21
31
|
|
|
22
|
-
const classModifiers = getClassModifiers(type, { modifier, ...otherProps });
|
|
32
|
+
const classModifiers = getClassModifiers(type, { modifier, sticky, ...otherProps });
|
|
23
33
|
const additionalRowModifier = checkIfRowHasColumns(type, children) ? ' display-row' : '';
|
|
24
34
|
|
|
25
35
|
if (type === COLUMN && !hasChildren(children)) return null;
|
|
@@ -44,6 +54,7 @@ const Layout = React.forwardRef(
|
|
|
44
54
|
|
|
45
55
|
Layout.propTypes = {
|
|
46
56
|
type: PropTypes.string.isRequired,
|
|
57
|
+
sticky: PropTypes.bool,
|
|
47
58
|
settings: PropTypes.shape({
|
|
48
59
|
title: PropTypes.string
|
|
49
60
|
}),
|
|
@@ -61,7 +72,8 @@ Layout.defaultProps = {
|
|
|
61
72
|
backgroundImage: '',
|
|
62
73
|
modifier: '',
|
|
63
74
|
tagType: '',
|
|
64
|
-
dataNoSnippet: false
|
|
75
|
+
dataNoSnippet: false,
|
|
76
|
+
sticky: false
|
|
65
77
|
};
|
|
66
78
|
|
|
67
79
|
export default Layout;
|