@zendeskgarden/container-schedule
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.1.0](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-schedule@1.0.0...@zendeskgarden/container-schedule@1.1.0) (2019-09-19) | ||
### Features | ||
* **utilities:** migrate container-utilities to TypeScript ([#103](https://github.com/zendeskgarden/react-containers/issues/103)) ([16583f4](https://github.com/zendeskgarden/react-containers/commit/16583f4)) | ||
# [1.0.0](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-schedule@0.3.0...@zendeskgarden/container-schedule@1.0.0) (2019-06-27) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ /*! | ||
*/ | ||
!function(e,n){for(var t in n)e[t]=n[t]}(exports,function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n){e.exports=require("prop-types")},function(e,n){e.exports=require("react")},function(e,n,t){"use strict";t.r(n);var r=t(1);function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],r=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,u=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw u}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.duration,t=void 0===n?1250:n,u=e.delayMS,i=void 0===u?750:u,a=e.loop,c=void 0===a||a,l=o(Object(r.useState)(0),2),f=l[0],d=l[1],p=o(Object(r.useState)(!1),2),s=p[0],y=p[1];return Object(r.useLayoutEffect)(function(){var e,n,r,o=function(){e=requestAnimationFrame(u)},u=function(){d(Date.now()-n),o()},a=setTimeout(function u(){r=setTimeout(function(){cancelAnimationFrame(e),d(Date.now()-n),c&&u()},t),n=Date.now(),y(!0),o()},i);return function(){clearTimeout(a),clearTimeout(r),cancelAnimationFrame(e)}},[t,i,c]),{elapsed:Math.min(1,f/t),delayMS:i,delayComplete:s}}var i=t(0),a=t.n(i);function c(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},u=Object.keys(e);for(r=0;r<u.length;r++)t=u[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)t=u[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e){var n=e.children,t=e.render;return(void 0===t?n:t)(u(c(e,["children","render"])))}l.propTypes={duration:a.a.number,loop:a.a.bool,delayMS:a.a.number,children:a.a.func,render:a.a.func},t.d(n,"useSchedule",function(){return u}),t.d(n,"ScheduleContainer",function(){return l})}])); | ||
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("react")},function(e,t,r){"use strict";r.r(t);var n=r(1);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw u}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,r=void 0===t?1250:t,u=e.delayMS,i=void 0===u?750:u,a=e.loop,c=void 0===a||a,l=o(Object(n.useState)(0),2),f=l[0],d=l[1],p=o(Object(n.useState)(!1),2),y=p[0],s=p[1];return Object(n.useLayoutEffect)(function(){var e,t,n,o=function(){e=requestAnimationFrame(u)},u=function(){d(Date.now()-t),o()},a=setTimeout(function u(){n=setTimeout(function(){cancelAnimationFrame(e),d(Date.now()-t),c&&u()},r),t=Date.now(),s(!0),o()},i);return function(){clearTimeout(a),clearTimeout(n),cancelAnimationFrame(e)}},[r,i,c]),{elapsed:Math.min(1,f/r),delayMS:i,delayComplete:y}}var i=r(0),a=r.n(i);function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l(e){var t=e.children,r=e.render;return(void 0===r?t:r)(u(c(e,["children","render"])))}l.propTypes={duration:a.a.number,loop:a.a.bool,delayMS:a.a.number,children:a.a.func,render:a.a.func},r.d(t,"useSchedule",function(){return u}),r.d(t,"ScheduleContainer",function(){return l})}])); | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "./dist/index.js", | ||
@@ -38,3 +38,3 @@ "files": [ | ||
"zendeskgarden:src": "src/index.js", | ||
"gitHead": "bedaccbb54472105e107e6bd32bfa2f74a27f1ce" | ||
"gitHead": "9e1d156fb88b3974dd40baa4b74100f9a3878273" | ||
} |
Sorry, the diff of this file is not supported yet
26844
17