@fluentui/react-portal-compat 9.0.50 → 9.0.52

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,49 @@
2
2
  "name": "@fluentui/react-portal-compat",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 04 Apr 2023 18:42:19 GMT",
5
+ "date": "Wed, 12 Apr 2023 09:28:17 GMT",
6
+ "tag": "@fluentui/react-portal-compat_v9.0.52",
7
+ "version": "9.0.52",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-portal-compat",
13
+ "comment": "Bump @fluentui/react-tabster to v9.6.4",
14
+ "commit": "b48890859f5ce28fe12fd40f6bda26ed486c5e47"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-portal-compat",
19
+ "comment": "Bump @fluentui/react-components to v9.18.9",
20
+ "commit": "b48890859f5ce28fe12fd40f6bda26ed486c5e47"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 07 Apr 2023 00:01:39 GMT",
27
+ "tag": "@fluentui/react-portal-compat_v9.0.51",
28
+ "version": "9.0.51",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "miroslav.stastny@microsoft.com",
33
+ "package": "@fluentui/react-portal-compat",
34
+ "commit": "ef38eed066906073d7b6e50b1d50afab1c62b3a5",
35
+ "comment": "fix: React 18 support in typings"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-portal-compat",
40
+ "comment": "Bump @fluentui/react-components to v9.18.8",
41
+ "commit": "7a46cab3d31a233b89b7188e994b24712af5393c"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Tue, 04 Apr 2023 18:44:50 GMT",
6
48
  "tag": "@fluentui/react-portal-compat_v9.0.50",
7
49
  "version": "9.0.50",
8
50
  "comments": {
@@ -11,13 +53,13 @@
11
53
  "author": "beachball",
12
54
  "package": "@fluentui/react-portal-compat",
13
55
  "comment": "Bump @fluentui/react-tabster to v9.6.3",
14
- "commit": "37a3a6eda1fd41086edd99a0b1560a8740f8c6c5"
56
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
15
57
  },
16
58
  {
17
59
  "author": "beachball",
18
60
  "package": "@fluentui/react-portal-compat",
19
61
  "comment": "Bump @fluentui/react-components to v9.18.7",
20
- "commit": "37a3a6eda1fd41086edd99a0b1560a8740f8c6c5"
62
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
21
63
  }
22
64
  ]
23
65
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,38 @@
1
1
  # Change Log - @fluentui/react-portal-compat
2
2
 
3
- This log was last generated on Tue, 04 Apr 2023 18:42:19 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 12 Apr 2023 09:28:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.52](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat_v9.0.52)
8
+
9
+ Wed, 12 Apr 2023 09:28:17 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat_v9.0.51..@fluentui/react-portal-compat_v9.0.52)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-tabster to v9.6.4 ([commit](https://github.com/microsoft/fluentui/commit/b48890859f5ce28fe12fd40f6bda26ed486c5e47) by beachball)
15
+ - Bump @fluentui/react-components to v9.18.9 ([commit](https://github.com/microsoft/fluentui/commit/b48890859f5ce28fe12fd40f6bda26ed486c5e47) by beachball)
16
+
17
+ ## [9.0.51](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat_v9.0.51)
18
+
19
+ Fri, 07 Apr 2023 00:01:39 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat_v9.0.50..@fluentui/react-portal-compat_v9.0.51)
21
+
22
+ ### Patches
23
+
24
+ - fix: React 18 support in typings ([PR #27439](https://github.com/microsoft/fluentui/pull/27439) by miroslav.stastny@microsoft.com)
25
+ - Bump @fluentui/react-components to v9.18.8 ([PR #27420](https://github.com/microsoft/fluentui/pull/27420) by beachball)
26
+
7
27
  ## [9.0.50](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat_v9.0.50)
8
28
 
9
- Tue, 04 Apr 2023 18:42:19 GMT
29
+ Tue, 04 Apr 2023 18:44:50 GMT
10
30
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal-compat_v9.0.49..@fluentui/react-portal-compat_v9.0.50)
11
31
 
12
32
  ### Patches
13
33
 
14
- - Bump @fluentui/react-tabster to v9.6.3 ([PR #27430](https://github.com/microsoft/fluentui/pull/27430) by beachball)
15
- - Bump @fluentui/react-components to v9.18.7 ([PR #27430](https://github.com/microsoft/fluentui/pull/27430) by beachball)
34
+ - Bump @fluentui/react-tabster to v9.6.3 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
35
+ - Bump @fluentui/react-components to v9.18.7 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
16
36
 
17
37
  ## [9.0.49](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal-compat_v9.0.49)
18
38
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as React_2 from 'react';
2
2
 
3
- export declare const PortalCompatProvider: React_2.FC;
3
+ export declare const PortalCompatProvider: React_2.FC<{
4
+ children?: React_2.ReactNode;
5
+ }>;
4
6
 
5
7
  export { }
@@ -1 +1 @@
1
- {"version":3,"names":["React","fluentProviderClassNames","useThemeClassName","PortalCompatContextProvider","applyFocusVisiblePolyfill","CLASS_NAME_REGEX","RegExp","root","PortalCompatProvider","props","children","themeClassName","cssVariablesClassName","useMemo","_themeClassName_match","match","registerPortalEl","useCallback","element","disposeFocusVisiblePolyfill","undefined","classList","add","ownerDocument","defaultView","remove","process","env","NODE_ENV","useEffect","console","warn","createElement","value"],"sources":["../src/PortalCompatProvider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { fluentProviderClassNames, useThemeClassName } from '@fluentui/react-components';\nimport { PortalCompatContextProvider } from '@fluentui/react-portal-compat-context';\nimport { applyFocusVisiblePolyfill } from '@fluentui/react-tabster';\n\nimport type { RegisterPortalFn } from '@fluentui/react-portal-compat-context';\n\nconst CLASS_NAME_REGEX = new RegExp(`(${fluentProviderClassNames.root}\\\\d+)`);\n\nexport const PortalCompatProvider: React.FC = props => {\n const { children } = props;\n\n const themeClassName = useThemeClassName();\n const cssVariablesClassName = React.useMemo<string | undefined>(\n // \"themeClassName\" may contain multiple classes while we want to add only a class that hosts CSS variables\n // Keep in sync with \"packages/react-provider/src/components/FluentProvider/useFluentProviderThemeStyleTag.ts\"\n () => themeClassName.match(CLASS_NAME_REGEX)?.[1],\n [themeClassName],\n );\n\n const registerPortalEl = React.useCallback<RegisterPortalFn>(\n element => {\n let disposeFocusVisiblePolyfill: () => void = () => undefined;\n if (cssVariablesClassName) {\n element.classList.add(cssVariablesClassName);\n if (element.ownerDocument.defaultView) {\n disposeFocusVisiblePolyfill = applyFocusVisiblePolyfill(element, element.ownerDocument.defaultView);\n }\n }\n\n return () => {\n if (cssVariablesClassName) {\n element.classList.remove(cssVariablesClassName);\n }\n disposeFocusVisiblePolyfill();\n };\n },\n [cssVariablesClassName],\n );\n\n if (process.env.NODE_ENV !== 'production') {\n // This if statement technically breaks the rules of hooks, but ENV variables never change during app lifecycle\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (themeClassName === '') {\n // eslint-disable-next-line no-console\n console.warn(`\n PortalCompatProvider: \"useThemeClassName()\" hook returned an empty string\n =============================================\n Make sure that PortalCompatProvider is rendered inside FluentProvider as a child.\n `);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n }\n\n return <PortalCompatContextProvider value={registerPortalEl}>{children}</PortalCompatContextProvider>;\n};\n"],"mappings":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f;MACD;MACA;IACF,GAAG,EAAE;EACP;EAEA,oBAAO/B,KAAA,CAAAgC,aAAA,CAAC7B,2BAAA;IAA4B8B,KAAA,EAAOjB;KAAmBN,QAAA;AAChE"}
1
+ {"version":3,"names":["React","fluentProviderClassNames","useThemeClassName","PortalCompatContextProvider","applyFocusVisiblePolyfill","CLASS_NAME_REGEX","RegExp","root","PortalCompatProvider","props","children","themeClassName","cssVariablesClassName","useMemo","_themeClassName_match","match","registerPortalEl","useCallback","element","disposeFocusVisiblePolyfill","undefined","classList","add","ownerDocument","defaultView","remove","process","env","NODE_ENV","useEffect","console","warn","createElement","value"],"sources":["../src/PortalCompatProvider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { fluentProviderClassNames, useThemeClassName } from '@fluentui/react-components';\nimport { PortalCompatContextProvider } from '@fluentui/react-portal-compat-context';\nimport { applyFocusVisiblePolyfill } from '@fluentui/react-tabster';\n\nimport type { RegisterPortalFn } from '@fluentui/react-portal-compat-context';\n\nconst CLASS_NAME_REGEX = new RegExp(`(${fluentProviderClassNames.root}\\\\d+)`);\n\nexport const PortalCompatProvider: React.FC<{ children?: React.ReactNode }> = props => {\n const { children } = props;\n\n const themeClassName = useThemeClassName();\n const cssVariablesClassName = React.useMemo<string | undefined>(\n // \"themeClassName\" may contain multiple classes while we want to add only a class that hosts CSS variables\n // Keep in sync with \"packages/react-provider/src/components/FluentProvider/useFluentProviderThemeStyleTag.ts\"\n () => themeClassName.match(CLASS_NAME_REGEX)?.[1],\n [themeClassName],\n );\n\n const registerPortalEl = React.useCallback<RegisterPortalFn>(\n element => {\n let disposeFocusVisiblePolyfill: () => void = () => undefined;\n if (cssVariablesClassName) {\n element.classList.add(cssVariablesClassName);\n if (element.ownerDocument.defaultView) {\n disposeFocusVisiblePolyfill = applyFocusVisiblePolyfill(element, element.ownerDocument.defaultView);\n }\n }\n\n return () => {\n if (cssVariablesClassName) {\n element.classList.remove(cssVariablesClassName);\n }\n disposeFocusVisiblePolyfill();\n };\n },\n [cssVariablesClassName],\n );\n\n if (process.env.NODE_ENV !== 'production') {\n // This if statement technically breaks the rules of hooks, but ENV variables never change during app lifecycle\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (themeClassName === '') {\n // eslint-disable-next-line no-console\n console.warn(`\n PortalCompatProvider: \"useThemeClassName()\" hook returned an empty string\n =============================================\n Make sure that PortalCompatProvider is rendered inside FluentProvider as a child.\n `);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n }\n\n return <PortalCompatContextProvider value={registerPortalEl}>{children}</PortalCompatContextProvider>;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,wBAAwB,EAAEC,iBAAiB,QAAQ;AAC5D,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,yBAAyB,QAAQ;AAI1C,MAAMC,gBAAA,gBAAmB,IAAIC,MAAA,CAAQ,IAAGL,wBAAA,CAAyBM,IAAK,OAAM;AAE5E,OAAO,MAAMC,oBAAA,GAAiEC,KAAA,IAAS;EACrF,MAAM;IAAEC;EAAQ,CAAE,GAAGD,KAAA;EAErB,MAAME,cAAA,GAAiBT,iBAAA;EACvB,MAAMU,qBAAA,GAAwBZ,KAAA,CAAMa,OAAO;EACzC;EACA;EACA;QAAMC,qBAAA;IAAA,QAAAA,qBAAA,GAAAH,cAAA,CAAeI,KAAK,CAACV,gBAAA,eAArBS,qBAAA,uBAAAA,qBAAwC,CAAC,EAAE;KACjD,CAACH,cAAA,CAAe;EAGlB,MAAMK,gBAAA,GAAmBhB,KAAA,CAAMiB,WAAW,CACxCC,OAAA,IAAW;IACT,IAAIC,2BAAA,GAA0CA,CAAA,KAAMC,SAAA;IACpD,IAAIR,qBAAA,EAAuB;MACzBM,OAAA,CAAQG,SAAS,CAACC,GAAG,CAACV,qBAAA;MACtB,IAAIM,OAAA,CAAQK,aAAa,CAACC,WAAW,EAAE;QACrCL,2BAAA,GAA8Bf,yBAAA,CAA0Bc,OAAA,EAASA,OAAA,CAAQK,aAAa,CAACC,WAAW;MACpG;IACF;IAEA,OAAO,MAAM;MACX,IAAIZ,qBAAA,EAAuB;QACzBM,OAAA,CAAQG,SAAS,CAACI,MAAM,CAACb,qBAAA;MAC3B;MACAO,2BAAA;IACF;EACF,GACA,CAACP,qBAAA,CAAsB;EAGzB,IAAIc,OAAA,CAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACzC;IACA;IACA5B,KAAA,CAAM6B,SAAS,CAAC,MAAM;MACpB,IAAIlB,cAAA,KAAmB,IAAI;QACzB;QACAmB,OAAA,CAAQC,IAAI,CAAE;;;;OAIf;MACD;MACA;IACF,GAAG,EAAE;EACP;EAEA,oBAAO/B,KAAA,CAAAgC,aAAA,CAAC7B,2BAAA;IAA4B8B,KAAA,EAAOjB;KAAmBN,QAAA;AAChE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal-compat",
3
- "version": "9.0.50",
3
+ "version": "9.0.52",
4
4
  "description": "A package that contains compatibility layer for React Portals",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
- "@fluentui/react-components": "^9.18.7",
29
+ "@fluentui/react-components": "^9.18.9",
30
30
  "@fluentui/react-shared-contexts": "^9.3.3",
31
31
  "@fluentui/scripts-api-extractor": "*",
32
32
  "@fluentui/scripts-cypress": "*",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@fluentui/react-portal-compat-context": "^9.0.5",
37
- "@fluentui/react-tabster": "^9.6.3",
37
+ "@fluentui/react-tabster": "^9.6.4",
38
38
  "@swc/helpers": "^0.4.14"
39
39
  },
40
40
  "peerDependencies": {
41
- "@fluentui/react-components": "^9.18.7",
41
+ "@fluentui/react-components": "^9.18.9",
42
42
  "@types/react": ">=16.8.0 <19.0.0",
43
43
  "react": ">=16.8.0 <19.0.0"
44
44
  },