@microsoft/generator-sharepoint 1.18.0-beta.5 → 1.18.0
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 +62 -62
- package/lib/generators/adaptiveCardExtension/index.d.ts +1 -1
- package/lib/generators/adaptiveCardExtension/index.d.ts.map +1 -1
- package/lib/generators/adaptiveCardExtension/index.js +3 -19
- package/lib/generators/searchAdaptiveCardExtension/templates/none/cardView/CardView.ts +0 -1
- package/lib/generators/solution/heft.package.json +1 -1
- package/lib/generators/solution/non-heft.package.json +1 -1
- package/lib/generators/solution/templates/spo/tsconfig.json +1 -1
- package/lib/generators/webpart/templates/loc/en-us.js +2 -1
- package/lib/generators/webpart/templates/loc/mystrings.d.ts +1 -0
- package/lib/generators/webpart/templates/none/{componentClassName}.ts +2 -1
- package/lib/generators/webpart/templates/react/{componentClassName}.ts +2 -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.18.0
|
|
6
|
-
"@microsoft/sp-property-pane": "1.18.0
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.18.0
|
|
5
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.18.0",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.18.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.18.0
|
|
16
|
-
"@microsoft/sp-property-pane": "1.18.0
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.18.0
|
|
15
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.18.0",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.18.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.18.0
|
|
28
|
-
"@microsoft/sp-application-base": "1.18.0
|
|
27
|
+
"@microsoft/sp-dialog": "1.18.0",
|
|
28
|
+
"@microsoft/sp-application-base": "1.18.0"
|
|
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.18.0
|
|
37
|
-
"@microsoft/sp-application-base": "1.18.0
|
|
36
|
+
"@microsoft/sp-dialog": "1.18.0",
|
|
37
|
+
"@microsoft/sp-application-base": "1.18.0"
|
|
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.18.0
|
|
46
|
-
"@microsoft/sp-dialog": "1.18.0
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.18.0",
|
|
46
|
+
"@microsoft/sp-dialog": "1.18.0"
|
|
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.18.0
|
|
55
|
-
"@microsoft/sp-dialog": "1.18.0
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.18.0",
|
|
55
|
+
"@microsoft/sp-dialog": "1.18.0"
|
|
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.18.0
|
|
64
|
-
"@microsoft/decorators": "1.18.0
|
|
63
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
64
|
+
"@microsoft/decorators": "1.18.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.18.0
|
|
73
|
-
"@microsoft/decorators": "1.18.0
|
|
72
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
73
|
+
"@microsoft/decorators": "1.18.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.18.0
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.18.0"
|
|
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.18.0
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.18.0"
|
|
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.18.0
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
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.18.0
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.18.0"
|
|
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.18.0
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.18.0"
|
|
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.18.0
|
|
145
|
-
"@microsoft/sp-component-base": "1.18.0
|
|
146
|
-
"@microsoft/sp-property-pane": "1.18.0
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.18.0
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.18.0
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.18.0
|
|
144
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
145
|
+
"@microsoft/sp-component-base": "1.18.0",
|
|
146
|
+
"@microsoft/sp-property-pane": "1.18.0",
|
|
147
|
+
"@microsoft/sp-webpart-base": "1.18.0",
|
|
148
|
+
"@microsoft/sp-lodash-subset": "1.18.0",
|
|
149
|
+
"@microsoft/sp-office-ui-fabric-core": "1.18.0"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
152
|
+
"@microsoft/sp-module-interfaces": "1.18.0",
|
|
153
153
|
"@fluentui/react": "^8.106.4"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"plusBeta": {
|
|
157
157
|
"dependencies": {
|
|
158
|
-
"@microsoft/sp-core-library": "1.18.0
|
|
159
|
-
"@microsoft/sp-component-base": "1.18.0
|
|
160
|
-
"@microsoft/sp-property-pane": "1.18.0
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.18.0
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.18.0
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.18.0
|
|
158
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
159
|
+
"@microsoft/sp-component-base": "1.18.0",
|
|
160
|
+
"@microsoft/sp-property-pane": "1.18.0",
|
|
161
|
+
"@microsoft/sp-webpart-base": "1.18.0",
|
|
162
|
+
"@microsoft/sp-lodash-subset": "1.18.0",
|
|
163
|
+
"@microsoft/sp-office-ui-fabric-core": "1.18.0"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
166
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
"tslib": "2.3.1"
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
|
-
"@microsoft/rush-stack-compiler-4.
|
|
176
|
+
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
|
|
177
177
|
"@rushstack/eslint-config": "2.5.1",
|
|
178
|
-
"@microsoft/eslint-plugin-spfx": "1.18.0
|
|
179
|
-
"@microsoft/eslint-config-spfx": "1.18.0
|
|
180
|
-
"@microsoft/spfx-web-build-rig": "1.18.0
|
|
178
|
+
"@microsoft/eslint-plugin-spfx": "1.18.0",
|
|
179
|
+
"@microsoft/eslint-config-spfx": "1.18.0",
|
|
180
|
+
"@microsoft/spfx-web-build-rig": "1.18.0",
|
|
181
181
|
"@rushstack/heft": "0.58.1",
|
|
182
182
|
"@types/webpack-env": "~1.15.2",
|
|
183
183
|
"eslint": "8.7.0"
|
|
@@ -191,19 +191,19 @@
|
|
|
191
191
|
"tslib": "2.3.1"
|
|
192
192
|
},
|
|
193
193
|
"devDependencies": {
|
|
194
|
-
"@microsoft/rush-stack-compiler-4.
|
|
194
|
+
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
|
|
195
195
|
"@rushstack/eslint-config": "2.5.1",
|
|
196
|
-
"@microsoft/eslint-plugin-spfx": "1.18.0
|
|
197
|
-
"@microsoft/eslint-config-spfx": "1.18.0
|
|
198
|
-
"@microsoft/sp-build-web": "1.18.0
|
|
196
|
+
"@microsoft/eslint-plugin-spfx": "1.18.0",
|
|
197
|
+
"@microsoft/eslint-config-spfx": "1.18.0",
|
|
198
|
+
"@microsoft/sp-build-web": "1.18.0",
|
|
199
199
|
"@types/webpack-env": "~1.15.2",
|
|
200
200
|
"ajv": "^6.12.5",
|
|
201
201
|
"eslint": "8.7.0",
|
|
202
202
|
"gulp": "4.0.2",
|
|
203
|
-
"typescript": "4.
|
|
203
|
+
"typescript": "4.7.4"
|
|
204
204
|
},
|
|
205
205
|
"preferredVersions": {
|
|
206
|
-
"typescript": "4.
|
|
206
|
+
"typescript": "4.7.4"
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"plusBeta": null
|
|
@@ -211,24 +211,24 @@
|
|
|
211
211
|
"formCustomizer": {
|
|
212
212
|
"standard": {
|
|
213
213
|
"dependencies": {
|
|
214
|
-
"@microsoft/sp-core-library": "1.18.0
|
|
215
|
-
"@microsoft/sp-listview-extensibility": "1.18.0
|
|
216
|
-
"@microsoft/sp-lodash-subset": "1.18.0
|
|
217
|
-
"@microsoft/sp-office-ui-fabric-core": "1.18.0
|
|
214
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
215
|
+
"@microsoft/sp-listview-extensibility": "1.18.0",
|
|
216
|
+
"@microsoft/sp-lodash-subset": "1.18.0",
|
|
217
|
+
"@microsoft/sp-office-ui-fabric-core": "1.18.0"
|
|
218
218
|
},
|
|
219
219
|
"devDependencies": {
|
|
220
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
220
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
"plusBeta": {
|
|
224
224
|
"dependencies": {
|
|
225
|
-
"@microsoft/sp-core-library": "1.18.0
|
|
226
|
-
"@microsoft/sp-listview-extensibility": "1.18.0
|
|
227
|
-
"@microsoft/sp-lodash-subset": "1.18.0
|
|
228
|
-
"@microsoft/sp-office-ui-fabric-core": "1.18.0
|
|
225
|
+
"@microsoft/sp-core-library": "1.18.0",
|
|
226
|
+
"@microsoft/sp-listview-extensibility": "1.18.0",
|
|
227
|
+
"@microsoft/sp-lodash-subset": "1.18.0",
|
|
228
|
+
"@microsoft/sp-office-ui-fabric-core": "1.18.0"
|
|
229
229
|
},
|
|
230
230
|
"devDependencies": {
|
|
231
|
-
"@microsoft/sp-module-interfaces": "1.18.0
|
|
231
|
+
"@microsoft/sp-module-interfaces": "1.18.0"
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IBaseOptions, BaseGenerator } from '../../common/BaseGenerator';
|
|
2
2
|
import * as GenericAdaptiveCardExtension from '../genericAdaptiveCardExtension';
|
|
3
3
|
import * as SearchAdaptiveCardExtension from '../searchAdaptiveCardExtension';
|
|
4
|
-
declare type IACETemplateType = '
|
|
4
|
+
declare type IACETemplateType = 'Generic' | 'Search';
|
|
5
5
|
export interface IACEOptions extends GenericAdaptiveCardExtension.IGenericACEOptions, SearchAdaptiveCardExtension.ISearchACEOptions {
|
|
6
6
|
aceTemplateType: IACETemplateType;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;AAE9E,aAAK,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;AAE9E,aAAK,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC7C,MAAM,WAAW,WACf,SAAQ,4BAA4B,CAAC,kBAAkB,EACrD,2BAA2B,CAAC,iBAAiB;IAC/C,eAAe,EAAE,gBAAgB,CAAC;CACnC;AAED,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAChF,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAGN;AAED,qBAAa,sCAAuC,SAAQ,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC;IACxF,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAA6B;IAE7D,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAwChC,WAAW,IAAI,IAAI;IAInB,OAAO,IAAI,IAAI;IAIf,OAAO,IAAI,IAAI;IAIf,GAAG,IAAI,IAAI;IAIlB,SAAS,aAAa,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW;IAInE,OAAO,CAAC,cAAc;CAOvB"}
|
|
@@ -57,23 +57,11 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
57
57
|
}
|
|
58
58
|
const choices = [
|
|
59
59
|
{
|
|
60
|
-
name: '
|
|
61
|
-
value: 'Basic'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'Image Card Template',
|
|
65
|
-
value: 'Image'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Primary Text Template',
|
|
69
|
-
value: 'PrimaryText'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'Generic Card Template (preview)',
|
|
60
|
+
name: 'Generic Card Template',
|
|
73
61
|
value: 'Generic'
|
|
74
62
|
},
|
|
75
63
|
{
|
|
76
|
-
name: 'Search Card Template
|
|
64
|
+
name: 'Search Card Template',
|
|
77
65
|
value: 'Search'
|
|
78
66
|
}
|
|
79
67
|
];
|
|
@@ -88,11 +76,7 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
88
76
|
}
|
|
89
77
|
]);
|
|
90
78
|
const templateType = answers.aceTemplateType || this.config.get('aceTemplateType');
|
|
91
|
-
if (!(templateType === '
|
|
92
|
-
templateType === 'Image' ||
|
|
93
|
-
templateType === 'PrimaryText' ||
|
|
94
|
-
templateType === 'Generic' ||
|
|
95
|
-
templateType === 'Search')) {
|
|
79
|
+
if (!(templateType === 'Generic' || templateType === 'Search')) {
|
|
96
80
|
this.log(colors_1.default.red(`Invalid template type: '${templateType}'`));
|
|
97
81
|
}
|
|
98
82
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.
|
|
2
|
+
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "es5",
|
|
5
5
|
"forceConsistentCasingInFileNames": true,
|
|
@@ -10,6 +10,7 @@ define([], function() {
|
|
|
10
10
|
"AppSharePointEnvironment": "The app is running on SharePoint page",
|
|
11
11
|
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams",
|
|
12
12
|
"AppOfficeEnvironment": "The app is running in office.com",
|
|
13
|
-
"AppOutlookEnvironment": "The app is running in Outlook"
|
|
13
|
+
"AppOutlookEnvironment": "The app is running in Outlook",
|
|
14
|
+
"UnknownEnvironment": "The app is running in an unknown environment"
|
|
14
15
|
}
|
|
15
16
|
});
|
|
@@ -68,10 +68,11 @@ export default class <%= componentClassName %> extends BaseClientSideWebPart<I<%
|
|
|
68
68
|
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOutlook : strings.AppOutlookEnvironment;
|
|
69
69
|
break;
|
|
70
70
|
case 'Teams': // running in Teams
|
|
71
|
+
case 'TeamsModern':
|
|
71
72
|
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment;
|
|
72
73
|
break;
|
|
73
74
|
default:
|
|
74
|
-
|
|
75
|
+
environmentMessage = strings.UnknownEnvironment;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
return environmentMessage;
|
|
@@ -57,10 +57,11 @@ export default class <%= componentClassName %> extends BaseClientSideWebPart<I<%
|
|
|
57
57
|
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOutlook : strings.AppOutlookEnvironment;
|
|
58
58
|
break;
|
|
59
59
|
case 'Teams': // running in Teams
|
|
60
|
+
case 'TeamsModern':
|
|
60
61
|
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment;
|
|
61
62
|
break;
|
|
62
63
|
default:
|
|
63
|
-
|
|
64
|
+
environmentMessage = strings.UnknownEnvironment;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
return environmentMessage;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.18.0
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=16.13.0 <17.0.0"
|
|
6
|
+
"node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [
|
|
9
9
|
"yeoman-generator"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"uuid": "~3.1.0",
|
|
20
20
|
"yeoman-generator": "5.6.1",
|
|
21
21
|
"yosay": "2.0.2",
|
|
22
|
-
"@microsoft/spfx-heft-plugins": "1.18.0
|
|
22
|
+
"@microsoft/spfx-heft-plugins": "1.18.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@microsoft/rush-lib": "5.100.2",
|