Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uifabric/react-hooks

Package Overview
Dependencies
Maintainers
5
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uifabric/react-hooks - npm Package Compare versions

Comparing version 7.13.0 to 7.13.1

17

CHANGELOG.json

@@ -5,6 +5,21 @@ {

{
"date": "Fri, 11 Sep 2020 12:22:56 GMT",
"date": "Mon, 14 Sep 2020 12:22:12 GMT",
"tag": "@uifabric/react-hooks_v7.13.0",
"version": "7.13.0",
"comments": {
"none": [
{
"comment": "Fix API file newlines",
"author": "elcraig@microsoft.com",
"commit": "728b287a05f3c521e3b1ab7ea58071ac07d7c727",
"package": "@uifabric/react-hooks"
}
]
}
},
{
"date": "Fri, 11 Sep 2020 12:27:31 GMT",
"tag": "@uifabric/react-hooks_v7.13.0",
"version": "7.13.0",
"comments": {
"minor": [

@@ -11,0 +26,0 @@ {

4

CHANGELOG.md
# Change Log - @uifabric/react-hooks
This log was last generated on Fri, 11 Sep 2020 12:22:56 GMT and should not be manually modified.
This log was last generated on Fri, 11 Sep 2020 12:27:31 GMT and should not be manually modified.

@@ -9,3 +9,3 @@ <!-- Start content -->

Fri, 11 Sep 2020 12:22:56 GMT
Fri, 11 Sep 2020 12:27:31 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@uifabric/react-hooks_v7.12.0..@uifabric/react-hooks_v7.13.0)

@@ -12,0 +12,0 @@

@@ -1,2 +0,2 @@

var FabricReactHooks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=React},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r={},i=void 0;try{i=window}catch(t){}function o(t,e){if(void 0!==i){var n=i.__packages__=i.__packages__||{};if(!n[t]||!r[t])r[t]=e,(n[t]=n[t]||[]).push(e)}}o("@uifabric/set-version","6.0.0")},function(t,e,n){"use strict";n.r(e),n.d(e,"useAsync",(function(){return l})),n.d(e,"useBoolean",(function(){return f})),n.d(e,"useConst",(function(){return c})),n.d(e,"useConstCallback",(function(){return d})),n.d(e,"useControllableValue",(function(){return m})),n.d(e,"useForceUpdate",(function(){return _})),n.d(e,"useId",(function(){return F})),n.d(e,"useMergedRefs",(function(){return S})),n.d(e,"useOnEvent",(function(){return N})),n.d(e,"usePrevious",(function(){return j})),n.d(e,"useRefEffect",(function(){return k})),n.d(e,"useSetInterval",(function(){return O})),n.d(e,"useSetTimeout",(function(){return D})),n.d(e,"useTarget",(function(){return x})),n.d(e,"useWarnings",(function(){return P}));var r=n(2);Object(r.a)("@uifabric/react-hooks","7.13.0");var i=!1;var o=void 0;try{o=window}catch(t){}function u(t){if(!i&&void 0!==o){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:o}}var s=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._onErrorHandler&&n._onErrorHandler(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,i=u(e);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0}return r},t.prototype.clearImmediate=function(t,e){var n=u(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var i,o,u=e||0,s=!0,a=!0,c=0,l=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(a=n.trailing);var f=function(e){var n=Date.now(),d=n-c,m=s?u-d:u;return d>=u&&(!e||s)?(c=n,l&&(r.clearTimeout(l),l=null),i=t.apply(r._parent,o)):null===l&&a&&(l=r.setTimeout(f,m)),i};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o=t,f(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,u,s=e||0,a=!1,c=!0,l=null,f=0,d=Date.now(),m=null;n&&"boolean"==typeof n.leading&&(a=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(l=n.maxWait);var _=function(t){m&&(r.clearTimeout(m),m=null),d=t},h=function(e){_(e),o=t.apply(r._parent,u)},p=function(t){var e=Date.now(),n=!1;t&&(a&&e-f>=s&&(n=!0),f=e);var i=e-f,u=s-i,_=e-d,v=!1;return null!==l&&(_>=l&&m?v=!0:u=Math.min(u,l-_)),i>=s||v||n?h(e):null!==m&&t||!c||(m=r.setTimeout(p,u)),o},v=function(){return!!m},y=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u=t,p(!0)};return y.cancel=function(){v()&&_(Date.now())},y.flush=function(){return v()&&h(Date.now()),o},y.pending=v,y},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,i=u(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=u(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}(),a=n(0);function c(t){var e=a.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}function l(){var t=c((function(){return new s}));return a.useEffect((function(){return function(){return t.dispose()}}),[t]),t}function f(t){var e=a.useState(t),n=e[0],r=e[1],i=a.useRef(n),o=c((function(){return function(){r(!0),i.current=!0}})),u=c((function(){return function(){r(!1),i.current=!1}})),s=c((function(){return function(){return i.current?u():o()}}));return[n,{setTrue:o,setFalse:u,toggle:s}]}function d(t){var e=a.useRef();return e.current||(e.current=t),e.current}function m(t,e,n){var r=a.useState(e),i=r[0],o=r[1],u=c(void 0!==t),s=u?t:i,l=a.useRef(s),f=a.useRef(n);a.useEffect((function(){l.current=s,f.current=n}));var d=c((function(){return function(t,e){var n="function"==typeof t?t(l.current):t;f.current&&f.current(e,n),u||o(n)}}));return[s,d]}function _(){var t=a.useState(0)[1];return c((function(){return function(){return t((function(t){return++t}))}}))}
var FabricReactHooks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=React},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r={},i=void 0;try{i=window}catch(t){}function o(t,e){if(void 0!==i){var n=i.__packages__=i.__packages__||{};if(!n[t]||!r[t])r[t]=e,(n[t]=n[t]||[]).push(e)}}o("@uifabric/set-version","6.0.0")},function(t,e,n){"use strict";n.r(e),n.d(e,"useAsync",(function(){return l})),n.d(e,"useBoolean",(function(){return f})),n.d(e,"useConst",(function(){return c})),n.d(e,"useConstCallback",(function(){return d})),n.d(e,"useControllableValue",(function(){return m})),n.d(e,"useForceUpdate",(function(){return _})),n.d(e,"useId",(function(){return F})),n.d(e,"useMergedRefs",(function(){return S})),n.d(e,"useOnEvent",(function(){return N})),n.d(e,"usePrevious",(function(){return j})),n.d(e,"useRefEffect",(function(){return k})),n.d(e,"useSetInterval",(function(){return O})),n.d(e,"useSetTimeout",(function(){return D})),n.d(e,"useTarget",(function(){return x})),n.d(e,"useWarnings",(function(){return P}));var r=n(2);Object(r.a)("@uifabric/react-hooks","7.13.1");var i=!1;var o=void 0;try{o=window}catch(t){}function u(t){if(!i&&void 0!==o){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:o}}var s=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._onErrorHandler&&n._onErrorHandler(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,i=u(e);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0}return r},t.prototype.clearImmediate=function(t,e){var n=u(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var i,o,u=e||0,s=!0,a=!0,c=0,l=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(a=n.trailing);var f=function(e){var n=Date.now(),d=n-c,m=s?u-d:u;return d>=u&&(!e||s)?(c=n,l&&(r.clearTimeout(l),l=null),i=t.apply(r._parent,o)):null===l&&a&&(l=r.setTimeout(f,m)),i};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o=t,f(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,u,s=e||0,a=!1,c=!0,l=null,f=0,d=Date.now(),m=null;n&&"boolean"==typeof n.leading&&(a=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(l=n.maxWait);var _=function(t){m&&(r.clearTimeout(m),m=null),d=t},h=function(e){_(e),o=t.apply(r._parent,u)},p=function(t){var e=Date.now(),n=!1;t&&(a&&e-f>=s&&(n=!0),f=e);var i=e-f,u=s-i,_=e-d,v=!1;return null!==l&&(_>=l&&m?v=!0:u=Math.min(u,l-_)),i>=s||v||n?h(e):null!==m&&t||!c||(m=r.setTimeout(p,u)),o},v=function(){return!!m},y=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u=t,p(!0)};return y.cancel=function(){v()&&_(Date.now())},y.flush=function(){return v()&&h(Date.now()),o},y.pending=v,y},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,i=u(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=u(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}(),a=n(0);function c(t){var e=a.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}function l(){var t=c((function(){return new s}));return a.useEffect((function(){return function(){return t.dispose()}}),[t]),t}function f(t){var e=a.useState(t),n=e[0],r=e[1],i=a.useRef(n),o=c((function(){return function(){r(!0),i.current=!0}})),u=c((function(){return function(){r(!1),i.current=!1}})),s=c((function(){return function(){return i.current?u():o()}}));return[n,{setTrue:o,setFalse:u,toggle:s}]}function d(t){var e=a.useRef();return e.current||(e.current=t),e.current}function m(t,e,n){var r=a.useState(e),i=r[0],o=r[1],u=c(void 0!==t),s=u?t:i,l=a.useRef(s),f=a.useRef(n);a.useEffect((function(){l.current=s,f.current=n}));var d=c((function(){return function(t,e){var n="function"==typeof t?t(l.current):t;f.current&&f.current(e,n),u||o(n)}}));return[s,d]}function _(){var t=a.useState(0)[1];return c((function(){return function(){return t((function(t){return++t}))}}))}
/*! *****************************************************************************

@@ -3,0 +3,0 @@ Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ ## API Report File for "@uifabric/react-hooks"

define(["require", "exports", "@uifabric/set-version"], function (require, exports, set_version_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
set_version_1.setVersion('@uifabric/react-hooks', '7.13.0');
set_version_1.setVersion('@uifabric/react-hooks', '7.13.1');
});
//# sourceMappingURL=version.js.map

@@ -6,3 +6,3 @@ "use strict";

var set_version_1 = require("@uifabric/set-version");
set_version_1.setVersion('@uifabric/react-hooks', '7.13.0');
set_version_1.setVersion('@uifabric/react-hooks', '7.13.1');
//# sourceMappingURL=version.js.map
// Do not modify this file; it is generated as part of publish.
// The checked in version is a placeholder only and will not be updated.
import { setVersion } from '@uifabric/set-version';
setVersion('@uifabric/react-hooks', '7.13.0');
setVersion('@uifabric/react-hooks', '7.13.1');
//# sourceMappingURL=version.js.map
{
"name": "@uifabric/react-hooks",
"version": "7.13.0",
"version": "7.13.1",
"description": "Fluent UI React hooks.",

@@ -36,3 +36,3 @@ "main": "lib-commonjs/index.js",

"@uifabric/build": "^7.0.0",
"@uifabric/test-utilities": "^7.2.0",
"@uifabric/test-utilities": "^7.2.1",
"enzyme": "~3.10.0",

@@ -44,5 +44,5 @@ "enzyme-adapter-react-16": "^1.15.0",

"dependencies": {
"@fluentui/react-window-provider": "^0.3.0",
"@fluentui/react-window-provider": "^0.3.1",
"@uifabric/set-version": "^7.0.22",
"@uifabric/utilities": "^7.31.0",
"@uifabric/utilities": "^7.31.1",
"tslib": "^1.10.0"

@@ -49,0 +49,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc