From c9cd7c19e9dc95017c25ae6ad7ce8c290f0928be Mon Sep 17 00:00:00 2001 From: Suryawanshi Date: Wed, 17 Jun 2020 18:48:27 +0530 Subject: [PATCH] Upgraded sample to SharePoint Framework version 1.10.0 from plus-beta version --- samples/react-carousel/.yo-rc.json | 2 +- samples/react-carousel/README.md | 3 +- .../config/package-solution.json | 2 +- samples/react-carousel/package.json | 42 +++++++++++-------- 4 files changed, 28 insertions(+), 21 deletions(-) diff --git a/samples/react-carousel/.yo-rc.json b/samples/react-carousel/.yo-rc.json index 2cd08bc13..46627e5b3 100644 --- a/samples/react-carousel/.yo-rc.json +++ b/samples/react-carousel/.yo-rc.json @@ -1,6 +1,6 @@ { "@microsoft/generator-sharepoint": { - "version": "1.8.2", + "version": "1.10.0", "libraryName": "react-carousel", "libraryId": "263a1d21-f4c7-4a46-a364-e5f995286b9b", "environment": "spo", diff --git a/samples/react-carousel/README.md b/samples/react-carousel/README.md index 547f20ca9..955e25055 100644 --- a/samples/react-carousel/README.md +++ b/samples/react-carousel/README.md @@ -13,7 +13,7 @@ It uses Microsoft Graph API to get image/video url and use PnPjs to load files f ## Used SharePoint Framework Version -![drop](https://img.shields.io/badge/version-1.8.2-green.svg) +![drop](https://img.shields.io/badge/version-1.10.0-green.svg) ## Applies to @@ -44,6 +44,7 @@ Carousel Image/Video Web Part|João Mendes Version|Date|Comments -------|----|-------- 1.0.0|July 11, 2019|Initial release +2.0.0|June 17, 2020|Upgraded to SPFx v1.10.0 ## Disclaimer diff --git a/samples/react-carousel/config/package-solution.json b/samples/react-carousel/config/package-solution.json index 6e25bfbfa..64d556c7f 100644 --- a/samples/react-carousel/config/package-solution.json +++ b/samples/react-carousel/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "react-carousel-client-side-solution", "id": "263a1d21-f4c7-4a46-a364-e5f995286b9b", - "version": "1.0.0.0", + "version": "2.0.0.0", "includeClientSideAssets": true, "skipFeatureDeployment": true, "isDomainIsolated": false diff --git a/samples/react-carousel/package.json b/samples/react-carousel/package.json index f6ebc821a..950cf8eb4 100644 --- a/samples/react-carousel/package.json +++ b/samples/react-carousel/package.json @@ -14,40 +14,45 @@ "test:watch": "./node_modules/.bin/jest --config ./config/jest.config.json --watchAll" }, "dependencies": { - "@microsoft/sp-core-library": "1.8.2-plusbeta", - "@microsoft/sp-lodash-subset": "1.8.2-plusbeta", - "@microsoft/sp-office-ui-fabric-core": "1.8.2-plusbeta", - "@microsoft/sp-property-pane": "1.8.2-plusbeta", - "@microsoft/sp-webpart-base": "1.8.2-plusbeta", + "@microsoft/sp-core-library": "1.10.0", + "@microsoft/sp-http": "1.10.0", + "@microsoft/sp-lodash-subset": "1.10.0", + "@microsoft/sp-office-ui-fabric-core": "1.10.0", + "@microsoft/sp-property-pane": "1.10.0", + "@microsoft/sp-webpart-base": "1.10.0", + "@microsoft/teams-js": "^1.6.0", + "@pnp/common": "^1.3.11", + "@pnp/graph": "^1.3.11", "@pnp/pnpjs": "^1.3.3", + "@pnp/sp": "^1.3.11", "@pnp/spfx-controls-react": "1.13.2", "@pnp/spfx-property-controls": "1.15.0", "@types/es6-promise": "0.0.33", "@types/jquery": "^3.3.30", - "@types/react": "16.7.22", - "@types/react-dom": "16.8.0", + "@types/react-dom": "16.8.3", "@types/webpack-env": "1.13.1", "@uifabric/fluent-theme": "^0.16.9", + "@uifabric/styling": "^7.12.1", "jquery": "^3.4.1", - "office-ui-fabric-react": "^6.182.0", - "react": "16.7.0", - "react-dom": "16.7.0", + "office-ui-fabric-react": "6.189.2", + "react": "16.8.5", + "react-dom": "16.8.5", "react-slick": "^0.24.0", "slick-carousel": "^1.8.1", "video-react": "^0.14.0" }, "resolutions": { - "@types/react": "16.7.22" + "@types/react": "16.8.8" }, "devDependencies": { - "@microsoft/rush-stack-compiler-3.3": "~0.2.x", - "@microsoft/sp-build-web": "1.8.2-plusbeta", - "@microsoft/sp-module-interfaces": "1.8.2-plusbeta", - "@microsoft/sp-tslint-rules": "1.8.2-plusbeta", - "@microsoft/sp-webpart-workbench": "1.8.2-plusbeta", + "@microsoft/rush-stack-compiler-3.3": "0.3.5", + "@microsoft/sp-build-web": "1.10.0", + "@microsoft/sp-module-interfaces": "1.10.0", + "@microsoft/sp-tslint-rules": "1.10.0", + "@microsoft/sp-webpart-workbench": "1.10.0", "@types/chai": "3.4.34", "@types/mocha": "2.2.38", - "@types/react": "^16.7.22", + "@types/react": "16.8.8", "@voitanos/jest-preset-spfx-react16": "^1.1.0", "ajv": "~5.2.2", "gulp": "~3.9.1", @@ -60,5 +65,6 @@ "jest-junit": { "output": "temp/test/junit/junit.xml", "usePathForSuiteName": "true" - } + }, + "main": "lib/index.js" }