@microsoft/generator-sharepoint 1.23.0-beta.0 → 1.23.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/dependencies.json +59 -59
- package/lib/templates/dataVisualizationAdaptiveCardExtension/none/quickView/QuickView.ts +2 -1
- package/lib/templates/genericAdaptiveCardExtension/imageCardView/CardView.ts +2 -1
- package/lib/templates/genericAdaptiveCardExtension/none/quickView/QuickView.ts +2 -1
- package/lib/templates/searchAdaptiveCardExtension/none/quickView/ItemQuickView.ts +2 -1
- package/lib/templates/searchAdaptiveCardExtension/none/quickView/SearchResultsQuickView.ts +2 -1
- package/lib/templates/solution/gulp/src/global.d.ts +8 -0
- package/lib/templates/solution/spo/tsconfig.json +2 -0
- package/lib/templates/webpart/none/{componentClassName}.ts +3 -1
- package/lib/templates/webpart/react/components/{componentName}.tsx +3 -1
- package/package.json +3 -3
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.23.0-beta.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.23.0-beta.
|
|
5
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.23.0-beta.2",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.23.0-beta.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.23.0-beta.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.23.0-beta.
|
|
15
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.23.0-beta.2",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.23.0-beta.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.23.0-beta.
|
|
28
|
-
"@microsoft/sp-application-base": "1.23.0-beta.
|
|
27
|
+
"@microsoft/sp-dialog": "1.23.0-beta.2",
|
|
28
|
+
"@microsoft/sp-application-base": "1.23.0-beta.2"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"plusBeta": null
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"applicationCustomizerPlusBeta": {
|
|
34
34
|
"standard": {
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@microsoft/sp-dialog": "1.23.0-beta.
|
|
37
|
-
"@microsoft/sp-application-base": "1.23.0-beta.
|
|
36
|
+
"@microsoft/sp-dialog": "1.23.0-beta.2",
|
|
37
|
+
"@microsoft/sp-application-base": "1.23.0-beta.2"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"plusBeta": null
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"commandSet": {
|
|
43
43
|
"standard": {
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
46
|
-
"@microsoft/sp-dialog": "1.23.0-beta.
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2",
|
|
46
|
+
"@microsoft/sp-dialog": "1.23.0-beta.2"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"plusBeta": null
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"commandSetPlusBeta": {
|
|
52
52
|
"standard": {
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
55
|
-
"@microsoft/sp-dialog": "1.23.0-beta.
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2",
|
|
55
|
+
"@microsoft/sp-dialog": "1.23.0-beta.2"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"plusBeta": null
|
|
@@ -60,27 +60,27 @@
|
|
|
60
60
|
"extension": {
|
|
61
61
|
"standard": {
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
64
|
-
"@microsoft/decorators": "1.23.0-beta.
|
|
63
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
64
|
+
"@microsoft/decorators": "1.23.0-beta.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
73
|
-
"@microsoft/decorators": "1.23.0-beta.
|
|
72
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
73
|
+
"@microsoft/decorators": "1.23.0-beta.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"plusBeta": null
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"fieldCustomizerPlusBeta": {
|
|
89
89
|
"standard": {
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"plusBeta": null
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
"standard": {
|
|
98
98
|
"dependencies": {},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"searchQueryModifier": {
|
|
126
126
|
"standard": {
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@microsoft/sp-search-extensibility": "1.23.0-beta.
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.23.0-beta.2"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"plusBeta": null
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"searchQueryModifierPlusBeta": {
|
|
134
134
|
"standard": {
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@microsoft/sp-search-extensibility": "1.23.0-beta.
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.23.0-beta.2"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"plusBeta": null
|
|
@@ -141,29 +141,29 @@
|
|
|
141
141
|
"webpart": {
|
|
142
142
|
"standard": {
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
145
|
-
"@microsoft/sp-component-base": "1.23.0-beta.
|
|
146
|
-
"@microsoft/sp-property-pane": "1.23.0-beta.
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.23.0-beta.
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.23.0-beta.
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.
|
|
144
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
145
|
+
"@microsoft/sp-component-base": "1.23.0-beta.2",
|
|
146
|
+
"@microsoft/sp-property-pane": "1.23.0-beta.2",
|
|
147
|
+
"@microsoft/sp-webpart-base": "1.23.0-beta.2",
|
|
148
|
+
"@microsoft/sp-lodash-subset": "1.23.0-beta.2",
|
|
149
|
+
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.2"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
152
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2",
|
|
153
153
|
"@fluentui/react": "^8.106.4"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"plusBeta": {
|
|
157
157
|
"dependencies": {
|
|
158
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
159
|
-
"@microsoft/sp-component-base": "1.23.0-beta.
|
|
160
|
-
"@microsoft/sp-property-pane": "1.23.0-beta.
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.23.0-beta.
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.23.0-beta.
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.
|
|
158
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
159
|
+
"@microsoft/sp-component-base": "1.23.0-beta.2",
|
|
160
|
+
"@microsoft/sp-property-pane": "1.23.0-beta.2",
|
|
161
|
+
"@microsoft/sp-webpart-base": "1.23.0-beta.2",
|
|
162
|
+
"@microsoft/sp-lodash-subset": "1.23.0-beta.2",
|
|
163
|
+
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.2"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
166
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -173,10 +173,10 @@
|
|
|
173
173
|
"tslib": "2.3.1"
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
|
-
"@microsoft/eslint-plugin-spfx": "1.23.0-beta.
|
|
177
|
-
"@microsoft/eslint-config-spfx": "1.23.0-beta.
|
|
178
|
-
"@microsoft/spfx-web-build-rig": "1.23.0-beta.
|
|
179
|
-
"@microsoft/spfx-heft-plugins": "1.23.0-beta.
|
|
176
|
+
"@microsoft/eslint-plugin-spfx": "1.23.0-beta.2",
|
|
177
|
+
"@microsoft/eslint-config-spfx": "1.23.0-beta.2",
|
|
178
|
+
"@microsoft/spfx-web-build-rig": "1.23.0-beta.2",
|
|
179
|
+
"@microsoft/spfx-heft-plugins": "1.23.0-beta.2",
|
|
180
180
|
"@rushstack/heft": "1.2.7",
|
|
181
181
|
"@types/heft-jest": "1.0.2",
|
|
182
182
|
"@types/webpack-env": "~1.15.2",
|
|
@@ -195,9 +195,9 @@
|
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@microsoft/rush-stack-compiler-5.3": "0.1.0",
|
|
197
197
|
"@rushstack/eslint-config": "4.3.0",
|
|
198
|
-
"@microsoft/eslint-plugin-spfx": "1.23.0-beta.
|
|
199
|
-
"@microsoft/eslint-config-spfx": "1.23.0-beta.
|
|
200
|
-
"@microsoft/sp-build-web": "1.23.0-beta.
|
|
198
|
+
"@microsoft/eslint-plugin-spfx": "1.23.0-beta.2",
|
|
199
|
+
"@microsoft/eslint-config-spfx": "1.23.0-beta.2",
|
|
200
|
+
"@microsoft/sp-build-web": "1.23.0-beta.2",
|
|
201
201
|
"@types/webpack-env": "~1.15.2",
|
|
202
202
|
"@typescript-eslint/parser": "8.56.1",
|
|
203
203
|
"ajv": "8.18.0",
|
|
@@ -214,24 +214,24 @@
|
|
|
214
214
|
"formCustomizer": {
|
|
215
215
|
"standard": {
|
|
216
216
|
"dependencies": {
|
|
217
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
218
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
219
|
-
"@microsoft/sp-lodash-subset": "1.23.0-beta.
|
|
220
|
-
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.
|
|
217
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
218
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2",
|
|
219
|
+
"@microsoft/sp-lodash-subset": "1.23.0-beta.2",
|
|
220
|
+
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.2"
|
|
221
221
|
},
|
|
222
222
|
"devDependencies": {
|
|
223
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
223
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
"plusBeta": {
|
|
227
227
|
"dependencies": {
|
|
228
|
-
"@microsoft/sp-core-library": "1.23.0-beta.
|
|
229
|
-
"@microsoft/sp-listview-extensibility": "1.23.0-beta.
|
|
230
|
-
"@microsoft/sp-lodash-subset": "1.23.0-beta.
|
|
231
|
-
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.
|
|
228
|
+
"@microsoft/sp-core-library": "1.23.0-beta.2",
|
|
229
|
+
"@microsoft/sp-listview-extensibility": "1.23.0-beta.2",
|
|
230
|
+
"@microsoft/sp-lodash-subset": "1.23.0-beta.2",
|
|
231
|
+
"@microsoft/sp-office-ui-fabric-core": "1.23.0-beta.2"
|
|
232
232
|
},
|
|
233
233
|
"devDependencies": {
|
|
234
|
-
"@microsoft/sp-module-interfaces": "1.23.0-beta.
|
|
234
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView } from '@microsoft/sp-adaptive-card-extension-base';
|
|
2
2
|
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
import template from './template/QuickViewTemplate.json';
|
|
3
4
|
import {
|
|
4
5
|
I<%= componentClassName %>Props,
|
|
5
6
|
I<%= componentClassName %>State
|
|
@@ -23,6 +24,6 @@ export class QuickView extends BaseAdaptiveCardQuickView<
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
public get template(): ISPFxAdaptiveCard {
|
|
26
|
-
return
|
|
27
|
+
return template as ISPFxAdaptiveCard;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
ICardButton
|
|
7
7
|
} from '@microsoft/sp-adaptive-card-extension-base';
|
|
8
8
|
import * as strings from '<%= componentStrings %>';
|
|
9
|
+
import microsoftLogo from '../assets/MicrosoftLogo.png';
|
|
9
10
|
import {
|
|
10
11
|
I<%= componentClassName %>Props,
|
|
11
12
|
I<%= componentClassName %>State,
|
|
@@ -37,7 +38,7 @@ export class CardView extends BaseImageCardView<
|
|
|
37
38
|
public get data(): IImageCardParameters {
|
|
38
39
|
return {
|
|
39
40
|
primaryText: strings.PrimaryText,
|
|
40
|
-
imageUrl:
|
|
41
|
+
imageUrl: microsoftLogo,
|
|
41
42
|
title: this.properties.title
|
|
42
43
|
};
|
|
43
44
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView } from '@microsoft/sp-adaptive-card-extension-base';
|
|
2
2
|
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
import template from './template/QuickViewTemplate.json';
|
|
3
4
|
import {
|
|
4
5
|
I<%= componentClassName %>Props,
|
|
5
6
|
I<%= componentClassName %>State
|
|
@@ -23,6 +24,6 @@ export class QuickView extends BaseAdaptiveCardQuickView<
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
public get template(): ISPFxAdaptiveCard {
|
|
26
|
-
return
|
|
27
|
+
return template as ISPFxAdaptiveCard;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView } from '@microsoft/sp-adaptive-card-extension-base';
|
|
2
2
|
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
import template from './template/ItemQuickViewTemplate.json';
|
|
3
4
|
import {
|
|
4
5
|
I<%= componentClassName %>Props,
|
|
5
6
|
I<%= componentClassName %>State
|
|
@@ -23,6 +24,6 @@ export class ItemQuickView extends BaseAdaptiveCardQuickView<
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
public get template(): ISPFxAdaptiveCard {
|
|
26
|
-
return
|
|
27
|
+
return template as ISPFxAdaptiveCard;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView } from '@microsoft/sp-adaptive-card-extension-base';
|
|
2
2
|
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
import template from './template/SearchResultsQuickViewTemplate.json';
|
|
3
4
|
import {
|
|
4
5
|
I<%= componentClassName %>Props,
|
|
5
6
|
I<%= componentClassName %>State
|
|
@@ -25,6 +26,6 @@ export class SearchResultsQuickView extends BaseAdaptiveCardQuickView<
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
public get template(): ISPFxAdaptiveCard {
|
|
28
|
-
return
|
|
29
|
+
return template as ISPFxAdaptiveCard;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Type declarations for static asset imports used in gulp-based SPFx projects.
|
|
2
|
+
// In heft-based projects, these typings are generated at build time by
|
|
3
|
+
// @rushstack/heft-static-asset-typings-plugin. Gulp projects require them
|
|
4
|
+
// to be declared statically.
|
|
5
|
+
declare module '*.png' {
|
|
6
|
+
const value: string;
|
|
7
|
+
export default value;
|
|
8
|
+
}
|
|
@@ -9,6 +9,8 @@ import { escape } from '@microsoft/sp-lodash-subset';
|
|
|
9
9
|
|
|
10
10
|
import styles from './<%= componentClassName %>.module.scss';
|
|
11
11
|
import * as strings from '<%= componentStrings %>';
|
|
12
|
+
import welcomeDark from './assets/welcome-dark.png';
|
|
13
|
+
import welcomeLight from './assets/welcome-light.png';
|
|
12
14
|
|
|
13
15
|
export interface I<%= componentClassName %>Props {
|
|
14
16
|
description: string;
|
|
@@ -23,7 +25,7 @@ export default class <%= componentClassName %> extends BaseClientSideWebPart<I<%
|
|
|
23
25
|
this.domElement.innerHTML = `
|
|
24
26
|
<section class="${styles.<%= componentNameCamelCase %>} ${!!this.context.sdks.microsoftTeams ? styles.teams : ''}">
|
|
25
27
|
<div class="${styles.welcome}">
|
|
26
|
-
<img alt="" src="${this._isDarkTheme ?
|
|
28
|
+
<img alt="" src="${this._isDarkTheme ? welcomeDark : welcomeLight}" class="${styles.welcomeImage}" />
|
|
27
29
|
<h2>Well done, ${escape(this.context.pageContext.user.displayName)}!</h2>
|
|
28
30
|
<div>${this._environmentMessage}</div>
|
|
29
31
|
<div>Web part property value: <strong>${escape(this.properties.description)}</strong></div>
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import styles from './<%= componentName %>.module.scss';
|
|
3
3
|
import type { I<%= componentName %>Props } from './I<%= componentName %>Props';
|
|
4
4
|
import { escape } from '@microsoft/sp-lodash-subset';
|
|
5
|
+
import welcomeDark from '../assets/welcome-dark.png';
|
|
6
|
+
import welcomeLight from '../assets/welcome-light.png';
|
|
5
7
|
|
|
6
8
|
export default class <%= componentName %> extends React.Component<I<%= componentName %>Props> {
|
|
7
9
|
public render(): React.ReactElement<I<%= componentName %>Props> {
|
|
@@ -16,7 +18,7 @@ export default class <%= componentName %> extends React.Component<I<%= component
|
|
|
16
18
|
return (
|
|
17
19
|
<section className={`${styles.<%= componentNameCamelCase %>} ${hasTeamsContext ? styles.teams : ''}`}>
|
|
18
20
|
<div className={styles.welcome}>
|
|
19
|
-
<img alt="" src={isDarkTheme ?
|
|
21
|
+
<img alt="" src={isDarkTheme ? welcomeDark : welcomeLight} className={styles.welcomeImage} />
|
|
20
22
|
<h2>Well done, {escape(userDisplayName)}!</h2>
|
|
21
23
|
<div>{environmentMessage}</div>
|
|
22
24
|
<div>Web part property value: <strong>{escape(description)}</strong></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.23.0-beta.
|
|
3
|
+
"version": "1.23.0-beta.2",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"homepage": "http://aka.ms/spfx",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"uuid": "^9.0.0",
|
|
44
44
|
"yeoman-generator": "5.10.0",
|
|
45
45
|
"yosay": "2.0.2",
|
|
46
|
-
"@microsoft/spfx-heft-plugins": "1.23.0-beta.
|
|
46
|
+
"@microsoft/spfx-heft-plugins": "1.23.0-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rushstack/heft": "1.2.7",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@types/yeoman-generator": "5.2.14",
|
|
58
58
|
"@types/yosay": "2.0.0",
|
|
59
59
|
"eslint": "9.37.0",
|
|
60
|
-
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
61
60
|
"@msinternal/internal-node-rig": "0.1.0",
|
|
61
|
+
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
62
62
|
"@msinternal/sp-teams-lib": "0.25.4"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|