shorter-js
Advanced tools
Comparing version 0.2.7 to 0.2.8
/*! | ||
* shorter-js v0.2.7 (https://github.com/thednp/shorter-js) | ||
* shorter-js v0.2.8 (https://github.com/thednp/shorter-js) | ||
* Copyright 2019-2021 © dnp_theme | ||
@@ -7,4 +7,52 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE) | ||
/** | ||
* A global namespace for aria-checked. | ||
* @type {string} | ||
*/ | ||
const ariaChecked = 'aria-checked'; | ||
/** | ||
* A global namespace for aria-describedby. | ||
* @type {string} | ||
*/ | ||
const ariaDescribedBy = 'aria-describedby'; | ||
/** | ||
* A global namespace for aria-expanded. | ||
* @type {string} | ||
*/ | ||
const ariaExpanded = 'aria-expanded'; | ||
/** | ||
* A global namespace for aria-hidden. | ||
* @type {string} | ||
*/ | ||
const ariaHidden = 'aria-hidden'; | ||
/** | ||
* A global namespace for aria-label. | ||
* @type {string} | ||
*/ | ||
const ariaLabel = 'aria-label'; | ||
/** | ||
* A global namespace for aria-labelledby. | ||
* @type {string} | ||
*/ | ||
const ariaLabelledBy = 'aria-labelledby'; | ||
/** | ||
* A global namespace for aria-modal. | ||
* @type {string} | ||
*/ | ||
const ariaModal = 'aria-modal'; | ||
/** | ||
* A global namespace for aria-selected. | ||
* @type {string} | ||
*/ | ||
const ariaSelected = 'aria-selected'; | ||
/** | ||
* A global namespace for mouse click events. | ||
* @type {object} | ||
* @type {{down: string, up: string}} | ||
*/ | ||
@@ -15,3 +63,3 @@ const mouseClickEvents = { down: 'mousedown', up: 'mouseup' }; | ||
* A global namespace for mouse hover events. | ||
* @type {string[]} | ||
* @type {[string, string]} | ||
*/ | ||
@@ -30,3 +78,3 @@ const mouseHoverEvents = ('onmouseleave' in document) ? ['mouseenter', 'mouseleave'] : ['mouseover', 'mouseout']; | ||
* A global namespace for focus event names. | ||
* @type {object} | ||
* @type {{in: string, out: string}} | ||
*/ | ||
@@ -37,3 +85,3 @@ const focusEvents = { in: 'focusin', out: 'focusout' }; | ||
* A global namespace for mouse events equivalent with touch events. | ||
* @type {object} | ||
* @type {{start: string, end: string, move: string, cancel: string}} | ||
*/ | ||
@@ -577,3 +625,3 @@ const mouseSwipeEvents = { | ||
var version = "0.2.7"; | ||
var version = "0.2.8"; | ||
@@ -591,2 +639,10 @@ // @ts-ignore | ||
const SHORTER = { | ||
ariaChecked, | ||
ariaDescribedBy, | ||
ariaExpanded, | ||
ariaHidden, | ||
ariaLabel, | ||
ariaLabelledBy, | ||
ariaModal, | ||
ariaSelected, | ||
mouseClickEvents, | ||
@@ -593,0 +649,0 @@ mouseHoverEvents, |
@@ -1,2 +0,2 @@ | ||
// shorter-js v0.2.7 | dnp_theme © 2021 | MIT-License | ||
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",s="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",r="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i;let m=!1;m=navigator.userAgentData?navigator.userAgentData.brands.some(e=>c.test(e.brand)):c.test(navigator.userAgent);const d=m,l="webkitPerspective"in document.head.style||"perspective"in document.head.style,b=(()=>{let e=!1;try{const n=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){throw Error("Passive events are not supported")}return e})(),p="webkitTransform"in document.head.style||"transform"in document.head.style,g="ontouchstart"in window||"msMaxTouchPoints"in navigator,v="webkitAnimation"in document.head.style||"animation"in document.head.style,E="webkitTransition"in document.head.style||"transition"in document.head.style;function y(e,n,t,i){const o=i||!1;e.addEventListener(n,t,o)}function f(e,n,t,i){const o=i||!1;e.removeEventListener(n,t,o)}function h(e){const n=getComputedStyle(e),i=n[o],a=n[t],s=a.includes("ms")?1:1e3,r=v&&i&&"none"!==i?parseFloat(a)*s:0;return Number.isNaN(r)?0:r}function w(e){const t=getComputedStyle(e),i=t[o],a=t[n],s=a.includes("ms")?1:1e3,r=v&&i&&"none"!==i?parseFloat(a)*s:0;return Number.isNaN(r)?0:r}function k(e){const n=getComputedStyle(e),t=n[s],i=n[r],o=i.includes("ms")?1:1e3,a=E&&t&&"none"!==t?parseFloat(i)*o:0;return Number.isNaN(a)?0:a}function z(e){const n=getComputedStyle(e),t=n[s],i=n[a],o=i.includes("ms")?1:1e3,r=E&&t&&"none"!==t?parseFloat(i)*o:0;return Number.isNaN(r)?0:r}function O(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const D={mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},focusEvents:{in:"focusin",out:"focusout"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:r,transitionEndEvent:u,transitionProperty:s,isMobile:d,support3DTransform:l,supportPassive:b,supportTransform:p,supportTouch:g,supportAnimation:v,supportTransition:E,addEventListener:"addEventListener",removeEventListener:"removeEventListener",addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:y,off:f,one:function(e,n,t,i){y(e,n,(function o(a){a.target===e&&(t.apply(e,[a]),f(e,n,o,i))}),i)},emulateAnimationEnd:function(e,n){let t=0;const o=new Event(i),a=w(e),s=h(e);if(a){const r=o=>{o.target===e&&(n.apply(e,[o]),e.removeEventListener(i,r),t=1)};e.addEventListener(i,r),setTimeout(()=>{t||e.dispatchEvent(o)},a+s+17)}else n.apply(e,[o])},emulateTransitionEnd:function(e,n){let t=0;const i=new Event(u),o=z(e),a=k(e);if(o){const s=i=>{i.target===e&&(n.apply(e,[i]),e.removeEventListener(u,s),t=1)};e.addEventListener(u,s),setTimeout(()=>{t||e.dispatchEvent(i)},o+a+17)}else n.apply(e,[i])},isElementInScrollRange:function(e){const n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){const n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!b&&{passive:!0},getElementAnimationDuration:w,getElementAnimationDelay:h,getElementTransitionDuration:z,getElementTransitionDelay:k,queryElement:function(e,n){const t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},normalizeValue:O,normalizeOptions:function(e,n,t,i){const{...o}=e,a={},s={};return Object.keys(o).forEach(e=>{const n=e.includes(i)?e.replace(i,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;s[n]=O(o[e])}),Object.keys(t).forEach(e=>{t[e]=O(t[e])}),Object.keys(n).forEach(e=>{a[e]=e in t?t[e]:e in s?s[e]:n[e]}),a},tryWrapper:function(e,n){try{e()}catch(e){throw TypeError(`${n} ${e}`)}},reflow:function(e){return e.offsetHeight},Version:"0.2.7"};export default D; | ||
// shorter-js v0.2.8 | dnp_theme © 2021 | MIT-License | ||
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",s="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i;let d=!1;d=navigator.userAgentData?navigator.userAgentData.brands.some(e=>c.test(e.brand)):c.test(navigator.userAgent);const l=d,m="webkitPerspective"in document.head.style||"perspective"in document.head.style,b=(()=>{let e=!1;try{const n=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){throw Error("Passive events are not supported")}return e})(),p="webkitTransform"in document.head.style||"transform"in document.head.style,g="ontouchstart"in window||"msMaxTouchPoints"in navigator,v="webkitAnimation"in document.head.style||"animation"in document.head.style,E="webkitTransition"in document.head.style||"transition"in document.head.style;function y(e,n,t,i){const a=i||!1;e.addEventListener(n,t,a)}function h(e,n,t,i){const a=i||!1;e.removeEventListener(n,t,a)}function f(e){const n=getComputedStyle(e),i=n[a],o=n[t],r=o.includes("ms")?1:1e3,s=v&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(s)?0:s}function w(e){const t=getComputedStyle(e),i=t[a],o=t[n],r=o.includes("ms")?1:1e3,s=v&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(s)?0:s}function k(e){const n=getComputedStyle(e),t=n[r],i=n[s],a=i.includes("ms")?1:1e3,o=E&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(o)?0:o}function z(e){const n=getComputedStyle(e),t=n[r],i=n[o],a=i.includes("ms")?1:1e3,s=E&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(s)?0:s}function O(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const D={ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaSelected:"aria-selected",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},focusEvents:{in:"focusin",out:"focusout"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:a,animationEndEvent:i,transitionDuration:o,transitionDelay:s,transitionEndEvent:u,transitionProperty:r,isMobile:l,support3DTransform:m,supportPassive:b,supportTransform:p,supportTouch:g,supportAnimation:v,supportTransition:E,addEventListener:"addEventListener",removeEventListener:"removeEventListener",addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:y,off:h,one:function(e,n,t,i){y(e,n,(function a(o){o.target===e&&(t.apply(e,[o]),h(e,n,a,i))}),i)},emulateAnimationEnd:function(e,n){let t=0;const a=new Event(i),o=w(e),r=f(e);if(o){const s=a=>{a.target===e&&(n.apply(e,[a]),e.removeEventListener(i,s),t=1)};e.addEventListener(i,s),setTimeout(()=>{t||e.dispatchEvent(a)},o+r+17)}else n.apply(e,[a])},emulateTransitionEnd:function(e,n){let t=0;const i=new Event(u),a=z(e),o=k(e);if(a){const r=i=>{i.target===e&&(n.apply(e,[i]),e.removeEventListener(u,r),t=1)};e.addEventListener(u,r),setTimeout(()=>{t||e.dispatchEvent(i)},a+o+17)}else n.apply(e,[i])},isElementInScrollRange:function(e){const n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){const n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!b&&{passive:!0},getElementAnimationDuration:w,getElementAnimationDelay:f,getElementTransitionDuration:z,getElementTransitionDelay:k,queryElement:function(e,n){const t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},normalizeValue:O,normalizeOptions:function(e,n,t,i){const{...a}=e,o={},r={};return Object.keys(a).forEach(e=>{const n=e.includes(i)?e.replace(i,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[n]=O(a[e])}),Object.keys(t).forEach(e=>{t[e]=O(t[e])}),Object.keys(n).forEach(e=>{o[e]=e in t?t[e]:e in r?r[e]:n[e]}),o},tryWrapper:function(e,n){try{e()}catch(e){throw TypeError(`${n} ${e}`)}},reflow:function(e){return e.offsetHeight},Version:"0.2.8"};export default D; |
/*! | ||
* shorter-js v0.2.7 (https://github.com/thednp/shorter-js) | ||
* shorter-js v0.2.8 (https://github.com/thednp/shorter-js) | ||
* Copyright 2019-2021 © dnp_theme | ||
@@ -13,4 +13,52 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE) | ||
/** | ||
* A global namespace for aria-checked. | ||
* @type {string} | ||
*/ | ||
var ariaChecked = 'aria-checked'; | ||
/** | ||
* A global namespace for aria-describedby. | ||
* @type {string} | ||
*/ | ||
var ariaDescribedBy = 'aria-describedby'; | ||
/** | ||
* A global namespace for aria-expanded. | ||
* @type {string} | ||
*/ | ||
var ariaExpanded = 'aria-expanded'; | ||
/** | ||
* A global namespace for aria-hidden. | ||
* @type {string} | ||
*/ | ||
var ariaHidden = 'aria-hidden'; | ||
/** | ||
* A global namespace for aria-label. | ||
* @type {string} | ||
*/ | ||
var ariaLabel = 'aria-label'; | ||
/** | ||
* A global namespace for aria-labelledby. | ||
* @type {string} | ||
*/ | ||
var ariaLabelledBy = 'aria-labelledby'; | ||
/** | ||
* A global namespace for aria-modal. | ||
* @type {string} | ||
*/ | ||
var ariaModal = 'aria-modal'; | ||
/** | ||
* A global namespace for aria-selected. | ||
* @type {string} | ||
*/ | ||
var ariaSelected = 'aria-selected'; | ||
/** | ||
* A global namespace for mouse click events. | ||
* @type {object} | ||
* @type {{down: string, up: string}} | ||
*/ | ||
@@ -21,3 +69,3 @@ var mouseClickEvents = { down: 'mousedown', up: 'mouseup' }; | ||
* A global namespace for mouse hover events. | ||
* @type {string[]} | ||
* @type {[string, string]} | ||
*/ | ||
@@ -36,3 +84,3 @@ var mouseHoverEvents = ('onmouseleave' in document) ? ['mouseenter', 'mouseleave'] : ['mouseover', 'mouseout']; | ||
* A global namespace for focus event names. | ||
* @type {object} | ||
* @type {{in: string, out: string}} | ||
*/ | ||
@@ -43,3 +91,3 @@ var focusEvents = { in: 'focusin', out: 'focusout' }; | ||
* A global namespace for mouse events equivalent with touch events. | ||
* @type {object} | ||
* @type {{start: string, end: string, move: string, cancel: string}} | ||
*/ | ||
@@ -586,3 +634,3 @@ var mouseSwipeEvents = { | ||
var version = "0.2.7"; | ||
var version = "0.2.8"; | ||
@@ -600,2 +648,10 @@ // @ts-ignore | ||
var SHORTER = { | ||
ariaChecked: ariaChecked, | ||
ariaDescribedBy: ariaDescribedBy, | ||
ariaExpanded: ariaExpanded, | ||
ariaHidden: ariaHidden, | ||
ariaLabel: ariaLabel, | ||
ariaLabelledBy: ariaLabelledBy, | ||
ariaModal: ariaModal, | ||
ariaSelected: ariaSelected, | ||
mouseClickEvents: mouseClickEvents, | ||
@@ -602,0 +658,0 @@ mouseHoverEvents: mouseHoverEvents, |
@@ -1,2 +0,2 @@ | ||
// shorter-js v0.2.7 | dnp_theme © 2021 | MIT-License | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).SHORTER=n()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",u="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i,d=navigator.userAgentData?navigator.userAgentData.brands.some((function(e){return c.test(e.brand)})):c.test(navigator.userAgent),m="webkitPerspective"in document.head.style||"perspective"in document.head.style,l=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){return e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){throw Error("Passive events are not supported")}return e}(),b="webkitTransform"in document.head.style||"transform"in document.head.style,v="ontouchstart"in window||"msMaxTouchPoints"in navigator,f="webkitAnimation"in document.head.style||"animation"in document.head.style,p="webkitTransition"in document.head.style||"transition"in document.head.style;function g(e,n,t,i){var o=i||!1;e.addEventListener(n,t,o)}function y(e,n,t,i){var o=i||!1;e.removeEventListener(n,t,o)}function E(e){var n=getComputedStyle(e),i=n[o],a=n[t],r=a.includes("ms")?1:1e3,u=f&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(u)?0:u}function h(e){var t=getComputedStyle(e),i=t[o],a=t[n],r=a.includes("ms")?1:1e3,u=f&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(u)?0:u}function w(e){var n=getComputedStyle(e),t=n[r],i=n[u],o=i.includes("ms")?1:1e3,a=p&&t&&"none"!==t?parseFloat(i)*o:0;return Number.isNaN(a)?0:a}function k(e){var n=getComputedStyle(e),t=n[r],i=n[a],o=i.includes("ms")?1:1e3,u=p&&t&&"none"!==t?parseFloat(i)*o:0;return Number.isNaN(u)?0:u}function z(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}return{mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},focusEvents:{in:"focusin",out:"focusout"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:u,transitionEndEvent:s,transitionProperty:r,isMobile:d,support3DTransform:m,supportPassive:l,supportTransform:b,supportTouch:v,supportAnimation:f,supportTransition:p,addEventListener:"addEventListener",removeEventListener:"removeEventListener",addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:g,off:y,one:function(e,n,t,i){g(e,n,(function o(a){a.target===e&&(t.apply(e,[a]),y(e,n,o,i))}),i)},emulateAnimationEnd:function(e,n){var t=0,o=new Event(i),a=h(e),r=E(e);if(a){var u=function(o){o.target===e&&(n.apply(e,[o]),e.removeEventListener(i,u),t=1)};e.addEventListener(i,u),setTimeout((function(){t||e.dispatchEvent(o)}),a+r+17)}else n.apply(e,[o])},emulateTransitionEnd:function(e,n){var t=0,i=new Event(s),o=k(e),a=w(e);if(o){var r=function(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(s,r),t=1)};e.addEventListener(s,r),setTimeout((function(){t||e.dispatchEvent(i)}),o+a+17)}else n.apply(e,[i])},isElementInScrollRange:function(e){var n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!l&&{passive:!0},getElementAnimationDuration:h,getElementAnimationDelay:E,getElementTransitionDuration:k,getElementTransitionDelay:w,queryElement:function(e,n){var t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},normalizeValue:z,normalizeOptions:function(e,n,t,i){var o=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===n.indexOf(i)&&(t[i]=e[i]);return t}(e,[]),a={},r={};return Object.keys(o).forEach((function(e){var n=e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;r[n]=z(o[e])})),Object.keys(t).forEach((function(e){t[e]=z(t[e])})),Object.keys(n).forEach((function(e){a[e]=e in t?t[e]:e in r?r[e]:n[e]})),a},tryWrapper:function(e,n){try{e()}catch(e){throw TypeError(n+" "+e)}},reflow:function(e){return e.offsetHeight},Version:"0.2.7"}})); | ||
// shorter-js v0.2.8 | dnp_theme © 2021 | MIT-License | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).SHORTER=n()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",u="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i,d=navigator.userAgentData?navigator.userAgentData.brands.some((function(e){return c.test(e.brand)})):c.test(navigator.userAgent),l="webkitPerspective"in document.head.style||"perspective"in document.head.style,m=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){return e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){throw Error("Passive events are not supported")}return e}(),b="webkitTransform"in document.head.style||"transform"in document.head.style,v="ontouchstart"in window||"msMaxTouchPoints"in navigator,p="webkitAnimation"in document.head.style||"animation"in document.head.style,f="webkitTransition"in document.head.style||"transition"in document.head.style;function g(e,n,t,i){var a=i||!1;e.addEventListener(n,t,a)}function y(e,n,t,i){var a=i||!1;e.removeEventListener(n,t,a)}function E(e){var n=getComputedStyle(e),i=n[a],o=n[t],r=o.includes("ms")?1:1e3,u=p&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(u)?0:u}function h(e){var t=getComputedStyle(e),i=t[a],o=t[n],r=o.includes("ms")?1:1e3,u=p&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(u)?0:u}function w(e){var n=getComputedStyle(e),t=n[r],i=n[u],a=i.includes("ms")?1:1e3,o=f&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(o)?0:o}function k(e){var n=getComputedStyle(e),t=n[r],i=n[o],a=i.includes("ms")?1:1e3,u=f&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(u)?0:u}function z(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}return{ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaSelected:"aria-selected",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},focusEvents:{in:"focusin",out:"focusout"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:a,animationEndEvent:i,transitionDuration:o,transitionDelay:u,transitionEndEvent:s,transitionProperty:r,isMobile:d,support3DTransform:l,supportPassive:m,supportTransform:b,supportTouch:v,supportAnimation:p,supportTransition:f,addEventListener:"addEventListener",removeEventListener:"removeEventListener",addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:g,off:y,one:function(e,n,t,i){g(e,n,(function a(o){o.target===e&&(t.apply(e,[o]),y(e,n,a,i))}),i)},emulateAnimationEnd:function(e,n){var t=0,a=new Event(i),o=h(e),r=E(e);if(o){var u=function(a){a.target===e&&(n.apply(e,[a]),e.removeEventListener(i,u),t=1)};e.addEventListener(i,u),setTimeout((function(){t||e.dispatchEvent(a)}),o+r+17)}else n.apply(e,[a])},emulateTransitionEnd:function(e,n){var t=0,i=new Event(s),a=k(e),o=w(e);if(a){var r=function(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(s,r),t=1)};e.addEventListener(s,r),setTimeout((function(){t||e.dispatchEvent(i)}),a+o+17)}else n.apply(e,[i])},isElementInScrollRange:function(e){var n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!m&&{passive:!0},getElementAnimationDuration:h,getElementAnimationDelay:E,getElementTransitionDuration:k,getElementTransitionDelay:w,queryElement:function(e,n){var t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},normalizeValue:z,normalizeOptions:function(e,n,t,i){var a=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===n.indexOf(i)&&(t[i]=e[i]);return t}(e,[]),o={},r={};return Object.keys(a).forEach((function(e){var n=e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;r[n]=z(a[e])})),Object.keys(t).forEach((function(e){t[e]=z(t[e])})),Object.keys(n).forEach((function(e){o[e]=e in t?t[e]:e in r?r[e]:n[e]})),o},tryWrapper:function(e,n){try{e()}catch(e){throw TypeError(n+" "+e)}},reflow:function(e){return e.offsetHeight},Version:"0.2.8"}})); |
{ | ||
"name": "shorter-js", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "A small ES6+ library with various JavaScript tools useful for creating light libraries.", | ||
@@ -51,4 +51,4 @@ "main": "dist/shorter-js.min.js", | ||
"rollup-plugin-terser": "^5.2.0", | ||
"typescript": "^4.4.4" | ||
"typescript": "^4.5.2" | ||
} | ||
} |
// strings FIRST | ||
import ariaChecked from './strings/ariaChecked'; | ||
import ariaDescribedBy from './strings/ariaDescribedBy'; | ||
import ariaExpanded from './strings/ariaExpanded'; | ||
import ariaHidden from './strings/ariaHidden'; | ||
import ariaLabel from './strings/ariaLabel'; | ||
import ariaLabelledBy from './strings/ariaLabelledBy'; | ||
import ariaModal from './strings/ariaModal'; | ||
import ariaSelected from './strings/ariaSelected'; | ||
import mouseClickEvents from './strings/mouseClickEvents'; | ||
@@ -57,2 +66,10 @@ import mouseHoverEvents from './strings/mouseHoverEvents'; | ||
const SHORTER = { | ||
ariaChecked, | ||
ariaDescribedBy, | ||
ariaExpanded, | ||
ariaHidden, | ||
ariaLabel, | ||
ariaLabelledBy, | ||
ariaModal, | ||
ariaSelected, | ||
mouseClickEvents, | ||
@@ -59,0 +76,0 @@ mouseHoverEvents, |
/** | ||
* A global namespace for focus event names. | ||
* @type {object} | ||
* @type {{in: string, out: string}} | ||
*/ | ||
const focusEvents = { in: 'focusin', out: 'focusout' }; | ||
export default focusEvents; |
/** | ||
* A global namespace for mouse click events. | ||
* @type {object} | ||
* @type {{down: string, up: string}} | ||
*/ | ||
const mouseClickEvents = { down: 'mousedown', up: 'mouseup' }; | ||
export default mouseClickEvents; |
/** | ||
* A global namespace for mouse hover events. | ||
* @type {string[]} | ||
* @type {[string, string]} | ||
*/ | ||
const mouseHoverEvents = ('onmouseleave' in document) ? ['mouseenter', 'mouseleave'] : ['mouseover', 'mouseout']; | ||
export default mouseHoverEvents; |
/** | ||
* A global namespace for mouse events equivalent with touch events. | ||
* @type {object} | ||
* @type {{start: string, end: string, move: string, cancel: string}} | ||
*/ | ||
@@ -5,0 +5,0 @@ const mouseSwipeEvents = { |
@@ -1,91 +0,47 @@ | ||
export default SHORTER; | ||
declare namespace SHORTER { | ||
export { mouseClickEvents }; | ||
export { mouseHoverEvents }; | ||
export { touchEvents }; | ||
export { focusEvents }; | ||
export { mouseSwipeEvents }; | ||
export { bezierEasings }; | ||
export { animationDuration }; | ||
export { animationDelay }; | ||
export { animationName }; | ||
export { animationEndEvent }; | ||
export { transitionDuration }; | ||
export { transitionDelay }; | ||
export { transitionEndEvent }; | ||
export { transitionProperty }; | ||
export { isMobile }; | ||
export { support3DTransform }; | ||
export { supportPassive }; | ||
export { supportTransform }; | ||
export { supportTouch }; | ||
export { supportAnimation }; | ||
export { supportTransition }; | ||
export { addEventListener }; | ||
export { removeEventListener }; | ||
export { addClass }; | ||
export { removeClass }; | ||
export { hasClass }; | ||
export { on }; | ||
export { off }; | ||
export { one }; | ||
export { emulateAnimationEnd }; | ||
export { emulateTransitionEnd }; | ||
export { isElementInScrollRange }; | ||
export { isElementInViewport }; | ||
export { passiveHandler }; | ||
export { getElementAnimationDuration }; | ||
export { getElementAnimationDelay }; | ||
export { getElementTransitionDuration }; | ||
export { getElementTransitionDelay }; | ||
export { queryElement }; | ||
export { normalizeValue }; | ||
export { normalizeOptions }; | ||
export { tryWrapper }; | ||
export { reflow }; | ||
export { Version }; | ||
} | ||
import mouseClickEvents from "./strings/mouseClickEvents"; | ||
import mouseHoverEvents from "./strings/mouseHoverEvents"; | ||
import touchEvents from "./strings/touchEvents"; | ||
import focusEvents from "./strings/focusEvents"; | ||
import mouseSwipeEvents from "./strings/mouseSwipeEvents"; | ||
import bezierEasings from "./strings/bezierEasings"; | ||
import animationDuration from "./strings/animationDuration"; | ||
import animationDelay from "./strings/animationDelay"; | ||
import animationName from "./strings/animationName"; | ||
import animationEndEvent from "./strings/animationEndEvent"; | ||
import transitionDuration from "./strings/transitionDuration"; | ||
import transitionDelay from "./strings/transitionDelay"; | ||
import transitionEndEvent from "./strings/transitionEndEvent"; | ||
import transitionProperty from "./strings/transitionProperty"; | ||
import isMobile from "./boolean/isMobile"; | ||
import support3DTransform from "./boolean/support3DTransform"; | ||
import supportPassive from "./boolean/supportPassive"; | ||
import supportTransform from "./boolean/supportTransform"; | ||
import supportTouch from "./boolean/supportTouch"; | ||
import supportAnimation from "./boolean/supportAnimation"; | ||
import supportTransition from "./boolean/supportTransition"; | ||
import addEventListener from "./strings/addEventListener"; | ||
import removeEventListener from "./strings/removeEventListener"; | ||
import addClass from "./class/addClass"; | ||
import removeClass from "./class/removeClass"; | ||
import hasClass from "./class/hasClass"; | ||
import on from "./event/on"; | ||
import off from "./event/off"; | ||
import one from "./event/one"; | ||
import emulateAnimationEnd from "./misc/emulateAnimationEnd"; | ||
import emulateTransitionEnd from "./misc/emulateTransitionEnd"; | ||
import isElementInScrollRange from "./misc/isElementInScrollRange"; | ||
import isElementInViewport from "./misc/isElementInViewport"; | ||
import passiveHandler from "./misc/passiveHandler"; | ||
import getElementAnimationDuration from "./misc/getElementAnimationDuration"; | ||
import getElementAnimationDelay from "./misc/getElementAnimationDelay"; | ||
import getElementTransitionDuration from "./misc/getElementTransitionDuration"; | ||
import getElementTransitionDelay from "./misc/getElementTransitionDelay"; | ||
import queryElement from "./misc/queryElement"; | ||
import normalizeValue from "./misc/normalizeValue"; | ||
import normalizeOptions from "./misc/normalizeOptions"; | ||
import tryWrapper from "./misc/tryWrapper"; | ||
import reflow from "./misc/reflow"; | ||
import Version from "./misc/version"; | ||
export as namespace SHORTER; | ||
import './shorter' | ||
export { default as mouseClickEvents } from "shorter-js/src/strings/mouseClickEvents"; | ||
export { default as mouseHoverEvents } from "shorter-js/src/strings/mouseHoverEvents"; | ||
export { default as touchEvents } from "shorter-js/src/strings/touchEvents"; | ||
export { default as focusEvents } from "shorter-js/src/strings/focusEvents"; | ||
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents"; | ||
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings"; | ||
export { default as animationDuration } from "shorter-js/src/strings/animationDuration"; | ||
export { default as animationDelay } from "shorter-js/src/strings/animationDelay"; | ||
export { default as animationName } from "shorter-js/src/strings/animationName"; | ||
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent"; | ||
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration"; | ||
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay"; | ||
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent"; | ||
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty"; | ||
export { default as isMobile } from "shorter-js/src/boolean/isMobile"; | ||
export { default as support3DTransform } from "shorter-js/src/boolean/support3DTransform"; | ||
export { default as supportPassive } from "shorter-js/src/boolean/supportPassive"; | ||
export { default as supportTransform } from "shorter-js/src/boolean/supportTransform"; | ||
export { default as supportTouch } from "shorter-js/src/boolean/supportTouch"; | ||
export { default as supportAnimation } from "shorter-js/src/boolean/supportAnimation"; | ||
export { default as supportTransition } from "shorter-js/src/boolean/supportTransition"; | ||
export { default as addEventListener } from "shorter-js/src/strings/addEventListener"; | ||
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener"; | ||
export { default as addClass } from "shorter-js/src/class/addClass"; | ||
export { default as removeClass } from "shorter-js/src/class/removeClass"; | ||
export { default as hasClass } from "shorter-js/src/class/hasClass"; | ||
export { default as on } from "shorter-js/src/event/on"; | ||
export { default as off } from "shorter-js/src/event/off"; | ||
export { default as one } from "shorter-js/src/event/one"; | ||
export { default as emulateAnimationEnd } from "shorter-js/src/misc/emulateAnimationEnd"; | ||
export { default as emulateTransitionEnd } from "shorter-js/src/misc/emulateTransitionEnd"; | ||
export { default as isElementInScrollRange } from "shorter-js/src/misc/isElementInScrollRange"; | ||
export { default as isElementInViewport } from "shorter-js/src/misc/isElementInViewport"; | ||
export { default as passiveHandler } from "shorter-js/src/misc/passiveHandler"; | ||
export { default as getElementAnimationDuration } from "shorter-js/src/misc/getElementAnimationDuration"; | ||
export { default as getElementAnimationDelay } from "shorter-js/src/misc/getElementAnimationDelay"; | ||
export { default as getElementTransitionDuration } from "shorter-js/src/misc/getElementTransitionDuration"; | ||
export { default as getElementTransitionDelay } from "shorter-js/src/misc/getElementTransitionDelay"; | ||
export { default as queryElement } from "shorter-js/src/misc/queryElement"; | ||
export { default as normalizeValue } from "shorter-js/src/misc/normalizeValue"; | ||
export { default as normalizeOptions } from "shorter-js/src/misc/normalizeOptions"; | ||
export { default as tryWrapper } from "shorter-js/src/misc/tryWrapper"; | ||
export { default as reflow } from "shorter-js/src/misc/reflow"; | ||
export { default as Version } from "shorter-js/src/misc/version"; |
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
115906
2634
63