@microsoft/generator-sharepoint 1.19.0 → 1.20.0-rc.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.d.ts +2 -2
- package/lib/common/BaseGenerator.d.ts.map +1 -1
- package/lib/common/BaseGenerator.js +35 -34
- package/lib/common/ConfigJsonManager.d.ts.map +1 -1
- package/lib/common/ConfigJsonManager.js +11 -5
- package/lib/common/JsonManager.js +5 -5
- package/lib/common/PackageJsonManager.d.ts.map +1 -1
- package/lib/common/PackageJsonManager.js +2 -0
- package/lib/common/PackageSolutionJsonManager.d.ts.map +1 -1
- package/lib/common/PackageSolutionJsonManager.js +2 -0
- package/lib/common/ServeJsonManager.d.ts.map +1 -1
- package/lib/common/ServeJsonManager.js +1 -0
- package/lib/common/bundles-versions.json +1 -1
- package/lib/common/dependencies.json +84 -46
- package/lib/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.d.ts +1 -1
- package/lib/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.d.ts.map +1 -1
- package/lib/generators/adaptiveCardExtension/index.d.ts +1 -1
- package/lib/generators/adaptiveCardExtension/index.d.ts.map +1 -1
- package/lib/generators/adaptiveCardExtension/index.js +5 -5
- package/lib/generators/app/index.js +8 -8
- package/lib/generators/applicationCustomizer/index.js +7 -7
- package/lib/generators/commandSet/index.js +7 -7
- package/lib/generators/component/BaseComponentGenerator.d.ts +1 -1
- package/lib/generators/component/BaseComponentGenerator.d.ts.map +1 -1
- package/lib/generators/component/templates/eslint/.eslintrc.js +3 -32
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json +1 -1
- package/lib/generators/extension/BaseExtensionGenerator.d.ts +1 -1
- package/lib/generators/extension/BaseExtensionGenerator.d.ts.map +1 -1
- package/lib/generators/extension/index.js +4 -4
- package/lib/generators/fieldCustomizer/index.js +7 -7
- package/lib/generators/formCustomizer/index.js +7 -7
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/baseTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/componentsTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/imageTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/library/index.js +8 -8
- package/lib/generators/searchAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json +1 -1
- package/lib/generators/searchQueryModifier/index.js +7 -7
- package/lib/generators/solution/index.js +7 -7
- package/lib/generators/webpart/index.js +8 -8
- package/lib/generators/webpart/initial.teamsManifest.json +2 -0
- package/package.json +7 -7
|
@@ -5,8 +5,8 @@ import { PackageJsonManager } from './PackageJsonManager';
|
|
|
5
5
|
import { ConfigJsonManager } from './ConfigJsonManager';
|
|
6
6
|
import { ServeJsonManager } from './ServeJsonManager';
|
|
7
7
|
import { PackageSolutionJsonManager } from './PackageSolutionJsonManager';
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type AvailableTemplates = 'react' | 'none' | 'minimal';
|
|
9
|
+
export type DependencyGroups = keyof typeof import('./dependencies.json');
|
|
10
10
|
export interface IBaseOptions {
|
|
11
11
|
'skip-install': boolean;
|
|
12
12
|
plusbeta: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseGenerator.d.ts","sourceRoot":"","sources":["../../src/common/BaseGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,8BAA8B,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,C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eomanConfiguration_1 = require("./YeomanConfiguration");
|
|
41
41
|
class BaseGenerator extends yeoman_generator_1.default {
|
|
42
|
-
constructor(args, options) {
|
|
43
|
-
// Always overwrite the conflict files, without any prompting.
|
|
44
|
-
super(args, !(options.force = true) || options);
|
|
45
|
-
this.allowEmptyPackageJson = false;
|
|
46
|
-
this.copyTemplate = (sourceDirectory, destinationDir) => {
|
|
47
|
-
Utils.filesIn(sourceDirectory).forEach(this._untokenizedCopier(sourceDirectory, destinationDir));
|
|
48
|
-
};
|
|
49
|
-
this.context = {};
|
|
50
|
-
// Register an error handler for uncaught exceptions:
|
|
51
|
-
this.addListener('error', (errorObject) => {
|
|
52
|
-
let errorMessage = '';
|
|
53
|
-
if (errorObject) {
|
|
54
|
-
if (typeof errorObject === 'string') {
|
|
55
|
-
errorMessage = errorObject || '';
|
|
56
|
-
}
|
|
57
|
-
else if (errorObject instanceof Error) {
|
|
58
|
-
errorMessage = errorObject.message || '';
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (!errorMessage.trim()) {
|
|
62
|
-
errorMessage = 'The operation was unsuccessful';
|
|
63
|
-
}
|
|
64
|
-
// eslint-disable-next-line no-console
|
|
65
|
-
console.error('\n' + colors_1.default.red('Error: ' + errorMessage));
|
|
66
|
-
process.exitCode = 1;
|
|
67
|
-
});
|
|
68
|
-
YeomanConfiguration_1.YeomanConfiguration.setStore(this.config);
|
|
69
|
-
BaseGenerator._checkForUpdates();
|
|
70
|
-
this.option('skip-install', {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
description: 'Skip running package managers (NPM, etc) post scaffolding',
|
|
73
|
-
default: false
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
42
|
get packageJsonManager() {
|
|
77
43
|
if (!PackageJsonManager_1.PackageJsonManager.instance) {
|
|
78
44
|
PackageJsonManager_1.PackageJsonManager.load(this.destinationPath('package.json'), this.fs);
|
|
@@ -125,6 +91,40 @@ class BaseGenerator extends yeoman_generator_1.default {
|
|
|
125
91
|
this.copyTemplate(this.sourceRoot(), this.destinationRoot());
|
|
126
92
|
}
|
|
127
93
|
}
|
|
94
|
+
constructor(args, options) {
|
|
95
|
+
// Always overwrite the conflict files, without any prompting.
|
|
96
|
+
super(args, !(options.force = true) || options);
|
|
97
|
+
this.allowEmptyPackageJson = false;
|
|
98
|
+
this.copyTemplate = (sourceDirectory, destinationDir) => {
|
|
99
|
+
Utils.filesIn(sourceDirectory).forEach(this._untokenizedCopier(sourceDirectory, destinationDir));
|
|
100
|
+
};
|
|
101
|
+
this.context = {};
|
|
102
|
+
// Register an error handler for uncaught exceptions:
|
|
103
|
+
this.addListener('error', (errorObject) => {
|
|
104
|
+
let errorMessage = '';
|
|
105
|
+
if (errorObject) {
|
|
106
|
+
if (typeof errorObject === 'string') {
|
|
107
|
+
errorMessage = errorObject || '';
|
|
108
|
+
}
|
|
109
|
+
else if (errorObject instanceof Error) {
|
|
110
|
+
errorMessage = errorObject.message || '';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (!errorMessage.trim()) {
|
|
114
|
+
errorMessage = 'The operation was unsuccessful';
|
|
115
|
+
}
|
|
116
|
+
// eslint-disable-next-line no-console
|
|
117
|
+
console.error('\n' + colors_1.default.red('Error: ' + errorMessage));
|
|
118
|
+
process.exitCode = 1;
|
|
119
|
+
});
|
|
120
|
+
YeomanConfiguration_1.YeomanConfiguration.setStore(this.config);
|
|
121
|
+
BaseGenerator._checkForUpdates();
|
|
122
|
+
this.option('skip-install', {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
description: 'Skip running package managers (NPM, etc) post scaffolding',
|
|
125
|
+
default: false
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
128
|
tryInstall() {
|
|
129
129
|
const shouldInstall = !this.options['skip-install'];
|
|
130
130
|
if (shouldInstall && YeomanConfiguration_1.YeomanConfiguration.packageManager === 'pnpm') {
|
|
@@ -139,6 +139,7 @@ class BaseGenerator extends yeoman_generator_1.default {
|
|
|
139
139
|
}
|
|
140
140
|
ensureDependencyGroup(group) {
|
|
141
141
|
const dependenciesByDependencyGroup = this._ensureDependenciesByDependencyGroup();
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
142
143
|
const dependencies = dependenciesByDependencyGroup.get(group);
|
|
143
144
|
for (const [name, version] of Object.entries(dependencies.dependencies)) {
|
|
144
145
|
this.packageJsonManager.addDependency(name, version);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/ConfigJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAoB;IAC7C,SAAgB,cAAc,EAAE,OAAO,CAAC;WAE1B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"ConfigJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/ConfigJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAoB;IAC7C,SAAgB,cAAc,EAAE,OAAO,CAAC;WAE1B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;WAoBxC,KAAK,IAAI,IAAI;IAI3B,WAAkB,QAAQ,IAAI,iBAAiB,CAG9C;IAEM,QAAQ,CAAC,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAiCxD,oBAAoB,CAAC,oBAAoB,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI;IAyB/F,OAAO;IAUP,OAAO,CAAC,wBAAwB;CAWjC"}
|
|
@@ -4,10 +4,6 @@ exports.ConfigJsonManager = void 0;
|
|
|
4
4
|
const node_core_library_1 = require("@rushstack/node-core-library");
|
|
5
5
|
const JsonManager_1 = require("./JsonManager");
|
|
6
6
|
class ConfigJsonManager extends JsonManager_1.JsonManager {
|
|
7
|
-
constructor(filepath, fs, data, configJsonIsV1) {
|
|
8
|
-
super(filepath, fs, data);
|
|
9
|
-
this.configJsonIsV1 = configJsonIsV1;
|
|
10
|
-
}
|
|
11
7
|
static load(filepath, fs) {
|
|
12
8
|
if (this._instance) {
|
|
13
9
|
throw new Error(`Cannot create a second instance of ConfigJsonManager`);
|
|
@@ -23,12 +19,14 @@ class ConfigJsonManager extends JsonManager_1.JsonManager {
|
|
|
23
19
|
throw new Error(`Error reading config.json file: ${e}`);
|
|
24
20
|
}
|
|
25
21
|
}
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
23
|
ConfigJsonManager._instance = new ConfigJsonManager(filepath, fs, configJson, configJsonIsV1);
|
|
27
24
|
}
|
|
28
25
|
static reset() {
|
|
29
26
|
ConfigJsonManager._instance = undefined;
|
|
30
27
|
}
|
|
31
28
|
static get instance() {
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
32
30
|
return this._instance;
|
|
33
31
|
}
|
|
34
32
|
addEntry(bundleEntry, name) {
|
|
@@ -65,12 +63,20 @@ class ConfigJsonManager extends JsonManager_1.JsonManager {
|
|
|
65
63
|
(!localizedResourceKey && localizedResourcePath)) {
|
|
66
64
|
throw new Error(`When adding a localized resource, both localized resource key and path must be specified`);
|
|
67
65
|
}
|
|
68
|
-
if (
|
|
66
|
+
if (
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
68
|
+
this._data.localizedResources[localizedResourceKey] &&
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
69
70
|
this._data.localizedResources[localizedResourceKey] !== localizedResourcePath) {
|
|
70
71
|
throw new Error(`A localized resource with the key "${localizedResourceKey}" already exists in "config.json"`);
|
|
71
72
|
}
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
72
74
|
this._data.localizedResources[localizedResourceKey] = localizedResourcePath;
|
|
73
75
|
}
|
|
76
|
+
constructor(filepath, fs, data, configJsonIsV1) {
|
|
77
|
+
super(filepath, fs, data);
|
|
78
|
+
this.configJsonIsV1 = configJsonIsV1;
|
|
79
|
+
}
|
|
74
80
|
_translateV2BundleIntoV1(bundle, name) {
|
|
75
81
|
if (bundle.components.length !== 1) {
|
|
76
82
|
throw new Error('New bundle must have exactly one entry');
|
|
@@ -26,11 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.JsonManager = void 0;
|
|
27
27
|
const _ = __importStar(require("lodash"));
|
|
28
28
|
class JsonManager {
|
|
29
|
-
constructor(filepath, fs, data) {
|
|
30
|
-
this._filepath = filepath;
|
|
31
|
-
this._fs = fs;
|
|
32
|
-
this._data = data;
|
|
33
|
-
}
|
|
34
29
|
set(newData) {
|
|
35
30
|
if (!newData) {
|
|
36
31
|
return this._data;
|
|
@@ -48,6 +43,11 @@ class JsonManager {
|
|
|
48
43
|
save() {
|
|
49
44
|
this._fs.writeJSON(this._filepath, this._data, /* replacer */ undefined, /* spacing */ 2);
|
|
50
45
|
}
|
|
46
|
+
constructor(filepath, fs, data) {
|
|
47
|
+
this._filepath = filepath;
|
|
48
|
+
this._fs = fs;
|
|
49
|
+
this._data = data;
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
52
|
exports.JsonManager = JsonManager;
|
|
53
53
|
//# sourceMappingURL=JsonManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/PackageJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IAGxD,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,oBAAoB,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiC;WAE3C,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"PackageJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/PackageJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IAGxD,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,oBAAoB,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiC;WAE3C,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;WAcxC,KAAK,IAAI,IAAI;IAI3B,WAAkB,QAAQ,IAAI,kBAAkB,CAG/C;IAEM,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IASxD,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAO3D,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;CAMnE"}
|
|
@@ -14,12 +14,14 @@ class PackageJsonManager extends JsonManager_1.JsonManager {
|
|
|
14
14
|
catch (error) {
|
|
15
15
|
data = undefined;
|
|
16
16
|
}
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
17
18
|
PackageJsonManager._instance = new PackageJsonManager(filepath, fs, data);
|
|
18
19
|
}
|
|
19
20
|
static reset() {
|
|
20
21
|
PackageJsonManager._instance = undefined;
|
|
21
22
|
}
|
|
22
23
|
static get instance() {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
23
25
|
return this._instance;
|
|
24
26
|
}
|
|
25
27
|
addDependency(dependency, version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSolutionJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/PackageSolutionJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBA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onManager extends JsonManager_1.JsonManager {
|
|
|
26
26
|
PackageSolutionJsonManager._instance = undefined;
|
|
27
27
|
}
|
|
28
28
|
static get instance() {
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
29
30
|
return this._instance;
|
|
30
31
|
}
|
|
31
32
|
getSkipFeatureDeployment() {
|
|
@@ -116,6 +117,7 @@ class PackageSolutionJsonManager extends JsonManager_1.JsonManager {
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
if (isAddingFeature) {
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
119
121
|
solution.features.push(feature);
|
|
120
122
|
}
|
|
121
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServeJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/ServeJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EACV,+BAA+B,IAAI,8BAA8B,EACjE,WAAW,IAAI,UAAU,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,gBAAiB,SAAQ,WAAW,CAAC,UAAU,CAAC;IAC3D,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAmB;WAE9B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;WAwBxC,KAAK,IAAI,IAAI;IAI3B,WAAkB,QAAQ,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ServeJsonManager.d.ts","sourceRoot":"","sources":["../../src/common/ServeJsonManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EACV,+BAA+B,IAAI,8BAA8B,EACjE,WAAW,IAAI,UAAU,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,gBAAiB,SAAQ,WAAW,CAAC,UAAU,CAAC;IAC3D,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAmB;WAE9B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;WAwBxC,KAAK,IAAI,IAAI;IAI3B,WAAkB,QAAQ,IAAI,gBAAgB,CAG7C;IAEM,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,8BAA8B,GAAG,IAAI;IAWnF,gBAAgB,IAAI,IAAI;CAMhC"}
|
|
@@ -52,6 +52,7 @@ class ServeJsonManager extends JsonManager_1.JsonManager {
|
|
|
52
52
|
ServeJsonManager._instance = undefined;
|
|
53
53
|
}
|
|
54
54
|
static get instance() {
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
55
56
|
return this._instance;
|
|
56
57
|
}
|
|
57
58
|
addConfiguration(name, configuration) {
|
|
@@ -2,30 +2,36 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
5
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.20.0-rc.0",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.20.0-rc.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
11
|
+
},
|
|
12
|
+
"preferredVersions": {
|
|
13
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
11
14
|
}
|
|
12
15
|
},
|
|
13
16
|
"plusBeta": {
|
|
14
17
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
18
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
19
|
+
"@microsoft/sp-property-pane": "1.20.0-rc.0",
|
|
20
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.20.0-rc.0"
|
|
18
21
|
},
|
|
19
22
|
"devDependencies": {
|
|
20
23
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
24
|
+
},
|
|
25
|
+
"preferredVersions": {
|
|
26
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
},
|
|
24
30
|
"applicationCustomizer": {
|
|
25
31
|
"standard": {
|
|
26
32
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.
|
|
28
|
-
"@microsoft/sp-application-base": "1.
|
|
33
|
+
"@microsoft/sp-dialog": "1.20.0-rc.0",
|
|
34
|
+
"@microsoft/sp-application-base": "1.20.0-rc.0"
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
"plusBeta": null
|
|
@@ -33,8 +39,8 @@
|
|
|
33
39
|
"applicationCustomizerPlusBeta": {
|
|
34
40
|
"standard": {
|
|
35
41
|
"dependencies": {
|
|
36
|
-
"@microsoft/sp-dialog": "1.
|
|
37
|
-
"@microsoft/sp-application-base": "1.
|
|
42
|
+
"@microsoft/sp-dialog": "1.20.0-rc.0",
|
|
43
|
+
"@microsoft/sp-application-base": "1.20.0-rc.0"
|
|
38
44
|
}
|
|
39
45
|
},
|
|
40
46
|
"plusBeta": null
|
|
@@ -42,8 +48,8 @@
|
|
|
42
48
|
"commandSet": {
|
|
43
49
|
"standard": {
|
|
44
50
|
"dependencies": {
|
|
45
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
46
|
-
"@microsoft/sp-dialog": "1.
|
|
51
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0",
|
|
52
|
+
"@microsoft/sp-dialog": "1.20.0-rc.0"
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
"plusBeta": null
|
|
@@ -51,8 +57,8 @@
|
|
|
51
57
|
"commandSetPlusBeta": {
|
|
52
58
|
"standard": {
|
|
53
59
|
"dependencies": {
|
|
54
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
55
|
-
"@microsoft/sp-dialog": "1.
|
|
60
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0",
|
|
61
|
+
"@microsoft/sp-dialog": "1.20.0-rc.0"
|
|
56
62
|
}
|
|
57
63
|
},
|
|
58
64
|
"plusBeta": null
|
|
@@ -60,27 +66,33 @@
|
|
|
60
66
|
"extension": {
|
|
61
67
|
"standard": {
|
|
62
68
|
"dependencies": {
|
|
63
|
-
"@microsoft/sp-core-library": "1.
|
|
64
|
-
"@microsoft/decorators": "1.
|
|
69
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
70
|
+
"@microsoft/decorators": "1.20.0-rc.0"
|
|
65
71
|
},
|
|
66
72
|
"devDependencies": {
|
|
67
73
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
74
|
+
},
|
|
75
|
+
"preferredVersions": {
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
68
77
|
}
|
|
69
78
|
},
|
|
70
79
|
"plusBeta": {
|
|
71
80
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.
|
|
73
|
-
"@microsoft/decorators": "1.
|
|
81
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
82
|
+
"@microsoft/decorators": "1.20.0-rc.0"
|
|
74
83
|
},
|
|
75
84
|
"devDependencies": {
|
|
76
85
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
86
|
+
},
|
|
87
|
+
"preferredVersions": {
|
|
88
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
77
89
|
}
|
|
78
90
|
}
|
|
79
91
|
},
|
|
80
92
|
"fieldCustomizer": {
|
|
81
93
|
"standard": {
|
|
82
94
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
95
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0"
|
|
84
96
|
}
|
|
85
97
|
},
|
|
86
98
|
"plusBeta": null
|
|
@@ -88,7 +100,7 @@
|
|
|
88
100
|
"fieldCustomizerPlusBeta": {
|
|
89
101
|
"standard": {
|
|
90
102
|
"dependencies": {
|
|
91
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
103
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0"
|
|
92
104
|
}
|
|
93
105
|
},
|
|
94
106
|
"plusBeta": null
|
|
@@ -98,12 +110,18 @@
|
|
|
98
110
|
"dependencies": {},
|
|
99
111
|
"devDependencies": {
|
|
100
112
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
113
|
+
},
|
|
114
|
+
"preferredVersions": {
|
|
115
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
101
116
|
}
|
|
102
117
|
},
|
|
103
118
|
"plusBeta": {
|
|
104
119
|
"dependencies": {},
|
|
105
120
|
"devDependencies": {
|
|
106
121
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
122
|
+
},
|
|
123
|
+
"preferredVersions": {
|
|
124
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
107
125
|
}
|
|
108
126
|
}
|
|
109
127
|
},
|
|
@@ -125,7 +143,7 @@
|
|
|
125
143
|
"searchQueryModifier": {
|
|
126
144
|
"standard": {
|
|
127
145
|
"dependencies": {
|
|
128
|
-
"@microsoft/sp-search-extensibility": "1.
|
|
146
|
+
"@microsoft/sp-search-extensibility": "1.20.0-rc.0"
|
|
129
147
|
}
|
|
130
148
|
},
|
|
131
149
|
"plusBeta": null
|
|
@@ -133,7 +151,7 @@
|
|
|
133
151
|
"searchQueryModifierPlusBeta": {
|
|
134
152
|
"standard": {
|
|
135
153
|
"dependencies": {
|
|
136
|
-
"@microsoft/sp-search-extensibility": "1.
|
|
154
|
+
"@microsoft/sp-search-extensibility": "1.20.0-rc.0"
|
|
137
155
|
}
|
|
138
156
|
},
|
|
139
157
|
"plusBeta": null
|
|
@@ -141,29 +159,35 @@
|
|
|
141
159
|
"webpart": {
|
|
142
160
|
"standard": {
|
|
143
161
|
"dependencies": {
|
|
144
|
-
"@microsoft/sp-core-library": "1.
|
|
145
|
-
"@microsoft/sp-component-base": "1.
|
|
146
|
-
"@microsoft/sp-property-pane": "1.
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
162
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
163
|
+
"@microsoft/sp-component-base": "1.20.0-rc.0",
|
|
164
|
+
"@microsoft/sp-property-pane": "1.20.0-rc.0",
|
|
165
|
+
"@microsoft/sp-webpart-base": "1.20.0-rc.0",
|
|
166
|
+
"@microsoft/sp-lodash-subset": "1.20.0-rc.0",
|
|
167
|
+
"@microsoft/sp-office-ui-fabric-core": "1.20.0-rc.0"
|
|
150
168
|
},
|
|
151
169
|
"devDependencies": {
|
|
152
170
|
"@microsoft/sp-module-interfaces": "1.20.1",
|
|
153
171
|
"@fluentui/react": "^8.106.4"
|
|
172
|
+
},
|
|
173
|
+
"preferredVersions": {
|
|
174
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
154
175
|
}
|
|
155
176
|
},
|
|
156
177
|
"plusBeta": {
|
|
157
178
|
"dependencies": {
|
|
158
|
-
"@microsoft/sp-core-library": "1.
|
|
159
|
-
"@microsoft/sp-component-base": "1.
|
|
160
|
-
"@microsoft/sp-property-pane": "1.
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
179
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
180
|
+
"@microsoft/sp-component-base": "1.20.0-rc.0",
|
|
181
|
+
"@microsoft/sp-property-pane": "1.20.0-rc.0",
|
|
182
|
+
"@microsoft/sp-webpart-base": "1.20.0-rc.0",
|
|
183
|
+
"@microsoft/sp-lodash-subset": "1.20.0-rc.0",
|
|
184
|
+
"@microsoft/sp-office-ui-fabric-core": "1.20.0-rc.0"
|
|
164
185
|
},
|
|
165
186
|
"devDependencies": {
|
|
166
187
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
188
|
+
},
|
|
189
|
+
"preferredVersions": {
|
|
190
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
167
191
|
}
|
|
168
192
|
}
|
|
169
193
|
},
|
|
@@ -178,9 +202,14 @@
|
|
|
178
202
|
"@microsoft/eslint-plugin-spfx": "1.20.1",
|
|
179
203
|
"@microsoft/eslint-config-spfx": "1.20.1",
|
|
180
204
|
"@microsoft/spfx-web-build-rig": "1.20.1",
|
|
181
|
-
"@rushstack/heft": "0.
|
|
205
|
+
"@rushstack/heft": "0.67.0",
|
|
182
206
|
"@types/webpack-env": "~1.15.2",
|
|
183
|
-
"eslint": "8.
|
|
207
|
+
"eslint": "8.57.0"
|
|
208
|
+
},
|
|
209
|
+
"preferredVersions": {
|
|
210
|
+
"@microsoft/eslint-plugin-spfx": "1.20.1",
|
|
211
|
+
"@microsoft/eslint-config-spfx": "1.20.1",
|
|
212
|
+
"@microsoft/spfx-web-build-rig": "1.20.1"
|
|
184
213
|
}
|
|
185
214
|
},
|
|
186
215
|
"plusBeta": null
|
|
@@ -198,12 +227,15 @@
|
|
|
198
227
|
"@microsoft/sp-build-web": "1.20.1",
|
|
199
228
|
"@types/webpack-env": "~1.15.2",
|
|
200
229
|
"ajv": "^6.12.5",
|
|
201
|
-
"eslint": "8.
|
|
230
|
+
"eslint": "8.57.0",
|
|
202
231
|
"gulp": "4.0.2",
|
|
203
232
|
"typescript": "4.7.4"
|
|
204
233
|
},
|
|
205
234
|
"preferredVersions": {
|
|
206
|
-
"typescript": "4.7.4"
|
|
235
|
+
"typescript": "4.7.4",
|
|
236
|
+
"@microsoft/eslint-plugin-spfx": "1.20.1",
|
|
237
|
+
"@microsoft/eslint-config-spfx": "1.20.1",
|
|
238
|
+
"@microsoft/sp-build-web": "1.20.1"
|
|
207
239
|
}
|
|
208
240
|
},
|
|
209
241
|
"plusBeta": null
|
|
@@ -211,24 +243,30 @@
|
|
|
211
243
|
"formCustomizer": {
|
|
212
244
|
"standard": {
|
|
213
245
|
"dependencies": {
|
|
214
|
-
"@microsoft/sp-core-library": "1.
|
|
215
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
216
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
217
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
246
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
247
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0",
|
|
248
|
+
"@microsoft/sp-lodash-subset": "1.20.0-rc.0",
|
|
249
|
+
"@microsoft/sp-office-ui-fabric-core": "1.20.0-rc.0"
|
|
218
250
|
},
|
|
219
251
|
"devDependencies": {
|
|
220
252
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
253
|
+
},
|
|
254
|
+
"preferredVersions": {
|
|
255
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
221
256
|
}
|
|
222
257
|
},
|
|
223
258
|
"plusBeta": {
|
|
224
259
|
"dependencies": {
|
|
225
|
-
"@microsoft/sp-core-library": "1.
|
|
226
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
227
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
228
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
260
|
+
"@microsoft/sp-core-library": "1.20.0-rc.0",
|
|
261
|
+
"@microsoft/sp-listview-extensibility": "1.20.0-rc.0",
|
|
262
|
+
"@microsoft/sp-lodash-subset": "1.20.0-rc.0",
|
|
263
|
+
"@microsoft/sp-office-ui-fabric-core": "1.20.0-rc.0"
|
|
229
264
|
},
|
|
230
265
|
"devDependencies": {
|
|
231
266
|
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
267
|
+
},
|
|
268
|
+
"preferredVersions": {
|
|
269
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
232
270
|
}
|
|
233
271
|
}
|
|
234
272
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AvailableTemplates, BaseGenerator, IBaseOptions } from '../../common/BaseGenerator';
|
|
2
2
|
import * as BaseComponent from '../component/BaseComponentGenerator';
|
|
3
|
-
export
|
|
3
|
+
export type IACETemplateType = 'Image' | 'PrimaryText' | 'Basic' | 'Generic' | 'Search' | 'DataVisualization';
|
|
4
4
|
export interface IBaseACEOptions extends BaseComponent.IBaseComponentOptions {
|
|
5
5
|
}
|
|
6
6
|
export interface IBaseACEContext extends BaseComponent.IBaseComponentContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAdaptiveCardExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAGrE,
|
|
1
|
+
{"version":3,"file":"BaseAdaptiveCardExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAGrE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE9G,MAAM,WAAW,eAAgB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AAC/E,MAAM,WAAW,eAAgB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AAE/E,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC5C,IAAI,GAAE,MAAgC,GACrC,IAAI,CAEN;AAED,8BAAsB,gBAAgB,CACpC,QAAQ,SAAS,eAAe,EAChC,QAAQ,SAAS,eAAe,CAChC,SAAQ,aAAa,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAChE,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAA6B;IACpE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAC9D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAM;IAC/D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAA4B;IAE1D,WAAW,IAAI,IAAI;IAanB,OAAO,CAAC,UAAU,GAAE,OAAc,GAAG,IAAI;IAIzC,OAAO,IAAI,IAAI;CAGvB"}
|
|
@@ -2,7 +2,7 @@ import { type IBaseOptions, BaseGenerator } from '../../common/BaseGenerator';
|
|
|
2
2
|
import * as GenericAdaptiveCardExtension from '../genericAdaptiveCardExtension';
|
|
3
3
|
import * as SearchAdaptiveCardExtension from '../searchAdaptiveCardExtension';
|
|
4
4
|
import * as DataVisualizationAdaptiveCardExtension from '../dataVisualizationAdaptiveCardExtension';
|
|
5
|
-
|
|
5
|
+
type IACETemplateType = 'Generic' | 'Search' | 'DataVisualization';
|
|
6
6
|
export interface IACEOptions extends GenericAdaptiveCardExtension.IGenericACEOptions, SearchAdaptiveCardExtension.ISearchACEOptions, DataVisualizationAdaptiveCardExtension.IDataVisualizationACEOptions {
|
|
7
7
|
aceTemplateType: IACETemplateType;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,sCAAsC,MAAM,2CAA2C,CAAC;AAEpG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,sCAAsC,MAAM,2CAA2C,CAAC;AAEpG,KAAK,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AACnE,MAAM,WAAW,WACf,SAAQ,4BAA4B,CAAC,kBAAkB,EACrD,2BAA2B,CAAC,iBAAiB,EAC7C,sCAAsC,CAAC,4BAA4B;IACrE,eAAe,EAAE,gBAAgB,CAAC;CACnC;AAED,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAChF,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAIN;AAED,qBAAa,sCAAuC,SAAQ,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC;IACxF,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAA6B;IAE7D,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA4ChC,WAAW,IAAI,IAAI;IAInB,OAAO,IAAI,IAAI;IAIf,OAAO,IAAI,IAAI;IAIf,GAAG,IAAI,IAAI;IAIlB,SAAS,aAAa,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW;IAInE,OAAO,CAAC,cAAc;CAOvB"}
|
|
@@ -45,10 +45,6 @@ function defineOptions(generator) {
|
|
|
45
45
|
}
|
|
46
46
|
exports.defineOptions = defineOptions;
|
|
47
47
|
class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerator {
|
|
48
|
-
constructor(args, options) {
|
|
49
|
-
super(args, options);
|
|
50
|
-
this.friendlyName = 'Adaptive Card Selection';
|
|
51
|
-
}
|
|
52
48
|
initializing() {
|
|
53
49
|
/* no-op */
|
|
54
50
|
}
|
|
@@ -67,7 +63,7 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
67
63
|
value: 'Search'
|
|
68
64
|
},
|
|
69
65
|
{
|
|
70
|
-
name: 'Data Visualization Card Template
|
|
66
|
+
name: 'Data Visualization Card Template',
|
|
71
67
|
value: 'DataVisualization'
|
|
72
68
|
}
|
|
73
69
|
];
|
|
@@ -101,6 +97,10 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
101
97
|
end() {
|
|
102
98
|
/* no-op */
|
|
103
99
|
}
|
|
100
|
+
constructor(args, options) {
|
|
101
|
+
super(args, options);
|
|
102
|
+
this.friendlyName = 'Adaptive Card Selection';
|
|
103
|
+
}
|
|
104
104
|
_shouldExecute() {
|
|
105
105
|
return (this.config.get('environment') === 'spo' &&
|
|
106
106
|
this.config.get('componentType') === 'adaptiveCardExtension' &&
|
|
@@ -58,14 +58,6 @@ exports.composeWith = composeWith;
|
|
|
58
58
|
* This class is the entry point when running `yo @microsoft/sharepoint`
|
|
59
59
|
*/
|
|
60
60
|
class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
61
|
-
constructor(args, options) {
|
|
62
|
-
super(args, options);
|
|
63
|
-
this.friendlyName = 'SharePoint Client-side Solution Generator';
|
|
64
|
-
this.allowEmptyPackageJson = true;
|
|
65
|
-
this.desc('Generate a SharePoint client-side solution with webparts.');
|
|
66
|
-
Component.defineOptions(this);
|
|
67
|
-
Solution.defineOptions(this);
|
|
68
|
-
}
|
|
69
61
|
initializing() {
|
|
70
62
|
this.log(yosay('Welcome to the Microsoft 365 ' + colors_1.default.blue(`SPFx Yeoman Generator@${VERSION}`)));
|
|
71
63
|
this._provideRetirementNote();
|
|
@@ -182,6 +174,14 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
182
174
|
const useHeft = YeomanConfiguration_1.YeomanConfiguration.useHeft;
|
|
183
175
|
this.log((0, spsay_1.default)(libraryName, useHeft));
|
|
184
176
|
}
|
|
177
|
+
constructor(args, options) {
|
|
178
|
+
super(args, options);
|
|
179
|
+
this.friendlyName = 'SharePoint Client-side Solution Generator';
|
|
180
|
+
this.allowEmptyPackageJson = true;
|
|
181
|
+
this.desc('Generate a SharePoint client-side solution with webparts.');
|
|
182
|
+
Component.defineOptions(this);
|
|
183
|
+
Solution.defineOptions(this);
|
|
184
|
+
}
|
|
185
185
|
_provideRetirementNote() {
|
|
186
186
|
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.`));
|
|
187
187
|
}
|
|
@@ -36,13 +36,6 @@ function defineOptions(generator) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.defineOptions = defineOptions;
|
|
38
38
|
class ApplicationCustomizerGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
39
|
-
constructor(args, options) {
|
|
40
|
-
super(args, options);
|
|
41
|
-
this.friendlyName = 'Application Customizer';
|
|
42
|
-
this.codeName = 'ApplicationCustomizer';
|
|
43
|
-
this.allowedTemplates = [];
|
|
44
|
-
defineOptions(this);
|
|
45
|
-
}
|
|
46
39
|
initializing() {
|
|
47
40
|
/* no-op */
|
|
48
41
|
}
|
|
@@ -82,6 +75,13 @@ class ApplicationCustomizerGenerator extends BaseExtension.BaseExtensionGenerato
|
|
|
82
75
|
end() {
|
|
83
76
|
super.end();
|
|
84
77
|
}
|
|
78
|
+
constructor(args, options) {
|
|
79
|
+
super(args, options);
|
|
80
|
+
this.friendlyName = 'Application Customizer';
|
|
81
|
+
this.codeName = 'ApplicationCustomizer';
|
|
82
|
+
this.allowedTemplates = [];
|
|
83
|
+
defineOptions(this);
|
|
84
|
+
}
|
|
85
85
|
includeClientSideInstances() {
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
@@ -36,13 +36,6 @@ function defineOptions(generator) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.defineOptions = defineOptions;
|
|
38
38
|
class CommandSetGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
39
|
-
constructor(args, options) {
|
|
40
|
-
super(args, options);
|
|
41
|
-
this.friendlyName = 'Command Set';
|
|
42
|
-
this.codeName = 'CommandSet';
|
|
43
|
-
this.allowedTemplates = [];
|
|
44
|
-
defineOptions(this);
|
|
45
|
-
}
|
|
46
39
|
initializing() {
|
|
47
40
|
/* no-op */
|
|
48
41
|
}
|
|
@@ -83,6 +76,13 @@ class CommandSetGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
|
83
76
|
end() {
|
|
84
77
|
super.end();
|
|
85
78
|
}
|
|
79
|
+
constructor(args, options) {
|
|
80
|
+
super(args, options);
|
|
81
|
+
this.friendlyName = 'Command Set';
|
|
82
|
+
this.codeName = 'CommandSet';
|
|
83
|
+
this.allowedTemplates = [];
|
|
84
|
+
defineOptions(this);
|
|
85
|
+
}
|
|
86
86
|
includeClientSideInstances() {
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IConfigBundle } from '@microsoft/spfx-heft-plugins';
|
|
2
2
|
import { type AvailableTemplates, BaseGenerator, type IBaseOptions } from '../../common/BaseGenerator';
|
|
3
|
-
|
|
3
|
+
type ESLintProfiles = 'react' | 'default';
|
|
4
4
|
export interface IBaseComponentShared {
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated use {@link template} instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/component/BaseComponentGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAMlE,OAAO,EAAE,KAAK,kBAAkB,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAIvG,
|
|
1
|
+
{"version":3,"file":"BaseComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/component/BaseComponentGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAMlE,OAAO,EAAE,KAAK,kBAAkB,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAIvG,KAAK,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,S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AG,MAAM;YAIpD,mBAAmB;CAQlC;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"}
|
|
@@ -21,38 +21,9 @@ module.exports = {
|
|
|
21
21
|
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
|
22
22
|
'@typescript-eslint/adjacent-overload-signatures': 1,
|
|
23
23
|
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
|
24
|
-
|
|
25
|
-
//
|
|
26
|
-
'@typescript-eslint/
|
|
27
|
-
1,
|
|
28
|
-
{
|
|
29
|
-
'extendDefaults': false,
|
|
30
|
-
'types': {
|
|
31
|
-
'String': {
|
|
32
|
-
'message': 'Use \'string\' instead',
|
|
33
|
-
'fixWith': 'string'
|
|
34
|
-
},
|
|
35
|
-
'Boolean': {
|
|
36
|
-
'message': 'Use \'boolean\' instead',
|
|
37
|
-
'fixWith': 'boolean'
|
|
38
|
-
},
|
|
39
|
-
'Number': {
|
|
40
|
-
'message': 'Use \'number\' instead',
|
|
41
|
-
'fixWith': 'number'
|
|
42
|
-
},
|
|
43
|
-
'Object': {
|
|
44
|
-
'message': 'Use \'object\' instead, or else define a proper TypeScript type:'
|
|
45
|
-
},
|
|
46
|
-
'Symbol': {
|
|
47
|
-
'message': 'Use \'symbol\' instead',
|
|
48
|
-
'fixWith': 'symbol'
|
|
49
|
-
},
|
|
50
|
-
'Function': {
|
|
51
|
-
'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
],
|
|
24
|
+
'@typescript-eslint/no-unsafe-function-type': 1,
|
|
25
|
+
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
|
26
|
+
'@typescript-eslint/no-wrapper-object-types': 1,
|
|
56
27
|
// RATIONALE: Code is more readable when the type of every variable is immediately obvious.
|
|
57
28
|
// Even if the compiler may be able to infer a type, this inference will be unavailable
|
|
58
29
|
// to a person who is reviewing a GitHub diff. This rule makes writing code harder,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20240610.001/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseGenerator, IBaseOptions } from '../../common/BaseGenerator';
|
|
2
2
|
import * as BaseComponent from '../component/BaseComponentGenerator';
|
|
3
|
-
export
|
|
3
|
+
export type AvailableExtensions = 'ApplicationCustomizer' | 'CommandSet' | 'FieldCustomizer' | 'SearchQueryModifier' | 'FormCustomizer';
|
|
4
4
|
export interface IBaseExtensionOptions extends BaseComponent.IBaseComponentOptions {
|
|
5
5
|
}
|
|
6
6
|
export interface IBaseExtensionContext extends BaseComponent.IBaseComponentContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/extension/BaseExtensionGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAErE,
|
|
1
|
+
{"version":3,"file":"BaseExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/extension/BaseExtensionGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,YAAY,GACZ,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,CAAC;AAErB,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AACrF,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AAErF,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC5C,IAAI,GAAE,MAAoB,GACzB,IAAI,CAEN;AAED,8BAAsB,sBAAsB,CAC1C,QAAQ,SAAS,qBAAqB,EACtC,QAAQ,SAAS,qBAAqB,CACtC,SAAQ,aAAa,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAChE,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAgB;IAE9C,WAAW,IAAI,IAAI;IAMnB,OAAO,CAAC,UAAU,GAAE,OAAc,GAAG,IAAI;IAoBzC,OAAO,IAAI,IAAI;IAItB,SAAS,CAAC,QAAQ,CAAC,0BAA0B,IAAI,OAAO;IAExD,SAAS,CAAC,UAAU,IAAI,IAAI;IAM5B,SAAS,CAAC,cAAc,IAAI,OAAO;IAKnC,OAAO,CAAC,2BAA2B;CAkBpC"}
|
|
@@ -52,10 +52,6 @@ exports.composeWith = composeWith;
|
|
|
52
52
|
* This class selects between multiple different types of extensions for instantiation.
|
|
53
53
|
*/
|
|
54
54
|
class ExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerator {
|
|
55
|
-
constructor(args, options) {
|
|
56
|
-
super(args, options);
|
|
57
|
-
this.friendlyName = 'Extension Selection';
|
|
58
|
-
}
|
|
59
55
|
initializing() {
|
|
60
56
|
/* no-op */
|
|
61
57
|
}
|
|
@@ -117,6 +113,10 @@ class ExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
117
113
|
end() {
|
|
118
114
|
/* no-op */
|
|
119
115
|
}
|
|
116
|
+
constructor(args, options) {
|
|
117
|
+
super(args, options);
|
|
118
|
+
this.friendlyName = 'Extension Selection';
|
|
119
|
+
}
|
|
120
120
|
_shouldExecute() {
|
|
121
121
|
return this.config.get('environment') === 'spo' && this.config.get('componentType') === 'extension';
|
|
122
122
|
}
|
|
@@ -36,13 +36,6 @@ function defineOptions(generator) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.defineOptions = defineOptions;
|
|
38
38
|
class FieldCustomizerGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
39
|
-
constructor(args, options) {
|
|
40
|
-
super(args, options);
|
|
41
|
-
this.friendlyName = 'Field Customizer';
|
|
42
|
-
this.codeName = 'FieldCustomizer';
|
|
43
|
-
this.allowedTemplates = ['react', 'minimal'];
|
|
44
|
-
defineOptions(this);
|
|
45
|
-
}
|
|
46
39
|
initializing() {
|
|
47
40
|
/* no-op */
|
|
48
41
|
}
|
|
@@ -93,6 +86,13 @@ class FieldCustomizerGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
|
93
86
|
end() {
|
|
94
87
|
super.end();
|
|
95
88
|
}
|
|
89
|
+
constructor(args, options) {
|
|
90
|
+
super(args, options);
|
|
91
|
+
this.friendlyName = 'Field Customizer';
|
|
92
|
+
this.codeName = 'FieldCustomizer';
|
|
93
|
+
this.allowedTemplates = ['react', 'minimal'];
|
|
94
|
+
defineOptions(this);
|
|
95
|
+
}
|
|
96
96
|
includeClientSideInstances() {
|
|
97
97
|
return false;
|
|
98
98
|
}
|
|
@@ -37,13 +37,6 @@ function defineOptions(generator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.defineOptions = defineOptions;
|
|
39
39
|
class FormCustomizerGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
40
|
-
constructor(args, options) {
|
|
41
|
-
super(args, options);
|
|
42
|
-
this.friendlyName = 'Form Customizer';
|
|
43
|
-
this.codeName = 'FormCustomizer';
|
|
44
|
-
this.allowedTemplates = ['react', 'none'];
|
|
45
|
-
defineOptions(this);
|
|
46
|
-
}
|
|
47
40
|
initializing() {
|
|
48
41
|
/* no-op */
|
|
49
42
|
}
|
|
@@ -118,6 +111,13 @@ class FormCustomizerGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
|
118
111
|
end() {
|
|
119
112
|
super.end();
|
|
120
113
|
}
|
|
114
|
+
constructor(args, options) {
|
|
115
|
+
super(args, options);
|
|
116
|
+
this.friendlyName = 'Form Customizer';
|
|
117
|
+
this.codeName = 'FormCustomizer';
|
|
118
|
+
this.allowedTemplates = ['react', 'none'];
|
|
119
|
+
defineOptions(this);
|
|
120
|
+
}
|
|
121
121
|
addFeature() {
|
|
122
122
|
if (this._shouldExecute() && !this.hasElementsXml()) {
|
|
123
123
|
const solutionName = YeomanConfiguration_1.YeomanConfiguration.libraryName;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20240610.001/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20240610.001/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20240610.001/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"cardSize": "Large",
|
|
23
23
|
"properties": {
|
|
24
24
|
"title": "<%= componentNameUnescaped %>",
|
|
@@ -36,14 +36,6 @@ function defineOptions(generator) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.defineOptions = defineOptions;
|
|
38
38
|
class LibraryGenerator extends BaseComponent.BaseComponentGenerator {
|
|
39
|
-
constructor(args, options) {
|
|
40
|
-
super(args, options);
|
|
41
|
-
this.friendlyName = 'Library';
|
|
42
|
-
this.codeName = 'Library';
|
|
43
|
-
this.allowedTemplates = [];
|
|
44
|
-
this.folderName = 'libraries';
|
|
45
|
-
defineOptions(this);
|
|
46
|
-
}
|
|
47
39
|
initializing() {
|
|
48
40
|
/* no-op */
|
|
49
41
|
}
|
|
@@ -82,6 +74,14 @@ class LibraryGenerator extends BaseComponent.BaseComponentGenerator {
|
|
|
82
74
|
end() {
|
|
83
75
|
super.end();
|
|
84
76
|
}
|
|
77
|
+
constructor(args, options) {
|
|
78
|
+
super(args, options);
|
|
79
|
+
this.friendlyName = 'Library';
|
|
80
|
+
this.codeName = 'Library';
|
|
81
|
+
this.allowedTemplates = [];
|
|
82
|
+
this.folderName = 'libraries';
|
|
83
|
+
defineOptions(this);
|
|
84
|
+
}
|
|
85
85
|
_shouldExecute() {
|
|
86
86
|
return this.config.get('environment') === 'spo' && this.config.get('componentType') === 'library';
|
|
87
87
|
}
|
package/lib/generators/searchAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20240610.001/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -36,13 +36,6 @@ function defineOptions(generator) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.defineOptions = defineOptions;
|
|
38
38
|
class SearchQueryModifierGenerator extends BaseExtension.BaseExtensionGenerator {
|
|
39
|
-
constructor(args, options) {
|
|
40
|
-
super(args, options);
|
|
41
|
-
this.friendlyName = 'Search Query Modifier';
|
|
42
|
-
this.codeName = 'SearchQueryModifier';
|
|
43
|
-
this.allowedTemplates = [];
|
|
44
|
-
defineOptions(this);
|
|
45
|
-
}
|
|
46
39
|
initializing() {
|
|
47
40
|
/* no-op */
|
|
48
41
|
}
|
|
@@ -82,6 +75,13 @@ class SearchQueryModifierGenerator extends BaseExtension.BaseExtensionGenerator
|
|
|
82
75
|
end() {
|
|
83
76
|
super.end();
|
|
84
77
|
}
|
|
78
|
+
constructor(args, options) {
|
|
79
|
+
super(args, options);
|
|
80
|
+
this.friendlyName = 'Search Query Modifier';
|
|
81
|
+
this.codeName = 'SearchQueryModifier';
|
|
82
|
+
this.allowedTemplates = [];
|
|
83
|
+
defineOptions(this);
|
|
84
|
+
}
|
|
85
85
|
includeClientSideInstances() {
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
@@ -68,13 +68,6 @@ function defineOptions(generator) {
|
|
|
68
68
|
}
|
|
69
69
|
exports.defineOptions = defineOptions;
|
|
70
70
|
class SolutionGenerator extends BaseGenerator_1.BaseGenerator {
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
-
constructor(args, options) {
|
|
73
|
-
super(args, options);
|
|
74
|
-
this.allowEmptyPackageJson = true;
|
|
75
|
-
this.friendlyName = 'Solution';
|
|
76
|
-
defineOptions(this);
|
|
77
|
-
}
|
|
78
71
|
initializing() {
|
|
79
72
|
/* no-op */
|
|
80
73
|
}
|
|
@@ -229,6 +222,13 @@ class SolutionGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
229
222
|
end() {
|
|
230
223
|
/* no-op */
|
|
231
224
|
}
|
|
225
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
226
|
+
constructor(args, options) {
|
|
227
|
+
super(args, options);
|
|
228
|
+
this.allowEmptyPackageJson = true;
|
|
229
|
+
this.friendlyName = 'Solution';
|
|
230
|
+
defineOptions(this);
|
|
231
|
+
}
|
|
232
232
|
_shouldExecute() {
|
|
233
233
|
return this.config.get('isCreatingSolution');
|
|
234
234
|
}
|
|
@@ -37,14 +37,6 @@ function defineOptions(generator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.defineOptions = defineOptions;
|
|
39
39
|
class WebpartGenerator extends BaseComponent.BaseComponentGenerator {
|
|
40
|
-
constructor(args, options) {
|
|
41
|
-
super(args, options);
|
|
42
|
-
this.friendlyName = 'Web part';
|
|
43
|
-
this.codeName = 'WebPart';
|
|
44
|
-
this.allowedTemplates = ['react', 'minimal'];
|
|
45
|
-
this.folderName = 'webparts';
|
|
46
|
-
defineOptions(this);
|
|
47
|
-
}
|
|
48
40
|
initializing() {
|
|
49
41
|
/* no-op */
|
|
50
42
|
}
|
|
@@ -86,6 +78,14 @@ class WebpartGenerator extends BaseComponent.BaseComponentGenerator {
|
|
|
86
78
|
end() {
|
|
87
79
|
super.end();
|
|
88
80
|
}
|
|
81
|
+
constructor(args, options) {
|
|
82
|
+
super(args, options);
|
|
83
|
+
this.friendlyName = 'Web part';
|
|
84
|
+
this.codeName = 'WebPart';
|
|
85
|
+
this.allowedTemplates = ['react', 'minimal'];
|
|
86
|
+
this.folderName = 'webparts';
|
|
87
|
+
defineOptions(this);
|
|
88
|
+
}
|
|
89
89
|
_shouldExecute() {
|
|
90
90
|
return this.config.get('environment') === 'spo' && this.config.get('componentType') === 'webpart';
|
|
91
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0-rc.0",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.17.1 <19.0.0"
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"homepage": "http://aka.ms/spfx",
|
|
13
13
|
"main": "lib/generators/app/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rushstack/node-core-library": "
|
|
16
|
-
"@rushstack/terminal": "0.
|
|
15
|
+
"@rushstack/node-core-library": "5.7.0",
|
|
16
|
+
"@rushstack/terminal": "0.14.0",
|
|
17
17
|
"colors": "~1.2.1",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"update-notifier": "5.1.0",
|
|
20
20
|
"uuid": "^9.0.0",
|
|
21
21
|
"yeoman-generator": "5.10.0",
|
|
22
22
|
"yosay": "2.0.2",
|
|
23
|
-
"@microsoft/spfx-heft-plugins": "1.20.1"
|
|
23
|
+
"@microsoft/spfx-heft-plugins": "1.20.1-tool-dev.146"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@microsoft/rush-lib": "5.
|
|
27
|
-
"@rushstack/heft": "0.
|
|
26
|
+
"@microsoft/rush-lib": "5.133.0",
|
|
27
|
+
"@rushstack/heft": "0.67.0",
|
|
28
28
|
"@types/inquirer": "7.3.1",
|
|
29
29
|
"@types/lodash": "4.14.117",
|
|
30
30
|
"@types/mem-fs-editor": "7.0.1",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/uuid": "9.0.1",
|
|
33
33
|
"@types/yeoman-generator": "5.2.14",
|
|
34
34
|
"@types/yosay": "2.0.0",
|
|
35
|
-
"eslint": "8.
|
|
35
|
+
"eslint": "8.57.0",
|
|
36
36
|
"@odsp-web-tools/internal-node-rig": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|