@fluentui/react-persona 9.6.1 → 9.7.0
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.md +22 -2
- package/dist/index.d.ts +9 -0
- package/lib/index.js +1 -4
- package/lib/index.js.map +1 -1
- package/lib-commonjs/index.js +3 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-persona
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 26 Mar 2026 08:10:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.7.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-persona_v9.7.0)
|
|
8
|
+
|
|
9
|
+
Thu, 26 Mar 2026 08:10:41 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-persona_v9.6.2..@fluentui/react-persona_v9.7.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- feat: expose base hooks for Persona ([PR #35814](https://github.com/microsoft/fluentui/pull/35814) by dmytrokirpa@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-avatar to v9.10.3 ([PR #35824](https://github.com/microsoft/fluentui/pull/35824) by beachball)
|
|
16
|
+
- Bump @fluentui/react-badge to v9.5.0 ([PR #35824](https://github.com/microsoft/fluentui/pull/35824) by beachball)
|
|
17
|
+
|
|
18
|
+
## [9.6.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-persona_v9.6.2)
|
|
19
|
+
|
|
20
|
+
Tue, 03 Mar 2026 09:43:43 GMT
|
|
21
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-persona_v9.6.1..@fluentui/react-persona_v9.6.2)
|
|
22
|
+
|
|
23
|
+
### Patches
|
|
24
|
+
|
|
25
|
+
- Bump @fluentui/react-avatar to v9.10.2 ([commit](https://github.com/microsoft/fluentui/commit/81e1556b008bfbd07fe427d89af6142459d74c6f) by beachball)
|
|
26
|
+
|
|
7
27
|
## [9.6.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-persona_v9.6.1)
|
|
8
28
|
|
|
9
|
-
Wed, 25 Feb 2026 13:28
|
|
29
|
+
Wed, 25 Feb 2026 13:32:28 GMT
|
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-persona_v9.6.0..@fluentui/react-persona_v9.6.1)
|
|
11
31
|
|
|
12
32
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const Persona: ForwardRefComponent<PersonaProps>;
|
|
16
16
|
|
|
17
|
+
export declare type PersonaBaseProps = ComponentProps<Omit<PersonaSlots, 'avatar' | 'presence'>> & Pick<PersonaProps, 'name'>;
|
|
18
|
+
|
|
19
|
+
export declare type PersonaBaseState = ComponentState<Omit<PersonaSlots, 'avatar' | 'presence'>> & Pick<PersonaState, 'numTextLines'>;
|
|
20
|
+
|
|
17
21
|
export declare const personaClassNames: SlotClassNames<PersonaSlots>;
|
|
18
22
|
|
|
19
23
|
/**
|
|
@@ -113,6 +117,11 @@ export declare const renderPersona_unstable: (state: PersonaState) => JSXElement
|
|
|
113
117
|
*/
|
|
114
118
|
export declare const usePersona_unstable: (props: PersonaProps, ref: React_2.Ref<HTMLElement>) => PersonaState;
|
|
115
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Base hook for Persona component, manages state and structure common to all variants of Persona
|
|
122
|
+
*/
|
|
123
|
+
export declare const usePersonaBase_unstable: (props: PersonaBaseProps, ref?: React_2.Ref<HTMLElement>) => PersonaBaseState;
|
|
124
|
+
|
|
116
125
|
/**
|
|
117
126
|
* Apply styling to the Persona slots based on the state
|
|
118
127
|
*/
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export { Persona, personaClassNames, renderPersona_unstable, usePersonaStyles_unstable, usePersona_unstable } from './Persona';
|
|
2
|
-
// Experimental APIs - will be uncommented in experimental branch
|
|
3
|
-
// export { usePersonaBase_unstable } from './components/Persona/usePersona';
|
|
4
|
-
// export type { PersonaBaseProps, PersonaBaseState } from './components/Persona/Persona.types';
|
|
1
|
+
export { Persona, personaClassNames, renderPersona_unstable, usePersonaStyles_unstable, usePersona_unstable, usePersonaBase_unstable } from './Persona';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Persona,\n personaClassNames,\n renderPersona_unstable,\n usePersonaStyles_unstable,\n usePersona_unstable,\n} from './Persona';\nexport type { PersonaProps, PersonaSlots, PersonaState
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Persona,\n personaClassNames,\n renderPersona_unstable,\n usePersonaStyles_unstable,\n usePersona_unstable,\n usePersonaBase_unstable,\n} from './Persona';\nexport type { PersonaProps, PersonaSlots, PersonaState, PersonaBaseProps, PersonaBaseState } from './Persona';\n"],"names":["Persona","personaClassNames","renderPersona_unstable","usePersonaStyles_unstable","usePersona_unstable","usePersonaBase_unstable"],"mappings":"AAAA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,sBAAsB,EACtBC,yBAAyB,EACzBC,mBAAmB,EACnBC,uBAAuB,QAClB,YAAY"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -18,6 +18,9 @@ _export(exports, {
|
|
|
18
18
|
renderPersona_unstable: function() {
|
|
19
19
|
return _Persona.renderPersona_unstable;
|
|
20
20
|
},
|
|
21
|
+
usePersonaBase_unstable: function() {
|
|
22
|
+
return _Persona.usePersonaBase_unstable;
|
|
23
|
+
},
|
|
21
24
|
usePersonaStyles_unstable: function() {
|
|
22
25
|
return _Persona.usePersonaStyles_unstable;
|
|
23
26
|
},
|
|
@@ -26,6 +29,3 @@ _export(exports, {
|
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
const _Persona = require("./Persona");
|
|
29
|
-
// Experimental APIs - will be uncommented in experimental branch
|
|
30
|
-
// export { usePersonaBase_unstable } from './components/Persona/usePersona';
|
|
31
|
-
// export type { PersonaBaseProps, PersonaBaseState } from './components/Persona/Persona.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Persona,\n personaClassNames,\n renderPersona_unstable,\n usePersonaStyles_unstable,\n usePersona_unstable,\n} from './Persona';\nexport type { PersonaProps, PersonaSlots, PersonaState
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Persona,\n personaClassNames,\n renderPersona_unstable,\n usePersonaStyles_unstable,\n usePersona_unstable,\n usePersonaBase_unstable,\n} from './Persona';\nexport type { PersonaProps, PersonaSlots, PersonaState, PersonaBaseProps, PersonaBaseState } from './Persona';\n"],"names":["Persona","personaClassNames","renderPersona_unstable","usePersonaStyles_unstable","usePersona_unstable","usePersonaBase_unstable"],"mappings":";;;;;;;;;;;;eACEA,gBAAO;;;eACPC,0BAAiB;;;eACjBC,+BAAsB;;;eAGtBG,gCAAuB;;;eAFvBF,kCAAyB;;;eACzBC,4BAAmB;;;yBAEd,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-persona",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"description": "React components for building web experiences",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui/react-avatar": "^9.10.
|
|
16
|
-
"@fluentui/react-badge": "^9.
|
|
15
|
+
"@fluentui/react-avatar": "^9.10.3",
|
|
16
|
+
"@fluentui/react-badge": "^9.5.0",
|
|
17
17
|
"@fluentui/react-shared-contexts": "^9.26.2",
|
|
18
18
|
"@fluentui/react-theme": "^9.2.1",
|
|
19
19
|
"@fluentui/react-utilities": "^9.26.2",
|