@pluginjs/breakpoints
Advanced tools
Comparing version 0.8.8 to 0.8.9
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
"use strict";var t=require("@pluginjs/is"),e=require("@pluginjs/simple-emitter"),i=require("@pluginjs/utils"),r={xs:{min:0,max:575},sm:{min:576,max:767},md:{min:768,max:991},lg:{min:992,max:1199},xl:{min:1200,max:1/0}},n={current:null,listeners:[],trigger(t){var e=this.current;this.current=t,this.listeners.forEach(((i,r)=>{i.listener.call({current:t,previous:e},i.data),i.one&&delete this.listeners[r]}))},one(t,e){return this.on(t,e,!0)},on(e,i){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0===i&&t.isFunction(e)&&(i=e,e=void 0),t.isFunction(i)&&this.listeners.push({data:e,listener:i,one:r})},off(t){this.listeners=void 0===t?[]:this.listeners.filter((e=>e.listener!==t))}};var s={min(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(min-width: ".concat(t).concat(e,")")},max(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(max-width: ".concat(t).concat(e,")")},between(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"(min-width: ".concat(t).concat(i,") and (max-width: ").concat(e).concat(i,")")},get(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return 0===t?this.max(e,i):e===1/0?this.min(t,i):this.between(t,e,i)}};class o extends class{constructor(t){this.media=t,this.initialize()}initialize(){this.emitter=new e,this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener(){},removeListener(){}};var t=this;this.mqlListener=e=>{var i=e.matches?"enter":"leave";this.emitter.emit(i,t)},this.mql.addListener(this.mqlListener)}on(e,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("object"==typeof e){for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.on(s,i,e[s],n);return this}return void 0===r&&t.isFunction(i)&&(r=i,i=void 0),t.isFunction(r)?(n?this.emitter.once(e,r,i):this.emitter.on(e,r,i),this):this}one(t,e,i){return this.on(t,e,i,!0)}off(t,e){var i;if("object"==typeof t){for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.off(i,t[i]);return this}return void 0===t?(this.emitter.off("enter"),this.emitter.off("leave")):this.emitter.off(t,e),this}isMatched(){return this.mql.matches}destroy(){this.emitter.off("enter"),this.emitter.off("leave")}}{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";super(s.get(e,i,r)),this.name=t,this.min=e,this.max=i,this.unit=r}destroy(){this.off()}}class a extends o{constructor(t){super(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px"),this.changeListener=()=>{this.isMatched()&&n.trigger(this)},this.isMatched()&&(n.current=this),this.mql.addListener(this.changeListener)}destroy(){this.mql.removeListener(this.changeHander),super.destroy()}}var h=t=>{var{at:e,from:i,to:r}=t;return e||(i&&r?"".concat(i,"-").concat(r):i?"".concat(i,"+"):r?"".concat(r,"-"):null)},l={},d={},c=function(){c.define(...arguments)};c.defaults=r;var u=c=i.merge(c,{defined:!1,init(){this.defined||this.define(...arguments)},define(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var r in this.defined&&this.destroy(),t||(t=c.defaults),this.options=i.merge(e,{unit:"px"}),t)Object.prototype.hasOwnProperty.call(t,r)&&(l[r]=new a(r,t[r].min,t[r].max,this.options.unit));this.defined=!0},destroy(){i.each(l,((t,e)=>{e.destroy()})),l={},d={},n.current=null},is(t){var e=this.get(t);return e?e.isMatched():null},all(){var t=[];return i.each(l,(e=>{t.push(e)})),t},getSize:t=>Object.prototype.hasOwnProperty.call(l,t)?l[t]:null,getViewport:t=>Object.prototype.hasOwnProperty.call(d,t)?d[t]:null,get(e){t.isString(e)?e=e.trim():t.isObject(e)&&(e=h(e));var i=this.getSize(e)||this.getViewport(e);if(i)return i;var r,{at:n,from:s,to:a}=(t=>(t=t.trim(),/^([\w\d]+)$/.test(t)?{at:t}:/^([\w\d]+)\+$/.test(t)?{from:t.replace(/\+$/,"")}:/^([\w\d]+)-$/.test(t)?{to:t.replace(/-$/,"")}:/^([\w\d]+)-([\w\d]+)$/.test(t)?{from:t.replace(/-([\w\d]+)$/,""),to:t.replace(/^([\w\d]+)-/,"")}:{}))(e),l=this.options.unit,c=null,u=null;if(n)(r=this.getSize(n))&&(u=r.min,c=r.max);else if(s&&a){var m=this.getSize(s),v=this.getSize(a);m&&v&&(u=m.min,c=v.max)}else s?(r=this.getSize(s))&&(u=r.min,c=1/0):a&&(r=this.getSize(a))&&(u=0,c=r.max);return!t.isNull(u)&&(t.isNull(c),1)?(d[e]=new o(e,u,c,l),d[e]):null},getMin(t){var e=this.get(t);return e?e.min:null},getMax(t){var e=this.get(t);return e?e.max:null},current:()=>n.current,getMedia(t){var e=this.get(t);return e?e.media:null},on(t,e,i,r){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("change"===t)return r=i,i=e,n.on(i,r,s);var o=this.get(t);return o&&o.on(e,i,r,s),this},one(t,e,i,r){return this.on(t,e,i,r,!0)},off(t,e,i){if("change"===t)return n.off(e);var r=this.get(t);return r&&r.off(e,i),this},at(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=h({at:t});return this.on(s,e,i,r,n)},from(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({from:t},e,i,r,n)},to(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({to:t},e,i,r,n)},between(t,e,i,r,n){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.on({from:t,to:e},i,r,n,s)}});module.exports=u; |
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -566,2 +566,2 @@ */ | ||
export default _Breakpoints$1; | ||
export { _Breakpoints$1 as default }; |
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
import{isFunction as t,isString as e,isObject as i,isNull as r}from"@pluginjs/is";import n from"@pluginjs/simple-emitter";import{merge as s,each as o}from"@pluginjs/utils";var a={xs:{min:0,max:575},sm:{min:576,max:767},md:{min:768,max:991},lg:{min:992,max:1199},xl:{min:1200,max:1/0}},h={current:null,listeners:[],trigger(t){var e=this.current;this.current=t,this.listeners.forEach(((i,r)=>{i.listener.call({current:t,previous:e},i.data),i.one&&delete this.listeners[r]}))},one(t,e){return this.on(t,e,!0)},on(e,i){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0===i&&t(e)&&(i=e,e=void 0),t(i)&&this.listeners.push({data:e,listener:i,one:r})},off(t){this.listeners=void 0===t?[]:this.listeners.filter((e=>e.listener!==t))}};var l={min(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(min-width: ".concat(t).concat(e,")")},max(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(max-width: ".concat(t).concat(e,")")},between(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"(min-width: ".concat(t).concat(i,") and (max-width: ").concat(e).concat(i,")")},get(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return 0===t?this.max(e,i):e===1/0?this.min(t,i):this.between(t,e,i)}};class d extends class{constructor(t){this.media=t,this.initialize()}initialize(){this.emitter=new n,this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener(){},removeListener(){}};var t=this;this.mqlListener=e=>{var i=e.matches?"enter":"leave";this.emitter.emit(i,t)},this.mql.addListener(this.mqlListener)}on(e,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("object"==typeof e){for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.on(s,i,e[s],n);return this}return void 0===r&&t(i)&&(r=i,i=void 0),t(r)?(n?this.emitter.once(e,r,i):this.emitter.on(e,r,i),this):this}one(t,e,i){return this.on(t,e,i,!0)}off(t,e){var i;if("object"==typeof t){for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.off(i,t[i]);return this}return void 0===t?(this.emitter.off("enter"),this.emitter.off("leave")):this.emitter.off(t,e),this}isMatched(){return this.mql.matches}destroy(){this.emitter.off("enter"),this.emitter.off("leave")}}{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";super(l.get(e,i,r)),this.name=t,this.min=e,this.max=i,this.unit=r}destroy(){this.off()}}class m extends d{constructor(t){super(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px"),this.changeListener=()=>{this.isMatched()&&h.trigger(this)},this.isMatched()&&(h.current=this),this.mql.addListener(this.changeListener)}destroy(){this.mql.removeListener(this.changeHander),super.destroy()}}var c=t=>{var{at:e,from:i,to:r}=t;return e||(i&&r?"".concat(i,"-").concat(r):i?"".concat(i,"+"):r?"".concat(r,"-"):null)},u={},v={},f=function(){f.define(...arguments)};f.defaults=a;var g=f=s(f,{defined:!1,init(){this.defined||this.define(...arguments)},define(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in this.defined&&this.destroy(),t||(t=f.defaults),this.options=s(e,{unit:"px"}),t)Object.prototype.hasOwnProperty.call(t,i)&&(u[i]=new m(i,t[i].min,t[i].max,this.options.unit));this.defined=!0},destroy(){o(u,((t,e)=>{e.destroy()})),u={},v={},h.current=null},is(t){var e=this.get(t);return e?e.isMatched():null},all(){var t=[];return o(u,(e=>{t.push(e)})),t},getSize:t=>Object.prototype.hasOwnProperty.call(u,t)?u[t]:null,getViewport:t=>Object.prototype.hasOwnProperty.call(v,t)?v[t]:null,get(t){e(t)?t=t.trim():i(t)&&(t=c(t));var n=this.getSize(t)||this.getViewport(t);if(n)return n;var s,{at:o,from:a,to:h}=(t=>(t=t.trim(),/^([\w\d]+)$/.test(t)?{at:t}:/^([\w\d]+)\+$/.test(t)?{from:t.replace(/\+$/,"")}:/^([\w\d]+)-$/.test(t)?{to:t.replace(/-$/,"")}:/^([\w\d]+)-([\w\d]+)$/.test(t)?{from:t.replace(/-([\w\d]+)$/,""),to:t.replace(/^([\w\d]+)-/,"")}:{}))(t),l=this.options.unit,m=null,u=null;if(o)(s=this.getSize(o))&&(u=s.min,m=s.max);else if(a&&h){var f=this.getSize(a),g=this.getSize(h);f&&g&&(u=f.min,m=g.max)}else a?(s=this.getSize(a))&&(u=s.min,m=1/0):h&&(s=this.getSize(h))&&(u=0,m=s.max);return!r(u)&&(r(m),1)?(v[t]=new d(t,u,m,l),v[t]):null},getMin(t){var e=this.get(t);return e?e.min:null},getMax(t){var e=this.get(t);return e?e.max:null},current:()=>h.current,getMedia(t){var e=this.get(t);return e?e.media:null},on(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("change"===t)return r=i,i=e,h.on(i,r,n);var s=this.get(t);return s&&s.on(e,i,r,n),this},one(t,e,i,r){return this.on(t,e,i,r,!0)},off(t,e,i){if("change"===t)return h.off(e);var r=this.get(t);return r&&r.off(e,i),this},at(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=c({at:t});return this.on(s,e,i,r,n)},from(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({from:t},e,i,r,n)},to(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({to:t},e,i,r,n)},between(t,e,i,r,n){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.on({from:t,to:e},i,r,n,s)}});export default g; | ||
import{isFunction as t,isString as e,isObject as i,isNull as r}from"@pluginjs/is";import n from"@pluginjs/simple-emitter";import{merge as s,each as o}from"@pluginjs/utils";var a={xs:{min:0,max:575},sm:{min:576,max:767},md:{min:768,max:991},lg:{min:992,max:1199},xl:{min:1200,max:1/0}},h={current:null,listeners:[],trigger(t){var e=this.current;this.current=t,this.listeners.forEach(((i,r)=>{i.listener.call({current:t,previous:e},i.data),i.one&&delete this.listeners[r]}))},one(t,e){return this.on(t,e,!0)},on(e,i){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0===i&&t(e)&&(i=e,e=void 0),t(i)&&this.listeners.push({data:e,listener:i,one:r})},off(t){this.listeners=void 0===t?[]:this.listeners.filter((e=>e.listener!==t))}};var l={min(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(min-width: ".concat(t).concat(e,")")},max(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(max-width: ".concat(t).concat(e,")")},between(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"(min-width: ".concat(t).concat(i,") and (max-width: ").concat(e).concat(i,")")},get(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return 0===t?this.max(e,i):e===1/0?this.min(t,i):this.between(t,e,i)}};class d extends class{constructor(t){this.media=t,this.initialize()}initialize(){this.emitter=new n,this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener(){},removeListener(){}};var t=this;this.mqlListener=e=>{var i=e.matches?"enter":"leave";this.emitter.emit(i,t)},this.mql.addListener(this.mqlListener)}on(e,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("object"==typeof e){for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.on(s,i,e[s],n);return this}return void 0===r&&t(i)&&(r=i,i=void 0),t(r)?(n?this.emitter.once(e,r,i):this.emitter.on(e,r,i),this):this}one(t,e,i){return this.on(t,e,i,!0)}off(t,e){var i;if("object"==typeof t){for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.off(i,t[i]);return this}return void 0===t?(this.emitter.off("enter"),this.emitter.off("leave")):this.emitter.off(t,e),this}isMatched(){return this.mql.matches}destroy(){this.emitter.off("enter"),this.emitter.off("leave")}}{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";super(l.get(e,i,r)),this.name=t,this.min=e,this.max=i,this.unit=r}destroy(){this.off()}}class m extends d{constructor(t){super(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px"),this.changeListener=()=>{this.isMatched()&&h.trigger(this)},this.isMatched()&&(h.current=this),this.mql.addListener(this.changeListener)}destroy(){this.mql.removeListener(this.changeHander),super.destroy()}}var c=t=>{var{at:e,from:i,to:r}=t;return e||(i&&r?"".concat(i,"-").concat(r):i?"".concat(i,"+"):r?"".concat(r,"-"):null)},u={},v={},f=function(){f.define(...arguments)};f.defaults=a;var g=f=s(f,{defined:!1,init(){this.defined||this.define(...arguments)},define(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in this.defined&&this.destroy(),t||(t=f.defaults),this.options=s(e,{unit:"px"}),t)Object.prototype.hasOwnProperty.call(t,i)&&(u[i]=new m(i,t[i].min,t[i].max,this.options.unit));this.defined=!0},destroy(){o(u,((t,e)=>{e.destroy()})),u={},v={},h.current=null},is(t){var e=this.get(t);return e?e.isMatched():null},all(){var t=[];return o(u,(e=>{t.push(e)})),t},getSize:t=>Object.prototype.hasOwnProperty.call(u,t)?u[t]:null,getViewport:t=>Object.prototype.hasOwnProperty.call(v,t)?v[t]:null,get(t){e(t)?t=t.trim():i(t)&&(t=c(t));var n=this.getSize(t)||this.getViewport(t);if(n)return n;var s,{at:o,from:a,to:h}=(t=>(t=t.trim(),/^([\w\d]+)$/.test(t)?{at:t}:/^([\w\d]+)\+$/.test(t)?{from:t.replace(/\+$/,"")}:/^([\w\d]+)-$/.test(t)?{to:t.replace(/-$/,"")}:/^([\w\d]+)-([\w\d]+)$/.test(t)?{from:t.replace(/-([\w\d]+)$/,""),to:t.replace(/^([\w\d]+)-/,"")}:{}))(t),l=this.options.unit,m=null,u=null;if(o)(s=this.getSize(o))&&(u=s.min,m=s.max);else if(a&&h){var f=this.getSize(a),g=this.getSize(h);f&&g&&(u=f.min,m=g.max)}else a?(s=this.getSize(a))&&(u=s.min,m=1/0):h&&(s=this.getSize(h))&&(u=0,m=s.max);return!r(u)&&(r(m),1)?(v[t]=new d(t,u,m,l),v[t]):null},getMin(t){var e=this.get(t);return e?e.min:null},getMax(t){var e=this.get(t);return e?e.max:null},current:()=>h.current,getMedia(t){var e=this.get(t);return e?e.media:null},on(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("change"===t)return r=i,i=e,h.on(i,r,n);var s=this.get(t);return s&&s.on(e,i,r,n),this},one(t,e,i,r){return this.on(t,e,i,r,!0)},off(t,e,i){if("change"===t)return h.off(e);var r=this.get(t);return r&&r.off(e,i),this},at(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=c({at:t});return this.on(s,e,i,r,n)},from(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({from:t},e,i,r,n)},to(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({to:t},e,i,r,n)},between(t,e,i,r,n){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.on({from:t,to:e},i,r,n,s)}});export{g as default}; |
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -9,4 +9,4 @@ */ | ||
typeof define === 'function' && define.amd ? define(['@pluginjs/is', '@pluginjs/simple-emitter', '@pluginjs/utils'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global['@pluginjs/breakpoints'] = factory(global['@pluginjs/is'], global['@pluginjs/simple-emitter'], global['@pluginjs/utils'])); | ||
}(this, (function (is, Emitter, utils) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["@pluginjs/breakpoints"] = factory(global["@pluginjs/is"], global["@pluginjs/simple-emitter"], global["@pluginjs/utils"])); | ||
})(this, (function (is, Emitter, utils) { 'use strict'; | ||
@@ -16,13 +16,7 @@ function _typeof(obj) { | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} | ||
@@ -49,2 +43,5 @@ | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
@@ -65,2 +62,5 @@ } | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) _setPrototypeOf(subClass, superClass); | ||
@@ -109,2 +109,4 @@ } | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -143,3 +145,3 @@ | ||
function _get(target, property, receiver) { | ||
function _get() { | ||
if (typeof Reflect !== "undefined" && Reflect.get) { | ||
@@ -155,3 +157,3 @@ _get = Reflect.get; | ||
if (desc.get) { | ||
return desc.get.call(receiver); | ||
return desc.get.call(arguments.length < 3 ? target : receiver); | ||
} | ||
@@ -163,3 +165,3 @@ | ||
return _get(target, property, receiver || target); | ||
return _get.apply(this, arguments); | ||
} | ||
@@ -742,2 +744,2 @@ | ||
}))); | ||
})); |
/*! | ||
* @pluginjs/breakpoints v0.8.8 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/breakpoints v0.8.9 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@pluginjs/is"),require("@pluginjs/simple-emitter"),require("@pluginjs/utils")):"function"==typeof define&&define.amd?define(["@pluginjs/is","@pluginjs/simple-emitter","@pluginjs/utils"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@pluginjs/breakpoints"]=e(t["@pluginjs/is"],t["@pluginjs/simple-emitter"],t["@pluginjs/utils"])}(this,(function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?f(t):e}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function p(t,e,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}var d={xs:{min:0,max:575},sm:{min:576,max:767},md:{min:768,max:991},lg:{min:992,max:1199},xl:{min:1200,max:1/0}},m={current:null,listeners:[],trigger:function(t){var e=this,n=this.current;this.current=t,this.listeners.forEach((function(i,r){i.listener.call({current:t,previous:n},i.data),i.one&&delete e.listeners[r]}))},one:function(t,e){return this.on(t,e,!0)},on:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0===n&&t.isFunction(e)&&(n=e,e=void 0),t.isFunction(n)&&this.listeners.push({data:e,listener:n,one:i})},off:function(t){this.listeners=void 0===t?[]:this.listeners.filter((function(e){return e.listener!==t}))}},v={min:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(min-width: ".concat(t).concat(e,")")},max:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(max-width: ".concat(t).concat(e,")")},between:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"(min-width: ".concat(t).concat(n,") and (max-width: ").concat(e).concat(n,")")},get:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return 0===t?this.max(e,n):e===1/0?this.min(t,n):this.between(t,e,n)}},g=function(t){c(n,t);var e=h(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";r(this,n);var s=v.get(o,u,c);return(i=e.call(this,s)).name=t,i.min=o,i.max=u,i.unit=c,i}return u(n,[{key:"destroy",value:function(){this.off()}}]),n}(function(){function n(t){r(this,n),this.media=t,this.initialize()}return u(n,[{key:"initialize",value:function(){var t=this;this.emitter=new e,this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener:function(){},removeListener:function(){}};var n=this;this.mqlListener=function(e){var i=e.matches?"enter":"leave";t.emitter.emit(i,n)},this.mql.addListener(this.mqlListener)}},{key:"on",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("object"===i(e)){for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&this.on(u,n,e[u],o);return this}return void 0===r&&t.isFunction(n)&&(r=n,n=void 0),t.isFunction(r)?(o?this.emitter.once(e,r,n):this.emitter.on(e,r,n),this):this}},{key:"one",value:function(t,e,n){return this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n;if("object"===i(t)){for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.off(n,t[n]);return this}return void 0===t?(this.emitter.off("enter"),this.emitter.off("leave")):this.emitter.off(t,e),this}},{key:"isMatched",value:function(){return this.mql.matches}},{key:"destroy",value:function(){this.emitter.off("enter"),this.emitter.off("leave")}}]),n}()),y=function(t){c(n,t);var e=h(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";return r(this,n),(i=e.call(this,t,o,u,c)).changeListener=function(){i.isMatched()&&m.trigger(f(i))},i.isMatched()&&(m.current=f(i)),i.mql.addListener(i.changeListener),i}return u(n,[{key:"destroy",value:function(){this.mql.removeListener(this.changeHander),p(s(n.prototype),"destroy",this).call(this)}}]),n}(g),b=function(t){var e=t.at,n=t.from,i=t.to;return e||(n&&i?"".concat(n,"-").concat(i):n?"".concat(n,"+"):i?"".concat(i,"-"):null)},w={},x={},j=function(){var t;(t=j).define.apply(t,arguments)};return j.defaults=d,j=n.merge(j,{defined:!1,init:function(){this.defined||this.define.apply(this,arguments)},define:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in this.defined&&this.destroy(),t||(t=j.defaults),this.options=n.merge(e,{unit:"px"}),t)Object.prototype.hasOwnProperty.call(t,i)&&(w[i]=new y(i,t[i].min,t[i].max,this.options.unit));this.defined=!0},destroy:function(){n.each(w,(function(t,e){e.destroy()})),w={},x={},m.current=null},is:function(t){var e=this.get(t);return e?e.isMatched():null},all:function(){var t=[];return n.each(w,(function(e){t.push(e)})),t},getSize:function(t){return Object.prototype.hasOwnProperty.call(w,t)?w[t]:null},getViewport:function(t){return Object.prototype.hasOwnProperty.call(x,t)?x[t]:null},get:function(e){t.isString(e)?e=e.trim():t.isObject(e)&&(e=b(e));var n=this.getSize(e)||this.getViewport(e);if(n)return n;var r,o=function(t){return t=t.trim(),/^([\w\d]+)$/.test(t)?{at:t}:/^([\w\d]+)\+$/.test(t)?{from:t.replace(/\+$/,"")}:/^([\w\d]+)-$/.test(t)?{to:t.replace(/-$/,"")}:/^([\w\d]+)-([\w\d]+)$/.test(t)?{from:t.replace(/-([\w\d]+)$/,""),to:t.replace(/^([\w\d]+)-/,"")}:{}}(e),u=o.at,c=o.from,s=o.to,a=this.options.unit,f=null,l=null;if(u)(r=this.getSize(u))&&(l=r.min,f=r.max);else if(c&&s){var h=this.getSize(c),p=this.getSize(s);h&&p&&(l=h.min,f=p.max)}else c?(r=this.getSize(c))&&(l=r.min,f=1/0):s&&(r=this.getSize(s))&&(l=0,f=r.max);return!t.isNull(l)&&i(!t.isNull(f))?(x[e]=new g(e,l,f,a),x[e]):null},getMin:function(t){var e=this.get(t);return e?e.min:null},getMax:function(t){var e=this.get(t);return e?e.max:null},current:function(){return m.current},getMedia:function(t){var e=this.get(t);return e?e.media:null},on:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("change"===t)return i=n,n=e,m.on(n,i,r);var o=this.get(t);return o&&o.on(e,n,i,r),this},one:function(t,e,n,i){return this.on(t,e,n,i,!0)},off:function(t,e,n){if("change"===t)return m.off(e);var i=this.get(t);return i&&i.off(e,n),this},at:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=b({at:t});return this.on(o,e,n,i,r)},from:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({from:t},e,n,i,r)},to:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({to:t},e,n,i,r)},between:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.on({from:t,to:e},n,i,r,o)}})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@pluginjs/is"),require("@pluginjs/simple-emitter"),require("@pluginjs/utils")):"function"==typeof define&&define.amd?define(["@pluginjs/is","@pluginjs/simple-emitter","@pluginjs/utils"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@pluginjs/breakpoints"]=e(t["@pluginjs/is"],t["@pluginjs/simple-emitter"],t["@pluginjs/utils"])}(this,(function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function p(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=p(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},d.apply(this,arguments)}var m={xs:{min:0,max:575},sm:{min:576,max:767},md:{min:768,max:991},lg:{min:992,max:1199},xl:{min:1200,max:1/0}},v={current:null,listeners:[],trigger:function(t){var e=this,n=this.current;this.current=t,this.listeners.forEach((function(i,r){i.listener.call({current:t,previous:n},i.data),i.one&&delete e.listeners[r]}))},one:function(t,e){return this.on(t,e,!0)},on:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0===n&&t.isFunction(e)&&(n=e,e=void 0),t.isFunction(n)&&this.listeners.push({data:e,listener:n,one:i})},off:function(t){this.listeners=void 0===t?[]:this.listeners.filter((function(e){return e.listener!==t}))}},y=function(){function n(t){r(this,n),this.media=t,this.initialize()}return u(n,[{key:"initialize",value:function(){var t=this;this.emitter=new e,this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener:function(){},removeListener:function(){}};var n=this;this.mqlListener=function(e){var i=e.matches?"enter":"leave";t.emitter.emit(i,n)},this.mql.addListener(this.mqlListener)}},{key:"on",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("object"===i(e)){for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&this.on(u,n,e[u],o);return this}return void 0===r&&t.isFunction(n)&&(r=n,n=void 0),t.isFunction(r)?(o?this.emitter.once(e,r,n):this.emitter.on(e,r,n),this):this}},{key:"one",value:function(t,e,n){return this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n;if("object"===i(t)){for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.off(n,t[n]);return this}return void 0===t?(this.emitter.off("enter"),this.emitter.off("leave")):this.emitter.off(t,e),this}},{key:"isMatched",value:function(){return this.mql.matches}},{key:"destroy",value:function(){this.emitter.off("enter"),this.emitter.off("leave")}}]),n}(),g={min:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(min-width: ".concat(t).concat(e,")")},max:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"(max-width: ".concat(t).concat(e,")")},between:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"(min-width: ".concat(t).concat(n,") and (max-width: ").concat(e).concat(n,")")},get:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return 0===t?this.max(e,n):e===1/0?this.min(t,n):this.between(t,e,n)}},b=function(t){c(n,t);var e=h(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";r(this,n);var s=g.get(o,u,c);return(i=e.call(this,s)).name=t,i.min=o,i.max=u,i.unit=c,i}return u(n,[{key:"destroy",value:function(){this.off()}}]),n}(y),w=function(t){c(n,t);var e=h(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px";return r(this,n),(i=e.call(this,t,o,u,c)).changeListener=function(){i.isMatched()&&v.trigger(a(i))},i.isMatched()&&(v.current=a(i)),i.mql.addListener(i.changeListener),i}return u(n,[{key:"destroy",value:function(){this.mql.removeListener(this.changeHander),d(s(n.prototype),"destroy",this).call(this)}}]),n}(b),j=function(t){var e=t.at,n=t.from,i=t.to;return e||(n&&i?"".concat(n,"-").concat(i):n?"".concat(n,"+"):i?"".concat(i,"-"):null)},x={},O={},P=function(){var t;(t=P).define.apply(t,arguments)};return P.defaults=m,P=n.merge(P,{defined:!1,init:function(){this.defined||this.define.apply(this,arguments)},define:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in this.defined&&this.destroy(),t||(t=P.defaults),this.options=n.merge(e,{unit:"px"}),t)Object.prototype.hasOwnProperty.call(t,i)&&(x[i]=new w(i,t[i].min,t[i].max,this.options.unit));this.defined=!0},destroy:function(){n.each(x,(function(t,e){e.destroy()})),x={},O={},v.current=null},is:function(t){var e=this.get(t);return e?e.isMatched():null},all:function(){var t=[];return n.each(x,(function(e){t.push(e)})),t},getSize:function(t){return Object.prototype.hasOwnProperty.call(x,t)?x[t]:null},getViewport:function(t){return Object.prototype.hasOwnProperty.call(O,t)?O[t]:null},get:function(e){t.isString(e)?e=e.trim():t.isObject(e)&&(e=j(e));var n=this.getSize(e)||this.getViewport(e);if(n)return n;var r,o=function(t){return t=t.trim(),/^([\w\d]+)$/.test(t)?{at:t}:/^([\w\d]+)\+$/.test(t)?{from:t.replace(/\+$/,"")}:/^([\w\d]+)-$/.test(t)?{to:t.replace(/-$/,"")}:/^([\w\d]+)-([\w\d]+)$/.test(t)?{from:t.replace(/-([\w\d]+)$/,""),to:t.replace(/^([\w\d]+)-/,"")}:{}}(e),u=o.at,c=o.from,s=o.to,f=this.options.unit,a=null,l=null;if(u)(r=this.getSize(u))&&(l=r.min,a=r.max);else if(c&&s){var h=this.getSize(c),p=this.getSize(s);h&&p&&(l=h.min,a=p.max)}else c?(r=this.getSize(c))&&(l=r.min,a=1/0):s&&(r=this.getSize(s))&&(l=0,a=r.max);return!t.isNull(l)&&i(!t.isNull(a))?(O[e]=new b(e,l,a,f),O[e]):null},getMin:function(t){var e=this.get(t);return e?e.min:null},getMax:function(t){var e=this.get(t);return e?e.max:null},current:function(){return v.current},getMedia:function(t){var e=this.get(t);return e?e.media:null},on:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("change"===t)return i=n,n=e,v.on(n,i,r);var o=this.get(t);return o&&o.on(e,n,i,r),this},one:function(t,e,n,i){return this.on(t,e,n,i,!0)},off:function(t,e,n){if("change"===t)return v.off(e);var i=this.get(t);return i&&i.off(e,n),this},at:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=j({at:t});return this.on(o,e,n,i,r)},from:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({from:t},e,n,i,r)},to:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.on({to:t},e,n,i,r)},between:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.on({from:t,to:e},n,i,r,o)}}),P})); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"category": "utils", | ||
@@ -37,21 +37,21 @@ "main": "dist/breakpoints.common.js", | ||
"dependencies": { | ||
"@pluginjs/emitter": "^0.8.7", | ||
"@pluginjs/factory": "^0.8.8", | ||
"@pluginjs/is": "^0.8.7", | ||
"@pluginjs/simple-emitter": "^0.8.7", | ||
"@pluginjs/utils": "^0.8.8" | ||
"@pluginjs/emitter": "^0.8.8", | ||
"@pluginjs/factory": "^0.8.9", | ||
"@pluginjs/is": "^0.8.8", | ||
"@pluginjs/simple-emitter": "^0.8.8", | ||
"@pluginjs/utils": "^0.8.9" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@pluginjs/browserslist-config": "^1.3.2", | ||
"@pluginjs/cli": "^0.8.4", | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
"@rollup/plugin-node-resolve": "^11.1.0", | ||
"babel-jest": "*", | ||
"jest": "*", | ||
"jest-extended": "*", | ||
"@babel/core": "^7.16.7", | ||
"@pluginjs/browserslist-config": "^1.3.3", | ||
"@pluginjs/cli": "^0.8.5", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"babel-jest": "^27.4.6", | ||
"jest": "^27.4.7", | ||
"jest-extended": "^1.2.0", | ||
"rename": "^1.0.4", | ||
"rollup": "^2.38.1", | ||
"rollup-plugin-babel": "*", | ||
"rollup-plugin-terser": "*" | ||
"rollup": "^2.63.0", | ||
"rollup-plugin-terser": "^7.0.2" | ||
}, | ||
@@ -58,0 +58,0 @@ "engines": { |
@@ -379,2 +379,2 @@ # Breakpoints | ||
Copyright (C) 2018 [Creation Studio Limited](creationstudio.com). | ||
Copyright (C) 2022 [Creation Studio Limited](creationstudio.com). |
81533
2068
Updated@pluginjs/emitter@^0.8.8
Updated@pluginjs/factory@^0.8.9
Updated@pluginjs/is@^0.8.8
Updated@pluginjs/utils@^0.8.9