@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 +7 -7
- package/CHANGELOG.md +6 -6
- package/lib/createElement.js +7 -11
- package/lib/createElement.js.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/createElement.js +1 -3
- package/lib-commonjs/createElement.js.map +1 -1
- package/lib-commonjs/index.js +0 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui/react-jsx-runtime",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
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-
|
|
20
|
-
"commit": "
|
|
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-
|
|
26
|
-
"commit": "
|
|
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
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
16
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
|
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
|
|
package/lib/createElement.js
CHANGED
|
@@ -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
|
-
|
|
4
|
+
return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : React.createElement(type, props, ...children);
|
|
5
5
|
}
|
|
6
6
|
function createElementFromRenderFunction(type, props, overrideChildren) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
14
|
+
return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));
|
|
18
15
|
}
|
|
19
|
-
//# sourceMappingURL=createElement.js.map
|
package/lib/createElement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
|
-
}
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=createElement.js.map
|
|
30
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
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"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
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-
|
|
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-
|
|
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-
|
|
33
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230531-0416.1",
|
|
34
34
|
"@swc/helpers": "^0.4.14"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|