@pluginjs/feature
Advanced tools
Comparing version 0.8.7 to 0.8.8
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,n,o,e=()=>Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent)),r=(t=["Webkit","Moz","O","ms"],n={},o=document.createElement("dummy").style,function(e){if(void 0===n[e]){var r=e.charAt(0).toUpperCase()+e.substr(1),i="".concat(e," ").concat(t.join("".concat(r," "))).concat(r).split(" ");for(var a in n[e]=null,i)if(void 0!==o[i[a]]){n[e]=i[a];break}}return n[e]});var i=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),a=!(!window.PointerEvent&&!window.MSPointerEvent);exports.animationEndEvent=()=>{var t={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},n={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==n[o])return t[o];return!1},exports.animationProperty=()=>r("animation"),exports.pointer=a,exports.pointerEvent=function(t){return window.MSPointerEvent?"MSPointer".concat(t.charAt(9).toUpperCase()).concat(t.substr(10)):t},exports.prefixedProperty=function(t){return r(t)},exports.sticky=()=>{var t=!1,n=document.documentElement,o=document.createElement("div");n.appendChild(o);for(var e=["sticky","-webkit-sticky"],r=0;r<e.length&&(o.style.position=e[r],!(t=Boolean(window.getComputedStyle(o).position.match("sticky"))));r++);return n.removeChild(o),t},exports.svg=()=>Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),exports.touch=i,exports.transform=()=>{var t=!e()&&null!==r("transformOrigin");return Boolean(t)},exports.transform3D=()=>{var t=!e()&&null!==r("perspective");return Boolean(t)},exports.transformProperty=()=>r("transform"),exports.transition=()=>{var t=null!==r("transition");return Boolean(t)},exports.transitionEndEvent=()=>{var t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=document.createElement("dummy").style;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==n[o])return t[o];return!1},exports.transitionProperty=()=>r("transition"); |
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
var n,t,o,e=()=>Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent)),i=(n=["Webkit","Moz","O","ms"],t={},o=document.createElement("dummy").style,function(e){if(void 0===t[e]){var i=e.charAt(0).toUpperCase()+e.substr(1),r="".concat(e," ").concat(n.join("".concat(i," "))).concat(i).split(" ");for(var a in t[e]=null,r)if(void 0!==o[r[a]]){t[e]=r[a];break}}return t[e]});function r(n){return i(n)}var a=()=>i("transition"),c=()=>i("transform"),s=()=>i("animation"),d=()=>{var n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},t=document.createElement("dummy").style;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},m=()=>{var n={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},t={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},u=()=>{var n=!e()&&null!==i("perspective");return Boolean(n)},l=()=>{var n=!e()&&null!==i("transformOrigin");return Boolean(n)},v=()=>{var n=null!==i("transition");return Boolean(n)},w=()=>{var n=!1,t=document.documentElement,o=document.createElement("div");t.appendChild(o);for(var e=["sticky","-webkit-sticky"],i=0;i<e.length&&(o.style.position=e[i],!(n=Boolean(window.getComputedStyle(o).position.match("sticky"))));i++);return t.removeChild(o),n},p=()=>Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),f=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),E=!(!window.PointerEvent&&!window.MSPointerEvent);function y(n){return window.MSPointerEvent?"MSPointer".concat(n.charAt(9).toUpperCase()).concat(n.substr(10)):n}export{m as animationEndEvent,s as animationProperty,E as pointer,y as pointerEvent,r as prefixedProperty,w as sticky,p as svg,f as touch,l as transform,u as transform3D,c as transformProperty,v as transition,d as transitionEndEvent,a as transitionProperty}; |
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (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(['exports'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@pluginjs/feature'] = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@pluginjs/feature"] = {})); | ||
})(this, (function (exports) { 'use strict'; | ||
@@ -167,2 +167,2 @@ /* eslint no-undef: "off" */ | ||
}))); | ||
})); |
/*! | ||
* @pluginjs/feature v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/feature v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self)["@pluginjs/feature"]={})}(this,(function(n){"use strict";var t,o,e,i=function(){return Boolean(/(Android\s(1.|2.))|(Silk\/1.)/i.test(navigator.userAgent))},r=(t=["Webkit","Moz","O","ms"],o={},e=document.createElement("dummy").style,function(n){if(void 0===o[n]){var i=n.charAt(0).toUpperCase()+n.substr(1),r="".concat(n," ").concat(t.join("".concat(i," "))).concat(i).split(" ");for(var a in o[n]=null,r)if(void 0!==e[r[a]]){o[n]=r[a];break}}return o[n]});var a=Boolean("ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch),c=!(!window.PointerEvent&&!window.MSPointerEvent);n.animationEndEvent=function(){var n={animation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},t={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},n.animationProperty=function(){return r("animation")},n.pointer=c,n.pointerEvent=function(n){return window.MSPointerEvent?"MSPointer".concat(n.charAt(9).toUpperCase()).concat(n.substr(10)):n},n.prefixedProperty=function(n){return r(n)},n.sticky=function(){var n=!1,t=document.documentElement,o=document.createElement("div");t.appendChild(o);for(var e=["sticky","-webkit-sticky"],i=0;i<e.length&&(o.style.position=e[i],!(n=Boolean(window.getComputedStyle(o).position.match("sticky"))));i++);return t.removeChild(o),n},n.svg=function(){return Boolean(document.createElementNS)&&Boolean(document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)},n.touch=a,n.transform=function(){var n=!i()&&null!==r("transformOrigin");return Boolean(n)},n.transform3D=function(){var n=!i()&&null!==r("perspective");return Boolean(n)},n.transformProperty=function(){return r("transform")},n.transition=function(){var n=null!==r("transition");return Boolean(n)},n.transitionEndEvent=function(){var n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},t=document.createElement("dummy").style;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&void 0!==t[o])return n[o];return!1},n.transitionProperty=function(){return r("transition")},Object.defineProperty(n,"__esModule",{value:!0})})); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.8.7", | ||
"version": "0.8.8", | ||
"category": "utils", | ||
@@ -37,14 +37,14 @@ "main": "dist/feature.common.js", | ||
"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" | ||
}, | ||
@@ -51,0 +51,0 @@ "engines": { |
@@ -166,2 +166,2 @@ # Feature | ||
Copyright (C) 2018 [Creation Studio Limited](creationstudio.com). | ||
Copyright (C) 2022 [Creation Studio Limited](creationstudio.com). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31303