@pnp/cli-microsoft365 11.2.0-beta.e0616e6 → 11.3.0-beta.ad8e99a
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/onenote/commands/notebook/notebook-add.js +4 -3
- package/dist/m365/onenote/commands/notebook/notebook-list.js +6 -17
- package/dist/m365/onenote/commands/page/page-list.js +5 -8
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.22.0-beta.1.js → doctor-1.22.0.js} +3 -3
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +21 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_css_loader.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002035_DEVDEP_types_heft_jest.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +7 -44
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +18 -9
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021008_PKG_scripts_start.js → FN021007_PKG_scripts_start.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021012_PKG_scripts_eject_webpack.js → FN021008_PKG_scripts_eject_webpack.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021013_PKG_overrides_rushstack_heft.js → FN021009_PKG_overrides_rushstack_heft.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name.js +50 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount.js +50 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.22.0-beta.1.js → upgrade-1.22.0.js} +80 -155
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +55 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +42 -1
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- package/dist/m365/spfx/commands/spfx-doctor.js +43 -3
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +4 -0
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +8 -2
- package/dist/m365/spo/commands/commandset/commandset-add.js +4 -0
- package/dist/m365/spo/commands/commandset/commandset-set.js +8 -1
- package/dist/m365/teams/commands/channel/channel-add.js +13 -33
- package/dist/utils/stringUtil.js +4 -0
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +20 -1
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +22 -1
- package/docs/docs/cmd/login.mdx +35 -11
- package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +17 -0
- package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +17 -0
- package/docs/docs/cmd/onenote/page/page-list.mdx +18 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +3 -0
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +3 -0
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +3 -0
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +3 -0
- package/npm-shrinkwrap.json +1359 -666
- package/package.json +17 -17
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_jest_junit.js +0 -10
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015012_FILE_config_heft_json.js +0 -10
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015013_FILE_config_jest_config_json.js +0 -10
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_deploy.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_scripts_build_watch.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021010_PKG_scripts_package_solution.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021011_PKG_scripts_deploy_azure_storage.js +0 -45
|
@@ -25,18 +25,20 @@ import { FN002007_DEVDEP_ajv } from './rules/FN002007_DEVDEP_ajv.js';
|
|
|
25
25
|
import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
|
|
26
26
|
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
|
|
27
27
|
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
|
|
28
|
+
import { FN002026_DEVDEP_typescript } from './rules/FN002026_DEVDEP_typescript.js';
|
|
28
29
|
import { FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3 } from './rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js';
|
|
29
30
|
import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
|
|
30
31
|
import { FN002031_DEVDEP_rushstack_heft } from './rules/FN002031_DEVDEP_rushstack_heft.js';
|
|
31
32
|
import { FN002032_DEVDEP_typescript_eslint_parser } from './rules/FN002032_DEVDEP_typescript_eslint_parser.js';
|
|
32
|
-
import {
|
|
33
|
+
import { FN002033_DEVDEP_css_loader } from './rules/FN002033_DEVDEP_css_loader.js';
|
|
34
|
+
import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js';
|
|
35
|
+
import { FN002035_DEVDEP_types_heft_jest } from './rules/FN002035_DEVDEP_types_heft_jest.js';
|
|
33
36
|
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
34
37
|
import { FN010011_YORC_useGulp } from './rules/FN010011_YORC_useGulp.js';
|
|
38
|
+
import { FN014003_CODE_launch } from './rules/FN014003_CODE_launch.js';
|
|
35
39
|
import { FN015005_FILE_src_index_ts } from './rules/FN015005_FILE_src_index_ts.js';
|
|
36
40
|
import { FN015010_FILE_gulpfile_js } from './rules/FN015010_FILE_gulpfile_js.js';
|
|
37
41
|
import { FN015011_FILE_tsconfig_json } from './rules/FN015011_FILE_tsconfig_json.js';
|
|
38
|
-
import { FN015012_FILE_config_heft_json } from './rules/FN015012_FILE_config_heft_json.js';
|
|
39
|
-
import { FN015013_FILE_config_jest_config_json } from './rules/FN015013_FILE_config_jest_config_json.js';
|
|
40
42
|
import { FN015014_FILE_config_rig_json } from './rules/FN015014_FILE_config_rig_json.js';
|
|
41
43
|
import { FN015015_FILE_config_typescript_json } from './rules/FN015015_FILE_config_typescript_json.js';
|
|
42
44
|
import { FN020001_RES_types_react } from './rules/FN020001_RES_types_react.js';
|
|
@@ -44,161 +46,84 @@ import { FN021001_PKG_main } from './rules/FN021001_PKG_main.js';
|
|
|
44
46
|
import { FN021004_PKG_scripts_build } from './rules/FN021004_PKG_scripts_build.js';
|
|
45
47
|
import { FN021005_PKG_scripts_test } from './rules/FN021005_PKG_scripts_test.js';
|
|
46
48
|
import { FN021006_PKG_scripts_clean } from './rules/FN021006_PKG_scripts_clean.js';
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import { FN021010_PKG_scripts_package_solution } from './rules/FN021010_PKG_scripts_package_solution.js';
|
|
51
|
-
import { FN021011_PKG_scripts_deploy_azure_storage } from './rules/FN021011_PKG_scripts_deploy_azure_storage.js';
|
|
52
|
-
import { FN021012_PKG_scripts_eject_webpack } from './rules/FN021012_PKG_scripts_eject_webpack.js';
|
|
53
|
-
import { FN021013_PKG_overrides_rushstack_heft } from './rules/FN021013_PKG_overrides_rushstack_heft.js';
|
|
49
|
+
import { FN021007_PKG_scripts_start } from './rules/FN021007_PKG_scripts_start.js';
|
|
50
|
+
import { FN021008_PKG_scripts_eject_webpack } from './rules/FN021008_PKG_scripts_eject_webpack.js';
|
|
51
|
+
import { FN021009_PKG_overrides_rushstack_heft } from './rules/FN021009_PKG_overrides_rushstack_heft.js';
|
|
54
52
|
import { FN023003_GITIGNORE_libdts } from './rules/FN023003_GITIGNORE_libdts.js';
|
|
55
53
|
import { FN023004_GITIGNORE_libcommonjs } from './rules/FN023004_GITIGNORE_libcommonjs.js';
|
|
56
54
|
import { FN023005_GITIGNORE_libesm } from './rules/FN023005_GITIGNORE_libesm.js';
|
|
57
55
|
import { FN023006_GITIGNORE_jestoutput } from './rules/FN023006_GITIGNORE_jestoutput.js';
|
|
56
|
+
import { FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name } from './rules/FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name.js';
|
|
57
|
+
import { FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount } from './rules/FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount.js';
|
|
58
|
+
import { FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name } from './rules/FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name.js';
|
|
59
|
+
import { FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount } from './rules/FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount.js';
|
|
58
60
|
import { FN026001_CFG_SASS_schema } from './rules/FN026001_CFG_SASS_schema.js';
|
|
59
61
|
import { FN026002_CFG_SASS_extends } from './rules/FN026002_CFG_SASS_extends.js';
|
|
60
62
|
export default [
|
|
61
|
-
new FN001001_DEP_microsoft_sp_core_library('1.22.0
|
|
62
|
-
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.0
|
|
63
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0
|
|
64
|
-
new FN001004_DEP_microsoft_sp_webpart_base('1.22.0
|
|
65
|
-
new FN001011_DEP_microsoft_sp_dialog('1.22.0
|
|
66
|
-
new FN001012_DEP_microsoft_sp_application_base('1.22.0
|
|
67
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0
|
|
68
|
-
new FN001021_DEP_microsoft_sp_property_pane('1.22.0
|
|
69
|
-
new FN001023_DEP_microsoft_sp_component_base('1.22.0
|
|
70
|
-
new FN001024_DEP_microsoft_sp_diagnostics('1.22.0
|
|
71
|
-
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.0
|
|
72
|
-
new FN001026_DEP_microsoft_sp_extension_base('1.22.0
|
|
73
|
-
new FN001027_DEP_microsoft_sp_http('1.22.0
|
|
74
|
-
new FN001028_DEP_microsoft_sp_list_subscription('1.22.0
|
|
75
|
-
new FN001029_DEP_microsoft_sp_loader('1.22.0
|
|
76
|
-
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.0
|
|
77
|
-
new FN001031_DEP_microsoft_sp_odata_types('1.22.0
|
|
78
|
-
new FN001032_DEP_microsoft_sp_page_context('1.22.0
|
|
79
|
-
new FN001013_DEP_microsoft_decorators('1.22.0
|
|
80
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0
|
|
81
|
-
new FN002001_DEVDEP_microsoft_sp_build_web('1.22.0
|
|
82
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0
|
|
63
|
+
new FN001001_DEP_microsoft_sp_core_library('1.22.0'),
|
|
64
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.0'),
|
|
65
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0'),
|
|
66
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.22.0'),
|
|
67
|
+
new FN001011_DEP_microsoft_sp_dialog('1.22.0'),
|
|
68
|
+
new FN001012_DEP_microsoft_sp_application_base('1.22.0'),
|
|
69
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0'),
|
|
70
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.22.0'),
|
|
71
|
+
new FN001023_DEP_microsoft_sp_component_base('1.22.0'),
|
|
72
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.22.0'),
|
|
73
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.0'),
|
|
74
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.22.0'),
|
|
75
|
+
new FN001027_DEP_microsoft_sp_http('1.22.0'),
|
|
76
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.22.0'),
|
|
77
|
+
new FN001029_DEP_microsoft_sp_loader('1.22.0'),
|
|
78
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.0'),
|
|
79
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.22.0'),
|
|
80
|
+
new FN001032_DEP_microsoft_sp_page_context('1.22.0'),
|
|
81
|
+
new FN001013_DEP_microsoft_decorators('1.22.0'),
|
|
82
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0'),
|
|
83
|
+
new FN002001_DEVDEP_microsoft_sp_build_web('1.22.0', false),
|
|
84
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0'),
|
|
83
85
|
new FN002004_DEVDEP_gulp('4.0.2', false),
|
|
84
86
|
new FN002007_DEVDEP_ajv('6.12.6', false),
|
|
85
|
-
new FN002021_DEVDEP_rushstack_eslint_config('4.
|
|
86
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0
|
|
87
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0
|
|
87
|
+
new FN002021_DEVDEP_rushstack_eslint_config('4.5.2'),
|
|
88
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0'),
|
|
89
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0'),
|
|
90
|
+
new FN002026_DEVDEP_typescript('~5.8.0'),
|
|
88
91
|
new FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3('0.1.0', false),
|
|
89
|
-
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0
|
|
90
|
-
new FN002031_DEVDEP_rushstack_heft('
|
|
91
|
-
new FN002032_DEVDEP_typescript_eslint_parser('8.
|
|
92
|
-
new
|
|
93
|
-
new
|
|
94
|
-
new
|
|
92
|
+
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0'),
|
|
93
|
+
new FN002031_DEVDEP_rushstack_heft('1.1.2'),
|
|
94
|
+
new FN002032_DEVDEP_typescript_eslint_parser('8.46.2'),
|
|
95
|
+
new FN002033_DEVDEP_css_loader('7.1.2'),
|
|
96
|
+
new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.0'),
|
|
97
|
+
new FN002035_DEVDEP_types_heft_jest('1.0.2'),
|
|
98
|
+
new FN010001_YORC_version('1.22.0'),
|
|
99
|
+
new FN010011_YORC_useGulp(false),
|
|
100
|
+
new FN014003_CODE_launch(`{
|
|
101
|
+
"version": "0.2.0",
|
|
102
|
+
"configurations": [
|
|
103
|
+
{
|
|
104
|
+
"name": "Hosted workbench",
|
|
105
|
+
"type": "msedge",
|
|
106
|
+
"request": "launch",
|
|
107
|
+
"url": "https://{tenantDomain}/_layouts/workbench.aspx",
|
|
108
|
+
"webRoot": "$\{workspaceRoot}",
|
|
109
|
+
"sourceMaps": true,
|
|
110
|
+
"sourceMapPathOverrides": {
|
|
111
|
+
"webpack:///.././src/*": "$\{webRoot}/src/*",
|
|
112
|
+
"webpack:///../../../src/*": "$\{webRoot}/src/*",
|
|
113
|
+
"webpack:///../../../../src/*": "$\{webRoot}/src/*",
|
|
114
|
+
"webpack:///../../../../../src/*": "$\{webRoot}/src/*"
|
|
115
|
+
},
|
|
116
|
+
"runtimeArgs": [
|
|
117
|
+
"--remote-debugging-port=9222",
|
|
118
|
+
"-incognito"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}`),
|
|
95
123
|
new FN015005_FILE_src_index_ts(false),
|
|
96
124
|
new FN015010_FILE_gulpfile_js(false),
|
|
97
125
|
new FN015011_FILE_tsconfig_json(true, `{
|
|
98
|
-
"extends": "./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json"
|
|
99
|
-
"compilerOptions": {
|
|
100
|
-
"skipLibCheck": true
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
`),
|
|
104
|
-
new FN015012_FILE_config_heft_json(true, `{
|
|
105
|
-
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
|
|
106
|
-
|
|
107
|
-
"extends": "@microsoft/spfx-web-build-rig/profiles/default/config/heft.json",
|
|
108
|
-
|
|
109
|
-
"phasesByName": {
|
|
110
|
-
"build": {
|
|
111
|
-
"tasksByName": {
|
|
112
|
-
// copies the localization js files to the lib folder
|
|
113
|
-
"copy-strings": {
|
|
114
|
-
"taskPlugin": {
|
|
115
|
-
"pluginPackage": "@rushstack/heft",
|
|
116
|
-
"pluginName": "copy-files-plugin",
|
|
117
|
-
"options": {
|
|
118
|
-
"copyOperations": [
|
|
119
|
-
{
|
|
120
|
-
"sourcePath": "./src",
|
|
121
|
-
"destinationFolders": ["./lib", "./lib-commonjs"],
|
|
122
|
-
"fileExtensions": [".js"]
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"eject-webpack": {
|
|
131
|
-
"tasksByName": {
|
|
132
|
-
"eject-webpack": {
|
|
133
|
-
"taskPlugin": {
|
|
134
|
-
"pluginPackage": "@rushstack/heft",
|
|
135
|
-
"pluginName": "run-script-plugin",
|
|
136
|
-
"options": {
|
|
137
|
-
"scriptPath": "node_modules/@microsoft/spfx-heft-plugins/lib-commonjs/plugins/ejectWebpackPlugin/EjectWebpackPlugin.js"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
`),
|
|
146
|
-
new FN015013_FILE_config_jest_config_json(true, `{
|
|
147
|
-
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json",
|
|
148
|
-
|
|
149
|
-
"roots": ["<rootDir>/lib"],
|
|
150
|
-
|
|
151
|
-
"testMatch": ["<rootDir>/lib/**/*.test.js"],
|
|
152
|
-
|
|
153
|
-
"collectCoverageFrom": [
|
|
154
|
-
"lib/**/*.js",
|
|
155
|
-
"!lib/**/*.d.ts",
|
|
156
|
-
"!lib/**/*.test.js",
|
|
157
|
-
"!lib/**/test/**",
|
|
158
|
-
"!lib/**/__tests__/**",
|
|
159
|
-
"!lib/**/__fixtures__/**",
|
|
160
|
-
"!lib/**/__mocks__/**"
|
|
161
|
-
],
|
|
162
|
-
|
|
163
|
-
"transformIgnorePatterns": ["[\\/]lib[\\/](.*)\\.js$"],
|
|
164
|
-
|
|
165
|
-
"testEnvironment": "jest-environment-jsdom",
|
|
166
|
-
"testEnvironmentOptions": {
|
|
167
|
-
"customExportConditions": ["require", "node", "umd"]
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
"moduleFileExtensions": ["cjs", "js", "json", "node", "css"],
|
|
171
|
-
|
|
172
|
-
// Enable code coverage for Jest
|
|
173
|
-
"collectCoverage": true,
|
|
174
|
-
"coverageDirectory": "<rootDir>/jest-output/coverage",
|
|
175
|
-
"coverageReporters": [
|
|
176
|
-
[
|
|
177
|
-
"cobertura",
|
|
178
|
-
{
|
|
179
|
-
"file": "cobertura/cobertura-coverage.xml"
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"html",
|
|
183
|
-
"json-summary"
|
|
184
|
-
],
|
|
185
|
-
|
|
186
|
-
// Use v8 coverage provider to avoid Babel
|
|
187
|
-
"coverageProvider": "v8",
|
|
188
|
-
|
|
189
|
-
// Enable junit reporting for Jest
|
|
190
|
-
"reporters": [
|
|
191
|
-
"default",
|
|
192
|
-
[
|
|
193
|
-
"jest-junit",
|
|
194
|
-
{
|
|
195
|
-
"outputDirectory": "<rootDir>/jest-output",
|
|
196
|
-
"outputName": "JUnit.xml", // QTest expects this casing.
|
|
197
|
-
"classNameTemplate": "{classname} > ",
|
|
198
|
-
"titleTemplate": "{title} ({filepath})"
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
]
|
|
126
|
+
"extends": "./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json"
|
|
202
127
|
}
|
|
203
128
|
`),
|
|
204
129
|
new FN015014_FILE_config_rig_json(true, `{
|
|
@@ -221,21 +146,21 @@ export default [
|
|
|
221
146
|
`),
|
|
222
147
|
new FN020001_RES_types_react('17.0.45'),
|
|
223
148
|
new FN021001_PKG_main(false),
|
|
224
|
-
new FN021004_PKG_scripts_build('heft test --clean'),
|
|
225
|
-
new FN021005_PKG_scripts_test('
|
|
149
|
+
new FN021004_PKG_scripts_build('heft test --clean --production && heft package-solution --production'),
|
|
150
|
+
new FN021005_PKG_scripts_test('gulp test', false),
|
|
226
151
|
new FN021006_PKG_scripts_clean('heft clean'),
|
|
227
|
-
new
|
|
228
|
-
new
|
|
229
|
-
new
|
|
230
|
-
new FN021010_PKG_scripts_package_solution('heft package-solution'),
|
|
231
|
-
new FN021011_PKG_scripts_deploy_azure_storage('heft deploy-azure-storage'),
|
|
232
|
-
new FN021012_PKG_scripts_eject_webpack('heft eject-webpack'),
|
|
233
|
-
new FN021013_PKG_overrides_rushstack_heft('0.73.6'),
|
|
152
|
+
new FN021007_PKG_scripts_start('heft start --clean'),
|
|
153
|
+
new FN021008_PKG_scripts_eject_webpack('heft eject-webpack'),
|
|
154
|
+
new FN021009_PKG_overrides_rushstack_heft('1.1.2'),
|
|
234
155
|
new FN023003_GITIGNORE_libdts(),
|
|
235
156
|
new FN023004_GITIGNORE_libcommonjs(),
|
|
236
157
|
new FN023005_GITIGNORE_libesm(),
|
|
237
158
|
new FN023006_GITIGNORE_jestoutput(),
|
|
159
|
+
new FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name(),
|
|
160
|
+
new FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount(),
|
|
161
|
+
new FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name(),
|
|
162
|
+
new FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount(),
|
|
238
163
|
new FN026001_CFG_SASS_schema('https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json'),
|
|
239
164
|
new FN026002_CFG_SASS_extends('@microsoft/spfx-web-build-rig/profiles/default/config/sass.json')
|
|
240
165
|
];
|
|
241
|
-
//# sourceMappingURL=upgrade-1.22.0
|
|
166
|
+
//# sourceMappingURL=upgrade-1.22.0.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FN001001_DEP_microsoft_sp_core_library } from './rules/FN001001_DEP_microsoft_sp_core_library.js';
|
|
2
|
+
import { FN001002_DEP_microsoft_sp_lodash_subset } from './rules/FN001002_DEP_microsoft_sp_lodash_subset.js';
|
|
3
|
+
import { FN001003_DEP_microsoft_sp_office_ui_fabric_core } from './rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js';
|
|
4
|
+
import { FN001004_DEP_microsoft_sp_webpart_base } from './rules/FN001004_DEP_microsoft_sp_webpart_base.js';
|
|
5
|
+
import { FN001011_DEP_microsoft_sp_dialog } from './rules/FN001011_DEP_microsoft_sp_dialog.js';
|
|
6
|
+
import { FN001012_DEP_microsoft_sp_application_base } from './rules/FN001012_DEP_microsoft_sp_application_base.js';
|
|
7
|
+
import { FN001013_DEP_microsoft_decorators } from './rules/FN001013_DEP_microsoft_decorators.js';
|
|
8
|
+
import { FN001014_DEP_microsoft_sp_listview_extensibility } from './rules/FN001014_DEP_microsoft_sp_listview_extensibility.js';
|
|
9
|
+
import { FN001021_DEP_microsoft_sp_property_pane } from './rules/FN001021_DEP_microsoft_sp_property_pane.js';
|
|
10
|
+
import { FN001023_DEP_microsoft_sp_component_base } from './rules/FN001023_DEP_microsoft_sp_component_base.js';
|
|
11
|
+
import { FN001024_DEP_microsoft_sp_diagnostics } from './rules/FN001024_DEP_microsoft_sp_diagnostics.js';
|
|
12
|
+
import { FN001025_DEP_microsoft_sp_dynamic_data } from './rules/FN001025_DEP_microsoft_sp_dynamic_data.js';
|
|
13
|
+
import { FN001026_DEP_microsoft_sp_extension_base } from './rules/FN001026_DEP_microsoft_sp_extension_base.js';
|
|
14
|
+
import { FN001027_DEP_microsoft_sp_http } from './rules/FN001027_DEP_microsoft_sp_http.js';
|
|
15
|
+
import { FN001028_DEP_microsoft_sp_list_subscription } from './rules/FN001028_DEP_microsoft_sp_list_subscription.js';
|
|
16
|
+
import { FN001029_DEP_microsoft_sp_loader } from './rules/FN001029_DEP_microsoft_sp_loader.js';
|
|
17
|
+
import { FN001030_DEP_microsoft_sp_module_interfaces } from './rules/FN001030_DEP_microsoft_sp_module_interfaces.js';
|
|
18
|
+
import { FN001031_DEP_microsoft_sp_odata_types } from './rules/FN001031_DEP_microsoft_sp_odata_types.js';
|
|
19
|
+
import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_microsoft_sp_page_context.js';
|
|
20
|
+
import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
|
|
21
|
+
import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
|
|
22
|
+
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
|
|
23
|
+
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
|
|
24
|
+
import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
|
|
25
|
+
import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js';
|
|
26
|
+
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
27
|
+
export default [
|
|
28
|
+
new FN001001_DEP_microsoft_sp_core_library('1.22.1'),
|
|
29
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.1'),
|
|
30
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.1'),
|
|
31
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.22.1'),
|
|
32
|
+
new FN001011_DEP_microsoft_sp_dialog('1.22.1'),
|
|
33
|
+
new FN001012_DEP_microsoft_sp_application_base('1.22.1'),
|
|
34
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.1'),
|
|
35
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.22.1'),
|
|
36
|
+
new FN001023_DEP_microsoft_sp_component_base('1.22.1'),
|
|
37
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.22.1'),
|
|
38
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.1'),
|
|
39
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.22.1'),
|
|
40
|
+
new FN001027_DEP_microsoft_sp_http('1.22.1'),
|
|
41
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.22.1'),
|
|
42
|
+
new FN001029_DEP_microsoft_sp_loader('1.22.1'),
|
|
43
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.1'),
|
|
44
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.22.1'),
|
|
45
|
+
new FN001032_DEP_microsoft_sp_page_context('1.22.1'),
|
|
46
|
+
new FN001013_DEP_microsoft_decorators('1.22.1'),
|
|
47
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.1'),
|
|
48
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.1'),
|
|
49
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.1'),
|
|
50
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.1'),
|
|
51
|
+
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.1'),
|
|
52
|
+
new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.1'),
|
|
53
|
+
new FN010001_YORC_version('1.22.1')
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=upgrade-1.22.1.js.map
|
|
@@ -42,6 +42,47 @@ export default [
|
|
|
42
42
|
new FN002007_DEVDEP_ajv('5.2.2'),
|
|
43
43
|
new FN010001_YORC_version('1.3.4'),
|
|
44
44
|
new FN014002_CODE_extensions(),
|
|
45
|
-
new FN014003_CODE_launch(
|
|
45
|
+
new FN014003_CODE_launch(`{
|
|
46
|
+
/**
|
|
47
|
+
Install Chrome Debugger Extension for Visual Studio Code
|
|
48
|
+
to debug your components with the Chrome browser:
|
|
49
|
+
https://aka.ms/spfx-debugger-extensions
|
|
50
|
+
*/
|
|
51
|
+
"version": "0.2.0",
|
|
52
|
+
"configurations": [{
|
|
53
|
+
"name": "Local workbench",
|
|
54
|
+
"type": "chrome",
|
|
55
|
+
"request": "launch",
|
|
56
|
+
"url": "https://localhost:4321/temp/workbench.html",
|
|
57
|
+
"webRoot": "\${workspaceRoot}",
|
|
58
|
+
"sourceMaps": true,
|
|
59
|
+
"sourceMapPathOverrides": {
|
|
60
|
+
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
61
|
+
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
62
|
+
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
63
|
+
},
|
|
64
|
+
"runtimeArgs": [
|
|
65
|
+
"--remote-debugging-port=9222"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Hosted workbench",
|
|
70
|
+
"type": "chrome",
|
|
71
|
+
"request": "launch",
|
|
72
|
+
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
|
73
|
+
"webRoot": "\${workspaceRoot}",
|
|
74
|
+
"sourceMaps": true,
|
|
75
|
+
"sourceMapPathOverrides": {
|
|
76
|
+
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
77
|
+
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
78
|
+
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
79
|
+
},
|
|
80
|
+
"runtimeArgs": [
|
|
81
|
+
"--remote-debugging-port=9222",
|
|
82
|
+
"-incognito"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}`)
|
|
46
87
|
];
|
|
47
88
|
//# sourceMappingURL=upgrade-1.3.4.js.map
|
|
@@ -2,7 +2,7 @@ import fs from 'fs';
|
|
|
2
2
|
import os from 'os';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
// uncomment to support upgrading to preview releases
|
|
5
|
-
import { prerelease } from 'semver';
|
|
5
|
+
// import { prerelease } from 'semver';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { CommandError, globalOptionsZod } from '../../../../Command.js';
|
|
8
8
|
import { fsUtil } from '../../../../utils/fsUtil.js';
|
|
@@ -85,7 +85,8 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
85
85
|
'1.20.0',
|
|
86
86
|
'1.21.0',
|
|
87
87
|
'1.21.1',
|
|
88
|
-
'1.22.0
|
|
88
|
+
'1.22.0',
|
|
89
|
+
'1.22.1'
|
|
89
90
|
];
|
|
90
91
|
}
|
|
91
92
|
async commandAction(logger, args) {
|
|
@@ -95,15 +96,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
95
96
|
}
|
|
96
97
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
97
98
|
// uncomment to support upgrading to preview releases
|
|
98
|
-
if (!args.options.toVersion &&
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
99
|
+
// if (!args.options.toVersion &&
|
|
100
|
+
// !args.options.preview &&
|
|
101
|
+
// prerelease(this.toVersion)) {
|
|
102
|
+
// // no version and no preview specified while the current version to
|
|
103
|
+
// // upgrade to is a prerelease so let's grab the first non-preview version
|
|
104
|
+
// // since we're supporting only one preview version, it's sufficient for
|
|
105
|
+
// // us to take second to last version
|
|
106
|
+
// this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
107
|
+
// }
|
|
107
108
|
this.packageManager = args.options.packageManager || 'npm';
|
|
108
109
|
this.shell = args.options.shell || 'powershell';
|
|
109
110
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -621,15 +621,34 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
621
621
|
fix: 'npm i -g yo@5'
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
|
-
'1.22.0
|
|
624
|
+
'1.22.0': {
|
|
625
|
+
heft: {
|
|
626
|
+
range: '^1',
|
|
627
|
+
fix: 'npm i -g @rushstack/heft@1'
|
|
628
|
+
},
|
|
625
629
|
node: {
|
|
626
630
|
range: '>=22.14.0 < 23.0.0',
|
|
627
631
|
fix: 'Install Node.js >=22.14.0 < 23.0.0'
|
|
628
632
|
},
|
|
629
633
|
sp: SharePointVersion.SPO,
|
|
630
634
|
yo: {
|
|
631
|
-
range: '^4 || ^5',
|
|
632
|
-
fix: 'npm i -g yo@
|
|
635
|
+
range: '^4 || ^5 || ^6',
|
|
636
|
+
fix: 'npm i -g yo@6'
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
'1.22.1': {
|
|
640
|
+
heft: {
|
|
641
|
+
range: '^1',
|
|
642
|
+
fix: 'npm i -g @rushstack/heft@1'
|
|
643
|
+
},
|
|
644
|
+
node: {
|
|
645
|
+
range: '>=22.14.0 < 23.0.0',
|
|
646
|
+
fix: 'Install Node.js >=22.14.0 < 23.0.0'
|
|
647
|
+
},
|
|
648
|
+
sp: SharePointVersion.SPO,
|
|
649
|
+
yo: {
|
|
650
|
+
range: '^4 || ^5 || ^6',
|
|
651
|
+
fix: 'npm i -g yo@6'
|
|
633
652
|
}
|
|
634
653
|
}
|
|
635
654
|
};
|
|
@@ -702,6 +721,7 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
702
721
|
await this.checkYo(prerequisites);
|
|
703
722
|
await this.checkGulp();
|
|
704
723
|
await this.checkGulpCli(prerequisites);
|
|
724
|
+
await this.checkHeft(prerequisites);
|
|
705
725
|
await this.checkTypeScript();
|
|
706
726
|
if (this.resultsObject.some(y => y.fix !== undefined)) {
|
|
707
727
|
await this.logMessage('Recommended fixes:');
|
|
@@ -831,6 +851,26 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
831
851
|
await this.logMessage(formatting.getStatus(CheckStatus.Failure, message));
|
|
832
852
|
}
|
|
833
853
|
}
|
|
854
|
+
async checkHeft(prerequisites) {
|
|
855
|
+
if (!prerequisites.heft) {
|
|
856
|
+
// heft is not required for this version of SPFx
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
const heftVersion = await this.getPackageVersion('@rushstack/heft', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
|
|
860
|
+
if (heftVersion) {
|
|
861
|
+
await this.checkStatus('@rushstack/heft', heftVersion, prerequisites.heft);
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
const message = '@rushstack/heft not found';
|
|
865
|
+
this.resultsObject.push({
|
|
866
|
+
check: '@rushstack/heft',
|
|
867
|
+
passed: false,
|
|
868
|
+
message: message,
|
|
869
|
+
fix: prerequisites.heft.fix
|
|
870
|
+
});
|
|
871
|
+
await this.logMessage(formatting.getStatus(CheckStatus.Failure, message));
|
|
872
|
+
}
|
|
873
|
+
}
|
|
834
874
|
async checkGulp() {
|
|
835
875
|
const gulpVersion = await this.getPackageVersion('gulp', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
|
|
836
876
|
if (gulpVersion) {
|
|
@@ -29,6 +29,7 @@ class SpoApplicationCustomizerAddCommand extends SpoCommand {
|
|
|
29
29
|
const requestBody = {
|
|
30
30
|
Title: args.options.title,
|
|
31
31
|
Name: args.options.title,
|
|
32
|
+
Description: args.options.description,
|
|
32
33
|
Location: 'ClientSideExtension.ApplicationCustomizer',
|
|
33
34
|
ClientSideComponentId: args.options.clientSideComponentId
|
|
34
35
|
};
|
|
@@ -54,6 +55,8 @@ _a = SpoApplicationCustomizerAddCommand, _SpoApplicationCustomizerAddCommand_ins
|
|
|
54
55
|
option: '-u, --webUrl <webUrl>'
|
|
55
56
|
}, {
|
|
56
57
|
option: '-i, --clientSideComponentId <clientSideComponentId>'
|
|
58
|
+
}, {
|
|
59
|
+
option: '--description [description]'
|
|
57
60
|
}, {
|
|
58
61
|
option: '--clientSideComponentProperties [clientSideComponentProperties]'
|
|
59
62
|
}, {
|
|
@@ -62,6 +65,7 @@ _a = SpoApplicationCustomizerAddCommand, _SpoApplicationCustomizerAddCommand_ins
|
|
|
62
65
|
}, _SpoApplicationCustomizerAddCommand_initTelemetry = function _SpoApplicationCustomizerAddCommand_initTelemetry() {
|
|
63
66
|
this.telemetry.push((args) => {
|
|
64
67
|
Object.assign(this.telemetryProperties, {
|
|
68
|
+
description: typeof args.options.description !== 'undefined',
|
|
65
69
|
clientSideComponentProperties: typeof args.options.clientSideComponentProperties !== 'undefined',
|
|
66
70
|
scope: typeof args.options.scope !== 'undefined'
|
|
67
71
|
});
|
|
@@ -37,7 +37,7 @@ class SpoApplicationCustomizerSetCommand extends SpoCommand {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
async updateAppCustomizer(logger, options, appCustomizer) {
|
|
40
|
-
const { clientSideComponentProperties, webUrl, newTitle } = options;
|
|
40
|
+
const { clientSideComponentProperties, webUrl, newTitle, description } = options;
|
|
41
41
|
if (this.verbose) {
|
|
42
42
|
await logger.logToStderr(`Updating application customizer with ID '${appCustomizer.Id}' on the site '${webUrl}'...`);
|
|
43
43
|
}
|
|
@@ -45,6 +45,9 @@ class SpoApplicationCustomizerSetCommand extends SpoCommand {
|
|
|
45
45
|
if (newTitle) {
|
|
46
46
|
requestBody.Title = newTitle;
|
|
47
47
|
}
|
|
48
|
+
if (description !== undefined) {
|
|
49
|
+
requestBody.Description = description;
|
|
50
|
+
}
|
|
48
51
|
if (clientSideComponentProperties !== undefined) {
|
|
49
52
|
requestBody.ClientSideComponentProperties = clientSideComponentProperties;
|
|
50
53
|
}
|
|
@@ -99,6 +102,8 @@ _SpoApplicationCustomizerSetCommand_instances = new WeakSet(), _SpoApplicationCu
|
|
|
99
102
|
option: '-c, --clientSideComponentId [clientSideComponentId]'
|
|
100
103
|
}, {
|
|
101
104
|
option: '--newTitle [newTitle]'
|
|
105
|
+
}, {
|
|
106
|
+
option: '--description [description]'
|
|
102
107
|
}, {
|
|
103
108
|
option: '-p, --clientSideComponentProperties [clientSideComponentProperties]'
|
|
104
109
|
}, {
|
|
@@ -111,6 +116,7 @@ _SpoApplicationCustomizerSetCommand_instances = new WeakSet(), _SpoApplicationCu
|
|
|
111
116
|
id: typeof args.options.id !== 'undefined',
|
|
112
117
|
clientSideComponentId: typeof args.options.clientSideComponentId !== 'undefined',
|
|
113
118
|
newTitle: typeof args.options.newTitle !== 'undefined',
|
|
119
|
+
description: typeof args.options.description !== 'undefined',
|
|
114
120
|
clientSideComponentProperties: typeof args.options.clientSideComponentProperties !== 'undefined',
|
|
115
121
|
scope: typeof args.options.scope !== 'undefined'
|
|
116
122
|
});
|
|
@@ -126,7 +132,7 @@ _SpoApplicationCustomizerSetCommand_instances = new WeakSet(), _SpoApplicationCu
|
|
|
126
132
|
if (args.options.scope && this.allowedScopes.indexOf(args.options.scope) === -1) {
|
|
127
133
|
return `'${args.options.scope}' is not a valid application customizer scope. Allowed values are: ${this.allowedScopes.join(',')}`;
|
|
128
134
|
}
|
|
129
|
-
if (!args.options.newTitle && !args.options.clientSideComponentProperties) {
|
|
135
|
+
if (!args.options.newTitle && args.options.description === undefined && !args.options.clientSideComponentProperties) {
|
|
130
136
|
return `Please specify an option to be updated`;
|
|
131
137
|
}
|
|
132
138
|
return validation.isValidSharePointUrl(args.options.webUrl);
|
|
@@ -34,6 +34,7 @@ class SpoCommandSetAddCommand extends SpoCommand {
|
|
|
34
34
|
try {
|
|
35
35
|
const requestBody = {
|
|
36
36
|
Title: args.options.title,
|
|
37
|
+
Description: args.options.description,
|
|
37
38
|
Location: location,
|
|
38
39
|
ClientSideComponentId: args.options.clientSideComponentId,
|
|
39
40
|
RegistrationId: listType,
|
|
@@ -81,6 +82,7 @@ class SpoCommandSetAddCommand extends SpoCommand {
|
|
|
81
82
|
_a = SpoCommandSetAddCommand, _SpoCommandSetAddCommand_instances = new WeakSet(), _SpoCommandSetAddCommand_initTelemetry = function _SpoCommandSetAddCommand_initTelemetry() {
|
|
82
83
|
this.telemetry.push((args) => {
|
|
83
84
|
Object.assign(this.telemetryProperties, {
|
|
85
|
+
description: typeof args.options.description !== 'undefined',
|
|
84
86
|
clientSideComponentProperties: typeof args.options.clientSideComponentProperties !== 'undefined',
|
|
85
87
|
scope: typeof args.options.scope !== 'undefined',
|
|
86
88
|
location: typeof args.options.location !== 'undefined'
|
|
@@ -95,6 +97,8 @@ _a = SpoCommandSetAddCommand, _SpoCommandSetAddCommand_instances = new WeakSet()
|
|
|
95
97
|
option: '-l, --listType <listType>', autocomplete: _a.listTypes
|
|
96
98
|
}, {
|
|
97
99
|
option: '-i, --clientSideComponentId <clientSideComponentId>'
|
|
100
|
+
}, {
|
|
101
|
+
option: '--description [description]'
|
|
98
102
|
}, {
|
|
99
103
|
option: '--clientSideComponentProperties [clientSideComponentProperties]'
|
|
100
104
|
}, {
|
|
@@ -39,6 +39,9 @@ class SpoCommandSetSetCommand extends SpoCommand {
|
|
|
39
39
|
if (args.options.newTitle) {
|
|
40
40
|
requestBody.Title = args.options.newTitle;
|
|
41
41
|
}
|
|
42
|
+
if (args.options.description !== undefined) {
|
|
43
|
+
requestBody.Description = args.options.description;
|
|
44
|
+
}
|
|
42
45
|
if (args.options.location) {
|
|
43
46
|
requestBody.Location = location;
|
|
44
47
|
}
|
|
@@ -118,6 +121,8 @@ _a = SpoCommandSetSetCommand, _SpoCommandSetSetCommand_instances = new WeakSet()
|
|
|
118
121
|
id: typeof args.options.id !== 'undefined',
|
|
119
122
|
clientSideComponentId: typeof args.options.clientSideComponentId !== 'undefined',
|
|
120
123
|
newClientSideComponentId: typeof args.options.newClientSideComponentId !== 'undefined',
|
|
124
|
+
newTitle: typeof args.options.newTitle !== 'undefined',
|
|
125
|
+
description: typeof args.options.description !== 'undefined',
|
|
121
126
|
listType: typeof args.options.listType !== 'undefined',
|
|
122
127
|
clientSideComponentProperties: typeof args.options.clientSideComponentProperties !== 'undefined',
|
|
123
128
|
scope: typeof args.options.scope !== 'undefined',
|
|
@@ -137,6 +142,8 @@ _a = SpoCommandSetSetCommand, _SpoCommandSetSetCommand_instances = new WeakSet()
|
|
|
137
142
|
option: '--newClientSideComponentId [newClientSideComponentId]'
|
|
138
143
|
}, {
|
|
139
144
|
option: '--newTitle [newTitle]'
|
|
145
|
+
}, {
|
|
146
|
+
option: '--description [description]'
|
|
140
147
|
}, {
|
|
141
148
|
option: '-l, --listType [listType]', autocomplete: _a.listTypes
|
|
142
149
|
}, {
|
|
@@ -166,7 +173,7 @@ _a = SpoCommandSetSetCommand, _SpoCommandSetSetCommand_instances = new WeakSet()
|
|
|
166
173
|
if (args.options.location && _a.locations.indexOf(args.options.location) < 0) {
|
|
167
174
|
return `${args.options.location} is not a valid location. Allowed values are ${_a.locations.join(', ')}`;
|
|
168
175
|
}
|
|
169
|
-
if (!args.options.newTitle && !args.options.listType && !args.options.clientSideComponentProperties && !args.options.location && !args.options.newClientSideComponentId) {
|
|
176
|
+
if (!args.options.newTitle && args.options.description === undefined && !args.options.listType && !args.options.clientSideComponentProperties && !args.options.location && !args.options.newClientSideComponentId) {
|
|
170
177
|
return `Please specify option to be updated`;
|
|
171
178
|
}
|
|
172
179
|
return validation.isValidSharePointUrl(args.options.webUrl);
|