@fluentui/react-portal-compat-context 9.0.14 → 9.0.16

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.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/react-portal-compat-context
2
2
 
3
- This log was last generated on Mon, 08 Sep 2025 12:41:55 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 11 Aug 2026 17:16:02 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.16)
8
+
9
+ Tue, 11 Aug 2026 17:16:02 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.15..@fluentui/react-portal-compat-context_v9.0.16)
11
+
12
+ ### Patches
13
+
14
+ - Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
15
+
16
+ ## [9.0.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.15)
17
+
18
+ Thu, 02 Oct 2025 15:12:30 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.14..@fluentui/react-portal-compat-context_v9.0.15)
20
+
21
+ ### Patches
22
+
23
+ - feat: enforce usage of use client directive for files with client-only features ([PR #35173](https://github.com/microsoft/fluentui/pull/35173) by dmytrokirpa@microsoft.com)
24
+
7
25
  ## [9.0.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.14)
8
26
 
9
- Mon, 08 Sep 2025 12:41:55 GMT
27
+ Mon, 08 Sep 2025 12:51:15 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.13..@fluentui/react-portal-compat-context_v9.0.14)
11
29
 
12
30
  ### Patches
@@ -0,0 +1,9 @@
1
+ import * as React_2 from 'react';
2
+
3
+ export declare const PortalCompatContextProvider: React_2.Provider<RegisterPortalFn>;
4
+
5
+ export declare type RegisterPortalFn = (el: HTMLElement) => () => void;
6
+
7
+ export declare function usePortalCompat(): RegisterPortalFn;
8
+
9
+ export { }
@@ -1,4 +1,5 @@
1
- import * as React from 'react';
1
+ 'use client';
2
+ import * as React from "react";
2
3
  var PortalCompatContext = React.createContext(undefined);
3
4
  var portalCompatContextDefaultValue = function() {
4
5
  return function() {
@@ -1 +1 @@
1
- {"version":3,"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(): RegisterPortalFn {\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,IAAMC,sBAAsBD,MAAME,aAAa,CAC7CC;AAGF,IAAMC,kCAAkC;WAAM;eAAMD;;;AAEpD,OAAO,IAAME,8BAA8BJ,oBAAoBK,QAAQ,CAAC;AAExE,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,kCAAjBD,+BAAAA,oBAAyCI;AAClD"}
1
+ {"version":3,"sources":["../src/PortalCompatContext.ts"],"sourcesContent":["'use client';\n\nimport * 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(): RegisterPortalFn {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["React","PortalCompatContext","createContext","undefined","portalCompatContextDefaultValue","PortalCompatContextProvider","Provider","usePortalCompat","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAG/B,IAAMC,sBAAsBD,MAAME,aAAa,CAC7CC;AAGF,IAAMC,kCAAkC;WAAM;eAAMD;;;AAEpD,OAAO,IAAME,8BAA8BJ,oBAAoBK,QAAQ,CAAC;AAExE,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,kCAAjBD,+BAAAA,oBAAyCI;AAClD"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';
1
+ export { PortalCompatContextProvider, usePortalCompat } from "./PortalCompatContext.js";
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/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"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\nexport type { RegisterPortalFn } from './types';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":"AAAA,SAASA,2BAA2B,EAAEC,eAAe,QAAQ,2BAAwB"}
@@ -4,6 +4,7 @@ define([
4
4
  "@swc/helpers/_/_interop_require_wildcard",
5
5
  "react"
6
6
  ], function(require, exports, _interop_require_wildcard, _react) {
7
+ 'use client';
7
8
  "use strict";
8
9
  Object.defineProperty(exports, "__esModule", {
9
10
  value: true
@@ -1 +1 @@
1
- {"version":3,"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(): RegisterPortalFn {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","useContext"],"mappings":";;;;IAAuB;;;;;;;;;;;;;QASVA,2BAA2B;mBAA3BA;;QAEGC,eAAe;mBAAfA;;;;IARhB,IAAMC,sBAAsBC,OAAMC,aAAa,CAC7CC;IAGF,IAAMC,kCAAkC;eAAM;mBAAMD;;;IAE7C,IAAML,8BAA8BE,oBAAoBK,QAAQ;IAEhE,SAASN;YACPE;QAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,kCAAjBC,+BAAAA,oBAAyCG;IAClD"}
1
+ {"version":3,"sources":["../src/PortalCompatContext.ts"],"sourcesContent":["'use client';\n\nimport * 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(): RegisterPortalFn {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","useContext"],"mappings":";;;;IAEuB;;IAFvB;;;;;;;;;;;;QAWaA,2BAA2B;mBAA3BA;;QAEGC,eAAe;mBAAfA;;;;IARhB,IAAMC,sBAAsBC,OAAMC,aAAa,CAC7CC;IAGF,IAAMC,kCAAkC;eAAM;mBAAMD;;;IAE7C,IAAML,8BAA8BE,oBAAoBK,QAAQ;IAEhE,SAASN;YACPE;QAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,kCAAjBC,+BAAAA,oBAAyCG;IAClD"}
package/lib-amd/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  define([
2
2
  "require",
3
3
  "exports",
4
- "./PortalCompatContext"
4
+ "./PortalCompatContext.js"
5
5
  ], function(require, exports, _PortalCompatContext) {
6
6
  "use strict";
7
7
  Object.defineProperty(exports, "__esModule", {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", {
3
4
  value: true
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/PortalCompatContext.ts"],"sourcesContent":["'use client';\n\nimport * 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(): RegisterPortalFn {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IAWaA,2BAA2B;eAA3BA;;IAEGC,eAAe;eAAfA;;;;+DAXO;AAGvB,IAAMC,sBAAsBC,OAAMC,aAAa,CAC7CC;AAGF,IAAMC,kCAAkC;WAAM;eAAMD;;;AAE7C,IAAML,8BAA8BE,oBAAoBK,QAAQ;AAEhE,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,kCAAjBC,+BAAAA,oBAAyCG;AAClD"}
@@ -16,4 +16,4 @@ _export(exports, {
16
16
  return _PortalCompatContext.usePortalCompat;
17
17
  }
18
18
  });
19
- var _PortalCompatContext = require("./PortalCompatContext");
19
+ var _PortalCompatContext = require("./PortalCompatContext.cjs");
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal-compat-context",
3
- "version": "9.0.14",
3
+ "version": "9.0.16",
4
4
  "description": "A package that holds React context for compatibility of React Contexts",
5
- "main": "lib-commonjs/index.js",
5
+ "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
8
  "sideEffects": false,
@@ -11,10 +11,6 @@
11
11
  "url": "https://github.com/microsoft/fluentui"
12
12
  },
13
13
  "license": "MIT",
14
- "devDependencies": {
15
- "@fluentui/eslint-plugin": "*",
16
- "@fluentui/scripts-api-extractor": "*"
17
- },
18
14
  "dependencies": {
19
15
  "@swc/helpers": "^0.5.1"
20
16
  },
@@ -30,18 +26,24 @@
30
26
  },
31
27
  "exports": {
32
28
  ".": {
33
- "types": "./dist/index.d.ts",
34
- "node": "./lib-commonjs/index.js",
35
- "import": "./lib/index.js",
36
- "require": "./lib-commonjs/index.js"
29
+ "import": {
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./lib/index.js"
32
+ },
33
+ "require": {
34
+ "types": "./dist/index.d.cts",
35
+ "default": "./lib-commonjs/index.cjs"
36
+ }
37
37
  },
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "files": [
41
41
  "*.md",
42
42
  "dist/*.d.ts",
43
+ "dist/*.d.cts",
43
44
  "lib",
44
45
  "lib-amd",
45
46
  "lib-commonjs"
46
- ]
47
+ ],
48
+ "type": "module"
47
49
  }
@@ -1 +0,0 @@
1
- {"version":3,"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(): RegisterPortalFn {\n return React.useContext(PortalCompatContext) ?? portalCompatContextDefaultValue;\n}\n"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","useContext"],"mappings":";;;;;;;;;;;IASaA,2BAA2B;eAA3BA;;IAEGC,eAAe;eAAfA;;;;+DAXO;AAGvB,IAAMC,sBAAsBC,OAAMC,aAAa,CAC7CC;AAGF,IAAMC,kCAAkC;WAAM;eAAMD;;;AAE7C,IAAML,8BAA8BE,oBAAoBK,QAAQ;AAEhE,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,kCAAjBC,+BAAAA,oBAAyCG;AAClD"}
File without changes
File without changes
File without changes