@fluentui/react-positioning
Advanced tools
Comparing version 9.0.0-alpha.28 to 9.0.0-alpha.29
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Tue, 15 Jun 2021 07:36:10 GMT", | ||
"date": "Wed, 16 Jun 2021 07:32:19 GMT", | ||
"tag": "@fluentui/react-positioning_v9.0.0-alpha.29", | ||
"version": "9.0.0-alpha.29", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "feat(usePopperMouseTarget): Reusable hook to manage the state of a virtual popper element", | ||
"author": "lingfan.gao@microsoft.com", | ||
"commit": "823b75aaf95a5324a8ef0e504f65706c5769fb85", | ||
"package": "@fluentui/react-positioning" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Tue, 15 Jun 2021 07:40:20 GMT", | ||
"tag": "@fluentui/react-positioning_v9.0.0-alpha.28", | ||
@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.28", |
# Change Log - @fluentui/react-positioning | ||
This log was last generated on Tue, 15 Jun 2021 07:36:10 GMT and should not be manually modified. | ||
This log was last generated on Wed, 16 Jun 2021 07:32:19 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.0.0-alpha.29) | ||
Wed, 16 Jun 2021 07:32:19 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.0.0-alpha.28..@fluentui/react-positioning_v9.0.0-alpha.29) | ||
### Changes | ||
- feat(usePopperMouseTarget): Reusable hook to manage the state of a virtual popper element ([PR #18565](https://github.com/microsoft/fluentui/pull/18565) by lingfan.gao@microsoft.com) | ||
## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.0.0-alpha.28) | ||
Tue, 15 Jun 2021 07:36:10 GMT | ||
Tue, 15 Jun 2021 07:40:20 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.0.0-alpha.27..@fluentui/react-positioning_v9.0.0-alpha.28) | ||
@@ -11,0 +20,0 @@ |
@@ -123,2 +123,12 @@ import * as PopperJs from '@popperjs/core'; | ||
/** | ||
* A state hook that manages a popper virtual element from mouseevents. | ||
* Useful for scenarios where a component needs to be positioned by mouse click (e.g. contextmenu) | ||
* React synthetic events are not persisted by this hook | ||
* | ||
* @param initialState - initializes a user provided state similare to useState | ||
* @returns state and dispatcher for a Popper virtual element that uses native/synthetic mouse events | ||
*/ | ||
export declare const usePopperMouseTarget: (initialState?: PopperJs.VirtualElement | (() => PopperJs.VirtualElement) | undefined) => readonly [PopperJs.VirtualElement | undefined, (event: React_2.MouseEvent | MouseEvent | undefined | null) => void]; | ||
export { } |
@@ -78,5 +78,8 @@ ## API Report File for "@fluentui/react-positioning" | ||
// @public | ||
export const usePopperMouseTarget: (initialState?: PopperJs.VirtualElement | (() => PopperJs.VirtualElement) | undefined) => readonly [PopperJs.VirtualElement | undefined, (event: React_2.MouseEvent | MouseEvent | undefined | null) => void]; | ||
// (No @packageDocumentation comment for this package) | ||
``` |
export * from './usePopper'; | ||
export * from './createVirtualElementFromClick'; | ||
export * from './usePopperMouseTarget'; | ||
export * from './types'; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "tslib", "./usePopper", "./createVirtualElementFromClick", "./types"], function (require, exports, tslib_1, usePopper_1, createVirtualElementFromClick_1, types_1) { | ||
define(["require", "exports", "tslib", "./usePopper", "./createVirtualElementFromClick", "./usePopperMouseTarget", "./types"], function (require, exports, tslib_1, usePopper_1, createVirtualElementFromClick_1, usePopperMouseTarget_1, types_1) { | ||
"use strict"; | ||
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
tslib_1.__exportStar(createVirtualElementFromClick_1, exports); | ||
tslib_1.__exportStar(usePopperMouseTarget_1, exports); | ||
tslib_1.__exportStar(types_1, exports); | ||
}); | ||
//# sourceMappingURL=index.js.map |
export * from './usePopper'; | ||
export * from './createVirtualElementFromClick'; | ||
export * from './usePopperMouseTarget'; | ||
export * from './types'; |
@@ -6,3 +6,4 @@ "use strict"; | ||
tslib_1.__exportStar(require("./createVirtualElementFromClick"), exports); | ||
tslib_1.__exportStar(require("./usePopperMouseTarget"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './usePopper'; | ||
export * from './createVirtualElementFromClick'; | ||
export * from './usePopperMouseTarget'; | ||
export * from './types'; |
export * from './usePopper'; | ||
export * from './createVirtualElementFromClick'; | ||
export * from './usePopperMouseTarget'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@fluentui/react-positioning", | ||
"version": "9.0.0-alpha.28", | ||
"version": "9.0.0-alpha.29", | ||
"description": "A react wrapper around Popper.js for Fluent UI", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
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
349642
102647
118
3541
4
22
289