@fluentui/react-portal-compat-context 9.0.0 → 9.0.1

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,22 @@
2
2
  "name": "@fluentui/react-portal-compat-context",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 28 Jun 2022 15:09:01 GMT",
5
+ "date": "Fri, 15 Jul 2022 18:27:18 GMT",
6
+ "tag": "@fluentui/react-portal-compat-context_v9.0.1",
7
+ "version": "9.0.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "gcox@microsoft.com",
12
+ "package": "@fluentui/react-portal-compat-context",
13
+ "commit": "9252601953bb2462fec25d22748149665868fb89",
14
+ "comment": "Added mechanism for marking fluent-compatibility packages"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 28 Jun 2022 15:13:50 GMT",
6
21
  "tag": "@fluentui/react-portal-compat-context_v9.0.0",
7
22
  "version": "9.0.0",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/react-portal-compat-context
2
2
 
3
- This log was last generated on Tue, 28 Jun 2022 15:09:01 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 15 Jul 2022 18:27:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.1)
8
+
9
+ Fri, 15 Jul 2022 18:27:18 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.0..@fluentui/react-portal-compat-context_v9.0.1)
11
+
12
+ ### Patches
13
+
14
+ - Added mechanism for marking fluent-compatibility packages ([PR #23923](https://github.com/microsoft/fluentui/pull/23923) by gcox@microsoft.com)
15
+
7
16
  ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.0)
8
17
 
9
- Tue, 28 Jun 2022 15:09:01 GMT
18
+ Tue, 28 Jun 2022 15:13:50 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.0-rc.2..@fluentui/react-portal-compat-context_v9.0.0)
11
20
 
12
21
  ### Patches
@@ -0,0 +1,14 @@
1
+ define(["require", "exports", "react"], function (require, exports, React) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.usePortalCompat = exports.PortalCompatContextProvider = void 0;
5
+ var PortalCompatContext = React.createContext(
6
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
7
+ function () { return function () { }; });
8
+ exports.PortalCompatContextProvider = PortalCompatContext.Provider;
9
+ function usePortalCompat() {
10
+ return React.useContext(PortalCompatContext);
11
+ }
12
+ exports.usePortalCompat = usePortalCompat;
13
+ });
14
+ //# sourceMappingURL=PortalCompatContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PortalCompatContext.js","sourceRoot":"../src/","sources":["PortalCompatContext.ts"],"names":[],"mappings":";;;;IAGA,IAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa;IAC7C,gEAAgE;IAChE,cAAM,OAAA,cAAO,CAAC,EAAR,CAAQ,CACf,CAAC;IAEW,QAAA,2BAA2B,GAAG,mBAAmB,CAAC,QAAQ,CAAC;IAExE,SAAgB,eAAe;QAC7B,OAAO,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC/C,CAAC;IAFD,0CAEC","sourcesContent":["import * as React from 'react';\nimport type { RegisterPortalFn } from './types';\n\nconst PortalCompatContext = React.createContext<RegisterPortalFn>(\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n () => () => {},\n);\n\nexport const PortalCompatContextProvider = PortalCompatContext.Provider;\n\nexport function usePortalCompat() {\n return React.useContext(PortalCompatContext);\n}\n"]}
@@ -0,0 +1,8 @@
1
+ define(["require", "exports", "./PortalCompatContext"], function (require, exports, PortalCompatContext_1) {
2
+ "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
+ });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ });
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"../src/","sources":["types.ts"],"names":[],"mappings":"","sourcesContent":["export type RegisterPortalFn = (el: HTMLElement) => () => void;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal-compat-context",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
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",
@@ -11,6 +11,7 @@
11
11
  "url": "https://github.com/microsoft/fluentui"
12
12
  },
13
13
  "license": "MIT",
14
+ "fluent-compatibility": true,
14
15
  "scripts": {
15
16
  "build": "just-scripts build",
16
17
  "clean": "just-scripts clean",