Skip to content

Commit

Permalink
chore(release): 2.8.1
Browse files Browse the repository at this point in the history
## [2.8.1](v2.8.0...v2.8.1) (2020-07-22)

### Bug Fixes

* picture mode by changing JSX usage in IxPicture and IxSource ([97d1255](97d1255))
  • Loading branch information
imgix-git-robot committed Jul 22, 2020
1 parent f14e142 commit e7bcbd2
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 294 deletions.
180 changes: 84 additions & 96 deletions dist/vue-imgix.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,6 @@ var base64 = createCommonjsModule(function (module, exports) {
return {Base64: global.Base64}
}));
});
var base64_1 = base64.Base64;

var imgixCoreJs = createCommonjsModule(function (module, exports) {
(function (global, factory) {
Expand Down Expand Up @@ -859,7 +858,7 @@ var imgixCoreJs = createCommonjsModule(function (module, exports) {
});

/**
* vue-class-component v7.2.3
* vue-class-component v7.2.4
* (c) 2015-present Evan You
* @license MIT
*/
Expand Down Expand Up @@ -976,17 +975,15 @@ function collectDataFromConstructor(vm, Component) {
}

keys.forEach(function (key) {
if (key.charAt(0) !== '_') {
Object.defineProperty(_this, key, {
get: function get() {
return vm[key];
},
set: function set(value) {
vm[key] = value;
},
configurable: true
});
}
Object.defineProperty(_this, key, {
get: function get() {
return vm[key];
},
set: function set(value) {
vm[key] = value;
},
configurable: true
});
});
}; // should be acquired class property values

Expand Down Expand Up @@ -1169,48 +1166,45 @@ var defaultAttributeMap = {
src: 'src',
srcset: 'srcset',
};
var IxImg = /** @class */ (function () {
var IxImg = /*@__PURE__*/(function (IxImgProps) {
function IxImg () {
IxImgProps.apply(this, arguments);
}
var IxImg = /*@__PURE__*/(function (IxImgProps) {
function IxImg () {
IxImgProps.apply(this, arguments);
}

if ( IxImgProps ) IxImg.__proto__ = IxImgProps;
IxImg.prototype = Object.create( IxImgProps && IxImgProps.prototype );
IxImg.prototype.constructor = IxImg;
if ( IxImgProps ) IxImg.__proto__ = IxImgProps;
IxImg.prototype = Object.create( IxImgProps && IxImgProps.prototype );
IxImg.prototype.constructor = IxImg;

IxImg.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxImg.prototype.render = function render (createElement) {
var obj;

var imgixParamsFromImgAttributes = Object.assign({}, (this.fixed && Object.assign({}, (this.width != null ? { w: this.width } : {}),
(this.height != null ? { h: this.height } : {}))));
var ref = this.vueImgixSingleton.buildUrlObject(this.src, Object.assign({}, imgixParamsFromImgAttributes,
this.imgixParams), {
disableVariableQuality: Boolean(this.disableVariableQuality),
});
var src = ref.src;
var srcset = ref.srcset;
var attributeConfig = Object.assign({}, defaultAttributeMap,
this.attributeConfig);
return createElement('img', {
attrs: ( obj = {}, obj[attributeConfig.src] = src, obj[attributeConfig.srcset] = srcset, obj.width = this.width, obj.height = this.height, obj ),
});
};
IxImg.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxImg.prototype.render = function render (createElement) {
var obj;

var imgixParamsFromImgAttributes = Object.assign({}, (this.fixed && Object.assign({}, (this.width != null ? { w: this.width } : {}),
(this.height != null ? { h: this.height } : {}))));
var ref = this.vueImgixSingleton.buildUrlObject(this.src, Object.assign({}, imgixParamsFromImgAttributes,
this.imgixParams), {
disableVariableQuality: Boolean(this.disableVariableQuality),
});
var src = ref.src;
var srcset = ref.srcset;
var attributeConfig = Object.assign({}, defaultAttributeMap,
this.attributeConfig);
return createElement('img', {
attrs: ( obj = {}, obj[attributeConfig.src] = src, obj[attributeConfig.srcset] = srcset, obj.width = this.width, obj.height = this.height, obj ),
});
};

return IxImg;
}(IxImgProps));
IxImg = __decorate([
Component
], IxImg);
return IxImg;
})();
}(IxImgProps));
IxImg = __decorate([
Component
], IxImg);

function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
// Do not change this
var VERSION = '2.8.0-beta.4';
var VERSION = '2.8.0';
var clientOptionDefaults = {
includeLibraryParam: true,
};
Expand Down Expand Up @@ -1294,30 +1288,27 @@ var buildSrcSet = function () {
var IxPictureProps = Vue.extend({
props: {},
});
var IxPicture = /** @class */ (function () {
var IxPicture = /*@__PURE__*/(function (IxPictureProps) {
function IxPicture () {
IxPictureProps.apply(this, arguments);
}
var IxPicture = /*@__PURE__*/(function (IxPictureProps) {
function IxPicture () {
IxPictureProps.apply(this, arguments);
}

if ( IxPictureProps ) IxPicture.__proto__ = IxPictureProps;
IxPicture.prototype = Object.create( IxPictureProps && IxPictureProps.prototype );
IxPicture.prototype.constructor = IxPicture;
if ( IxPictureProps ) IxPicture.__proto__ = IxPictureProps;
IxPicture.prototype = Object.create( IxPictureProps && IxPictureProps.prototype );
IxPicture.prototype.constructor = IxPicture;

IxPicture.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxPicture.prototype.render = function render () {
return React.createElement( 'picture', null, this.$slots.default );
};
IxPicture.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxPicture.prototype.render = function render (createElement) {
return createElement('picture', this.$slots.default);
};

return IxPicture;
}(IxPictureProps));
IxPicture = __decorate([
Component
], IxPicture);
return IxPicture;
})();
}(IxPictureProps));
IxPicture = __decorate([
Component
], IxPicture);

var IxSourceProps = Vue.extend({
props: {
Expand All @@ -1333,38 +1324,35 @@ var defaultAttributeMap$1 = {
src: 'src',
srcset: 'srcset',
};
var IxSource = /** @class */ (function () {
var IxSource = /*@__PURE__*/(function (IxSourceProps) {
function IxSource () {
IxSourceProps.apply(this, arguments);
}
var IxSource = /*@__PURE__*/(function (IxSourceProps) {
function IxSource () {
IxSourceProps.apply(this, arguments);
}

if ( IxSourceProps ) IxSource.__proto__ = IxSourceProps;
IxSource.prototype = Object.create( IxSourceProps && IxSourceProps.prototype );
IxSource.prototype.constructor = IxSource;
if ( IxSourceProps ) IxSource.__proto__ = IxSourceProps;
IxSource.prototype = Object.create( IxSourceProps && IxSourceProps.prototype );
IxSource.prototype.constructor = IxSource;

IxSource.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxSource.prototype.render = function render () {
var imgixParamsFromAttributes = {};
var ref = this.vueImgixSingleton.buildUrlObject(this.src, Object.assign({}, imgixParamsFromAttributes,
this.imgixParams));
var srcset = ref.srcset;
var attributeConfig = Object.assign({}, defaultAttributeMap$1,
this.attributeConfig);
var childAttrs = {};
childAttrs[attributeConfig.srcset] = srcset;
return React.createElement( 'source', { attrs: childAttrs });
};
IxSource.prototype.created = function created () {
this.vueImgixSingleton = ensureVueImgixClientSingleton();
};
IxSource.prototype.render = function render (createElement) {
var imgixParamsFromAttributes = {};
var ref = this.vueImgixSingleton.buildUrlObject(this.src, Object.assign({}, imgixParamsFromAttributes,
this.imgixParams));
var srcset = ref.srcset;
var attributeConfig = Object.assign({}, defaultAttributeMap$1,
this.attributeConfig);
var childAttrs = {};
childAttrs[attributeConfig.srcset] = srcset;
return createElement('source', { attrs: childAttrs });
};

return IxSource;
}(IxSourceProps));
IxSource = __decorate([
Component
], IxSource);
return IxSource;
})();
}(IxSourceProps));
IxSource = __decorate([
Component
], IxSource);

// Declare install function executed by Vue.use()
function install(Vue, options) {
Expand Down
Loading

0 comments on commit e7bcbd2

Please sign in to comment.