@microsoft/generator-sharepoint 1.15.2 → 1.16.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/PackageSolutionJsonManager.d.ts +1 -1
- package/lib/common/PackageSolutionJsonManager.d.ts.map +1 -1
- package/lib/common/bundles-versions.json +4 -0
- package/lib/common/dependencies.json +62 -62
- package/lib/generators/app/index.d.ts.map +1 -1
- package/lib/generators/app/index.js +7 -0
- package/lib/generators/component/templates/eslint/.eslintrc.js +1 -27
- package/lib/generators/extension/index.d.ts.map +1 -1
- package/lib/generators/extension/index.js +4 -6
- package/lib/generators/formCustomizer/templates/none/{componentClassName}.ts +4 -1
- package/lib/generators/solution/heft.package.json +3 -0
- package/lib/generators/solution/non-heft.package.json +3 -0
- package/lib/generators/solution/templates/spo/tsconfig.json +0 -1
- package/lib/generators/webpart/templates/loc/en-us.js +5 -1
- package/lib/generators/webpart/templates/loc/mystrings.d.ts +4 -0
- package/lib/generators/webpart/templates/none/{componentClassName}.ts +25 -7
- package/lib/generators/webpart/templates/react/components/{componentName}.module.scss +1 -1
- package/lib/generators/webpart/templates/react/{componentClassName}.ts +27 -7
- package/package.json +5 -5
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Basque.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Bulgarian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Catalan.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Chinese (Simplified).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Chinese (Traditional).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Croatian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Czech.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Danish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Dutch.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Estonian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Finnish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - French.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Galician.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - German.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Greek.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Hindi.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Hungarian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Indonesian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Italian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Japanese.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Kazakh.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Korean.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Latvian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Lithuanian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Malaysian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Norwegian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Polish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Brazil).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Portugal).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Romanian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Russian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Cyrillic).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Latin).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Slovak.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Slovenian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Spanish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Swedish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Thai.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Turkish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Ukrainian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Valencian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Vietnamese.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms.docx +0 -0
|
@@ -2,7 +2,7 @@ import { IPackageSolution } from '@microsoft/spfx-heft-plugins';
|
|
|
2
2
|
import { Editor } from 'mem-fs-editor';
|
|
3
3
|
import { ISolutionContext } from '../generators/solution';
|
|
4
4
|
import { JsonManager } from './JsonManager';
|
|
5
|
-
export declare class PackageSolutionJsonManager extends JsonManager<IPackageSolution
|
|
5
|
+
export declare class PackageSolutionJsonManager extends JsonManager<Partial<IPackageSolution>> {
|
|
6
6
|
private static _instance?;
|
|
7
7
|
static load(filepath: string, fs: Editor): void;
|
|
8
8
|
static reset(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSolutionJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/PackageSolutionJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PackageSolutionJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/PackageSolutionJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAIjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,0BAA2B,SAAQ,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpF,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAA6B;WAExC,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;WAqBxC,KAAK,IAAI,IAAI;IAI3B,WAAkB,QAAQ,IAAI,0BAA0B,CAEvD;IAEM,wBAAwB,IAAI,OAAO;IAQnC,aAAa,CAAC,eAAe,EAAE,gBAAgB,GAAG,IAAI;IA4CtD,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,yBAAyB,EAAE,OAAO,GAAG,IAAI;IAUhF,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,OAAO,EACtB,yBAAyB,GAAE,OAAe,GACzC,IAAI;IAkDP;;;OAGG;IACH,OAAO,CAAC,qBAAqB;CAW9B"}
|
|
@@ -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.16.0-beta.2",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.16.0-beta.2",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.16.0-beta.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.16.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.16.0-beta.2",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.16.0-beta.2",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.16.0-beta.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.16.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.16.0-beta.2",
|
|
28
|
+
"@microsoft/sp-application-base": "1.16.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.16.0-beta.2",
|
|
37
|
+
"@microsoft/sp-application-base": "1.16.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.16.0-beta.2",
|
|
46
|
+
"@microsoft/sp-dialog": "1.16.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.16.0-beta.2",
|
|
55
|
+
"@microsoft/sp-dialog": "1.16.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.16.0-beta.2",
|
|
64
|
+
"@microsoft/decorators": "1.16.0-beta.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.16.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.16.0-beta.2",
|
|
73
|
+
"@microsoft/decorators": "1.16.0-beta.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.16.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.16.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.16.0-beta.2"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"plusBeta": null
|
|
@@ -97,26 +97,26 @@
|
|
|
97
97
|
"standard": {
|
|
98
98
|
"dependencies": {},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.16.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.16.0-beta.2"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"react": {
|
|
111
111
|
"standard": {
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"react": "
|
|
114
|
-
"react-dom": "
|
|
115
|
-
"office-ui-fabric-react": "7.
|
|
113
|
+
"react": "17.0.1",
|
|
114
|
+
"react-dom": "17.0.1",
|
|
115
|
+
"office-ui-fabric-react": "^7.199.1"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@types/react": "
|
|
119
|
-
"@types/react-dom": "
|
|
118
|
+
"@types/react": "17.0.45",
|
|
119
|
+
"@types/react-dom": "17.0.17",
|
|
120
120
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -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.16.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.16.0-beta.2"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"plusBeta": null
|
|
@@ -141,26 +141,26 @@
|
|
|
141
141
|
"webpart": {
|
|
142
142
|
"standard": {
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@microsoft/sp-core-library": "1.
|
|
145
|
-
"@microsoft/sp-property-pane": "1.
|
|
146
|
-
"@microsoft/sp-webpart-base": "1.
|
|
147
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
148
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
144
|
+
"@microsoft/sp-core-library": "1.16.0-beta.2",
|
|
145
|
+
"@microsoft/sp-property-pane": "1.16.0-beta.2",
|
|
146
|
+
"@microsoft/sp-webpart-base": "1.16.0-beta.2",
|
|
147
|
+
"@microsoft/sp-lodash-subset": "1.16.0-beta.2",
|
|
148
|
+
"@microsoft/sp-office-ui-fabric-core": "1.16.0-beta.2"
|
|
149
149
|
},
|
|
150
150
|
"devDependencies": {
|
|
151
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
151
|
+
"@microsoft/sp-module-interfaces": "1.16.0-beta.2"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
"plusBeta": {
|
|
155
155
|
"dependencies": {
|
|
156
|
-
"@microsoft/sp-core-library": "1.
|
|
157
|
-
"@microsoft/sp-property-pane": "1.
|
|
158
|
-
"@microsoft/sp-webpart-base": "1.
|
|
159
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
160
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
156
|
+
"@microsoft/sp-core-library": "1.16.0-beta.2",
|
|
157
|
+
"@microsoft/sp-property-pane": "1.16.0-beta.2",
|
|
158
|
+
"@microsoft/sp-webpart-base": "1.16.0-beta.2",
|
|
159
|
+
"@microsoft/sp-lodash-subset": "1.16.0-beta.2",
|
|
160
|
+
"@microsoft/sp-office-ui-fabric-core": "1.16.0-beta.2"
|
|
161
161
|
},
|
|
162
162
|
"devDependencies": {
|
|
163
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
163
|
+
"@microsoft/sp-module-interfaces": "1.16.0-beta.2"
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
},
|
|
@@ -172,10 +172,10 @@
|
|
|
172
172
|
"devDependencies": {
|
|
173
173
|
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
|
174
174
|
"@rushstack/eslint-config": "2.5.1",
|
|
175
|
-
"@microsoft/eslint-plugin-spfx": "1.
|
|
176
|
-
"@microsoft/eslint-config-spfx": "1.
|
|
177
|
-
"@microsoft/spfx-web-build-rig": "1.
|
|
178
|
-
"@rushstack/heft": "0.
|
|
175
|
+
"@microsoft/eslint-plugin-spfx": "1.16.0-beta.2",
|
|
176
|
+
"@microsoft/eslint-config-spfx": "1.16.0-beta.2",
|
|
177
|
+
"@microsoft/spfx-web-build-rig": "1.16.0-beta.2",
|
|
178
|
+
"@rushstack/heft": "0.47.11",
|
|
179
179
|
"@types/webpack-env": "~1.15.2",
|
|
180
180
|
"eslint": "8.7.0"
|
|
181
181
|
}
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
"devDependencies": {
|
|
191
191
|
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
|
192
192
|
"@rushstack/eslint-config": "2.5.1",
|
|
193
|
-
"@microsoft/eslint-plugin-spfx": "1.
|
|
194
|
-
"@microsoft/eslint-config-spfx": "1.
|
|
195
|
-
"@microsoft/sp-build-web": "1.
|
|
193
|
+
"@microsoft/eslint-plugin-spfx": "1.16.0-beta.2",
|
|
194
|
+
"@microsoft/eslint-config-spfx": "1.16.0-beta.2",
|
|
195
|
+
"@microsoft/sp-build-web": "1.16.0-beta.2",
|
|
196
196
|
"@types/webpack-env": "~1.15.2",
|
|
197
197
|
"ajv": "^6.12.5",
|
|
198
198
|
"gulp": "4.0.2",
|
|
@@ -207,24 +207,24 @@
|
|
|
207
207
|
"formCustomizer": {
|
|
208
208
|
"standard": {
|
|
209
209
|
"dependencies": {
|
|
210
|
-
"@microsoft/sp-core-library": "1.
|
|
211
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
212
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
213
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
210
|
+
"@microsoft/sp-core-library": "1.16.0-beta.2",
|
|
211
|
+
"@microsoft/sp-listview-extensibility": "1.16.0-beta.2",
|
|
212
|
+
"@microsoft/sp-lodash-subset": "1.16.0-beta.2",
|
|
213
|
+
"@microsoft/sp-office-ui-fabric-core": "1.16.0-beta.2"
|
|
214
214
|
},
|
|
215
215
|
"devDependencies": {
|
|
216
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
216
|
+
"@microsoft/sp-module-interfaces": "1.16.0-beta.2"
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
"plusBeta": {
|
|
220
220
|
"dependencies": {
|
|
221
|
-
"@microsoft/sp-core-library": "1.
|
|
222
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
223
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
224
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
221
|
+
"@microsoft/sp-core-library": "1.16.0-beta.2",
|
|
222
|
+
"@microsoft/sp-listview-extensibility": "1.16.0-beta.2",
|
|
223
|
+
"@microsoft/sp-lodash-subset": "1.16.0-beta.2",
|
|
224
|
+
"@microsoft/sp-office-ui-fabric-core": "1.16.0-beta.2"
|
|
225
225
|
},
|
|
226
226
|
"devDependencies": {
|
|
227
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
227
|
+
"@microsoft/sp-module-interfaces": "1.16.0-beta.2"
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAIzE,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAa1C,MAAM,WAAW,WAAW;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,WACf,SAAQ,YAAY,EAClB,QAAQ,CAAC,gBAAgB,EACzB,SAAS,CAAC,yBAAyB;CAAG;AAE1C,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACjE,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,WAAW,GACnB,IAAI,CAEN"}
|
|
@@ -30,6 +30,7 @@ exports.composeWith = void 0;
|
|
|
30
30
|
const colors_1 = __importDefault(require("colors"));
|
|
31
31
|
const path = __importStar(require("path"));
|
|
32
32
|
const yosay = require("yosay");
|
|
33
|
+
const node_core_library_1 = require("@rushstack/node-core-library");
|
|
33
34
|
const spsay_1 = __importDefault(require("../../common/spsay"));
|
|
34
35
|
const BaseGenerator_1 = require("../../common/BaseGenerator");
|
|
35
36
|
const Utils = __importStar(require("../../common/utilities"));
|
|
@@ -134,6 +135,8 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
134
135
|
}
|
|
135
136
|
this.config.set('plusBeta', VERSION.indexOf('beta') >= 0);
|
|
136
137
|
this.config.set('isCreatingSolution', this.context.creatingSolution);
|
|
138
|
+
this.config.set('nodeVersion', process.versions.node);
|
|
139
|
+
this._setSDKsVersions();
|
|
137
140
|
const baseOption = {
|
|
138
141
|
'skip-install': this.options['skip-install'],
|
|
139
142
|
plusbeta: this.options.plusbeta
|
|
@@ -221,6 +224,10 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
221
224
|
this.log(`${componentTypeUpper} description is going to be ${description}.`);
|
|
222
225
|
}
|
|
223
226
|
}
|
|
227
|
+
_setSDKsVersions() {
|
|
228
|
+
const bundlesFile = node_core_library_1.JsonFile.load(`${__dirname}/../../common/bundles-versions.json`);
|
|
229
|
+
this.config.set('sdksVersions', bundlesFile);
|
|
230
|
+
}
|
|
224
231
|
}
|
|
225
232
|
// Yeoman expects exports of this type, which overrides the TS exports above
|
|
226
233
|
// Ensure that anything marked as export above is also listed here
|
|
@@ -346,33 +346,7 @@ module.exports = {
|
|
|
346
346
|
'**/test/*.ts',
|
|
347
347
|
'**/test/*.tsx'
|
|
348
348
|
],
|
|
349
|
-
rules: {
|
|
350
|
-
'no-new': 0,
|
|
351
|
-
'class-name': 0,
|
|
352
|
-
'export-name': 0,
|
|
353
|
-
forin: 0,
|
|
354
|
-
'label-position': 0,
|
|
355
|
-
'member-access': 2,
|
|
356
|
-
'no-arg': 0,
|
|
357
|
-
'no-console': 0,
|
|
358
|
-
'no-construct': 0,
|
|
359
|
-
'no-duplicate-variable': 2,
|
|
360
|
-
'no-eval': 0,
|
|
361
|
-
'no-function-expression': 2,
|
|
362
|
-
'no-internal-module': 2,
|
|
363
|
-
'no-shadowed-variable': 2,
|
|
364
|
-
'no-switch-case-fall-through': 2,
|
|
365
|
-
'no-unnecessary-semicolons': 2,
|
|
366
|
-
'no-unused-expression': 2,
|
|
367
|
-
'no-with-statement': 2,
|
|
368
|
-
semicolon: 2,
|
|
369
|
-
'trailing-comma': 0,
|
|
370
|
-
typedef: 0,
|
|
371
|
-
'typedef-whitespace': 0,
|
|
372
|
-
'use-named-parameter': 2,
|
|
373
|
-
'variable-name': 0,
|
|
374
|
-
whitespace: 0
|
|
375
|
-
}
|
|
349
|
+
rules: {}
|
|
376
350
|
}
|
|
377
351
|
]
|
|
378
352
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/extension/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,KAAK,qBAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,iBACf,SAAQ,eAAe,CAAC,uBAAuB,EAC7C,UAAU,CAAC,kBAAkB,EAC7B,qBAAqB,CAAC,6BAA6B,EACnD,cAAc,CAAC,sBAAsB;IACvC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;CAClD;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACnE,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAQN;AAED,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACjE,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,aAAa,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAClF,SAAgB,YAAY,EAAE,MAAM,CAAyB;IAEtD,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/extension/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,KAAK,qBAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,iBACf,SAAQ,eAAe,CAAC,uBAAuB,EAC7C,UAAU,CAAC,kBAAkB,EAC7B,qBAAqB,CAAC,6BAA6B,EACnD,cAAc,CAAC,sBAAsB;IACvC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;CAClD;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACnE,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAQN;AAED,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACjE,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,aAAa,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAClF,SAAgB,YAAY,EAAE,MAAM,CAAyB;IAEtD,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA2DhC,WAAW,IAAI,IAAI;IAGnB,OAAO,IAAI,IAAI;IAGf,OAAO,IAAI,IAAI;IAGf,GAAG,IAAI,IAAI;IAIlB,SAAS,aAAa,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB;IAIzE,OAAO,CAAC,aAAa;CAGtB"}
|
|
@@ -80,14 +80,12 @@ class ExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
80
80
|
{
|
|
81
81
|
name: 'Form Customizer',
|
|
82
82
|
value: 'FormCustomizer'
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (this.config.get('plusBeta') === true) {
|
|
86
|
-
choices.push({
|
|
83
|
+
},
|
|
84
|
+
{
|
|
87
85
|
name: 'Search Query Modifier',
|
|
88
86
|
value: 'SearchQueryModifier'
|
|
89
|
-
}
|
|
90
|
-
|
|
87
|
+
}
|
|
88
|
+
];
|
|
91
89
|
const validExtensionTypes = new Set(choices.map((choice) => choice.value));
|
|
92
90
|
const answers = await this.prompt([
|
|
93
91
|
{
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
BaseFormCustomizer
|
|
4
4
|
} from '@microsoft/sp-listview-extensibility';
|
|
5
5
|
|
|
6
|
-
import * as strings from '<%= componentStrings %>';
|
|
7
6
|
import styles from './<%= componentClassName %>.module.scss';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -39,13 +38,17 @@ export default class <%= componentClassName %>
|
|
|
39
38
|
super.onDispose();
|
|
40
39
|
}
|
|
41
40
|
|
|
41
|
+
//@ts-ignore
|
|
42
42
|
private _onSave = (): void => {
|
|
43
|
+
// TODO: Add your custom save logic here.
|
|
43
44
|
|
|
44
45
|
// You MUST call this.formSaved() after you save the form.
|
|
45
46
|
this.formSaved();
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
//@ts-ignore
|
|
48
50
|
private _onClose = (): void => {
|
|
51
|
+
// TODO: Add your custom close logic here.
|
|
49
52
|
|
|
50
53
|
// You MUST call this.formClosed() after you close the form.
|
|
51
54
|
this.formClosed();
|
|
@@ -5,7 +5,11 @@ define([], function() {
|
|
|
5
5
|
"DescriptionFieldLabel": "Description Field",
|
|
6
6
|
"AppLocalEnvironmentSharePoint": "The app is running on your local environment as SharePoint web part",
|
|
7
7
|
"AppLocalEnvironmentTeams": "The app is running on your local environment as Microsoft Teams app",
|
|
8
|
+
"AppLocalEnvironmentOffice": "The app is running on your local environment in office.com",
|
|
9
|
+
"AppLocalEnvironmentOutlook": "The app is running on your local environment in Outlook",
|
|
8
10
|
"AppSharePointEnvironment": "The app is running on SharePoint page",
|
|
9
|
-
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams"
|
|
11
|
+
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams",
|
|
12
|
+
"AppOfficeEnvironment": "The app is running in office.com",
|
|
13
|
+
"AppOutlookEnvironment": "The app is running in Outlook"
|
|
10
14
|
}
|
|
11
15
|
});
|
|
@@ -4,8 +4,12 @@ declare interface I<%= componentStrings %> {
|
|
|
4
4
|
DescriptionFieldLabel: string;
|
|
5
5
|
AppLocalEnvironmentSharePoint: string;
|
|
6
6
|
AppLocalEnvironmentTeams: string;
|
|
7
|
+
AppLocalEnvironmentOffice: string;
|
|
8
|
+
AppLocalEnvironmentOutlook: string;
|
|
7
9
|
AppSharePointEnvironment: string;
|
|
8
10
|
AppTeamsTabEnvironment: string;
|
|
11
|
+
AppOfficeEnvironment: string;
|
|
12
|
+
AppOutlookEnvironment: string;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
declare module '<%= componentStrings %>' {
|
|
@@ -48,19 +48,37 @@ export default class <%= componentClassName %> extends BaseClientSideWebPart<I<%
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
protected onInit(): Promise<void> {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
return this._getEnvironmentMessage().then(message => {
|
|
52
|
+
this._environmentMessage = message;
|
|
53
|
+
});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
private _getEnvironmentMessage(): string {
|
|
59
|
-
if (!!this.context.sdks.microsoftTeams) { // running in Teams
|
|
60
|
-
return this.context.
|
|
58
|
+
private _getEnvironmentMessage(): Promise<string> {
|
|
59
|
+
if (!!this.context.sdks.microsoftTeams) { // running in Teams, office.com or Outlook
|
|
60
|
+
return this.context.sdks.microsoftTeams.teamsJs.app.getContext()
|
|
61
|
+
.then(context => {
|
|
62
|
+
let environmentMessage: string = '';
|
|
63
|
+
switch (context.app.host.name) {
|
|
64
|
+
case 'Office': // running in Office
|
|
65
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOffice : strings.AppOfficeEnvironment;
|
|
66
|
+
break;
|
|
67
|
+
case 'Outlook': // running in Outlook
|
|
68
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOutlook : strings.AppOutlookEnvironment;
|
|
69
|
+
break;
|
|
70
|
+
case 'Teams': // running in Teams
|
|
71
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment;
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
throw new Error('Unknown host');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return environmentMessage;
|
|
78
|
+
});
|
|
61
79
|
}
|
|
62
80
|
|
|
63
|
-
return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment;
|
|
81
|
+
return Promise.resolve(this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment);
|
|
64
82
|
}
|
|
65
83
|
|
|
66
84
|
protected onThemeChanged(currentTheme: IReadonlyTheme | undefined): void {
|
|
@@ -37,17 +37,37 @@ export default class <%= componentClassName %> extends BaseClientSideWebPart<I<%
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
protected onInit(): Promise<void> {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
return this._getEnvironmentMessage().then(message => {
|
|
41
|
+
this._environmentMessage = message;
|
|
42
|
+
});
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
private _getEnvironmentMessage(): Promise<string> {
|
|
48
|
+
if (!!this.context.sdks.microsoftTeams) { // running in Teams, office.com or Outlook
|
|
49
|
+
return this.context.sdks.microsoftTeams.teamsJs.app.getContext()
|
|
50
|
+
.then(context => {
|
|
51
|
+
let environmentMessage: string = '';
|
|
52
|
+
switch (context.app.host.name) {
|
|
53
|
+
case 'Office': // running in Office
|
|
54
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOffice : strings.AppOfficeEnvironment;
|
|
55
|
+
break;
|
|
56
|
+
case 'Outlook': // running in Outlook
|
|
57
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentOutlook : strings.AppOutlookEnvironment;
|
|
58
|
+
break;
|
|
59
|
+
case 'Teams': // running in Teams
|
|
60
|
+
environmentMessage = this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment;
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
throw new Error('Unknown host');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return environmentMessage;
|
|
67
|
+
});
|
|
48
68
|
}
|
|
49
69
|
|
|
50
|
-
return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment;
|
|
70
|
+
return Promise.resolve(this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment);
|
|
51
71
|
}
|
|
52
72
|
|
|
53
73
|
protected onThemeChanged(currentTheme: IReadonlyTheme | undefined): void {
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0-beta.2",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=16.13.0 <17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
10
|
"yeoman-generator"
|
|
11
11
|
],
|
|
12
|
-
"license": "
|
|
12
|
+
"license": "https://aka.ms/spfx/license",
|
|
13
13
|
"homepage": "http://aka.ms/spfx",
|
|
14
14
|
"main": "lib/generators/app/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@microsoft/spfx-heft-plugins": "1.
|
|
17
|
-
"@rushstack/node-core-library": "3.
|
|
16
|
+
"@microsoft/spfx-heft-plugins": "1.16.0-beta.2",
|
|
17
|
+
"@rushstack/node-core-library": "3.52.0",
|
|
18
18
|
"colors": "~1.2.1",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
20
|
"update-notifier": "5.1.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Brazil).docx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Cyrillic).docx
DELETED
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Latin).docx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|