@fluentui/react-persona 0.0.0-nightly-20230418-0418.1 → 0.0.0-nightly-20230420-0418.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 +21 -15
- package/CHANGELOG.md +11 -10
- package/lib/components/Persona/renderPersona.js +5 -5
- package/lib/components/Persona/renderPersona.js.map +1 -1
- package/lib-commonjs/components/Persona/renderPersona.js +5 -6
- package/lib-commonjs/components/Persona/renderPersona.js.map +1 -1
- package/package.json +8 -7
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui/react-persona",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-persona_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Thu, 20 Apr 2023 04:24:32 GMT",
|
|
6
|
+
"tag": "@fluentui/react-persona_v0.0.0-nightly-20230420-0418.1",
|
|
7
|
+
"version": "0.0.0-nightly-20230420-0418.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,38 +16,44 @@
|
|
|
16
16
|
{
|
|
17
17
|
"author": "beachball",
|
|
18
18
|
"package": "@fluentui/react-persona",
|
|
19
|
-
"comment": "Bump @fluentui/react-avatar to v0.0.0-nightly-
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @fluentui/react-avatar to v0.0.0-nightly-20230420-0418.1",
|
|
20
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"author": "beachball",
|
|
24
24
|
"package": "@fluentui/react-persona",
|
|
25
|
-
"comment": "Bump @fluentui/react-badge to v0.0.0-nightly-
|
|
26
|
-
"commit": "
|
|
25
|
+
"comment": "Bump @fluentui/react-badge to v0.0.0-nightly-20230420-0418.1",
|
|
26
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"author": "beachball",
|
|
30
30
|
"package": "@fluentui/react-persona",
|
|
31
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
|
32
|
-
"commit": "
|
|
31
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230420-0418.1",
|
|
32
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"author": "beachball",
|
|
36
36
|
"package": "@fluentui/react-persona",
|
|
37
|
-
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-
|
|
38
|
-
"commit": "
|
|
37
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230420-0418.1",
|
|
38
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"author": "beachball",
|
|
42
42
|
"package": "@fluentui/react-persona",
|
|
43
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-
|
|
44
|
-
"commit": "
|
|
43
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230420-0418.1",
|
|
44
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"author": "beachball",
|
|
48
48
|
"package": "@fluentui/react-persona",
|
|
49
|
-
"comment": "Bump @fluentui/react-
|
|
50
|
-
"commit": "
|
|
49
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230420-0418.1",
|
|
50
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui/react-persona",
|
|
55
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230420-0418.1",
|
|
56
|
+
"commit": "2782f4eae2436e853b05b9bdb9604f8945bdf5c0"
|
|
51
57
|
}
|
|
52
58
|
]
|
|
53
59
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-persona
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 20 Apr 2023 04:24:32 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-20230420-0418.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-persona_v0.0.0-nightly-20230420-0418.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-persona_v9.2.8..@fluentui/react-persona_v0.0.0-nightly-
|
|
9
|
+
Thu, 20 Apr 2023 04:24:32 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-persona_v9.2.8..@fluentui/react-persona_v0.0.0-nightly-20230420-0418.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-avatar to v0.0.0-nightly-
|
|
16
|
-
- Bump @fluentui/react-badge to v0.0.0-nightly-
|
|
17
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
|
18
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
|
19
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
|
20
|
-
- Bump @fluentui/react-
|
|
15
|
+
- Bump @fluentui/react-avatar to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
16
|
+
- Bump @fluentui/react-badge to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
17
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
18
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
20
|
+
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
21
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230420-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/2782f4eae2436e853b05b9bdb9604f8945bdf5c0) by beachball)
|
|
21
22
|
|
|
22
23
|
## [9.2.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-persona_v9.2.8)
|
|
23
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
/** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
|
|
2
|
+
import { getSlotsNext } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of Persona
|
|
5
5
|
*/
|
|
@@ -11,8 +11,8 @@ export const renderPersona_unstable = state => {
|
|
|
11
11
|
const {
|
|
12
12
|
slots,
|
|
13
13
|
slotProps
|
|
14
|
-
} =
|
|
15
|
-
const coin = presenceOnly ? slots.presence && /*#__PURE__*/
|
|
16
|
-
return /*#__PURE__*/
|
|
14
|
+
} = getSlotsNext(state);
|
|
15
|
+
const coin = presenceOnly ? slots.presence && /*#__PURE__*/createElement(slots.presence, slotProps.presence) : slots.avatar && /*#__PURE__*/createElement(slots.avatar, slotProps.avatar);
|
|
16
|
+
return /*#__PURE__*/createElement(slots.root, slotProps.root, (textPosition === 'after' || textPosition === 'below') && coin, slots.primaryText && /*#__PURE__*/createElement(slots.primaryText, slotProps.primaryText), slots.secondaryText && /*#__PURE__*/createElement(slots.secondaryText, slotProps.secondaryText), slots.tertiaryText && /*#__PURE__*/createElement(slots.tertiaryText, slotProps.tertiaryText), slots.quaternaryText && /*#__PURE__*/createElement(slots.quaternaryText, slotProps.quaternaryText), textPosition === 'before' && coin);
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=renderPersona.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createElement","getSlotsNext","renderPersona_unstable","state","presenceOnly","textPosition","slots","slotProps","coin","presence","avatar","root","primaryText","secondaryText","tertiaryText","quaternaryText"],"sources":["../../../src/components/Persona/renderPersona.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { PersonaState, PersonaSlots } from './Persona.types';\n\n/**\n * Render the final JSX of Persona\n */\nexport const renderPersona_unstable = (state: PersonaState) => {\n const { presenceOnly, textPosition } = state;\n const { slots, slotProps } = getSlotsNext<PersonaSlots>(state);\n\n const coin = presenceOnly\n ? slots.presence && <slots.presence {...slotProps.presence} />\n : slots.avatar && <slots.avatar {...slotProps.avatar} />;\n\n return (\n <slots.root {...slotProps.root}>\n {(textPosition === 'after' || textPosition === 'below') && coin}\n {slots.primaryText && <slots.primaryText {...slotProps.primaryText} />}\n {slots.secondaryText && <slots.secondaryText {...slotProps.secondaryText} />}\n {slots.tertiaryText && <slots.tertiaryText {...slotProps.tertiaryText} />}\n {slots.quaternaryText && <slots.quaternaryText {...slotProps.quaternaryText} />}\n {textPosition === 'before' && coin}\n </slots.root>\n );\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAG7B;;;AAGA,OAAO,MAAMC,sBAAA,GAA0BC,KAAA,IAAwB;EAC7D,MAAM;IAAEC,YAAA;IAAcC;EAAY,CAAE,GAAGF,KAAA;EACvC,MAAM;IAAEG,KAAA;IAAOC;EAAS,CAAE,GAAGN,YAAA,CAA2BE,KAAA;EAExD,MAAMK,IAAA,GAAOJ,YAAA,GACTE,KAAA,CAAMG,QAAQ,iBAAIT,aAfxB,CAeyBM,KAAA,CAAMG,QAAQ,EAAKF,SAAA,CAAUE,QAAQ,IACxDH,KAAA,CAAMI,MAAM,iBAAIV,aAhBtB,CAgBuBM,KAAA,CAAMI,MAAM,EAAKH,SAAA,CAAUG,MAAM,CAAI;EAE1D,oBACEV,aAnBJ,CAmBKM,KAAA,CAAMK,IAAI,EAAKJ,SAAA,CAAUI,IAAI,EAC3B,CAACN,YAAA,KAAiB,WAAWA,YAAA,KAAiB,OAAM,KAAMG,IAAA,EAC1DF,KAAA,CAAMM,WAAW,iBAAIZ,aArB5B,CAqB6BM,KAAA,CAAMM,WAAW,EAAKL,SAAA,CAAUK,WAAW,GACjEN,KAAA,CAAMO,aAAa,iBAAIb,aAtB9B,CAsB+BM,KAAA,CAAMO,aAAa,EAAKN,SAAA,CAAUM,aAAa,GACvEP,KAAA,CAAMQ,YAAY,iBAAId,aAvB7B,CAuB8BM,KAAA,CAAMQ,YAAY,EAAKP,SAAA,CAAUO,YAAY,GACpER,KAAA,CAAMS,cAAc,iBAAIf,aAxB/B,CAwBgCM,KAAA,CAAMS,cAAc,EAAKR,SAAA,CAAUQ,cAAc,GAC1EV,YAAA,KAAiB,YAAYG,IAAA;AAGpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
/** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
@@ -6,14 +6,13 @@ Object.defineProperty(exports, "renderPersona_unstable", {
|
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: ()=>renderPersona_unstable
|
|
8
8
|
});
|
|
9
|
-
const
|
|
10
|
-
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
9
|
+
const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
|
|
11
10
|
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
11
|
const renderPersona_unstable = (state)=>{
|
|
13
12
|
const { presenceOnly , textPosition } = state;
|
|
14
|
-
const { slots , slotProps } = (0, _reactUtilities.
|
|
15
|
-
const coin = presenceOnly ? slots.presence && /*#__PURE__*/
|
|
16
|
-
return /*#__PURE__*/
|
|
13
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
|
|
14
|
+
const coin = presenceOnly ? slots.presence && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.presence, slotProps.presence) : slots.avatar && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.avatar, slotProps.avatar);
|
|
15
|
+
return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root, (textPosition === 'after' || textPosition === 'below') && coin, slots.primaryText && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.primaryText, slotProps.primaryText), slots.secondaryText && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.secondaryText, slotProps.secondaryText), slots.tertiaryText && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.tertiaryText, slotProps.tertiaryText), slots.quaternaryText && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.quaternaryText, slotProps.quaternaryText), textPosition === 'before' && coin);
|
|
17
16
|
}; //# sourceMappingURL=renderPersona.js.map
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=renderPersona.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/Persona/renderPersona.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Persona/renderPersona.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Persona\n */\nexport const renderPersona_unstable = state => {\n const {\n presenceOnly,\n textPosition\n } = state;\n const {\n slots,\n slotProps\n } = getSlotsNext(state);\n const coin = presenceOnly ? slots.presence && /*#__PURE__*/createElement(slots.presence, slotProps.presence) : slots.avatar && /*#__PURE__*/createElement(slots.avatar, slotProps.avatar);\n return /*#__PURE__*/createElement(slots.root, slotProps.root, (textPosition === 'after' || textPosition === 'below') && coin, slots.primaryText && /*#__PURE__*/createElement(slots.primaryText, slotProps.primaryText), slots.secondaryText && /*#__PURE__*/createElement(slots.secondaryText, slotProps.secondaryText), slots.tertiaryText && /*#__PURE__*/createElement(slots.tertiaryText, slotProps.tertiaryText), slots.quaternaryText && /*#__PURE__*/createElement(slots.quaternaryText, slotProps.quaternaryText), textPosition === 'before' && coin);\n};\n//# sourceMappingURL=renderPersona.js.map"],"names":["renderPersona_unstable","state","presenceOnly","textPosition","slots","slotProps","getSlotsNext","coin","presence","createElement","avatar","root","primaryText","secondaryText","tertiaryText","quaternaryText"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAKrCA;;aAAAA;;iCALqE;gCACrD;AAItB,MAAMA,yBAAyBC,CAAAA,QAAS;IAC7C,MAAM,EACJC,aAAY,EACZC,aAAY,EACb,GAAGF;IACJ,MAAM,EACJG,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,4BAAY,EAACL;IACjB,MAAMM,OAAOL,eAAeE,MAAMI,QAAQ,IAAI,WAAW,GAAEC,IAAAA,8BAAa,EAACL,MAAMI,QAAQ,EAAEH,UAAUG,QAAQ,IAAIJ,MAAMM,MAAM,IAAI,WAAW,GAAED,IAAAA,8BAAa,EAACL,MAAMM,MAAM,EAAEL,UAAUK,MAAM,CAAC;IACzL,OAAO,WAAW,GAAED,IAAAA,8BAAa,EAACL,MAAMO,IAAI,EAAEN,UAAUM,IAAI,EAAE,AAACR,CAAAA,iBAAiB,WAAWA,iBAAiB,OAAM,KAAMI,MAAMH,MAAMQ,WAAW,IAAI,WAAW,GAAEH,IAAAA,8BAAa,EAACL,MAAMQ,WAAW,EAAEP,UAAUO,WAAW,GAAGR,MAAMS,aAAa,IAAI,WAAW,GAAEJ,IAAAA,8BAAa,EAACL,MAAMS,aAAa,EAAER,UAAUQ,aAAa,GAAGT,MAAMU,YAAY,IAAI,WAAW,GAAEL,IAAAA,8BAAa,EAACL,MAAMU,YAAY,EAAET,UAAUS,YAAY,GAAGV,MAAMW,cAAc,IAAI,WAAW,GAAEN,IAAAA,8BAAa,EAACL,MAAMW,cAAc,EAAEV,UAAUU,cAAc,GAAGZ,iBAAiB,YAAYI;AAC3hB,GACA,yCAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-persona",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230420-0418.1",
|
|
4
4
|
"description": "React components for building web experiences",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@fluentui/eslint-plugin": "*",
|
|
29
29
|
"@fluentui/react-conformance": "*",
|
|
30
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
|
30
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230420-0418.1",
|
|
31
31
|
"@fluentui/scripts-api-extractor": "*",
|
|
32
32
|
"@fluentui/scripts-tasks": "*"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fluentui/react-avatar": "0.0.0-nightly-
|
|
36
|
-
"@fluentui/react-badge": "0.0.0-nightly-
|
|
37
|
-
"@fluentui/react-shared-contexts": "0.0.0-nightly-
|
|
38
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
|
39
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
|
35
|
+
"@fluentui/react-avatar": "0.0.0-nightly-20230420-0418.1",
|
|
36
|
+
"@fluentui/react-badge": "0.0.0-nightly-20230420-0418.1",
|
|
37
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20230420-0418.1",
|
|
38
|
+
"@fluentui/react-theme": "0.0.0-nightly-20230420-0418.1",
|
|
39
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230420-0418.1",
|
|
40
|
+
"@fluentui/react-jsx-runtime": "0.0.0-nightly-20230420-0418.1",
|
|
40
41
|
"@griffel/react": "^1.5.2",
|
|
41
42
|
"@swc/helpers": "^0.4.14"
|
|
42
43
|
},
|