@microsoft/generator-sharepoint 1.15.0-beta.6 → 1.15.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/BaseGenerator.js +5 -1
- package/lib/common/JsonManager.js +5 -1
- package/lib/common/ServeJsonManager.js +6 -2
- package/lib/common/dependencies.json +71 -61
- package/lib/common/utilities.d.ts.map +1 -1
- package/lib/common/utilities.js +10 -2
- package/lib/generators/adaptiveCardExtension/index.js +6 -2
- package/lib/generators/adaptiveCardExtension/templates/manifestTemplate/baseTemplate/{componentClassName}.manifest.json +3 -3
- package/lib/generators/adaptiveCardExtension/templates/manifestTemplate/imageTemplate/{componentClassName}.manifest.json +1 -2
- package/lib/generators/adaptiveCardExtension/templates/none/{componentClassName}.ts +1 -1
- package/lib/generators/app/index.js +5 -1
- package/lib/generators/applicationCustomizer/index.js +6 -2
- package/lib/generators/applicationCustomizer/templates/none/{componentClassName}.ts +3 -1
- package/lib/generators/commandSet/index.js +6 -2
- package/lib/generators/commandSet/templates/none/{componentClassName}.ts +10 -6
- package/lib/generators/component/BaseComponentGenerator.d.ts +5 -0
- package/lib/generators/component/BaseComponentGenerator.d.ts.map +1 -1
- package/lib/generators/component/BaseComponentGenerator.js +17 -1
- package/lib/generators/component/index.js +5 -1
- package/lib/generators/component/templates/eslint/.eslintrc.js +378 -0
- package/lib/generators/extension/BaseExtensionGenerator.js +5 -1
- package/lib/generators/extension/index.js +5 -1
- package/lib/generators/fieldCustomizer/index.js +6 -2
- package/lib/generators/formCustomizer/index.d.ts.map +1 -1
- package/lib/generators/formCustomizer/index.js +7 -6
- package/lib/generators/formCustomizer/templates/react/components/{componentName}.tsx +1 -1
- package/lib/generators/formCustomizer/templates/react/{componentClassName}.ts +1 -2
- package/lib/generators/library/index.js +6 -2
- package/lib/generators/searchQueryModifier/index.js +6 -2
- package/lib/generators/solution/index.js +5 -1
- package/lib/generators/solution/templates/spo/tsconfig.json +3 -1
- package/lib/generators/webpart/index.js +6 -2
- package/lib/generators/webpart/initial.teamsManifest.json +6 -0
- package/lib/generators/webpart/templates/base/{componentClassName}.manifest.json +2 -2
- package/lib/generators/webpart/templates/react/components/{componentName}.tsx +8 -8
- package/package.json +4 -4
- package/lib/generators/solution/templates/gulp/tslint.json +0 -29
- package/lib/generators/solution/templates/heft/tslint.json +0 -7
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -37,7 +41,7 @@ class ServeJsonManager extends JsonManager_1.JsonManager {
|
|
|
37
41
|
}
|
|
38
42
|
if (!data) {
|
|
39
43
|
data = {
|
|
40
|
-
$schema: 'https://developer.microsoft.com/json-schemas/
|
|
44
|
+
$schema: 'https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json',
|
|
41
45
|
port: 4321,
|
|
42
46
|
https: true
|
|
43
47
|
};
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.15.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.15.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.15.
|
|
5
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.15.2",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.15.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.15.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.15.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.15.
|
|
15
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.15.2",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.15.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.15.
|
|
28
|
-
"@microsoft/sp-application-base": "1.15.
|
|
27
|
+
"@microsoft/sp-dialog": "1.15.2",
|
|
28
|
+
"@microsoft/sp-application-base": "1.15.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.15.
|
|
37
|
-
"@microsoft/sp-application-base": "1.15.
|
|
36
|
+
"@microsoft/sp-dialog": "1.15.2",
|
|
37
|
+
"@microsoft/sp-application-base": "1.15.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.15.
|
|
46
|
-
"@microsoft/sp-dialog": "1.15.
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.15.2",
|
|
46
|
+
"@microsoft/sp-dialog": "1.15.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.15.
|
|
55
|
-
"@microsoft/sp-dialog": "1.15.
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.15.2",
|
|
55
|
+
"@microsoft/sp-dialog": "1.15.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.15.
|
|
64
|
-
"@microsoft/decorators": "1.15.
|
|
63
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
64
|
+
"@microsoft/decorators": "1.15.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.15.
|
|
73
|
-
"@microsoft/decorators": "1.15.
|
|
72
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
73
|
+
"@microsoft/decorators": "1.15.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.15.
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.15.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.15.
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.15.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.15.
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -112,11 +112,12 @@
|
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"react": "16.13.1",
|
|
114
114
|
"react-dom": "16.13.1",
|
|
115
|
-
"office-ui-fabric-react": "7.
|
|
115
|
+
"office-ui-fabric-react": "7.185.7"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@types/react": "16.9.51",
|
|
119
|
-
"@types/react-dom": "16.9.8"
|
|
119
|
+
"@types/react-dom": "16.9.8",
|
|
120
|
+
"eslint-plugin-react-hooks": "4.3.0"
|
|
120
121
|
}
|
|
121
122
|
},
|
|
122
123
|
"plusBeta": null
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"searchQueryModifier": {
|
|
125
126
|
"standard": {
|
|
126
127
|
"dependencies": {
|
|
127
|
-
"@microsoft/sp-search-extensibility": "1.15.
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.15.2"
|
|
128
129
|
}
|
|
129
130
|
},
|
|
130
131
|
"plusBeta": null
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
"searchQueryModifierPlusBeta": {
|
|
133
134
|
"standard": {
|
|
134
135
|
"dependencies": {
|
|
135
|
-
"@microsoft/sp-search-extensibility": "1.15.
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.15.2"
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
139
|
"plusBeta": null
|
|
@@ -140,26 +141,26 @@
|
|
|
140
141
|
"webpart": {
|
|
141
142
|
"standard": {
|
|
142
143
|
"dependencies": {
|
|
143
|
-
"@microsoft/sp-core-library": "1.15.
|
|
144
|
-
"@microsoft/sp-property-pane": "1.15.
|
|
145
|
-
"@microsoft/sp-webpart-base": "1.15.
|
|
146
|
-
"@microsoft/sp-lodash-subset": "1.15.
|
|
147
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.
|
|
144
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
145
|
+
"@microsoft/sp-property-pane": "1.15.2",
|
|
146
|
+
"@microsoft/sp-webpart-base": "1.15.2",
|
|
147
|
+
"@microsoft/sp-lodash-subset": "1.15.2",
|
|
148
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.2"
|
|
148
149
|
},
|
|
149
150
|
"devDependencies": {
|
|
150
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
151
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
"plusBeta": {
|
|
154
155
|
"dependencies": {
|
|
155
|
-
"@microsoft/sp-core-library": "1.15.
|
|
156
|
-
"@microsoft/sp-property-pane": "1.15.
|
|
157
|
-
"@microsoft/sp-webpart-base": "1.15.
|
|
158
|
-
"@microsoft/sp-lodash-subset": "1.15.
|
|
159
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.
|
|
156
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
157
|
+
"@microsoft/sp-property-pane": "1.15.2",
|
|
158
|
+
"@microsoft/sp-webpart-base": "1.15.2",
|
|
159
|
+
"@microsoft/sp-lodash-subset": "1.15.2",
|
|
160
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.2"
|
|
160
161
|
},
|
|
161
162
|
"devDependencies": {
|
|
162
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
163
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
},
|
|
@@ -169,11 +170,14 @@
|
|
|
169
170
|
"tslib": "2.3.1"
|
|
170
171
|
},
|
|
171
172
|
"devDependencies": {
|
|
172
|
-
"@microsoft/rush-stack-compiler-
|
|
173
|
-
"@
|
|
174
|
-
"@microsoft/
|
|
175
|
-
"@
|
|
176
|
-
"@
|
|
173
|
+
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
|
174
|
+
"@rushstack/eslint-config": "2.5.1",
|
|
175
|
+
"@microsoft/eslint-plugin-spfx": "1.15.2",
|
|
176
|
+
"@microsoft/eslint-config-spfx": "1.15.2",
|
|
177
|
+
"@microsoft/spfx-web-build-rig": "1.15.2",
|
|
178
|
+
"@rushstack/heft": "0.45.4",
|
|
179
|
+
"@types/webpack-env": "~1.15.2",
|
|
180
|
+
"eslint": "8.7.0"
|
|
177
181
|
}
|
|
178
182
|
},
|
|
179
183
|
"plusBeta": null
|
|
@@ -184,12 +188,18 @@
|
|
|
184
188
|
"tslib": "2.3.1"
|
|
185
189
|
},
|
|
186
190
|
"devDependencies": {
|
|
187
|
-
"@microsoft/rush-stack-compiler-
|
|
188
|
-
"@
|
|
189
|
-
"@microsoft/
|
|
191
|
+
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
|
192
|
+
"@rushstack/eslint-config": "2.5.1",
|
|
193
|
+
"@microsoft/eslint-plugin-spfx": "1.15.2",
|
|
194
|
+
"@microsoft/eslint-config-spfx": "1.15.2",
|
|
195
|
+
"@microsoft/sp-build-web": "1.15.2",
|
|
190
196
|
"@types/webpack-env": "~1.15.2",
|
|
191
197
|
"ajv": "^6.12.5",
|
|
192
|
-
"gulp": "4.0.2"
|
|
198
|
+
"gulp": "4.0.2",
|
|
199
|
+
"typescript": "4.5.5"
|
|
200
|
+
},
|
|
201
|
+
"preferredVersions": {
|
|
202
|
+
"typescript": "4.5.5"
|
|
193
203
|
}
|
|
194
204
|
},
|
|
195
205
|
"plusBeta": null
|
|
@@ -197,24 +207,24 @@
|
|
|
197
207
|
"formCustomizer": {
|
|
198
208
|
"standard": {
|
|
199
209
|
"dependencies": {
|
|
200
|
-
"@microsoft/sp-core-library": "1.15.
|
|
201
|
-
"@microsoft/sp-listview-extensibility": "1.15.
|
|
202
|
-
"@microsoft/sp-lodash-subset": "1.15.
|
|
203
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.
|
|
210
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
211
|
+
"@microsoft/sp-listview-extensibility": "1.15.2",
|
|
212
|
+
"@microsoft/sp-lodash-subset": "1.15.2",
|
|
213
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.2"
|
|
204
214
|
},
|
|
205
215
|
"devDependencies": {
|
|
206
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
216
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
207
217
|
}
|
|
208
218
|
},
|
|
209
219
|
"plusBeta": {
|
|
210
220
|
"dependencies": {
|
|
211
|
-
"@microsoft/sp-core-library": "1.15.
|
|
212
|
-
"@microsoft/sp-listview-extensibility": "1.15.
|
|
213
|
-
"@microsoft/sp-lodash-subset": "1.15.
|
|
214
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.
|
|
221
|
+
"@microsoft/sp-core-library": "1.15.2",
|
|
222
|
+
"@microsoft/sp-listview-extensibility": "1.15.2",
|
|
223
|
+
"@microsoft/sp-lodash-subset": "1.15.2",
|
|
224
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.2"
|
|
215
225
|
},
|
|
216
226
|
"devDependencies": {
|
|
217
|
-
"@microsoft/sp-module-interfaces": "1.15.
|
|
227
|
+
"@microsoft/sp-module-interfaces": "1.15.2"
|
|
218
228
|
}
|
|
219
229
|
}
|
|
220
230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/common/utilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/common/utilities.ts"],"names":[],"mappings":"AAMA,OAAO,MAAM,GAAG,QAAQ,kBAAkB,CAAC,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE9D,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAgB7D;AAED,wBAAgB,OAAO,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAuBnD;AAED,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBlG;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAGD,wBAAgB,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAQrG"}
|
package/lib/common/utilities.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -26,6 +30,7 @@ exports.compose = exports.generateGuid = exports.checkSolutionFolder = exports.f
|
|
|
26
30
|
const colors_1 = __importDefault(require("colors"));
|
|
27
31
|
const fs = __importStar(require("fs"));
|
|
28
32
|
const lodash = __importStar(require("lodash"));
|
|
33
|
+
const node_core_library_1 = require("@rushstack/node-core-library");
|
|
29
34
|
const path = __importStar(require("path"));
|
|
30
35
|
const uuid = __importStar(require("uuid"));
|
|
31
36
|
function titleCase(str) {
|
|
@@ -97,7 +102,10 @@ function generateGuid() {
|
|
|
97
102
|
exports.generateGuid = generateGuid;
|
|
98
103
|
// tslint:disable-next-line
|
|
99
104
|
function compose(generator, base, options) {
|
|
100
|
-
base.composeWith(
|
|
105
|
+
base.composeWith(node_core_library_1.Import.resolveModule({
|
|
106
|
+
baseFolderPath: __dirname,
|
|
107
|
+
modulePath: `@microsoft/generator-sharepoint/lib/generators/${generator}`
|
|
108
|
+
}), options);
|
|
101
109
|
}
|
|
102
110
|
exports.compose = compose;
|
|
103
111
|
//# sourceMappingURL=utilities.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -110,7 +114,7 @@ class AdaptiveCardExtensionGenerator extends BaseComponent.BaseComponentGenerato
|
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
end() {
|
|
113
|
-
|
|
117
|
+
super.end();
|
|
114
118
|
}
|
|
115
119
|
shouldExecute() {
|
|
116
120
|
return (this.config.get('environment') === 'spo' &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/spfx/
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/spfx/adaptive-card-extension-manifest.schema.json",
|
|
3
3
|
"id": "<%= componentId %>",
|
|
4
4
|
"alias": "<%= componentAlias %>",
|
|
5
5
|
"componentType": "AdaptiveCardExtension",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
|
14
14
|
"requiresCustomScript": false,
|
|
15
15
|
"supportedHosts": ["Dashboard"],
|
|
16
|
-
"supportsThemeVariants": true,
|
|
17
16
|
"preconfiguredEntries": [{
|
|
18
17
|
"groupId": "bd067b1e-3ad5-4d5d-a5fe-505f07d7f59c", // Dashboard
|
|
19
18
|
"group": { "default": "Dashboard" },
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"officeFabricIconFontName": "SharePointLogo",
|
|
23
22
|
"properties": {
|
|
24
23
|
"title": "<%= componentNameUnescaped %>"
|
|
25
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"cardSize": "Medium"
|
|
26
26
|
}]
|
|
27
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/spfx/
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/spfx/adaptive-card-extension-manifest.schema.json",
|
|
3
3
|
"id": "<%= componentId %>",
|
|
4
4
|
"alias": "<%= componentAlias %>",
|
|
5
5
|
"componentType": "AdaptiveCardExtension",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
|
14
14
|
"requiresCustomScript": false,
|
|
15
15
|
"supportedHosts": ["Dashboard"],
|
|
16
|
-
"supportsThemeVariants": true,
|
|
17
16
|
"preconfiguredEntries": [{
|
|
18
17
|
"groupId": "bd067b1e-3ad5-4d5d-a5fe-505f07d7f59c", // Dashboard
|
|
19
18
|
"group": { "default": "Dashboard" },
|
|
@@ -46,6 +46,6 @@ export default class <%= componentClassName %> extends BaseAdaptiveCardExtension
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
|
|
49
|
-
return this._deferredPropertyPane
|
|
49
|
+
return this._deferredPropertyPane?.getPropertyPaneConfiguration();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -76,7 +80,7 @@ class ApplicationCustomizerGenerator extends BaseExtension.BaseExtensionGenerato
|
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
end() {
|
|
79
|
-
|
|
83
|
+
super.end();
|
|
80
84
|
}
|
|
81
85
|
includeClientSideInstances() {
|
|
82
86
|
return true;
|
|
@@ -30,7 +30,9 @@ export default class <%= componentClassName %>
|
|
|
30
30
|
message = '(No properties were provided.)';
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
Dialog.alert(`Hello from ${strings.Title}:\n\n${message}`)
|
|
33
|
+
Dialog.alert(`Hello from ${strings.Title}:\n\n${message}`).catch(() => {
|
|
34
|
+
/* handle error */
|
|
35
|
+
});
|
|
34
36
|
|
|
35
37
|
return Promise.resolve();
|
|
36
38
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -77,7 +81,7 @@ class CommandSetGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
end() {
|
|
80
|
-
|
|
84
|
+
super.end();
|
|
81
85
|
}
|
|
82
86
|
includeClientSideInstances() {
|
|
83
87
|
return true;
|
|
@@ -7,8 +7,6 @@ import {
|
|
|
7
7
|
} from '@microsoft/sp-listview-extensibility';
|
|
8
8
|
import { Dialog } from '@microsoft/sp-dialog';
|
|
9
9
|
|
|
10
|
-
import * as strings from '<%= componentStrings %>';
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* If your command set uses the ClientSideComponentProperties JSON input,
|
|
14
12
|
* it will be deserialized into the BaseExtension.properties object.
|
|
@@ -39,10 +37,14 @@ export default class <%= componentClassName %> extends BaseListViewCommandSet<I<
|
|
|
39
37
|
public onExecute(event: IListViewCommandSetExecuteEventParameters): void {
|
|
40
38
|
switch (event.itemId) {
|
|
41
39
|
case 'COMMAND_1':
|
|
42
|
-
Dialog.alert(`${this.properties.sampleTextOne}`)
|
|
40
|
+
Dialog.alert(`${this.properties.sampleTextOne}`).catch(() => {
|
|
41
|
+
/* handle error */
|
|
42
|
+
});
|
|
43
43
|
break;
|
|
44
44
|
case 'COMMAND_2':
|
|
45
|
-
Dialog.alert(`${this.properties.sampleTextTwo}`)
|
|
45
|
+
Dialog.alert(`${this.properties.sampleTextTwo}`).catch(() => {
|
|
46
|
+
/* handle error */
|
|
47
|
+
});
|
|
46
48
|
break;
|
|
47
49
|
default:
|
|
48
50
|
throw new Error('Unknown command');
|
|
@@ -55,10 +57,12 @@ export default class <%= componentClassName %> extends BaseListViewCommandSet<I<
|
|
|
55
57
|
const compareOneCommand: Command = this.tryGetCommand('COMMAND_1');
|
|
56
58
|
if (compareOneCommand) {
|
|
57
59
|
// This command should be hidden unless exactly one row is selected.
|
|
58
|
-
compareOneCommand.visible = this.context.listView.selectedRows
|
|
60
|
+
compareOneCommand.visible = this.context.listView.selectedRows?.length === 1;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
// TODO: Add your logic here
|
|
62
|
-
|
|
64
|
+
|
|
65
|
+
// You should call this.raiseOnChage() to update the command bar
|
|
66
|
+
this.raiseOnChange();
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IConfigBundle } from '@microsoft/spfx-heft-plugins';
|
|
2
2
|
import { AvailableTemplates, BaseGenerator, IBaseOptions } from '../../common/BaseGenerator';
|
|
3
|
+
declare type ESLintProfiles = 'react' | 'default';
|
|
3
4
|
export interface IBaseComponentShared {
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated use {@link template} instead.
|
|
@@ -21,6 +22,7 @@ export interface IBaseComponentContext extends IBaseComponentShared {
|
|
|
21
22
|
componentAlias: string;
|
|
22
23
|
componentStrings: string;
|
|
23
24
|
componentNameUnescaped: string;
|
|
25
|
+
eslintProfile: ESLintProfiles;
|
|
24
26
|
}
|
|
25
27
|
export declare function defineOptions<TOptions extends IBaseOptions, TContext>(generator: BaseGenerator<TOptions, TContext>, type: string): void;
|
|
26
28
|
export declare abstract class BaseComponentGenerator<IOptions extends IBaseComponentOptions, IContext extends IBaseComponentContext> extends BaseGenerator<IOptions, IContext> {
|
|
@@ -31,10 +33,12 @@ export declare abstract class BaseComponentGenerator<IOptions extends IBaseCompo
|
|
|
31
33
|
/** The name of the folder that this comonent should have its template copied to */
|
|
32
34
|
protected abstract readonly folderName: string;
|
|
33
35
|
protected abstract readonly allowedTemplates: AvailableTemplates[];
|
|
36
|
+
private _shouldLogESLintWarning;
|
|
34
37
|
prompting(): Promise<void>;
|
|
35
38
|
configuring(bundleEntry?: IConfigBundle): void;
|
|
36
39
|
writing(shouldWrite?: boolean): void;
|
|
37
40
|
install(): void;
|
|
41
|
+
end(): void;
|
|
38
42
|
protected _getOutputFolder(componentNameCamelCase: string): string;
|
|
39
43
|
private checkSolution;
|
|
40
44
|
}
|
|
@@ -48,4 +52,5 @@ export interface INormalizedComponentNames {
|
|
|
48
52
|
componentAlias: string;
|
|
49
53
|
}
|
|
50
54
|
export declare function normalizeComponentNames(componentNameUnescaped: string, componentType: string): INormalizedComponentNames;
|
|
55
|
+
export {};
|
|
51
56
|
//# sourceMappingURL=BaseComponentGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/component/BaseComponentGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAM7D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI7F,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,EAAE,YAAY;IAC/E,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2BAA2B,EAAE,MAAM,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/component/BaseComponentGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAM7D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI7F,aAAK,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,EAAE,YAAY;IAC/E,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2BAA2B,EAAE,MAAM,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;CAC/B;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,EACnE,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,MAAM,GACX,IAAI,CAkBN;AAED,8BAAsB,sBAAsB,CAC1C,QAAQ,SAAS,qBAAqB,EACtC,QAAQ,SAAS,qBAAqB,CACtC,SAAQ,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACzC,mEAAmE;IACnE,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IACjD,0GAA0G;IAC1G,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC7C,mFAAmF;IACnF,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC/C,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IAEnE,OAAO,CAAC,uBAAuB,CAAkB;IAEpC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAwFhC,WAAW,CAAC,WAAW,CAAC,EAAE,aAAa,GAAG,IAAI;IAqC9C,OAAO,CAAC,WAAW,GAAE,OAAc,GAAG,IAAI;IAa1C,OAAO,IAAI,IAAI;IAOf,GAAG,IAAI,IAAI;IAUlB,SAAS,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,MAAM,GAAG,MAAM;YAIpD,aAAa;CAQ5B;AAED,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B,EAAE,MAAM,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,uBAAuB,CACrC,sBAAsB,EAAE,MAAM,EAC9B,aAAa,EAAE,MAAM,GACpB,yBAAyB,CA0C3B"}
|