@fluentui/react-jsx-runtime
Advanced tools
Comparing version 0.0.0-nightly-20230529-0417.1 to 0.0.0-nightly-20230530-0415.1
@@ -5,5 +5,5 @@ { | ||
{ | ||
"date": "Mon, 29 May 2023 04:22:24 GMT", | ||
"tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230529-0417.1", | ||
"version": "0.0.0-nightly-20230529-0417.1", | ||
"date": "Tue, 30 May 2023 04:20:58 GMT", | ||
"tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230530-0415.1", | ||
"version": "0.0.0-nightly-20230530-0415.1", | ||
"comments": { | ||
@@ -20,4 +20,4 @@ "prerelease": [ | ||
"package": "@fluentui/react-jsx-runtime", | ||
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230529-0417.1", | ||
"commit": "7df11de7bd463f5d170ca4e80e14d2352a752b3b" | ||
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230530-0415.1", | ||
"commit": "808fbe4052231d4cccf478348a770df18232f4f9" | ||
}, | ||
@@ -27,4 +27,4 @@ { | ||
"package": "@fluentui/react-jsx-runtime", | ||
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230529-0417.1", | ||
"commit": "7df11de7bd463f5d170ca4e80e14d2352a752b3b" | ||
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230530-0415.1", | ||
"commit": "808fbe4052231d4cccf478348a770df18232f4f9" | ||
} | ||
@@ -31,0 +31,0 @@ ] |
# Change Log - @fluentui/react-jsx-runtime | ||
This log was last generated on Mon, 29 May 2023 04:22:24 GMT and should not be manually modified. | ||
This log was last generated on Tue, 30 May 2023 04:20:58 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [0.0.0-nightly-20230529-0417.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230529-0417.1) | ||
## [0.0.0-nightly-20230530-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230530-0415.1) | ||
Mon, 29 May 2023 04:22:24 GMT | ||
[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) | ||
Tue, 30 May 2023 04:20:58 GMT | ||
[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-20230530-0415.1) | ||
@@ -15,4 +15,4 @@ ### Changes | ||
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com) | ||
- Bump @fluentui/react-utilities to v0.0.0-nightly-20230529-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/7df11de7bd463f5d170ca4e80e14d2352a752b3b) by beachball) | ||
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230529-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/7df11de7bd463f5d170ca4e80e14d2352a752b3b) by beachball) | ||
- Bump @fluentui/react-utilities to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball) | ||
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball) | ||
@@ -19,0 +19,0 @@ ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.5) |
import * as React from 'react'; | ||
import { SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities'; | ||
export function createElement(type, props, ...children) { | ||
return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : /*#__PURE__*/React.createElement(type, props, ...children); | ||
return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : React.createElement(type, props, ...children); | ||
} | ||
function createElementFromRenderFunction(type, props, overrideChildren) { | ||
const { | ||
[SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction, | ||
...renderProps | ||
} = props; | ||
if (overrideChildren.length > 0) { | ||
renderProps.children = /*#__PURE__*/React.createElement(React.Fragment, {}, ...overrideChildren); | ||
} | ||
return /*#__PURE__*/React.createElement(React.Fragment, {}, renderFunction(type, renderProps)); | ||
const { [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction , ...renderProps } = props; | ||
if (overrideChildren.length > 0) { | ||
renderProps.children = React.createElement(React.Fragment, {}, ...overrideChildren); | ||
} | ||
return React.createElement(React.Fragment, {}, renderFunction(type, renderProps)); | ||
} | ||
export function hasRenderFunction(props) { | ||
return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL)); | ||
return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL)); | ||
} | ||
//# sourceMappingURL=createElement.js.map |
export { createElement } from './createElement'; | ||
export { Fragment } from 'react'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@fluentui/react-jsx-runtime", | ||
"version": "0.0.0-nightly-20230529-0417.1", | ||
"version": "0.0.0-nightly-20230530-0415.1", | ||
"description": "React components for building web experiences", | ||
@@ -28,3 +28,3 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/react-conformance": "*", | ||
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230529-0417.1", | ||
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230530-0415.1", | ||
"@fluentui/scripts-api-extractor": "*", | ||
@@ -34,3 +34,3 @@ "@fluentui/scripts-tasks": "*" | ||
"dependencies": { | ||
"@fluentui/react-utilities": "0.0.0-nightly-20230529-0417.1", | ||
"@fluentui/react-utilities": "0.0.0-nightly-20230530-0415.1", | ||
"@swc/helpers": "^0.4.14" | ||
@@ -37,0 +37,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19769
225
+ Added@fluentui/keyboard-keys@0.0.0-nightly-20230530-0415.1(transitive)
+ Added@fluentui/react-utilities@0.0.0-nightly-20230530-0415.1(transitive)
- Removed@fluentui/keyboard-keys@0.0.0-nightly-20230529-0417.1(transitive)
- Removed@fluentui/react-utilities@0.0.0-nightly-20230529-0417.1(transitive)
Updated@fluentui/react-utilities@0.0.0-nightly-20230530-0415.1