@fluentui/react-jsx-runtime 9.0.0-alpha.4 → 9.0.0-alpha.6

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,7 +2,58 @@
2
2
  "name": "@fluentui/react-jsx-runtime",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 18 May 2023 00:35:39 GMT",
5
+ "date": "Wed, 31 May 2023 06:43:06 GMT",
6
+ "tag": "@fluentui/react-jsx-runtime_v9.0.0-alpha.6",
7
+ "version": "9.0.0-alpha.6",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-jsx-runtime",
13
+ "comment": "Bump @fluentui/react-utilities to v9.9.2",
14
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-jsx-runtime",
19
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
20
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Thu, 25 May 2023 10:00:48 GMT",
27
+ "tag": "@fluentui/react-jsx-runtime_v9.0.0-alpha.5",
28
+ "version": "9.0.0-alpha.5",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui/react-jsx-runtime",
34
+ "comment": "Bump @fluentui/react-utilities to v9.9.1",
35
+ "commit": "8f7c1b7591b3e665ae39e1b22ab0f0b28fb795c4"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Wed, 24 May 2023 20:45:28 GMT",
42
+ "tag": "@fluentui/react-jsx-runtime_v9.0.0-alpha.4",
43
+ "version": "9.0.0-alpha.4",
44
+ "comments": {
45
+ "none": [
46
+ {
47
+ "author": "olfedias@microsoft.com",
48
+ "package": "@fluentui/react-jsx-runtime",
49
+ "commit": "69e0617a93cb44ef42f3bd19284b7dc5fe27fed3",
50
+ "comment": "chore: update test-ssr script"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Thu, 18 May 2023 00:39:08 GMT",
6
57
  "tag": "@fluentui/react-jsx-runtime_v9.0.0-alpha.4",
7
58
  "version": "9.0.0-alpha.4",
8
59
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Thu, 18 May 2023 00:35:39 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 31 May 2023 06:43:06 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.6)
8
+
9
+ Wed, 31 May 2023 06:43:06 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.5..@fluentui/react-jsx-runtime_v9.0.0-alpha.6)
11
+
12
+ ### Changes
13
+
14
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
15
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
16
+
17
+ ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.5)
18
+
19
+ Thu, 25 May 2023 10:00:48 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.4..@fluentui/react-jsx-runtime_v9.0.0-alpha.5)
21
+
22
+ ### Changes
23
+
24
+ - Bump @fluentui/react-utilities to v9.9.1 ([PR #27988](https://github.com/microsoft/fluentui/pull/27988) by beachball)
25
+
7
26
  ## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0-alpha.4)
8
27
 
9
- Thu, 18 May 2023 00:35:39 GMT
28
+ Thu, 18 May 2023 00:39:08 GMT
10
29
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.3..@fluentui/react-jsx-runtime_v9.0.0-alpha.4)
11
30
 
12
31
  ### Changes
@@ -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": "9.0.0-alpha.4",
3
+ "version": "9.0.0-alpha.6",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,17 +20,17 @@
20
20
  "test": "jest --passWithNoTests",
21
21
  "type-check": "tsc -b tsconfig.json",
22
22
  "generate-api": "just-scripts generate-api",
23
- "test-ssr": "test-ssr ./stories/**/*.stories.tsx"
23
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluentui/eslint-plugin": "*",
27
27
  "@fluentui/react-conformance": "*",
28
- "@fluentui/react-conformance-griffel": "9.0.0-beta.21",
28
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.22",
29
29
  "@fluentui/scripts-api-extractor": "*",
30
30
  "@fluentui/scripts-tasks": "*"
31
31
  },
32
32
  "dependencies": {
33
- "@fluentui/react-utilities": "^9.9.0",
33
+ "@fluentui/react-utilities": "^9.9.2",
34
34
  "@swc/helpers": "^0.4.14"
35
35
  },
36
36
  "peerDependencies": {