@microsoft/generator-sharepoint 1.22.2 → 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 +65 -67
- package/lib/generators/component/BaseComponentGenerator.js +5 -1
- package/lib/generators/solution/heft.package.json +2 -2
- package/lib/generators/solution/non-heft.package.json +2 -2
- package/lib/templates/component/{eslint → eslint-gulp}/.eslintrc.js +15 -13
- package/lib/templates/component/eslint-heft/eslint.config.js +14 -0
- 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 +15 -16
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
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.
|
|
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.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
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.
|
|
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.
|
|
28
|
-
"@microsoft/sp-application-base": "1.
|
|
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.
|
|
37
|
-
"@microsoft/sp-application-base": "1.
|
|
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.
|
|
46
|
-
"@microsoft/sp-dialog": "1.
|
|
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.
|
|
55
|
-
"@microsoft/sp-dialog": "1.
|
|
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.
|
|
64
|
-
"@microsoft/decorators": "1.
|
|
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.
|
|
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.
|
|
73
|
-
"@microsoft/decorators": "1.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@types/react": "17.0.45",
|
|
119
119
|
"@types/react-dom": "17.0.17",
|
|
120
|
-
"eslint-plugin-react-hooks": "
|
|
120
|
+
"eslint-plugin-react-hooks": "5.2.0"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"plusBeta": null
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"searchQueryModifier": {
|
|
126
126
|
"standard": {
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@microsoft/sp-search-extensibility": "1.
|
|
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.
|
|
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.
|
|
145
|
-
"@microsoft/sp-component-base": "1.
|
|
146
|
-
"@microsoft/sp-property-pane": "1.
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
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.
|
|
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.
|
|
159
|
-
"@microsoft/sp-component-base": "1.
|
|
160
|
-
"@microsoft/sp-property-pane": "1.
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
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.
|
|
166
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -173,17 +173,15 @@
|
|
|
173
173
|
"tslib": "2.3.1"
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
|
-
"@
|
|
177
|
-
"@microsoft/eslint-
|
|
178
|
-
"@microsoft/
|
|
179
|
-
"@microsoft/spfx-
|
|
180
|
-
"@
|
|
181
|
-
"@rushstack/heft": "1.1.2",
|
|
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
|
+
"@rushstack/heft": "1.2.7",
|
|
182
181
|
"@types/heft-jest": "1.0.2",
|
|
183
182
|
"@types/webpack-env": "~1.15.2",
|
|
184
|
-
"@typescript-eslint/parser": "8.46.2",
|
|
185
183
|
"css-loader": "~7.1.2",
|
|
186
|
-
"eslint": "
|
|
184
|
+
"eslint": "9.37.0",
|
|
187
185
|
"typescript": "~5.8.0"
|
|
188
186
|
}
|
|
189
187
|
},
|
|
@@ -196,13 +194,13 @@
|
|
|
196
194
|
},
|
|
197
195
|
"devDependencies": {
|
|
198
196
|
"@microsoft/rush-stack-compiler-5.3": "0.1.0",
|
|
199
|
-
"@rushstack/eslint-config": "4.
|
|
200
|
-
"@microsoft/eslint-plugin-spfx": "1.
|
|
201
|
-
"@microsoft/eslint-config-spfx": "1.
|
|
202
|
-
"@microsoft/sp-build-web": "1.
|
|
197
|
+
"@rushstack/eslint-config": "4.3.0",
|
|
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",
|
|
203
201
|
"@types/webpack-env": "~1.15.2",
|
|
204
|
-
"@typescript-eslint/parser": "8.
|
|
205
|
-
"ajv": "
|
|
202
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
203
|
+
"ajv": "8.18.0",
|
|
206
204
|
"eslint": "8.57.0",
|
|
207
205
|
"gulp": "4.0.2",
|
|
208
206
|
"typescript": "~5.3.3"
|
|
@@ -216,24 +214,24 @@
|
|
|
216
214
|
"formCustomizer": {
|
|
217
215
|
"standard": {
|
|
218
216
|
"dependencies": {
|
|
219
|
-
"@microsoft/sp-core-library": "1.
|
|
220
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
221
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
222
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
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"
|
|
223
221
|
},
|
|
224
222
|
"devDependencies": {
|
|
225
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
223
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
226
224
|
}
|
|
227
225
|
},
|
|
228
226
|
"plusBeta": {
|
|
229
227
|
"dependencies": {
|
|
230
|
-
"@microsoft/sp-core-library": "1.
|
|
231
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
232
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
233
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
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"
|
|
234
232
|
},
|
|
235
233
|
"devDependencies": {
|
|
236
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
234
|
+
"@microsoft/sp-module-interfaces": "1.23.0-beta.2"
|
|
237
235
|
}
|
|
238
236
|
}
|
|
239
237
|
}
|
|
@@ -213,7 +213,11 @@ class BaseComponentGenerator extends _BaseGenerator.BaseGenerator {
|
|
|
213
213
|
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
214
214
|
}
|
|
215
215
|
// we need to write the eslint config anyway
|
|
216
|
-
|
|
216
|
+
if (_YeomanConfiguration.YeomanConfiguration.useGulp) {
|
|
217
|
+
this.copyTemplate(_nodepath.join(`${__dirname}/../../templates/component`, 'eslint-gulp'), this.destinationRoot());
|
|
218
|
+
} else {
|
|
219
|
+
this.copyTemplate(_nodepath.join(`${__dirname}/../../templates/component`, 'eslint-heft'), this.destinationRoot());
|
|
220
|
+
}
|
|
217
221
|
}
|
|
218
222
|
install() {
|
|
219
223
|
if (!this.tryInstall()) {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "heft test --clean --production && heft package-solution --production",
|
|
10
|
-
"start": "heft start --clean",
|
|
11
10
|
"clean": "heft clean",
|
|
12
|
-
"eject-webpack": "heft eject-webpack"
|
|
11
|
+
"eject-webpack": "heft eject-webpack",
|
|
12
|
+
"start": "heft start --clean"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
require('@rushstack/eslint-config/patch/modern-module-resolution');
|
|
2
2
|
module.exports = {
|
|
3
3
|
extends: ['@microsoft/eslint-config-spfx/lib/profiles/<%= eslintProfile %>'],
|
|
4
|
-
|
|
4
|
+
parserOptions: {
|
|
5
|
+
tsconfigRootDir: __dirname
|
|
6
|
+
},
|
|
5
7
|
overrides: [
|
|
6
8
|
{
|
|
7
|
-
files: ['
|
|
9
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
8
10
|
parser: '@typescript-eslint/parser',
|
|
9
11
|
'parserOptions': {
|
|
10
12
|
'project': './tsconfig.json',
|
|
@@ -298,22 +300,22 @@ module.exports = {
|
|
|
298
300
|
{
|
|
299
301
|
// For unit tests, we can be a little bit less strict. The settings below revise the
|
|
300
302
|
// defaults specified in the extended configurations, as well as above.
|
|
301
|
-
files:
|
|
303
|
+
files: [
|
|
302
304
|
// Test files
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
305
|
+
'**/*.test.ts',
|
|
306
|
+
'**/*.test.tsx',
|
|
307
|
+
'**/*.spec.ts',
|
|
308
|
+
'**/*.spec.tsx',
|
|
307
309
|
|
|
308
310
|
// Facebook convention
|
|
309
|
-
'**/__mocks__
|
|
310
|
-
'**/__mocks__
|
|
311
|
-
'**/__tests__
|
|
312
|
-
'**/__tests__
|
|
311
|
+
'**/__mocks__/**/*.ts',
|
|
312
|
+
'**/__mocks__/**/*.tsx',
|
|
313
|
+
'**/__tests__/**/*.ts',
|
|
314
|
+
'**/__tests__/**/*.tsx',
|
|
313
315
|
|
|
314
316
|
// Microsoft convention
|
|
315
|
-
'**/test
|
|
316
|
-
'**/test
|
|
317
|
+
'**/test/**/*.ts',
|
|
318
|
+
'**/test/**/*.tsx'
|
|
317
319
|
],
|
|
318
320
|
rules: {}
|
|
319
321
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const spfxProfile = require('@microsoft/eslint-config-spfx/lib/flat-profiles/<%= eslintProfile %>');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
...spfxProfile,
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
7
|
+
languageOptions: {
|
|
8
|
+
parserOptions: {
|
|
9
|
+
tsconfigRootDir: __dirname,
|
|
10
|
+
project: './tsconfig.json'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
];
|
|
@@ -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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0-beta.2",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
|
-
"
|
|
6
|
-
"node": ">=22.14.0 < 23.0.0"
|
|
7
|
-
},
|
|
5
|
+
"homepage": "http://aka.ms/spfx",
|
|
8
6
|
"keywords": [
|
|
9
7
|
"yeoman-generator"
|
|
10
8
|
],
|
|
11
9
|
"license": "https://aka.ms/spfx/license",
|
|
12
|
-
"
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.14.0 < 23.0.0"
|
|
12
|
+
},
|
|
13
13
|
"main": "lib/generators/app/index.js",
|
|
14
14
|
"module": "lib-esm/generators/app/index.js",
|
|
15
15
|
"typings": "lib-dts/generators/app/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@rushstack/node-core-library": "5.
|
|
38
|
-
"@rushstack/terminal": "0.
|
|
37
|
+
"@rushstack/node-core-library": "5.20.3",
|
|
38
|
+
"@rushstack/terminal": "0.22.3",
|
|
39
39
|
"colors": "~1.2.1",
|
|
40
40
|
"lodash": "4.17.23",
|
|
41
41
|
"mem-fs": "^4.1.2",
|
|
@@ -43,12 +43,12 @@
|
|
|
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.
|
|
46
|
+
"@microsoft/spfx-heft-plugins": "1.23.0-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@rushstack/heft": "1.
|
|
50
|
-
"@rushstack/heft-isolated-typescript-transpile-plugin": "1.
|
|
51
|
-
"@rushstack/heft-typescript-plugin": "1.
|
|
49
|
+
"@rushstack/heft": "1.2.7",
|
|
50
|
+
"@rushstack/heft-isolated-typescript-transpile-plugin": "1.2.7",
|
|
51
|
+
"@rushstack/heft-typescript-plugin": "1.3.2",
|
|
52
52
|
"@types/heft-jest": "1.0.2",
|
|
53
53
|
"@types/inquirer": "7.3.1",
|
|
54
54
|
"@types/lodash": "4.14.117",
|
|
@@ -56,17 +56,16 @@
|
|
|
56
56
|
"@types/uuid": "9.0.1",
|
|
57
57
|
"@types/yeoman-generator": "5.2.14",
|
|
58
58
|
"@types/yosay": "2.0.0",
|
|
59
|
-
"eslint": "
|
|
60
|
-
"mem-fs-editor": "^11.1.4",
|
|
61
|
-
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
59
|
+
"eslint": "9.37.0",
|
|
62
60
|
"@msinternal/internal-node-rig": "0.1.0",
|
|
63
|
-
"@msinternal/
|
|
61
|
+
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
62
|
+
"@msinternal/sp-teams-lib": "0.25.4"
|
|
64
63
|
},
|
|
65
64
|
"scripts": {
|
|
66
65
|
"build": "heft test --clean",
|
|
67
66
|
"clean": "heft clean",
|
|
68
|
-
"test": "heft run --only test",
|
|
69
67
|
"start": "heft build-watch",
|
|
68
|
+
"test": "heft run --only test",
|
|
70
69
|
"test-watch": "heft test-watch",
|
|
71
70
|
"_phase:depscan": "heft depscan",
|
|
72
71
|
"_phase:test": "heft run --only test -- --clean",
|