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.16.1 to 7.16.2

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Fri, 02 Sep 2022 16:54:43 GMT",
"date": "Fri, 02 Sep 2022 18:22:32 GMT",
"tag": "@uifabric/react-hooks_v7.16.2",
"version": "7.16.2",
"comments": {
"patch": [
{
"comment": "Bump @uifabric/utilities to v7.38.0",
"author": "gcox@microsoft.com",
"commit": "26cac141351b351aadd175f37ef0e0030bdd698e",
"package": "@uifabric/react-hooks"
}
]
}
},
{
"date": "Fri, 02 Sep 2022 16:57:15 GMT",
"tag": "@uifabric/react-hooks_v7.16.1",

@@ -8,0 +23,0 @@ "version": "7.16.1",

# Change Log - @uifabric/react-hooks
This log was last generated on Fri, 02 Sep 2022 16:54:43 GMT and should not be manually modified.
This log was last generated on Fri, 02 Sep 2022 18:22:32 GMT and should not be manually modified.
<!-- Start content -->
## [7.16.2](https://github.com/microsoft/fluentui/tree/@uifabric/react-hooks_v7.16.2)
Fri, 02 Sep 2022 18:22:32 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@uifabric/react-hooks_v7.16.1..@uifabric/react-hooks_v7.16.2)
### Patches
- Bump @uifabric/utilities to v7.38.0 ([PR #24654](https://github.com/microsoft/fluentui/pull/24654) by gcox@microsoft.com)
## [7.16.1](https://github.com/microsoft/fluentui/tree/@uifabric/react-hooks_v7.16.1)
Fri, 02 Sep 2022 16:54:43 GMT
Fri, 02 Sep 2022 16:57:15 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@uifabric/react-hooks_v7.16.0..@uifabric/react-hooks_v7.16.1)

@@ -11,0 +20,0 @@

2

dist/react-hooks.min.js

@@ -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,"useEventCallback",(function(){return h})),n.d(e,"useForceUpdate",(function(){return _})),n.d(e,"useId",(function(){return S})),n.d(e,"useMergedRefs",(function(){return k})),n.d(e,"useOnEvent",(function(){return N})),n.d(e,"usePrevious",(function(){return j})),n.d(e,"useRefEffect",(function(){return O})),n.d(e,"useSetInterval",(function(){return D})),n.d(e,"useSetTimeout",(function(){return A})),n.d(e,"useTarget",(function(){return P})),n.d(e,"useWarnings",(function(){return M}));var r=n(2);Object(r.a)("@uifabric/react-hooks","7.16.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 h=function(t){m&&(r.clearTimeout(m),m=null),d=t},_=function(e){h(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,h=e-d,v=!1;return null!==l&&(h>=l&&m?v=!0:u=Math.min(u,l-h)),i>=s||v||n?_(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()&&h(Date.now())},y.flush=function(){return v()&&_(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 h(t){var e=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return a.useLayoutEffect((function(){e.current=t}),[t]),c((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.current;return r.apply(void 0,t)}}))}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,"useEventCallback",(function(){return h})),n.d(e,"useForceUpdate",(function(){return _})),n.d(e,"useId",(function(){return S})),n.d(e,"useMergedRefs",(function(){return k})),n.d(e,"useOnEvent",(function(){return N})),n.d(e,"usePrevious",(function(){return j})),n.d(e,"useRefEffect",(function(){return O})),n.d(e,"useSetInterval",(function(){return D})),n.d(e,"useSetTimeout",(function(){return A})),n.d(e,"useTarget",(function(){return P})),n.d(e,"useWarnings",(function(){return M}));var r=n(2);Object(r.a)("@uifabric/react-hooks","7.16.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 h=function(t){m&&(r.clearTimeout(m),m=null),d=t},_=function(e){h(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,h=e-d,v=!1;return null!==l&&(h>=l&&m?v=!0:u=Math.min(u,l-h)),i>=s||v||n?_(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()&&h(Date.now())},y.flush=function(){return v()&&_(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 h(t){var e=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return a.useLayoutEffect((function(){e.current=t}),[t]),c((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.current;return r.apply(void 0,t)}}))}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.

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.16.0');
set_version_1.setVersion('@uifabric/react-hooks', '7.16.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.16.0');
set_version_1.setVersion('@uifabric/react-hooks', '7.16.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.16.0');
setVersion('@uifabric/react-hooks', '7.16.1');
//# sourceMappingURL=version.js.map
{
"name": "@uifabric/react-hooks",
"version": "7.16.1",
"version": "7.16.2",
"description": "Fluent UI React hooks.",

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

"@uifabric/set-version": "^7.0.24",
"@uifabric/utilities": "^7.37.0",
"@uifabric/utilities": "^7.38.0",
"tslib": "^1.10.0"

@@ -48,0 +48,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

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