From ffccdc121dc5d71b20ffef00e3e61c9836cc1bad Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 24 Feb 2018 21:14:30 +0100 Subject: [PATCH] Version bump --- dist/vue-resize.esm.js | 3 ++- dist/vue-resize.min.js | 2 +- dist/vue-resize.umd.js | 3 ++- package.json | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/vue-resize.esm.js b/dist/vue-resize.esm.js index cf2d354..377915f 100644 --- a/dist/vue-resize.esm.js +++ b/dist/vue-resize.esm.js @@ -70,6 +70,7 @@ var ResizeObserver = { render: function render() { this._resizeObject = object; object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;'); object.setAttribute('aria-hidden', 'true'); + object.setAttribute('tabindex', -1); object.onload = this.addResizeHandlers; object.type = 'text/html'; if (isIE) { @@ -97,7 +98,7 @@ function install(Vue) { // Plugin var plugin = { // eslint-disable-next-line no-undef - version: "0.4.3", + version: "0.4.4", install: install }; diff --git a/dist/vue-resize.min.js b/dist/vue-resize.min.js index 47de37e..1fe0f13 100644 --- a/dist/vue-resize.min.js +++ b/dist/vue-resize.min.js @@ -1 +1 @@ -var VueResize=function(e){"use strict";function t(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}function i(){i.init||(i.init=!0,s=-1!==t())}function n(e){e.component("resize-observer",r)}var s=void 0,r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!s&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.onload=this.addResizeHandlers,t.type="text/html",s&&this.$el.appendChild(t),t.data="about:blank",s||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}},o={version:"0.4.3",install:n},d=null;return"undefined"!=typeof window?d=window.Vue:"undefined"!=typeof global&&(d=global.Vue),d&&d.use(o),e.install=n,e.ResizeObserver=r,e.default=o,e}({}); +var VueResize=function(e){"use strict";function t(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}function i(){i.init||(i.init=!0,s=-1!==t())}function n(e){e.component("resize-observer",r)}var s=void 0,r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!s&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",s&&this.$el.appendChild(t),t.data="about:blank",s||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}},o={version:"0.4.4",install:n},d=null;return"undefined"!=typeof window?d=window.Vue:"undefined"!=typeof global&&(d=global.Vue),d&&d.use(o),e.install=n,e.ResizeObserver=r,e.default=o,e}({}); diff --git a/dist/vue-resize.umd.js b/dist/vue-resize.umd.js index be69025..6c49742 100644 --- a/dist/vue-resize.umd.js +++ b/dist/vue-resize.umd.js @@ -76,6 +76,7 @@ var ResizeObserver = { render: function render() { this._resizeObject = object; object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;'); object.setAttribute('aria-hidden', 'true'); + object.setAttribute('tabindex', -1); object.onload = this.addResizeHandlers; object.type = 'text/html'; if (isIE) { @@ -103,7 +104,7 @@ function install(Vue) { // Plugin var plugin = { // eslint-disable-next-line no-undef - version: "0.4.3", + version: "0.4.4", install: install }; diff --git a/package.json b/package.json index 2c2e774..0efe8be 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-resize", "description": "Detect DOM element resizing", - "version": "0.4.3", + "version": "0.4.4", "author": { "name": "Guillaume Chau", "email": "guillaume.b.chau@gmail.com" @@ -20,7 +20,7 @@ "build:browser": "rollup --config build/rollup.config.browser.js", "build:es": "rollup --config build/rollup.config.es.js", "build:umd": "rollup --config build/rollup.config.umd.js", - "prepublish": "npm run build", + "prepublishOnly": "npm run build", "dev": "cross-env NODE_ENV=development rollup --config build/rollup.config.es.js --watch" }, "watch": {