sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

Missing `UserPicker` control in the `lib` folder of the package

Open Adam-it opened this issue 11 months ago • 4 comments

Category

[x] Bug

Version

[3.20.0]

Expected / Desired Behavior / Question

I should be able to use the new UserPicker control importing it like import {} from "@pnp/spfx-controls-react/lib/UserPicker";

Observed Behavior

It does not work. Currently I need to specify the full path to the control like import {} from "@pnp/spfx-controls-react/lib/controls/userPicker/UserPicker";

I think in the src folder we are missing a UserPicker.ts file with the following content:

export * from './controls/userpicker/index';

We also don't see this control in docs image

The page (url) works https://pnp.github.io/sp-dev-fx-controls-react/controls/UserPicker/ It is just not present in the left side menu

this is most probably due to the fact the mkdocs.yml was not extended in the nav -> Controls we should add something like

    - UserPicker: 'controls/UserPicker.md'

BTW the page has some strange glitch as well image BTW 2 the imagePicker docs added in the same build are missing as well, the same reason

Based on feed from PnP Discord server: https://discord.com/channels/1095788595010338956/1096363547505733632/1318921197765001248

Adam-it avatar Dec 19 '24 00:12 Adam-it