Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge for 2.2.0 #755

Merged
merged 84 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
26dd053
Update es-es.ts
Vertamin Oct 21, 2020
c93a73d
add embedded image
Abderahman88 Oct 21, 2020
918e74d
Add filesize to UploadFilePickerTab component
wilecoyotegenius Oct 21, 2020
777c470
2.2.0
AJIXuMuK Oct 28, 2020
8cf353b
2.2.0 prep
AJIXuMuK Oct 28, 2020
cba3679
pre-commit
AJIXuMuK Oct 28, 2020
b35dc32
Merge pull request #702 from Vertamin/patch-1
AJIXuMuK Oct 28, 2020
d948b0a
changelog
AJIXuMuK Oct 28, 2020
a7bd22e
pre-commit
AJIXuMuK Oct 28, 2020
be4b905
Merge pull request #705 from Abderahman88/RTImage
AJIXuMuK Oct 28, 2020
dbc6320
changelog
AJIXuMuK Oct 28, 2020
8b644b5
pre-commit
AJIXuMuK Oct 28, 2020
334950b
Merge pull request #706 from wilecoyotegenius/add-filesize-to-filepicker
AJIXuMuK Oct 28, 2020
1a3d3b7
forgotten changelog
AJIXuMuK Oct 29, 2020
c86d2bb
pre-commit
AJIXuMuK Oct 29, 2020
885bdc6
docs attention message
AJIXuMuK Oct 29, 2020
3d50e4f
Changed from Textfield to Searchbox
gautamdsheth Nov 4, 2020
3b811c8
Merge pull request #719 from gautamdsheth/bugfix/searchBox-change
AJIXuMuK Nov 6, 2020
19d7abb
changelog
AJIXuMuK Nov 7, 2020
b3880e4
pre-commit and missing links to FieldCollectionData in docs
AJIXuMuK Nov 7, 2020
638527e
fix of #722
AJIXuMuK Nov 9, 2020
9331715
changelog
AJIXuMuK Nov 9, 2020
962d594
pre-commit
AJIXuMuK Nov 9, 2020
0a5370c
Fix for #728: Show an error message for an invalid/unresolved input i…
Nov 11, 2020
47c227d
Merge branch 'master' of https://github.com/pnp/sp-dev-fx-controls-re…
gautamdsheth Nov 16, 2020
5bb415e
Removed unused imports, fixed deprecated features
gautamdsheth Nov 16, 2020
3572a42
Merge pull request #733 from gautamdsheth/feature/remove-deprecated-s…
AJIXuMuK Nov 17, 2020
4b7488b
changelog
AJIXuMuK Nov 17, 2020
a3e0656
pre commit
AJIXuMuK Nov 17, 2020
d61c554
merging conflicts
AJIXuMuK Nov 18, 2020
a5a90c6
TaxonomyPicker documentation update to include validateInput
AJIXuMuK Nov 18, 2020
9cbc487
Merge branch 'devangbhavsar89-dev' into dev
AJIXuMuK Nov 18, 2020
7f5093c
changelog
AJIXuMuK Nov 18, 2020
546d744
pre-commit
AJIXuMuK Nov 18, 2020
10595d1
Fix of #713
AJIXuMuK Nov 18, 2020
08456fd
changelog
AJIXuMuK Nov 18, 2020
2780e87
pre-commit
AJIXuMuK Nov 18, 2020
3aeddaa
Fix of #730
AJIXuMuK Nov 18, 2020
01bbefc
changelog
AJIXuMuK Nov 18, 2020
97bbd5c
pre-commit
AJIXuMuK Nov 18, 2020
0bd849e
Canadian French localization - #671
AJIXuMuK Nov 18, 2020
f2e8fe3
changelog and missing file
AJIXuMuK Nov 18, 2020
da22fef
pre-commit
AJIXuMuK Nov 18, 2020
360dbdc
Fix disabled add button
Abderahman88 Nov 19, 2020
192ba36
Merge pull request #737 from Abderahman88/AttachDisable
AJIXuMuK Nov 20, 2020
160d445
changelog
AJIXuMuK Nov 20, 2020
a36e4d2
pre-commit
AJIXuMuK Nov 20, 2020
461810e
fix of #735
AJIXuMuK Nov 21, 2020
bf932ff
changelog
AJIXuMuK Nov 21, 2020
613fa6f
pre-commit
AJIXuMuK Nov 21, 2020
c6cae96
fix of #724
AJIXuMuK Nov 21, 2020
2a3054b
changelog
AJIXuMuK Nov 21, 2020
86aa567
pre-commit
AJIXuMuK Nov 21, 2020
34b881b
webpack-bundle-analyzer support
AJIXuMuK Nov 21, 2020
6f4c60e
more granular imports in FilePicker
AJIXuMuK Nov 21, 2020
e574026
changelog
AJIXuMuK Nov 21, 2020
46dccd8
pre-commit
AJIXuMuK Nov 21, 2020
40b29c8
Spelling / grammar mistake in 'attention' block.
avadhootdindorkar Nov 24, 2020
e861895
Feature update
gautamdsheth Nov 26, 2020
e58fe9b
Fix FolderExplorer pnpjs related issues
nbelyh Nov 28, 2020
a0f924e
merge with dev
AJIXuMuK Nov 28, 2020
608774b
Merge branch 'avadhootdindorkar-patch-1' into dev
AJIXuMuK Nov 28, 2020
9b0ce1b
changelog
AJIXuMuK Nov 28, 2020
ba0a674
precommit
AJIXuMuK Nov 28, 2020
ad7a219
Merge pull request #745 from gautamdsheth/feature/sessionStoragehandling
AJIXuMuK Nov 28, 2020
468af59
changelog
AJIXuMuK Nov 28, 2020
55e7284
precommit
AJIXuMuK Nov 28, 2020
5c7c3e4
Merge pull request #749 from nbelyh/bugfix/folder_explorer
AJIXuMuK Nov 28, 2020
dbbb3f9
changelog
AJIXuMuK Nov 28, 2020
ec6e3a8
precommit
AJIXuMuK Nov 28, 2020
538c628
Fix of #747
AJIXuMuK Nov 28, 2020
20feaa9
changelog
AJIXuMuK Nov 28, 2020
3b0878c
precommit
AJIXuMuK Nov 28, 2020
5b89ed7
Fixes for #743: no encoding, special characters, displaying error
AJIXuMuK Nov 28, 2020
56d7e01
Merge pull request #750 from pnp/new-folder
AJIXuMuK Nov 28, 2020
e6f9cb8
custom fields support for "Link" and "Upload" tabs
nbelyh Nov 29, 2020
056c6d9
FilePicker stopped working after #724 fix
AJIXuMuK Nov 30, 2020
4b0bec5
support defaultSelectedUser change
AJIXuMuK Dec 2, 2020
7eae45c
Merge pull request #754 from pnp/659
AJIXuMuK Dec 2, 2020
6543d88
changelog
AJIXuMuK Dec 2, 2020
8805856
pre-commit
AJIXuMuK Dec 2, 2020
4f54f73
Merge pull request #751 from nbelyh/feature/folder_explorer_renderers
AJIXuMuK Dec 2, 2020
ea6d60b
changelog
AJIXuMuK Dec 2, 2020
52c6cf2
pre-commit
AJIXuMuK Dec 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions CHANGELOG.JSON
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
{
"versions": [
{
"version": "2.2.0",
"changes": {
"new": [],
"enhancements": [
"`RichText`: Add image support [#705](https://github.com/pnp/sp-dev-fx-controls-react/pull/705)",
"`FilePicker`: Add file size to the Upload tab and `IFilePickerResult` [#706](https://github.com/pnp/sp-dev-fx-controls-react/pull/706)",
"`FieldCollectionData`: `SearchBox` instead of `TextBox` [#719](https://github.com/pnp/sp-dev-fx-controls-react/pull/719)",
"`TaxonomyPicker`: control does not show an error message for an invalid/unresolved input [#728](https://github.com/pnp/sp-dev-fx-controls-react/issues/728)",
"Canadian French localization [#671](https://github.com/pnp/sp-dev-fx-controls-react/issues/671)",
"`FilePicker`: reduce bundle size [#732](https://github.com/pnp/sp-dev-fx-controls-react/issues/732)",
"`FilePicker`: Custom render callbacks for the 'Upload' and 'Link' tabs [#746](https://github.com/pnp/sp-dev-fx-controls-react/issues/746)"
],
"fixes": [
"Localization: Fixing some wrong localizations for the DatePicker short day in Spanish.[#702](https://github.com/pnp/sp-dev-fx-controls-react/pull/702)",
"`ListItemPicker`: When use defaultSelectedItems, ListItemPicker allows you to select dublicate entries [#722](https://github.com/pnp/sp-dev-fx-controls-react/issues/722)",
"Deprecated stuff is removed [#733](https://github.com/pnp/sp-dev-fx-controls-react/pull/733)",
"`DateTimePicker`: time portion not re-rendered when state changed programmatically - when time is displayed as dropdown only [#713](https://github.com/pnp/sp-dev-fx-controls-react/issues/713)",
"`PeoplePicker`: `errorMessage` not being removed [#730](https://github.com/pnp/sp-dev-fx-controls-react/issues/730)",
"`ListItemAttachment`: the control is not fully disabled [#736](https://github.com/pnp/sp-dev-fx-controls-react/issues/736)",
"`TaxonomyPicker`: icons are not being rendered on Classic SharePoint pages [#735](https://github.com/pnp/sp-dev-fx-controls-react/issues/735)",
"`FilePicker`: Site Tab does not load document if we access SharePoint site in different language than default language of the site [#724](https://github.com/pnp/sp-dev-fx-controls-react/issues/724)",
"Documentation fix for 'attention' block on index page [#740](https://github.com/pnp/sp-dev-fx-controls-react/pull/740)",
"`TaxonomyPicker`: `sessionStorage` exceeds max-size when browsing large termsets [#739](https://github.com/pnp/sp-dev-fx-controls-react/issues/739)",
"`FolderExplorer` and `FolderPicker` do not seem to work for document libraries [#741](https://github.com/pnp/sp-dev-fx-controls-react/issues/741)",
"`FilePicker`: `onChange` event does not exist despite being documented [#747](https://github.com/pnp/sp-dev-fx-controls-react/issues/747)",
"`ListItemPicker`: Selected values are not getting cleared or reset [#659](https://github.com/pnp/sp-dev-fx-controls-react/issues/659)"
]
},
"contributions": [
"[Abderahman Moujahid](https://github.com/Abderahman88)",
"[avadhootdindorkar](https://github.com/avadhootdindorkar)",
"[Devang Bhavsar](https://github.com/devangbhavsar89)",
"[Gautam Sheth](https://github.com/gautamdsheth)",
"[Konrad K.](https://github.com/wilecoyotegenius)",
"[Nikolay Belykh](https://github.com/nbelyh)",
"[Vertamin](https://github.com/Vertamin)"
]
},
{
"version": "2.1.0",
"changes": {
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Releases

## 2.2.0

### Enhancements

- `RichText`: Add image support [#705](https://github.com/pnp/sp-dev-fx-controls-react/pull/705)
- `FilePicker`: Add file size to the Upload tab and `IFilePickerResult` [#706](https://github.com/pnp/sp-dev-fx-controls-react/pull/706)
- `FieldCollectionData`: `SearchBox` instead of `TextBox` [#719](https://github.com/pnp/sp-dev-fx-controls-react/pull/719)
- `TaxonomyPicker`: control does not show an error message for an invalid/unresolved input [#728](https://github.com/pnp/sp-dev-fx-controls-react/issues/728)
- Canadian French localization [#671](https://github.com/pnp/sp-dev-fx-controls-react/issues/671)
- `FilePicker`: reduce bundle size [#732](https://github.com/pnp/sp-dev-fx-controls-react/issues/732)
- `FilePicker`: Custom render callbacks for the 'Upload' and 'Link' tabs [#746](https://github.com/pnp/sp-dev-fx-controls-react/issues/746)

### Fixes

- Localization: Fixing some wrong localizations for the DatePicker short day in Spanish.[#702](https://github.com/pnp/sp-dev-fx-controls-react/pull/702)
- `ListItemPicker`: When use defaultSelectedItems, ListItemPicker allows you to select dublicate entries [#722](https://github.com/pnp/sp-dev-fx-controls-react/issues/722)
- Deprecated stuff is removed [#733](https://github.com/pnp/sp-dev-fx-controls-react/pull/733)
- `DateTimePicker`: time portion not re-rendered when state changed programmatically - when time is displayed as dropdown only [#713](https://github.com/pnp/sp-dev-fx-controls-react/issues/713)
- `PeoplePicker`: `errorMessage` not being removed [#730](https://github.com/pnp/sp-dev-fx-controls-react/issues/730)
- `ListItemAttachment`: the control is not fully disabled [#736](https://github.com/pnp/sp-dev-fx-controls-react/issues/736)
- `TaxonomyPicker`: icons are not being rendered on Classic SharePoint pages [#735](https://github.com/pnp/sp-dev-fx-controls-react/issues/735)
- `FilePicker`: Site Tab does not load document if we access SharePoint site in different language than default language of the site [#724](https://github.com/pnp/sp-dev-fx-controls-react/issues/724)
- Documentation fix for 'attention' block on index page [#740](https://github.com/pnp/sp-dev-fx-controls-react/pull/740)
- `TaxonomyPicker`: `sessionStorage` exceeds max-size when browsing large termsets [#739](https://github.com/pnp/sp-dev-fx-controls-react/issues/739)
- `FolderExplorer` and `FolderPicker` do not seem to work for document libraries [#741](https://github.com/pnp/sp-dev-fx-controls-react/issues/741)
- `FilePicker`: `onChange` event does not exist despite being documented [#747](https://github.com/pnp/sp-dev-fx-controls-react/issues/747)
- `ListItemPicker`: Selected values are not getting cleared or reset [#659](https://github.com/pnp/sp-dev-fx-controls-react/issues/659)

### Contributors

Special thanks to our contributors (in alphabetical order): [Abderahman Moujahid](https://github.com/Abderahman88), [avadhootdindorkar](https://github.com/avadhootdindorkar), [Devang Bhavsar](https://github.com/devangbhavsar89), [Gautam Sheth](https://github.com/gautamdsheth), [Konrad K.](https://github.com/wilecoyotegenius), [Nikolay Belykh](https://github.com/nbelyh), [Vertamin](https://github.com/Vertamin).

## 2.1.0

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion config/supported.localization.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"langs": ["bg-bg", "ca-es", "da-dk", "de-de", "el-gr", "es-es", "et-ee", "fi-fi", "fr-fr", "it-it", "ja-jp", "lt-lt", "lv-lv", "nb-no", "nl-nl", "pl-pl", "pt-pt", "ro-ro", "ru-ru", "sk-sk", "sr-latn-rs", "sv-se", "tr-tr", "vi-vn", "zh-cn", "zh-tw"]
"langs": ["bg-bg", "ca-es", "da-dk", "de-de", "el-gr", "es-es", "et-ee", "fi-fi", "fr-fr", "fr-ca", "it-it", "ja-jp", "lt-lt", "lv-lv", "nb-no", "nl-nl", "pl-pl", "pt-pt", "ro-ro", "ru-ru", "sk-sk", "sr-latn-rs", "sv-se", "tr-tr", "vi-vn", "zh-cn", "zh-tw"]
}
32 changes: 32 additions & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Releases

## 2.2.0

### Enhancements

- `RichText`: Add image support [#705](https://github.com/pnp/sp-dev-fx-controls-react/pull/705)
- `FilePicker`: Add file size to the Upload tab and `IFilePickerResult` [#706](https://github.com/pnp/sp-dev-fx-controls-react/pull/706)
- `FieldCollectionData`: `SearchBox` instead of `TextBox` [#719](https://github.com/pnp/sp-dev-fx-controls-react/pull/719)
- `TaxonomyPicker`: control does not show an error message for an invalid/unresolved input [#728](https://github.com/pnp/sp-dev-fx-controls-react/issues/728)
- Canadian French localization [#671](https://github.com/pnp/sp-dev-fx-controls-react/issues/671)
- `FilePicker`: reduce bundle size [#732](https://github.com/pnp/sp-dev-fx-controls-react/issues/732)
- `FilePicker`: Custom render callbacks for the 'Upload' and 'Link' tabs [#746](https://github.com/pnp/sp-dev-fx-controls-react/issues/746)

### Fixes

- Localization: Fixing some wrong localizations for the DatePicker short day in Spanish.[#702](https://github.com/pnp/sp-dev-fx-controls-react/pull/702)
- `ListItemPicker`: When use defaultSelectedItems, ListItemPicker allows you to select dublicate entries [#722](https://github.com/pnp/sp-dev-fx-controls-react/issues/722)
- Deprecated stuff is removed [#733](https://github.com/pnp/sp-dev-fx-controls-react/pull/733)
- `DateTimePicker`: time portion not re-rendered when state changed programmatically - when time is displayed as dropdown only [#713](https://github.com/pnp/sp-dev-fx-controls-react/issues/713)
- `PeoplePicker`: `errorMessage` not being removed [#730](https://github.com/pnp/sp-dev-fx-controls-react/issues/730)
- `ListItemAttachment`: the control is not fully disabled [#736](https://github.com/pnp/sp-dev-fx-controls-react/issues/736)
- `TaxonomyPicker`: icons are not being rendered on Classic SharePoint pages [#735](https://github.com/pnp/sp-dev-fx-controls-react/issues/735)
- `FilePicker`: Site Tab does not load document if we access SharePoint site in different language than default language of the site [#724](https://github.com/pnp/sp-dev-fx-controls-react/issues/724)
- Documentation fix for 'attention' block on index page [#740](https://github.com/pnp/sp-dev-fx-controls-react/pull/740)
- `TaxonomyPicker`: `sessionStorage` exceeds max-size when browsing large termsets [#739](https://github.com/pnp/sp-dev-fx-controls-react/issues/739)
- `FolderExplorer` and `FolderPicker` do not seem to work for document libraries [#741](https://github.com/pnp/sp-dev-fx-controls-react/issues/741)
- `FilePicker`: `onChange` event does not exist despite being documented [#747](https://github.com/pnp/sp-dev-fx-controls-react/issues/747)
- `ListItemPicker`: Selected values are not getting cleared or reset [#659](https://github.com/pnp/sp-dev-fx-controls-react/issues/659)

### Contributors

Special thanks to our contributors (in alphabetical order): [Abderahman Moujahid](https://github.com/Abderahman88), [avadhootdindorkar](https://github.com/avadhootdindorkar), [Devang Bhavsar](https://github.com/devangbhavsar89), [Gautam Sheth](https://github.com/gautamdsheth), [Konrad K.](https://github.com/wilecoyotegenius), [Nikolay Belykh](https://github.com/nbelyh), [Vertamin](https://github.com/Vertamin).

## 2.1.0

### Enhancements
Expand Down
3 changes: 3 additions & 0 deletions docs/documentation/docs/controls/FilePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ The FilePicker component can be configured with the following properties:
| hideLocalUploadTab | boolean | no | Specifies if LocalUploadTab should be hidden. |
| hideLinkUploadTab | boolean | no | Specifies if LinkUploadTab should be hidden. |
| storeLastActiveTab | boolean | no | Specifies if last active tab will be stored after the Upload panel has been closed. Note: the value of selected tab is stored in the queryString hash. Default `true` |
| renderCustomUploadTabContent | (filePickerResult: IFilePickerResult) => JSX.Element | null | no | Optional renderer to add custom user-defined fields to "Upload" tab |
| renderCustomLinkTabContent | (filePickerResult: IFilePickerResult) => JSX.Element | null | no | Optional renderer to add custom user-defined fields to "Link" tab |

interface `IFilePickerResult`

Expand All @@ -86,6 +88,7 @@ Provides options for carousel buttons location.
| fileName | string | File name of the result with the extension. |
| fileNameWithoutExtension | string | File name of the result without the extension. |
| fileAbsoluteUrl | string | Absolute URL of the file. Null in case of file upload. |
| fileSize | number | Size of the result (in bytes). Set only for file upload |
| downloadFileContent | () => Promise<File> | Function allows to download file content. Returns File object. |


Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/TaxonomyPicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ The TaxonomyPicker control can be configured with the following properties:
| termActions | ITermActions | no | Allows to execute custom action on the term like e.g. get other term labelsITermActions. |
| hideTagsNotAvailableForTagging | boolean | no | Specifies if the tags marked with 'Available for tagging' = false should be hidden |
| validateOnLoad | boolean | no | Specifies if the initial values will be validated, when the component is loaded. Default value is false |
| validateInput | boolean | no | Specifies if the input text will be validated, when the component focus is changed |
| hideDeprecatedTags | boolean | no | Specifies if deprecated tags should be hidden |
| placeholder | string | no | Short text hint to display in empty picker |
| errorMessage | string | no | Static error message displayed below the picker. Use `onGetErrorMessage` to dynamically change the error message displayed (if any) based on the current value. `errorMessage` and `onGetErrorMessage` are mutually exclusive (`errorMessage` takes precedence). |
Expand Down
3 changes: 2 additions & 1 deletion docs/documentation/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository provides developers with a set of reusable React controls that c
In order to migrate to `v2` it is advicded to follow this guide: [Migrating from V1](./guides/migrate-from-v1).

!!! attention
`v2` version of the controls project has a minimal dependency on SharePoint Framework version `1.11.0`. `v1` has a minimal dependency on SharePoint Framework version `1.3.0`. Be aware that the controls might not work in solutions your building for SharePoint 2016 with Feature Pack 2 on-premises. As for SharePoint 2016 with Feature Pack 2 version `1.1.0` of the SharePoint framework is the only version that can be used. SharePoint 2019 on-premises uses SharePoint framework `v1.4.0` and therefore should be fine to use with these controls.
`v2` version of the controls project has a minimal dependency on SharePoint Framework version `1.11.0`. `v1` has a minimal dependency on SharePoint Framework version `1.3.0`. Be aware that the controls might not work in solutions you are building for SharePoint 2016 with Feature Pack 2 on-premises. As for SharePoint 2016 with Feature Pack 2 version `1.1.0` of the SharePoint framework is the only version that can be used. SharePoint 2019 on-premises uses SharePoint framework `v1.4.0` and therefore should be fine to use with these controls.

## Getting started

Expand Down Expand Up @@ -57,6 +57,7 @@ The following controls are currently available:
- [Charts](./controls/ChartControl) (makes it easy to integrate [Chart.js](https://www.chartjs.org/) charts into web part)
- [ComboBoxListItemPicker](./controls/ComboBoxListItemPicker) (allows to select one or more items from a list)
- [DateTimePicker](./controls/DateTimePicker) (DateTime Picker)
- [FieldCollectionData](./controls/FieldCollectionData) (control gives you the ability to insert a list / collection data which can be used in your web part / application customizer)
- [FilePicker](./controls/FilePicker) (control that allows to browse and select a file from various places)
- [FileTypeIcon](./controls/FileTypeIcon) (Control that shows the icon of a specified file path or application)
- [FolderExplorer](./controls/FolderExplorer) (Control that allows to browse the folders and sub-folders from a root folder)
Expand Down
1 change: 1 addition & 0 deletions docs/documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nav:
- "Scatter Chart": 'controls/charts/ScatterChart.md'
- ComboBoxListItemPicker: 'controls/ComboBoxListItemPicker.md'
- DateTimePicker: 'controls/DateTimePicker.md'
- FieldCollectionData: 'controls/FieldCollectionData.md'
- FilePicker: 'controls/FilePicker.md'
- FileTypeIcon: 'controls/FileTypeIcon.md'
- FolderExplorer: 'controls/FolderExplorer.md'
Expand Down
11 changes: 11 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
const fs = require('fs');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

Expand All @@ -17,6 +18,16 @@ gulp.task('versionUpdater', (done) => {
done();
});

if (process.argv.indexOf('--size') !== -1) {
build.configureWebpack.mergeConfig({
additionalConfiguration: generatedConfiguration => {
generatedConfiguration.plugins.push(new BundleAnalyzerPlugin());

return generatedConfiguration;
}
});
}

build.initialize(gulp);

const karmaTask = build.karma;
Expand Down
Loading