Skip to content

Commit fb43962

Browse files
committed
Merge branch 'patch-1' of https://github.com/tom-daly/sp-dev-fx-controls-react into tom-daly-patch-1
2 parents c9a27cf + 87e9277 commit fb43962

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

docs/documentation/docs/controls/SecurityTrimmedControl.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ This control is intended to be used when you want to show or hide components bas
88
- Import the following modules to your component:
99

1010
```TypeScript
11-
import { SecurityTrimmedControl } from "@pnp/spfx-controls-react/lib/SecurityTrimmedControl";
11+
import { SecurityTrimmedControl, PermissionLevel } from "@pnp/spfx-controls-react/lib/SecurityTrimmedControl";
12+
import { SPPermission } from '@microsoft/sp-page-context';
1213
```
1314

1415
- You can use the `SecurityTrimmedControl` as follows in your solutions:

docs/documentation/docs/controls/TaxonomyPicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The TaxonomyPicker control can be configured with the following properties:
152152
| ---- | ---- | ---- | ---- |
153153
| panelTitle | string | yes | TermSet Picker Panel title. |
154154
| label | string | yes | Text displayed above the Taxonomy Picker. |
155-
| disabled | string | no | Specify if the control needs to be disabled. |
155+
| disabled | boolean | no | Specify if the control needs to be disabled. |
156156
| context | WebPartContext \| ExtensionContext | yes | Context of the current web part or extension. |
157157
| initialValues | IPickerTerms | no | Defines the selected by default term sets. |
158158
| allowMultipleSelections | boolean | no | Defines if the user can select only one or many term sets. Default value is false. |

docs/documentation/docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This repository provides developers with a set of reusable React controls that can be used in SharePoint Framework (SPFx) solutions. The project provides controls for building web parts and extensions.
44

5+
!!! attention
6+
In order to migrate to `v2` it is advicded to follow this guide: [Migrating from V1](./guides/migrate-from-v1).
7+
58
![Placeholder example](./assets/placeholder-intro.png)
69

710
!!! attention

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,5 @@
9494
"Rodrigues, Joel <>",
9595
"Struyf, Elio <[email protected]>",
9696
"Terentiev, Alex <[email protected]>"
97-
],
98-
"husky": {
99-
"hooks": {
100-
"pre-commit": "npm run changelog"
101-
}
102-
}
97+
]
10398
}

0 commit comments

Comments
 (0)