diff --git a/README.md b/README.md index 876a693..d3d8f4a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Summary -Adaptive Card Extensions for Viva Connections Dashboard shows the latest org-wide communications from Company Communicator to prioritize their visibility and increase readership across your organization. +Adaptive Card Extensions for Viva Connections Dashboard shows the latest org-wide communications from Company Communicator to prioritize their visibility and increase readership across your organization. ![ACEforCC](https://user-images.githubusercontent.com/11201670/160255163-9a0f4669-3cc1-4a6e-b713-027595fbe517.png) @@ -24,17 +24,17 @@ https://github.com/Mikhail2k15/viva-connections-company-communicator/wiki/Deploy https://github.com/Mikhail2k15/viva-connections-company-communicator/wiki/How-to-build-solution - ## Used SharePoint Framework Version ![version](https://img.shields.io/badge/version-1.15.2-green.svg) ## Version history -| Version | Date | Comments | -| ------- | --------------- | ----------------------- | -| 1.0.1 | August 26, 2022 | Upgrade to spfx v1.15.2 | -| 1.0.0 | Mar 26, 2022 | Initial release | +| Version | Date | Comments | +| ------- | ----------------- | --------------------------------------------- | +| 1.0.2 | September 3, 2022 | Fix incompatible App Insights libraries issue | +| 1.0.1 | August 26, 2022 | Upgrade to spfx v1.15.2 | +| 1.0.0 | Mar 26, 2022 | Initial release | ## Disclaimer diff --git a/config/package-solution.json b/config/package-solution.json index 00003b7..e52c51a 100644 --- a/config/package-solution.json +++ b/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "viva-connections-company-communicator-ace", "id": "3fc9dcfa-441e-4727-89fa-8fcb38cc6c37", - "version": "1.0.0.1", + "version": "1.0.0.2", "includeClientSideAssets": true, "skipFeatureDeployment": true, "isDomainIsolated": false, @@ -36,7 +36,7 @@ "title": "Company Communicator Adaptive Card Extensions for Viva Connections Feature", "description": "The feature that activates elements of the Company Communicator Adaptive Card Extensions for Viva Connections solution.", "id": "8811a825-0665-41b9-8dc6-46576723100f", - "version": "1.0.0.1" + "version": "1.0.0.2" } ] }, diff --git a/package-lock.json b/package-lock.json index c63b410..3ec522d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,12 @@ "version": "1.0.1", "dependencies": { "@microsoft/applicationinsights-react-js": "^3.0.5", - "@microsoft/applicationinsights-web": "^2.8.6", + "@microsoft/applicationinsights-web": "^2.5.10", "@microsoft/sp-adaptive-card-extension-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", "@microsoft/sp-property-pane": "1.15.2", "@pnp/logging": "^3.0.3", + "history": "^4.10.1", "tslib": "2.3.1" }, "devDependencies": { @@ -1753,33 +1754,73 @@ } }, "node_modules/@microsoft/applicationinsights-analytics-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.8.6.tgz", - "integrity": "sha512-EMRpJhz3j+luS/mLWudY/o9pqgr/AUEj6MAuLpFsaKZlUHAiEu3nhseB3TCZxyiGiHrl3Hx5ggkwgJQso56kcw==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.5.10.tgz", + "integrity": "sha512-NhqPLVv068xOgq6TcU2oo3xOSJc90/aFHFBOpzfm4v2aQdskspLjhrEfIPxbAVnw4DBf+LfQMC82oi0aV3iqrA==", "dependencies": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" - }, - "peerDependencies": { - "tslib": "*" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "node_modules/@microsoft/applicationinsights-analytics-js/node_modules/@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "dependencies": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "node_modules/@microsoft/applicationinsights-analytics-js/node_modules/@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "dependencies": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" } }, + "node_modules/@microsoft/applicationinsights-analytics-js/node_modules/@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + }, "node_modules/@microsoft/applicationinsights-channel-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.8.6.tgz", - "integrity": "sha512-b89KNT2TWC8stlE1puLpEHHjEp5d4ylhgc3i2UwGhMojxmBWejCPQTM3vgu5oW34/i4Ld6+YX6cyRwXdLGUn5Q==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.5.10.tgz", + "integrity": "sha512-Uq8lZ3M5oHcRYL31PZO5nRyS+iNQkPHXyjAxiNF1W8dtIfGC0Z3Du2N0LQPImq2vsQn5LmrTjMYtePPGYaozMw==", "dependencies": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" - }, - "peerDependencies": { - "tslib": "*" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "node_modules/@microsoft/applicationinsights-channel-js/node_modules/@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "dependencies": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" } }, + "node_modules/@microsoft/applicationinsights-channel-js/node_modules/@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "dependencies": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "node_modules/@microsoft/applicationinsights-channel-js/node_modules/@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + }, "node_modules/@microsoft/applicationinsights-common": { "version": "2.8.6", "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.8.6.tgz", @@ -1806,33 +1847,72 @@ } }, "node_modules/@microsoft/applicationinsights-dependencies-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.8.6.tgz", - "integrity": "sha512-OjaO/rl/GLPCV4VYxIZITs5hDTb51pYn/rSy1Xb6rCrNOpSrWUq7f+giJKxcY8W2CVEz6j/8eLirl+C3EVJgnQ==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.5.10.tgz", + "integrity": "sha512-nAXOywEDfwBtmO6zvYqc12SwPEC4wYH5GP4ofQV7e0c218cz32vjg8to5T5MqAbyyCPgPZTvcOCugqVx3UmG3g==", "dependencies": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" - }, - "peerDependencies": { - "tslib": "*" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" } }, + "node_modules/@microsoft/applicationinsights-dependencies-js/node_modules/@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "dependencies": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "node_modules/@microsoft/applicationinsights-dependencies-js/node_modules/@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "dependencies": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "node_modules/@microsoft/applicationinsights-dependencies-js/node_modules/@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + }, "node_modules/@microsoft/applicationinsights-properties-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.8.6.tgz", - "integrity": "sha512-cywtw1igdrR/3qgSeRTdohm3HG+nakPZuOEt+3VW0zapkL5MG+wI8J/BfXaeWdDEtehHrcugIXRG7CYJNJZmEA==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.5.10.tgz", + "integrity": "sha512-oCv1qU+kzTkDNBeZK9ApPmYE1n8psHXc7VitqAKF23u5dzYEi2u5UC4GwOBeWZDSS7tQ10fSjDtEMOWMd2k7vQ==", "dependencies": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" - }, - "peerDependencies": { - "tslib": "*" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "node_modules/@microsoft/applicationinsights-properties-js/node_modules/@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "dependencies": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "node_modules/@microsoft/applicationinsights-properties-js/node_modules/@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "dependencies": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" } }, + "node_modules/@microsoft/applicationinsights-properties-js/node_modules/@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + }, "node_modules/@microsoft/applicationinsights-react-js": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-react-js/-/applicationinsights-react-js-3.0.5.tgz", @@ -1858,23 +1938,43 @@ "integrity": "sha512-G0MXf6R6HndRbDy9BbEj0zrLeuhwt2nsXk2zKtF0TnYo39KgYqhYC2ayIzKPTm2KAE+xzD7rgyLdZnrcRvt9WQ==" }, "node_modules/@microsoft/applicationinsights-web": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web/-/applicationinsights-web-2.8.6.tgz", - "integrity": "sha512-aEZwluLDkStx/s2tsRkNe7dSVpfgLHOOFzDacfq/cVs7uEZF0Mj5/M4sFsPYGhqmx5eAMiv+tt/IUXw+kAW8Xw==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web/-/applicationinsights-web-2.5.10.tgz", + "integrity": "sha512-uaY+Q8Tw1yKxVkBF144BE9l+fiexL+tMwRxgNTKoxKQiEgXHR5FoPqMhUfJ2kxCVJDVHa4LHdyQNXRZYtWsAQw==", "dependencies": { - "@microsoft/applicationinsights-analytics-js": "2.8.6", - "@microsoft/applicationinsights-channel-js": "2.8.6", - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-dependencies-js": "2.8.6", - "@microsoft/applicationinsights-properties-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" - }, - "peerDependencies": { - "tslib": "*" + "@microsoft/applicationinsights-analytics-js": "2.5.10", + "@microsoft/applicationinsights-channel-js": "2.5.10", + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-dependencies-js": "2.5.10", + "@microsoft/applicationinsights-properties-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" } }, + "node_modules/@microsoft/applicationinsights-web/node_modules/@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "dependencies": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "node_modules/@microsoft/applicationinsights-web/node_modules/@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "dependencies": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "node_modules/@microsoft/applicationinsights-web/node_modules/@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + }, "node_modules/@microsoft/dynamicproto-js": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.6.tgz", @@ -33050,25 +33150,75 @@ } }, "@microsoft/applicationinsights-analytics-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.8.6.tgz", - "integrity": "sha512-EMRpJhz3j+luS/mLWudY/o9pqgr/AUEj6MAuLpFsaKZlUHAiEu3nhseB3TCZxyiGiHrl3Hx5ggkwgJQso56kcw==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.5.10.tgz", + "integrity": "sha512-NhqPLVv068xOgq6TcU2oo3xOSJc90/aFHFBOpzfm4v2aQdskspLjhrEfIPxbAVnw4DBf+LfQMC82oi0aV3iqrA==", "requires": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + }, + "dependencies": { + "@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "requires": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "requires": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + } } }, "@microsoft/applicationinsights-channel-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.8.6.tgz", - "integrity": "sha512-b89KNT2TWC8stlE1puLpEHHjEp5d4ylhgc3i2UwGhMojxmBWejCPQTM3vgu5oW34/i4Ld6+YX6cyRwXdLGUn5Q==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.5.10.tgz", + "integrity": "sha512-Uq8lZ3M5oHcRYL31PZO5nRyS+iNQkPHXyjAxiNF1W8dtIfGC0Z3Du2N0LQPImq2vsQn5LmrTjMYtePPGYaozMw==", "requires": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + }, + "dependencies": { + "@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "requires": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "requires": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + } } }, "@microsoft/applicationinsights-common": { @@ -33091,25 +33241,74 @@ } }, "@microsoft/applicationinsights-dependencies-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.8.6.tgz", - "integrity": "sha512-OjaO/rl/GLPCV4VYxIZITs5hDTb51pYn/rSy1Xb6rCrNOpSrWUq7f+giJKxcY8W2CVEz6j/8eLirl+C3EVJgnQ==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.5.10.tgz", + "integrity": "sha512-nAXOywEDfwBtmO6zvYqc12SwPEC4wYH5GP4ofQV7e0c218cz32vjg8to5T5MqAbyyCPgPZTvcOCugqVx3UmG3g==", "requires": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + }, + "dependencies": { + "@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "requires": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "requires": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + } } }, "@microsoft/applicationinsights-properties-js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.8.6.tgz", - "integrity": "sha512-cywtw1igdrR/3qgSeRTdohm3HG+nakPZuOEt+3VW0zapkL5MG+wI8J/BfXaeWdDEtehHrcugIXRG7CYJNJZmEA==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.5.10.tgz", + "integrity": "sha512-oCv1qU+kzTkDNBeZK9ApPmYE1n8psHXc7VitqAKF23u5dzYEi2u5UC4GwOBeWZDSS7tQ10fSjDtEMOWMd2k7vQ==", "requires": { - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + }, + "dependencies": { + "@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "requires": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "requires": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + } } }, "@microsoft/applicationinsights-react-js": { @@ -33136,18 +33335,43 @@ "integrity": "sha512-G0MXf6R6HndRbDy9BbEj0zrLeuhwt2nsXk2zKtF0TnYo39KgYqhYC2ayIzKPTm2KAE+xzD7rgyLdZnrcRvt9WQ==" }, "@microsoft/applicationinsights-web": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web/-/applicationinsights-web-2.8.6.tgz", - "integrity": "sha512-aEZwluLDkStx/s2tsRkNe7dSVpfgLHOOFzDacfq/cVs7uEZF0Mj5/M4sFsPYGhqmx5eAMiv+tt/IUXw+kAW8Xw==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web/-/applicationinsights-web-2.5.10.tgz", + "integrity": "sha512-uaY+Q8Tw1yKxVkBF144BE9l+fiexL+tMwRxgNTKoxKQiEgXHR5FoPqMhUfJ2kxCVJDVHa4LHdyQNXRZYtWsAQw==", "requires": { - "@microsoft/applicationinsights-analytics-js": "2.8.6", - "@microsoft/applicationinsights-channel-js": "2.8.6", - "@microsoft/applicationinsights-common": "2.8.6", - "@microsoft/applicationinsights-core-js": "2.8.6", - "@microsoft/applicationinsights-dependencies-js": "2.8.6", - "@microsoft/applicationinsights-properties-js": "2.8.6", - "@microsoft/applicationinsights-shims": "2.0.1", - "@microsoft/dynamicproto-js": "^1.1.6" + "@microsoft/applicationinsights-analytics-js": "2.5.10", + "@microsoft/applicationinsights-channel-js": "2.5.10", + "@microsoft/applicationinsights-common": "2.5.10", + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-dependencies-js": "2.5.10", + "@microsoft/applicationinsights-properties-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + }, + "dependencies": { + "@microsoft/applicationinsights-common": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.5.10.tgz", + "integrity": "sha512-5PKfFXAphA21qeUe0fcUYUi7e4UyN9EEddji1uHophJl0x4/xGWsSo/t4y30a4yd2h0X3sY2BpXUcRjK+abvNA==", + "requires": { + "@microsoft/applicationinsights-core-js": "2.5.10", + "@microsoft/applicationinsights-shims": "1.0.3" + } + }, + "@microsoft/applicationinsights-core-js": { + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.5.10.tgz", + "integrity": "sha512-Ie6bTfpiqXMxmt2b1qTdkpwhGmKl9w2aMMOh0cKOR3QDSK3UifrAMTcJ2gjlHV2CZSb9ib5FGcuLWcMV82OvmA==", + "requires": { + "@microsoft/applicationinsights-shims": "1.0.3", + "@microsoft/dynamicproto-js": "^1.1.0" + } + }, + "@microsoft/applicationinsights-shims": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-1.0.3.tgz", + "integrity": "sha512-+S17aqEkOYpyBpmclhgwcEplwnxSo5AxYBdRg38GBobI1GKPSpZfnLssLzcjJ6XZCS5tqB5xjyTZs6gHj7ZJWQ==" + } } }, "@microsoft/dynamicproto-js": { diff --git a/package.json b/package.json index 743c811..4becc1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "viva-connections-company-communicator", - "version": "1.0.1", + "version": "1.0.2", "private": true, "main": "lib/index.js", "scripts": { @@ -10,11 +10,12 @@ }, "dependencies": { "@microsoft/applicationinsights-react-js": "^3.0.5", - "@microsoft/applicationinsights-web": "^2.8.6", + "@microsoft/applicationinsights-web": "^2.5.10", "@microsoft/sp-adaptive-card-extension-base": "1.15.2", "@microsoft/sp-core-library": "1.15.2", "@microsoft/sp-property-pane": "1.15.2", "@pnp/logging": "^3.0.3", + "history": "^4.10.1", "tslib": "2.3.1" }, "devDependencies": { diff --git a/src/service/analytics/AppInsightsTelemetryTracker.ts b/src/service/analytics/AppInsightsTelemetryTracker.ts index c428d9e..ec02082 100644 --- a/src/service/analytics/AppInsightsTelemetryTracker.ts +++ b/src/service/analytics/AppInsightsTelemetryTracker.ts @@ -4,12 +4,12 @@ import { ILogListener, ILogEntry } from "@pnp/logging"; -import { ApplicationInsights, SeverityLevel } from '@microsoft/applicationinsights-web'; +import { ApplicationInsights, ITelemetryPlugin, SeverityLevel } from '@microsoft/applicationinsights-web'; import { ReactPlugin } from '@microsoft/applicationinsights-react-js'; import { createBrowserHistory } from "history"; const APP_NAME = 'COMPANY_COMMUNICATOR_ACE'; -const APP_VERSION = '1.0.1'; +const APP_VERSION = '1.0.2'; export class AppInsightsTelemetryTracker implements ILogListener { private static appInsightsInstance: ApplicationInsights; @@ -82,6 +82,7 @@ export class AppInsightsTelemetryTracker implements ILogListener { private static initializeAI(instrumentationKey?: string): ApplicationInsights { const browserHistory = createBrowserHistory({ basename: '' }); AppInsightsTelemetryTracker.reactPluginInstance = new ReactPlugin(); + const plugin: ITelemetryPlugin = AppInsightsTelemetryTracker.reactPluginInstance as unknown as ITelemetryPlugin; const appInsights = new ApplicationInsights({ config: { maxBatchInterval: 0, @@ -89,7 +90,7 @@ export class AppInsightsTelemetryTracker implements ILogListener { namePrefix: AppInsightsTelemetryTracker.BaseProperties.CustomProps.App_Name, disableFetchTracking: false, disableAjaxTracking: true, - extensions: [AppInsightsTelemetryTracker.reactPluginInstance], + extensions: [plugin], extensionConfig: { [AppInsightsTelemetryTracker.reactPluginInstance.identifier]: { history: browserHistory } }