@fluentui/react-jsx-runtime 9.0.8 → 9.0.9
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 +16 -1
- package/CHANGELOG.md +11 -2
- package/lib/jsx/createJSX.js +5 -23
- package/lib/jsx/createJSX.js.map +1 -1
- package/lib/jsx/jsxDEVSlot.js +32 -0
- package/lib/jsx/jsxDEVSlot.js.map +1 -0
- package/lib/jsx/jsxSlot.js +16 -0
- package/lib/jsx/jsxSlot.js.map +1 -0
- package/lib/jsx/jsxsSlot.js +25 -0
- package/lib/jsx/jsxsSlot.js.map +1 -0
- package/lib/jsx-dev-runtime.js +3 -2
- package/lib/jsx-dev-runtime.js.map +1 -1
- package/lib/jsx-runtime.js +5 -3
- package/lib/jsx-runtime.js.map +1 -1
- package/lib/utils/types.js.map +1 -1
- package/lib-commonjs/jsx/createJSX.js +5 -21
- package/lib-commonjs/jsx/createJSX.js.map +1 -1
- package/lib-commonjs/jsx/jsxDEVSlot.js +43 -0
- package/lib-commonjs/jsx/jsxDEVSlot.js.map +1 -0
- package/lib-commonjs/jsx/jsxSlot.js +27 -0
- package/lib-commonjs/jsx/jsxSlot.js.map +1 -0
- package/lib-commonjs/jsx/jsxsSlot.js +36 -0
- package/lib-commonjs/jsx/jsxsSlot.js.map +1 -0
- package/lib-commonjs/jsx-dev-runtime.js +3 -2
- package/lib-commonjs/jsx-dev-runtime.js.map +1 -1
- package/lib-commonjs/jsx-runtime.js +5 -3
- package/lib-commonjs/jsx-runtime.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui/react-jsx-runtime",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 20 Sep 2023 14:13:57 GMT",
|
|
6
|
+
"tag": "@fluentui/react-jsx-runtime_v9.0.9",
|
|
7
|
+
"version": "9.0.9",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
|
12
|
+
"package": "@fluentui/react-jsx-runtime",
|
|
13
|
+
"commit": "cd66e978f89f12e267759a194971ac2ebe46edef",
|
|
14
|
+
"comment": "fix: static children problem on render function"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 14 Sep 2023 16:44:47 GMT",
|
|
6
21
|
"tag": "@fluentui/react-jsx-runtime_v9.0.8",
|
|
7
22
|
"version": "9.0.8",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-jsx-runtime
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 20 Sep 2023 14:13:57 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.9)
|
|
8
|
+
|
|
9
|
+
Wed, 20 Sep 2023 14:13:57 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.8..@fluentui/react-jsx-runtime_v9.0.9)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix: static children problem on render function ([PR #29162](https://github.com/microsoft/fluentui/pull/29162) by bernardo.sunderhus@gmail.com)
|
|
15
|
+
|
|
7
16
|
## [9.0.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.8)
|
|
8
17
|
|
|
9
|
-
Thu, 14 Sep 2023 16:
|
|
18
|
+
Thu, 14 Sep 2023 16:44:47 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.7..@fluentui/react-jsx-runtime_v9.0.8)
|
|
11
20
|
|
|
12
21
|
### Patches
|
package/lib/jsx/createJSX.js
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { isSlot } from '@fluentui/react-utilities';
|
|
3
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
import { createCompatSlotComponent } from '../utils/createCompatSlotComponent';
|
|
5
|
-
|
|
6
|
-
* @internal
|
|
7
|
-
*/ export const createJSX = (runtime)=>{
|
|
8
|
-
const jsxFromSlotComponent = (type, overrideProps, key, source, self)=>{
|
|
9
|
-
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
10
|
-
const props = {
|
|
11
|
-
...slotProps,
|
|
12
|
-
...overrideProps
|
|
13
|
-
};
|
|
14
|
-
if (renderFunction) {
|
|
15
|
-
return runtime(React.Fragment, {
|
|
16
|
-
children: renderFunction(elementType, props)
|
|
17
|
-
}, key, source, self);
|
|
18
|
-
}
|
|
19
|
-
return runtime(elementType, props, key, source, self);
|
|
20
|
-
};
|
|
21
|
-
return (type, overrideProps, key, source, self)=>{
|
|
4
|
+
export const createJSX = (runtime, slotRuntime)=>(type, overrideProps, key, source, self)=>{
|
|
22
5
|
// TODO:
|
|
23
6
|
// this is for backwards compatibility with getSlotsNext
|
|
24
7
|
// it should be removed once getSlotsNext is obsolete
|
|
25
8
|
if (isSlot(overrideProps)) {
|
|
26
|
-
return
|
|
9
|
+
return slotRuntime(createCompatSlotComponent(type, overrideProps), null, key, source, self);
|
|
27
10
|
}
|
|
28
11
|
if (isSlot(type)) {
|
|
29
|
-
return
|
|
12
|
+
return slotRuntime(type, overrideProps, key, source, self);
|
|
30
13
|
}
|
|
31
|
-
return runtime(type, overrideProps, key
|
|
14
|
+
return runtime(type, overrideProps, key);
|
|
32
15
|
};
|
|
33
|
-
};
|
package/lib/jsx/createJSX.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["createJSX.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["createJSX.ts"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\nimport { JSXRuntime, JSXSlotRuntime } from '../utils/types';\n\nexport const createJSX =\n (runtime: JSXRuntime, slotRuntime: JSXSlotRuntime) =>\n <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 return runtime(type, overrideProps, key);\n };\n"],"names":["isSlot","React","createCompatSlotComponent","createJSX","runtime","slotRuntime","type","overrideProps","key","source","self"],"mappings":"AAAA,SAASA,MAAM,QAAQ,4BAA4B;AACnD,YAAYC,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,qCAAqC;AAG/E,OAAO,MAAMC,YACX,CAACC,SAAqBC,cACtB,CACEC,MACAC,eACAC,KACAC,QACAC;QAEA,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIV,OAAcO,gBAAgB;YAChC,OAAOF,YAAmBH,0BAA0BI,MAAMC,gBAAgB,MAAMC,KAAKC,QAAQC;QAC/F;QACA,IAAIV,OAAcM,OAAO;YACvB,OAAOD,YAAYC,MAAMC,eAAeC,KAAKC,QAAQC;QACvD;QACA,OAAON,QAAQE,MAAMC,eAAeC;IACtC,EAAE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
|
|
3
|
+
import { DevRuntime } from '../utils/DevRuntime';
|
|
4
|
+
export const jsxDEVSlot = (type, overrideProps, key, source, self)=>{
|
|
5
|
+
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
|
+
const props = {
|
|
7
|
+
...slotProps,
|
|
8
|
+
...overrideProps
|
|
9
|
+
};
|
|
10
|
+
if (renderFunction) {
|
|
11
|
+
// if runtime is static
|
|
12
|
+
if (source === true) {
|
|
13
|
+
return DevRuntime.jsxDEV(React.Fragment, {
|
|
14
|
+
children: renderFunction(elementType, {
|
|
15
|
+
...props,
|
|
16
|
+
/**
|
|
17
|
+
* If the runtime is static then children is an array and this array won't be keyed.
|
|
18
|
+
* Then we should wrap children by a static fragment
|
|
19
|
+
* as there's no way to know if renderFunction will render statically or dynamically
|
|
20
|
+
*/ children: DevRuntime.jsxDEV(React.Fragment, {
|
|
21
|
+
children: props.children
|
|
22
|
+
}, undefined, true, self)
|
|
23
|
+
})
|
|
24
|
+
}, key, false, self);
|
|
25
|
+
}
|
|
26
|
+
// if runtime is dynamic (source = false) things are simpler
|
|
27
|
+
return DevRuntime.jsxDEV(React.Fragment, {
|
|
28
|
+
children: renderFunction(elementType, props)
|
|
29
|
+
}, key, source, self);
|
|
30
|
+
}
|
|
31
|
+
return DevRuntime.jsxDEV(elementType, props, key, source, self);
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxDEVSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport { 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,wCAAwC;AACrF,SAASC,UAAU,QAAQ,sBAAsB;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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
|
|
3
|
+
import { Runtime } from '../utils/Runtime';
|
|
4
|
+
export const jsxSlot = (type, overrideProps, key)=>{
|
|
5
|
+
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
|
+
const props = {
|
|
7
|
+
...slotProps,
|
|
8
|
+
...overrideProps
|
|
9
|
+
};
|
|
10
|
+
if (renderFunction) {
|
|
11
|
+
return Runtime.jsx(React.Fragment, {
|
|
12
|
+
children: renderFunction(elementType, props)
|
|
13
|
+
}, key);
|
|
14
|
+
}
|
|
15
|
+
return Runtime.jsx(elementType, props, key);
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport { 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,wCAAwC;AACrF,SAASC,OAAO,QAAQ,mBAAmB;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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
|
|
3
|
+
import { Runtime } from '../utils/Runtime';
|
|
4
|
+
export const jsxsSlot = (type, overrideProps, key)=>{
|
|
5
|
+
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
6
|
+
const props = {
|
|
7
|
+
...slotProps,
|
|
8
|
+
...overrideProps
|
|
9
|
+
};
|
|
10
|
+
if (renderFunction) {
|
|
11
|
+
/**
|
|
12
|
+
* In static runtime then children is an array and this array won't be keyed.
|
|
13
|
+
* We should wrap children by a static fragment
|
|
14
|
+
* as there's no way to know if renderFunction will render statically or dynamically
|
|
15
|
+
*/ return Runtime.jsx(React.Fragment, {
|
|
16
|
+
children: renderFunction(elementType, {
|
|
17
|
+
...props,
|
|
18
|
+
children: Runtime.jsxs(React.Fragment, {
|
|
19
|
+
children: props.children
|
|
20
|
+
}, undefined)
|
|
21
|
+
})
|
|
22
|
+
}, key);
|
|
23
|
+
}
|
|
24
|
+
return Runtime.jsxs(elementType, props, key);
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxsSlot.ts"],"sourcesContent":["import * as React from 'react';\nimport { 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,wCAAwC;AACrF,SAASC,OAAO,QAAQ,mBAAmB;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,4 +1,5 @@
|
|
|
1
|
-
import { DevRuntime } from './utils/DevRuntime';
|
|
2
1
|
import { createJSX } from './jsx/createJSX';
|
|
2
|
+
import { jsxDEVSlot } from './jsx/jsxDEVSlot';
|
|
3
|
+
import { DevRuntime } from './utils/DevRuntime';
|
|
3
4
|
export { Fragment } from 'react';
|
|
4
|
-
export const jsxDEV = createJSX(DevRuntime.jsxDEV);
|
|
5
|
+
export const jsxDEV = createJSX(DevRuntime.jsxDEV, jsxDEVSlot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jsx-dev-runtime.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["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,kBAAkB;AAC5C,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,SAASC,UAAU,QAAQ,qBAAqB;AAEhD,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,SAASJ,UAAUE,WAAWE,MAAM,EAAEH,YAAY"}
|
package/lib/jsx-runtime.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Runtime } from './utils/Runtime';
|
|
2
1
|
import { createJSX } from './jsx/createJSX';
|
|
2
|
+
import { jsxSlot } from './jsx/jsxSlot';
|
|
3
|
+
import { jsxsSlot } from './jsx/jsxsSlot';
|
|
4
|
+
import { Runtime } from './utils/Runtime';
|
|
3
5
|
export { Fragment } from 'react';
|
|
4
|
-
export const jsx = createJSX(Runtime.jsx);
|
|
5
|
-
export const jsxs = createJSX(Runtime.jsxs);
|
|
6
|
+
export const jsx = createJSX(Runtime.jsx, jsxSlot);
|
|
7
|
+
export const jsxs = createJSX(Runtime.jsxs, jsxsSlot);
|
package/lib/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jsx-runtime.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["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,kBAAkB;AAC5C,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,OAAO,QAAQ,kBAAkB;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/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["types.ts"],"sourcesContent":["import type * as React from 'react';\n\nexport type JSXRuntime = <P extends {}>(\n type: React.ElementType<P>,\n props: P | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n) => React.ReactElement<P>;\n"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\n\nexport type JSXRuntime = <P extends {}>(\n type: React.ElementType<P>,\n props: P | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n) => React.ReactElement<P>;\n\nexport type JSXSlotRuntime = <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"],"names":[],"mappings":"AAAA,WAiB+B"}
|
|
@@ -9,34 +9,18 @@ Object.defineProperty(exports, "createJSX", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
12
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
14
|
-
const
|
|
13
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
15
14
|
const _createCompatSlotComponent = require("../utils/createCompatSlotComponent");
|
|
16
|
-
const createJSX = (runtime)=>{
|
|
17
|
-
const jsxFromSlotComponent = (type, overrideProps, key, source, self)=>{
|
|
18
|
-
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
19
|
-
const props = {
|
|
20
|
-
...slotProps,
|
|
21
|
-
...overrideProps
|
|
22
|
-
};
|
|
23
|
-
if (renderFunction) {
|
|
24
|
-
return runtime(_react.Fragment, {
|
|
25
|
-
children: renderFunction(elementType, props)
|
|
26
|
-
}, key, source, self);
|
|
27
|
-
}
|
|
28
|
-
return runtime(elementType, props, key, source, self);
|
|
29
|
-
};
|
|
30
|
-
return (type, overrideProps, key, source, self)=>{
|
|
15
|
+
const createJSX = (runtime, slotRuntime)=>(type, overrideProps, key, source, self)=>{
|
|
31
16
|
// TODO:
|
|
32
17
|
// this is for backwards compatibility with getSlotsNext
|
|
33
18
|
// it should be removed once getSlotsNext is obsolete
|
|
34
19
|
if ((0, _reactutilities.isSlot)(overrideProps)) {
|
|
35
|
-
return
|
|
20
|
+
return slotRuntime((0, _createCompatSlotComponent.createCompatSlotComponent)(type, overrideProps), null, key, source, self);
|
|
36
21
|
}
|
|
37
22
|
if ((0, _reactutilities.isSlot)(type)) {
|
|
38
|
-
return
|
|
23
|
+
return slotRuntime(type, overrideProps, key, source, self);
|
|
39
24
|
}
|
|
40
|
-
return runtime(type, overrideProps, key
|
|
25
|
+
return runtime(type, overrideProps, key);
|
|
41
26
|
};
|
|
42
|
-
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["createJSX.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["createJSX.js"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\nexport const createJSX = (runtime, slotRuntime)=>(type, overrideProps, key, source, self)=>{\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(overrideProps)) {\n return slotRuntime(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot(type)) {\n return slotRuntime(type, overrideProps, key, source, self);\n }\n return runtime(type, overrideProps, key);\n };\n"],"names":["createJSX","runtime","slotRuntime","type","overrideProps","key","source","self","isSlot","createCompatSlotComponent"],"mappings":";;;;+BAGaA;;;eAAAA;;;;gCAHU;iEACA;2CACmB;AACnC,MAAMA,YAAY,CAACC,SAASC,cAAc,CAACC,MAAMC,eAAeC,KAAKC,QAAQC;QAC5E,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIC,IAAAA,sBAAM,EAACJ,gBAAgB;YACvB,OAAOF,YAAYO,IAAAA,oDAAyB,EAACN,MAAMC,gBAAgB,MAAMC,KAAKC,QAAQC;QAC1F;QACA,IAAIC,IAAAA,sBAAM,EAACL,OAAO;YACd,OAAOD,YAAYC,MAAMC,eAAeC,KAAKC,QAAQC;QACzD;QACA,OAAON,QAAQE,MAAMC,eAAeC;IACxC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "jsxDEVSlot", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return jsxDEVSlot;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
+
const _DevRuntime = require("../utils/DevRuntime");
|
|
15
|
+
const jsxDEVSlot = (type, overrideProps, key, source, self)=>{
|
|
16
|
+
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
|
+
const props = {
|
|
18
|
+
...slotProps,
|
|
19
|
+
...overrideProps
|
|
20
|
+
};
|
|
21
|
+
if (renderFunction) {
|
|
22
|
+
// if runtime is static
|
|
23
|
+
if (source === true) {
|
|
24
|
+
return _DevRuntime.DevRuntime.jsxDEV(_react.Fragment, {
|
|
25
|
+
children: renderFunction(elementType, {
|
|
26
|
+
...props,
|
|
27
|
+
/**
|
|
28
|
+
* If the runtime is static then children is an array and this array won't be keyed.
|
|
29
|
+
* Then we should wrap children by a static fragment
|
|
30
|
+
* as there's no way to know if renderFunction will render statically or dynamically
|
|
31
|
+
*/ children: _DevRuntime.DevRuntime.jsxDEV(_react.Fragment, {
|
|
32
|
+
children: props.children
|
|
33
|
+
}, undefined, true, self)
|
|
34
|
+
})
|
|
35
|
+
}, key, false, self);
|
|
36
|
+
}
|
|
37
|
+
// if runtime is dynamic (source = false) things are simpler
|
|
38
|
+
return _DevRuntime.DevRuntime.jsxDEV(_react.Fragment, {
|
|
39
|
+
children: renderFunction(elementType, props)
|
|
40
|
+
}, key, source, self);
|
|
41
|
+
}
|
|
42
|
+
return _DevRuntime.DevRuntime.jsxDEV(elementType, props, key, source, self);
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxDEVSlot.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { DevRuntime } from '../utils/DevRuntime';\nexport const jsxDEVSlot = (type, overrideProps, key, source, self)=>{\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n // if runtime is static\n if (source === true) {\n return DevRuntime.jsxDEV(React.Fragment, {\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 */ children: DevRuntime.jsxDEV(React.Fragment, {\n children: props.children\n }, undefined, true, self)\n })\n }, key, false, self);\n }\n // if runtime is dynamic (source = false) things are simpler\n return DevRuntime.jsxDEV(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key, source, self);\n }\n return DevRuntime.jsxDEV(elementType, props, key, source, self);\n};\n"],"names":["jsxDEVSlot","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","DevRuntime","jsxDEV","React","Fragment","children","undefined"],"mappings":";;;;+BAGaA;;;eAAAA;;;;iEAHU;8CACsB;4BAClB;AACpB,MAAMA,aAAa,CAACC,MAAMC,eAAeC,KAAKC,QAAQC;IACzD,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGC,IAAAA,0DAA4B,EAACT;IACvF,MAAMO,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGP,aAAa;IACpB;IACA,IAAIK,gBAAgB;QAChB,uBAAuB;QACvB,IAAIH,WAAW,MAAM;YACjB,OAAOO,sBAAU,CAACC,MAAM,CAACC,OAAMC,QAAQ,EAAE;gBACrCC,UAAUR,eAAeD,aAAa;oBAClC,GAAGE,KAAK;oBACR;;;;aAIP,GAAGO,UAAUJ,sBAAU,CAACC,MAAM,CAACC,OAAMC,QAAQ,EAAE;wBACpCC,UAAUP,MAAMO,QAAQ;oBAC5B,GAAGC,WAAW,MAAMX;gBACxB;YACJ,GAAGF,KAAK,OAAOE;QACnB;QACA,4DAA4D;QAC5D,OAAOM,sBAAU,CAACC,MAAM,CAACC,OAAMC,QAAQ,EAAE;YACrCC,UAAUR,eAAeD,aAAaE;QAC1C,GAAGL,KAAKC,QAAQC;IACpB;IACA,OAAOM,sBAAU,CAACC,MAAM,CAACN,aAAaE,OAAOL,KAAKC,QAAQC;AAC9D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "jsxSlot", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return jsxSlot;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
+
const _Runtime = require("../utils/Runtime");
|
|
15
|
+
const jsxSlot = (type, overrideProps, key)=>{
|
|
16
|
+
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
|
+
const props = {
|
|
18
|
+
...slotProps,
|
|
19
|
+
...overrideProps
|
|
20
|
+
};
|
|
21
|
+
if (renderFunction) {
|
|
22
|
+
return _Runtime.Runtime.jsx(_react.Fragment, {
|
|
23
|
+
children: renderFunction(elementType, props)
|
|
24
|
+
}, key);
|
|
25
|
+
}
|
|
26
|
+
return _Runtime.Runtime.jsx(elementType, props, key);
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxSlot.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\nexport const jsxSlot = (type, overrideProps, key)=>{\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n return Runtime.jsx(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key);\n }\n return Runtime.jsx(elementType, props, key);\n};\n"],"names":["jsxSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","Runtime","jsx","React","Fragment","children"],"mappings":";;;;+BAGaA;;;eAAAA;;;;iEAHU;8CACsB;yBACrB;AACjB,MAAMA,UAAU,CAACC,MAAMC,eAAeC;IACzC,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGC,IAAAA,0DAA4B,EAACP;IACvF,MAAMK,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGL,aAAa;IACpB;IACA,IAAIG,gBAAgB;QAChB,OAAOI,gBAAO,CAACC,GAAG,CAACC,OAAMC,QAAQ,EAAE;YAC/BC,UAAUR,eAAeD,aAAaE;QAC1C,GAAGH;IACP;IACA,OAAOM,gBAAO,CAACC,GAAG,CAACN,aAAaE,OAAOH;AAC3C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "jsxsSlot", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return jsxsSlot;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
|
|
14
|
+
const _Runtime = require("../utils/Runtime");
|
|
15
|
+
const jsxsSlot = (type, overrideProps, key)=>{
|
|
16
|
+
const { elementType, renderFunction, props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
|
|
17
|
+
const props = {
|
|
18
|
+
...slotProps,
|
|
19
|
+
...overrideProps
|
|
20
|
+
};
|
|
21
|
+
if (renderFunction) {
|
|
22
|
+
/**
|
|
23
|
+
* In static runtime then children is an array and this array won't be keyed.
|
|
24
|
+
* We should wrap children by a static fragment
|
|
25
|
+
* as there's no way to know if renderFunction will render statically or dynamically
|
|
26
|
+
*/ return _Runtime.Runtime.jsx(_react.Fragment, {
|
|
27
|
+
children: renderFunction(elementType, {
|
|
28
|
+
...props,
|
|
29
|
+
children: _Runtime.Runtime.jsxs(_react.Fragment, {
|
|
30
|
+
children: props.children
|
|
31
|
+
}, undefined)
|
|
32
|
+
})
|
|
33
|
+
}, key);
|
|
34
|
+
}
|
|
35
|
+
return _Runtime.Runtime.jsxs(elementType, props, key);
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["jsxsSlot.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\nexport const jsxsSlot = (type, overrideProps, key)=>{\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...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 */ return Runtime.jsx(React.Fragment, {\n children: renderFunction(elementType, {\n ...props,\n children: Runtime.jsxs(React.Fragment, {\n children: props.children\n }, undefined)\n })\n }, key);\n }\n return Runtime.jsxs(elementType, props, key);\n};\n"],"names":["jsxsSlot","type","overrideProps","key","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","Runtime","jsx","React","Fragment","children","jsxs","undefined"],"mappings":";;;;+BAGaA;;;eAAAA;;;;iEAHU;8CACsB;yBACrB;AACjB,MAAMA,WAAW,CAACC,MAAMC,eAAeC;IAC1C,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGC,IAAAA,0DAA4B,EAACP;IACvF,MAAMK,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGL,aAAa;IACpB;IACA,IAAIG,gBAAgB;QAChB;;;;KAIH,GAAG,OAAOI,gBAAO,CAACC,GAAG,CAACC,OAAMC,QAAQ,EAAE;YAC/BC,UAAUR,eAAeD,aAAa;gBAClC,GAAGE,KAAK;gBACRO,UAAUJ,gBAAO,CAACK,IAAI,CAACH,OAAMC,QAAQ,EAAE;oBACnCC,UAAUP,MAAMO,QAAQ;gBAC5B,GAAGE;YACP;QACJ,GAAGZ;IACP;IACA,OAAOM,gBAAO,CAACK,IAAI,CAACV,aAAaE,OAAOH;AAC5C"}
|
|
@@ -16,7 +16,8 @@ _export(exports, {
|
|
|
16
16
|
return jsxDEV;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const _DevRuntime = require("./utils/DevRuntime");
|
|
20
19
|
const _createJSX = require("./jsx/createJSX");
|
|
20
|
+
const _jsxDEVSlot = require("./jsx/jsxDEVSlot");
|
|
21
|
+
const _DevRuntime = require("./utils/DevRuntime");
|
|
21
22
|
const _react = require("react");
|
|
22
|
-
const jsxDEV = (0, _createJSX.createJSX)(_DevRuntime.DevRuntime.jsxDEV);
|
|
23
|
+
const jsxDEV = (0, _createJSX.createJSX)(_DevRuntime.DevRuntime.jsxDEV, _jsxDEVSlot.jsxDEVSlot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jsx-dev-runtime.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["jsx-dev-runtime.js"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxDEVSlot } from './jsx/jsxDEVSlot';\nimport { DevRuntime } from './utils/DevRuntime';\nexport { Fragment } from 'react';\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV, jsxDEVSlot);\n"],"names":["Fragment","jsxDEV","createJSX","DevRuntime","jsxDEVSlot"],"mappings":";;;;;;;;;;;IAGSA,QAAQ;eAARA,eAAQ;;IACJC,MAAM;eAANA;;;2BAJa;4BACC;4BACA;uBACF;AAClB,MAAMA,SAASC,IAAAA,oBAAS,EAACC,sBAAU,CAACF,MAAM,EAAEG,sBAAU"}
|
|
@@ -19,8 +19,10 @@ _export(exports, {
|
|
|
19
19
|
return jsxs;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const _Runtime = require("./utils/Runtime");
|
|
23
22
|
const _createJSX = require("./jsx/createJSX");
|
|
23
|
+
const _jsxSlot = require("./jsx/jsxSlot");
|
|
24
|
+
const _jsxsSlot = require("./jsx/jsxsSlot");
|
|
25
|
+
const _Runtime = require("./utils/Runtime");
|
|
24
26
|
const _react = require("react");
|
|
25
|
-
const jsx = (0, _createJSX.createJSX)(_Runtime.Runtime.jsx);
|
|
26
|
-
const jsxs = (0, _createJSX.createJSX)(_Runtime.Runtime.jsxs);
|
|
27
|
+
const jsx = (0, _createJSX.createJSX)(_Runtime.Runtime.jsx, _jsxSlot.jsxSlot);
|
|
28
|
+
const jsxs = (0, _createJSX.createJSX)(_Runtime.Runtime.jsxs, _jsxsSlot.jsxsSlot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jsx-runtime.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["jsx-runtime.js"],"sourcesContent":["import { createJSX } from './jsx/createJSX';\nimport { jsxSlot } from './jsx/jsxSlot';\nimport { jsxsSlot } from './jsx/jsxsSlot';\nimport { Runtime } from './utils/Runtime';\nexport { Fragment } from 'react';\nexport const jsx = createJSX(Runtime.jsx, jsxSlot);\nexport const jsxs = createJSX(Runtime.jsxs, jsxsSlot);\n"],"names":["Fragment","jsx","jsxs","createJSX","Runtime","jsxSlot","jsxsSlot"],"mappings":";;;;;;;;;;;IAISA,QAAQ;eAARA,eAAQ;;IACJC,GAAG;eAAHA;;IACAC,IAAI;eAAJA;;;2BANa;yBACF;0BACC;yBACD;uBACC;AAClB,MAAMD,MAAME,IAAAA,oBAAS,EAACC,gBAAO,CAACH,GAAG,EAAEI,gBAAO;AAC1C,MAAMH,OAAOC,IAAAA,oBAAS,EAACC,gBAAO,CAACF,IAAI,EAAEI,kBAAQ"}
|