From 49fe9c862b9df7ef57a3ed019ed46f840702931e Mon Sep 17 00:00:00 2001 From: Russell gove Date: Sat, 23 Dec 2017 16:40:45 -0500 Subject: [PATCH 1/6] Update package.json index.js, not .ts --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 54b17ff76..da6d0e9c2 100644 --- a/package.json +++ b/package.json @@ -57,5 +57,7 @@ "bugs": { "url": "https://github.com/SharePoint/sp-dev-fx-controls-react/issues" }, + "main":"lib/index.js", + "homepage": "https://github.com/SharePoint/sp-dev-fx-controls-react" } From d9844eb8bca01a6d857e00ea4ff6100b0a43d310 Mon Sep 17 00:00:00 2001 From: Chris Kent <8364109+thechriskent@users.noreply.github.com> Date: Wed, 27 Dec 2017 20:56:24 -0500 Subject: [PATCH 2/6] Minor repo name correction --- docs/guides/mpa.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/mpa.md b/docs/guides/mpa.md index 149783b65..3290eed0d 100644 --- a/docs/guides/mpa.md +++ b/docs/guides/mpa.md @@ -17,7 +17,7 @@ Before you start contributing to this project, you will need Node.js. This proje ### Documentation -SharePoint Framework Property Controls uses [MkDocs](http://www.mkdocs.org) to publish documentation pages. See more information about installing MkDocs on your operating system at http://www.mkdocs.org/#installation. +SharePoint Framework React Controls uses [MkDocs](http://www.mkdocs.org) to publish documentation pages. See more information about installing MkDocs on your operating system at http://www.mkdocs.org/#installation. Also, documentation uses custom MkDocs theme that should be installed as well. See [Material theme for MkDocs](https://squidfunk.github.io/mkdocs-material/). From bba46b457c36a0f98c0a9adf8373266fca6e0348 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 2 Jan 2018 10:27:17 +0100 Subject: [PATCH 3/6] Updated the documentation URL Updated the documentation URL --- .github/ISSUE_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 71cf59cfe..bfbaf1f71 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks! -**Please check out the [documentation](https://github.com/SharePoint/sp-dev-fx-controls-react/wiki) to see if your question is already addressed there. This will help us ensure our documentation is up to date.** +**Please check out the [documentation](https://sharepoint.github.io/sp-dev-fx-controls-react/) to see if your question is already addressed there. This will help us ensure our documentation is up to date.** #### Category [ ] Enhancement From 2e9887a15ac56b307ea6c34ba02436f95da0dabd Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Fri, 5 Jan 2018 15:21:06 +0100 Subject: [PATCH 4/6] Fix: webpart title inherit color --- package.json | 2 +- src/controls/webPartTitle/WebPartTitle.module.scss | 1 + src/controls/webPartTitle/WebPartTitle.tsx | 11 +---------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 54b17ff76..8a0ed1d5c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@pnp/spfx-controls-react", "description": "Reusable React controls for SharePoint Framework solutions", - "version": "1.1.1", + "version": "1.1.2", "engines": { "node": ">=0.10.0" }, diff --git a/src/controls/webPartTitle/WebPartTitle.module.scss b/src/controls/webPartTitle/WebPartTitle.module.scss index fa21d70a2..1963b9f2b 100644 --- a/src/controls/webPartTitle/WebPartTitle.module.scss +++ b/src/controls/webPartTitle/WebPartTitle.module.scss @@ -8,6 +8,7 @@ background-color: transparent; border: none; box-sizing: border-box; + color: inherit; display: block; font-family: inherit; font-size: inherit; diff --git a/src/controls/webPartTitle/WebPartTitle.tsx b/src/controls/webPartTitle/WebPartTitle.tsx index 788b281e8..c5eb627d2 100644 --- a/src/controls/webPartTitle/WebPartTitle.tsx +++ b/src/controls/webPartTitle/WebPartTitle.tsx @@ -42,7 +42,7 @@ export class WebPartTitle extends React.Component { */ public render(): React.ReactElement { return ( -
+
{ this.props.displayMode === DisplayMode.Edit && } @@ -54,12 +54,3 @@ export class WebPartTitle extends React.Component { ); } } - - - - - - -/* - -*/ From 8111c4c66b99b3bf8f193390fc87e8aced72439f Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Fri, 5 Jan 2018 16:01:02 +0100 Subject: [PATCH 5/6] Changelog update --- CHANGELOG.md | 6 +++++- docs/documentation/docs/about/release-notes.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f30b2e53a..5bfe1c411 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Releases +## 1.1.2 + +- Fix for WebPartTitle control to inherit color + ## 1.1.1 - Removed operation name from telemetry @@ -9,7 +13,7 @@ - Telemetry added ## 1.0.0 -- **New control**: WebPartTilte control got added. +- **New control**: WebPartTitle control got added. - **Enhancement**: ListView control got extended with the ability to specify a set of preselected items. ## Beta 1.0.0-beta.8 diff --git a/docs/documentation/docs/about/release-notes.md b/docs/documentation/docs/about/release-notes.md index f30b2e53a..5bfe1c411 100644 --- a/docs/documentation/docs/about/release-notes.md +++ b/docs/documentation/docs/about/release-notes.md @@ -1,5 +1,9 @@ # Releases +## 1.1.2 + +- Fix for WebPartTitle control to inherit color + ## 1.1.1 - Removed operation name from telemetry @@ -9,7 +13,7 @@ - Telemetry added ## 1.0.0 -- **New control**: WebPartTilte control got added. +- **New control**: WebPartTitle control got added. - **Enhancement**: ListView control got extended with the ability to specify a set of preselected items. ## Beta 1.0.0-beta.8 From 2969370669605c37548780dd9d22f2ca4698b65d Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Fri, 5 Jan 2018 16:09:30 +0100 Subject: [PATCH 6/6] Telemetry changes --- CHANGELOG.md | 1 + docs/documentation/docs/about/release-notes.md | 1 + src/common/appInsights/index.ts | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bfe1c411..740167601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.1.2 - Fix for WebPartTitle control to inherit color +- Improved telemetry with some object checks ## 1.1.1 diff --git a/docs/documentation/docs/about/release-notes.md b/docs/documentation/docs/about/release-notes.md index 5bfe1c411..740167601 100644 --- a/docs/documentation/docs/about/release-notes.md +++ b/docs/documentation/docs/about/release-notes.md @@ -3,6 +3,7 @@ ## 1.1.2 - Fix for WebPartTitle control to inherit color +- Improved telemetry with some object checks ## 1.1.1 diff --git a/src/common/appInsights/index.ts b/src/common/appInsights/index.ts index 1e8886e96..55fd1fab1 100644 --- a/src/common/appInsights/index.ts +++ b/src/common/appInsights/index.ts @@ -5,7 +5,9 @@ import {Environment,EnvironmentType} from "@microsoft/sp-core-library"; AppInsights.downloadAndSetup({ instrumentationKey: "9f59b81e-d2ed-411e-a961-8bcf3f7f04d0" }); // Remove operation name from the telemetry -AppInsights.context.operation.name = null; +if (AppInsights.context && AppInsights.context.operation && AppInsights.context.operation.name) { + AppInsights.context.operation.name = null; +} export function track(componentName: string, properties: any = {}): void { AppInsights.trackEvent(componentName, {