@fluentui/react-jsx-runtime 9.0.8 → 9.0.10

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,37 @@
2
2
  "name": "@fluentui/react-jsx-runtime",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 14 Sep 2023 16:40:23 GMT",
5
+ "date": "Wed, 20 Sep 2023 17:40:45 GMT",
6
+ "tag": "@fluentui/react-jsx-runtime_v9.0.10",
7
+ "version": "9.0.10",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-jsx-runtime",
13
+ "commit": "41d0ed0376ad79f1f5f5c4c7487515a1c6be35f0",
14
+ "comment": "chore: trigger manual version bump after broken release"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 20 Sep 2023 14:59:52 GMT",
21
+ "tag": "@fluentui/react-jsx-runtime_v9.0.9",
22
+ "version": "9.0.9",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "bernardo.sunderhus@gmail.com",
27
+ "package": "@fluentui/react-jsx-runtime",
28
+ "commit": "cd66e978f89f12e267759a194971ac2ebe46edef",
29
+ "comment": "fix: static children problem on render function"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Thu, 14 Sep 2023 16:44:47 GMT",
6
36
  "tag": "@fluentui/react-jsx-runtime_v9.0.8",
7
37
  "version": "9.0.8",
8
38
  "comments": {
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 Thu, 14 Sep 2023 16:40:23 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 20 Sep 2023 17:40:45 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.10)
8
+
9
+ Wed, 20 Sep 2023 17:40:45 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.9..@fluentui/react-jsx-runtime_v9.0.10)
11
+
12
+ ### Patches
13
+
14
+ - chore: trigger manual version bump after broken release ([PR #29197](https://github.com/microsoft/fluentui/pull/29197) by martinhochel@microsoft.com)
15
+
16
+ ## [9.0.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.9)
17
+
18
+ Wed, 20 Sep 2023 14:59:52 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.8..@fluentui/react-jsx-runtime_v9.0.9)
20
+
21
+ ### Patches
22
+
23
+ - fix: static children problem on render function ([PR #29162](https://github.com/microsoft/fluentui/pull/29162) by bernardo.sunderhus@gmail.com)
24
+
7
25
  ## [9.0.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.8)
8
26
 
9
- Thu, 14 Sep 2023 16:40:23 GMT
27
+ Thu, 14 Sep 2023 16:44:47 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.7..@fluentui/react-jsx-runtime_v9.0.8)
11
29
 
12
30
  ### Patches
@@ -1,33 +1,15 @@
1
- import * as React from 'react';
2
1
  import { isSlot } from '@fluentui/react-utilities';
3
- import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
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 jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);
9
+ return slotRuntime(createCompatSlotComponent(type, overrideProps), null, key, source, self);
27
10
  }
28
11
  if (isSlot(type)) {
29
- return jsxFromSlotComponent(type, overrideProps, key, source, self);
12
+ return slotRuntime(type, overrideProps, key, source, self);
30
13
  }
31
- return runtime(type, overrideProps, key, source, self);
14
+ return runtime(type, overrideProps, key);
32
15
  };
33
- };
@@ -1 +1 @@
1
- {"version":3,"sources":["createJSX.ts"],"sourcesContent":["import * as React from 'react';\nimport { isSlot, type SlotComponentType, type UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport type { JSXRuntime } from '../utils/types';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\n\n/**\n * @internal\n */\nexport const createJSX = (runtime: JSXRuntime) => {\n const jsxFromSlotComponent = <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 return runtime(\n React.Fragment,\n {\n children: renderFunction(elementType, props),\n },\n key,\n source,\n self,\n ) as React.ReactElement<Props>;\n }\n return runtime(elementType, props, key, source, self);\n };\n\n return <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 jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot<Props>(type)) {\n return jsxFromSlotComponent(type, overrideProps, key, source, self);\n }\n return runtime(type, overrideProps, key, source, self);\n };\n};\n"],"names":["React","isSlot","getMetadataFromSlotComponent","createCompatSlotComponent","createJSX","runtime","jsxFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,QAAuD,4BAA4B;AAClG,SAASC,4BAA4B,QAAQ,wCAAwC;AAErF,SAASC,yBAAyB,QAAQ,qCAAqC;AAE/E;;CAEC,GACD,OAAO,MAAMC,YAAY,CAACC;IACxB,MAAMC,uBAAuB,CAC3BC,MACAC,eACAC,KACAC,QACAC;QAEA,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGb,6BAA6BK;QAEvF,MAAMO,QAAe;YAAE,GAAGC,SAAS;YAAE,GAAGP,aAAa;QAAC;QAEtD,IAAIK,gBAAgB;YAClB,OAAOR,QACLL,MAAMgB,QAAQ,EACd;gBACEC,UAAUJ,eAAeD,aAAaE;YACxC,GACAL,KACAC,QACAC;QAEJ;QACA,OAAON,QAAQO,aAAaE,OAAOL,KAAKC,QAAQC;IAClD;IAEA,OAAO,CACLJ,MACAC,eACAC,KACAC,QACAC;QAEA,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIV,OAAcO,gBAAgB;YAChC,OAAOF,qBAAqBH,0BAA0BI,MAAMC,gBAAgB,MAAMC,KAAKC,QAAQC;QACjG;QACA,IAAIV,OAAcM,OAAO;YACvB,OAAOD,qBAAqBC,MAAMC,eAAeC,KAAKC,QAAQC;QAChE;QACA,OAAON,QAAQE,MAAMC,eAAeC,KAAKC,QAAQC;IACnD;AACF,EAAE"}
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"}
@@ -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 { DevRuntime } from './utils/DevRuntime';\nimport { createJSX } from './jsx/createJSX';\n\nexport { Fragment } from 'react';\n\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV);\n"],"names":["DevRuntime","createJSX","Fragment","jsxDEV"],"mappings":"AAAA,SAASA,UAAU,QAAQ,qBAAqB;AAChD,SAASC,SAAS,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,SAASF,UAAUD,WAAWG,MAAM,EAAE"}
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"}
@@ -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);
@@ -1 +1 @@
1
- {"version":3,"sources":["jsx-runtime.ts"],"sourcesContent":["import { Runtime } from './utils/Runtime';\nimport { createJSX } from './jsx/createJSX';\n\nexport { Fragment } from 'react';\n\nexport const jsx = createJSX(Runtime.jsx);\nexport const jsxs = createJSX(Runtime.jsxs);\n"],"names":["Runtime","createJSX","Fragment","jsx","jsxs"],"mappings":"AAAA,SAASA,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,SAAS,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,MAAMF,UAAUD,QAAQG,GAAG,EAAE;AAC1C,OAAO,MAAMC,OAAOH,UAAUD,QAAQI,IAAI,EAAE"}
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"}
@@ -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,WAQ2B"}
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 _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
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 jsxFromSlotComponent((0, _createCompatSlotComponent.createCompatSlotComponent)(type, overrideProps), null, key, source, self);
20
+ return slotRuntime((0, _createCompatSlotComponent.createCompatSlotComponent)(type, overrideProps), null, key, source, self);
36
21
  }
37
22
  if ((0, _reactutilities.isSlot)(type)) {
38
- return jsxFromSlotComponent(type, overrideProps, key, source, self);
23
+ return slotRuntime(type, overrideProps, key, source, self);
39
24
  }
40
- return runtime(type, overrideProps, key, source, self);
25
+ return runtime(type, overrideProps, key);
41
26
  };
42
- };
@@ -1 +1 @@
1
- {"version":3,"sources":["createJSX.js"],"sourcesContent":["import * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\n/**\n * @internal\n */ export const createJSX = (runtime)=>{\n const jsxFromSlotComponent = (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 return runtime(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key, source, self);\n }\n return runtime(elementType, props, key, source, self);\n };\n return (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 jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot(type)) {\n return jsxFromSlotComponent(type, overrideProps, key, source, self);\n }\n return runtime(type, overrideProps, key, source, self);\n };\n};\n"],"names":["createJSX","runtime","jsxFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","React","Fragment","children","isSlot","createCompatSlotComponent"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;gCACA;8CACsB;2CACH;AAG/B,MAAMA,YAAY,CAACC;IAC1B,MAAMC,uBAAuB,CAACC,MAAMC,eAAeC,KAAKC,QAAQC;QAC5D,MAAM,EAAEC,WAAW,EAAEC,cAAc,EAAEC,OAAOC,SAAS,EAAE,GAAGC,IAAAA,0DAA4B,EAACT;QACvF,MAAMO,QAAQ;YACV,GAAGC,SAAS;YACZ,GAAGP,aAAa;QACpB;QACA,IAAIK,gBAAgB;YAChB,OAAOR,QAAQY,OAAMC,QAAQ,EAAE;gBAC3BC,UAAUN,eAAeD,aAAaE;YAC1C,GAAGL,KAAKC,QAAQC;QACpB;QACA,OAAON,QAAQO,aAAaE,OAAOL,KAAKC,QAAQC;IACpD;IACA,OAAO,CAACJ,MAAMC,eAAeC,KAAKC,QAAQC;QACtC,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIS,IAAAA,sBAAM,EAACZ,gBAAgB;YACvB,OAAOF,qBAAqBe,IAAAA,oDAAyB,EAACd,MAAMC,gBAAgB,MAAMC,KAAKC,QAAQC;QACnG;QACA,IAAIS,IAAAA,sBAAM,EAACb,OAAO;YACd,OAAOD,qBAAqBC,MAAMC,eAAeC,KAAKC,QAAQC;QAClE;QACA,OAAON,QAAQE,MAAMC,eAAeC,KAAKC,QAAQC;IACrD;AACJ"}
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 { DevRuntime } from './utils/DevRuntime';\nimport { createJSX } from './jsx/createJSX';\nexport { Fragment } from 'react';\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV);\n"],"names":["Fragment","jsxDEV","createJSX","DevRuntime"],"mappings":";;;;;;;;;;;IAESA,QAAQ;eAARA,eAAQ;;IACJC,MAAM;eAANA;;;4BAHc;2BACD;uBACD;AAClB,MAAMA,SAASC,IAAAA,oBAAS,EAACC,sBAAU,CAACF,MAAM"}
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 { Runtime } from './utils/Runtime';\nimport { createJSX } from './jsx/createJSX';\nexport { Fragment } from 'react';\nexport const jsx = createJSX(Runtime.jsx);\nexport const jsxs = createJSX(Runtime.jsxs);\n"],"names":["Fragment","jsx","jsxs","createJSX","Runtime"],"mappings":";;;;;;;;;;;IAESA,QAAQ;eAARA,eAAQ;;IACJC,GAAG;eAAHA;;IACAC,IAAI;eAAJA;;;yBAJW;2BACE;uBACD;AAClB,MAAMD,MAAME,IAAAA,oBAAS,EAACC,gBAAO,CAACH,GAAG;AACjC,MAAMC,OAAOC,IAAAA,oBAAS,EAACC,gBAAO,CAACF,IAAI"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "9.0.8",
3
+ "version": "9.0.10",
4
4
  "description": "Custom JSX runtime for @fluentui/react-components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",