@fluentui/react-portal-compat-context 9.0.4 → 9.0.6

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,7 +2,117 @@
2
2
  "name": "@fluentui/react-portal-compat-context",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 11 Nov 2022 14:53:19 GMT",
5
+ "date": "Fri, 12 May 2023 20:22:04 GMT",
6
+ "tag": "@fluentui/react-portal-compat-context_v9.0.6",
7
+ "version": "9.0.6",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-portal-compat-context",
13
+ "commit": "dbda7fa69e3000aaf8dd4a061e254ebd35198b8e",
14
+ "comment": "fix: update npmignore files to fix npm8/node16 regression how npm publish works"
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "olfedias@microsoft.com",
20
+ "package": "@fluentui/react-portal-compat-context",
21
+ "commit": "c28decb23d191a0daaaf6d5d1832429715102129",
22
+ "comment": "chore: exclude .swcrc from being published"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "date": "Tue, 21 Mar 2023 21:23:45 GMT",
29
+ "tag": "@fluentui/react-portal-compat-context_v9.0.5",
30
+ "version": "9.0.5",
31
+ "comments": {
32
+ "patch": [
33
+ {
34
+ "author": "tristan.watanabe@gmail.com",
35
+ "package": "@fluentui/react-portal-compat-context",
36
+ "commit": "ead1c6d4c2ac3f3596b62b8cbc07b0a03041f11f",
37
+ "comment": "fix: add node field to package.json exports map."
38
+ },
39
+ {
40
+ "author": "tristan.watanabe@gmail.com",
41
+ "package": "@fluentui/react-portal-compat-context",
42
+ "commit": "2fac1a139149bd13b76b1306207bc988dca9c72c",
43
+ "comment": "chore: migrate to swc transpilation approach."
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "date": "Wed, 08 Mar 2023 17:42:37 GMT",
50
+ "tag": "@fluentui/react-portal-compat-context_v9.0.4",
51
+ "version": "9.0.4",
52
+ "comments": {
53
+ "none": [
54
+ {
55
+ "author": "martinhochel@microsoft.com",
56
+ "package": "@fluentui/react-portal-compat-context",
57
+ "commit": "db203b7c6eae1174b0bb910bf49eaee4dde14786",
58
+ "comment": "chore: re-enable AMD import checks for only mixed and v8 packages"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "date": "Mon, 16 Jan 2023 08:39:06 GMT",
65
+ "tag": "@fluentui/react-portal-compat-context_v9.0.4",
66
+ "version": "9.0.4",
67
+ "comments": {
68
+ "none": [
69
+ {
70
+ "author": "martinhochel@microsoft.com",
71
+ "package": "@fluentui/react-portal-compat-context",
72
+ "commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
73
+ "comment": "chore: migrate to packaged scripts"
74
+ }
75
+ ]
76
+ }
77
+ },
78
+ {
79
+ "date": "Wed, 04 Jan 2023 01:40:19 GMT",
80
+ "tag": "@fluentui/react-portal-compat-context_v9.0.4",
81
+ "version": "9.0.4",
82
+ "comments": {
83
+ "none": [
84
+ {
85
+ "author": "martinhochel@microsoft.com",
86
+ "package": "@fluentui/react-portal-compat-context",
87
+ "commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
88
+ "comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
89
+ },
90
+ {
91
+ "author": "martinhochel@microsoft.com",
92
+ "package": "@fluentui/react-portal-compat-context",
93
+ "commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
94
+ "comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ {
100
+ "date": "Thu, 17 Nov 2022 23:05:44 GMT",
101
+ "tag": "@fluentui/react-portal-compat-context_v9.0.4",
102
+ "version": "9.0.4",
103
+ "comments": {
104
+ "none": [
105
+ {
106
+ "author": "martinhochel@microsoft.com",
107
+ "package": "@fluentui/react-portal-compat-context",
108
+ "commit": "ea768501802d65d63ddc63fff3816fb6b5008ae4",
109
+ "comment": "chore: update package scaffold"
110
+ }
111
+ ]
112
+ }
113
+ },
114
+ {
115
+ "date": "Fri, 11 Nov 2022 14:57:32 GMT",
6
116
  "tag": "@fluentui/react-portal-compat-context_v9.0.4",
7
117
  "version": "9.0.4",
8
118
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @fluentui/react-portal-compat-context
2
2
 
3
- This log was last generated on Fri, 11 Nov 2022 14:53:19 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 12 May 2023 20:22:04 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.6)
8
+
9
+ Fri, 12 May 2023 20:22:04 GMT
10
+ [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
+
12
+ ### Patches
13
+
14
+ - chore: exclude .swcrc from being published ([PR #27740](https://github.com/microsoft/fluentui/pull/27740) by olfedias@microsoft.com)
15
+
16
+ ## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.5)
17
+
18
+ Tue, 21 Mar 2023 21:23:45 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.4..@fluentui/react-portal-compat-context_v9.0.5)
20
+
21
+ ### Patches
22
+
23
+ - fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
24
+ - chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
25
+
7
26
  ## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.4)
8
27
 
9
- Fri, 11 Nov 2022 14:53:19 GMT
28
+ Fri, 11 Nov 2022 14:57:32 GMT
10
29
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.3..@fluentui/react-portal-compat-context_v9.0.4)
11
30
 
12
31
  ### Patches
@@ -1,16 +1,9 @@
1
1
  import * as React from 'react';
2
- var PortalCompatContext = /*#__PURE__*/React.createContext(undefined);
3
-
4
- var portalCompatContextDefaultValue = function () {
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 _a;
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,"sources":["PortalCompatContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,IAAM,mBAAmB,gBAAG,KAAK,CAAC,aAAN,CAC1B,SAD0B,CAA5B;;AAIA,IAAM,+BAA+B,GAAG,YAAA;EAAM,OAAA,YAAA;IAAM,OAAA,SAAA;EAAN,CAAA;AAAe,CAA7D;;AAEA,OAAO,IAAM,2BAA2B,GAAG,mBAAmB,CAAC,QAAxD;AAEP,OAAM,SAAU,eAAV,GAAyB;;;EAC7B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,mBAAjB,CAAA,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,EAArC,GAAyC,+BAAhD;AACD","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"],"sourceRoot":"../src/"}
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,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"]}
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,"file":"types.js","sourceRoot":"../src/","sources":["types.ts"],"names":[],"mappings":"","sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"]}
1
+ {"version":3,"names":[],"sources":["../src/types.ts"],"sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"],"mappings":"AAAA"}
@@ -1,14 +1,32 @@
1
- define(["require", "exports", "react"], function (require, exports, React) {
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", { value: true });
4
- exports.usePortalCompat = exports.PortalCompatContextProvider = void 0;
5
- var PortalCompatContext = React.createContext(undefined);
6
- var portalCompatContextDefaultValue = function () { return function () { return undefined; }; };
7
- exports.PortalCompatContextProvider = PortalCompatContext.Provider;
8
- function usePortalCompat() {
9
- var _a;
10
- return (_a = React.useContext(PortalCompatContext)) !== null && _a !== void 0 ? _a : portalCompatContextDefaultValue;
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.usePortalCompat = usePortalCompat;
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,"file":"PortalCompatContext.js","sourceRoot":"../src/","sources":["PortalCompatContext.ts"],"names":[],"mappings":";;;;IAGA,IAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAC7C,SAAS,CACyB,CAAC;IAErC,IAAM,+BAA+B,GAAG,cAAM,OAAA,cAAM,OAAA,SAAS,EAAT,CAAS,EAAf,CAAe,CAAC;IAEjD,QAAA,2BAA2B,GAAG,mBAAmB,CAAC,QAAQ,CAAC;IAExE,SAAgB,eAAe;;QAC7B,OAAO,MAAA,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,mCAAI,+BAA+B,CAAC;IAClF,CAAC;IAFD,0CAEC","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"]}
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(["require", "exports", "./PortalCompatContext"], function (require, exports, PortalCompatContext_1) {
1
+ define([
2
+ "require",
3
+ "exports",
4
+ "./PortalCompatContext"
5
+ ], function(require, exports, _portalCompatContext) {
2
6
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.usePortalCompat = exports.PortalCompatContextProvider = void 0;
5
- Object.defineProperty(exports, "PortalCompatContextProvider", { enumerable: true, get: function () { return PortalCompatContext_1.PortalCompatContextProvider; } });
6
- Object.defineProperty(exports, "usePortalCompat", { enumerable: true, get: function () { return PortalCompatContext_1.usePortalCompat; } });
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;;IAAS,kIAAA,2BAA2B,OAAA;IAAE,sHAAA,eAAe,OAAA","sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"]}
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(["require", "exports"], function (require, exports) {
1
+ define([
2
+ "require",
3
+ "exports"
4
+ ], function(require, exports) {
2
5
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
4
9
  });
10
+ //# sourceMappingURL=types.js.map
11
+
5
12
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"../src/","sources":["types.ts"],"names":[],"mappings":"","sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"]}
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
- value: true
3
+ value: true
5
4
  });
6
- exports.usePortalCompat = exports.PortalCompatContextProvider = void 0;
7
-
8
- var React = /*#__PURE__*/require("react");
9
-
10
- var PortalCompatContext = /*#__PURE__*/React.createContext(undefined);
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.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGA,IAAM,mBAAmB,gBAAG,KAAK,CAAC,aAAN,CAC1B,SAD0B,CAA5B;;AAIA,IAAM,+BAA+B,GAAG,YAAA;EAAM,OAAA,YAAA;IAAM,OAAA,SAAA;EAAN,CAAA;AAAe,CAA7D;;AAEa,OAAA,CAAA,2BAAA,GAA8B,mBAAmB,CAAC,QAAlD;;AAEb,SAAgB,eAAhB,GAA+B;;;EAC7B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,mBAAjB,CAAA,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,EAArC,GAAyC,+BAAhD;AACD;;AAFD,OAAA,CAAA,eAAA,GAAA,eAAA","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"],"sourceRoot":"../src/"}
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"}
@@ -1,22 +1,18 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.usePortalCompat = exports.PortalCompatContextProvider = void 0;
7
-
8
- var PortalCompatContext_1 = /*#__PURE__*/require("./PortalCompatContext");
9
-
10
- Object.defineProperty(exports, "PortalCompatContextProvider", {
11
- enumerable: true,
12
- get: function () {
13
- return PortalCompatContext_1.PortalCompatContextProvider;
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.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,6BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,qBAAA,CAAA,2BAAA;EAA2B;AAA3B,CAAA;AAA6B,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,qBAAA,CAAA,eAAA;EAAe;AAAf,CAAA","sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"],"sourceRoot":"../src/"}
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"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
5
+ //# sourceMappingURL=types.js.map
6
+
6
7
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../lib/types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=types.js.map"],"names":[],"mappings":";;;;CACA,iCAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal-compat-context",
3
- "version": "9.0.4",
3
+ "version": "9.0.6",
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",
@@ -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 && just-scripts lint-imports",
19
+ "lint": "just-scripts lint",
20
20
  "test": "jest --passWithNoTests",
21
- "docs": "api-extractor run --config=config/api-extractor.local.json --local",
22
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/types/packages/react-components/react-portal-compat-context/src && yarn docs",
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": "^1.0.0"
26
+ "@fluentui/scripts-api-extractor": "*",
27
+ "@fluentui/scripts-tasks": "*"
28
28
  },
29
29
  "dependencies": {
30
- "tslib": "^2.1.0"
30
+ "@swc/helpers": "^0.4.14"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@types/react": ">=16.8.0 <19.0.0",
@@ -42,6 +42,7 @@
42
42
  "exports": {
43
43
  ".": {
44
44
  "types": "./dist/index.d.ts",
45
+ "node": "./lib-commonjs/index.js",
45
46
  "import": "./lib/index.js",
46
47
  "require": "./lib-commonjs/index.js"
47
48
  },