@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];
|
|
@@ -80,7 +84,7 @@ class WebpartGenerator extends BaseComponent.BaseComponentGenerator {
|
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
end() {
|
|
83
|
-
|
|
87
|
+
super.end();
|
|
84
88
|
}
|
|
85
89
|
shouldExecute() {
|
|
86
90
|
return this.config.get('environment') === 'spo' && this.config.get('componentType') === 'webpart';
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
"*.sharepoint-df.com",
|
|
36
36
|
"spoppe-a.akamaihd.net",
|
|
37
37
|
"spoprod-a.akamaihd.net",
|
|
38
|
+
"modernb.akamai.odsp.cdn.office.net",
|
|
39
|
+
"modernb.verizon.odsp.cdn.office.net",
|
|
40
|
+
"res-1-sdf.cdn.office.net",
|
|
41
|
+
"res-2-sdf.cdn.office.net",
|
|
42
|
+
"res-1.cdn.office.net",
|
|
43
|
+
"res-2.cdn.office.net",
|
|
38
44
|
"resourceseng.blob.core.windows.net",
|
|
39
45
|
"odspwebdevdeploy.blob.core.windows.net",
|
|
40
46
|
"msft.spoppe.com"
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"supportsThemeVariants": true,
|
|
17
17
|
|
|
18
18
|
"preconfiguredEntries": [{
|
|
19
|
-
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", //
|
|
20
|
-
"group": { "default": "
|
|
19
|
+
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Advanced
|
|
20
|
+
"group": { "default": "Advanced" },
|
|
21
21
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
22
22
|
"description": { "default": "<%= componentDescription %>" },
|
|
23
23
|
"officeFabricIconFontName": "Page",
|
|
@@ -24,17 +24,17 @@ export default class <%= componentName %> extends React.Component<I<%= component
|
|
|
24
24
|
<div>
|
|
25
25
|
<h3>Welcome to SharePoint Framework!</h3>
|
|
26
26
|
<p>
|
|
27
|
-
The SharePoint Framework (SPFx) is a extensibility model for Microsoft Viva, Microsoft Teams and SharePoint. It
|
|
27
|
+
The SharePoint Framework (SPFx) is a extensibility model for Microsoft Viva, Microsoft Teams and SharePoint. It's the easiest way to extend Microsoft 365 with automatic Single Sign On, automatic hosting and industry standard tooling.
|
|
28
28
|
</p>
|
|
29
29
|
<h4>Learn more about SPFx development:</h4>
|
|
30
30
|
<ul className={styles.links}>
|
|
31
|
-
<li><a href="https://aka.ms/spfx" target="_blank">SharePoint Framework Overview</a></li>
|
|
32
|
-
<li><a href="https://aka.ms/spfx-yeoman-graph" target="_blank">Use Microsoft Graph in your solution</a></li>
|
|
33
|
-
<li><a href="https://aka.ms/spfx-yeoman-teams" target="_blank">Build for Microsoft Teams using SharePoint Framework</a></li>
|
|
34
|
-
<li><a href="https://aka.ms/spfx-yeoman-viva" target="_blank">Build for Microsoft Viva Connections using SharePoint Framework</a></li>
|
|
35
|
-
<li><a href="https://aka.ms/spfx-yeoman-store" target="_blank">Publish SharePoint Framework applications to the marketplace</a></li>
|
|
36
|
-
<li><a href="https://aka.ms/spfx-yeoman-api" target="_blank">SharePoint Framework API reference</a></li>
|
|
37
|
-
<li><a href="https://aka.ms/m365pnp" target="_blank">Microsoft 365 Developer Community</a></li>
|
|
31
|
+
<li><a href="https://aka.ms/spfx" target="_blank" rel="noreferrer">SharePoint Framework Overview</a></li>
|
|
32
|
+
<li><a href="https://aka.ms/spfx-yeoman-graph" target="_blank" rel="noreferrer">Use Microsoft Graph in your solution</a></li>
|
|
33
|
+
<li><a href="https://aka.ms/spfx-yeoman-teams" target="_blank" rel="noreferrer">Build for Microsoft Teams using SharePoint Framework</a></li>
|
|
34
|
+
<li><a href="https://aka.ms/spfx-yeoman-viva" target="_blank" rel="noreferrer">Build for Microsoft Viva Connections using SharePoint Framework</a></li>
|
|
35
|
+
<li><a href="https://aka.ms/spfx-yeoman-store" target="_blank" rel="noreferrer">Publish SharePoint Framework applications to the marketplace</a></li>
|
|
36
|
+
<li><a href="https://aka.ms/spfx-yeoman-api" target="_blank" rel="noreferrer">SharePoint Framework API reference</a></li>
|
|
37
|
+
<li><a href="https://aka.ms/m365pnp" target="_blank" rel="noreferrer">Microsoft 365 Developer Community</a></li>
|
|
38
38
|
</ul>
|
|
39
39
|
</div>
|
|
40
40
|
</section>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"engines": {
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"homepage": "http://aka.ms/spfx",
|
|
14
14
|
"main": "lib/generators/app/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@microsoft/spfx-heft-plugins": "1.15.
|
|
17
|
-
"@rushstack/node-core-library": "3.45.
|
|
16
|
+
"@microsoft/spfx-heft-plugins": "1.15.2",
|
|
17
|
+
"@rushstack/node-core-library": "3.45.5",
|
|
18
18
|
"colors": "~1.2.1",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
20
|
"update-notifier": "5.1.0",
|
|
21
21
|
"uuid": "~3.1.0",
|
|
22
|
-
"yeoman-generator": "5.
|
|
22
|
+
"yeoman-generator": "5.6.1",
|
|
23
23
|
"yosay": "2.0.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./node_modules/@microsoft/sp-tslint-rules/base-tslint.json",
|
|
3
|
-
"rules": {
|
|
4
|
-
"class-name": false,
|
|
5
|
-
"export-name": false,
|
|
6
|
-
"forin": false,
|
|
7
|
-
"label-position": false,
|
|
8
|
-
"member-access": true,
|
|
9
|
-
"no-arg": false,
|
|
10
|
-
"no-console": false,
|
|
11
|
-
"no-construct": false,
|
|
12
|
-
"no-duplicate-variable": true,
|
|
13
|
-
"no-eval": false,
|
|
14
|
-
"no-function-expression": true,
|
|
15
|
-
"no-internal-module": true,
|
|
16
|
-
"no-shadowed-variable": true,
|
|
17
|
-
"no-switch-case-fall-through": true,
|
|
18
|
-
"no-unnecessary-semicolons": true,
|
|
19
|
-
"no-unused-expression": true,
|
|
20
|
-
"no-with-statement": true,
|
|
21
|
-
"semicolon": true,
|
|
22
|
-
"trailing-comma": false,
|
|
23
|
-
"typedef": false,
|
|
24
|
-
"typedef-whitespace": false,
|
|
25
|
-
"use-named-parameter": true,
|
|
26
|
-
"variable-name": false,
|
|
27
|
-
"whitespace": false
|
|
28
|
-
}
|
|
29
|
-
}
|