From 9442988cfd310f5a15cf50db19233377e287a76f Mon Sep 17 00:00:00 2001 From: Ravichandran Krishnasamy Date: Mon, 7 Sep 2020 20:35:28 +0530 Subject: [PATCH 1/4] Update SecurityTrimmedControl.md missing imports are added --- docs/documentation/docs/controls/SecurityTrimmedControl.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/documentation/docs/controls/SecurityTrimmedControl.md b/docs/documentation/docs/controls/SecurityTrimmedControl.md index 159d2abc5..f9f5b379e 100644 --- a/docs/documentation/docs/controls/SecurityTrimmedControl.md +++ b/docs/documentation/docs/controls/SecurityTrimmedControl.md @@ -8,7 +8,8 @@ This control is intended to be used when you want to show or hide components bas - Import the following modules to your component: ```TypeScript -import { SecurityTrimmedControl } from "@pnp/spfx-controls-react/lib/SecurityTrimmedControl"; +import { SecurityTrimmedControl, PermissionLevel } from "@pnp/spfx-controls-react/lib/SecurityTrimmedControl"; +import { SPPermission } from '@microsoft/sp-page-context'; ``` - You can use the `SecurityTrimmedControl` as follows in your solutions: From 87f6ce6482af51be9729673134773dd0daff3bea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2020 23:33:24 +0000 Subject: [PATCH 2/4] Bump http-proxy from 1.17.0 to 1.18.1 Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1. - [Release notes](https://github.com/http-party/node-http-proxy/releases) - [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md) - [Commits](https://github.com/http-party/node-http-proxy/compare/1.17.0...1.18.1) Signed-off-by: dependabot[bot] --- package-lock.json | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index aa5f4f508..b25b0e89d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5964,12 +5964,6 @@ "through": "~2.3.1" } }, - "eventemitter3": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.0.tgz", - "integrity": "sha512-ivIvhpq/Y0uSjcHDcOIccjmYjGLcP09MFGE7ysAwkAvkXfpZlC985pH2/ui64DKazbTW/4kN3yqozUxlXzI6cA==", - "dev": true - }, "events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", @@ -9695,14 +9689,22 @@ "dev": true }, "http-proxy": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.17.0.tgz", - "integrity": "sha1-etOElGWPhGBeL220Q230EPTlvpo=", + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, "requires": { - "eventemitter3": "^3.0.0", + "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" + }, + "dependencies": { + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + } } }, "http-proxy-agent": { From fe49820031b4a96d7212ad2a9abe01161dd7b3d4 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 23 Sep 2020 18:00:38 +0200 Subject: [PATCH 3/4] Updated documentation --- docs/documentation/docs/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/documentation/docs/index.md b/docs/documentation/docs/index.md index 0b25a8499..3ea7965ed 100644 --- a/docs/documentation/docs/index.md +++ b/docs/documentation/docs/index.md @@ -2,6 +2,9 @@ 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. +!!! attention + In order to migrate to `v2` it is advicded to follow this guide: [Migrating from V1](./guides/migrate-from-v1). + ![Placeholder example](./assets/placeholder-intro.png) !!! attention From 87e92772107fb87ecf720b9cedb99b6006c34e1f Mon Sep 17 00:00:00 2001 From: Thomas Daly Date: Tue, 13 Oct 2020 15:37:57 -0400 Subject: [PATCH 4/4] Update TaxonomyPicker.md the disabled property is boolean, not string --- docs/documentation/docs/controls/TaxonomyPicker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/docs/controls/TaxonomyPicker.md b/docs/documentation/docs/controls/TaxonomyPicker.md index 037f8a131..6be321343 100644 --- a/docs/documentation/docs/controls/TaxonomyPicker.md +++ b/docs/documentation/docs/controls/TaxonomyPicker.md @@ -152,7 +152,7 @@ The TaxonomyPicker control can be configured with the following properties: | ---- | ---- | ---- | ---- | | panelTitle | string | yes | TermSet Picker Panel title. | | label | string | yes | Text displayed above the Taxonomy Picker. | -| disabled | string | no | Specify if the control needs to be disabled. | +| disabled | boolean | no | Specify if the control needs to be disabled. | | context | WebPartContext \| ExtensionContext | yes | Context of the current web part or extension. | | initialValues | IPickerTerms | no | Defines the selected by default term sets. | | allowMultipleSelections | boolean | no | Defines if the user can select only one or many term sets. Default value is false. |