@fluentui/react-portal 9.3.26 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,38 @@
1
1
  # Change Log - @fluentui/react-portal
2
2
 
3
- This log was last generated on Sat, 28 Oct 2023 23:32:06 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 09 Nov 2023 17:23:08 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.4.0)
8
+
9
+ Thu, 09 Nov 2023 17:23:08 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.3.27..@fluentui/react-portal_v9.4.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: export toMountNodeProps() ([PR #29772](https://github.com/microsoft/fluentui/pull/29772) by jaguilarvega@microsoft.com)
15
+ - Bump @fluentui/react-shared-contexts to v9.12.0 ([PR #29800](https://github.com/microsoft/fluentui/pull/29800) by beachball)
16
+ - Bump @fluentui/react-tabster to v9.14.4 ([PR #29800](https://github.com/microsoft/fluentui/pull/29800) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.15.2 ([PR #29800](https://github.com/microsoft/fluentui/pull/29800) by beachball)
18
+
19
+ ### Patches
20
+
21
+ - chore: use package.json#files setup instead of npmignore for all v9 libraries ([PR #29734](https://github.com/microsoft/fluentui/pull/29734) by martinhochel@microsoft.com)
22
+
23
+ ## [9.3.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.3.27)
24
+
25
+ Wed, 01 Nov 2023 12:55:59 GMT
26
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.3.26..@fluentui/react-portal_v9.3.27)
27
+
28
+ ### Patches
29
+
30
+ - Bump @fluentui/react-shared-contexts to v9.11.1 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
31
+ - Bump @fluentui/react-tabster to v9.14.3 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
32
+
7
33
  ## [9.3.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.3.26)
8
34
 
9
- Sat, 28 Oct 2023 23:32:06 GMT
35
+ Sat, 28 Oct 2023 23:35:59 GMT
10
36
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.3.25..@fluentui/react-portal_v9.3.26)
11
37
 
12
38
  ### Patches
package/dist/index.d.ts CHANGED
@@ -41,6 +41,11 @@ export declare const renderPortal_unstable: (state: PortalState) => React_2.Reac
41
41
 
42
42
  export { setVirtualParent }
43
43
 
44
+ export declare function toMountNodeProps(mountNode: PortalProps['mountNode']): {
45
+ element?: HTMLElement | null;
46
+ className?: string;
47
+ };
48
+
44
49
  /**
45
50
  * Create the state required to render Portal.
46
51
  *
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { elementContains, setVirtualParent } from '@fluentui/react-utilities';
2
- export { Portal, renderPortal_unstable, usePortal_unstable } from './components/Portal/index';
2
+ export { Portal, renderPortal_unstable, toMountNodeProps, usePortal_unstable } from './components/Portal/index';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { elementContains, setVirtualParent } from '@fluentui/react-utilities';\nexport { Portal, renderPortal_unstable, usePortal_unstable } from './components/Portal/index';\nexport type { PortalProps, PortalState } from './components/Portal/index';\n"],"names":["elementContains","setVirtualParent","Portal","renderPortal_unstable","usePortal_unstable"],"mappings":"AAAA,SAASA,eAAe,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC9E,SAASC,MAAM,EAAEC,qBAAqB,EAAEC,kBAAkB,QAAQ,4BAA4B"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { elementContains, setVirtualParent } from '@fluentui/react-utilities';\nexport { Portal, renderPortal_unstable, toMountNodeProps, usePortal_unstable } from './components/Portal/index';\nexport type { PortalProps, PortalState } from './components/Portal/index';\n"],"names":["elementContains","setVirtualParent","Portal","renderPortal_unstable","toMountNodeProps","usePortal_unstable"],"mappings":"AAAA,SAASA,eAAe,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC9E,SAASC,MAAM,EAAEC,qBAAqB,EAAEC,gBAAgB,EAAEC,kBAAkB,QAAQ,4BAA4B"}
@@ -21,6 +21,9 @@ _export(exports, {
21
21
  renderPortal_unstable: function() {
22
22
  return _index.renderPortal_unstable;
23
23
  },
24
+ toMountNodeProps: function() {
25
+ return _index.toMountNodeProps;
26
+ },
24
27
  usePortal_unstable: function() {
25
28
  return _index.usePortal_unstable;
26
29
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { elementContains, setVirtualParent } from '@fluentui/react-utilities';\nexport { Portal, renderPortal_unstable, usePortal_unstable } from './components/Portal/index';\n"],"names":["elementContains","setVirtualParent","Portal","renderPortal_unstable","usePortal_unstable"],"mappings":";;;;;;;;;;;IAASA,eAAe;eAAfA,+BAAe;;IAAEC,gBAAgB;eAAhBA,gCAAgB;;IACjCC,MAAM;eAANA,aAAM;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;;gCADR;uBACgB"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { elementContains, setVirtualParent } from '@fluentui/react-utilities';\nexport { Portal, renderPortal_unstable, toMountNodeProps, usePortal_unstable } from './components/Portal/index';\n"],"names":["elementContains","setVirtualParent","Portal","renderPortal_unstable","toMountNodeProps","usePortal_unstable"],"mappings":";;;;;;;;;;;IAASA,eAAe;eAAfA,+BAAe;;IAAEC,gBAAgB;eAAhBA,gCAAgB;;IACjCC,MAAM;eAANA,aAAM;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;;gCAD1B;uBACkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal",
3
- "version": "9.3.26",
3
+ "version": "9.4.0",
4
4
  "description": "A utility component that creates portals compatible with Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -32,9 +32,9 @@
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-shared-contexts": "^9.11.0",
36
- "@fluentui/react-tabster": "^9.14.2",
37
- "@fluentui/react-utilities": "^9.15.1",
35
+ "@fluentui/react-shared-contexts": "^9.12.0",
36
+ "@fluentui/react-tabster": "^9.14.4",
37
+ "@fluentui/react-utilities": "^9.15.2",
38
38
  "@griffel/react": "^1.5.14",
39
39
  "@swc/helpers": "^0.5.1",
40
40
  "use-disposable": "^1.0.1"
@@ -59,5 +59,11 @@
59
59
  "require": "./lib-commonjs/index.js"
60
60
  },
61
61
  "./package.json": "./package.json"
62
- }
62
+ },
63
+ "files": [
64
+ "*.md",
65
+ "dist/*.d.ts",
66
+ "lib",
67
+ "lib-commonjs"
68
+ ]
63
69
  }