Skip to content

Commit

Permalink
Samples upgrade to SPFx 1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
s-KaiNet committed Mar 13, 2023
1 parent ad7010a commit 4fb3e84
Show file tree
Hide file tree
Showing 14 changed files with 1,664 additions and 48 deletions.
9 changes: 7 additions & 2 deletions samples/advanced/.yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
"@microsoft/generator-sharepoint": {
"isCreatingSolution": false,
"environment": "spo",
"version": "1.15.0",
"version": "1.16.1",
"libraryName": "fast-serve-advanced-sample",
"libraryId": "bf8d902b-0414-4a7a-992d-d5632b945ff0",
"packageManager": "npm",
"isDomainIsolated": false,
"plusBeta": true,
"componentType": "adaptiveCardExtension",
"templateType": "Image"
"templateType": "Image",
"nodeVersion": "16.17.0",
"sdkVersions": {
"@microsoft/microsoft-graph-client": "3.0.2",
"@microsoft/teams-js": "2.4.1"
}
}
}
3 changes: 3 additions & 0 deletions samples/advanced/config/sass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json"
}
2 changes: 1 addition & 1 deletion samples/advanced/config/serve.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json",
"port": 4321,
"https": true,
"initialPage": "https://localhost:5432/workbench"
Expand Down
38 changes: 19 additions & 19 deletions samples/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
"@fortawesome/fontawesome-svg-core": "6.1.1",
"@fortawesome/free-solid-svg-icons": "6.1.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@microsoft/sp-adaptive-card-extension-base": "1.15.0",
"@microsoft/sp-core-library": "1.15.0",
"@microsoft/sp-http": "1.15.0",
"@microsoft/sp-lodash-subset": "1.15.0",
"@microsoft/sp-office-ui-fabric-core": "1.15.0",
"@microsoft/sp-property-pane": "1.15.0",
"@microsoft/sp-webpart-base": "1.15.0",
"@pnp/sp": "3.4.1",
"@pnp/spfx-controls-react": "3.8.1",
"@microsoft/sp-adaptive-card-extension-base": "1.16.1",
"@microsoft/sp-core-library": "1.16.1",
"@microsoft/sp-http": "1.16.1",
"@microsoft/sp-lodash-subset": "1.16.1",
"@microsoft/sp-office-ui-fabric-core": "1.16.1",
"@microsoft/sp-property-pane": "1.16.1",
"@microsoft/sp-webpart-base": "1.16.1",
"@pnp/sp": "3.12.1",
"@pnp/spfx-controls-react": "3.13.0",
"marked": "2.1.3",
"office-ui-fabric-react": "7.185.7",
"react": "16.13.1",
"react-dom": "16.13.1",
"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.15.0",
"@microsoft/eslint-plugin-spfx": "1.15.0",
"@microsoft/eslint-config-spfx": "1.16.1",
"@microsoft/eslint-plugin-spfx": "1.16.1",
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
"@microsoft/sp-build-web": "1.15.0",
"@microsoft/sp-module-interfaces": "1.15.0",
"@microsoft/sp-build-web": "1.16.1",
"@microsoft/sp-module-interfaces": "1.16.1",
"@rushstack/eslint-config": "2.5.1",
"@types/marked": "^2.0.3",
"@types/react": "16.9.51",
"@types/react-dom": "16.9.8",
"@types/react": "17.0.45",
"@types/react-dom": "17.0.17",
"@types/webpack-env": "1.15.2",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.5",
Expand All @@ -51,6 +51,6 @@
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "4.3.0",
"gulp": "~4.0.2",
"spfx-fast-serve-helpers": "~1.15.3"
"spfx-fast-serve-helpers": "~1.16.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~office-ui-fabric-react/dist/sass/References.scss";
@import "~@fluentui/react/dist/sass/References.scss";

.contextInfo {
.container {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~office-ui-fabric-react/dist/sass/References.scss';
@import '~@fluentui/react/dist/sass/References.scss';

.helloWorld {
.container {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~office-ui-fabric-react/dist/sass/References.scss";
@import "~@fluentui/react/dist/sass/References.scss";

.sampleWebPart {
.img {
Expand Down
378 changes: 374 additions & 4 deletions samples/basic/.eslintrc.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions samples/basic/.yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
"@microsoft/generator-sharepoint": {
"isCreatingSolution": false,
"environment": "spo",
"version": "1.15.0",
"version": "1.16.1",
"libraryName": "basic",
"libraryId": "99057c54-0343-497d-90ae-dbba803e5023",
"packageManager": "npm",
"isDomainIsolated": false,
"componentType": "webpart"
"componentType": "webpart",
"nodeVersion": "16.17.0",
"sdkVersions": {
"@microsoft/microsoft-graph-client": "3.0.2",
"@microsoft/teams-js": "2.4.1"
}
}
}
3 changes: 3 additions & 0 deletions samples/basic/config/sass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json"
}
2 changes: 1 addition & 1 deletion samples/basic/config/serve.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json",
"port": 4321,
"https": true,
"initialPage": "https://localhost:5432/workbench"
Expand Down
30 changes: 15 additions & 15 deletions samples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@
"serve": "gulp bundle --custom-serve --max_old_space_size=4096 && fast-serve"
},
"dependencies": {
"@microsoft/sp-core-library": "1.15.0",
"@microsoft/sp-lodash-subset": "1.15.0",
"@microsoft/sp-office-ui-fabric-core": "1.15.0",
"@microsoft/sp-property-pane": "1.15.0",
"@microsoft/sp-webpart-base": "1.15.0",
"office-ui-fabric-react": "7.185.7",
"react": "16.13.1",
"react-dom": "16.13.1",
"@microsoft/sp-core-library": "1.16.1",
"@microsoft/sp-lodash-subset": "1.16.1",
"@microsoft/sp-office-ui-fabric-core": "1.16.1",
"@microsoft/sp-property-pane": "1.16.1",
"@microsoft/sp-webpart-base": "1.16.1",
"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.15.0",
"@microsoft/eslint-plugin-spfx": "1.15.0",
"@microsoft/eslint-config-spfx": "1.16.1",
"@microsoft/eslint-plugin-spfx": "1.16.1",
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
"@microsoft/sp-build-web": "1.15.0",
"@microsoft/sp-module-interfaces": "1.15.0",
"@microsoft/sp-build-web": "1.16.1",
"@microsoft/sp-module-interfaces": "1.16.1",
"@rushstack/eslint-config": "2.5.1",
"@types/react": "16.9.51",
"@types/react-dom": "16.9.8",
"@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-plugin-react-hooks": "4.3.0",
"gulp": "~4.0.2",
"spfx-fast-serve-helpers": "~1.15.3"
"spfx-fast-serve-helpers": "~1.16.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~office-ui-fabric-react/dist/sass/References.scss';
@import '~@fluentui/react/dist/sass/References.scss';

.basicWebpart {
.container {
Expand Down
Loading

0 comments on commit 4fb3e84

Please sign in to comment.