@blaze-cms/react-page-builder 0.131.1 → 0.131.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.131.2](https://github.com/thebyte9/blaze/compare/v0.131.1...v0.131.2) (2023-08-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* deconstruct sticky from children ([#4007](https://github.com/thebyte9/blaze/issues/4007)) ([1d3ad89](https://github.com/thebyte9/blaze/commit/1d3ad89c6a600ffb08964002ca9eda86c68e61f2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.131.1](https://github.com/thebyte9/blaze/compare/v0.131.0...v0.131.1) (2023-07-28)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -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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AC,EAAEP,qBAAS,CAACO,IAAI,CAAC,CAAC,CAACL;AACrF,CAAC;AAED1C,MAAM,CAACgD,YAAY,GAAG;EACpBzC,QAAQ,EAAE;IACRkB,KAAK,EAAE;EACT,CAAC;EACDhB,eAAe,EAAE,EAAE;EACnBD,QAAQ,EAAE,EAAE;EACZE,OAAO,EAAE,EAAE;EACXC,aAAa,EAAE,KAAK;EACpBC,MAAM,EAAE;AACV,CAAC;AAAC,IAAAqC,QAAA,GAEajD,MAAM;AAAAkD,OAAA,cAAAD,QAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
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,SAASC,iBAAiB,EAAEC,oBAAoB,QAAQ,WAAW;AACnE,SAASC,cAAc,EAAEC,WAAW,QAAQ,eAAe;AAC3D,SAASC,MAAM,QAAQ,iBAAiB;AAExC,MAAMC,MAAM,GAAGV,KAAK,CAACW,UAAU,CAC7B,CAAAC,IAAA,EAYEC,GAAG,KACA;EAAA,IAZH;MACEC,IAAI;MACJC,QAAQ;MACRC,QAAQ;MACRC,QAAQ;MACRC,eAAe;MACfC,OAAO;MACPC,aAAa;MACbC;IAEF,CAAC,GAAAT,IAAA;IADIU,UAAU,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,SAAA;EAIf,MAAM;IACJC,IAAI,EAAE;MAAEC,OAAO,EAAE;QAAEC,GAAG,GAAG;MAAK,CAAC,GAAG,CAAC;IAAE;EACvC,CAAC,GAAGvB,YAAY,CAACc,eAAe,CAAC;EAEjC,MAAMU,KAAK,GAAGvB,iBAAiB,CAAC;IAAEa,eAAe,EAAES;EAAI,CAAC,CAAC;EACzD,MAAM;IAAEE;EAAM,CAAC,GAAGb,QAAQ;EAE1B,MAAMc,cAAc,GAAG3B,iBAAiB,CAACW,IAAI,EAAAiB,aAAA;IAAId,QAAQ;IAAEI;EAAM,GAAKC,UAAU,CAAE,CAAC;EACnF,MAAMU,qBAAqB,GAAG1B,oBAAoB,CAACQ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9B,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.131.
|
|
3
|
+
"version": "0.131.2",
|
|
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": "b3976bf978f518e23acbf1e8f240755d9d9b6b17"
|
|
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;
|