@fluentui/react-jsx-runtime 9.4.4 → 9.4.5
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 +12 -2
- package/dist/index.d.cts +8 -0
- package/dist/jsx-dev-runtime.d.cts +23 -0
- package/dist/jsx-runtime.d.cts +23 -0
- package/lib/createElement.js +4 -4
- package/lib/createElement.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/jsx/createElementFromSlotComponent.js +2 -2
- package/lib/jsx/createElementFromSlotComponent.js.map +1 -1
- package/lib/jsx/createJSX.js +3 -3
- package/lib/jsx/createJSX.js.map +1 -1
- package/lib/jsx/jsxDEVSlot.js +3 -3
- package/lib/jsx/jsxDEVSlot.js.map +1 -1
- package/lib/jsx/jsxSlot.js +3 -3
- package/lib/jsx/jsxSlot.js.map +1 -1
- package/lib/jsx/jsxsSlot.js +3 -3
- package/lib/jsx/jsxsSlot.js.map +1 -1
- package/lib/jsx-dev-runtime.js +4 -4
- package/lib/jsx-dev-runtime.js.map +1 -1
- package/lib/jsx-runtime.js +5 -5
- package/lib/jsx-runtime.js.map +1 -1
- package/lib/utils/DevRuntime.js +1 -1
- package/lib/utils/Runtime.js +1 -1
- package/lib/utils/createCompatSlotComponent.js +1 -1
- package/lib/utils/getMetadataFromSlotComponent.js +1 -1
- package/lib-commonjs/{createElement.js → createElement.cjs} +2 -2
- package/lib-commonjs/{index.js → index.cjs} +1 -1
- package/lib-commonjs/jsx/{createElementFromSlotComponent.js → createElementFromSlotComponent.cjs} +1 -1
- package/lib-commonjs/jsx/{createJSX.js → createJSX.cjs} +2 -2
- package/lib-commonjs/jsx/{jsxDEVSlot.js → jsxDEVSlot.cjs} +2 -2
- package/lib-commonjs/jsx/{jsxSlot.js → jsxSlot.cjs} +2 -2
- package/lib-commonjs/jsx/{jsxsSlot.js → jsxsSlot.cjs} +2 -2
- package/lib-commonjs/{jsx-dev-runtime.js → jsx-dev-runtime.cjs} +3 -3
- package/lib-commonjs/{jsx-runtime.js → jsx-runtime.cjs} +4 -4
- package/package.json +30 -16
- /package/lib-commonjs/{createElement.js.map → createElement.cjs.map} +0 -0
- /package/lib-commonjs/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/jsx/{createElementFromSlotComponent.js.map → createElementFromSlotComponent.cjs.map} +0 -0
- /package/lib-commonjs/jsx/{createJSX.js.map → createJSX.cjs.map} +0 -0
- /package/lib-commonjs/jsx/{jsxDEVSlot.js.map → jsxDEVSlot.cjs.map} +0 -0
- /package/lib-commonjs/jsx/{jsxSlot.js.map → jsxSlot.cjs.map} +0 -0
- /package/lib-commonjs/jsx/{jsxsSlot.js.map → jsxsSlot.cjs.map} +0 -0
- /package/lib-commonjs/{jsx-dev-runtime.js.map → jsx-dev-runtime.cjs.map} +0 -0
- /package/lib-commonjs/{jsx-namespace.test.d.js → jsx-namespace.test.d.cjs} +0 -0
- /package/lib-commonjs/{jsx-namespace.test.d.js.map → jsx-namespace.test.d.cjs.map} +0 -0
- /package/lib-commonjs/{jsx-runtime.js.map → jsx-runtime.cjs.map} +0 -0
- /package/lib-commonjs/utils/{DevRuntime.js → DevRuntime.cjs} +0 -0
- /package/lib-commonjs/utils/{DevRuntime.js.map → DevRuntime.cjs.map} +0 -0
- /package/lib-commonjs/utils/{Runtime.js → Runtime.cjs} +0 -0
- /package/lib-commonjs/utils/{Runtime.js.map → Runtime.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createCompatSlotComponent.js → createCompatSlotComponent.cjs} +0 -0
- /package/lib-commonjs/utils/{createCompatSlotComponent.js.map → createCompatSlotComponent.cjs.map} +0 -0
- /package/lib-commonjs/utils/{getMetadataFromSlotComponent.js → getMetadataFromSlotComponent.cjs} +0 -0
- /package/lib-commonjs/utils/{getMetadataFromSlotComponent.js.map → getMetadataFromSlotComponent.cjs.map} +0 -0
- /package/lib-commonjs/utils/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/utils/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/utils/{warnIfElementTypeIsInvalid.js → warnIfElementTypeIsInvalid.cjs} +0 -0
- /package/lib-commonjs/utils/{warnIfElementTypeIsInvalid.js.map → warnIfElementTypeIsInvalid.cjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-jsx-runtime
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 11 Aug 2026 17:16:02 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.4.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.4.5)
|
|
8
|
+
|
|
9
|
+
Tue, 11 Aug 2026 17:16:02 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.4.4..@fluentui/react-jsx-runtime_v9.4.5)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- 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)
|
|
15
|
+
- Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
|
|
7
17
|
## [9.4.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.4.4)
|
|
8
18
|
|
|
9
|
-
Wed, 24 Jun 2026 11:
|
|
19
|
+
Wed, 24 Jun 2026 11:10:10 GMT
|
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.4.3..@fluentui/react-jsx-runtime_v9.4.4)
|
|
11
21
|
|
|
12
22
|
### Patches
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Fragment } from 'react';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function createElement<P extends {}>(type: React_2.ElementType<P>, props?: P | null, ...children: React_2.ReactNode[]): React_2.ReactElement<P>;
|
|
5
|
+
|
|
6
|
+
export { Fragment }
|
|
7
|
+
|
|
8
|
+
export { }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
|
|
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
|
+
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
|
|
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
|
+
|
|
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/lib/createElement.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { isSlot } from
|
|
3
|
-
import { createElementFromSlotComponent } from
|
|
4
|
-
import { createCompatSlotComponent } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { isSlot } from "@fluentui/react-utilities";
|
|
3
|
+
import { createElementFromSlotComponent } from "./jsx/createElementFromSlotComponent.js";
|
|
4
|
+
import { createCompatSlotComponent } from "./utils/createCompatSlotComponent.js";
|
|
5
5
|
export function createElement(type, props, ...children) {
|
|
6
6
|
// TODO:
|
|
7
7
|
// this is for backwards compatibility with getSlotsNext
|
package/lib/createElement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/createElement.ts"],"sourcesContent":["import * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { createElementFromSlotComponent } from './jsx/createElementFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\n\nexport function createElement<P extends {}>(\n type: React.ElementType<P>,\n props?: P | null,\n ...children: React.ReactNode[]\n): React.ReactElement<P> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<P>(props)) {\n return createElementFromSlotComponent(createCompatSlotComponent(type, props), children);\n }\n if (isSlot<P>(type)) {\n return createElementFromSlotComponent(type, children);\n }\n return React.createElement(type, props, ...children);\n}\n"],"names":["React","isSlot","createElementFromSlotComponent","createCompatSlotComponent","createElement","type","props","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,8BAA8B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/createElement.ts"],"sourcesContent":["import * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { createElementFromSlotComponent } from './jsx/createElementFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\n\nexport function createElement<P extends {}>(\n type: React.ElementType<P>,\n props?: P | null,\n ...children: React.ReactNode[]\n): React.ReactElement<P> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<P>(props)) {\n return createElementFromSlotComponent(createCompatSlotComponent(type, props), children);\n }\n if (isSlot<P>(type)) {\n return createElementFromSlotComponent(type, children);\n }\n return React.createElement(type, props, ...children);\n}\n"],"names":["React","isSlot","createElementFromSlotComponent","createCompatSlotComponent","createElement","type","props","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,8BAA8B,QAAQ,0CAAuC;AACtF,SAASC,yBAAyB,QAAQ,uCAAoC;AAE9E,OAAO,SAASC,cACdC,IAA0B,EAC1BC,KAAgB,EAChB,GAAGC,QAA2B;IAE9B,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIN,OAAUK,QAAQ;QACpB,OAAOJ,+BAA+BC,0BAA0BE,MAAMC,QAAQC;IAChF;IACA,IAAIN,OAAUI,OAAO;QACnB,OAAOH,+BAA+BG,MAAME;IAC9C;IACA,OAAOP,MAAMI,aAAa,CAACC,MAAMC,UAAUC;AAC7C"}
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createElement } from
|
|
2
|
-
export { Fragment } from
|
|
1
|
+
export { createElement } from "./createElement.js";
|
|
2
|
+
export { Fragment } from "react";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n"],"names":["createElement","Fragment"],"mappings":"AAAA,SAASA,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n"],"names":["createElement","Fragment"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAkB;AAChD,SAASC,QAAQ,QAAQ,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { getMetadataFromSlotComponent } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getMetadataFromSlotComponent } from "../utils/getMetadataFromSlotComponent.js";
|
|
3
3
|
/**
|
|
4
4
|
* creates a ReactElement from a slot declaration
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/createElementFromSlotComponent.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\n\n/**\n * creates a ReactElement from a slot declaration\n *\n * @internal\n */\nexport function createElementFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideChildren: React.ReactNode[],\n): React.ReactElement<Props> {\n const { elementType, renderFunction, props } = getMetadataFromSlotComponent(type);\n\n if (renderFunction) {\n if (overrideChildren.length > 0) {\n props.children = React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n\n return React.createElement(\n React.Fragment,\n {},\n renderFunction(elementType as React.ElementType<Props>, props),\n ) as React.ReactElement<Props>;\n }\n\n return React.createElement(elementType, props, ...overrideChildren);\n}\n"],"names":["React","getMetadataFromSlotComponent","createElementFromSlotComponent","type","overrideChildren","elementType","renderFunction","props","length","children","createElement","Fragment"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx/createElementFromSlotComponent.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\n\n/**\n * creates a ReactElement from a slot declaration\n *\n * @internal\n */\nexport function createElementFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideChildren: React.ReactNode[],\n): React.ReactElement<Props> {\n const { elementType, renderFunction, props } = getMetadataFromSlotComponent(type);\n\n if (renderFunction) {\n if (overrideChildren.length > 0) {\n props.children = React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n\n return React.createElement(\n React.Fragment,\n {},\n renderFunction(elementType as React.ElementType<Props>, props),\n ) as React.ReactElement<Props>;\n }\n\n return React.createElement(elementType, props, ...overrideChildren);\n}\n"],"names":["React","getMetadataFromSlotComponent","createElementFromSlotComponent","type","overrideChildren","elementType","renderFunction","props","length","children","createElement","Fragment"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,2CAAwC;AAErF;;;;CAIC,GACD,OAAO,SAASC,+BACdC,IAA8B,EAC9BC,gBAAmC;IAEnC,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,KAAK,EAAE,GAAGN,6BAA6BE;IAE5E,IAAIG,gBAAgB;QAClB,IAAIF,iBAAiBI,MAAM,GAAG,GAAG;YAC/BD,MAAME,QAAQ,GAAGT,MAAMU,aAAa,CAACV,MAAMW,QAAQ,EAAE,CAAC,MAAMP;QAC9D;QAEA,OAAOJ,MAAMU,aAAa,CACxBV,MAAMW,QAAQ,EACd,CAAC,GACDL,eAAeD,aAAyCE;IAE5D;IAEA,OAAOP,MAAMU,aAAa,CAACL,aAAaE,UAAUH;AACpD"}
|
package/lib/jsx/createJSX.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isSlot } from
|
|
2
|
-
import { createCompatSlotComponent } from
|
|
3
|
-
import { warnIfElementTypeIsInvalid } from
|
|
1
|
+
import { isSlot } from "@fluentui/react-utilities";
|
|
2
|
+
import { createCompatSlotComponent } from "../utils/createCompatSlotComponent.js";
|
|
3
|
+
import { warnIfElementTypeIsInvalid } from "../utils/warnIfElementTypeIsInvalid.js";
|
|
4
4
|
export function createJSX(runtime, slotRuntime) {
|
|
5
5
|
return function jsx(type, overrideProps, key, source, self) {
|
|
6
6
|
// TODO:
|
package/lib/jsx/createJSX.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/createJSX.ts"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport type * as React from 'react';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\nimport type { JSXRuntime, JSXSlotRuntime } from '../utils/types';\nimport { warnIfElementTypeIsInvalid } from '../utils/warnIfElementTypeIsInvalid';\n\nexport function createJSX(runtime: JSXRuntime, slotRuntime: JSXSlotRuntime) {\n return function jsx<Props extends {}>(\n type: React.ElementType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n ): React.ReactElement<Props> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<Props>(overrideProps)) {\n return slotRuntime<Props>(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot<Props>(type)) {\n return slotRuntime(type, overrideProps, key, source, self);\n }\n warnIfElementTypeIsInvalid(type);\n return runtime(type, overrideProps, key, source, self);\n };\n}\n"],"names":["isSlot","createCompatSlotComponent","warnIfElementTypeIsInvalid","createJSX","runtime","slotRuntime","jsx","type","overrideProps","key","source","self"],"mappings":"AAAA,SAASA,MAAM,QAAQ,4BAA4B;AAEnD,SAASC,yBAAyB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx/createJSX.ts"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport type * as React from 'react';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\nimport type { JSXRuntime, JSXSlotRuntime } from '../utils/types';\nimport { warnIfElementTypeIsInvalid } from '../utils/warnIfElementTypeIsInvalid';\n\nexport function createJSX(runtime: JSXRuntime, slotRuntime: JSXSlotRuntime) {\n return function jsx<Props extends {}>(\n type: React.ElementType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n ): React.ReactElement<Props> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<Props>(overrideProps)) {\n return slotRuntime<Props>(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot<Props>(type)) {\n return slotRuntime(type, overrideProps, key, source, self);\n }\n warnIfElementTypeIsInvalid(type);\n return runtime(type, overrideProps, key, source, self);\n };\n}\n"],"names":["isSlot","createCompatSlotComponent","warnIfElementTypeIsInvalid","createJSX","runtime","slotRuntime","jsx","type","overrideProps","key","source","self"],"mappings":"AAAA,SAASA,MAAM,QAAQ,4BAA4B;AAEnD,SAASC,yBAAyB,QAAQ,wCAAqC;AAE/E,SAASC,0BAA0B,QAAQ,yCAAsC;AAEjF,OAAO,SAASC,UAAUC,OAAmB,EAAEC,WAA2B;IACxE,OAAO,SAASC,IACdC,IAA8B,EAC9BC,aAA2B,EAC3BC,GAAe,EACfC,MAAgB,EAChBC,IAAc;QAEd,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIX,OAAcQ,gBAAgB;YAChC,OAAOH,YAAmBJ,0BAA0BM,MAAMC,gBAAgB,MAAMC,KAAKC,QAAQC;QAC/F;QACA,IAAIX,OAAcO,OAAO;YACvB,OAAOF,YAAYE,MAAMC,eAAeC,KAAKC,QAAQC;QACvD;QACAT,2BAA2BK;QAC3B,OAAOH,QAAQG,MAAMC,eAAeC,KAAKC,QAAQC;IACnD;AACF"}
|
package/lib/jsx/jsxDEVSlot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { getMetadataFromSlotComponent } from
|
|
3
|
-
import { DevRuntime } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getMetadataFromSlotComponent } from "../utils/getMetadataFromSlotComponent.js";
|
|
3
|
+
import { DevRuntime } from "../utils/DevRuntime.js";
|
|
4
4
|
export const jsxDEVSlot = (type, overrideProps, key, source, self)=>{
|
|
5
5
|
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
6
|
const props = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/jsxDEVSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { DevRuntime } from '../utils/DevRuntime';\n\nexport const jsxDEVSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n // if runtime is static\n if (source === true) {\n return DevRuntime.jsxDEV(\n React.Fragment,\n {\n children: renderFunction(elementType, {\n ...props,\n /**\n * If the runtime is static then children is an array and this array won't be keyed.\n * Then we should wrap children by a static fragment\n * as there's no way to know if renderFunction will render statically or dynamically\n */\n children: DevRuntime.jsxDEV(React.Fragment, { children: props.children }, undefined, true, self),\n }),\n },\n key,\n false, // by marking source as false we're declaring that this render is dynamic\n self,\n ) as React.ReactElement<Props>;\n }\n // if runtime is dynamic (source = false) things are simpler\n return DevRuntime.jsxDEV(\n React.Fragment,\n { children: renderFunction(elementType, props) },\n key,\n source,\n self,\n ) as React.ReactElement<Props>;\n }\n return DevRuntime.jsxDEV(elementType, props, key, source, self);\n};\n"],"names":["React","getMetadataFromSlotComponent","DevRuntime","jsxDEVSlot","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","jsxDEV","Fragment","children","undefined"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx/jsxDEVSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { DevRuntime } from '../utils/DevRuntime';\n\nexport const jsxDEVSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n // if runtime is static\n if (source === true) {\n return DevRuntime.jsxDEV(\n React.Fragment,\n {\n children: renderFunction(elementType, {\n ...props,\n /**\n * If the runtime is static then children is an array and this array won't be keyed.\n * Then we should wrap children by a static fragment\n * as there's no way to know if renderFunction will render statically or dynamically\n */\n children: DevRuntime.jsxDEV(React.Fragment, { children: props.children }, undefined, true, self),\n }),\n },\n key,\n false, // by marking source as false we're declaring that this render is dynamic\n self,\n ) as React.ReactElement<Props>;\n }\n // if runtime is dynamic (source = false) things are simpler\n return DevRuntime.jsxDEV(\n React.Fragment,\n { children: renderFunction(elementType, props) },\n key,\n source,\n self,\n ) as React.ReactElement<Props>;\n }\n return DevRuntime.jsxDEV(elementType, props, key, source, self);\n};\n"],"names":["React","getMetadataFromSlotComponent","DevRuntime","jsxDEVSlot","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","jsxDEV","Fragment","children","undefined"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,2CAAwC;AACrF,SAASC,UAAU,QAAQ,yBAAsB;AAEjD,OAAO,MAAMC,aAAa,CACxBC,MACAC,eACAC,KACAC,QACAC;IAEA,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGX,6BAA6BG;IAEvF,MAAMO,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGP,aAAa;IAAC;IAEtD,IAAIK,gBAAgB;QAClB,uBAAuB;QACvB,IAAIH,WAAW,MAAM;YACnB,OAAOL,WAAWW,MAAM,CACtBb,MAAMc,QAAQ,EACd;gBACEC,UAAUL,eAAeD,aAAa;oBACpC,GAAGE,KAAK;oBACR;;;;aAIC,GACDI,UAAUb,WAAWW,MAAM,CAACb,MAAMc,QAAQ,EAAE;wBAAEC,UAAUJ,MAAMI,QAAQ;oBAAC,GAAGC,WAAW,MAAMR;gBAC7F;YACF,GACAF,KACA,OACAE;QAEJ;QACA,4DAA4D;QAC5D,OAAON,WAAWW,MAAM,CACtBb,MAAMc,QAAQ,EACd;YAAEC,UAAUL,eAAeD,aAAaE;QAAO,GAC/CL,KACAC,QACAC;IAEJ;IACA,OAAON,WAAWW,MAAM,CAACJ,aAAaE,OAAOL,KAAKC,QAAQC;AAC5D,EAAE"}
|
package/lib/jsx/jsxSlot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { getMetadataFromSlotComponent } from
|
|
3
|
-
import { Runtime } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getMetadataFromSlotComponent } from "../utils/getMetadataFromSlotComponent.js";
|
|
3
|
+
import { Runtime } from "../utils/Runtime.js";
|
|
4
4
|
export const jsxSlot = (type, overrideProps, key)=>{
|
|
5
5
|
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
6
|
const props = {
|
package/lib/jsx/jsxSlot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/jsxSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\nexport const jsxSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return Runtime.jsx(\n React.Fragment,\n { children: renderFunction(elementType, props) },\n key,\n ) as React.ReactElement<Props>;\n }\n return Runtime.jsx(elementType, props, key);\n};\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsx","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx/jsxSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\nexport const jsxSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return Runtime.jsx(\n React.Fragment,\n { children: renderFunction(elementType, props) },\n key,\n ) as React.ReactElement<Props>;\n }\n return Runtime.jsx(elementType, props, key);\n};\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsx","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,2CAAwC;AACrF,SAASC,OAAO,QAAQ,sBAAmB;AAE3C,OAAO,MAAMC,UAAU,CACrBC,MACAC,eACAC;IAEA,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGT,6BAA6BG;IAEvF,MAAMK,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGL,aAAa;IAAC;IAEtD,IAAIG,gBAAgB;QAClB,OAAON,QAAQS,GAAG,CAChBX,MAAMY,QAAQ,EACd;YAAEC,UAAUL,eAAeD,aAAaE;QAAO,GAC/CH;IAEJ;IACA,OAAOJ,QAAQS,GAAG,CAACJ,aAAaE,OAAOH;AACzC,EAAE"}
|
package/lib/jsx/jsxsSlot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { getMetadataFromSlotComponent } from
|
|
3
|
-
import { Runtime } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getMetadataFromSlotComponent } from "../utils/getMetadataFromSlotComponent.js";
|
|
3
|
+
import { Runtime } from "../utils/Runtime.js";
|
|
4
4
|
export const jsxsSlot = (type, overrideProps, key)=>{
|
|
5
5
|
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
6
|
const props = {
|
package/lib/jsx/jsxsSlot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/jsxsSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\nexport const jsxsSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n /**\n * In static runtime then children is an array and this array won't be keyed.\n * We should wrap children by a static fragment\n * as there's no way to know if renderFunction will render statically or dynamically\n */\n return Runtime.jsx(\n React.Fragment,\n {\n children: renderFunction(elementType, {\n ...props,\n children: Runtime.jsxs(React.Fragment, { children: props.children }, undefined),\n }),\n },\n key,\n ) as React.ReactElement<Props>;\n }\n return Runtime.jsxs(elementType, props, key);\n};\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxsSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsx","Fragment","children","jsxs","undefined"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx/jsxsSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\nexport const jsxsSlot = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n /**\n * In static runtime then children is an array and this array won't be keyed.\n * We should wrap children by a static fragment\n * as there's no way to know if renderFunction will render statically or dynamically\n */\n return Runtime.jsx(\n React.Fragment,\n {\n children: renderFunction(elementType, {\n ...props,\n children: Runtime.jsxs(React.Fragment, { children: props.children }, undefined),\n }),\n },\n key,\n ) as React.ReactElement<Props>;\n }\n return Runtime.jsxs(elementType, props, key);\n};\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxsSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsx","Fragment","children","jsxs","undefined"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,2CAAwC;AACrF,SAASC,OAAO,QAAQ,sBAAmB;AAE3C,OAAO,MAAMC,WAAW,CACtBC,MACAC,eACAC;IAEA,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGT,6BAA6BG;IAEvF,MAAMK,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGL,aAAa;IAAC;IAEtD,IAAIG,gBAAgB;QAClB;;;;KAIC,GACD,OAAON,QAAQS,GAAG,CAChBX,MAAMY,QAAQ,EACd;YACEC,UAAUL,eAAeD,aAAa;gBACpC,GAAGE,KAAK;gBACRI,UAAUX,QAAQY,IAAI,CAACd,MAAMY,QAAQ,EAAE;oBAAEC,UAAUJ,MAAMI,QAAQ;gBAAC,GAAGE;YACvE;QACF,GACAT;IAEJ;IACA,OAAOJ,QAAQY,IAAI,CAACP,aAAaE,OAAOH;AAC1C,EAAE"}
|
package/lib/jsx-dev-runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createJSX } from
|
|
2
|
-
import { jsxDEVSlot } from
|
|
3
|
-
import { DevRuntime } from
|
|
4
|
-
export { Fragment } from
|
|
1
|
+
import { createJSX } from "./jsx/createJSX.js";
|
|
2
|
+
import { jsxDEVSlot } from "./jsx/jsxDEVSlot.js";
|
|
3
|
+
import { DevRuntime } from "./utils/DevRuntime.js";
|
|
4
|
+
export { Fragment } from "react";
|
|
5
5
|
export const jsxDEV = createJSX(DevRuntime.jsxDEV, jsxDEVSlot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxDEVSlot } from './jsx/jsxDEVSlot';\nimport { DevRuntime } from './utils/DevRuntime';\n\nexport { Fragment } from 'react';\n\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV, jsxDEVSlot);\n"],"names":["createJSX","jsxDEVSlot","DevRuntime","Fragment","jsxDEV"],"mappings":"AAAA,SAASA,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxDEVSlot } from './jsx/jsxDEVSlot';\nimport { DevRuntime } from './utils/DevRuntime';\n\nexport { Fragment } from 'react';\n\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV, jsxDEVSlot);\n"],"names":["createJSX","jsxDEVSlot","DevRuntime","Fragment","jsxDEV"],"mappings":"AAAA,SAASA,SAAS,QAAQ,qBAAkB;AAC5C,SAASC,UAAU,QAAQ,sBAAmB;AAC9C,SAASC,UAAU,QAAQ,wBAAqB;AAEhD,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,SAASJ,UAAUE,WAAWE,MAAM,EAAEH,YAAY"}
|
package/lib/jsx-runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createJSX } from
|
|
2
|
-
import { jsxSlot } from
|
|
3
|
-
import { jsxsSlot } from
|
|
4
|
-
import { Runtime } from
|
|
5
|
-
export { Fragment } from
|
|
1
|
+
import { createJSX } from "./jsx/createJSX.js";
|
|
2
|
+
import { jsxSlot } from "./jsx/jsxSlot.js";
|
|
3
|
+
import { jsxsSlot } from "./jsx/jsxsSlot.js";
|
|
4
|
+
import { Runtime } from "./utils/Runtime.js";
|
|
5
|
+
export { Fragment } from "react";
|
|
6
6
|
export const jsx = createJSX(Runtime.jsx, jsxSlot);
|
|
7
7
|
export const jsxs = createJSX(Runtime.jsxs, jsxsSlot);
|
package/lib/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxSlot } from './jsx/jsxSlot';\nimport { jsxsSlot } from './jsx/jsxsSlot';\nimport { Runtime } from './utils/Runtime';\n\nexport { Fragment } from 'react';\n\nexport const jsx = createJSX(Runtime.jsx, jsxSlot);\nexport const jsxs = createJSX(Runtime.jsxs, jsxsSlot);\n"],"names":["createJSX","jsxSlot","jsxsSlot","Runtime","Fragment","jsx","jsxs"],"mappings":"AAAA,SAASA,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxSlot } from './jsx/jsxSlot';\nimport { jsxsSlot } from './jsx/jsxsSlot';\nimport { Runtime } from './utils/Runtime';\n\nexport { Fragment } from 'react';\n\nexport const jsx = createJSX(Runtime.jsx, jsxSlot);\nexport const jsxs = createJSX(Runtime.jsxs, jsxsSlot);\n"],"names":["createJSX","jsxSlot","jsxsSlot","Runtime","Fragment","jsx","jsxs"],"mappings":"AAAA,SAASA,SAAS,QAAQ,qBAAkB;AAC5C,SAASC,OAAO,QAAQ,mBAAgB;AACxC,SAASC,QAAQ,QAAQ,oBAAiB;AAC1C,SAASC,OAAO,QAAQ,qBAAkB;AAE1C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,MAAML,UAAUG,QAAQE,GAAG,EAAEJ,SAAS;AACnD,OAAO,MAAMK,OAAON,UAAUG,QAAQG,IAAI,EAAEJ,UAAU"}
|
package/lib/utils/DevRuntime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as ReactDevRuntime from
|
|
1
|
+
import * as ReactDevRuntime from "react/jsx-dev-runtime";
|
|
2
2
|
export const DevRuntime = ReactDevRuntime;
|
package/lib/utils/Runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as ReactRuntime from
|
|
1
|
+
import * as ReactRuntime from "react/jsx-runtime";
|
|
2
2
|
export const Runtime = ReactRuntime;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SLOT_CLASS_NAME_PROP_SYMBOL, SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from
|
|
1
|
+
import { SLOT_CLASS_NAME_PROP_SYMBOL, SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from "@fluentui/react-utilities";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/ export function getMetadataFromSlotComponent(type) {
|
|
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "createElement", {
|
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
13
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
14
|
-
const _createElementFromSlotComponent = require("./jsx/createElementFromSlotComponent");
|
|
15
|
-
const _createCompatSlotComponent = require("./utils/createCompatSlotComponent");
|
|
14
|
+
const _createElementFromSlotComponent = require("./jsx/createElementFromSlotComponent.cjs");
|
|
15
|
+
const _createCompatSlotComponent = require("./utils/createCompatSlotComponent.cjs");
|
|
16
16
|
function createElement(type, props, ...children) {
|
|
17
17
|
// TODO:
|
|
18
18
|
// this is for backwards compatibility with getSlotsNext
|
package/lib-commonjs/jsx/{createElementFromSlotComponent.js → createElementFromSlotComponent.cjs}
RENAMED
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "createElementFromSlotComponent", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent.cjs");
|
|
14
14
|
function createElementFromSlotComponent(type, overrideChildren) {
|
|
15
15
|
const { elementType, renderFunction, props } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
16
16
|
if (renderFunction) {
|
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, "createJSX", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
12
|
-
const _createCompatSlotComponent = require("../utils/createCompatSlotComponent");
|
|
13
|
-
const _warnIfElementTypeIsInvalid = require("../utils/warnIfElementTypeIsInvalid");
|
|
12
|
+
const _createCompatSlotComponent = require("../utils/createCompatSlotComponent.cjs");
|
|
13
|
+
const _warnIfElementTypeIsInvalid = require("../utils/warnIfElementTypeIsInvalid.cjs");
|
|
14
14
|
function createJSX(runtime, slotRuntime) {
|
|
15
15
|
return function jsx(type, overrideProps, key, source, self) {
|
|
16
16
|
// TODO:
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "jsxDEVSlot", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
-
const _DevRuntime = require("../utils/DevRuntime");
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent.cjs");
|
|
14
|
+
const _DevRuntime = require("../utils/DevRuntime.cjs");
|
|
15
15
|
const jsxDEVSlot = (type, overrideProps, key, source, self)=>{
|
|
16
16
|
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
17
|
const props = {
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "jsxSlot", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
-
const _Runtime = require("../utils/Runtime");
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent.cjs");
|
|
14
|
+
const _Runtime = require("../utils/Runtime.cjs");
|
|
15
15
|
const jsxSlot = (type, overrideProps, key)=>{
|
|
16
16
|
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
17
|
const props = {
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "jsxsSlot", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
-
const _Runtime = require("../utils/Runtime");
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent.cjs");
|
|
14
|
+
const _Runtime = require("../utils/Runtime.cjs");
|
|
15
15
|
const jsxsSlot = (type, overrideProps, key)=>{
|
|
16
16
|
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
17
|
const props = {
|
|
@@ -16,8 +16,8 @@ _export(exports, {
|
|
|
16
16
|
return jsxDEV;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const _createJSX = require("./jsx/createJSX");
|
|
20
|
-
const _jsxDEVSlot = require("./jsx/jsxDEVSlot");
|
|
21
|
-
const _DevRuntime = require("./utils/DevRuntime");
|
|
19
|
+
const _createJSX = require("./jsx/createJSX.cjs");
|
|
20
|
+
const _jsxDEVSlot = require("./jsx/jsxDEVSlot.cjs");
|
|
21
|
+
const _DevRuntime = require("./utils/DevRuntime.cjs");
|
|
22
22
|
const _react = require("react");
|
|
23
23
|
const jsxDEV = (0, _createJSX.createJSX)(_DevRuntime.DevRuntime.jsxDEV, _jsxDEVSlot.jsxDEVSlot);
|
|
@@ -19,10 +19,10 @@ _export(exports, {
|
|
|
19
19
|
return jsxs;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const _createJSX = require("./jsx/createJSX");
|
|
23
|
-
const _jsxSlot = require("./jsx/jsxSlot");
|
|
24
|
-
const _jsxsSlot = require("./jsx/jsxsSlot");
|
|
25
|
-
const _Runtime = require("./utils/Runtime");
|
|
22
|
+
const _createJSX = require("./jsx/createJSX.cjs");
|
|
23
|
+
const _jsxSlot = require("./jsx/jsxSlot.cjs");
|
|
24
|
+
const _jsxsSlot = require("./jsx/jsxsSlot.cjs");
|
|
25
|
+
const _Runtime = require("./utils/Runtime.cjs");
|
|
26
26
|
const _react = require("react");
|
|
27
27
|
const jsx = (0, _createJSX.createJSX)(_Runtime.Runtime.jsx, _jsxSlot.jsxSlot);
|
|
28
28
|
const jsxs = (0, _createJSX.createJSX)(_Runtime.Runtime.jsxs, _jsxsSlot.jsxsSlot);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-jsx-runtime",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.5",
|
|
4
4
|
"description": "Custom JSX runtime for @fluentui/react-components",
|
|
5
|
-
"main": "lib-commonjs/index.
|
|
5
|
+
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui/react-utilities": "^9.26.
|
|
15
|
+
"@fluentui/react-utilities": "^9.26.6",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -27,31 +27,45 @@
|
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./lib/index.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/index.d.cts",
|
|
36
|
+
"default": "./lib-commonjs/index.cjs"
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
"./jsx-dev-runtime": {
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/jsx-dev-runtime.d.ts",
|
|
42
|
+
"default": "./lib/jsx-dev-runtime.js"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/jsx-dev-runtime.d.cts",
|
|
46
|
+
"default": "./lib-commonjs/jsx-dev-runtime.cjs"
|
|
47
|
+
}
|
|
40
48
|
},
|
|
41
49
|
"./jsx-runtime": {
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
52
|
+
"default": "./lib/jsx-runtime.js"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/jsx-runtime.d.cts",
|
|
56
|
+
"default": "./lib-commonjs/jsx-runtime.cjs"
|
|
57
|
+
}
|
|
46
58
|
},
|
|
47
59
|
"./package.json": "./package.json"
|
|
48
60
|
},
|
|
49
61
|
"files": [
|
|
50
62
|
"*.md",
|
|
51
63
|
"dist/*.d.ts",
|
|
64
|
+
"dist/*.d.cts",
|
|
52
65
|
"jsx-dev-runtime",
|
|
53
66
|
"jsx-runtime",
|
|
54
67
|
"lib",
|
|
55
68
|
"lib-commonjs"
|
|
56
|
-
]
|
|
69
|
+
],
|
|
70
|
+
"type": "module"
|
|
57
71
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib-commonjs/utils/{createCompatSlotComponent.js.map → createCompatSlotComponent.cjs.map}
RENAMED
|
File without changes
|
/package/lib-commonjs/utils/{getMetadataFromSlotComponent.js → getMetadataFromSlotComponent.cjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib-commonjs/utils/{warnIfElementTypeIsInvalid.js → warnIfElementTypeIsInvalid.cjs}
RENAMED
|
File without changes
|
/package/lib-commonjs/utils/{warnIfElementTypeIsInvalid.js.map → warnIfElementTypeIsInvalid.cjs.map}
RENAMED
|
File without changes
|