Skip to content

Commit 8a0bea0

Browse files
committed
default export removed for FolderPicker
1 parent 32b0def commit 8a0bea0

File tree

6 files changed

+22
-23
lines changed

6 files changed

+22
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,16 @@
3030
- `Carousel`: Changing pages doesn't work [#609](https://github.com/pnp/sp-dev-fx-controls-react/issues/609)
3131
- `TaxonomyPicker`: no suggestions are displayed if `anchorId` is not set
3232
- `TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)
33-
<<<<<<< HEAD
34-
35-
### Contributors
36-
37-
Special thanks to our contributors (in alphabetical order): [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13).
38-
=======
3933
- `TaxonomyPicker`: Include check for separator while filtering path of terms when anchorId is configured [#625](https://github.com/pnp/sp-dev-fx-controls-react/issues/625)
4034
- `FilePicker`: Bing API search issue [#633](https://github.com/pnp/sp-dev-fx-controls-react/pull/633)
4135
- `ListView`: Sort fires selection [#621](https://github.com/pnp/sp-dev-fx-controls-react/issues/621)
36+
- `Map`: A minor issue in componentWillUpdate method to get the next props rather than the current props.[#641](https://github.com/pnp/sp-dev-fx-controls-react/pull/641)
37+
- `IFrameDialog`: dialog size is incorrect when opening the dialog second time [#615](https://github.com/pnp/sp-dev-fx-controls-react/issues/615)
38+
- `FolderPicker`: imports don't work [#614](https://github.com/pnp/sp-dev-fx-controls-react/issues/614)
4239

4340
### Contributors
4441

45-
Special thanks to our contributors (in alphabetical order): [Devang Bhavsar](https://github.com/devangbhavsar89), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Victor Pollet](https://github.com/TheThor59), [Alexey Sadomov](https://github.com/sadomovalex), [Gautam Sheth](https://github.com/gautamdsheth), [Piotr Siatka](https://github.com/siata13).
46-
>>>>>>> dev
42+
Special thanks to our contributors (in alphabetical order): [Alexey Sadomov](https://github.com/sadomovalex), [Anoop Tatti](https://github.com/anoopt), [Devang Bhavsar](https://github.com/devangbhavsar89), [Gautam Sheth](https://github.com/gautamdsheth), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13), [Victor Pollet](https://github.com/TheThor59).
4743

4844
## 1.19.0
4945

docs/documentation/docs/about/release-notes.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
- `Map`: return display name and address details for the location [#585](https://github.com/pnp/sp-dev-fx-controls-react/issues/585)
1717
- `Map`: support for draggable and static Bing maps [#586](https://github.com/pnp/sp-dev-fx-controls-react/issues/586)
1818
- `TaxonomyPicker`: onLoad validation [#602](https://github.com/pnp/sp-dev-fx-controls-react/issues/602)
19-
<<<<<<< HEAD
20-
=======
2119
- `FieldCollectionData`: Add pagining and filtering [#617](https://github.com/pnp/sp-dev-fx-controls-react/pull/617)
2220
- `TaxonomyPicker`: Finding terms with labels [#288](https://github.com/pnp/sp-dev-fx-controls-react/issues/288)
2321
- `FileTypeIcon`: Added support for additional file type in `Image` mode [#640](https://github.com/pnp/sp-dev-fx-controls-react/pull/640)
24-
>>>>>>> dev
2522

2623
### Fixes
2724

@@ -33,20 +30,16 @@
3330
- `Carousel`: Changing pages doesn't work [#609](https://github.com/pnp/sp-dev-fx-controls-react/issues/609)
3431
- `TaxonomyPicker`: no suggestions are displayed if `anchorId` is not set
3532
- `TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)
36-
<<<<<<< HEAD
37-
38-
### Contributors
39-
40-
Special thanks to our contributors (in alphabetical order): [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13).
41-
=======
4233
- `TaxonomyPicker`: Include check for separator while filtering path of terms when anchorId is configured [#625](https://github.com/pnp/sp-dev-fx-controls-react/issues/625)
4334
- `FilePicker`: Bing API search issue [#633](https://github.com/pnp/sp-dev-fx-controls-react/pull/633)
4435
- `ListView`: Sort fires selection [#621](https://github.com/pnp/sp-dev-fx-controls-react/issues/621)
36+
- `Map`: A minor issue in componentWillUpdate method to get the next props rather than the current props.[#641](https://github.com/pnp/sp-dev-fx-controls-react/pull/641)
37+
- `IFrameDialog`: dialog size is incorrect when opening the dialog second time [#615](https://github.com/pnp/sp-dev-fx-controls-react/issues/615)
38+
- `FolderPicker`: imports don't work [#614](https://github.com/pnp/sp-dev-fx-controls-react/issues/614)
4539

4640
### Contributors
4741

48-
Special thanks to our contributors (in alphabetical order): [Devang Bhavsar](https://github.com/devangbhavsar89), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Victor Pollet](https://github.com/TheThor59), [Alexey Sadomov](https://github.com/sadomovalex), [Gautam Sheth](https://github.com/gautamdsheth), [Piotr Siatka](https://github.com/siata13).
49-
>>>>>>> dev
42+
Special thanks to our contributors (in alphabetical order): [Alexey Sadomov](https://github.com/sadomovalex), [Anoop Tatti](https://github.com/anoopt), [Devang Bhavsar](https://github.com/devangbhavsar89), [Gautam Sheth](https://github.com/gautamdsheth), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13), [Victor Pollet](https://github.com/TheThor59).
5043

5144
## 1.19.0
5245

docs/documentation/docs/controls/FolderPicker.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ Here is an example of the control:
2525
- Import the control into your component:
2626

2727
```TypeScript
28-
import FolderPicker from "@pnp/spfx-controls-react/lib/controls/folderPicker/FolderPicker";
29-
import { IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker";
28+
import { FolderPicker, IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker";
3029
```
3130

3231
- Use the `FolderPicker` control in your code as follows:

docs/documentation/docs/guides/migrate-from-v1.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,14 @@ The easiest way to upgrade the SharePoint Framework solution is to use [Office36
7373
- Use `errorMessage` or `onGetErrorMessage` to provide the error message.
7474
- `selectedItems` is renamed to `onChange`
7575
- `onChange` better describes the purpose of the property.
76+
77+
### FolderPicker
78+
`FolderPicker` default picker has been removed.
79+
If you used `FolderPicker` as:
80+
```typescript
81+
import FolderPicker from '@pnp/spfx-controls-react/lib/controls/folderPicker/FolderPicker';
82+
```
83+
You should update to
84+
```typescript
85+
import { FolderPicker } from '@pnp/spfx-controls-react/lib/FolderPicker';
86+
```

src/controls/folderPicker/FolderPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';
1010
import { FolderExplorer } from '../folderExplorer/FolderExplorer';
1111

1212

13-
export default class FolderPicker extends React.Component<IFolderPickerProps, IFolderPickerState> {
13+
export class FolderPicker extends React.Component<IFolderPickerProps, IFolderPickerState> {
1414

1515
private _folderLinkId = getId('folderLink');
1616
private _selectedFolder: IFolder;

src/webparts/controlsTest/components/ControlsTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import {
5555
} from 'office-ui-fabric-react/lib/DocumentCard';
5656
import { ImageFit } from 'office-ui-fabric-react/lib/Image';
5757
import { FilePicker, IFilePickerResult } from '../../../FilePicker';
58-
import FolderPicker from '../../../controls/folderPicker/FolderPicker';
58+
import { FolderPicker } from '../../../FolderPicker';
5959
import { FolderExplorer, IFolder, IBreadcrumbItem } from '../../../FolderExplorer';
6060
import { Pagination } from '../../../controls/pagination';
6161
import CarouselImage from '../../../controls/carousel/CarouselImage';

0 commit comments

Comments
 (0)