Skip to content

Commit 5814639

Browse files
committed
2.6.0
1 parent 530afb7 commit 5814639

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

index.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports =
9999
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
100100
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0__);
101101
/* unused harmony reexport * */
102-
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default.a);
102+
103103

104104
/***/ }),
105105
/* 2 */
@@ -154,7 +154,6 @@ var render = function() {
154154
expression: "showImage"
155155
}
156156
],
157-
key: _vm.image,
158157
staticClass: "vv-picture"
159158
},
160159
[
@@ -209,7 +208,6 @@ var render = function() {
209208
expression: "showVideo"
210209
}
211210
],
212-
key: _vm.video,
213211
ref: "video",
214212
staticClass: "vv-asset vv-video",
215213
style: _vm.assetStyles,
@@ -265,7 +263,7 @@ render._withStripped = true
265263
// CONCATENATED MODULE: ./index.vue?vue&type=template&id=6de5ab34&lang=pug&
266264

267265
// CONCATENATED MODULE: ./concerns/fits-assets.coffee
268-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
266+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
269267

270268
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
271269

@@ -280,8 +278,8 @@ using object-fit.
280278
// Size
281279
width: Number | String,
282280
height: Number | String,
281+
maxWidth: Number | String,
283282
aspect: Number,
284-
maxWidth: Number,
285283
expand: Boolean,
286284
// Layout
287285
objectFit: {
@@ -305,11 +303,11 @@ using object-fit.
305303
},
306304
// Styles that get added to the parent container
307305
dimensionStyles: function dimensionStyles() {
308-
return _objectSpread({}, this.width ? {
306+
return _objectSpread(_objectSpread(_objectSpread({}, this.width ? {
309307
width: this.autoUnit(this.width)
310-
} : {}, {}, this.height ? {
308+
} : {}), this.height ? {
311309
height: this.autoUnit(this.height)
312-
} : {}, {}, this.maxWidth ? {
310+
} : {}), this.maxWidth ? {
313311
maxWidth: this.autoUnit(this.maxWidth)
314312
} : {});
315313
},
@@ -469,11 +467,11 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
469467

470468
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
471469

472-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
470+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
473471

474472
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
475473

476-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
474+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
477475

478476
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
479477

@@ -861,7 +859,12 @@ function normalizeComponent (
861859
options._ssrRegister = hook
862860
} else if (injectStyles) {
863861
hook = shadowMode
864-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
862+
? function () {
863+
injectStyles.call(
864+
this,
865+
(options.functional ? this.parent : this).$root.$options.shadowRoot
866+
)
867+
}
865868
: injectStyles
866869
}
867870

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-visual",
3-
"version": "2.5.4",
3+
"version": "2.6.0",
44
"description": "Vue 2 image and video loader supporting lazy loading, background videos, fixed aspect ratios, low rez poster images, transitions, loaders, slotted content and more and more",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)