Skip to content

Commit

Permalink
Bump v0.15.8
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Sep 17, 2019
1 parent e85cfd1 commit aee18dc
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
26 changes: 16 additions & 10 deletions dist/grapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -31880,33 +31880,39 @@ var Component;
* Process component definition.
*/
processDef: function processDef(mdl) {
// Avoid processing Models
if (mdl.cid && mdl.ccid) return mdl;
var em = this.em,
_this$config = this.config,
config = _this$config === void 0 ? {} : _this$config;
var processor = config.processor;
var model = mdl;

var model = _objectSpread({}, mdl); // Avoid 'Cannot delete property ...'
if (processor) {
model = _objectSpread({}, model); // Avoid 'Cannot delete property ...'

var modelPr = processor(model);

var modelPr = processor && processor(model);

if (modelPr) {
Object(underscore__WEBPACK_IMPORTED_MODULE_3__["each"])(model, function (val, key) {
return delete model[key];
});
Object(underscore__WEBPACK_IMPORTED_MODULE_3__["extend"])(model, modelPr);
if (modelPr) {
Object(underscore__WEBPACK_IMPORTED_MODULE_3__["each"])(model, function (val, key) {
return delete model[key];
});
Object(underscore__WEBPACK_IMPORTED_MODULE_3__["extend"])(model, modelPr);
}
} // React JSX preset


if (model.$$typeof && _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(model.props) == 'object') {
model = _objectSpread({}, model);
model.props = _objectSpread({}, model.props);
var domc = em.get('DomComponents');
var parser = em.get('Parser');
var parserHtml = parser.parserHtml;
Object(underscore__WEBPACK_IMPORTED_MODULE_3__["each"])(model, function (value, key) {
if (!Object(underscore__WEBPACK_IMPORTED_MODULE_3__["includes"])(['props', 'type'], key)) delete model[key];
});
var props = model.props;
var _model = model,
props = _model.props;
var comps = props.children;
delete props.children;
delete model.props;
Expand Down Expand Up @@ -36222,7 +36228,7 @@ var defaultConfig = {
editors: editors,
plugins: plugins,
// Will be replaced on build
version: '0.15.7',
version: '0.15.8',

/**
* Initialize the editor with passed options
Expand Down
6 changes: 3 additions & 3 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/grapes.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/modules/Components.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Component Manager
The Component is a base element of the template. It might be something simple and atomic like an image or a text box, but also complex structures, more probably composed by other components, like sections or pages. The concept of the component was made to allow the developer to bind different behaviors to different elements. For example, opening the Asset Manager on double click of the image is a custom behavior binded to that particular type of element.

::: warning
This guide is referring to GrapesJS v0.15.7 or higher
This guide is referring to GrapesJS v0.15.8 or higher
:::

[[toc]]
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.15.7",
"version": "0.15.8",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand Down

0 comments on commit aee18dc

Please sign in to comment.