@fluentui/react-portal-compat-context 9.0.6 → 9.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +67 -1
- package/CHANGELOG.md +12 -2
- package/lib/PortalCompatContext.js +4 -5
- package/lib/PortalCompatContext.js.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/types.js +1 -2
- package/lib/types.js.map +1 -1
- package/lib-amd/PortalCompatContext.js +10 -9
- package/lib-amd/PortalCompatContext.js.map +1 -1
- package/lib-amd/index.js +7 -6
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types.js +0 -3
- package/lib-amd/types.js.map +1 -1
- package/lib-commonjs/PortalCompatContext.js +9 -7
- package/lib-commonjs/PortalCompatContext.js.map +1 -1
- package/lib-commonjs/index.js +7 -6
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types.js +0 -3
- package/lib-commonjs/types.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,73 @@
|
|
2
2
|
"name": "@fluentui/react-portal-compat-context",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 05 Sep 2023 13:23:04 GMT",
|
6
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.7",
|
7
|
+
"version": "9.0.7",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
12
|
+
"package": "@fluentui/react-portal-compat-context",
|
13
|
+
"commit": "b93c2ac22355b6cb6f33dd509c6cd9c21f4fffc8",
|
14
|
+
"comment": "bumps @swc/helpers version to 0.5.1"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "bernardo.sunderhus@gmail.com",
|
18
|
+
"package": "@fluentui/react-portal-compat-context",
|
19
|
+
"commit": "eea6d93a62249ba4fba3347fb291c67ee1a3fb24",
|
20
|
+
"comment": "bumps react peer dependencies to v16.14.0"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"date": "Wed, 28 Jun 2023 11:12:30 GMT",
|
27
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.6",
|
28
|
+
"version": "9.0.6",
|
29
|
+
"comments": {
|
30
|
+
"none": [
|
31
|
+
{
|
32
|
+
"author": "martinhochel@microsoft.com",
|
33
|
+
"package": "@fluentui/react-portal-compat-context",
|
34
|
+
"commit": "fbe878e9c9785588197481f172c42c2c0a230292",
|
35
|
+
"comment": "fix: update .npmignore to unify v8 packages and exclude project.json"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"date": "Wed, 24 May 2023 20:45:31 GMT",
|
42
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.6",
|
43
|
+
"version": "9.0.6",
|
44
|
+
"comments": {
|
45
|
+
"none": [
|
46
|
+
{
|
47
|
+
"author": "olfedias@microsoft.com",
|
48
|
+
"package": "@fluentui/react-portal-compat-context",
|
49
|
+
"commit": "69e0617a93cb44ef42f3bd19284b7dc5fe27fed3",
|
50
|
+
"comment": "chore: update test-ssr script"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"date": "Thu, 18 May 2023 00:39:11 GMT",
|
57
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.6",
|
58
|
+
"version": "9.0.6",
|
59
|
+
"comments": {
|
60
|
+
"none": [
|
61
|
+
{
|
62
|
+
"author": "olfedias@microsoft.com",
|
63
|
+
"package": "@fluentui/react-portal-compat-context",
|
64
|
+
"commit": "06cd515eda59a3078bfe32f9cc7c1f281cd20208",
|
65
|
+
"comment": "chore: add test-ssr script to v9 packages"
|
66
|
+
}
|
67
|
+
]
|
68
|
+
}
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"date": "Fri, 12 May 2023 20:27:35 GMT",
|
6
72
|
"tag": "@fluentui/react-portal-compat-context_v9.0.6",
|
7
73
|
"version": "9.0.6",
|
8
74
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,22 @@
|
|
1
1
|
# Change Log - @fluentui/react-portal-compat-context
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 05 Sep 2023 13:23:04 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.7)
|
8
|
+
|
9
|
+
Tue, 05 Sep 2023 13:23:04 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.6..@fluentui/react-portal-compat-context_v9.0.7)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- bumps @swc/helpers version to 0.5.1 ([PR #28989](https://github.com/microsoft/fluentui/pull/28989) by bernardo.sunderhus@gmail.com)
|
15
|
+
- bumps react peer dependencies to v16.14.0 ([PR #28959](https://github.com/microsoft/fluentui/pull/28959) by bernardo.sunderhus@gmail.com)
|
16
|
+
|
7
17
|
## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.6)
|
8
18
|
|
9
|
-
Fri, 12 May 2023 20:
|
19
|
+
Fri, 12 May 2023 20:27:35 GMT
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.5..@fluentui/react-portal-compat-context_v9.0.6)
|
11
21
|
|
12
22
|
### Patches
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
const PortalCompatContext =
|
3
|
-
const portalCompatContextDefaultValue = ()
|
2
|
+
const PortalCompatContext = React.createContext(undefined);
|
3
|
+
const portalCompatContextDefaultValue = ()=>()=>undefined;
|
4
4
|
export const PortalCompatContextProvider = PortalCompatContext.Provider;
|
5
5
|
export function usePortalCompat() {
|
6
|
-
|
7
|
-
|
6
|
+
var _React_useContext;
|
7
|
+
return (_React_useContext = React.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
8
8
|
}
|
9
|
-
//# sourceMappingURL=PortalCompatContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["PortalCompatContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { RegisterPortalFn } from './types';\n\nconst PortalCompatContext = React.createContext<RegisterPortalFn | undefined>(\n undefined,\n) as React.Context<RegisterPortalFn>;\n\nconst portalCompatContextDefaultValue = () => () => undefined;\n\nexport const PortalCompatContextProvider = PortalCompatContext.Provider;\n\nexport function usePortalCompat() {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["React","PortalCompatContext","createContext","undefined","portalCompatContextDefaultValue","PortalCompatContextProvider","Provider","usePortalCompat","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,MAAMC,sBAAsBD,MAAME,aAAa,CAC7CC;AAGF,MAAMC,kCAAkC,IAAM,IAAMD;AAEpD,OAAO,MAAME,8BAA8BJ,oBAAoBK,QAAQ,CAAC;AAExE,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,kCAAjBD,+BAAAA,oBAAyCI;AAClD"}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":"AAAA,SAASA,2BAA2B,EAAEC,eAAe,QAAQ,wBAAwB"}
|
package/lib/types.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=types.js.map
|
1
|
+
export { };
|
package/lib/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["types.ts"],"sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"],"names":[],"mappings":"AAAA,WAA+D"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
define([
|
2
2
|
"require",
|
3
3
|
"exports",
|
4
|
-
"@swc/helpers/
|
4
|
+
"@swc/helpers/_/_interop_require_wildcard",
|
5
5
|
"react"
|
6
|
-
], function(require, exports,
|
6
|
+
], function(require, exports, _interop_require_wildcard, _react) {
|
7
7
|
"use strict";
|
8
8
|
Object.defineProperty(exports, "__esModule", {
|
9
9
|
value: true
|
@@ -15,18 +15,19 @@ define([
|
|
15
15
|
});
|
16
16
|
}
|
17
17
|
_export(exports, {
|
18
|
-
PortalCompatContextProvider: ()
|
19
|
-
|
18
|
+
PortalCompatContextProvider: function() {
|
19
|
+
return PortalCompatContextProvider;
|
20
|
+
},
|
21
|
+
usePortalCompat: function() {
|
22
|
+
return usePortalCompat;
|
23
|
+
}
|
20
24
|
});
|
21
|
-
|
22
|
-
_react = /*#__PURE__*/ _interopRequireWildcard(_react);
|
25
|
+
_react = /*#__PURE__*/ _interop_require_wildcard._(_react);
|
23
26
|
const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
|
24
27
|
const portalCompatContextDefaultValue = ()=>()=>undefined;
|
25
28
|
const PortalCompatContextProvider = PortalCompatContext.Provider;
|
26
29
|
function usePortalCompat() {
|
27
30
|
var _React_useContext;
|
28
31
|
return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
29
|
-
}
|
32
|
+
}
|
30
33
|
});
|
31
|
-
|
32
|
-
//# sourceMappingURL=PortalCompatContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = React.createContext(undefined);\nconst portalCompatContextDefaultValue = ()=>()=>undefined;\nexport const PortalCompatContextProvider = PortalCompatContext.Provider;\nexport function usePortalCompat() {\n var _React_useContext;\n return (_React_useContext = React.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;IAAuB;;;;;;;;;;;;;QAGVA,2BAA2B;mBAA3BA;;QACGC,eAAe;mBAAfA;;;;IAHhB,MAAMC,oCAAsBC,OAAMC,aAAa,CAACC;IAChD,MAAMC,kCAAkC,IAAI,IAAID;IACzC,MAAML,8BAA8BE,oBAAoBK,QAAQ;IAChE,SAASN;QACZ,IAAIO;QACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;IACtI"}
|
package/lib-amd/index.js
CHANGED
@@ -2,7 +2,7 @@ define([
|
|
2
2
|
"require",
|
3
3
|
"exports",
|
4
4
|
"./PortalCompatContext"
|
5
|
-
], function(require, exports,
|
5
|
+
], function(require, exports, _PortalCompatContext) {
|
6
6
|
"use strict";
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
8
8
|
value: true
|
@@ -14,10 +14,11 @@ define([
|
|
14
14
|
});
|
15
15
|
}
|
16
16
|
_export(exports, {
|
17
|
-
PortalCompatContextProvider: ()
|
18
|
-
|
17
|
+
PortalCompatContextProvider: function() {
|
18
|
+
return _PortalCompatContext.PortalCompatContextProvider;
|
19
|
+
},
|
20
|
+
usePortalCompat: function() {
|
21
|
+
return _PortalCompatContext.usePortalCompat;
|
22
|
+
}
|
19
23
|
});
|
20
24
|
});
|
21
|
-
//# sourceMappingURL=index.js.map
|
22
|
-
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/lib-amd/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;IAA6D;;;;;;;;;;;;;QAApDA,2BAA2B;mBAA3BA,gDAA2B;;QAAEC,eAAe;mBAAfA,oCAAe"}
|
package/lib-amd/types.js
CHANGED
package/lib-amd/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
@@ -9,17 +9,19 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
PortalCompatContextProvider: ()
|
13
|
-
|
12
|
+
PortalCompatContextProvider: function() {
|
13
|
+
return PortalCompatContextProvider;
|
14
|
+
},
|
15
|
+
usePortalCompat: function() {
|
16
|
+
return usePortalCompat;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
|
18
22
|
const portalCompatContextDefaultValue = ()=>()=>undefined;
|
19
23
|
const PortalCompatContextProvider = PortalCompatContext.Provider;
|
20
24
|
function usePortalCompat() {
|
21
25
|
var _React_useContext;
|
22
26
|
return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
23
|
-
}
|
24
|
-
|
25
|
-
//# sourceMappingURL=PortalCompatContext.js.map
|
27
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = React.createContext(undefined);\nconst portalCompatContextDefaultValue = ()=>()=>undefined;\nexport const PortalCompatContextProvider = PortalCompatContext.Provider;\nexport function usePortalCompat() {\n var _React_useContext;\n return (_React_useContext = React.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAGaA,2BAA2B;eAA3BA;;IACGC,eAAe;eAAfA;;;;iEAJO;AACvB,MAAMC,oCAAsBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,kCAAkC,IAAI,IAAID;AACzC,MAAML,8BAA8BE,oBAAoBK,QAAQ;AAChE,SAASN;IACZ,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;AACtI"}
|
package/lib-commonjs/index.js
CHANGED
@@ -9,10 +9,11 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
PortalCompatContextProvider: ()
|
13
|
-
|
12
|
+
PortalCompatContextProvider: function() {
|
13
|
+
return _PortalCompatContext.PortalCompatContextProvider;
|
14
|
+
},
|
15
|
+
usePortalCompat: function() {
|
16
|
+
return _PortalCompatContext.usePortalCompat;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
//# sourceMappingURL=index.js.map
|
17
|
-
|
18
|
-
//# sourceMappingURL=index.js.map
|
19
|
+
const _PortalCompatContext = require("./PortalCompatContext");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;;;;;;;;;IAASA,2BAA2B;eAA3BA,gDAA2B;;IAAEC,eAAe;eAAfA,oCAAe;;;qCAAQ"}
|
package/lib-commonjs/types.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-portal-compat-context",
|
3
|
-
"version": "9.0.
|
3
|
+
"version": "9.0.7",
|
4
4
|
"description": "A package that holds React context for compatibility of React Contexts",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -19,7 +19,8 @@
|
|
19
19
|
"lint": "just-scripts lint",
|
20
20
|
"test": "jest --passWithNoTests",
|
21
21
|
"type-check": "tsc -b tsconfig.json",
|
22
|
-
"generate-api": "just-scripts generate-api"
|
22
|
+
"generate-api": "just-scripts generate-api",
|
23
|
+
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
|
23
24
|
},
|
24
25
|
"devDependencies": {
|
25
26
|
"@fluentui/eslint-plugin": "*",
|
@@ -27,11 +28,11 @@
|
|
27
28
|
"@fluentui/scripts-tasks": "*"
|
28
29
|
},
|
29
30
|
"dependencies": {
|
30
|
-
"@swc/helpers": "^0.
|
31
|
+
"@swc/helpers": "^0.5.1"
|
31
32
|
},
|
32
33
|
"peerDependencies": {
|
33
|
-
"@types/react": ">=16.
|
34
|
-
"react": ">=16.
|
34
|
+
"@types/react": ">=16.14.0 <19.0.0",
|
35
|
+
"react": ">=16.14.0 <19.0.0"
|
35
36
|
},
|
36
37
|
"beachball": {
|
37
38
|
"disallowedChangeTypes": [
|