@fluentui/react-jsx-runtime 0.0.0-nightly-20230803-0413.1 → 0.0.0-nightly-20230807-0415.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-jsx-runtime",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 03 Aug 2023 04:20:22 GMT",
6
- "tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230803-0413.1",
7
- "version": "0.0.0-nightly-20230803-0413.1",
5
+ "date": "Mon, 07 Aug 2023 04:22:32 GMT",
6
+ "tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230807-0415.1",
7
+ "version": "0.0.0-nightly-20230807-0415.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,20 +16,41 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-jsx-runtime",
19
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230803-0413.1",
20
- "commit": "979ab3318639100aa129bd373c207180d4ebfb26"
19
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230807-0415.1",
20
+ "commit": "272d9efb55a09fdcdf1014ff7075d14e312e31e7"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-jsx-runtime",
25
- "comment": "Bump @fluentui/react-conformance to v0.0.0-nightly-20230803-0413.1",
26
- "commit": "979ab3318639100aa129bd373c207180d4ebfb26"
25
+ "comment": "Bump @fluentui/react-conformance to v0.0.0-nightly-20230807-0415.1",
26
+ "commit": "272d9efb55a09fdcdf1014ff7075d14e312e31e7"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-jsx-runtime",
31
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230803-0413.1",
32
- "commit": "979ab3318639100aa129bd373c207180d4ebfb26"
31
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230807-0415.1",
32
+ "commit": "272d9efb55a09fdcdf1014ff7075d14e312e31e7"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Fri, 04 Aug 2023 08:52:55 GMT",
39
+ "tag": "@fluentui/react-jsx-runtime_v9.0.0-alpha.13",
40
+ "version": "9.0.0-alpha.13",
41
+ "comments": {
42
+ "prerelease": [
43
+ {
44
+ "author": "bernardo.sunderhus@gmail.com",
45
+ "package": "@fluentui/react-jsx-runtime",
46
+ "commit": "6a8afe2b7becaf1b10cbc9ae98b39d352b8c7026",
47
+ "comment": "chore: update createElement to support new slot methods"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-jsx-runtime",
52
+ "comment": "Bump @fluentui/react-utilities to v9.11.0",
53
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
33
54
  }
34
55
  ]
35
56
  }
package/CHANGELOG.md CHANGED
@@ -1,20 +1,30 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Thu, 03 Aug 2023 04:20:22 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 07 Aug 2023 04:22:32 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230803-0413.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230803-0413.1)
7
+ ## [0.0.0-nightly-20230807-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230807-0415.1)
8
8
 
9
- Thu, 03 Aug 2023 04:20:22 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.11..@fluentui/react-jsx-runtime_v0.0.0-nightly-20230803-0413.1)
9
+ Mon, 07 Aug 2023 04:22:32 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.13..@fluentui/react-jsx-runtime_v0.0.0-nightly-20230807-0415.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20230803-0413.1 ([commit](https://github.com/microsoft/fluentui/commit/979ab3318639100aa129bd373c207180d4ebfb26) by beachball)
16
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20230803-0413.1 ([commit](https://github.com/microsoft/fluentui/commit/979ab3318639100aa129bd373c207180d4ebfb26) by beachball)
17
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230803-0413.1 ([commit](https://github.com/microsoft/fluentui/commit/979ab3318639100aa129bd373c207180d4ebfb26) by beachball)
15
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230807-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/272d9efb55a09fdcdf1014ff7075d14e312e31e7) by beachball)
16
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20230807-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/272d9efb55a09fdcdf1014ff7075d14e312e31e7) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230807-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/272d9efb55a09fdcdf1014ff7075d14e312e31e7) by beachball)
18
+
19
+ ## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.13)
20
+
21
+ Fri, 04 Aug 2023 08:52:55 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.11..@fluentui/react-jsx-runtime_v9.0.0-alpha.13)
23
+
24
+ ### Changes
25
+
26
+ - chore: update createElement to support new slot methods ([PR #28373](https://github.com/microsoft/fluentui/pull/28373) by bernardo.sunderhus@gmail.com)
27
+ - Bump @fluentui/react-utilities to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
18
28
 
19
29
  ## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.11)
20
30
 
@@ -1,15 +1,32 @@
1
1
  import * as React from 'react';
2
- import { SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';
2
+ import { isSlot, SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';
3
3
  export function createElement(type, props, ...children) {
4
- return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : React.createElement(type, props, ...children);
5
- }
6
- function createElementFromRenderFunction(type, props, overrideChildren) {
7
- const { [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...renderProps } = props;
8
- if (overrideChildren.length > 0) {
9
- renderProps.children = React.createElement(React.Fragment, {}, ...overrideChildren);
4
+ // TODO:
5
+ // this is for backwards compatibility with getSlotsNext
6
+ // it should be removed once getSlotsNext is obsolete
7
+ if (isSlot(props)) {
8
+ return createElementFromSlotComponent({
9
+ ...props,
10
+ [SLOT_ELEMENT_TYPE_SYMBOL]: type
11
+ }, children);
12
+ }
13
+ if (isSlot(type)) {
14
+ return createElementFromSlotComponent(type, children);
10
15
  }
11
- return React.createElement(React.Fragment, {}, renderFunction(type, renderProps));
16
+ return React.createElement(type, props, ...children);
12
17
  }
13
- export function hasRenderFunction(props) {
14
- return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));
18
+ function createElementFromSlotComponent(type, overrideChildren) {
19
+ const { as , [SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType , [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...propsWithoutMetadata } = type;
20
+ const props = propsWithoutMetadata;
21
+ const elementType = typeof baseElementType === 'string' ? as !== null && as !== void 0 ? as : baseElementType : baseElementType;
22
+ if (typeof elementType !== 'string' && as) {
23
+ props.as = as;
24
+ }
25
+ if (renderFunction) {
26
+ if (overrideChildren.length > 0) {
27
+ props.children = React.createElement(React.Fragment, {}, ...overrideChildren);
28
+ }
29
+ return React.createElement(React.Fragment, {}, renderFunction(elementType, props));
30
+ }
31
+ return React.createElement(elementType, props, ...overrideChildren);
15
32
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["createElement.ts"],"sourcesContent":["import * as React from 'react';\nimport { SlotRenderFunction, UnknownSlotProps, SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';\n\ntype WithMetadata<Props extends {}> = Props & {\n [SLOT_RENDER_FUNCTION_SYMBOL]: SlotRenderFunction<Props>;\n};\n\nexport function createElement<P extends {}>(\n type: React.ElementType<P>,\n props?: P | null,\n ...children: React.ReactNode[]\n): React.ReactElement<P> | null {\n return hasRenderFunction(props)\n ? createElementFromRenderFunction(type, props, children)\n : React.createElement(type, props, ...children);\n}\n\nfunction createElementFromRenderFunction<P extends UnknownSlotProps>(\n type: React.ElementType<P>,\n props: WithMetadata<P>,\n overrideChildren: React.ReactNode[],\n): React.ReactElement<P> | null {\n const { [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction, ...renderProps } = props;\n\n if (overrideChildren.length > 0) {\n renderProps.children = React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n\n return React.createElement(\n React.Fragment,\n {},\n renderFunction(type, renderProps as UnknownSlotProps as P),\n ) as React.ReactElement<P>;\n}\n\nexport function hasRenderFunction<Props extends {}>(props?: Props | null): props is WithMetadata<Props> {\n return Boolean(props?.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));\n}\n"],"names":["React","SLOT_RENDER_FUNCTION_SYMBOL","createElement","type","props","children","hasRenderFunction","createElementFromRenderFunction","overrideChildren","renderFunction","renderProps","length","Fragment","Boolean","hasOwnProperty"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAA+CC,2BAA2B,QAAQ,4BAA4B;AAM9G,OAAO,SAASC,cACdC,IAA0B,EAC1BC,KAAgB,EAChB,GAAGC,QAA2B,EACA;IAC9B,OAAOC,kBAAkBF,SACrBG,gCAAgCJ,MAAMC,OAAOC,YAC7CL,MAAME,aAAa,CAACC,MAAMC,UAAUC,SAAS;AACnD,CAAC;AAED,SAASE,gCACPJ,IAA0B,EAC1BC,KAAsB,EACtBI,gBAAmC,EACL;IAC9B,MAAM,EAAE,CAACP,4BAA4B,EAAEQ,eAAc,EAAE,GAAGC,aAAa,GAAGN;IAE1E,IAAII,iBAAiBG,MAAM,GAAG,GAAG;QAC/BD,YAAYL,QAAQ,GAAGL,MAAME,aAAa,CAACF,MAAMY,QAAQ,EAAE,CAAC,MAAMJ;IACpE,CAAC;IAED,OAAOR,MAAME,aAAa,CACxBF,MAAMY,QAAQ,EACd,CAAC,GACDH,eAAeN,MAAMO;AAEzB;AAEA,OAAO,SAASJ,kBAAoCF,KAAoB,EAAgC;IACtG,OAAOS,QAAQT,kBAAAA,mBAAAA,KAAAA,IAAAA,MAAOU,cAAc,CAACb;AACvC,CAAC"}
1
+ {"version":3,"sources":["createElement.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n UnknownSlotProps,\n isSlot,\n SlotComponentType,\n SLOT_ELEMENT_TYPE_SYMBOL,\n SLOT_RENDER_FUNCTION_SYMBOL,\n} from '@fluentui/react-utilities';\n\nexport function createElement<P extends {}>(\n type: React.ElementType<P>,\n props?: P | null,\n ...children: React.ReactNode[]\n): React.ReactElement<P> | null {\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(\n { ...props, [SLOT_ELEMENT_TYPE_SYMBOL]: type } as SlotComponentType<P>,\n children,\n );\n }\n if (isSlot<P>(type)) {\n return createElementFromSlotComponent(type, children);\n }\n return React.createElement(type, props, ...children);\n}\n\nfunction createElementFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideChildren: React.ReactNode[],\n): React.ReactElement<Props> | null {\n const {\n as,\n [SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType,\n [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction,\n ...propsWithoutMetadata\n } = type;\n const props = propsWithoutMetadata as UnknownSlotProps as Props;\n\n const elementType = typeof baseElementType === 'string' ? as ?? baseElementType : baseElementType;\n\n if (typeof elementType !== 'string' && as) {\n props.as = as;\n }\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","isSlot","SLOT_ELEMENT_TYPE_SYMBOL","SLOT_RENDER_FUNCTION_SYMBOL","createElement","type","props","children","createElementFromSlotComponent","overrideChildren","as","baseElementType","renderFunction","propsWithoutMetadata","elementType","length","Fragment"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAEEC,MAAM,EAENC,wBAAwB,EACxBC,2BAA2B,QACtB,4BAA4B;AAEnC,OAAO,SAASC,cACdC,IAA0B,EAC1BC,KAAgB,EAChB,GAAGC,QAA2B,EACA;IAC9B,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIN,OAAUK,QAAQ;QACpB,OAAOE,+BACL;YAAE,GAAGF,KAAK;YAAE,CAACJ,yBAAyB,EAAEG;QAAK,GAC7CE;IAEJ,CAAC;IACD,IAAIN,OAAUI,OAAO;QACnB,OAAOG,+BAA+BH,MAAME;IAC9C,CAAC;IACD,OAAOP,MAAMI,aAAa,CAACC,MAAMC,UAAUC;AAC7C,CAAC;AAED,SAASC,+BACPH,IAA8B,EAC9BI,gBAAmC,EACD;IAClC,MAAM,EACJC,GAAE,EACF,CAACR,yBAAyB,EAAES,gBAAe,EAC3C,CAACR,4BAA4B,EAAES,eAAc,EAC7C,GAAGC,sBACJ,GAAGR;IACJ,MAAMC,QAAQO;IAEd,MAAMC,cAAc,OAAOH,oBAAoB,WAAWD,eAAAA,gBAAAA,KAAMC,eAAe,GAAGA,eAAe;IAEjG,IAAI,OAAOG,gBAAgB,YAAYJ,IAAI;QACzCJ,MAAMI,EAAE,GAAGA;IACb,CAAC;IAED,IAAIE,gBAAgB;QAClB,IAAIH,iBAAiBM,MAAM,GAAG,GAAG;YAC/BT,MAAMC,QAAQ,GAAGP,MAAMI,aAAa,CAACJ,MAAMgB,QAAQ,EAAE,CAAC,MAAMP;QAC9D,CAAC;QAED,OAAOT,MAAMI,aAAa,CACxBJ,MAAMgB,QAAQ,EACd,CAAC,GACDJ,eAAeE,aAAyCR;IAE5D,CAAC;IAED,OAAON,MAAMI,aAAa,CAACU,aAAaR,UAAUG;AACpD"}
@@ -2,29 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- createElement: ()=>createElement,
13
- hasRenderFunction: ()=>hasRenderFunction
5
+ Object.defineProperty(exports, "createElement", {
6
+ enumerable: true,
7
+ get: ()=>createElement
14
8
  });
15
9
  const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
16
10
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
17
11
  const _reactUtilities = require("@fluentui/react-utilities");
18
12
  function createElement(type, props, ...children) {
19
- return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : /*#__PURE__*/ _react.createElement(type, props, ...children);
20
- }
21
- function createElementFromRenderFunction(type, props, overrideChildren) {
22
- const { [_reactUtilities.SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...renderProps } = props;
23
- if (overrideChildren.length > 0) {
24
- renderProps.children = /*#__PURE__*/ _react.createElement(_react.Fragment, {}, ...overrideChildren);
13
+ // TODO:
14
+ // this is for backwards compatibility with getSlotsNext
15
+ // it should be removed once getSlotsNext is obsolete
16
+ if ((0, _reactUtilities.isSlot)(props)) {
17
+ return createElementFromSlotComponent({
18
+ ...props,
19
+ [_reactUtilities.SLOT_ELEMENT_TYPE_SYMBOL]: type
20
+ }, children);
21
+ }
22
+ if ((0, _reactUtilities.isSlot)(type)) {
23
+ return createElementFromSlotComponent(type, children);
25
24
  }
26
- return /*#__PURE__*/ _react.createElement(_react.Fragment, {}, renderFunction(type, renderProps));
25
+ return /*#__PURE__*/ _react.createElement(type, props, ...children);
27
26
  }
28
- function hasRenderFunction(props) {
29
- return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(_reactUtilities.SLOT_RENDER_FUNCTION_SYMBOL));
27
+ function createElementFromSlotComponent(type, overrideChildren) {
28
+ const { as , [_reactUtilities.SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType , [_reactUtilities.SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...propsWithoutMetadata } = type;
29
+ const props = propsWithoutMetadata;
30
+ const elementType = typeof baseElementType === 'string' ? as !== null && as !== void 0 ? as : baseElementType : baseElementType;
31
+ if (typeof elementType !== 'string' && as) {
32
+ props.as = as;
33
+ }
34
+ if (renderFunction) {
35
+ if (overrideChildren.length > 0) {
36
+ props.children = /*#__PURE__*/ _react.createElement(_react.Fragment, {}, ...overrideChildren);
37
+ }
38
+ return /*#__PURE__*/ _react.createElement(_react.Fragment, {}, renderFunction(elementType, props));
39
+ }
40
+ return /*#__PURE__*/ _react.createElement(elementType, props, ...overrideChildren);
30
41
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["createElement.js"],"sourcesContent":["import * as React from 'react';\nimport { SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';\nexport function createElement(type, props, ...children) {\n return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : React.createElement(type, props, ...children);\n}\nfunction createElementFromRenderFunction(type, props, overrideChildren) {\n const { [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...renderProps } = props;\n if (overrideChildren.length > 0) {\n renderProps.children = React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n return React.createElement(React.Fragment, {}, renderFunction(type, renderProps));\n}\nexport function hasRenderFunction(props) {\n return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));\n}\n"],"names":["createElement","hasRenderFunction","type","props","children","createElementFromRenderFunction","React","overrideChildren","SLOT_RENDER_FUNCTION_SYMBOL","renderFunction","renderProps","length","Fragment","Boolean","hasOwnProperty"],"mappings":";;;;;;;;;;;IAEgBA,aAAa,MAAbA;IAUAC,iBAAiB,MAAjBA;;;6DAZO;gCACqB;AACrC,SAASD,cAAcE,IAAI,EAAEC,KAAK,EAAE,GAAGC,QAAQ,EAAE;IACpD,OAAOH,kBAAkBE,SAASE,gCAAgCH,MAAMC,OAAOC,0BAAYE,OAAMN,aAAa,CAACE,MAAMC,UAAUC,SAAS;AAC5I;AACA,SAASC,gCAAgCH,IAAI,EAAEC,KAAK,EAAEI,gBAAgB,EAAE;IACpE,MAAM,EAAE,CAACC,2CAA2B,CAAC,EAAEC,eAAc,EAAG,GAAGC,aAAa,GAAGP;IAC3E,IAAII,iBAAiBI,MAAM,GAAG,GAAG;QAC7BD,YAAYN,QAAQ,iBAAGE,OAAMN,aAAa,CAACM,OAAMM,QAAQ,EAAE,CAAC,MAAML;IACtE,CAAC;IACD,qBAAOD,OAAMN,aAAa,CAACM,OAAMM,QAAQ,EAAE,CAAC,GAAGH,eAAeP,MAAMQ;AACxE;AACO,SAAST,kBAAkBE,KAAK,EAAE;IACrC,OAAOU,QAAQV,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMW,cAAc,CAACN,2CAA2B,CAAC;AAClH"}
1
+ {"version":3,"sources":["createElement.js"],"sourcesContent":["import * as React from 'react';\nimport { isSlot, SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';\nexport function createElement(type, props, ...children) {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(props)) {\n return createElementFromSlotComponent({\n ...props,\n [SLOT_ELEMENT_TYPE_SYMBOL]: type\n }, children);\n }\n if (isSlot(type)) {\n return createElementFromSlotComponent(type, children);\n }\n return React.createElement(type, props, ...children);\n}\nfunction createElementFromSlotComponent(type, overrideChildren) {\n const { as , [SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType , [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...propsWithoutMetadata } = type;\n const props = propsWithoutMetadata;\n const elementType = typeof baseElementType === 'string' ? as !== null && as !== void 0 ? as : baseElementType : baseElementType;\n if (typeof elementType !== 'string' && as) {\n props.as = as;\n }\n if (renderFunction) {\n if (overrideChildren.length > 0) {\n props.children = React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n return React.createElement(React.Fragment, {}, renderFunction(elementType, props));\n }\n return React.createElement(elementType, props, ...overrideChildren);\n}\n"],"names":["createElement","type","props","children","isSlot","createElementFromSlotComponent","SLOT_ELEMENT_TYPE_SYMBOL","React","overrideChildren","as","baseElementType","SLOT_RENDER_FUNCTION_SYMBOL","renderFunction","propsWithoutMetadata","elementType","length","Fragment"],"mappings":";;;;+BAEgBA;;aAAAA;;;6DAFO;gCACuD;AACvE,SAASA,cAAcC,IAAI,EAAEC,KAAK,EAAE,GAAGC,QAAQ,EAAE;IACpD,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIC,IAAAA,sBAAM,EAACF,QAAQ;QACf,OAAOG,+BAA+B;YAClC,GAAGH,KAAK;YACR,CAACI,wCAAwB,CAAC,EAAEL;QAChC,GAAGE;IACP,CAAC;IACD,IAAIC,IAAAA,sBAAM,EAACH,OAAO;QACd,OAAOI,+BAA+BJ,MAAME;IAChD,CAAC;IACD,qBAAOI,OAAMP,aAAa,CAACC,MAAMC,UAAUC;AAC/C;AACA,SAASE,+BAA+BJ,IAAI,EAAEO,gBAAgB,EAAE;IAC5D,MAAM,EAAEC,GAAE,EAAG,CAACH,wCAAwB,CAAC,EAAEI,gBAAe,EAAG,CAACC,2CAA2B,CAAC,EAAEC,eAAc,EAAG,GAAGC,sBAAsB,GAAGZ;IACvI,MAAMC,QAAQW;IACd,MAAMC,cAAc,OAAOJ,oBAAoB,WAAWD,OAAO,IAAI,IAAIA,OAAO,KAAK,IAAIA,KAAKC,eAAe,GAAGA,eAAe;IAC/H,IAAI,OAAOI,gBAAgB,YAAYL,IAAI;QACvCP,MAAMO,EAAE,GAAGA;IACf,CAAC;IACD,IAAIG,gBAAgB;QAChB,IAAIJ,iBAAiBO,MAAM,GAAG,GAAG;YAC7Bb,MAAMC,QAAQ,iBAAGI,OAAMP,aAAa,CAACO,OAAMS,QAAQ,EAAE,CAAC,MAAMR;QAChE,CAAC;QACD,qBAAOD,OAAMP,aAAa,CAACO,OAAMS,QAAQ,EAAE,CAAC,GAAGJ,eAAeE,aAAaZ;IAC/E,CAAC;IACD,qBAAOK,OAAMP,aAAa,CAACc,aAAaZ,UAAUM;AACtD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "0.0.0-nightly-20230803-0413.1",
3
+ "version": "0.0.0-nightly-20230807-0415.1",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluentui/eslint-plugin": "*",
27
- "@fluentui/react-conformance": "0.0.0-nightly-20230803-0413.1",
28
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230803-0413.1",
27
+ "@fluentui/react-conformance": "0.0.0-nightly-20230807-0415.1",
28
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230807-0415.1",
29
29
  "@fluentui/scripts-api-extractor": "*",
30
30
  "@fluentui/scripts-tasks": "*"
31
31
  },
32
32
  "dependencies": {
33
- "@fluentui/react-utilities": "0.0.0-nightly-20230803-0413.1",
33
+ "@fluentui/react-utilities": "0.0.0-nightly-20230807-0415.1",
34
34
  "@swc/helpers": "^0.4.14"
35
35
  },
36
36
  "peerDependencies": {