From 5bd9337728f4a70ffccc4fd2137e3ed0da1c828e Mon Sep 17 00:00:00 2001 From: Alex Terentiev Date: Fri, 29 Oct 2021 08:59:24 -0700 Subject: [PATCH] pnpjs update, solution version --- samples/react-kanban-board/README.md | 3 +- .../config/package-solution.json | 2 +- samples/react-kanban-board/package-lock.json | 426 ++---------------- samples/react-kanban-board/package.json | 13 +- .../kanbanBoard/KanbanBoardWebPart.ts | 5 +- .../kanbanBoard/services/MockKanbanService.ts | 2 - .../kanbanBoard/services/SPKanbanService.ts | 12 +- 7 files changed, 51 insertions(+), 412 deletions(-) diff --git a/samples/react-kanban-board/README.md b/samples/react-kanban-board/README.md index 59b05a9e8..17516a4b6 100644 --- a/samples/react-kanban-board/README.md +++ b/samples/react-kanban-board/README.md @@ -26,7 +26,7 @@ The web part uses the default columns of the SharePoint Tasks list for showing t ## Used SharePoint Framework Version -![1.10.0](https://img.shields.io/badge/version-1.10.0-green.svg) +![1.13.0](https://img.shields.io/badge/version-1.13.0-green.svg) ## Applies to @@ -60,6 +60,7 @@ Version|Date|Comments 1.0.0.0|July 17, 2019|Initial release 1.0.1.0|April 21, 2020|Added support for Teams hosts 2.0.0.0|July 10, 2020| jqwidgets replaced with a custom Kanban Board based on Office UI Component and IE11 Support +3.0.0.0|October 29, 2021| SPFx 1.13, PnPJS v2, PnP Controls v3 [Read More about the implementation of this Board](./src/kanban/README.md) diff --git a/samples/react-kanban-board/config/package-solution.json b/samples/react-kanban-board/config/package-solution.json index e477ef1b9..1b24c81d1 100644 --- a/samples/react-kanban-board/config/package-solution.json +++ b/samples/react-kanban-board/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "react-kanban-board-client-side-solution", "id": "cccbd72b-7b89-4128-9348-0a4850ded8fd", - "version": "2.0.0.0", + "version": "3.0.0.0", "includeClientSideAssets": true, "skipFeatureDeployment": true, "isDomainIsolated": false, diff --git a/samples/react-kanban-board/package-lock.json b/samples/react-kanban-board/package-lock.json index 5ef216c0f..accc17f1f 100644 --- a/samples/react-kanban-board/package-lock.json +++ b/samples/react-kanban-board/package-lock.json @@ -5086,15 +5086,15 @@ "tslib": "1.10.0" } }, - "@pnp/polyfill-ie11": { - "version": "2.0.2", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/polyfill-ie11/-/polyfill-ie11-2.0.2.tgz", - "integrity": "sha1-8ysoX2MBt0O7+kHNabGuDX95uDk=", + "@pnp/sp": { + "version": "2.10.0", + "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/sp/-/sp-2.10.0.tgz", + "integrity": "sha1-+qVjpDjeqNLOFZLAjwEFnP1QZBk=", "requires": { - "@pnp/sp": "^2.0.0", - "core-js": "3.6.5", - "es6-map": "0.1.5", - "whatwg-fetch": "3.0.0" + "@pnp/common": "2.10.0", + "@pnp/logging": "2.10.0", + "@pnp/odata": "2.10.0", + "tslib": "2.3.0" }, "dependencies": { "@pnp/common": { @@ -5123,37 +5123,13 @@ "tslib": "2.3.0" } }, - "@pnp/sp": { - "version": "2.10.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/sp/-/sp-2.10.0.tgz", - "integrity": "sha1-+qVjpDjeqNLOFZLAjwEFnP1QZBk=", - "requires": { - "@pnp/common": "2.10.0", - "@pnp/logging": "2.10.0", - "@pnp/odata": "2.10.0", - "tslib": "2.3.0" - } - }, "tslib": { "version": "2.3.0", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/tslib/-/tslib-2.3.0.tgz", "integrity": "sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4=" - }, - "whatwg-fetch": { - "version": "3.0.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", - "integrity": "sha1-/IBORYzEYACbGiuWa8iBfSV4rvs=" } } }, - "@pnp/sp": { - "version": "1.3.11", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/sp/-/sp-1.3.11.tgz", - "integrity": "sha1-iwuANRRn1qc+eLnlG8c5PTl7cyg=", - "requires": { - "tslib": "1.10.0" - } - }, "@pnp/sp-clientsvc": { "version": "1.3.11", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/sp-clientsvc/-/sp-clientsvc-1.3.11.tgz", @@ -5269,14 +5245,15 @@ } }, "@pnp/spfx-property-controls": { - "version": "3.3.0-beta.f0b8f92", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/spfx-property-controls/-/spfx-property-controls-3.3.0-beta.f0b8f92.tgz", - "integrity": "sha1-Lf8dpxDtZ9zEAcwrPQcqairkxr4=", + "version": "3.3.0-beta.d48002e", + "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/spfx-property-controls/-/spfx-property-controls-3.3.0-beta.d48002e.tgz", + "integrity": "sha1-jn0eEQu9JNmpGF9QpImFkp/67mQ=", "requires": { - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-office-ui-fabric-core": "1.12.1", - "@microsoft/sp-webpart-base": "1.12.1", + "@microsoft/sp-core-library": "1.13.0", + "@microsoft/sp-lodash-subset": "1.13.0", + "@microsoft/sp-office-ui-fabric-core": "1.13.0", + "@microsoft/sp-property-pane": "1.13.0", + "@microsoft/sp-webpart-base": "1.13.0", "@pnp/common": "1.3.11", "@pnp/logging": "1.3.11", "@pnp/odata": "1.3.11", @@ -5287,234 +5264,18 @@ "@uifabric/icons": "7.5.17", "lodash.omit": "4.5.0", "markdown-to-jsx": "^6.11.4", - "office-ui-fabric-react": "7.156.0", - "react": "16.9.0", + "office-ui-fabric-react": "7.174.1", + "react": "16.13.1", "react-ace": "5.8.0", - "react-dom": "16.9.0" + "react-dom": "16.13.1" }, "dependencies": { - "@microsoft/office-ui-fabric-react-bundle": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/office-ui-fabric-react-bundle/-/office-ui-fabric-react-bundle-1.12.1.tgz", - "integrity": "sha1-kx+hg5ltR+Wv+Cdd8rBw9iZNfTE=", + "@pnp/sp": { + "version": "1.3.11", + "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@pnp/sp/-/sp-1.3.11.tgz", + "integrity": "sha1-iwuANRRn1qc+eLnlG8c5PTl7cyg=", "requires": { - "@uifabric/icons": "7.5.18", - "office-ui-fabric-react": "7.156.0", - "react": "16.9.0", - "react-dom": "16.9.0", - "tslib": "~1.10.0" - }, - "dependencies": { - "@uifabric/icons": { - "version": "7.5.18", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@uifabric/icons/-/icons-7.5.18.tgz", - "integrity": "sha1-9Qwc6HbDXuj+qwjbrud8QGTIN80=", - "requires": { - "@uifabric/set-version": "^7.0.23", - "@uifabric/styling": "^7.16.19", - "tslib": "^1.10.0" - } - } - } - }, - "@microsoft/sp-component-base": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-component-base/-/sp-component-base-1.12.1.tgz", - "integrity": "sha1-0q4yfLa2HkCXggbpuqhe1hPrS+c=", - "requires": { - "@microsoft/office-ui-fabric-react-bundle": "1.12.1", - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-dynamic-data": "1.12.1", - "@microsoft/sp-http": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-module-interfaces": "1.12.1", - "@microsoft/sp-page-context": "1.12.1", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-core-library": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-core-library/-/sp-core-library-1.12.1.tgz", - "integrity": "sha1-CfBkupnJHS0Ly+PeU1id+yglKhA=", - "requires": { - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-module-interfaces": "1.12.1", - "@microsoft/sp-odata-types": "1.12.1", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-diagnostics": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-diagnostics/-/sp-diagnostics-1.12.1.tgz", - "integrity": "sha1-Nrg2J+cqQA6sL2zoedPMuD5t3rU=", - "requires": { - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1" - } - }, - "@microsoft/sp-dynamic-data": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-dynamic-data/-/sp-dynamic-data-1.12.1.tgz", - "integrity": "sha1-W6FtcxS+GPic8WRZbXyZolXTiYI=", - "requires": { - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-module-interfaces": "1.12.1", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-http": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-http/-/sp-http-1.12.1.tgz", - "integrity": "sha1-idJznd1AmCTBcNb/twp2AmmfslY=", - "requires": { - "@microsoft/microsoft-graph-client": "~1.1.0", - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@types/adal-angular": "1.0.1", - "adal-angular": "1.0.16", - "msal": "1.4.0", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-loader": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-loader/-/sp-loader-1.12.1.tgz", - "integrity": "sha1-viQrq/aqYcwffNZWh7r+fA28svY=", - "requires": { - "@microsoft/office-ui-fabric-react-bundle": "1.12.1", - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-dynamic-data": "1.12.1", - "@microsoft/sp-http": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-module-interfaces": "1.12.1", - "@microsoft/sp-odata-types": "1.12.1", - "@microsoft/sp-page-context": "1.12.1", - "@microsoft/sp-polyfills": "1.12.1", - "@rushstack/loader-raw-script": "1.3.113", - "@types/requirejs": "2.1.29", - "office-ui-fabric-react": "7.156.0", - "raw-loader": "~0.5.1", - "react": "16.9.0", - "react-dom": "16.9.0", - "requirejs": "2.3.6", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-lodash-subset": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-lodash-subset/-/sp-lodash-subset-1.12.1.tgz", - "integrity": "sha1-Ha1ESNHuRFZjVSUaYQY3oUGzN2E=", - "requires": { - "@types/lodash": "4.14.117", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-module-interfaces": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-module-interfaces/-/sp-module-interfaces-1.12.1.tgz", - "integrity": "sha1-zaHRrNV2TsIXclxj2vabpNu9ptE=", - "requires": { - "@types/z-schema": "3.16.31", - "z-schema": "~3.18.3" - } - }, - "@microsoft/sp-odata-types": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-odata-types/-/sp-odata-types-1.12.1.tgz", - "integrity": "sha1-g5ri8lFlFCOrVYldMlolmmD8QEk=", - "requires": { - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-office-ui-fabric-core": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-office-ui-fabric-core/-/sp-office-ui-fabric-core-1.12.1.tgz", - "integrity": "sha1-lx85MEgiIikRg4c23SLLUyjiJE0=", - "requires": { - "office-ui-fabric-core": "9.6.1-fluent2", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-page-context": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-page-context/-/sp-page-context-1.12.1.tgz", - "integrity": "sha1-qVqkSruk10Tf5D3kji3Nb2B8cOA=", - "requires": { - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-dynamic-data": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-odata-types": "1.12.1", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-polyfills": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-polyfills/-/sp-polyfills-1.12.1.tgz", - "integrity": "sha1-D00zxIJT3Ajeo6VmF7Mr5jnV3JA=", - "requires": { - "es6-promise": "4.2.4", - "es6-symbol": "3.1.3", - "tslib": "~1.10.0", - "whatwg-fetch": "2.0.3", - "whatwg-url": "4.7.1" - } - }, - "@microsoft/sp-property-pane": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-property-pane/-/sp-property-pane-1.12.1.tgz", - "integrity": "sha1-nH0LXtHoDK0BoUjyJHAoU1Lj7W0=", - "requires": { - "@microsoft/office-ui-fabric-react-bundle": "1.12.1", - "@microsoft/sp-component-base": "1.12.1", - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-dynamic-data": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "office-ui-fabric-react": "7.156.0", - "react": "16.9.0", - "react-dom": "16.9.0", - "tslib": "~1.10.0" - } - }, - "@microsoft/sp-webpart-base": { - "version": "1.12.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/sp-webpart-base/-/sp-webpart-base-1.12.1.tgz", - "integrity": "sha1-gVNJuHsB2MnWS2xfQnqsEOTqjBM=", - "requires": { - "@microsoft/sp-component-base": "1.12.1", - "@microsoft/sp-core-library": "1.12.1", - "@microsoft/sp-diagnostics": "1.12.1", - "@microsoft/sp-dynamic-data": "1.12.1", - "@microsoft/sp-http": "1.12.1", - "@microsoft/sp-loader": "1.12.1", - "@microsoft/sp-lodash-subset": "1.12.1", - "@microsoft/sp-module-interfaces": "1.12.1", - "@microsoft/sp-page-context": "1.12.1", - "@microsoft/sp-property-pane": "1.12.1", - "@microsoft/teams-js": "1.8.0", - "@types/office-js": "1.0.36", - "office-ui-fabric-react": "7.156.0", - "react": "16.9.0", - "react-dom": "16.9.0", - "tslib": "~1.10.0" - } - }, - "@microsoft/teams-js": { - "version": "1.8.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@microsoft/teams-js/-/teams-js-1.8.0.tgz", - "integrity": "sha1-CZDMBEel8tVsXzwgIY85b9vDxhA=" - }, - "@rushstack/loader-raw-script": { - "version": "1.3.113", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@rushstack/loader-raw-script/-/loader-raw-script-1.3.113.tgz", - "integrity": "sha1-bplFiLrZHgoQCci+2Ia6gm8IlIc=", - "requires": { - "loader-utils": "~1.1.0" + "tslib": "1.10.0" } }, "@uifabric/icons": { @@ -5526,86 +5287,6 @@ "@uifabric/styling": "^7.16.18", "tslib": "^1.10.0" } - }, - "es6-promise": { - "version": "4.2.4", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-promise/-/es6-promise-4.2.4.tgz", - "integrity": "sha1-3EIhwrFlGHYL2MOaUtjzVvwA7Sk=" - }, - "msal": { - "version": "1.4.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/msal/-/msal-1.4.0.tgz", - "integrity": "sha1-fm4FOozT/VtpPi+VBHN/DCsSGdQ=", - "requires": { - "tslib": "^1.9.3" - } - }, - "office-ui-fabric-react": { - "version": "7.156.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/office-ui-fabric-react/-/office-ui-fabric-react-7.156.0.tgz", - "integrity": "sha1-KMmZqPl8yMNL1SW4ODN6vSVffMU=", - "requires": { - "@fluentui/date-time-utilities": "^7.9.0", - "@fluentui/react-focus": "^7.17.1", - "@fluentui/react-window-provider": "^1.0.1", - "@microsoft/load-themed-styles": "^1.10.26", - "@uifabric/foundation": "^7.9.21", - "@uifabric/icons": "^7.5.18", - "@uifabric/merge-styles": "^7.19.1", - "@uifabric/react-hooks": "^7.13.9", - "@uifabric/set-version": "^7.0.23", - "@uifabric/styling": "^7.16.19", - "@uifabric/utilities": "^7.33.2", - "prop-types": "^15.7.2", - "tslib": "^1.10.0" - }, - "dependencies": { - "@uifabric/icons": { - "version": "7.6.2", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@uifabric/icons/-/icons-7.6.2.tgz", - "integrity": "sha1-B7Q5+4lOQdibqwdDUSsrHrv7pGs=", - "requires": { - "@uifabric/set-version": "^7.0.24", - "@uifabric/styling": "^7.20.0", - "tslib": "^1.10.0" - } - } - } - }, - "react": { - "version": "16.9.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/react/-/react-16.9.0.tgz", - "integrity": "sha1-QLovmvE7waONddvy9DWaUYXE96o=", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" - } - }, - "react-dom": { - "version": "16.9.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/react-dom/-/react-dom-16.9.0.tgz", - "integrity": "sha1-XmVSel4m8irjcBExvMyu6fsNOWI=", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2", - "scheduler": "^0.15.0" - } - }, - "scheduler": { - "version": "0.15.0", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/scheduler/-/scheduler-0.15.0.tgz", - "integrity": "sha1-a/z4D/hQsoD+1K7sxlE7wLTxf44=", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "whatwg-fetch": { - "version": "2.0.3", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz", - "integrity": "sha1-nITsLc9oGH/wC8ZOEnS0QhduHIQ=" } } }, @@ -6941,6 +6622,15 @@ } } }, + "@types/react-dom": { + "version": "16.9.8", + "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@types/react-dom/-/react-dom-16.9.8.tgz", + "integrity": "sha1-/kweEd/GcVVzPfpqplEItJcctCM=", + "dev": true, + "requires": { + "@types/react": "*" + } + }, "@types/react-mentions": { "version": "4.1.5", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/@types/react-mentions/-/react-mentions-4.1.5.tgz", @@ -9912,11 +9602,6 @@ } } }, - "core-js": { - "version": "3.6.5", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/core-js/-/core-js-3.6.5.tgz", - "integrity": "sha1-c5XcJzrzf7LlDpvT2f6EEoUjHRo=" - }, "core-util-is": { "version": "1.0.3", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/core-util-is/-/core-util-is-1.0.3.tgz", @@ -11225,47 +10910,11 @@ "es6-symbol": "^3.1.1" } }, - "es6-map": { - "version": "0.1.5", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-map/-/es6-map-0.1.5.tgz", - "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-set": "~0.1.5", - "es6-symbol": "~3.1.1", - "event-emitter": "~0.3.5" - } - }, "es6-promise": { "version": "4.2.8", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-promise/-/es6-promise-4.2.8.tgz", "integrity": "sha1-TrIVlMlyvEBVPSduUQU5FD21Pgo=" }, - "es6-set": { - "version": "0.1.5", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-set/-/es6-set-0.1.5.tgz", - "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-symbol": "3.1.1", - "event-emitter": "~0.3.5" - }, - "dependencies": { - "es6-symbol": { - "version": "3.1.1", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-symbol/-/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - } - } - }, "es6-symbol": { "version": "3.1.3", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/es6-symbol/-/es6-symbol-3.1.3.tgz", @@ -11643,15 +11292,6 @@ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "dev": true }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, "event-stream": { "version": "3.3.5", "resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/event-stream/-/event-stream-3.3.5.tgz", diff --git a/samples/react-kanban-board/package.json b/samples/react-kanban-board/package.json index f7dc5d344..1805e0d23 100644 --- a/samples/react-kanban-board/package.json +++ b/samples/react-kanban-board/package.json @@ -15,21 +15,13 @@ "@microsoft/sp-office-ui-fabric-core": "1.13.0", "@microsoft/sp-property-pane": "1.13.0", "@microsoft/sp-webpart-base": "1.13.0", - "@pnp/common": "^1.3.3", - "@pnp/logging": "^1.3.3", - "@pnp/odata": "^1.3.3", - "@pnp/polyfill-ie11": "^2.0.2", - "@pnp/sp": "^1.3.3", + "@pnp/sp": "2.10.0", "@pnp/spfx-controls-react": "^3.5.0-beta.2d993b2", "@pnp/spfx-property-controls": "^3.3.0-beta.d48002e", - "classnames": "^2.2.6", "office-ui-fabric-react": "7.174.1", "react": "16.13.1", "react-dom": "16.13.1" }, - "resolutions": { - "@types/react": "16.8.8" - }, "devDependencies": { "@microsoft/rush-stack-compiler-3.7": "0.2.3", "@microsoft/rush-stack-compiler-3.9": "0.4.47", @@ -37,7 +29,8 @@ "@microsoft/sp-module-interfaces": "1.13.0", "@microsoft/sp-tslint-rules": "1.13.0", "@types/react": "16.9.51", - "@types/webpack-env": "^1.13.1", + "@types/react-dom": "16.9.8", + "@types/webpack-env": "1.13.1", "ajv": "~5.2.2", "autoprefixer": "^9.8.4", "gulp": "4.0.2", diff --git a/samples/react-kanban-board/src/webparts/kanbanBoard/KanbanBoardWebPart.ts b/samples/react-kanban-board/src/webparts/kanbanBoard/KanbanBoardWebPart.ts index f62a43d06..554eec6b8 100644 --- a/samples/react-kanban-board/src/webparts/kanbanBoard/KanbanBoardWebPart.ts +++ b/samples/react-kanban-board/src/webparts/kanbanBoard/KanbanBoardWebPart.ts @@ -11,7 +11,6 @@ import { cloneDeep } from '@microsoft/sp-lodash-subset'; import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker'; import { PropertyFieldOrder } from '@pnp/spfx-property-controls/lib/PropertyFieldOrder'; import * as strings from 'KanbanBoardWebPartStrings'; -import "@pnp/polyfill-ie11"; import { sp } from '@pnp/sp'; import PropertyPaneBucketConfigComponent from './components/PropertyPaneBucketConfig'; @@ -106,14 +105,14 @@ export default class KanbanBoardWebPart extends BaseClientSideWebPart { //TODO Check from TS Definition it should be a string but i get a number // with Typesafe equal it fails - if (Environment.type == EnvironmentType.Local || Environment.type == EnvironmentType.Test) { + if (Environment.type == EnvironmentType.Test) { return lists; } else { const alists = lists.filter((l: any) => { diff --git a/samples/react-kanban-board/src/webparts/kanbanBoard/services/MockKanbanService.ts b/samples/react-kanban-board/src/webparts/kanbanBoard/services/MockKanbanService.ts index 9f17d204c..42c7f8e24 100644 --- a/samples/react-kanban-board/src/webparts/kanbanBoard/services/MockKanbanService.ts +++ b/samples/react-kanban-board/src/webparts/kanbanBoard/services/MockKanbanService.ts @@ -1,6 +1,4 @@ import { ISPKanbanService } from "./ISPKanbanService"; -import "@pnp/polyfill-ie11"; -import { sp } from '@pnp/sp'; import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban"; import * as strings from 'KanbanBoardWebPartStrings'; diff --git a/samples/react-kanban-board/src/webparts/kanbanBoard/services/SPKanbanService.ts b/samples/react-kanban-board/src/webparts/kanbanBoard/services/SPKanbanService.ts index 632b84011..1d7b56f2d 100644 --- a/samples/react-kanban-board/src/webparts/kanbanBoard/services/SPKanbanService.ts +++ b/samples/react-kanban-board/src/webparts/kanbanBoard/services/SPKanbanService.ts @@ -1,8 +1,16 @@ import { ISPKanbanService } from "./ISPKanbanService"; -import "@pnp/polyfill-ie11"; import { sp } from '@pnp/sp'; +import '@pnp/sp/webs'; +import '@pnp/sp/lists'; +import '@pnp/sp/items'; +import '@pnp/sp/fields'; import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban"; import * as strings from 'KanbanBoardWebPartStrings'; +import { IFieldInfo } from "@pnp/sp/fields"; + +interface IFieldChoiceInfo extends IFieldInfo { + Choices: string[]; +} export default class SPKanbanService implements ISPKanbanService { @@ -50,7 +58,7 @@ export default class SPKanbanService implements ISPKanbanService { } public getBuckets(listId: string, ): Promise { return sp.web.lists.getById(listId).fields.getByInternalNameOrTitle("Status").get() - .then(status => status.Choices.map((val, index) => { + .then((status: IFieldChoiceInfo) => status.Choices.map((val, index) => { return val; })); }