@fluentui/react-portal-compat-context 9.0.15 → 9.0.17

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 Thu, 02 Oct 2025 15:07:20 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Mon, 21 Sep 2026 16:12:52 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.17)
8
+
9
+ Mon, 21 Sep 2026 16:12:52 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.16..@fluentui/react-portal-compat-context_v9.0.17)
11
+
12
+ ### Patches
13
+
14
+ - chore: mark @types/react peer dependency as optional ([PR #36559](https://github.com/microsoft/fluentui/pull/36559) by martinhochel@microsoft.com)
15
+
16
+ ## [9.0.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.16)
17
+
18
+ Tue, 11 Aug 2026 17:20:14 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.15..@fluentui/react-portal-compat-context_v9.0.16)
20
+
21
+ ### Patches
22
+
23
+ - 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)
24
+
7
25
  ## [9.0.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.15)
8
26
 
9
- Thu, 02 Oct 2025 15:07:20 GMT
27
+ Thu, 02 Oct 2025 15:12:30 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.14..@fluentui/react-portal-compat-context_v9.0.15)
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,5 +1,5 @@
1
1
  'use client';
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
  var PortalCompatContext = React.createContext(undefined);
4
4
  var portalCompatContextDefaultValue = function() {
5
5
  return function() {
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"}
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", {
@@ -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.15",
3
+ "version": "9.0.17",
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
  },
@@ -22,6 +18,11 @@
22
18
  "@types/react": ">=16.14.0 <20.0.0",
23
19
  "react": ">=16.14.0 <20.0.0"
24
20
  },
21
+ "peerDependenciesMeta": {
22
+ "@types/react": {
23
+ "optional": true
24
+ }
25
+ },
25
26
  "beachball": {
26
27
  "disallowedChangeTypes": [
27
28
  "major",
@@ -30,18 +31,24 @@
30
31
  },
31
32
  "exports": {
32
33
  ".": {
33
- "types": "./dist/index.d.ts",
34
- "node": "./lib-commonjs/index.js",
35
- "import": "./lib/index.js",
36
- "require": "./lib-commonjs/index.js"
34
+ "import": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./lib/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/index.d.cts",
40
+ "default": "./lib-commonjs/index.cjs"
41
+ }
37
42
  },
38
43
  "./package.json": "./package.json"
39
44
  },
40
45
  "files": [
41
46
  "*.md",
42
47
  "dist/*.d.ts",
48
+ "dist/*.d.cts",
43
49
  "lib",
44
50
  "lib-amd",
45
51
  "lib-commonjs"
46
- ]
52
+ ],
53
+ "type": "module"
47
54
  }
File without changes
File without changes
File without changes