Skip to content

Commit 07b537d

Browse files
committed
Bump v0.14.61
1 parent 6ca9d77 commit 07b537d

File tree

5 files changed

+80
-13
lines changed

5 files changed

+80
-13
lines changed

dist/grapes.js

Lines changed: 73 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31729,6 +31729,10 @@ module.exports = function () {
3172931729
id: 'svg',
3173031730
model: __webpack_require__(/*! ./model/ComponentSvg */ "./src/dom_components/model/ComponentSvg.js"),
3173131731
view: __webpack_require__(/*! ./view/ComponentSvgView */ "./src/dom_components/view/ComponentSvgView.js")
31732+
}, {
31733+
id: 'comment',
31734+
model: __webpack_require__(/*! ./model/ComponentComment */ "./src/dom_components/model/ComponentComment.js"),
31735+
view: __webpack_require__(/*! ./view/ComponentCommentView */ "./src/dom_components/view/ComponentCommentView.js")
3173231736
}, {
3173331737
id: 'textnode',
3173431738
model: __webpack_require__(/*! ./model/ComponentTextNode */ "./src/dom_components/model/ComponentTextNode.js"),
@@ -33631,6 +33635,40 @@ module.exports = Component;
3363133635

3363233636
/***/ }),
3363333637

33638+
/***/ "./src/dom_components/model/ComponentComment.js":
33639+
/*!******************************************************!*\
33640+
!*** ./src/dom_components/model/ComponentComment.js ***!
33641+
\******************************************************/
33642+
/*! no static exports found */
33643+
/***/ (function(module, exports, __webpack_require__) {
33644+
33645+
"use strict";
33646+
33647+
33648+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
33649+
33650+
var Component = __webpack_require__(/*! ./ComponentTextNode */ "./src/dom_components/model/ComponentTextNode.js");
33651+
33652+
module.exports = Component.extend({
33653+
defaults: _extends({}, Component.prototype.defaults),
33654+
33655+
toHTML: function toHTML() {
33656+
return '<!--' + this.get('content') + '-->';
33657+
}
33658+
}, {
33659+
isComponent: function isComponent(el) {
33660+
if (el.nodeType == 8) {
33661+
return {
33662+
tagName: 'NULL',
33663+
type: 'comment',
33664+
content: el.textContent
33665+
};
33666+
}
33667+
}
33668+
});
33669+
33670+
/***/ }),
33671+
3363433672
/***/ "./src/dom_components/model/ComponentImage.js":
3363533673
/*!****************************************************!*\
3363633674
!*** ./src/dom_components/model/ComponentImage.js ***!
@@ -34382,6 +34420,7 @@ var Component = __webpack_require__(/*! ./Component */ "./src/dom_components/mod
3438234420
module.exports = Component.extend({
3438334421
defaults: _extends({}, Component.prototype.defaults, {
3438434422
droppable: false,
34423+
layerable: false,
3438534424
editable: true
3438634425
}),
3438734426

@@ -34814,6 +34853,8 @@ module.exports = Backbone.Collection.extend({
3481434853
this.listenTo(this, 'add', this.onAdd);
3481534854
this.config = opt.config;
3481634855
this.em = opt.em;
34856+
var em = this.em;
34857+
3481734858

3481834859
this.model = function (attrs, options) {
3481934860
var model;
@@ -34834,6 +34875,10 @@ module.exports = Backbone.Collection.extend({
3483434875
if (!model) {
3483534876
// get the last one
3483634877
model = df[df.length - 1].model;
34878+
em && attrs.type && em.logWarning('Component type \'' + attrs.type + '\' not found', {
34879+
attrs: attrs,
34880+
options: options
34881+
});
3483734882
}
3483834883

3483934884
return new model(attrs, options);
@@ -34930,6 +34975,26 @@ module.exports = Backbone.Model.extend({
3493034975

3493134976
/***/ }),
3493234977

34978+
/***/ "./src/dom_components/view/ComponentCommentView.js":
34979+
/*!*********************************************************!*\
34980+
!*** ./src/dom_components/view/ComponentCommentView.js ***!
34981+
\*********************************************************/
34982+
/*! no static exports found */
34983+
/***/ (function(module, exports, __webpack_require__) {
34984+
34985+
"use strict";
34986+
34987+
34988+
var ComponentView = __webpack_require__(/*! ./ComponentTextNodeView */ "./src/dom_components/view/ComponentTextNodeView.js");
34989+
34990+
module.exports = ComponentView.extend({
34991+
_createElement: function _createElement() {
34992+
return document.createComment(this.model.get('content'));
34993+
}
34994+
});
34995+
34996+
/***/ }),
34997+
3493334998
/***/ "./src/dom_components/view/ComponentImageView.js":
3493434999
/*!*******************************************************!*\
3493535000
!*** ./src/dom_components/view/ComponentImageView.js ***!
@@ -39187,7 +39252,7 @@ module.exports = function () {
3918739252
plugins: plugins,
3918839253

3918939254
// Will be replaced on build
39190-
version: '0.14.60',
39255+
version: '0.14.61',
3919139256

3919239257
/**
3919339258
* Initialize the editor with passed options
@@ -40453,9 +40518,11 @@ exports.default = _backbone2.default.View.extend({
4045340518
var model = this.model,
4045440519
config = this.config,
4045540520
pfx = this.pfx,
40456-
ppfx = this.ppfx;
40521+
ppfx = this.ppfx,
40522+
opt = this.opt;
40523+
var isCountable = opt.isCountable;
4045740524

40458-
var hidden = config.hideTextnode && model.is('textnode');
40525+
var hidden = isCountable && !isCountable(model, config.hideTextnode);
4045940526
var vis = this.isVisible();
4046040527
var el = this.$el.empty();
4046140528
var level = this.level + 1;
@@ -42810,8 +42877,9 @@ module.exports = function () {
4281042877

4281142878
if (pos) {
4281242879
if (config.adjustToolbar) {
42880+
var frameOffset = canvas.getCanvasView().getFrameOffset();
4281342881
// Move the toolbar down when the top canvas edge is reached
42814-
if (pos.top <= pos.canvasTop) {
42882+
if (pos.top <= pos.canvasTop && !(pos.elementHeight + pos.targetHeight >= frameOffset.height)) {
4281542883
pos.top = pos.elementTop + pos.elementHeight;
4281642884
}
4281742885
}
@@ -44515,6 +44583,7 @@ module.exports = function () {
4451544583
clb && clb(result);
4451644584
_this2.onEnd('load', result);
4451744585
}, function (err) {
44586+
clb && clb(result);
4451844587
_this2.onError('load', err);
4451944588
});
4452044589
} else {
@@ -45185,8 +45254,6 @@ module.exports = function () {
4518545254

4518645255
if (!rule) {
4518745256
rule = cssC.add(valid, state, deviceW);
45188-
rule.setStyle(model.getStyle());
45189-
model.setStyle({});
4519045257
}
4519145258
} else if (config.avoidInlineStyle) {
4519245259
rule = cssC.getIdRule(id, opts);

dist/grapes.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/grapes.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grapesjs",
33
"description": "Free and Open Source Web Builder Framework",
4-
"version": "0.14.60",
4+
"version": "0.14.61",
55
"author": "Artur Arseniev",
66
"license": "BSD-3-Clause",
77
"homepage": "http://grapesjs.com",

0 commit comments

Comments
 (0)