@fluentui/react-portal 0.0.0-nightly-20220513-0417.1 → 0.0.0-nightly-20220516-0419.1

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.
package/CHANGELOG.json CHANGED
@@ -2,22 +2,34 @@
2
2
  "name": "@fluentui/react-portal",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 13 May 2022 04:27:08 GMT",
6
- "tag": "@fluentui/react-portal_v0.0.0-nightly-20220513-0417.1",
7
- "version": "0.0.0-nightly-20220513-0417.1",
5
+ "date": "Mon, 16 May 2022 04:32:24 GMT",
6
+ "tag": "@fluentui/react-portal_v0.0.0-nightly-20220516-0419.1",
7
+ "version": "0.0.0-nightly-20220516-0419.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
+ {
11
+ "author": "Humberto.Morimoto@microsoft.com",
12
+ "package": "@fluentui/react-portal",
13
+ "commit": "d98a253a7768cb781f106153804c8683670bbf8a",
14
+ "comment": "Removing PortalCommons type."
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-portal",
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220516-0419.1",
20
+ "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
21
+ },
10
22
  {
11
23
  "author": "beachball",
12
24
  "package": "@fluentui/react-portal",
13
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220513-0417.1",
14
- "commit": "d214cb1888cee2c326ebf2b379d639002ec5798e"
25
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220516-0419.1",
26
+ "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
15
27
  },
16
28
  {
17
29
  "author": "beachball",
18
30
  "package": "@fluentui/react-portal",
19
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220513-0417.1",
20
- "commit": "d214cb1888cee2c326ebf2b379d639002ec5798e"
31
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220516-0419.1",
32
+ "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
21
33
  }
22
34
  ]
23
35
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,20 @@
1
1
  # Change Log - @fluentui/react-portal
2
2
 
3
- This log was last generated on Fri, 13 May 2022 04:27:08 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 16 May 2022 04:32:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20220513-0417.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v0.0.0-nightly-20220513-0417.1)
7
+ ## [0.0.0-nightly-20220516-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v0.0.0-nightly-20220516-0419.1)
8
8
 
9
- Fri, 13 May 2022 04:27:08 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-rc.9..@fluentui/react-portal_v0.0.0-nightly-20220513-0417.1)
9
+ Mon, 16 May 2022 04:32:24 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-rc.9..@fluentui/react-portal_v0.0.0-nightly-20220516-0419.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220513-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/d214cb1888cee2c326ebf2b379d639002ec5798e) by beachball)
15
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20220513-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/d214cb1888cee2c326ebf2b379d639002ec5798e) by beachball)
14
+ - Removing PortalCommons type. ([PR #22969](https://github.com/microsoft/fluentui/pull/22969) by Humberto.Morimoto@microsoft.com)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
16
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
17
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
16
18
 
17
19
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.0.0-rc.9)
18
20
 
package/dist/index.d.ts CHANGED
@@ -14,21 +14,20 @@ export declare function elementContains(parent: HTMLElement | null, child: HTMLE
14
14
  */
15
15
  export declare const Portal: React_2.FC<PortalProps>;
16
16
 
17
- declare type PortalCommons = {
17
+ export declare type PortalProps = {
18
18
  /**
19
19
  * React children
20
20
  */
21
- children: React_2.ReactNode;
21
+ children?: React_2.ReactNode;
22
22
  /**
23
23
  * Where the portal children are mounted on DOM
24
- * @defaultValue a new element on document.body without any styling
24
+ *
25
+ * @default a new element on document.body without any styling
25
26
  */
26
- mountNode: HTMLElement | null;
27
+ mountNode?: HTMLElement | null;
27
28
  };
28
29
 
29
- export declare type PortalProps = Partial<PortalCommons>;
30
-
31
- export declare type PortalState = PortalCommons & {
30
+ export declare type PortalState = Pick<PortalProps, 'children'> & Required<Pick<PortalProps, 'mountNode'>> & {
32
31
  /** Indicates if a Portal should be rendered. */
33
32
  shouldRender: boolean;
34
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.types.js","sourceRoot":"../src/","sources":["components/Portal/Portal.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\n\ntype PortalCommons = {\n /**\n * React children\n */\n children: React.ReactNode;\n /**\n * Where the portal children are mounted on DOM\n * @defaultValue a new element on document.body without any styling\n */\n mountNode: HTMLElement | null;\n};\n\nexport type PortalProps = Partial<PortalCommons>;\n\nexport type PortalState = PortalCommons & {\n /** Indicates if a Portal should be rendered. */\n shouldRender: boolean;\n\n /**\n * Ref to the root span element as virtual parent\n */\n virtualParentRootRef: React.MutableRefObject<HTMLSpanElement | null>;\n};\n"]}
1
+ {"version":3,"file":"Portal.types.js","sourceRoot":"../src/","sources":["components/Portal/Portal.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\n\nexport type PortalProps = {\n /**\n * React children\n */\n children?: React.ReactNode;\n\n /**\n * Where the portal children are mounted on DOM\n *\n * @default a new element on document.body without any styling\n */\n mountNode?: HTMLElement | null;\n};\n\nexport type PortalState = Pick<PortalProps, 'children'> &\n Required<Pick<PortalProps, 'mountNode'>> & {\n /** Indicates if a Portal should be rendered. */\n shouldRender: boolean;\n\n /**\n * Ref to the root span element as virtual parent\n */\n virtualParentRootRef: React.MutableRefObject<HTMLSpanElement | null>;\n };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal",
3
- "version": "0.0.0-nightly-20220513-0417.1",
3
+ "version": "0.0.0-nightly-20220516-0419.1",
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",
@@ -31,9 +31,9 @@
31
31
  "@fluentui/scripts": "^1.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20220513-0417.1",
35
- "@fluentui/react-tabster": "0.0.0-nightly-20220513-0417.1",
36
- "@fluentui/react-utilities": "0.0.0-nightly-20220513-0417.0",
34
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20220516-0419.1",
35
+ "@fluentui/react-tabster": "0.0.0-nightly-20220516-0419.1",
36
+ "@fluentui/react-utilities": "0.0.0-nightly-20220516-0419.1",
37
37
  "tslib": "^2.1.0"
38
38
  },
39
39
  "peerDependencies": {