@fluentui/react-portal-compat-context 9.0.10 → 9.0.11

Sign up to get free protection for your applications and to get access to all the features.
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 Thu, 09 Nov 2023 17:23:09 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 03 Jan 2024 09:22:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.11)
8
+
9
+ Wed, 03 Jan 2024 09:22:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.10..@fluentui/react-portal-compat-context_v9.0.11)
11
+
12
+ ### Patches
13
+
14
+ - fix: re-introduce ecma transpilation to ES5 to make it work with v8 in ES5 only browsers ([PR #30053](https://github.com/microsoft/fluentui/pull/30053) by wfwf1997@gmail.com)
15
+
7
16
  ## [9.0.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat-context_v9.0.10)
8
17
 
9
- Thu, 09 Nov 2023 17:23:09 GMT
18
+ Thu, 09 Nov 2023 17:29:40 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat-context_v9.0.9..@fluentui/react-portal-compat-context_v9.0.10)
11
20
 
12
21
  ### Patches
@@ -1,7 +1,11 @@
1
- import * as React from 'react';
2
- const PortalCompatContext = React.createContext(undefined);
3
- const portalCompatContextDefaultValue = ()=>()=>undefined;
4
- export const PortalCompatContextProvider = PortalCompatContext.Provider;
1
+ import * as React from "react";
2
+ var PortalCompatContext = React.createContext(undefined);
3
+ var portalCompatContextDefaultValue = function() {
4
+ return function() {
5
+ return undefined;
6
+ };
7
+ };
8
+ export var PortalCompatContextProvider = PortalCompatContext.Provider;
5
9
  export function usePortalCompat() {
6
10
  var _React_useContext;
7
11
  return (_React_useContext = React.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
@@ -1 +1 @@
1
- {"version":3,"sources":["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"],"names":["React","PortalCompatContext","createContext","undefined","portalCompatContextDefaultValue","PortalCompatContextProvider","Provider","usePortalCompat","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,MAAMC,sBAAsBD,MAAME,aAAa,CAC7CC;AAGF,MAAMC,kCAAkC,IAAM,IAAMD;AAEpD,OAAO,MAAME,8BAA8BJ,oBAAoBK,QAAQ,CAAC;AAExE,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,kCAAjBD,+BAAAA,oBAAyCI;AAClD"}
1
+ {"version":3,"sources":["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"],"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"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';
1
+ export { PortalCompatContextProvider, usePortalCompat } from "./PortalCompatContext";
@@ -23,9 +23,13 @@ define([
23
23
  }
24
24
  });
25
25
  _react = /*#__PURE__*/ _interop_require_wildcard._(_react);
26
- const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
27
- const portalCompatContextDefaultValue = ()=>()=>undefined;
28
- const PortalCompatContextProvider = PortalCompatContext.Provider;
26
+ var PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
27
+ var portalCompatContextDefaultValue = function portalCompatContextDefaultValue() {
28
+ return function() {
29
+ return undefined;
30
+ };
31
+ };
32
+ var PortalCompatContextProvider = PortalCompatContext.Provider;
29
33
  function usePortalCompat() {
30
34
  var _React_useContext;
31
35
  return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
@@ -1 +1 @@
1
- {"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = 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"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;IAAuB;;;;;;;;;;;;;QAGVA,2BAA2B;mBAA3BA;;QACGC,eAAe;mBAAfA;;;;IAHhB,MAAMC,oCAAsBC,OAAMC,aAAa,CAACC;IAChD,MAAMC,kCAAkC,IAAI,IAAID;IACzC,MAAML,8BAA8BE,oBAAoBK,QAAQ;IAChE,SAASN;QACZ,IAAIO;QACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;IACtI"}
1
+ {"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from \"react\";\nvar PortalCompatContext = React.createContext(undefined);\nvar portalCompatContextDefaultValue = function() {\n return function() {\n return undefined;\n };\n};\nexport var 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"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;IAAuB;;;;;;;;;;;;;QAOZA,2BAA2B;mBAA3BA;;QACKC,eAAe;mBAAfA;;;;IAPhB,IAAIC,oCAAsBC,OAAMC,aAAa,CAACC;IAC9C,IAAIC,kCAAkC;QAClC,OAAO;YACH,OAAOD;QACX;IACJ;IACO,IAAIL,8BAA8BE,oBAAoBK,QAAQ;IAC9D,SAASN;QACZ,IAAIO;QACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;IACtI"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;IAA6D;;;;;;;;;;;;;QAApDA,2BAA2B;mBAA3BA,gDAA2B;;QAAEC,eAAe;mBAAfA,oCAAe"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from \"./PortalCompatContext\";\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;IAA6D;;;;;;;;;;;;;QAApDA,2BAA2B;mBAA3BA,gDAA2B;;QAAEC,eAAe;mBAAfA,oCAAe"}
@@ -16,11 +16,15 @@ _export(exports, {
16
16
  return usePortalCompat;
17
17
  }
18
18
  });
19
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
20
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
21
- const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
22
- const portalCompatContextDefaultValue = ()=>()=>undefined;
23
- const PortalCompatContextProvider = PortalCompatContext.Provider;
19
+ var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
20
+ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
21
+ var PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined);
22
+ var portalCompatContextDefaultValue = function portalCompatContextDefaultValue() {
23
+ return function() {
24
+ return undefined;
25
+ };
26
+ };
27
+ var PortalCompatContextProvider = PortalCompatContext.Provider;
24
28
  function usePortalCompat() {
25
29
  var _React_useContext;
26
30
  return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue;
@@ -1 +1 @@
1
- {"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from 'react';\nconst PortalCompatContext = 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"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAGaA,2BAA2B;eAA3BA;;IACGC,eAAe;eAAfA;;;;iEAJO;AACvB,MAAMC,oCAAsBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,kCAAkC,IAAI,IAAID;AACzC,MAAML,8BAA8BE,oBAAoBK,QAAQ;AAChE,SAASN;IACZ,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;AACtI"}
1
+ {"version":3,"sources":["PortalCompatContext.js"],"sourcesContent":["import * as React from \"react\";\nvar PortalCompatContext = React.createContext(undefined);\nvar portalCompatContextDefaultValue = function() {\n return function() {\n return undefined;\n };\n};\nexport var 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"],"names":["PortalCompatContextProvider","usePortalCompat","PortalCompatContext","React","createContext","undefined","portalCompatContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAOWA,2BAA2B;eAA3BA;;IACKC,eAAe;eAAfA;;;;+DARO;AACvB,IAAIC,oCAAsBC,OAAMC,aAAa,CAACC;AAC9C,IAAIC,kCAAkC;IAClC,OAAO;QACH,OAAOD;IACX;AACJ;AACO,IAAIL,8BAA8BE,oBAAoBK,QAAQ;AAC9D,SAASN;IACZ,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,oBAAmB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;AACtI"}
@@ -16,4 +16,4 @@ _export(exports, {
16
16
  return _PortalCompatContext.usePortalCompat;
17
17
  }
18
18
  });
19
- const _PortalCompatContext = require("./PortalCompatContext");
19
+ var _PortalCompatContext = require("./PortalCompatContext");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from './PortalCompatContext';\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;;;;;;;;;IAASA,2BAA2B;eAA3BA,gDAA2B;;IAAEC,eAAe;eAAfA,oCAAe;;;qCAAQ"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { PortalCompatContextProvider, usePortalCompat } from \"./PortalCompatContext\";\n"],"names":["PortalCompatContextProvider","usePortalCompat"],"mappings":";;;;;;;;;;;IAASA,2BAA2B;eAA3BA,gDAA2B;;IAAEC,eAAe;eAAfA,oCAAe;;;mCAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal-compat-context",
3
- "version": "9.0.10",
3
+ "version": "9.0.11",
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",