@microsoft/generator-sharepoint 1.15.0-beta.1 → 1.15.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/BaseGenerator.js +5 -1
- package/lib/common/JsonManager.js +5 -1
- package/lib/common/ServeJsonManager.js +5 -1
- package/lib/common/YeomanConfiguration.d.ts +2 -0
- package/lib/common/YeomanConfiguration.d.ts.map +1 -1
- package/lib/common/YeomanConfiguration.js +8 -1
- package/lib/common/dependencies.json +82 -52
- package/lib/common/spsay.d.ts +1 -1
- package/lib/common/spsay.d.ts.map +1 -1
- package/lib/common/spsay.js +9 -9
- 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/quickView/QuickView.ts +1 -1
- package/lib/generators/app/index.d.ts.map +1 -1
- package/lib/generators/app/index.js +9 -2
- 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 +7 -5
- package/lib/generators/component/BaseComponentGenerator.d.ts +3 -0
- package/lib/generators/component/BaseComponentGenerator.d.ts.map +1 -1
- package/lib/generators/component/BaseComponentGenerator.js +26 -1
- package/lib/generators/component/index.js +5 -1
- package/lib/generators/component/templates/eslint/default.eslintrc.js +5 -0
- package/lib/generators/component/templates/eslint/react.eslintrc.js +5 -0
- package/lib/generators/extension/BaseExtensionGenerator.d.ts +2 -1
- package/lib/generators/extension/BaseExtensionGenerator.d.ts.map +1 -1
- package/lib/generators/extension/BaseExtensionGenerator.js +13 -4
- package/lib/generators/extension/index.d.ts +2 -1
- package/lib/generators/extension/index.d.ts.map +1 -1
- package/lib/generators/extension/index.js +12 -2
- package/lib/generators/fieldCustomizer/index.js +6 -2
- package/lib/generators/fieldCustomizer/templates/minimal/{componentClassName}.module.scss +1 -1
- package/lib/generators/fieldCustomizer/templates/minimal/{componentClassName}.ts +1 -1
- package/lib/generators/fieldCustomizer/templates/none/{componentClassName}.module.scss +1 -1
- package/lib/generators/fieldCustomizer/templates/none/{componentClassName}.ts +1 -1
- package/lib/generators/fieldCustomizer/templates/react/components/{componentName}.module.scss +1 -1
- package/lib/generators/fieldCustomizer/templates/react/components/{componentName}.tsx +1 -1
- package/lib/generators/formCustomizer/index.d.ts +24 -0
- package/lib/generators/formCustomizer/index.d.ts.map +1 -0
- package/lib/generators/formCustomizer/index.js +142 -0
- package/lib/generators/formCustomizer/templates/base/{componentClassName}.manifest.json +17 -0
- package/lib/generators/formCustomizer/templates/loc/en-us.js +7 -0
- package/lib/generators/formCustomizer/templates/loc/myStrings.d.ts +10 -0
- package/lib/generators/formCustomizer/templates/none/{componentClassName}.module.scss +5 -0
- package/lib/generators/formCustomizer/templates/none/{componentClassName}.ts +53 -0
- package/lib/generators/formCustomizer/templates/react/components/{componentName}.module.scss +5 -0
- package/lib/generators/formCustomizer/templates/react/components/{componentName}.tsx +28 -0
- package/lib/generators/formCustomizer/templates/react/{componentClassName}.ts +64 -0
- package/lib/generators/library/index.js +6 -2
- package/lib/generators/searchQueryModifier/index.js +6 -2
- package/lib/generators/solution/index.js +6 -1
- package/lib/generators/solution/templates/base/.vscode/settings.json +13 -0
- package/lib/generators/solution/templates/spo/tsconfig.json +1 -1
- package/lib/generators/webpart/index.js +6 -2
- package/lib/generators/webpart/initial.teamsManifest.json +6 -0
- package/lib/generators/webpart/templates/none/{componentClassName}.ts +6 -3
- package/lib/generators/webpart/templates/react/components/{componentName}.tsx +8 -8
- package/lib/generators/webpart/templates/react/{componentClassName}.ts +6 -3
- 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];
|
|
@@ -19,5 +19,7 @@ export declare class YeomanConfiguration {
|
|
|
19
19
|
static set environment(value: 'spo');
|
|
20
20
|
static get packageManager(): 'npm' | 'pnpm' | 'yarn';
|
|
21
21
|
static set packageManager(value: 'npm' | 'pnpm' | 'yarn');
|
|
22
|
+
static get useHeft(): boolean;
|
|
23
|
+
static set useHeft(value: boolean);
|
|
22
24
|
}
|
|
23
25
|
//# sourceMappingURL=YeomanConfiguration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YeomanConfiguration.d.ts","sourceRoot":"","sources":["../../src/common/YeomanConfiguration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"YeomanConfiguration.d.ts","sourceRoot":"","sources":["../../src/common/YeomanConfiguration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;CAC5B;AAaD;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,CAA2B;WAElC,QAAQ,CAAC,mBAAmB,EAAE,wBAAwB,GAAG,IAAI;IAI3E,WAAkB,WAAW,IAAI,MAAM,CAEtC;IACD,WAAkB,WAAW,CAAC,KAAK,EAAE,MAAM,EAE1C;IAED,WAAkB,OAAO,IAAI,MAAM,CAElC;IACD,WAAkB,OAAO,CAAC,KAAK,EAAE,MAAM,EAEtC;IAED,WAAkB,SAAS,IAAI,MAAM,CAEpC;IACD,WAAkB,SAAS,CAAC,KAAK,EAAE,MAAM,EAExC;IAED,WAAkB,WAAW,IAAI,KAAK,CAErC;IAED,WAAkB,WAAW,CAAC,KAAK,EAAE,KAAK,EAEzC;IAED,WAAkB,cAAc,IAAI,KAAK,GAAG,MAAM,GAAG,MAAM,CAE1D;IAED,WAAkB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,EAE9D;IAED,WAAkB,OAAO,IAAI,OAAO,CAEnC;IAED,WAAkB,OAAO,CAAC,KAAK,EAAE,OAAO,EAEvC;CACF"}
|
|
@@ -8,7 +8,8 @@ const _strings = {
|
|
|
8
8
|
version: 'version',
|
|
9
9
|
libraryId: 'libraryId',
|
|
10
10
|
environment: 'environment',
|
|
11
|
-
packageManager: 'packageManager'
|
|
11
|
+
packageManager: 'packageManager',
|
|
12
|
+
useHeft: 'useHeft'
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* This class wraps an untyped property bag with types for
|
|
@@ -48,6 +49,12 @@ class YeomanConfiguration {
|
|
|
48
49
|
static set packageManager(value) {
|
|
49
50
|
YeomanConfiguration._store.set(_strings.packageManager, value);
|
|
50
51
|
}
|
|
52
|
+
static get useHeft() {
|
|
53
|
+
return YeomanConfiguration._store.get(_strings.useHeft);
|
|
54
|
+
}
|
|
55
|
+
static set useHeft(value) {
|
|
56
|
+
YeomanConfiguration._store.set(_strings.useHeft, value);
|
|
57
|
+
}
|
|
51
58
|
}
|
|
52
59
|
exports.YeomanConfiguration = YeomanConfiguration;
|
|
53
60
|
//# sourceMappingURL=YeomanConfiguration.js.map
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
6
|
-
"@microsoft/sp-property-pane": "1.15.0
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.15.0
|
|
5
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.15.0",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.15.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
16
|
-
"@microsoft/sp-property-pane": "1.15.0
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.15.0
|
|
15
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.15.0",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.15.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.15.0
|
|
28
|
-
"@microsoft/sp-application-base": "1.15.0
|
|
27
|
+
"@microsoft/sp-dialog": "1.15.0",
|
|
28
|
+
"@microsoft/sp-application-base": "1.15.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.15.0
|
|
37
|
-
"@microsoft/sp-application-base": "1.15.0
|
|
36
|
+
"@microsoft/sp-dialog": "1.15.0",
|
|
37
|
+
"@microsoft/sp-application-base": "1.15.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.15.0
|
|
46
|
-
"@microsoft/sp-dialog": "1.15.0
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.15.0",
|
|
46
|
+
"@microsoft/sp-dialog": "1.15.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.15.0
|
|
55
|
-
"@microsoft/sp-dialog": "1.15.0
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.15.0",
|
|
55
|
+
"@microsoft/sp-dialog": "1.15.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.15.0
|
|
64
|
-
"@microsoft/decorators": "1.15.0
|
|
63
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
64
|
+
"@microsoft/decorators": "1.15.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
73
|
-
"@microsoft/decorators": "1.15.0
|
|
72
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
73
|
+
"@microsoft/decorators": "1.15.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.15.0
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.15.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.15.0
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.15.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.15.0
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
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.0
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.15.0"
|
|
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.0
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.15.0"
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
139
|
"plusBeta": null
|
|
@@ -140,40 +141,43 @@
|
|
|
140
141
|
"webpart": {
|
|
141
142
|
"standard": {
|
|
142
143
|
"dependencies": {
|
|
143
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
144
|
-
"@microsoft/sp-property-pane": "1.15.0
|
|
145
|
-
"@microsoft/sp-webpart-base": "1.15.0
|
|
146
|
-
"@microsoft/sp-lodash-subset": "1.15.0
|
|
147
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.0
|
|
144
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
145
|
+
"@microsoft/sp-property-pane": "1.15.0",
|
|
146
|
+
"@microsoft/sp-webpart-base": "1.15.0",
|
|
147
|
+
"@microsoft/sp-lodash-subset": "1.15.0",
|
|
148
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.0"
|
|
148
149
|
},
|
|
149
150
|
"devDependencies": {
|
|
150
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
151
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
"plusBeta": {
|
|
154
155
|
"dependencies": {
|
|
155
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
156
|
-
"@microsoft/sp-property-pane": "1.15.0
|
|
157
|
-
"@microsoft/sp-webpart-base": "1.15.0
|
|
158
|
-
"@microsoft/sp-lodash-subset": "1.15.0
|
|
159
|
-
"@microsoft/sp-office-ui-fabric-core": "1.15.0
|
|
156
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
157
|
+
"@microsoft/sp-property-pane": "1.15.0",
|
|
158
|
+
"@microsoft/sp-webpart-base": "1.15.0",
|
|
159
|
+
"@microsoft/sp-lodash-subset": "1.15.0",
|
|
160
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.0"
|
|
160
161
|
},
|
|
161
162
|
"devDependencies": {
|
|
162
|
-
"@microsoft/sp-module-interfaces": "1.15.0
|
|
163
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
},
|
|
166
167
|
"useHeft": {
|
|
167
168
|
"standard": {
|
|
168
169
|
"dependencies": {
|
|
169
|
-
"tslib": "
|
|
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.0",
|
|
176
|
+
"@microsoft/eslint-config-spfx": "1.15.0",
|
|
177
|
+
"@microsoft/spfx-web-build-rig": "1.15.0",
|
|
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
|
|
@@ -181,17 +185,43 @@
|
|
|
181
185
|
"useGulp": {
|
|
182
186
|
"standard": {
|
|
183
187
|
"dependencies": {
|
|
184
|
-
"tslib": "
|
|
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.0",
|
|
194
|
+
"@microsoft/eslint-config-spfx": "1.15.0",
|
|
195
|
+
"@microsoft/sp-build-web": "1.15.0",
|
|
190
196
|
"@types/webpack-env": "~1.15.2",
|
|
191
197
|
"ajv": "^6.12.5",
|
|
192
198
|
"gulp": "4.0.2"
|
|
193
199
|
}
|
|
194
200
|
},
|
|
195
201
|
"plusBeta": null
|
|
202
|
+
},
|
|
203
|
+
"formCustomizer": {
|
|
204
|
+
"standard": {
|
|
205
|
+
"dependencies": {
|
|
206
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
207
|
+
"@microsoft/sp-listview-extensibility": "1.15.0",
|
|
208
|
+
"@microsoft/sp-lodash-subset": "1.15.0",
|
|
209
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.0"
|
|
210
|
+
},
|
|
211
|
+
"devDependencies": {
|
|
212
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"plusBeta": {
|
|
216
|
+
"dependencies": {
|
|
217
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
218
|
+
"@microsoft/sp-listview-extensibility": "1.15.0",
|
|
219
|
+
"@microsoft/sp-lodash-subset": "1.15.0",
|
|
220
|
+
"@microsoft/sp-office-ui-fabric-core": "1.15.0"
|
|
221
|
+
},
|
|
222
|
+
"devDependencies": {
|
|
223
|
+
"@microsoft/sp-module-interfaces": "1.15.0"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
196
226
|
}
|
|
197
227
|
}
|
package/lib/common/spsay.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function spsay(solutionName: string): string;
|
|
1
|
+
export default function spsay(solutionName: string, useHeft: boolean): string;
|
|
2
2
|
//# sourceMappingURL=spsay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spsay.d.ts","sourceRoot":"","sources":["../../src/common/spsay.ts"],"names":[],"mappings":"AAuDA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"spsay.d.ts","sourceRoot":"","sources":["../../src/common/spsay.ts"],"names":[],"mappings":"AAuDA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAK5E"}
|
package/lib/common/spsay.js
CHANGED
|
@@ -22,16 +22,16 @@ function times(n, character) {
|
|
|
22
22
|
function space(n) {
|
|
23
23
|
return times(n, ' ');
|
|
24
24
|
}
|
|
25
|
-
function getWords(solutionName) {
|
|
25
|
+
function getWords(solutionName, useHeft) {
|
|
26
26
|
const words = [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
`Congratulations!`,
|
|
28
|
+
`Solution ${solutionName} is created.`,
|
|
29
|
+
`Run ${useHeft ? 'npm run start' : 'gulp serve'} to play with it!`
|
|
30
30
|
];
|
|
31
31
|
const colorWords = [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
`Congratulations!`,
|
|
33
|
+
`Solution ${colors_1.default.cyan(solutionName)} is created.`,
|
|
34
|
+
`Run ${colors_1.default.yellow(useHeft ? 'npm run start' : 'gulp serve')} to play with it!`
|
|
35
35
|
];
|
|
36
36
|
const maxLength = Math.max.apply(undefined, words.map((word) => word.length));
|
|
37
37
|
const formatted = colorWords.map((word, index) => {
|
|
@@ -46,9 +46,9 @@ function getWords(solutionName) {
|
|
|
46
46
|
.concat(["'" + times(maxLength + 4, '-') + "'"]);
|
|
47
47
|
return wrapped;
|
|
48
48
|
}
|
|
49
|
-
function spsay(solutionName) {
|
|
49
|
+
function spsay(solutionName, useHeft) {
|
|
50
50
|
const colorLogo = logo.map((line) => colors_1.default.cyan(line));
|
|
51
|
-
const words = getWords(solutionName);
|
|
51
|
+
const words = getWords(solutionName, useHeft);
|
|
52
52
|
const lines = lodash.zip(colorLogo, words).map((parts) => parts.join(''));
|
|
53
53
|
return '\n' + lines.join('\n') + '\n';
|
|
54
54
|
}
|
|
@@ -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" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAIzE,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"AAMA,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"}
|
|
@@ -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];
|
|
@@ -40,6 +44,7 @@ const FieldCustomizer = __importStar(require("../fieldCustomizer"));
|
|
|
40
44
|
const CommandSet = __importStar(require("../commandSet"));
|
|
41
45
|
const SearchQueryModifier = __importStar(require("../searchQueryModifier"));
|
|
42
46
|
const ApplicationCustomizer = __importStar(require("../applicationCustomizer"));
|
|
47
|
+
const FormCustomizer = __importStar(require("../formCustomizer"));
|
|
43
48
|
const VERSION = require('../../../package.json').version;
|
|
44
49
|
function composeWith(base, options) {
|
|
45
50
|
Utils.compose(path.basename(__dirname), base, options);
|
|
@@ -145,6 +150,7 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
145
150
|
CommandSet.composeWith(this, baseOption);
|
|
146
151
|
SearchQueryModifier.composeWith(this, baseOption);
|
|
147
152
|
ApplicationCustomizer.composeWith(this, baseOption);
|
|
153
|
+
FormCustomizer.composeWith(this, baseOption);
|
|
148
154
|
}
|
|
149
155
|
prompting() {
|
|
150
156
|
// Configure the solution root folder before other composition.
|
|
@@ -164,7 +170,8 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
164
170
|
}
|
|
165
171
|
end() {
|
|
166
172
|
const libraryName = YeomanConfiguration_1.YeomanConfiguration.libraryName;
|
|
167
|
-
|
|
173
|
+
const useHeft = YeomanConfiguration_1.YeomanConfiguration.useHeft;
|
|
174
|
+
this.log((0, spsay_1.default)(libraryName, useHeft));
|
|
168
175
|
}
|
|
169
176
|
_provideRetirementNote() {
|
|
170
177
|
this.log(colors_1.default.bold(`See ${colors_1.default.underline(colors_1.default.blue('https://aka.ms/spfx-yeoman-info'))} for more information on how to use this generator.`));
|
|
@@ -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;
|