1.3.5 • Published 2 days ago

@equinor/fusion-framework-react-components-people-provider v1.3.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 days ago

Component for providing resolver to person elements

mapping and caching of @equinor/fusion-framework-module-services/people

Strongly collated to the Fusion ecosystems

import { PeopleResolverProvider } from '@equinor/fusion-framework-react-components-people-provider';

<PeopleResolverProvider>
    <fwc-person-avatar azureId='cbc6480d-12c1-467e-b0b8-cfbb22612daa'></fwc-person-avatar>
    <fwc-person-card azureId='cbc6480d-12c1-467e-b0b8-cfbb22612daa'></fwc-person-card>
    <fwc-person-list-item azureId='cbc6480d-12c1-467e-b0b8-cfbb22612daa'></fwc-person-list-item>
</PeopleResolverProvider>

we might in the future provide a module which provides same functionality as the resolver

atm there are no flexible way to configure this provider since the api models are strongly collated to the models of the components

if requested we can create a provider for the functionality

Fallback image

import { PeopleResolverProvider } from '@equinor/fusion-framework-react-components-people-provider';
import fallbackSvg from './resources/fallback-photo.svg';

const fallbackImage = new Blob([fallbackSvg], { type: 'image/svg+xml' });

const App = () => (
  <PeopleResolverProvider options={{fallbackImage}}>
    ...children
  </PeopleResolverProvider>
);
1.3.5

2 days ago

1.3.4

15 days ago

1.3.3

18 days ago

1.3.2

19 days ago

1.3.1

1 month ago

1.2.6

2 months ago

1.3.0

1 month ago

1.2.5

2 months ago

1.2.4

2 months ago

1.2.3

2 months ago

1.2.2

2 months ago

1.2.1

2 months ago

1.2.0

2 months ago

1.1.15

3 months ago

1.1.14

3 months ago

1.1.12

3 months ago

1.1.13

3 months ago

1.1.11

3 months ago

1.1.10

3 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

6 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago