@fluentui/react-jsx-runtime 0.0.0-nightly-20230529-0417.1 → 0.0.0-nightly-20230531-0416.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": "Mon, 29 May 2023 04:22:24 GMT",
6
- "tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230529-0417.1",
7
- "version": "0.0.0-nightly-20230529-0417.1",
5
+ "date": "Wed, 31 May 2023 04:21:49 GMT",
6
+ "tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230531-0416.1",
7
+ "version": "0.0.0-nightly-20230531-0416.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,14 +16,14 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-jsx-runtime",
19
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230529-0417.1",
20
- "commit": "7df11de7bd463f5d170ca4e80e14d2352a752b3b"
19
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230531-0416.1",
20
+ "commit": "ae1413c54c14b251f857528305e1d8b16f931ef6"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-jsx-runtime",
25
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230529-0417.1",
26
- "commit": "7df11de7bd463f5d170ca4e80e14d2352a752b3b"
25
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230531-0416.1",
26
+ "commit": "ae1413c54c14b251f857528305e1d8b16f931ef6"
27
27
  }
28
28
  ]
29
29
  }
package/CHANGELOG.md CHANGED
@@ -1,19 +1,19 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Mon, 29 May 2023 04:22:24 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 31 May 2023 04:21:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230529-0417.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230529-0417.1)
7
+ ## [0.0.0-nightly-20230531-0416.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230531-0416.1)
8
8
 
9
- Mon, 29 May 2023 04:22:24 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.5..@fluentui/react-jsx-runtime_v0.0.0-nightly-20230529-0417.1)
9
+ Wed, 31 May 2023 04:21:49 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.5..@fluentui/react-jsx-runtime_v0.0.0-nightly-20230531-0416.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-20230529-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/7df11de7bd463f5d170ca4e80e14d2352a752b3b) by beachball)
16
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230529-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/7df11de7bd463f5d170ca4e80e14d2352a752b3b) by beachball)
15
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230531-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/ae1413c54c14b251f857528305e1d8b16f931ef6) by beachball)
16
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230531-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/ae1413c54c14b251f857528305e1d8b16f931ef6) by beachball)
17
17
 
18
18
  ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.5)
19
19
 
@@ -1,19 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';
3
3
  export function createElement(type, props, ...children) {
4
- return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : /*#__PURE__*/React.createElement(type, props, ...children);
4
+ return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : React.createElement(type, props, ...children);
5
5
  }
6
6
  function createElementFromRenderFunction(type, props, overrideChildren) {
7
- const {
8
- [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction,
9
- ...renderProps
10
- } = props;
11
- if (overrideChildren.length > 0) {
12
- renderProps.children = /*#__PURE__*/React.createElement(React.Fragment, {}, ...overrideChildren);
13
- }
14
- return /*#__PURE__*/React.createElement(React.Fragment, {}, renderFunction(type, renderProps));
7
+ const { [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...renderProps } = props;
8
+ if (overrideChildren.length > 0) {
9
+ renderProps.children = React.createElement(React.Fragment, {}, ...overrideChildren);
10
+ }
11
+ return React.createElement(React.Fragment, {}, renderFunction(type, renderProps));
15
12
  }
16
13
  export function hasRenderFunction(props) {
17
- return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));
14
+ return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));
18
15
  }
19
- //# sourceMappingURL=createElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","SLOT_RENDER_FUNCTION_SYMBOL","createElement","type","props","children","hasRenderFunction","createElementFromRenderFunction","overrideChildren","renderFunction","renderProps","length","Fragment","Boolean","hasOwnProperty"],"sources":["../src/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"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAA+CC,2BAA2B,QAAQ;AAMlF,OAAO,SAASC,cACdC,IAA0B,EAC1BC,KAAgB,EAChB,GAAGC,QAA2B,EACA;EAC9B,OAAOC,iBAAA,CAAkBF,KAAA,IACrBG,+BAAA,CAAgCJ,IAAA,EAAMC,KAAA,EAAOC,QAAA,iBAC7CL,KAAA,CAAME,aAAa,CAACC,IAAA,EAAMC,KAAA,KAAUC,QAAA,CAAS;AACnD;AAEA,SAASE,gCACPJ,IAA0B,EAC1BC,KAAsB,EACtBI,gBAAmC,EACL;EAC9B,MAAM;IAAE,CAACP,2BAAA,GAA8BQ,cAAA;IAAgB,GAAGC;EAAA,CAAa,GAAGN,KAAA;EAE1E,IAAII,gBAAA,CAAiBG,MAAM,GAAG,GAAG;IAC/BD,WAAA,CAAYL,QAAQ,gBAAGL,KAAA,CAAME,aAAa,CAACF,KAAA,CAAMY,QAAQ,EAAE,CAAC,MAAMJ,gBAAA;EACpE;EAEA,oBAAOR,KAAA,CAAME,aAAa,CACxBF,KAAA,CAAMY,QAAQ,EACd,CAAC,GACDH,cAAA,CAAeN,IAAA,EAAMO,WAAA;AAEzB;AAEA,OAAO,SAASJ,kBAAoCF,KAAoB,EAAgC;EACtG,OAAOS,OAAA,CAAQT,KAAA,aAAAA,KAAA,uBAAAA,KAAA,CAAOU,cAAc,CAACb,2BAAA;AACvC"}
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"}
package/lib/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { createElement } from './createElement';
2
2
  export { Fragment } from 'react';
3
- //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","Fragment"],"sources":["../src/index.ts"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ;AAC9B,SAASC,QAAQ,QAAQ"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n"],"names":["createElement","Fragment"],"mappings":"AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAChD,SAASC,QAAQ,QAAQ,QAAQ"}
@@ -27,6 +27,4 @@ function createElementFromRenderFunction(type, props, overrideChildren) {
27
27
  }
28
28
  function hasRenderFunction(props) {
29
29
  return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(_reactUtilities.SLOT_RENDER_FUNCTION_SYMBOL));
30
- } //# sourceMappingURL=createElement.js.map
31
-
32
- //# sourceMappingURL=createElement.js.map
30
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../lib/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) : /*#__PURE__*/React.createElement(type, props, ...children);\n}\nfunction createElementFromRenderFunction(type, props, overrideChildren) {\n const {\n [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction,\n ...renderProps\n } = props;\n if (overrideChildren.length > 0) {\n renderProps.children = /*#__PURE__*/React.createElement(React.Fragment, {}, ...overrideChildren);\n }\n return /*#__PURE__*/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//# sourceMappingURL=createElement.js.map"],"names":["createElement","hasRenderFunction","type","props","children","createElementFromRenderFunction","React","overrideChildren","SLOT_RENDER_FUNCTION_SYMBOL","renderFunction","renderProps","length","Fragment","Boolean","hasOwnProperty"],"mappings":";;;;;;;;;;;IAEgBA,aAAa,MAAbA;IAaAC,iBAAiB,MAAjBA;;;6DAfO;gCACqB;AACrC,SAASD,cAAcE,IAAI,EAAEC,KAAK,EAAE,GAAGC,QAAQ,EAAE;IACtD,OAAOH,kBAAkBE,SAASE,gCAAgCH,MAAMC,OAAOC,YAAY,WAAW,GAAEE,OAAMN,aAAa,CAACE,MAAMC,UAAUC,SAAS;AACvJ;AACA,SAASC,gCAAgCH,IAAI,EAAEC,KAAK,EAAEI,gBAAgB,EAAE;IACtE,MAAM,EACJ,CAACC,2CAA2B,CAAC,EAAEC,eAAc,EAC7C,GAAGC,aACJ,GAAGP;IACJ,IAAII,iBAAiBI,MAAM,GAAG,GAAG;QAC/BD,YAAYN,QAAQ,GAAG,WAAW,GAAEE,OAAMN,aAAa,CAACM,OAAMM,QAAQ,EAAE,CAAC,MAAML;IACjF,CAAC;IACD,OAAO,WAAW,GAAED,OAAMN,aAAa,CAACM,OAAMM,QAAQ,EAAE,CAAC,GAAGH,eAAeP,MAAMQ;AACnF;AACO,SAAST,kBAAkBE,KAAK,EAAE;IACvC,OAAOU,QAAQV,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMW,cAAc,CAACN,2CAA2B,CAAC;AAChH,EACA,yCAAyC"}
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"}
@@ -14,6 +14,3 @@ _export(exports, {
14
14
  });
15
15
  const _createElement = require("./createElement");
16
16
  const _react = require("react");
17
- //# sourceMappingURL=index.js.map
18
-
19
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n//# sourceMappingURL=index.js.map"],"names":["createElement","Fragment"],"mappings":";;;;;;;;;;;IAASA,aAAa,MAAbA,4BAAa;IACbC,QAAQ,MAARA,eAAQ;;+BADa;uBACL;CACzB,iCAAiC"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { createElement } from './createElement';\nexport { Fragment } from 'react';\n"],"names":["createElement","Fragment"],"mappings":";;;;;;;;;;;IAASA,aAAa,MAAbA,4BAAa;IACbC,QAAQ,MAARA,eAAQ;;+BADa;uBACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "0.0.0-nightly-20230529-0417.1",
3
+ "version": "0.0.0-nightly-20230531-0416.1",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -25,12 +25,12 @@
25
25
  "devDependencies": {
26
26
  "@fluentui/eslint-plugin": "*",
27
27
  "@fluentui/react-conformance": "*",
28
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230529-0417.1",
28
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230531-0416.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-20230529-0417.1",
33
+ "@fluentui/react-utilities": "0.0.0-nightly-20230531-0416.1",
34
34
  "@swc/helpers": "^0.4.14"
35
35
  },
36
36
  "peerDependencies": {