Merge Refresh Rangers PR - Upgrade to SPFx v1.20.0 (#5275)

* Upgrade to SPFx v1.20.0

* Checked for build errors, updated sample.json
This commit is contained in:
Nishkalank Bezawada 2024-10-11 00:04:19 +02:00 committed by GitHub
parent b78a635fe6
commit d28edb0eb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 13179 additions and 43596 deletions

View File

@ -20,11 +20,12 @@ module.exports = {
'@rushstack/security/no-unsafe-regexp': 1,
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
'@typescript-eslint/adjacent-overload-signatures': 1,
'@typescript-eslint/no-unused-expressions': 0,
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
//
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
'@typescript-eslint/ban-types': [
1,
0,
{
'extendDefaults': false,
'types': {

Binary file not shown.

View File

@ -2,12 +2,12 @@
"@microsoft/generator-sharepoint": {
"plusBeta": false,
"isCreatingSolution": true,
"nodeVersion": "16.18.1",
"nodeVersion": "18.18.2",
"sdksVersions": {
"@microsoft/microsoft-graph-client": "3.0.2",
"@microsoft/teams-js": "2.9.1"
"@microsoft/teams-js": "2.24.0"
},
"version": "1.17.4",
"version": "1.20.0",
"libraryName": "react-manage-hublevel-list-subscriptions",
"libraryId": "e2c0325f-7b70-4738-b4cf-568be2bdf627",
"environment": "spo",

View File

@ -27,8 +27,8 @@ This sample web part demonstrates managing the list subscriptions (sharepoint we
| Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.|
|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |
![SPFx 1.17.4](https://img.shields.io/badge/SPFx-1.17.4-green.svg)
![Node.js v16 | v14](https://img.shields.io/badge/Node.js-v16%20%7C%20v14-green.svg)
![SPFx 1.20.0](https://img.shields.io/badge/SPFx-1.20.0-green.svg)
![Node.js v18](https://img.shields.io/badge/Node.js-v18.18.2-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.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 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")
@ -52,6 +52,10 @@ This web part requires access to lists and libraries to perform renewing the web
- in the command-line run:
- `npm install`
- `gulp serve`
- if you use spfx-fast-serve, in the command-line run:
- `spfx-fast-serve`
- `npm install`
- `npm run serve`
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions.
@ -64,6 +68,7 @@ This web part requires access to lists and libraries to perform renewing the web
Version|Date|Comments
-------|----|--------
1.0|September 9, 2023|Initial release
2.0|October 02, 2024|Initial release
## Help

View File

@ -9,7 +9,7 @@
"This sample web part demonstrates managing the list subscriptions (sharepoint webhooks) and action to renew the webhook expiration date using Rest calls. The webpart is to be added at Hubsite level or the sites associated to the hubsite, on selection of the site, it will list out the lists available. On list/library selection, the available subscriptions is displayed. Depending upon the expiry date of the subscription, 'Renew subscription' action can be performed. The subscription (webhook expiry renewal date) renewal date is set to 179 days, as the default days are 180. "
],
"creationDateTime": "2023-09-01",
"updateDateTime": "2023-09-01",
"updateDateTime": "2024-10-02",
"products": [
"SharePoint",
"WebHooks",
@ -24,7 +24,7 @@
},
{
"key": "SPFX-VERSION",
"value": "1.17.4"
"value": "1.20.0"
}
],
"thumbnails": [

View File

@ -13,4 +13,10 @@ build.rig.getTasks = function () {
return result;
};
/* fast-serve */
const { addFastServe } = require("spfx-fast-serve-helpers");
addFastServe(build);
/* end of fast-serve */
build.initialize(require('gulp'));

File diff suppressed because it is too large Load Diff

View File

@ -3,46 +3,48 @@
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=16.13.0 <17.0.0"
"node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0"
},
"main": "lib/index.js",
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
"test": "gulp test",
"serve": "fast-serve"
},
"dependencies": {
"@fluentui/react": "^7.199.1",
"@microsoft/sp-component-base": "1.17.4",
"@microsoft/sp-core-library": "1.17.4",
"@microsoft/sp-lodash-subset": "1.17.4",
"@microsoft/sp-office-ui-fabric-core": "1.17.4",
"@microsoft/sp-property-pane": "1.17.4",
"@microsoft/sp-webpart-base": "1.17.4",
"@fluentui/react": "8.106.4",
"@microsoft/sp-adaptive-card-extension-base": "1.20.0",
"@microsoft/sp-component-base": "1.20.0",
"@microsoft/sp-core-library": "1.20.0",
"@microsoft/sp-lodash-subset": "1.20.0",
"@microsoft/sp-office-ui-fabric-core": "1.20.0",
"@microsoft/sp-property-pane": "1.20.0",
"@microsoft/sp-webpart-base": "1.20.0",
"@pnp/graph": "^3.17.0",
"@pnp/logging": "^3.17.0",
"@pnp/queryable": "^3.17.0",
"@pnp/sp": "^3.17.0",
"@pnp/spfx-controls-react": "^3.15.0",
"office-ui-fabric-react": "^7.199.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"tslib": "2.3.1"
},
"devDependencies": {
"@microsoft/eslint-config-spfx": "1.17.4",
"@microsoft/eslint-plugin-spfx": "1.17.4",
"@microsoft/rush-stack-compiler-4.5": "0.5.0",
"@microsoft/sp-build-web": "1.17.4",
"@microsoft/sp-module-interfaces": "1.17.4",
"@rushstack/eslint-config": "2.5.1",
"@microsoft/eslint-config-spfx": "1.20.2",
"@microsoft/eslint-plugin-spfx": "1.20.2",
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
"@microsoft/sp-build-web": "1.20.2",
"@microsoft/sp-module-interfaces": "1.20.2",
"@rushstack/eslint-config": "4.0.1",
"@types/react": "17.0.45",
"@types/react-dom": "17.0.17",
"@types/webpack-env": "~1.15.2",
"ajv": "^6.12.5",
"eslint": "8.7.0",
"eslint": "8.57.0",
"eslint-plugin-react-hooks": "4.3.0",
"gulp": "4.0.2",
"typescript": "4.5.5"
"spfx-fast-serve-helpers": "~1.20.0",
"typescript": "4.7.4"
}
}
}

View File

@ -7,7 +7,7 @@ import {
DetailsList, DetailsListLayoutMode, SelectionMode,
IColumn, mergeStyles, Spinner, /*
ProgressIndicator,ITooltipHostStyles,*/ Link
} from 'office-ui-fabric-react';
} from '@fluentui/react';
import { RestService } from '../../Services/RestService';

View File

@ -1,7 +1,7 @@
import { WebPartContext } from "@microsoft/sp-webpart-base";
import {IDropdownOption} from '@fluentui/react';
import { DisplayMode } from '@microsoft/sp-core-library';
import {MessageBarType} from 'office-ui-fabric-react';
import {MessageBarType} from '@fluentui/react';
export interface IManageHublevelSubscriptionsProps {
_context: WebPartContext;

View File

@ -7,13 +7,13 @@ import { IManageHublevelSubscriptionsProps,
from './IManageHublevelSubscriptions';
import {
Spinner
} from 'office-ui-fabric-react';
} from '@fluentui/react';
import { SearchService } from '../../Services/SearchService';
import { RestService } from '../../Services/RestService';
import HubSiteMapper from '../../Mapper/HubSiteMapper';
import SubscriptionDashboard from '../DashboardComponent/SubscriptionDashboard';
import { WebPartTitle } from '@pnp/spfx-controls-react';
import {MessageBar, MessageBarType} from 'office-ui-fabric-react';
import {MessageBar, MessageBarType} from '@fluentui/react';
export default class ReactManageHublevelSubscriptions
extends React.Component<IManageHublevelSubscriptionsProps, IManageHublevelSubscriptionsState> {

View File

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