@fluentui/react-portal 0.0.0-nightly-20220513-0417.1 → 0.0.0-nightly-20220518-0420.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 +19 -7
- package/CHANGELOG.md +8 -6
- package/dist/index.d.ts +6 -7
- package/lib/components/Portal/Portal.types.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
|
@@ -2,22 +2,34 @@
|
|
|
2
2
|
"name": "@fluentui/react-portal",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-portal_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Wed, 18 May 2022 04:34:10 GMT",
|
|
6
|
+
"tag": "@fluentui/react-portal_v0.0.0-nightly-20220518-0420.1",
|
|
7
|
+
"version": "0.0.0-nightly-20220518-0420.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-20220518-0420.1",
|
|
20
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
|
21
|
+
},
|
|
10
22
|
{
|
|
11
23
|
"author": "beachball",
|
|
12
24
|
"package": "@fluentui/react-portal",
|
|
13
|
-
"comment": "Bump @fluentui/react-
|
|
14
|
-
"commit": "
|
|
25
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220518-0420.1",
|
|
26
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
|
15
27
|
},
|
|
16
28
|
{
|
|
17
29
|
"author": "beachball",
|
|
18
30
|
"package": "@fluentui/react-portal",
|
|
19
|
-
"comment": "Bump @fluentui/react-
|
|
20
|
-
"commit": "
|
|
31
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220518-0420.1",
|
|
32
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
|
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
|
|
3
|
+
This log was last generated on Wed, 18 May 2022 04:34:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20220518-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v0.0.0-nightly-20220518-0420.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-rc.9..@fluentui/react-portal_v0.0.0-nightly-
|
|
9
|
+
Wed, 18 May 2022 04:34:10 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-20220518-0420.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
- Bump @fluentui/react-
|
|
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-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
|
16
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
|
17
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) 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
|
|
17
|
+
export declare type PortalProps = {
|
|
18
18
|
/**
|
|
19
19
|
* React children
|
|
20
20
|
*/
|
|
21
|
-
children
|
|
21
|
+
children?: React_2.ReactNode;
|
|
22
22
|
/**
|
|
23
23
|
* Where the portal children are mounted on DOM
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* @default a new element on document.body without any styling
|
|
25
26
|
*/
|
|
26
|
-
mountNode
|
|
27
|
+
mountNode?: HTMLElement | null;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
export declare type
|
|
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\
|
|
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-
|
|
3
|
+
"version": "0.0.0-nightly-20220518-0420.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-
|
|
35
|
-
"@fluentui/react-tabster": "0.0.0-nightly-
|
|
36
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
|
34
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20220518-0420.1",
|
|
35
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20220518-0420.1",
|
|
36
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20220518-0420.1",
|
|
37
37
|
"tslib": "^2.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|