@fluentui/react-positioning 9.18.1 → 9.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/README.md +11 -9
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Change Log - @fluentui/react-positioning
2
2
 
3
- This log was last generated on Fri, 13 Jun 2025 12:30:20 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 18 Jun 2025 17:29:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.18.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.18.2)
8
+
9
+ Wed, 18 Jun 2025 17:29:27 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.18.1..@fluentui/react-positioning_v9.18.2)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-shared-contexts to v9.24.0 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
15
+ - Bump @fluentui/react-utilities to v9.21.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
16
+
7
17
  ## [9.18.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.18.1)
8
18
 
9
- Fri, 13 Jun 2025 12:30:20 GMT
19
+ Fri, 13 Jun 2025 12:32:51 GMT
10
20
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.18.0..@fluentui/react-positioning_v9.18.1)
11
21
 
12
22
  ### Patches
package/README.md CHANGED
@@ -1,23 +1,25 @@
1
1
  # @fluentui/react-positioning
2
2
 
3
- A react hook wrapper around [Popper.js](https://popper.js.org/) for Fluent UI.
3
+ A React utilities built on top of [Floating UI](https://floating-ui.com/) for positioning elements in the DOM.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```tsx
8
- import React from 'react';
9
- import { usePopper } from '@fluentui/react-positioning';
8
+ import * as React from 'react';
9
+ import { usePositiniong } from '@fluentui/react-positioning';
10
10
 
11
- function PopupExample: React.FC = ({ children }) => {
12
- const {targetRef, containerRef} = usePopper();
11
+ const PopupExample: React.FC = ({ children }) => {
12
+ const { targetRef, containerRef } = usePositiniong();
13
13
  const [open, setOpen] = React.useState(false);
14
14
 
15
15
  const onClick = () => setOpen(s => !s);
16
16
  return (
17
17
  <>
18
- <button ref={targetRef} onClick={onClick}> Toggle popup </button>
19
- { open && <div ref={containerRef}>{children}</div> }
18
+ <button ref={targetRef} onClick={onClick}>
19
+ Toggle popup
20
+ </button>
21
+ {open && <div ref={containerRef}>{children}</div>}
20
22
  </>
21
- )
22
- }
23
+ );
24
+ };
23
25
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-positioning",
3
- "version": "9.18.1",
3
+ "version": "9.18.2",
4
4
  "description": "A react wrapper around Popper.js for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@floating-ui/dom": "^1.6.12",
21
21
  "@floating-ui/devtools": "0.2.1",
22
- "@fluentui/react-shared-contexts": "^9.23.1",
22
+ "@fluentui/react-shared-contexts": "^9.24.0",
23
23
  "@fluentui/react-theme": "^9.1.24",
24
- "@fluentui/react-utilities": "^9.21.0",
24
+ "@fluentui/react-utilities": "^9.21.1",
25
25
  "@griffel/react": "^1.5.22",
26
26
  "@swc/helpers": "^0.5.1",
27
27
  "use-sync-external-store": "^1.2.0"