@fluentui/react-jsx-runtime 9.2.2 → 9.3.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.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Wed, 08 Oct 2025 12:00:20 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 31 Oct 2025 16:17:38 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.3.1)
8
+
9
+ Fri, 31 Oct 2025 16:17:38 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.3.0..@fluentui/react-jsx-runtime_v9.3.1)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-utilities to v9.25.2 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
15
+
16
+ ## [9.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.3.0)
17
+
18
+ Tue, 21 Oct 2025 14:16:59 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.2.2..@fluentui/react-jsx-runtime_v9.3.0)
20
+
21
+ ### Minor changes
22
+
23
+ - feat: implement custom JSX namespace instead of @ts-ignore workaround ([PR #35295](https://github.com/microsoft/fluentui/pull/35295) by martinhochel@microsoft.com)
24
+
7
25
  ## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.2.2)
8
26
 
9
- Wed, 08 Oct 2025 12:00:20 GMT
27
+ Wed, 08 Oct 2025 12:04:53 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.2.1..@fluentui/react-jsx-runtime_v9.2.2)
11
29
 
12
30
  ### Patches
@@ -1,13 +1,23 @@
1
- // NOTE (React 17,18):
2
- // - exposes JSX namespace in React <19
3
- // - this bare import wont enhance global scope with JSX namespace as it doesn't exists in React >=19.
4
- // - In React 19 it causes no harm so can live as is
5
- import 'react/jsx-dev-runtime';
1
+ import type * as React from 'react';
6
2
 
7
- // NOTE (React 19):
8
- // - exposes JSX namespace in React >=19
9
- // - JSX export doesn't exists in React <=17. To make our runtime compatible across various React major versions we need to expose JSX namespace to type checker
10
- // - In React 17 it causes tsc to fail, thus we need to turn checker off
3
+ /**
4
+ * Cross React Major Version compatible Intrinsic Element Keys
5
+ */
6
+ type JSXIntrinsicElementKeys = Exclude<React.ElementType, React.ComponentType>
7
+ /**
8
+ * Cross React Major Version compatible IntrinsicElement Dictionary
9
+ */
10
+ type JSXIntrinsicElements = { [K in JSXIntrinsicElementKeys]: React.ComponentProps<K> };
11
11
 
12
- // @ts-ignore
13
- export type { JSX } from 'react/jsx-dev-runtime'
12
+ export namespace JSX {
13
+ type ElementType = string | React.JSXElementConstructor<any>;
14
+ interface Element extends React.ReactElement<any, any> {}
15
+ interface ElementClass extends React.Component<any> {
16
+ render(): React.ReactNode;
17
+ }
18
+ interface ElementAttributesProperty { props : {} }
19
+ interface ElementChildrenAttribute { children: {} }
20
+ interface IntrinsicAttributes extends React.Attributes {}
21
+ interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> {}
22
+ interface IntrinsicElements extends JSXIntrinsicElements {}
23
+ }
@@ -1,13 +1,23 @@
1
- // NOTE (React 17,18):
2
- // - exposes JSX namespace in React <19
3
- // - this bare import wont enhance global scope with JSX namespace as it doesn't exists in React >=19.
4
- // - In React 19 it causes no harm so can live as is
5
- import 'react/jsx-runtime';
1
+ import type * as React from 'react';
6
2
 
7
- // NOTE (React 19):
8
- // - exposes JSX namespace in React >=19
9
- // - JSX export doesn't exists in React <=17. To make our runtime compatible across various React major versions we need to expose JSX namespace to type checker
10
- // - In React 17 it causes tsc to fail, thus we need to turn checker off
3
+ /**
4
+ * Cross React Major Version compatible Intrinsic Element Keys
5
+ */
6
+ type JSXIntrinsicElementKeys = Exclude<React.ElementType, React.ComponentType>
7
+ /**
8
+ * Cross React Major Version compatible IntrinsicElement Dictionary
9
+ */
10
+ type JSXIntrinsicElements = { [K in JSXIntrinsicElementKeys]: React.ComponentProps<K> };
11
11
 
12
- // @ts-ignore
13
- export type { JSX } from 'react/jsx-runtime'
12
+ export namespace JSX {
13
+ type ElementType = string | React.JSXElementConstructor<any>;
14
+ interface Element extends React.ReactElement<any, any> {}
15
+ interface ElementClass extends React.Component<any> {
16
+ render(): React.ReactNode;
17
+ }
18
+ interface ElementAttributesProperty { props : {} }
19
+ interface ElementChildrenAttribute { children: {} }
20
+ interface IntrinsicAttributes extends React.Attributes {}
21
+ interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> {}
22
+ interface IntrinsicElements extends JSXIntrinsicElements {}
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "9.2.2",
3
+ "version": "9.3.1",
4
4
  "description": "Custom JSX runtime for @fluentui/react-components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,7 +18,7 @@
18
18
  "@fluentui/scripts-api-extractor": "*"
19
19
  },
20
20
  "dependencies": {
21
- "@fluentui/react-utilities": "^9.25.1",
21
+ "@fluentui/react-utilities": "^9.25.2",
22
22
  "react-is": "^17.0.2",
23
23
  "@swc/helpers": "^0.5.1"
24
24
  },