@microsoft/sp-module-interfaces 1.14.0 → 1.15.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.
Files changed (28) hide show
  1. package/dist/index-internal-beta.d.ts +37 -48
  2. package/dist/index-internal-public.d.ts +6 -4
  3. package/dist/index-internal.d.ts +6 -4
  4. package/dist/tsdoc-metadata.json +1 -1
  5. package/lib-commonjs/index.js +6 -2
  6. package/lib-commonjs/manifestHelpers.d.ts +20 -0
  7. package/lib-commonjs/manifestHelpers.d.ts.map +1 -0
  8. package/lib-commonjs/manifestHelpers.js +29 -0
  9. package/lib-commonjs/manifestSchemaValidator.js +6 -2
  10. package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts +2 -2
  11. package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts +21 -33
  12. package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts.map +1 -1
  13. package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts +2 -2
  14. package/lib-commonjs/manifestSchemas/ICommandSetExtensionManifest.d.ts +1 -1
  15. package/lib-commonjs/manifestSchemas/examples/application.manifest.json +36 -36
  16. package/lib-commonjs/manifestSchemas/examples/application_1.manifest.js +36 -36
  17. package/lib-commonjs/manifestSchemas/examples/assembly.manifest.json +37 -37
  18. package/lib-commonjs/manifestSchemas/examples/assembly_1.manifest.js +36 -36
  19. package/lib-commonjs/manifestSchemas/examples/library.manifest.json +36 -36
  20. package/lib-commonjs/manifestSchemas/examples/library_1.manifest.js +36 -36
  21. package/lib-commonjs/manifestSchemas/examples/multi-version_1.manifest.js +72 -72
  22. package/lib-commonjs/manifestSchemas/examples/multi-version_1.manifest.json +36 -36
  23. package/lib-commonjs/manifestSchemas/examples/webpart.manifest.json +36 -36
  24. package/lib-commonjs/manifestSchemas/examples/webpart_1.manifest.js +36 -36
  25. package/lib-commonjs/manifestSchemas/examples/webpart_2.manifest.js +36 -36
  26. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-component-loader-configuration.schema.json +12 -18
  27. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-extension-manifest.schema.json +2 -1
  28. package/package.json +6 -2
@@ -167,7 +167,7 @@ export declare interface IAdaptiveCardExtensionManifestEntry<TProperties> {
167
167
  * {
168
168
  * "default": "A tool for displaying neat information.",
169
169
  * "en-us": "A tool for displaying neat information.",
170
- * "fr-fr": "Un outil daffichage des informations soignées.",
170
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
171
171
  * "zh": "用於顯示整潔資訊的工具。"
172
172
  * }
173
173
  * ```
@@ -195,7 +195,7 @@ export declare interface IAdaptiveCardExtensionManifestEntry<TProperties> {
195
195
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
196
196
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
197
197
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
198
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
198
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
199
199
  * assets (the loaderConfig.internalModuleBaseUrls property).
200
200
  *
201
201
  * Supported values: Any absolute URL.
@@ -766,7 +766,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
766
766
  * {
767
767
  * "default": "A tool for displaying neat information.",
768
768
  * "en-us": "A tool for displaying neat information.",
769
- * "fr-fr": "Un outil daffichage des informations soignées.",
769
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
770
770
  * "zh": "用於顯示整潔資訊的工具。"
771
771
  * }
772
772
  * ```
@@ -794,7 +794,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
794
794
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
795
795
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
796
796
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
797
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
797
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
798
798
  * assets (the loaderConfig.internalModuleBaseUrls property).
799
799
  *
800
800
  * Supported values: Any absolute URL.
@@ -927,7 +927,7 @@ export declare interface ICommandDefinition {
927
927
  * This value can be an absolute URL (e.g. "http://example.com/icons/my-icon.png") or
928
928
  * a relative file path (e.g. "./icons/my-icon.png"). In the latter case, the path will be resolved relative to
929
929
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
930
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
930
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
931
931
  * assets (the loaderConfig.internalModuleBaseUrls property).
932
932
  */
933
933
  iconImageUrl?: string;
@@ -975,7 +975,8 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
975
975
  *
976
976
  * @beta
977
977
  */
978
- export declare interface IComponentModuleConfiguration extends IModuleConfiguration {
978
+ export declare interface IComponentModuleConfiguration extends IModuleConfigurationBase {
979
+ type: 'component';
979
980
  /**
980
981
  * The version of the framework-supplied component to be loaded. For framework runtime component such as
981
982
  * `@microsoft/sp-client-base`, it is recommended the version of the framework component the component was developed
@@ -1011,7 +1012,23 @@ export declare interface IComponentModuleConfiguration extends IModuleConfigurat
1011
1012
  *
1012
1013
  * Example: `"https://code.jquery.com/jquery-2.2.4.min.js"`
1013
1014
  */
1014
- failoverPath?: string | IPath;
1015
+ failoverPath?: string | IIntegrityPath;
1016
+ }
1017
+
1018
+ /**
1019
+ * A path with the subresource integrity hash of the resource.
1020
+ *
1021
+ * @beta
1022
+ */
1023
+ export declare interface IIntegrityPath {
1024
+ /**
1025
+ * The path to the resource.
1026
+ */
1027
+ path: string;
1028
+ /**
1029
+ * The subresource integrity hash of the resource referenced in {@link IIntegrityPath.path}.
1030
+ */
1031
+ integrity?: string;
1015
1032
  }
1016
1033
 
1017
1034
  /**
@@ -1024,7 +1041,8 @@ export declare interface IComponentModuleConfiguration extends IModuleConfigurat
1024
1041
  *
1025
1042
  * @beta
1026
1043
  */
1027
- export declare interface ILocalizedPathModuleConfiguration extends IModuleConfiguration {
1044
+ export declare interface ILocalizedPathModuleConfiguration extends IModuleConfigurationBase {
1045
+ type: 'localizedPath';
1028
1046
  /**
1029
1047
  * A path to this module's default locale javascript resource either as a fully-qualified URL or as a
1030
1048
  * path under the paths provided in the "internalModuleBaseUrls" field.
@@ -1039,7 +1057,7 @@ export declare interface ILocalizedPathModuleConfiguration extends IModuleConfig
1039
1057
  *
1040
1058
  * Example: `"master_2015-04-20/my-application_strings_default_af378e0d.js"`
1041
1059
  */
1042
- defaultPath: string | IPath;
1060
+ defaultPath: string | IIntegrityPath;
1043
1061
  /**
1044
1062
  * This is a dictionary of locale keys (in the `"ll-cc"` format) to paths to this module's locale
1045
1063
  * javascript resource either as a fully-qualified URL or as a path under the paths provided in the
@@ -1066,7 +1084,7 @@ export declare interface ILocalizedPathModuleConfiguration extends IModuleConfig
1066
1084
  * ```
1067
1085
  */
1068
1086
  paths?: {
1069
- [locale: string]: string | IPath;
1087
+ [locale: string]: string | IIntegrityPath;
1070
1088
  };
1071
1089
  }
1072
1090
 
@@ -1116,12 +1134,17 @@ export declare interface ILocalizedString {
1116
1134
  [locale: string]: string | undefined;
1117
1135
  }
1118
1136
 
1137
+ /**
1138
+ * @beta
1139
+ */
1140
+ export declare type IModuleConfiguration = IComponentModuleConfiguration | IPathModuleConfiguration | ILocalizedPathModuleConfiguration;
1141
+
1119
1142
  /**
1120
1143
  * This is the base interface for a script module's definition.
1121
1144
  *
1122
1145
  * @beta
1123
1146
  */
1124
- export declare interface IModuleConfiguration {
1147
+ export declare interface IModuleConfigurationBase {
1125
1148
  /**
1126
1149
  * The type of the script block. `"component"` modules come from a component,
1127
1150
  * `"path"` and `"localizedPath"` modules must be available on the paths provided in
@@ -1153,48 +1176,14 @@ export declare interface IModuleConfiguration {
1153
1176
  shouldNotPreload?: boolean;
1154
1177
  }
1155
1178
 
1156
- /**
1157
- * This is the base interface for a set of debug and non-debug/minimized paths. The paths in this object are
1158
- * loaded in exactly the same way as any other internal path.
1159
- *
1160
- * @beta
1161
- */
1162
- export declare interface IPath {
1163
- /**
1164
- * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
1165
- * paths provided in the "internalModuleBaseUrls" field. The script referenced by this field is loaded by default
1166
- * unless a debug version of the script is provided and explicitly requested.
1167
- *
1168
- * @remarks
1169
- *
1170
- * Supported values: The path to the default/non-debug script either as a fully-qualified URL or as a path under the
1171
- * paths provided in the "internalModuleBaseUrls" field.
1172
- *
1173
- * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
1174
- */
1175
- default: string;
1176
- /**
1177
- * A path to this module's debug javascript resource either as a fully-qualified URL or as a path under
1178
- * the paths provided in the "internalModuleBaseUrls" field. The script referenced by this field is only loaded if
1179
- * it is present and debug scripts are explicitly requested.
1180
- *
1181
- * @remarks
1182
- *
1183
- * Supported values: The path to the debug script either as a fully-qualified URL or as a path under the
1184
- * paths provided in the `"internalModuleBaseUrls"` field.
1185
- *
1186
- * Example: `"master_2015-04-20/my-application.bundle_18182c39.debug.js"`
1187
- */
1188
- debug?: string;
1189
- }
1190
-
1191
1179
  /**
1192
1180
  * This is the interface for a script module with the "path" type. Modules of this type must be provided by the
1193
1181
  * component developer.
1194
1182
  *
1195
1183
  * @beta
1196
1184
  */
1197
- export declare interface IPathModuleConfiguration extends IModuleConfiguration {
1185
+ export declare interface IPathModuleConfiguration extends IModuleConfigurationBase {
1186
+ type: 'path';
1198
1187
  /**
1199
1188
  * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
1200
1189
  * paths provided in the `internalModuleBaseUrls` field.
@@ -1215,7 +1204,7 @@ export declare interface IPathModuleConfiguration extends IModuleConfiguration {
1215
1204
  *
1216
1205
  * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
1217
1206
  */
1218
- path: string | IPath;
1207
+ path: string | IIntegrityPath;
1219
1208
  /**
1220
1209
  * If this property is specified, this module is considered non-AMD and
1221
1210
  * the module loader will not expect "define" or "require" to be called.
@@ -392,7 +392,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
392
392
  * {
393
393
  * "default": "A tool for displaying neat information.",
394
394
  * "en-us": "A tool for displaying neat information.",
395
- * "fr-fr": "Un outil daffichage des informations soignées.",
395
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
396
396
  * "zh": "用於顯示整潔資訊的工具。"
397
397
  * }
398
398
  * ```
@@ -420,7 +420,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
420
420
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
421
421
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
422
422
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
423
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
423
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
424
424
  * assets (the loaderConfig.internalModuleBaseUrls property).
425
425
  *
426
426
  * Supported values: Any absolute URL.
@@ -520,7 +520,7 @@ export declare interface ICommandDefinition {
520
520
  * This value can be an absolute URL (e.g. "http://example.com/icons/my-icon.png") or
521
521
  * a relative file path (e.g. "./icons/my-icon.png"). In the latter case, the path will be resolved relative to
522
522
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
523
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
523
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
524
524
  * assets (the loaderConfig.internalModuleBaseUrls property).
525
525
  */
526
526
  iconImageUrl?: string;
@@ -564,6 +564,8 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
564
564
 
565
565
  /* Excluded from this release type: IComponentModuleConfiguration */
566
566
 
567
+ /* Excluded from this release type: IIntegrityPath */
568
+
567
569
  /* Excluded from this release type: ILocalizedPathModuleConfiguration */
568
570
 
569
571
  /**
@@ -614,7 +616,7 @@ export declare interface ILocalizedString {
614
616
 
615
617
  /* Excluded from this release type: IModuleConfiguration */
616
618
 
617
- /* Excluded from this release type: IPath */
619
+ /* Excluded from this release type: IModuleConfigurationBase */
618
620
 
619
621
  /* Excluded from this release type: IPathModuleConfiguration */
620
622
 
@@ -392,7 +392,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
392
392
  * {
393
393
  * "default": "A tool for displaying neat information.",
394
394
  * "en-us": "A tool for displaying neat information.",
395
- * "fr-fr": "Un outil daffichage des informations soignées.",
395
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
396
396
  * "zh": "用於顯示整潔資訊的工具。"
397
397
  * }
398
398
  * ```
@@ -420,7 +420,7 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
420
420
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
421
421
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
422
422
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
423
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
423
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
424
424
  * assets (the loaderConfig.internalModuleBaseUrls property).
425
425
  *
426
426
  * Supported values: Any absolute URL.
@@ -520,7 +520,7 @@ export declare interface ICommandDefinition {
520
520
  * This value can be an absolute URL (e.g. "http://example.com/icons/my-icon.png") or
521
521
  * a relative file path (e.g. "./icons/my-icon.png"). In the latter case, the path will be resolved relative to
522
522
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
523
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
523
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
524
524
  * assets (the loaderConfig.internalModuleBaseUrls property).
525
525
  */
526
526
  iconImageUrl?: string;
@@ -564,6 +564,8 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
564
564
 
565
565
  /* Excluded from this release type: IComponentModuleConfiguration */
566
566
 
567
+ /* Excluded from this release type: IIntegrityPath */
568
+
567
569
  /* Excluded from this release type: ILocalizedPathModuleConfiguration */
568
570
 
569
571
  /**
@@ -614,7 +616,7 @@ export declare interface ILocalizedString {
614
616
 
615
617
  /* Excluded from this release type: IModuleConfiguration */
616
618
 
617
- /* Excluded from this release type: IPath */
619
+ /* Excluded from this release type: IModuleConfigurationBase */
618
620
 
619
621
  /* Excluded from this release type: IPathModuleConfiguration */
620
622
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.4"
8
+ "packageVersion": "7.23.2"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
8
12
  }));
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./manifestSchemas/IClientSideApplicationManifest"), exports);
@@ -0,0 +1,20 @@
1
+ import type { ILocalizedPathModuleConfiguration, IModuleConfiguration, IPathModuleConfiguration } from './manifestSchemas/IClientSideComponentLoaderConfiguration';
2
+ import type { IClientSideComponentManifest } from './manifestSchemas/IClientSideComponentManifest';
3
+ import type { IClientSideMultiVersionManifest } from './manifestSchemas/IClientSideMultiVersionManifest';
4
+ /**
5
+ * Identifies if a component manifest is a multi-version manifest.
6
+ * @param manifest - The manifest for a component, which may have multiple versions
7
+ * @returns If the manifest has multiple versions
8
+ */
9
+ export declare function isMultiVersionManifest(manifest: IClientSideComponentManifest | IClientSideMultiVersionManifest<IClientSideComponentManifest>): manifest is IClientSideMultiVersionManifest<IClientSideComponentManifest>;
10
+ /**
11
+ * @param config - The module loader configuration for the module.
12
+ * @returns If the module loads as a localized path.
13
+ */
14
+ export declare function isLocalizedPath(config: IModuleConfiguration): config is ILocalizedPathModuleConfiguration;
15
+ /**
16
+ * @param config - The module loader configuration for the module.
17
+ * @returns If the module loads as a non-localized path.
18
+ */
19
+ export declare function isPath(config: IModuleConfiguration): config is IPathModuleConfiguration;
20
+ //# sourceMappingURL=manifestHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifestHelpers.d.ts","sourceRoot":"","sources":["../src/manifestHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,2DAA2D,CAAC;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEzG;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,4BAA4B,GAAG,+BAA+B,CAAC,4BAA4B,CAAC,GACrG,QAAQ,IAAI,+BAA+B,CAAC,4BAA4B,CAAC,CAE3E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,IAAI,iCAAiC,CAEzG;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,IAAI,wBAAwB,CAEvF"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPath = exports.isLocalizedPath = exports.isMultiVersionManifest = void 0;
4
+ /**
5
+ * Identifies if a component manifest is a multi-version manifest.
6
+ * @param manifest - The manifest for a component, which may have multiple versions
7
+ * @returns If the manifest has multiple versions
8
+ */
9
+ function isMultiVersionManifest(manifest) {
10
+ return !!manifest.versions;
11
+ }
12
+ exports.isMultiVersionManifest = isMultiVersionManifest;
13
+ /**
14
+ * @param config - The module loader configuration for the module.
15
+ * @returns If the module loads as a localized path.
16
+ */
17
+ function isLocalizedPath(config) {
18
+ return config.type === 'localizedPath';
19
+ }
20
+ exports.isLocalizedPath = isLocalizedPath;
21
+ /**
22
+ * @param config - The module loader configuration for the module.
23
+ * @returns If the module loads as a non-localized path.
24
+ */
25
+ function isPath(config) {
26
+ return config.type === 'path';
27
+ }
28
+ exports.isPath = isPath;
29
+ //# sourceMappingURL=manifestHelpers.js.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
18
  var __importStar = (this && this.__importStar) || function (mod) {
15
19
  if (mod && mod.__esModule) return mod;
16
20
  var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
22
  __setModuleDefault(result, mod);
19
23
  return result;
20
24
  };
@@ -166,7 +166,7 @@ export interface IAdaptiveCardExtensionManifestEntry<TProperties> {
166
166
  * {
167
167
  * "default": "A tool for displaying neat information.",
168
168
  * "en-us": "A tool for displaying neat information.",
169
- * "fr-fr": "Un outil daffichage des informations soignées.",
169
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
170
170
  * "zh": "用於顯示整潔資訊的工具。"
171
171
  * }
172
172
  * ```
@@ -194,7 +194,7 @@ export interface IAdaptiveCardExtensionManifestEntry<TProperties> {
194
194
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
195
195
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
196
196
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
197
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
197
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
198
198
  * assets (the loaderConfig.internalModuleBaseUrls property).
199
199
  *
200
200
  * Supported values: Any absolute URL.
@@ -113,45 +113,30 @@ export interface IClientSideComponentLoaderConfiguration {
113
113
  };
114
114
  }
115
115
  /**
116
- * This is the base interface for a set of debug and non-debug/minimized paths. The paths in this object are
117
- * loaded in exactly the same way as any other internal path.
116
+ * @beta
117
+ */
118
+ export declare type IModuleConfiguration = IComponentModuleConfiguration | IPathModuleConfiguration | ILocalizedPathModuleConfiguration;
119
+ /**
120
+ * A path with the subresource integrity hash of the resource.
118
121
  *
119
122
  * @beta
120
123
  */
121
- export interface IPath {
124
+ export interface IIntegrityPath {
122
125
  /**
123
- * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
124
- * paths provided in the "internalModuleBaseUrls" field. The script referenced by this field is loaded by default
125
- * unless a debug version of the script is provided and explicitly requested.
126
- *
127
- * @remarks
128
- *
129
- * Supported values: The path to the default/non-debug script either as a fully-qualified URL or as a path under the
130
- * paths provided in the "internalModuleBaseUrls" field.
131
- *
132
- * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
126
+ * The path to the resource.
133
127
  */
134
- default: string;
128
+ path: string;
135
129
  /**
136
- * A path to this module's debug javascript resource either as a fully-qualified URL or as a path under
137
- * the paths provided in the "internalModuleBaseUrls" field. The script referenced by this field is only loaded if
138
- * it is present and debug scripts are explicitly requested.
139
- *
140
- * @remarks
141
- *
142
- * Supported values: The path to the debug script either as a fully-qualified URL or as a path under the
143
- * paths provided in the `"internalModuleBaseUrls"` field.
144
- *
145
- * Example: `"master_2015-04-20/my-application.bundle_18182c39.debug.js"`
130
+ * The subresource integrity hash of the resource referenced in {@link IIntegrityPath.path}.
146
131
  */
147
- debug?: string;
132
+ integrity?: string;
148
133
  }
149
134
  /**
150
135
  * This is the base interface for a script module's definition.
151
136
  *
152
137
  * @beta
153
138
  */
154
- export interface IModuleConfiguration {
139
+ export interface IModuleConfigurationBase {
155
140
  /**
156
141
  * The type of the script block. `"component"` modules come from a component,
157
142
  * `"path"` and `"localizedPath"` modules must be available on the paths provided in
@@ -188,7 +173,8 @@ export interface IModuleConfiguration {
188
173
  *
189
174
  * @beta
190
175
  */
191
- export interface IComponentModuleConfiguration extends IModuleConfiguration {
176
+ export interface IComponentModuleConfiguration extends IModuleConfigurationBase {
177
+ type: 'component';
192
178
  /**
193
179
  * The version of the framework-supplied component to be loaded. For framework runtime component such as
194
180
  * `@microsoft/sp-client-base`, it is recommended the version of the framework component the component was developed
@@ -224,7 +210,7 @@ export interface IComponentModuleConfiguration extends IModuleConfiguration {
224
210
  *
225
211
  * Example: `"https://code.jquery.com/jquery-2.2.4.min.js"`
226
212
  */
227
- failoverPath?: string | IPath;
213
+ failoverPath?: string | IIntegrityPath;
228
214
  }
229
215
  /**
230
216
  * This is the interface for a script module with the "path" type. Modules of this type must be provided by the
@@ -232,7 +218,8 @@ export interface IComponentModuleConfiguration extends IModuleConfiguration {
232
218
  *
233
219
  * @beta
234
220
  */
235
- export interface IPathModuleConfiguration extends IModuleConfiguration {
221
+ export interface IPathModuleConfiguration extends IModuleConfigurationBase {
222
+ type: 'path';
236
223
  /**
237
224
  * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
238
225
  * paths provided in the `internalModuleBaseUrls` field.
@@ -253,7 +240,7 @@ export interface IPathModuleConfiguration extends IModuleConfiguration {
253
240
  *
254
241
  * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
255
242
  */
256
- path: string | IPath;
243
+ path: string | IIntegrityPath;
257
244
  /**
258
245
  * If this property is specified, this module is considered non-AMD and
259
246
  * the module loader will not expect "define" or "require" to be called.
@@ -299,7 +286,8 @@ export interface IPathModuleConfiguration extends IModuleConfiguration {
299
286
  *
300
287
  * @beta
301
288
  */
302
- export interface ILocalizedPathModuleConfiguration extends IModuleConfiguration {
289
+ export interface ILocalizedPathModuleConfiguration extends IModuleConfigurationBase {
290
+ type: 'localizedPath';
303
291
  /**
304
292
  * A path to this module's default locale javascript resource either as a fully-qualified URL or as a
305
293
  * path under the paths provided in the "internalModuleBaseUrls" field.
@@ -314,7 +302,7 @@ export interface ILocalizedPathModuleConfiguration extends IModuleConfiguration
314
302
  *
315
303
  * Example: `"master_2015-04-20/my-application_strings_default_af378e0d.js"`
316
304
  */
317
- defaultPath: string | IPath;
305
+ defaultPath: string | IIntegrityPath;
318
306
  /**
319
307
  * This is a dictionary of locale keys (in the `"ll-cc"` format) to paths to this module's locale
320
308
  * javascript resource either as a fully-qualified URL or as a path under the paths provided in the
@@ -341,7 +329,7 @@ export interface ILocalizedPathModuleConfiguration extends IModuleConfiguration
341
329
  * ```
342
330
  */
343
331
  paths?: {
344
- [locale: string]: string | IPath;
332
+ [locale: string]: string | IIntegrityPath;
345
333
  };
346
334
  }
347
335
  //# sourceMappingURL=IClientSideComponentLoaderConfiguration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IClientSideComponentLoaderConfiguration.d.ts","sourceRoot":"","sources":["../../src/manifestSchemas/IClientSideComponentLoaderConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,uCAAuC;IACtD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,sBAAsB,EAAE,MAAM,EAAE,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,eAAe,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,eAAe,CAAC;IAE7C;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB;IACzE;;;;;;;;;;OAUG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IAErB;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB;IAC7E;;;;;;;;;;;;;OAaG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;KAAE,CAAC;CAC9C"}
1
+ {"version":3,"file":"IClientSideComponentLoaderConfiguration.d.ts","sourceRoot":"","sources":["../../src/manifestSchemas/IClientSideComponentLoaderConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,uCAAuC;IACtD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,sBAAsB,EAAE,MAAM,EAAE,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,eAAe,EAAE;QACf,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAC;KACtC,CAAC;CACH;AAED;;GAEG;AACH,oBAAY,oBAAoB,GAC5B,6BAA6B,GAC7B,wBAAwB,GACxB,iCAAiC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,eAAe,CAAC;IAE7C;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC7E,IAAI,EAAE,WAAW,CAAC;IAElB;;;;;;;;;;OAUG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CACxC;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,wBAAwB;IACxE,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC;IAE9B;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,iCAAkC,SAAQ,wBAAwB;IACjF,IAAI,EAAE,eAAe,CAAC;IAEtB;;;;;;;;;;;;;OAaG;IACH,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAErC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;CACvD"}
@@ -228,7 +228,7 @@ export interface IClientSideWebPartManifestEntry<TProperties> {
228
228
  * {
229
229
  * "default": "A tool for displaying neat information.",
230
230
  * "en-us": "A tool for displaying neat information.",
231
- * "fr-fr": "Un outil daffichage des informations soignées.",
231
+ * "fr-fr": "Un outil d'affichage des informations soignées.",
232
232
  * "zh": "用於顯示整潔資訊的工具。"
233
233
  * }
234
234
  * ```
@@ -256,7 +256,7 @@ export interface IClientSideWebPartManifestEntry<TProperties> {
256
256
  * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
257
257
  * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
258
258
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
259
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
259
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
260
260
  * assets (the loaderConfig.internalModuleBaseUrls property).
261
261
  *
262
262
  * Supported values: Any absolute URL.
@@ -66,7 +66,7 @@ export interface ICommandDefinition {
66
66
  * This value can be an absolute URL (e.g. "http://example.com/icons/my-icon.png") or
67
67
  * a relative file path (e.g. "./icons/my-icon.png"). In the latter case, the path will be resolved relative to
68
68
  * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
69
- * and the output manifests iconImageUrl will be replaced with a URL relative to the URL used to load all other
69
+ * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
70
70
  * assets (the loaderConfig.internalModuleBaseUrls property).
71
71
  */
72
72
  iconImageUrl?: string;