@microsoft/sp-module-interfaces 1.21.0-beta.0 → 1.21.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-internal-beta.d.ts +15 -3
- package/dist/index-internal-public.d.ts +47 -2
- package/dist/index-internal.d.ts +15 -3
- package/lib-commonjs/index.js +31 -29
- package/lib-commonjs/manifestHelpers.js +22 -19
- package/lib-commonjs/manifestSchemaValidator.js +70 -84
- package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideApplicationManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideAssemblyManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.js +11 -3
- package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideLibraryManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideManifestBase.js +10 -3
- package/lib-commonjs/manifestSchemas/IClientSideMultiVersionManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.js +62 -67
- package/lib-commonjs/manifestSchemas/ICommandSetExtensionManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.js +5 -2
- package/lib-commonjs/manifestSchemas/ManifestType.js +18 -13
- package/lib-commonjs/manifestSchemas/examples/application_1.manifest.js +24 -6
- package/lib-commonjs/manifestSchemas/examples/application_2.manifest.js +28 -7
- package/lib-commonjs/manifestSchemas/examples/application_3.manifest.js +22 -5
- package/lib-commonjs/manifestSchemas/examples/assembly_1.manifest.js +18 -4
- package/lib-commonjs/manifestSchemas/examples/commandSet_1.manifest.js +15 -3
- package/lib-commonjs/manifestSchemas/examples/extension_1.manifest.js +15 -3
- package/lib-commonjs/manifestSchemas/examples/extension_2.manifest.js +15 -3
- package/lib-commonjs/manifestSchemas/examples/extension_3.manifest.js +15 -3
- package/lib-commonjs/manifestSchemas/examples/extension_4.manifest.js +15 -3
- package/lib-commonjs/manifestSchemas/examples/library_1.manifest.js +18 -4
- package/lib-commonjs/manifestSchemas/examples/multi-version_1.manifest.js +24 -6
- package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.js +27 -7
- package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.js +61 -9
- package/lib-commonjs/manifestSchemas/examples/prefabapp.manifest.json +37 -3
- package/lib-commonjs/manifestSchemas/examples/webpart_1.manifest.js +24 -6
- package/lib-commonjs/manifestSchemas/examples/webpart_2.manifest.js +47 -12
- package/lib-commonjs/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +107 -3
- package/{lib-commonjs → lib-dts}/manifestSchemaValidator.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideWebPartManifest.d.ts +1 -3
- package/lib-dts/manifestSchemas/IPrefabAppManifest.d.ts +255 -0
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/application_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/application_2.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/application_3.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/assembly_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/commandSet_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/extension_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/extension_2.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/extension_3.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/extension_4.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/library_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/multi-version_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/prefab_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/prefab_2.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/webpart_1.manifest.d.ts +1 -1
- package/{lib-commonjs → lib-dts}/manifestSchemas/examples/webpart_2.manifest.d.ts +1 -1
- package/{dist → lib-dts}/tsdoc-metadata.json +1 -1
- package/lib-esm/index.js +15 -0
- package/lib-esm/manifestHelpers.js +21 -0
- package/lib-esm/manifestSchemaValidator.js +135 -0
- package/lib-esm/manifestSchemas/IAdaptiveCardExtensionManifest.js +9 -0
- package/lib-esm/manifestSchemas/IClientSideApplicationManifest.js +5 -0
- package/lib-esm/manifestSchemas/IClientSideAssemblyManifest.js +7 -0
- package/lib-esm/manifestSchemas/IClientSideComponentLoaderConfiguration.js +17 -0
- package/lib-esm/manifestSchemas/IClientSideComponentManifest.js +27 -0
- package/lib-esm/manifestSchemas/IClientSideExtensionManifest.js +7 -0
- package/lib-esm/manifestSchemas/IClientSideLibraryManifest.js +7 -0
- package/lib-esm/manifestSchemas/IClientSideManifestBase.js +7 -0
- package/lib-esm/manifestSchemas/IClientSideMultiVersionManifest.js +25 -0
- package/lib-esm/manifestSchemas/IClientSideWebPartManifest.js +62 -0
- package/lib-esm/manifestSchemas/ICommandSetExtensionManifest.js +8 -0
- package/lib-esm/manifestSchemas/IPrefabAppManifest.js +7 -0
- package/lib-esm/manifestSchemas/ManifestType.js +15 -0
- package/lib-esm/manifestSchemas/examples/application.manifest.json +346 -0
- package/lib-esm/manifestSchemas/examples/application_1.manifest.js +344 -0
- package/lib-esm/manifestSchemas/examples/application_2.manifest.js +47 -0
- package/lib-esm/manifestSchemas/examples/application_3.manifest.js +42 -0
- package/lib-esm/manifestSchemas/examples/assembly.manifest.json +331 -0
- package/lib-esm/manifestSchemas/examples/assembly_1.manifest.js +336 -0
- package/lib-esm/manifestSchemas/examples/commandSet_1.manifest.js +42 -0
- package/lib-esm/manifestSchemas/examples/commandset.manifest.json +38 -0
- package/lib-esm/manifestSchemas/examples/extension.manifest.json +20 -0
- package/lib-esm/manifestSchemas/examples/extension_1.manifest.js +25 -0
- package/lib-esm/manifestSchemas/examples/extension_2.manifest.js +24 -0
- package/lib-esm/manifestSchemas/examples/extension_3.manifest.js +23 -0
- package/lib-esm/manifestSchemas/examples/extension_4.manifest.js +23 -0
- package/lib-esm/manifestSchemas/examples/library.manifest.json +330 -0
- package/lib-esm/manifestSchemas/examples/library_1.manifest.js +335 -0
- package/lib-esm/manifestSchemas/examples/multi-version_1.manifest.js +673 -0
- package/lib-esm/manifestSchemas/examples/multi-version_1.manifest.json +336 -0
- package/lib-esm/manifestSchemas/examples/prefab_1.manifest.js +344 -0
- package/lib-esm/manifestSchemas/examples/prefab_2.manifest.js +381 -0
- package/lib-esm/manifestSchemas/examples/prefabapp.manifest.json +379 -0
- package/lib-esm/manifestSchemas/examples/webpart.manifest.json +380 -0
- package/lib-esm/manifestSchemas/examples/webpart_1.manifest.js +350 -0
- package/lib-esm/manifestSchemas/examples/webpart_2.manifest.js +388 -0
- package/lib-esm/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json +230 -0
- package/lib-esm/manifestSchemas/jsonSchemas/any-value.schema.json +8 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-application-manifest.schema.json +138 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-assembly-manifest.schema.json +45 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-component-loader-configuration.schema.json +273 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json +131 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-extension-manifest.schema.json +61 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-library-manifest.schema.json +39 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-manifest-base.schema.json +25 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-multi-version-manifest.schema.json +118 -0
- package/lib-esm/manifestSchemas/jsonSchemas/client-side-web-part-manifest.schema.json +348 -0
- package/lib-esm/manifestSchemas/jsonSchemas/command-set-extension-manifest.schema.json +81 -0
- package/lib-esm/manifestSchemas/jsonSchemas/guid.schema.json +6 -0
- package/lib-esm/manifestSchemas/jsonSchemas/localized-string.schema.json +33 -0
- package/lib-esm/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +176 -0
- package/lib-esm/manifestSchemas/jsonSchemas/semver.schema.json +8 -0
- package/lib-esm/manifestSchemas/remote/draft-04.schema.json +137 -0
- package/lib-esm/manifestSchemas/remote/site-design-script-actions.schema.json +1158 -0
- package/package.json +27 -7
- package/lib-commonjs/index.d.ts.map +0 -1
- package/lib-commonjs/manifestHelpers.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemaValidator.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideApplicationManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideAssemblyManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideLibraryManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideManifestBase.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideMultiVersionManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/ICommandSetExtensionManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts +0 -76
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/ManifestType.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/application_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/application_2.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/application_3.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/assembly_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/commandSet_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/extension_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/extension_2.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/extension_3.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/extension_4.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/library_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/multi-version_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/webpart_1.manifest.d.ts.map +0 -1
- package/lib-commonjs/manifestSchemas/examples/webpart_2.manifest.d.ts.map +0 -1
- /package/{lib-commonjs → lib-dts}/index.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestHelpers.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideApplicationManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideAssemblyManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideComponentManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideExtensionManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideLibraryManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideManifestBase.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/IClientSideMultiVersionManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/ICommandSetExtensionManifest.d.ts +0 -0
- /package/{lib-commonjs → lib-dts}/manifestSchemas/ManifestType.d.ts +0 -0
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
2
11
|
const prefabManifest = {
|
|
3
12
|
manifestVersion: 2,
|
|
4
13
|
componentType: 'Prefab',
|
|
@@ -6,7 +15,9 @@ const prefabManifest = {
|
|
|
6
15
|
alias: 'myPrefabApp',
|
|
7
16
|
version: '0.0.1',
|
|
8
17
|
loaderConfig: {
|
|
9
|
-
internalModuleBaseUrls: [
|
|
18
|
+
internalModuleBaseUrls: [
|
|
19
|
+
'https://cdn.net/'
|
|
20
|
+
],
|
|
10
21
|
entryModuleId: 'main.bundle',
|
|
11
22
|
scriptResources: {
|
|
12
23
|
frameworkA: {
|
|
@@ -321,14 +332,23 @@ const prefabManifest = {
|
|
|
321
332
|
type: 'path',
|
|
322
333
|
path: 'nonAmdB.js',
|
|
323
334
|
globalName: 'nonAmdB',
|
|
324
|
-
globalDependencies: [
|
|
335
|
+
globalDependencies: [
|
|
336
|
+
'nonAmdB'
|
|
337
|
+
]
|
|
325
338
|
}
|
|
326
339
|
}
|
|
327
340
|
},
|
|
328
|
-
title: {
|
|
329
|
-
|
|
341
|
+
title: {
|
|
342
|
+
default: 'foobar'
|
|
343
|
+
},
|
|
344
|
+
description: {
|
|
345
|
+
default: 'foobar baz'
|
|
346
|
+
},
|
|
330
347
|
isConfigured: true,
|
|
331
|
-
appInstallationTypes: [
|
|
348
|
+
appInstallationTypes: [
|
|
349
|
+
'NewSite'
|
|
350
|
+
]
|
|
332
351
|
};
|
|
333
|
-
|
|
334
|
-
|
|
352
|
+
const _default = prefabManifest;
|
|
353
|
+
|
|
354
|
+
//#sourceMappingUrl=./prefab_1.manifest.js.map
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
2
11
|
const prefabManifest = {
|
|
3
12
|
manifestVersion: 2,
|
|
4
13
|
componentType: 'Prefab',
|
|
@@ -6,7 +15,9 @@ const prefabManifest = {
|
|
|
6
15
|
alias: 'myPrefabApp',
|
|
7
16
|
version: '0.0.1',
|
|
8
17
|
loaderConfig: {
|
|
9
|
-
internalModuleBaseUrls: [
|
|
18
|
+
internalModuleBaseUrls: [
|
|
19
|
+
'https://cdn.net/'
|
|
20
|
+
],
|
|
10
21
|
entryModuleId: 'main.bundle',
|
|
11
22
|
scriptResources: {
|
|
12
23
|
frameworkA: {
|
|
@@ -321,19 +332,60 @@ const prefabManifest = {
|
|
|
321
332
|
type: 'path',
|
|
322
333
|
path: 'nonAmdB.js',
|
|
323
334
|
globalName: 'nonAmdB',
|
|
324
|
-
globalDependencies: [
|
|
335
|
+
globalDependencies: [
|
|
336
|
+
'nonAmdB'
|
|
337
|
+
]
|
|
325
338
|
}
|
|
326
339
|
}
|
|
327
340
|
},
|
|
328
|
-
title: {
|
|
329
|
-
|
|
341
|
+
title: {
|
|
342
|
+
default: 'foobar'
|
|
343
|
+
},
|
|
344
|
+
description: {
|
|
345
|
+
default: 'foobar baz'
|
|
346
|
+
},
|
|
330
347
|
isConfigured: true,
|
|
331
|
-
actions:
|
|
348
|
+
actions: {
|
|
349
|
+
key1: {
|
|
350
|
+
type: 'onInstall',
|
|
351
|
+
actions: [
|
|
352
|
+
{
|
|
353
|
+
verb: 'applyTheme',
|
|
354
|
+
themeName: 'themeName'
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
key2: {
|
|
359
|
+
type: 'onDemand',
|
|
360
|
+
actions: [
|
|
361
|
+
{
|
|
362
|
+
verb: 'applyTheme',
|
|
363
|
+
themeName: 'themeName'
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
siteSettingsLinks: [
|
|
332
369
|
{
|
|
333
|
-
|
|
334
|
-
|
|
370
|
+
viewId: 'routeId',
|
|
371
|
+
text: {
|
|
372
|
+
default: 'text'
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
toolboxEntries: [
|
|
377
|
+
{
|
|
378
|
+
viewId: 'routeId1',
|
|
379
|
+
title: {
|
|
380
|
+
default: 'title1'
|
|
381
|
+
},
|
|
382
|
+
description: {
|
|
383
|
+
default: 'description1'
|
|
384
|
+
},
|
|
385
|
+
officeFabricIconFontName: 'icon1'
|
|
335
386
|
}
|
|
336
387
|
]
|
|
337
388
|
};
|
|
338
|
-
|
|
339
|
-
|
|
389
|
+
const _default = prefabManifest;
|
|
390
|
+
|
|
391
|
+
//#sourceMappingUrl=./prefab_2.manifest.js.map
|
|
@@ -336,10 +336,44 @@
|
|
|
336
336
|
},
|
|
337
337
|
"isConfigured": true,
|
|
338
338
|
"appInstallationTypes": ["NewSite", "ExistingSite"],
|
|
339
|
-
"actions":
|
|
339
|
+
"actions": {
|
|
340
|
+
"key1": {
|
|
341
|
+
"type": "onInstall",
|
|
342
|
+
"actions": [
|
|
343
|
+
{
|
|
344
|
+
"verb": "applyTheme",
|
|
345
|
+
"themeName": "Contoso"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"key2": {
|
|
350
|
+
"type": "onDemand",
|
|
351
|
+
"actions": [
|
|
352
|
+
{
|
|
353
|
+
"verb": "applyTheme",
|
|
354
|
+
"themeName": "Contoso"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"siteSettingsLinks": [
|
|
360
|
+
{
|
|
361
|
+
"viewId": "routeId",
|
|
362
|
+
"text": { "default": "text" }
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"toolboxEntries": [
|
|
366
|
+
{
|
|
367
|
+
"viewId": "routeId1",
|
|
368
|
+
"title": { "default": "title1" },
|
|
369
|
+
"description": { "default": "description1" },
|
|
370
|
+
"officeFabricIconFontName": "icon1"
|
|
371
|
+
},
|
|
340
372
|
{
|
|
341
|
-
"
|
|
342
|
-
"
|
|
373
|
+
"viewId": "routeId2",
|
|
374
|
+
"title": { "default": "title2" },
|
|
375
|
+
"description": { "default": "description2" },
|
|
376
|
+
"iconImageUrl": "https://cdn.net/icon2.png"
|
|
343
377
|
}
|
|
344
378
|
]
|
|
345
379
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
2
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
12
|
const webpartManifest = {
|
|
4
13
|
manifestVersion: 2,
|
|
@@ -9,7 +18,9 @@ const webpartManifest = {
|
|
|
9
18
|
safeWithCustomScriptDisabled: true,
|
|
10
19
|
disabledOnClassicSharepoint: true,
|
|
11
20
|
loaderConfig: {
|
|
12
|
-
internalModuleBaseUrls: [
|
|
21
|
+
internalModuleBaseUrls: [
|
|
22
|
+
'https://cdn.net/'
|
|
23
|
+
],
|
|
13
24
|
entryModuleId: 'main.bundle',
|
|
14
25
|
scriptResources: {
|
|
15
26
|
frameworkA: {
|
|
@@ -324,19 +335,26 @@ const webpartManifest = {
|
|
|
324
335
|
type: 'path',
|
|
325
336
|
path: 'nonAmdB.js',
|
|
326
337
|
globalName: 'nonAmdB',
|
|
327
|
-
globalDependencies: [
|
|
338
|
+
globalDependencies: [
|
|
339
|
+
'nonAmdB'
|
|
340
|
+
]
|
|
328
341
|
}
|
|
329
342
|
}
|
|
330
343
|
},
|
|
331
344
|
preconfiguredEntries: [
|
|
332
345
|
{
|
|
333
|
-
title: {
|
|
334
|
-
|
|
346
|
+
title: {
|
|
347
|
+
default: 'asdf'
|
|
348
|
+
},
|
|
349
|
+
description: {
|
|
350
|
+
default: 'asdf jkl'
|
|
351
|
+
},
|
|
335
352
|
officeFabricIconFontName: 'chart',
|
|
336
353
|
properties: {},
|
|
337
354
|
groupId: '75e22ed5-fa14-4829-850a-c890608aca2d' // Communication and Collaboration
|
|
338
355
|
}
|
|
339
356
|
]
|
|
340
357
|
};
|
|
341
|
-
|
|
342
|
-
|
|
358
|
+
const _default = webpartManifest;
|
|
359
|
+
|
|
360
|
+
//#sourceMappingUrl=./webpart_1.manifest.js.map
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
2
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
12
|
const webpartManifest = {
|
|
4
13
|
manifestVersion: 2,
|
|
@@ -8,7 +17,9 @@ const webpartManifest = {
|
|
|
8
17
|
version: '0.0.1',
|
|
9
18
|
requiresCustomScript: false,
|
|
10
19
|
loaderConfig: {
|
|
11
|
-
internalModuleBaseUrls: [
|
|
20
|
+
internalModuleBaseUrls: [
|
|
21
|
+
'https://cdn.net/'
|
|
22
|
+
],
|
|
12
23
|
entryModuleId: 'main.bundle',
|
|
13
24
|
scriptResources: {
|
|
14
25
|
frameworkA: {
|
|
@@ -323,41 +334,65 @@ const webpartManifest = {
|
|
|
323
334
|
type: 'path',
|
|
324
335
|
path: 'nonAmdB.js',
|
|
325
336
|
globalName: 'nonAmdB',
|
|
326
|
-
globalDependencies: [
|
|
337
|
+
globalDependencies: [
|
|
338
|
+
'nonAmdB'
|
|
339
|
+
]
|
|
327
340
|
}
|
|
328
341
|
}
|
|
329
342
|
},
|
|
330
343
|
preconfiguredEntries: [
|
|
331
344
|
{
|
|
332
|
-
title: {
|
|
333
|
-
|
|
345
|
+
title: {
|
|
346
|
+
default: 'asdf'
|
|
347
|
+
},
|
|
348
|
+
description: {
|
|
349
|
+
default: 'asdf jkl'
|
|
350
|
+
},
|
|
334
351
|
iconImageUrl: 'https://contoso.com/chart.png',
|
|
335
352
|
properties: {},
|
|
336
353
|
groupId: '1bc7927e-4a5e-4520-b540-71305c79c20a' // Planning and Process
|
|
337
354
|
},
|
|
338
355
|
{
|
|
339
|
-
title: {
|
|
340
|
-
|
|
356
|
+
title: {
|
|
357
|
+
default: 'asdf',
|
|
358
|
+
'en-us': 'foobar'
|
|
359
|
+
},
|
|
360
|
+
description: {
|
|
361
|
+
default: 'asdf jkl',
|
|
362
|
+
'en-us': 'asdf'
|
|
363
|
+
},
|
|
341
364
|
iconImageUrl: 'https://contoso.com/chart.png',
|
|
342
365
|
properties: {
|
|
343
366
|
a: 'b',
|
|
344
367
|
c: 'd'
|
|
345
368
|
},
|
|
346
|
-
group: {
|
|
369
|
+
group: {
|
|
370
|
+
default: 'asdf'
|
|
371
|
+
},
|
|
347
372
|
groupId: '0314dcd9-9acb-4ab2-886e-f8881ffb5192' // Customized Group
|
|
348
373
|
},
|
|
349
374
|
{
|
|
350
|
-
title: {
|
|
351
|
-
|
|
375
|
+
title: {
|
|
376
|
+
default: 'asdf',
|
|
377
|
+
'en-us': 'foobar'
|
|
378
|
+
},
|
|
379
|
+
description: {
|
|
380
|
+
default: 'asdf jkl',
|
|
381
|
+
'en-us': 'asdf'
|
|
382
|
+
},
|
|
352
383
|
iconImageUrl: 'https://contoso.com/chart.png',
|
|
353
384
|
properties: {
|
|
354
385
|
a: 'b',
|
|
355
386
|
c: 'd'
|
|
356
387
|
},
|
|
357
|
-
group: {
|
|
388
|
+
group: {
|
|
389
|
+
default: 'asdf',
|
|
390
|
+
'en-us': 'asdfasdf'
|
|
391
|
+
},
|
|
358
392
|
groupId: '1db70b09-46dc-4fa1-9c97-dcce28dad5d9' // Customized Group
|
|
359
393
|
}
|
|
360
394
|
]
|
|
361
395
|
};
|
|
362
|
-
|
|
363
|
-
|
|
396
|
+
const _default = webpartManifest;
|
|
397
|
+
|
|
398
|
+
//#sourceMappingUrl=./webpart_2.manifest.js.map
|
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
"title": "PREFAB application manifest",
|
|
4
4
|
"description": "A PREFAB application is the architectural component that allows developers to declaratively specify behavior of a full page application.",
|
|
5
5
|
|
|
6
|
+
"definitions": {
|
|
7
|
+
"prefabAppSiteScript": {
|
|
8
|
+
"title": "PREFAB Application Site Script",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": {
|
|
11
|
+
"oneOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"type": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["onInstall", "onDemand"]
|
|
18
|
+
},
|
|
19
|
+
"actions": {
|
|
20
|
+
"$ref": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json#/properties/actions"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["type", "actions"],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
6
31
|
"type": "object",
|
|
7
32
|
"allOf": [
|
|
8
33
|
{
|
|
@@ -21,6 +46,8 @@
|
|
|
21
46
|
"title": { "$ref": "any-value.schema.json" },
|
|
22
47
|
"description": { "$ref": "any-value.schema.json" },
|
|
23
48
|
"isConfigured": { "$ref": "any-value.schema.json" },
|
|
49
|
+
"siteSettingsLinks": { "$ref": "any-value.schema.json" },
|
|
50
|
+
"toolboxEntries": { "$ref": "any-value.schema.json" },
|
|
24
51
|
"appInstallationTypes": {
|
|
25
52
|
"description": "Describes how the PREFAB app can be installed: NewSite or ExistingSite. If omitted the app supports both.",
|
|
26
53
|
"type": "array",
|
|
@@ -29,9 +56,7 @@
|
|
|
29
56
|
"enum": ["NewSite", "ExistingSite"]
|
|
30
57
|
}
|
|
31
58
|
},
|
|
32
|
-
"actions": {
|
|
33
|
-
"$ref": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json#/properties/actions"
|
|
34
|
-
}
|
|
59
|
+
"actions": { "$ref": "any-value.schema.json" }
|
|
35
60
|
},
|
|
36
61
|
"additionalProperties": false
|
|
37
62
|
},
|
|
@@ -63,6 +88,85 @@
|
|
|
63
88
|
"title": "Is configured",
|
|
64
89
|
"description": "True if the application is configured and not need a FRC (First Run Configuration) step.",
|
|
65
90
|
"type": "boolean"
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
"siteSettingsLinks": {
|
|
94
|
+
"title": "Site settings links",
|
|
95
|
+
"description": "Links to be rendered in the suite nav site settings menu for the PREFAB App.",
|
|
96
|
+
"type": "array",
|
|
97
|
+
"minItems": 1,
|
|
98
|
+
"items": {
|
|
99
|
+
"description": "Represents an item that should be rendered in the suite nav site settings menu.",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"viewId": {
|
|
103
|
+
"title": "Route ID",
|
|
104
|
+
"description": "The unique identifier of the route to be rendered when the settings link is selected.",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"text": {
|
|
108
|
+
"title": "Text",
|
|
109
|
+
"description": "Text of the link represented as a dictionary of locale keys to title values. This value will be displayed to the user in the suite nav site settings menu.",
|
|
110
|
+
"$ref": "localized-string.schema.json"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": ["viewId", "text"],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
"toolboxEntries": {
|
|
119
|
+
"title": "Toolbox entries",
|
|
120
|
+
"description": "Toolbox entries for the PREFAB app.",
|
|
121
|
+
"type": "array",
|
|
122
|
+
"minItems": 1,
|
|
123
|
+
"items": {
|
|
124
|
+
"description": "This interface specifies the set of that can be provided by a PREFAB developer if the application should be available in the modern SharePoint toolbox.",
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"viewId": {
|
|
128
|
+
"title": "Route ID",
|
|
129
|
+
"description": "The unique identifier of the route to be rendered if the entry is added to the page.",
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"title": {
|
|
133
|
+
"title": "Title",
|
|
134
|
+
"description": "Title of the PREFAB entry represented as a single a dictionary of locale keys to title values. This value will be displayed to the user in the toolbox.",
|
|
135
|
+
"$ref": "localized-string.schema.json"
|
|
136
|
+
},
|
|
137
|
+
"description": {
|
|
138
|
+
"title": "Description",
|
|
139
|
+
"description": "Description of the PREFAB entry represented as a dictionary of locale keys to description values. This value will be displayed to the user in the toolbox.",
|
|
140
|
+
"$ref": "localized-string.schema.json"
|
|
141
|
+
},
|
|
142
|
+
"officeFabricIconFontName": {
|
|
143
|
+
"title": "Office Fabric Icon Name",
|
|
144
|
+
"description": "The icon for the PREFAB entry, to be displayed in the toolbox, represented as a character name in the Office 365 icon font file. The icon font is specified here: https://aka.ms/uifabric-icons. If this field has a value, the 'iconImageUrl' field will be ignored.",
|
|
145
|
+
"type": "string",
|
|
146
|
+
"minLength": 1
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
"iconImageUrl": {
|
|
150
|
+
"title": "Icon Image URL",
|
|
151
|
+
"description": "The icon for the PREFAB app, to be displayed in the toolbox, represented an image URL. The image at the URL must be exactly 38x38 px. If the 'officeFabricIconName' field does not have a value, this field must have a value.",
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 10
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"anyOf": [
|
|
157
|
+
{
|
|
158
|
+
"required": ["viewId", "title", "description", "officeFabricIconFontName"]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"required": ["viewId", "title", "description", "iconImageUrl"]
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
"actions": {
|
|
169
|
+
"$ref": "#/definitions/prefabAppSiteScript"
|
|
66
170
|
}
|
|
67
171
|
},
|
|
68
172
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import ZSchema from 'z-schema';
|
|
2
2
|
import type { IClientSideApplicationManifest } from './manifestSchemas/IClientSideApplicationManifest';
|
|
3
3
|
import type { IClientSideAssemblyManifest } from './manifestSchemas/IClientSideAssemblyManifest';
|
|
4
4
|
import type { IClientSideComponentManifest } from './manifestSchemas/IClientSideComponentManifest';
|
|
@@ -202,14 +202,12 @@ export interface IClientSideWebPartManifest<TProperties> extends IClientSideComp
|
|
|
202
202
|
* ```
|
|
203
203
|
* @remarks
|
|
204
204
|
* Ensure this remains up to date with IFlexibleControlSizingData in FlexibleControl.types.ts
|
|
205
|
-
*
|
|
206
|
-
* @beta
|
|
207
205
|
*/
|
|
208
206
|
flexibleLayoutSizing?: IFlexibleLayoutSizing;
|
|
209
207
|
}
|
|
210
208
|
/**
|
|
211
209
|
* Flexible layout sizing data
|
|
212
|
-
* @
|
|
210
|
+
* @public
|
|
213
211
|
*/
|
|
214
212
|
export interface IFlexibleLayoutSizing {
|
|
215
213
|
/**
|