Merge pull request #2692 from nanddeepn/main

Upgraded react-teams-meeting-app-questionnaire to 1.14.0
This commit is contained in:
Hugo Bernier 2022-06-01 20:36:43 -07:00 committed by GitHub
commit 72dd22a532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 4068 additions and 2654 deletions

View File

@ -0,0 +1,16 @@
!dist
config
gulpfile.js
release
src
temp
tsconfig.json
tslint.json
*.log
.yo-rc.json
.vscode

View File

@ -1,8 +1,9 @@
{ {
"@microsoft/generator-sharepoint": { "@microsoft/generator-sharepoint": {
"plusBeta": false,
"isCreatingSolution": true, "isCreatingSolution": true,
"environment": "spo", "environment": "spo",
"version": "1.12.1", "version": "1.14.0",
"libraryName": "spfx-ms-teams-questionnaire-meeting-app", "libraryName": "spfx-ms-teams-questionnaire-meeting-app",
"libraryId": "78093b48-2c62-4536-8f93-95ec16b01f8b", "libraryId": "78093b48-2c62-4536-8f93-95ec16b01f8b",
"packageManager": "npm", "packageManager": "npm",

View File

@ -2,14 +2,13 @@
## Summary ## Summary
SPFx v1.12.1 support for Microsoft Teams meeting apps development. Questionnaire meeting app provides Pre-meeting app experience for MS Teams meeting attendees to ask the questions related to meeting before the meeting starts. SPFx v1.12.1 and later support for Microsoft Teams meeting apps development. Questionnaire meeting app provides Pre-meeting app experience for MS Teams meeting attendees to ask the questions related to meeting before the meeting starts.
![Web Part Preview](./assets/web-part-preview.gif) ![Web Part Preview](./assets/web-part-preview.gif)
The Questionnaire meeting app displays the questions from attendees as pre-meeting app experience. The Questionnaire meeting app displays the questions from attendees as pre-meeting app experience.
![Questionnaire Preview](./assets/questionnaire-preview.png) ![Questionnaire Preview](./assets/questionnaire-preview.png)
### NPM Packages Used ### NPM Packages Used
Below NPM package(s) are used to develop this sample: Below NPM package(s) are used to develop this sample:
@ -47,20 +46,19 @@ spfx-react-teams-meeting-app-questionnaire
└── mystrings.d.ts └── mystrings.d.ts
``` ```
## Compatibility
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
## Compatibility ## Compatibility
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
![SPFx 1.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg) ![SPFx 1.14](https://img.shields.io/badge/SPFx-1.14-green.svg)
![Node.js v14 | v12 | v10](https://img.shields.io/badge/Node.js-v14%20%7C%20v12%20%7C%20v10-green.svg) ![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-green.svg)
![Microsoft Teams](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg) ![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Incompatible-red.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower") ![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") ![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
![Local Workbench Incompatible](https://img.shields.io/badge/Local%20Workbench-Incompatible-red.svg "Needs Teams to work") ![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg "Local workbench is no longer available as of SPFx 1.13 and above")
![Hosted Workbench Incmpatible](https://img.shields.io/badge/Hosted%20Workbench-Incompatible-red.svg) ![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg)
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
## Applies to ## Applies to
@ -101,9 +99,9 @@ MeetingID|MeetingID|Single line of text|N|
- Clone this repo - Clone this repo
- Navigate to the folder with current sample - Navigate to the folder with current sample
- Restore dependencies: `$ npm i` - Restore dependencies: `npm i`
- Bundle the solution: `$ gulp bundle --ship` - Bundle the solution: `gulp bundle --ship`
- Package the solution: `$ gulp package-solution --ship` - Package the solution: `gulp package-solution --ship`
- Locate the solution at `./sharepoint/solution/spfx-ms-teams-questionnaire-meeting-app.sppkg` and upload it to SharePoint tenant app catalog - Locate the solution at `./sharepoint/solution/spfx-ms-teams-questionnaire-meeting-app.sppkg` and upload it to SharePoint tenant app catalog
![Deploy SPFx solution](./assets/deploy-spfx-solution.png) ![Deploy SPFx solution](./assets/deploy-spfx-solution.png)
@ -113,10 +111,10 @@ MeetingID|MeetingID|Single line of text|N|
### MS Teams deployment ### MS Teams deployment
- Navigate to `teams` folder and zip the content (2 png files and manifest.json). - Navigate to `teams` folder and zip the content (2 `.png` files and `manifest.json`).
- Open MS Teams. - Open MS Teams.
- Click `Apps`. - Click **Apps**.
- Click `Upload a custom app` > `Upload for <tenant>`. - Click **Upload a custom app** > **Upload for <tenant>**.
![Deploy to MS Teams](./assets/deploy-to-ms-teams.png) ![Deploy to MS Teams](./assets/deploy-to-ms-teams.png)

View File

@ -10,7 +10,7 @@
"The Questionnaire meeting app displays the questions from attendees as pre-meeting app experience." "The Questionnaire meeting app displays the questions from attendees as pre-meeting app experience."
], ],
"creationDateTime": "2021-03-22", "creationDateTime": "2021-03-22",
"updateDateTime": "2021-09-28", "updateDateTime": "2022-05-02",
"products": [ "products": [
"SharePoint", "SharePoint",
"Teams" "Teams"
@ -22,7 +22,7 @@
}, },
{ {
"key": "SPFX-VERSION", "key": "SPFX-VERSION",
"value": "1.12.0" "value": "1.14.0"
}, },
{ {
"key": "SPFX-TEAMSMEETINGAPP", "key": "SPFX-TEAMSMEETINGAPP",

View File

@ -1,4 +0,0 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
"deployCdnPath": "./release/assets/"
}

View File

@ -13,7 +13,26 @@
"privacyUrl": "", "privacyUrl": "",
"termsOfUseUrl": "", "termsOfUseUrl": "",
"mpnId": "" "mpnId": ""
},
"metadata": {
"shortDescription": {
"default": "spfx-ms-teams-questionnaire-meeting-app description"
},
"longDescription": {
"default": "spfx-ms-teams-questionnaire-meeting-app description"
},
"screenshotPaths": [],
"videoUrl": "",
"categories": []
},
"features": [
{
"title": "spfx-ms-teams-questionnaire-meeting-app Feature",
"description": "The feature that activates elements of the spfx-ms-teams-questionnaire-meeting-app solution.",
"id": "78085519-068b-45ed-9b7a-836e4042f42f",
"version": "1.0.0.0"
} }
]
}, },
"paths": { "paths": {
"zippedPackage": "solution/spfx-ms-teams-questionnaire-meeting-app.sppkg" "zippedPackage": "solution/spfx-ms-teams-questionnaire-meeting-app.sppkg"

View File

@ -2,9 +2,5 @@
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"port": 4321, "port": 4321,
"https": true, "https": true,
"initialPage": "https://localhost:5432/workbench", "initialPage": "https://enter-your-SharePoint-site/_layouts/workbench.aspx"
"api": {
"port": 5432,
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
}
} }

File diff suppressed because it is too large Load Diff

View File

@ -9,24 +9,24 @@
"test": "gulp test" "test": "gulp test"
}, },
"dependencies": { "dependencies": {
"@microsoft/sp-core-library": "1.12.1", "@microsoft/sp-core-library": "1.14.0",
"@microsoft/sp-lodash-subset": "1.12.1", "@microsoft/sp-lodash-subset": "1.14.0",
"@microsoft/sp-office-ui-fabric-core": "1.12.1", "@microsoft/sp-office-ui-fabric-core": "1.14.0",
"@microsoft/sp-property-pane": "1.12.1", "@microsoft/sp-property-pane": "1.14.0",
"@microsoft/sp-webpart-base": "1.12.1", "@microsoft/sp-webpart-base": "1.14.0",
"@pnp/sp": "2.3.1-beta0", "@pnp/sp": "2.3.1-beta0",
"moment": "^2.29.1", "moment": "^2.29.1",
"office-ui-fabric-react": "7.156.0", "office-ui-fabric-react": "7.174.1",
"react": "16.9.0", "react": "16.13.1",
"react-dom": "16.9.0" "react-dom": "16.13.1"
}, },
"devDependencies": { "devDependencies": {
"@microsoft/rush-stack-compiler-3.7": "0.2.3", "@microsoft/rush-stack-compiler-3.7": "0.2.3",
"@microsoft/sp-build-web": "1.12.1", "@microsoft/rush-stack-compiler-3.9": "0.4.47",
"@microsoft/sp-module-interfaces": "1.12.1", "@microsoft/sp-build-web": "1.14.0",
"@microsoft/sp-tslint-rules": "1.12.1", "@microsoft/sp-module-interfaces": "1.14.0",
"@microsoft/sp-webpart-workbench": "1.12.1", "@microsoft/sp-tslint-rules": "1.14.0",
"@types/react": "16.9.36", "@types/react": "16.9.51",
"@types/react-dom": "16.9.8", "@types/react-dom": "16.9.8",
"@types/webpack-env": "1.13.1", "@types/webpack-env": "1.13.1",
"ajv": "~5.2.2", "ajv": "~5.2.2",

View File

@ -1,79 +0,0 @@
{
"id": "31f78b4e-8520-4ef2-884c-fb3bdd5d9985",
"alias": "QuestionnaireMeetingAppWebPart",
"componentType": "WebPart",
"version": "0.0.1",
"manifestVersion": 2,
"requiresCustomScript": false,
"supportedHosts": [
"SharePointWebPart"
],
"preconfiguredEntries": [
{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": {
"default": "Other"
},
"title": {
"default": "QuestionnaireMeetingApp"
},
"description": {
"default": "Provides pre-meeting experience with questionnaire"
},
"officeFabricIconFontName": "Page",
"properties": {
"siteUrl": "/",
"listName": "Teams Meeting Questionnaire"
}
}
],
"loaderConfig": {
"internalModuleBaseUrls": [
"https://localhost:4321/dist/"
],
"entryModuleId": "questionnaire-meeting-app-web-part",
"scriptResources": {
"questionnaire-meeting-app-web-part": {
"type": "path",
"path": "questionnaire-meeting-app-web-part_84192ae6459ea857d480.js"
},
"tslib": {
"type": "component",
"id": "01c4df03-e775-48cb-aa14-171ee5199a15",
"version": "1.10.0"
},
"@microsoft/sp-property-pane": {
"type": "component",
"id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
"version": "1.12.0"
},
"@microsoft/sp-core-library": {
"type": "component",
"id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
"version": "1.12.0"
},
"@microsoft/sp-webpart-base": {
"type": "component",
"id": "974a7777-0990-4136-8fa6-95d80114c2e0",
"version": "1.12.0"
},
"react": {
"type": "component",
"id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"version": "16.9.0"
},
"react-dom": {
"type": "component",
"id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"version": "16.9.0"
},
"QuestionnaireMeetingAppWebPartStrings": {
"type": "localizedPath",
"paths": {
"en-US": "QuestionnaireMeetingAppWebPartStrings_en-us_733fec4d177b77e953cdd1256b08bf0a.js"
},
"defaultPath": "QuestionnaireMeetingAppWebPartStrings_en-us_733fec4d177b77e953cdd1256b08bf0a.js"
}
}
}
}

View File

@ -1,12 +0,0 @@
define([], function() {
return {
"PropertyPaneDescription": "Description",
"BasicGroupName": "Group Name",
"SiteURLFieldLabel": "Relative Site URL",
"ListNameFieldLabel": "Relative Site URL",
"AddQuestion": "New Question",
"Posted": "posted",
"Title": "Title",
"Description": "Description"
}
});

View File

@ -2,64 +2,64 @@
"bundles": { "bundles": {
"questionnaire-meeting-app-web-part": { "questionnaire-meeting-app-web-part": {
"dependencies": [ "dependencies": [
{
"componentId": "01c4df03-e775-48cb-aa14-171ee5199a15",
"componentName": "tslib",
"componentVersion": "1.10.0",
"isDirectDependency": true
},
{ {
"componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db", "componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db",
"componentName": "@microsoft/sp-property-pane", "componentName": "@microsoft/sp-property-pane",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": true "isDirectDependency": true
}, },
{ {
"componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f", "componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f",
"componentName": "@microsoft/sp-loader", "componentName": "@microsoft/sp-loader",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "8217e442-8ed3-41fd-957d-b112e841286a", "componentId": "8217e442-8ed3-41fd-957d-b112e841286a",
"componentName": "@ms/sp-telemetry", "componentName": "@ms/sp-telemetry",
"componentVersion": "0.19.2", "componentVersion": "0.21.51",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "e40f8203-b39d-425a-a957-714852e33b79", "componentId": "e40f8203-b39d-425a-a957-714852e33b79",
"componentName": "@microsoft/sp-dynamic-data", "componentName": "@microsoft/sp-dynamic-data",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a", "componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a",
"componentName": "@microsoft/sp-lodash-subset", "componentName": "@microsoft/sp-lodash-subset",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", "componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
"componentName": "@microsoft/sp-core-library", "componentName": "@microsoft/sp-core-library",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false
},
{
"componentId": "01c4df03-e775-48cb-aa14-171ee5199a15",
"componentName": "tslib",
"componentVersion": "1.10.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176", "componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176",
"componentName": "@ms/odsp-core-bundle", "componentName": "@ms/odsp-core-bundle",
"componentVersion": "1.1.13", "componentVersion": "1.1.258",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8", "componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8",
"componentName": "@microsoft/sp-diagnostics", "componentName": "@microsoft/sp-diagnostics",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8", "componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8",
"componentName": "@microsoft/sp-page-context", "componentName": "@microsoft/sp-page-context",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
@ -71,31 +71,37 @@
{ {
"componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6", "componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6",
"componentName": "@microsoft/sp-http", "componentName": "@microsoft/sp-http",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", "componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"componentName": "react", "componentName": "react",
"componentVersion": "16.9.0", "componentVersion": "16.13.1",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", "componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"componentName": "react-dom", "componentName": "react-dom",
"componentVersion": "16.9.0", "componentVersion": "16.13.1",
"isDirectDependency": false "isDirectDependency": false
}, },
{ {
"componentId": "974a7777-0990-4136-8fa6-95d80114c2e0", "componentId": "974a7777-0990-4136-8fa6-95d80114c2e0",
"componentName": "@microsoft/sp-webpart-base", "componentName": "@microsoft/sp-webpart-base",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": true "isDirectDependency": true
}, },
{ {
"componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6", "componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6",
"componentName": "@microsoft/sp-component-base", "componentName": "@microsoft/sp-component-base",
"componentVersion": "1.12.0", "componentVersion": "1.14.0",
"isDirectDependency": false
},
{
"componentId": "42647dee-1f75-4b9f-b521-5c844a6c35cc",
"componentName": "@ms/sp-edit-customer-promise",
"componentVersion": "0.1.0",
"isDirectDependency": false "isDirectDependency": false
} }
] ]

View File

@ -35,44 +35,36 @@
"scriptResources": { "scriptResources": {
"questionnaire-meeting-app-web-part": { "questionnaire-meeting-app-web-part": {
"type": "path", "type": "path",
"path": "questionnaire-meeting-app-web-part_84192ae6459ea857d480.js" "path": "questionnaire-meeting-app-web-part_5bd785568ba829e99275.js"
},
"tslib": {
"type": "component",
"id": "01c4df03-e775-48cb-aa14-171ee5199a15",
"version": "1.10.0"
}, },
"@microsoft/sp-property-pane": { "@microsoft/sp-property-pane": {
"type": "component", "type": "component",
"id": "f9e737b7-f0df-4597-ba8c-3060f82380db", "id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
"version": "1.12.0" "version": "1.14.0"
}, },
"@microsoft/sp-core-library": { "@microsoft/sp-core-library": {
"type": "component", "type": "component",
"id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
"version": "1.12.0" "version": "1.14.0"
}, },
"@microsoft/sp-webpart-base": { "@microsoft/sp-webpart-base": {
"type": "component", "type": "component",
"id": "974a7777-0990-4136-8fa6-95d80114c2e0", "id": "974a7777-0990-4136-8fa6-95d80114c2e0",
"version": "1.12.0" "version": "1.14.0"
}, },
"react": { "react": {
"type": "component", "type": "component",
"id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"version": "16.9.0" "version": "16.13.1"
}, },
"react-dom": { "react-dom": {
"type": "component", "type": "component",
"id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"version": "16.9.0" "version": "16.13.1"
}, },
"QuestionnaireMeetingAppWebPartStrings": { "QuestionnaireMeetingAppWebPartStrings": {
"type": "localizedPath", "type": "path",
"paths": { "path": "QuestionnaireMeetingAppWebPartStrings_en-us_19edba0bc8a1debe25ed14e967a14a92.js"
"en-US": "QuestionnaireMeetingAppWebPartStrings_en-us_733fec4d177b77e953cdd1256b08bf0a.js"
},
"defaultPath": "QuestionnaireMeetingAppWebPartStrings_en-us_733fec4d177b77e953cdd1256b08bf0a.js"
} }
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.7/includes/tsconfig-web.json", "extends": "./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json",
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,

View File

@ -17,7 +17,6 @@
"no-switch-case-fall-through": true, "no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true, "no-unnecessary-semicolons": true,
"no-unused-expression": true, "no-unused-expression": true,
"no-use-before-declare": true,
"no-with-statement": true, "no-with-statement": true,
"semicolon": true, "semicolon": true,
"trailing-comma": false, "trailing-comma": false,