@fluentui/react-utilities
Advanced tools
Comparing version 9.0.0-alpha.9 to 9.0.0-alpha.10
@@ -5,6 +5,36 @@ { | ||
{ | ||
"date": "Thu, 18 Mar 2021 20:11:49 GMT", | ||
"date": "Tue, 23 Mar 2021 07:29:14 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.10", | ||
"version": "9.0.0-alpha.10", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "Add useCallbackRef and useFirstMount hooks", | ||
"author": "lingfan.gao@microsoft.com", | ||
"commit": "fc0d87258337229e59ec1c1fec87dc91193858f1", | ||
"package": "@fluentui/react-utilities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 22 Mar 2021 07:34:09 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.9", | ||
"version": "9.0.0-alpha.9", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "chore: apply single version policy on @testing-library packages", | ||
"author": "martinhochel@microsoft.com", | ||
"commit": "25c4ce7c54a2a65d3db4e5f2b13785468b669329", | ||
"package": "@fluentui/react-utilities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 18 Mar 2021 20:15:34 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.9", | ||
"version": "9.0.0-alpha.9", | ||
"comments": { | ||
"prerelease": [ | ||
@@ -11,0 +41,0 @@ { |
# Change Log - @fluentui/react-utilities | ||
This log was last generated on Thu, 18 Mar 2021 20:11:49 GMT and should not be manually modified. | ||
This log was last generated on Tue, 23 Mar 2021 07:29:14 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.10) | ||
Tue, 23 Mar 2021 07:29:14 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.9..@fluentui/react-utilities_v9.0.0-alpha.10) | ||
### Changes | ||
- Add useCallbackRef and useFirstMount hooks ([PR #17339](https://github.com/microsoft/fluentui/pull/17339) by lingfan.gao@microsoft.com) | ||
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.9) | ||
Thu, 18 Mar 2021 20:11:49 GMT | ||
Thu, 18 Mar 2021 20:15:34 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.8..@fluentui/react-utilities_v9.0.0-alpha.9) | ||
@@ -11,0 +20,0 @@ |
@@ -356,2 +356,14 @@ import * as React from 'react'; | ||
/** | ||
* Checks if components was mounted the first time. | ||
* Since concurrent mode will be released in the future this needs to be verified | ||
* Currently (React 17) will always render the initial mount once | ||
* https://codesandbox.io/s/heuristic-brook-s4w0q?file=/src/App.jsx | ||
* https://codesandbox.io/s/holy-grass-8nieu?file=/src/App.jsx | ||
* | ||
* @example | ||
* const isFirstMount = useFirstMount(); | ||
*/ | ||
export declare function useFirstMount(): boolean; | ||
/** | ||
* Hook to generate a unique ID in the global scope (spanning across duplicate copies of the same library). | ||
@@ -358,0 +370,0 @@ * |
@@ -183,2 +183,5 @@ ## API Report File for "@fluentui/react-utilities" | ||
// @public | ||
export function useFirstMount(): boolean; | ||
// @public | ||
export function useId(prefix?: string, providedId?: string): string; | ||
@@ -185,0 +188,0 @@ |
@@ -5,2 +5,3 @@ export * from './useBoolean'; | ||
export * from './useEventCallback'; | ||
export * from './useFirstMount'; | ||
export { useId } from './useId'; | ||
@@ -7,0 +8,0 @@ export * from './useIsomorphicLayoutEffect'; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "tslib", "./useBoolean", "./useConst", "./useControllableValue", "./useEventCallback", "./useId", "./useIsomorphicLayoutEffect", "./useMergedRefs", "./useOnClickOutside"], function (require, exports, tslib_1, useBoolean_1, useConst_1, useControllableValue_1, useEventCallback_1, useId_1, useIsomorphicLayoutEffect_1, useMergedRefs_1, useOnClickOutside_1) { | ||
define(["require", "exports", "tslib", "./useBoolean", "./useConst", "./useControllableValue", "./useEventCallback", "./useFirstMount", "./useId", "./useIsomorphicLayoutEffect", "./useMergedRefs", "./useOnClickOutside"], function (require, exports, tslib_1, useBoolean_1, useConst_1, useControllableValue_1, useEventCallback_1, useFirstMount_1, useId_1, useIsomorphicLayoutEffect_1, useMergedRefs_1, useOnClickOutside_1) { | ||
"use strict"; | ||
@@ -8,2 +8,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
tslib_1.__exportStar(useEventCallback_1, exports); | ||
tslib_1.__exportStar(useFirstMount_1, exports); | ||
exports.useId = useId_1.useId; | ||
@@ -10,0 +11,0 @@ tslib_1.__exportStar(useIsomorphicLayoutEffect_1, exports); |
@@ -5,2 +5,3 @@ export * from './useBoolean'; | ||
export * from './useEventCallback'; | ||
export * from './useFirstMount'; | ||
export { useId } from './useId'; | ||
@@ -7,0 +8,0 @@ export * from './useIsomorphicLayoutEffect'; |
@@ -8,2 +8,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./useEventCallback"), exports); | ||
tslib_1.__exportStar(require("./useFirstMount"), exports); | ||
var useId_1 = require("./useId"); | ||
@@ -10,0 +11,0 @@ exports.useId = useId_1.useId; |
@@ -5,2 +5,3 @@ export * from './useBoolean'; | ||
export * from './useEventCallback'; | ||
export * from './useFirstMount'; | ||
export { useId } from './useId'; | ||
@@ -7,0 +8,0 @@ export * from './useIsomorphicLayoutEffect'; |
@@ -5,2 +5,3 @@ export * from './useBoolean'; | ||
export * from './useEventCallback'; | ||
export * from './useFirstMount'; | ||
export { useId } from './useId'; | ||
@@ -7,0 +8,0 @@ export * from './useIsomorphicLayoutEffect'; |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.0.0-alpha.9", | ||
"version": "9.0.0-alpha.10", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -26,3 +26,2 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/scripts": "^1.0.0", | ||
"@testing-library/react-hooks": "^5.0.3", | ||
"@types/enzyme": "3.10.3", | ||
@@ -29,0 +28,0 @@ "@types/enzyme-adapter-react-16": "1.0.3", |
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
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
380828
11
202
4911