@fluentui/react-jsx-runtime 0.0.0-nightly-20230427-0418.1 → 0.0.0-nightly-20230428-0419.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/package.json +3 -3
- package/dist/index.d.ts +0 -8
- package/lib/createElement.js +0 -19
- package/lib/createElement.js.map +0 -1
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
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": "Fri, 28 Apr 2023 04:25:18 GMT",
|
|
6
|
+
"tag": "@fluentui/react-jsx-runtime_v0.0.0-nightly-20230428-0419.1",
|
|
7
|
+
"version": "0.0.0-nightly-20230428-0419.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-20230428-0419.1",
|
|
20
|
+
"commit": "6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839"
|
|
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-20230428-0419.1",
|
|
26
|
+
"commit": "6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839"
|
|
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 Fri, 28 Apr 2023 04:25:18 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-20230428-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v0.0.0-nightly-20230428-0419.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.2..@fluentui/react-jsx-runtime_v0.0.0-nightly-
|
|
9
|
+
Fri, 28 Apr 2023 04:25:18 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.2..@fluentui/react-jsx-runtime_v0.0.0-nightly-20230428-0419.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-20230428-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839) by beachball)
|
|
16
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230428-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839) by beachball)
|
|
17
17
|
|
|
18
18
|
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.2)
|
|
19
19
|
|
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-20230428-0419.1",
|
|
4
4
|
"description": "React components for building web experiences",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@fluentui/eslint-plugin": "*",
|
|
26
26
|
"@fluentui/react-conformance": "*",
|
|
27
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
|
27
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230428-0419.1",
|
|
28
28
|
"@fluentui/scripts-api-extractor": "*",
|
|
29
29
|
"@fluentui/scripts-tasks": "*"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
|
32
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230428-0419.1",
|
|
33
33
|
"@swc/helpers": "^0.4.14"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
package/dist/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import * as React_2 from 'react';
|
|
3
|
-
|
|
4
|
-
export declare function createElement<P extends {}>(type: React_2.ElementType<P>, props?: P | null, ...children: React_2.ReactNode[]): React_2.ReactElement<P> | null;
|
|
5
|
-
|
|
6
|
-
export { Fragment }
|
|
7
|
-
|
|
8
|
-
export { }
|
package/lib/createElement.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SLOT_RENDER_FUNCTION_SYMBOL } from '@fluentui/react-utilities';
|
|
3
|
-
export function createElement(type, props, ...children) {
|
|
4
|
-
return hasRenderFunction(props) ? createElementFromRenderFunction(type, props, children) : /*#__PURE__*/React.createElement(type, props, ...children);
|
|
5
|
-
}
|
|
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));
|
|
15
|
-
}
|
|
16
|
-
export function hasRenderFunction(props) {
|
|
17
|
-
return Boolean(props === null || props === void 0 ? void 0 : props.hasOwnProperty(SLOT_RENDER_FUNCTION_SYMBOL));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=createElement.js.map
|
package/lib/createElement.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/index.js
DELETED
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|