@fluentui/react-portal-compat-context 9.0.3 → 9.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.swcrc +30 -0
- package/CHANGELOG.json +109 -1
- package/CHANGELOG.md +22 -2
- package/lib/PortalCompatContext.js +5 -12
- package/lib/PortalCompatContext.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types.js.map +1 -1
- package/lib-amd/PortalCompatContext.js +28 -10
- package/lib-amd/PortalCompatContext.js.map +1 -1
- package/lib-amd/index.js +20 -5
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types.js +9 -2
- package/lib-amd/types.js.map +1 -1
- package/lib-commonjs/PortalCompatContext.js +19 -21
- package/lib-commonjs/PortalCompatContext.js.map +1 -1
- package/lib-commonjs/index.js +13 -17
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types.js +3 -2
- package/lib-commonjs/types.js.map +1 -1
- package/package.json +17 -8
- package/Spec.md +0 -63
package/.swcrc
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://json.schemastore.org/swcrc",
|
3
|
+
"exclude": [
|
4
|
+
"/testing",
|
5
|
+
"/**/*.cy.ts",
|
6
|
+
"/**/*.cy.tsx",
|
7
|
+
"/**/*.spec.ts",
|
8
|
+
"/**/*.spec.tsx",
|
9
|
+
"/**/*.test.ts",
|
10
|
+
"/**/*.test.tsx"
|
11
|
+
],
|
12
|
+
"jsc": {
|
13
|
+
"parser": {
|
14
|
+
"syntax": "typescript",
|
15
|
+
"tsx": true,
|
16
|
+
"decorators": false,
|
17
|
+
"dynamicImport": false
|
18
|
+
},
|
19
|
+
"externalHelpers": true,
|
20
|
+
"transform": {
|
21
|
+
"react": {
|
22
|
+
"runtime": "classic",
|
23
|
+
"useSpread": true
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"target": "es2019"
|
27
|
+
},
|
28
|
+
"minify": false,
|
29
|
+
"sourceMaps": true
|
30
|
+
}
|
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,115 @@
|
|
2
2
|
"name": "@fluentui/react-portal-compat-context",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 21 Mar 2023 21:18:57 GMT",
|
6
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.5",
|
7
|
+
"version": "9.0.5",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "tristan.watanabe@gmail.com",
|
12
|
+
"package": "@fluentui/react-portal-compat-context",
|
13
|
+
"commit": "ead1c6d4c2ac3f3596b62b8cbc07b0a03041f11f",
|
14
|
+
"comment": "fix: add node field to package.json exports map."
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "tristan.watanabe@gmail.com",
|
18
|
+
"package": "@fluentui/react-portal-compat-context",
|
19
|
+
"commit": "2fac1a139149bd13b76b1306207bc988dca9c72c",
|
20
|
+
"comment": "chore: migrate to swc transpilation approach."
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"date": "Wed, 08 Mar 2023 17:42:37 GMT",
|
27
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.4",
|
28
|
+
"version": "9.0.4",
|
29
|
+
"comments": {
|
30
|
+
"none": [
|
31
|
+
{
|
32
|
+
"author": "martinhochel@microsoft.com",
|
33
|
+
"package": "@fluentui/react-portal-compat-context",
|
34
|
+
"commit": "db203b7c6eae1174b0bb910bf49eaee4dde14786",
|
35
|
+
"comment": "chore: re-enable AMD import checks for only mixed and v8 packages"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"date": "Mon, 16 Jan 2023 08:39:06 GMT",
|
42
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.4",
|
43
|
+
"version": "9.0.4",
|
44
|
+
"comments": {
|
45
|
+
"none": [
|
46
|
+
{
|
47
|
+
"author": "martinhochel@microsoft.com",
|
48
|
+
"package": "@fluentui/react-portal-compat-context",
|
49
|
+
"commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
|
50
|
+
"comment": "chore: migrate to packaged scripts"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"date": "Wed, 04 Jan 2023 01:40:19 GMT",
|
57
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.4",
|
58
|
+
"version": "9.0.4",
|
59
|
+
"comments": {
|
60
|
+
"none": [
|
61
|
+
{
|
62
|
+
"author": "martinhochel@microsoft.com",
|
63
|
+
"package": "@fluentui/react-portal-compat-context",
|
64
|
+
"commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
|
65
|
+
"comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"author": "martinhochel@microsoft.com",
|
69
|
+
"package": "@fluentui/react-portal-compat-context",
|
70
|
+
"commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
|
71
|
+
"comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
|
72
|
+
}
|
73
|
+
]
|
74
|
+
}
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"date": "Thu, 17 Nov 2022 23:05:44 GMT",
|
78
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.4",
|
79
|
+
"version": "9.0.4",
|
80
|
+
"comments": {
|
81
|
+
"none": [
|
82
|
+
{
|
83
|
+
"author": "martinhochel@microsoft.com",
|
84
|
+
"package": "@fluentui/react-portal-compat-context",
|
85
|
+
"commit": "ea768501802d65d63ddc63fff3816fb6b5008ae4",
|
86
|
+
"comment": "chore: update package scaffold"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
}
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"date": "Fri, 11 Nov 2022 14:57:32 GMT",
|
93
|
+
"tag": "@fluentui/react-portal-compat-context_v9.0.4",
|
94
|
+
"version": "9.0.4",
|
95
|
+
"comments": {
|
96
|
+
"patch": [
|
97
|
+
{
|
98
|
+
"author": "tristan.watanabe@gmail.com",
|
99
|
+
"package": "@fluentui/react-portal-compat-context",
|
100
|
+
"commit": "792bd72b19e360afe9ac8e9da298dc3d85776c74",
|
101
|
+
"comment": "chore: Migrate to new package structure."
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"author": "martinhochel@microsoft.com",
|
105
|
+
"package": "@fluentui/react-portal-compat-context",
|
106
|
+
"commit": "b3907043bd8d7b650c55e8e7c3119b14f2606c38",
|
107
|
+
"comment": "fix: create valid export maps"
|
108
|
+
}
|
109
|
+
]
|
110
|
+
}
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"date": "Thu, 20 Oct 2022 08:39:41 GMT",
|
6
114
|
"tag": "@fluentui/react-portal-compat-context_v9.0.3",
|
7
115
|
"version": "9.0.3",
|
8
116
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,32 @@
|
|
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, 21 Mar 2023 21:18:57 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.5)
|
8
|
+
|
9
|
+
Tue, 21 Mar 2023 21:18:57 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.4..@fluentui/react-portal-compat-context_v9.0.5)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
|
15
|
+
- chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
|
16
|
+
|
17
|
+
## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.4)
|
18
|
+
|
19
|
+
Fri, 11 Nov 2022 14:57:32 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.3..@fluentui/react-portal-compat-context_v9.0.4)
|
21
|
+
|
22
|
+
### Patches
|
23
|
+
|
24
|
+
- chore: Migrate to new package structure. ([PR #25481](https://github.com/microsoft/fluentui/pull/25481) by tristan.watanabe@gmail.com)
|
25
|
+
- fix: create valid export maps ([PR #25558](https://github.com/microsoft/fluentui/pull/25558) by martinhochel@microsoft.com)
|
26
|
+
|
7
27
|
## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.3)
|
8
28
|
|
9
|
-
Thu, 20 Oct 2022 08:
|
29
|
+
Thu, 20 Oct 2022 08:39:41 GMT
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.2..@fluentui/react-portal-compat-context_v9.0.3)
|
11
31
|
|
12
32
|
### Patches
|
@@ -1,16 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return function () {
|
6
|
-
return undefined;
|
7
|
-
};
|
8
|
-
};
|
9
|
-
|
10
|
-
export var PortalCompatContextProvider = PortalCompatContext.Provider;
|
2
|
+
const PortalCompatContext = /*#__PURE__*/React.createContext(undefined);
|
3
|
+
const portalCompatContextDefaultValue = () => () => undefined;
|
4
|
+
export const PortalCompatContextProvider = PortalCompatContext.Provider;
|
11
5
|
export function usePortalCompat() {
|
12
|
-
var
|
13
|
-
|
14
|
-
return (_a = React.useContext(PortalCompatContext)) !== null && _a !== void 0 ? _a : portalCompatContextDefaultValue;
|
6
|
+
var _React_useContext;
|
7
|
+
return (_React_useContext = React.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
15
8
|
}
|
16
9
|
//# sourceMappingURL=PortalCompatContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":["React","PortalCompatContext","createContext","undefined","portalCompatContextDefaultValue","PortalCompatContextProvider","Provider","usePortalCompat","_React_useContext","useContext"],"sources":["../src/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"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,MAAMC,mBAAA,gBAAsBD,KAAA,CAAME,aAAa,CAC7CC,SAAA;AAGF,MAAMC,+BAAA,GAAkCA,CAAA,KAAM,MAAMD,SAAA;AAEpD,OAAO,MAAME,2BAAA,GAA8BJ,mBAAA,CAAoBK,QAAQ;AAEvE,OAAO,SAASC,gBAAA,EAAkB;MACzBC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAAR,KAAA,CAAMS,UAAU,CAACR,mBAAA,eAAjBO,iBAAA,cAAAA,iBAAA,GAAyCJ,+BAA+B;AACjF"}
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":["PortalCompatContextProvider","usePortalCompat"],"sources":["../src/index.ts"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"],"mappings":"AAAA,SAASA,2BAA2B,EAAEC,eAAe,QAAQ"}
|
package/lib/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":[],"sources":["../src/types.ts"],"sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"],"mappings":"AAAA"}
|
@@ -1,14 +1,32 @@
|
|
1
|
-
define([
|
1
|
+
define([
|
2
|
+
"require",
|
3
|
+
"exports",
|
4
|
+
"@swc/helpers/src/_interop_require_wildcard.mjs",
|
5
|
+
"react"
|
6
|
+
], function(require, exports, _interopRequireWildcard, _react) {
|
2
7
|
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
9
|
+
value: true
|
10
|
+
});
|
11
|
+
function _export(target, all) {
|
12
|
+
for(var name in all)Object.defineProperty(target, name, {
|
13
|
+
enumerable: true,
|
14
|
+
get: all[name]
|
15
|
+
});
|
11
16
|
}
|
12
|
-
exports
|
17
|
+
_export(exports, {
|
18
|
+
PortalCompatContextProvider: ()=>PortalCompatContextProvider,
|
19
|
+
usePortalCompat: ()=>usePortalCompat
|
20
|
+
});
|
21
|
+
_interopRequireWildcard = _interopRequireWildcard.default;
|
22
|
+
_react = /*#__PURE__*/ _interopRequireWildcard(_react);
|
23
|
+
const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
|
24
|
+
const portalCompatContextDefaultValue = ()=>()=>undefined;
|
25
|
+
const PortalCompatContextProvider = PortalCompatContext.Provider;
|
26
|
+
function usePortalCompat() {
|
27
|
+
var _React_useContext;
|
28
|
+
return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
29
|
+
} //# sourceMappingURL=PortalCompatContext.js.map
|
13
30
|
});
|
31
|
+
|
14
32
|
//# sourceMappingURL=PortalCompatContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../lib/PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = /*#__PURE__*/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//# sourceMappingURL=PortalCompatContext.js.map"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;IAAuB;;;;;;;;;;;;;QAGVA,2BAA2B,MAA3BA;QACGC,eAAe,MAAfA;;;;IAHhB,MAAMC,sBAAsB,WAAW,GAAEC,OAAMC,aAAa,CAACC;IAC7D,MAAMC,kCAAkC,IAAM,IAAMD;IAC7C,MAAML,8BAA8BE,oBAAoBK,QAAQ;IAChE,SAASN,kBAAkB;QAChC,IAAIO;QACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,IAAI,IAAIM,sBAAsB,KAAK,IAAIA,oBAAoBF,+BAA+B;IACnK,EACA,+CAA+C"}
|
package/lib-amd/index.js
CHANGED
@@ -1,8 +1,23 @@
|
|
1
|
-
define([
|
1
|
+
define([
|
2
|
+
"require",
|
3
|
+
"exports",
|
4
|
+
"./PortalCompatContext"
|
5
|
+
], function(require, exports, _portalCompatContext) {
|
2
6
|
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
8
|
+
value: true
|
9
|
+
});
|
10
|
+
function _export(target, all) {
|
11
|
+
for(var name in all)Object.defineProperty(target, name, {
|
12
|
+
enumerable: true,
|
13
|
+
get: all[name]
|
14
|
+
});
|
15
|
+
}
|
16
|
+
_export(exports, {
|
17
|
+
PortalCompatContextProvider: ()=>_portalCompatContext.PortalCompatContextProvider,
|
18
|
+
usePortalCompat: ()=>_portalCompatContext.usePortalCompat
|
19
|
+
});
|
7
20
|
});
|
21
|
+
//# sourceMappingURL=index.js.map
|
22
|
+
|
8
23
|
//# sourceMappingURL=index.js.map
|
package/lib-amd/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n//# sourceMappingURL=index.js.map"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;IAA6D;;;;;;;;;;;;;QAApDA,2BAA2B,MAA3BA,gDAA2B;QAAEC,eAAe,MAAfA,oCAAe;;;CACrD,iCAAiC"}
|
package/lib-amd/types.js
CHANGED
@@ -1,5 +1,12 @@
|
|
1
|
-
define([
|
1
|
+
define([
|
2
|
+
"require",
|
3
|
+
"exports"
|
4
|
+
], function(require, exports) {
|
2
5
|
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
7
|
+
value: true
|
8
|
+
});
|
4
9
|
});
|
10
|
+
//# sourceMappingURL=types.js.map
|
11
|
+
|
5
12
|
//# sourceMappingURL=types.js.map
|
package/lib-amd/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../lib/types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=types.js.map"],"names":[],"mappings":";;;;;;;;;CACA,iCAAiC"}
|
@@ -1,27 +1,25 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
var portalCompatContextDefaultValue = function () {
|
13
|
-
return function () {
|
14
|
-
return undefined;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
|
18
|
-
exports.PortalCompatContextProvider = PortalCompatContext.Provider;
|
19
|
-
|
20
|
-
function usePortalCompat() {
|
21
|
-
var _a;
|
22
|
-
|
23
|
-
return (_a = React.useContext(PortalCompatContext)) !== null && _a !== void 0 ? _a : portalCompatContextDefaultValue;
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
24
10
|
}
|
11
|
+
_export(exports, {
|
12
|
+
PortalCompatContextProvider: ()=>PortalCompatContextProvider,
|
13
|
+
usePortalCompat: ()=>usePortalCompat
|
14
|
+
});
|
15
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
16
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
17
|
+
const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
|
18
|
+
const portalCompatContextDefaultValue = ()=>()=>undefined;
|
19
|
+
const PortalCompatContextProvider = PortalCompatContext.Provider;
|
20
|
+
function usePortalCompat() {
|
21
|
+
var _React_useContext;
|
22
|
+
return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
|
23
|
+
} //# sourceMappingURL=PortalCompatContext.js.map
|
25
24
|
|
26
|
-
exports.usePortalCompat = usePortalCompat;
|
27
25
|
//# sourceMappingURL=PortalCompatContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["PortalCompatContext.
|
1
|
+
{"version":3,"sources":["../lib/PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = /*#__PURE__*/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//# sourceMappingURL=PortalCompatContext.js.map"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAGaA,2BAA2B,MAA3BA;IACGC,eAAe,MAAfA;;;6DAJO;AACvB,MAAMC,sBAAsB,WAAW,GAAEC,OAAMC,aAAa,CAACC;AAC7D,MAAMC,kCAAkC,IAAM,IAAMD;AAC7C,MAAML,8BAA8BE,oBAAoBK,QAAQ;AAChE,SAASN,kBAAkB;IAChC,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,IAAI,IAAIM,sBAAsB,KAAK,IAAIA,oBAAoBF,+BAA+B;AACnK,EACA,+CAA+C"}
|
package/lib-commonjs/index.js
CHANGED
@@ -1,22 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
});
|
16
|
-
Object.defineProperty(exports, "usePortalCompat", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function () {
|
19
|
-
return PortalCompatContext_1.usePortalCompat;
|
20
|
-
}
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
PortalCompatContextProvider: ()=>_portalCompatContext.PortalCompatContextProvider,
|
13
|
+
usePortalCompat: ()=>_portalCompatContext.usePortalCompat
|
21
14
|
});
|
15
|
+
const _portalCompatContext = require("./PortalCompatContext");
|
16
|
+
//# sourceMappingURL=index.js.map
|
17
|
+
|
22
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n//# sourceMappingURL=index.js.map"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;;;;;;;;;IAASA,2BAA2B,MAA3BA,gDAA2B;IAAEC,eAAe,MAAfA,oCAAe;;qCAAQ;CAC7D,iCAAiC"}
|
package/lib-commonjs/types.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[],"
|
1
|
+
{"version":3,"sources":["../lib/types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=types.js.map"],"names":[],"mappings":";;;;CACA,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-portal-compat-context",
|
3
|
-
"version": "9.0.
|
3
|
+
"version": "9.0.5",
|
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",
|
7
|
-
"typings": "dist/index.d.ts",
|
7
|
+
"typings": "./dist/index.d.ts",
|
8
8
|
"sideEffects": false,
|
9
9
|
"repository": {
|
10
10
|
"type": "git",
|
@@ -16,18 +16,18 @@
|
|
16
16
|
"clean": "just-scripts clean",
|
17
17
|
"code-style": "just-scripts code-style",
|
18
18
|
"just": "just-scripts",
|
19
|
-
"lint": "just-scripts lint
|
19
|
+
"lint": "just-scripts lint",
|
20
20
|
"test": "jest --passWithNoTests",
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"type-check": "tsc -b tsconfig.json"
|
21
|
+
"type-check": "tsc -b tsconfig.json",
|
22
|
+
"generate-api": "just-scripts generate-api"
|
24
23
|
},
|
25
24
|
"devDependencies": {
|
26
25
|
"@fluentui/eslint-plugin": "*",
|
27
|
-
"@fluentui/scripts": "
|
26
|
+
"@fluentui/scripts-api-extractor": "*",
|
27
|
+
"@fluentui/scripts-tasks": "*"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"
|
30
|
+
"@swc/helpers": "^0.4.14"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
33
|
"@types/react": ">=16.8.0 <19.0.0",
|
@@ -38,5 +38,14 @@
|
|
38
38
|
"major",
|
39
39
|
"prerelease"
|
40
40
|
]
|
41
|
+
},
|
42
|
+
"exports": {
|
43
|
+
".": {
|
44
|
+
"types": "./dist/index.d.ts",
|
45
|
+
"node": "./lib-commonjs/index.js",
|
46
|
+
"import": "./lib/index.js",
|
47
|
+
"require": "./lib-commonjs/index.js"
|
48
|
+
},
|
49
|
+
"./package.json": "./package.json"
|
41
50
|
}
|
42
51
|
}
|
package/Spec.md
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# @fluentui/react-portal-compat-context Spec
|
2
|
-
|
3
|
-
## Background
|
4
|
-
|
5
|
-
_Description and use cases of this component_
|
6
|
-
|
7
|
-
## Prior Art
|
8
|
-
|
9
|
-
_Include background research done for this component_
|
10
|
-
|
11
|
-
- _Link to Open UI research_
|
12
|
-
- _Link to comparison of v7 and v0_
|
13
|
-
- _Link to GitHub epic issue for the converged component_
|
14
|
-
|
15
|
-
## Sample Code
|
16
|
-
|
17
|
-
_Provide some representative example code that uses the proposed API for the component_
|
18
|
-
|
19
|
-
## Variants
|
20
|
-
|
21
|
-
_Describe visual or functional variants of this control, if applicable. For example, a slider could have a 2D variant._
|
22
|
-
|
23
|
-
## API
|
24
|
-
|
25
|
-
_List the **Props** and **Slots** proposed for the component. Ideally this would just be a link to the component's `.types.ts` file_
|
26
|
-
|
27
|
-
## Structure
|
28
|
-
|
29
|
-
- _**Public**_
|
30
|
-
- _**Internal**_
|
31
|
-
- _**DOM** - how the component will be rendered as HTML elements_
|
32
|
-
|
33
|
-
## Migration
|
34
|
-
|
35
|
-
_Describe what will need to be done to upgrade from the existing implementations:_
|
36
|
-
|
37
|
-
- _Migration from v8_
|
38
|
-
- _Migration from v0_
|
39
|
-
|
40
|
-
## Behaviors
|
41
|
-
|
42
|
-
_Explain how the component will behave in use, including:_
|
43
|
-
|
44
|
-
- _Component States_
|
45
|
-
- _Interaction_
|
46
|
-
- _Keyboard_
|
47
|
-
- _Cursor_
|
48
|
-
- _Touch_
|
49
|
-
- _Screen readers_
|
50
|
-
|
51
|
-
## Accessibility
|
52
|
-
|
53
|
-
Base accessibility information is included in the design document. After the spec is filled and review, outcomes from it need to be communicated to design and incorporated in the design document.
|
54
|
-
|
55
|
-
- Decide whether to use **native element** or folow **ARIA** and provide reasons
|
56
|
-
- Identify the **[ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/) pattern** and, if the component is listed there, follow its specification as possible.
|
57
|
-
- Identify accessibility **variants**, the `role` ([ARIA roles](https://www.w3.org/TR/wai-aria-1.1/#role_definitions)) of the component, its `slots` and `aria-*` props.
|
58
|
-
- Describe the **keyboard navigation**: Tab Oder and Arrow Key Navigation. Describe any other keyboard **shortcuts** used
|
59
|
-
- Specify texts for **state change announcements** - [ARIA live regions
|
60
|
-
](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) (number of available items in dropdown, error messages, confirmations, ...)
|
61
|
-
- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them
|
62
|
-
- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation)
|
63
|
-
- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases)
|