@microsoft/sp-module-interfaces 1.21.0-beta.2 → 1.21.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.
@@ -11,259 +11,9 @@ export declare type ComponentType = 'Application' | 'WebPart' | 'Library' | 'Ext
11
11
  */
12
12
  export declare type ExtensionType = 'Unknown' | 'ApplicationCustomizer' | 'FieldCustomizer' | 'ListViewCommandSet' | 'SearchQueryModifier';
13
13
 
14
- /**
15
- * @beta
16
- */
17
- export declare interface IAdaptiveCardExtensionManifest<TProperties> extends IClientSideComponentManifest {
18
- /* Excluded from this release type: connectedTeamsAppId */
19
- /* Excluded from this release type: isPendingTeamsAppSync */
20
- /* Excluded from this release type: connectedSPFXAppId */
21
- /**
22
- * Definition: An array defining what host types are supported
23
- *
24
- *
25
- * @remarks
26
- * Usage: Use this array to define all hosts that are supported.
27
- *
28
- */
29
- supportedHosts?: ReadonlyArray<'Dashboard'>;
30
- /**
31
- * Definition: If true, this ACE supports and has been tested for theme variants experience.
32
- *
33
- * @remarks
34
- * Usage: Use this flag if a ACE supports theme variants and has been tested as such.
35
- * In order to support theme variants, ACEs must have the capability to render correctly in the context
36
- * of a theme variant. An ACE may or may not need to be updated to support theme variants, but should
37
- * always be tested before enabling this flag. By default no ACEs support theme variants.
38
- *
39
- */
40
- supportsThemeVariants?: boolean;
41
- /**
42
- * An untyped property bag for experimental flags not ready for production.
43
- *
44
- */
45
- experimentalData?: {
46
- [key: string]: any;
47
- };
48
- /**
49
- * If true, this AdaptiveCardExtension should not be displayed in the modern SharePoint toolbox.
50
- *
51
- * @remarks
52
- * Usage: Use this flag if it is not appropriate to display a AdaptiveCardExtension in the modern toolbox. By default,
53
- * all AdaptiveCardExtensions are enabled to be displayed in the toolbox if supportedHosts contains 'SharePointWebPart'
54
- * Such AdaptiveCardExtensions can be provisioned on pages though API or be added to the page in a pre configured way.
55
- */
56
- hiddenFromToolbox?: boolean;
57
- /* Excluded from this release type: isolationLevel */
58
- /**
59
- * The scope of the personalization on how an AdaptiveCardExtension can be personalized by an end user.
60
- *
61
- * @beta
62
- */
63
- personalization?: 'Disallow' | 'Allow';
64
- /**
65
- * Definition:
66
- * - If true, the AdaptiveCardExtension will be disposed and reloaded when the AdaptiveCardExtension data is updated by an external source.
67
- * - If false, the AdaptiveCardExtension data will be deserialized and the properties of the AdaptiveCardExtension will be updated,
68
- * onAfterPropertiesUpdatedExternally will be executed.
69
- * - If undefined, AdaptiveCardExtensions developed with SPFx version below 1.9 will default to true and AdaptiveCardExtensions developed with
70
- * a SPFx version 1.9 or greater will default to false.
71
- *
72
- * @remarks
73
- * By default, onAfterPropertiesUpdatedExternally will re-render the AdaptiveCardExtension. If your AdaptiveCardExtension requires specialized
74
- * logic, then it is recommended to override onAfterPropertiesUpdatedExternally.
75
- */
76
- useFallbackWhenPropertiesUpdatedExternally?: boolean;
77
- /**
78
- * A AdaptiveCardExtension can have pre-configured properties like the title, description, iconImageUrl, officeFabricIconFontName, toolbox group name
79
- * and AdaptiveCardExtension specific custom properties. And there can be multiple instances of these pre-configured properties.
80
- *
81
- * @remarks
82
- * This helps support scenarios where an organization may want to present multiple pre-configured entries
83
- * for a AdaptiveCardExtension in the Toolbox. Each entry is expected to configure the AdaptiveCardExtension with a different set
84
- * of pre-configured properties. A developer may decide to seed some initial values for these properties
85
- * but an organization admin can go ahead and customize these properties per the needs of his/her organization.
86
- * The properties can also be modified by the author of the page.
87
- *
88
- * Usage: help display a AdaptiveCardExtension in the Toolbox, PropertyPane and the initial rendering of the AdaptiveCardExtension.
89
- *
90
- * Type: JSON object
91
- *
92
- * Supported values: Array of `IClientSideWebPartManifestEntry` objects.
93
- *
94
- * Example:
95
- * ```
96
- * [{
97
- * "groupId": "5c03119e-3074-46fd-976b-c60198311f70",
98
- * "group": { "default": "Advanced" },
99
- * "title": { "id": "$./ManifestStrings.resx:PrimaryTextL1Template;" },
100
- * "description": { "id": "$./ManifestStrings.resx:PrimaryTextL1TemplateDescription;" },
101
- * "officeFabricIconFontName": "Balloons",
102
- * "properties": {
103
- * "templateType": "primaryText",
104
- * "title": "Primary Text",
105
- * "primaryText": "Basic card",
106
- * "description": "This is an example.",
107
- * "cardSize": "Medium"
108
- * }
109
- * }]
110
- * ```
111
- */
112
- preconfiguredEntries: IAdaptiveCardExtensionManifestEntry<TProperties>[];
113
- }
14
+ /* Excluded from this release type: IAdaptiveCardExtensionManifest */
114
15
 
115
- /**
116
- * This interface specifies the set of properties that can be pre-configured by a AdaptiveCardExtension developer. Each
117
- * pre-configured instance of the AdaptiveCardExtension will need a copy of these properties. Organization admins and
118
- * content authors can modify these properties on a need basis.
119
- *
120
- * @beta
121
- */
122
- export declare interface IAdaptiveCardExtensionManifestEntry<TProperties> {
123
- /**
124
- * Size of the AdaptiveCardExtension when it is rendered. This is value must be one of the supported CardSizes
125
- * ["Medium", "Large"] defined in the sp-adaptive-card-base project.
126
- */
127
- cardSize: string;
128
- /**
129
- * Title of the AdaptiveCardExtension represented as a single a dictionary of locale keys to title values. This
130
- * value will be displayed to the user in the toolbox.
131
- *
132
- * @remarks
133
- * This title should be used in the Toolbox and other display areas. The AdaptiveCardExtension developer may give
134
- * an initial title to the AdaptiveCardExtension. The organization admin and page author will have the ability to
135
- * change this title as per need.
136
- *
137
- * Usage: display the name of the AdaptiveCardExtension in the toolbox, web part gallery and the page.
138
- *
139
- * Supported values: a dictionary of locale keys to strings. Should always have a `'default'` key.
140
- *
141
- * Example: `"My Webpart"`
142
- * ```
143
- * {
144
- * "default": "My WebPart"
145
- * "en-us": "My WebPart",
146
- * "fr-fr": "Ma WebPart",
147
- * "zh": "我的 web 部件"
148
- * }
149
- * ```
150
- */
151
- title: ILocalizedString;
152
- /**
153
- * Description of the AdaptiveCardExtension represented as a dictionary of locale keys to description values. This
154
- * value will be displayed to the user in the toolbox. This description should be used in the Toolbox tooltip and
155
- * other display areas.
156
- *
157
- * @remarks
158
- * The AdaptiveCardExtension developer may give an initial description to the AdaptiveCardExtension. The organization
159
- * admin and page author will have the ability to change this description as per need.
160
- *
161
- * Usage: display the description of the AdaptiveCardExtension in the toolbox tooltip, web part gallery and the page.
162
- *
163
- * Supported values: a dictionary of locale keys to strings. Should always have a `'default'` key.
164
- *
165
- * Example: `"A tool for displaying neat information."`
166
- *
167
- * ```
168
- * {
169
- * "default": "A tool for displaying neat information.",
170
- * "en-us": "A tool for displaying neat information.",
171
- * "fr-fr": "Un outil d'affichage des informations soignées.",
172
- * "zh": "用於顯示整潔資訊的工具。"
173
- * }
174
- * ```
175
- */
176
- description: ILocalizedString;
177
- /**
178
- * The icon for the AdaptiveCardExtension, to be displayed in the toolbox, represented as a character name in the
179
- * Office 365 icon font file.
180
- *
181
- * @remarks
182
- * The icon font is specified here: {@link https://aka.ms/uifabric-icons} If this field has
183
- * a value, the {@link IClientSideWebPartManifestEntry.iconImageUrl} field will be ignored.
184
- *
185
- * Supported values: Any character name in the Office 365 Icon Font.
186
- *
187
- * Example: "graph"
188
- */
189
- officeFabricIconFontName?: string;
190
- /**
191
- * The icon for the AdaptiveCardExtension, to be displayed in the toolbox, represented an image URL. The image at the
192
- * URL must be exactly 40x28 px (SPPPLAT VSO#218660 to fix the size of the icon image).
193
- *
194
- * @remarks
195
- * If the {@link IClientSideWebPartManifestEntry.officeFabricIconFontName} field does not have a value,
196
- * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
197
- * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
198
- * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
199
- * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
200
- * assets (the loaderConfig.internalModuleBaseUrls property).
201
- *
202
- * Supported values: Any absolute URL.
203
- *
204
- * Example: `"https://contoso.akamaihd.net/files/myWebpartIcon.png"`
205
- */
206
- iconImageUrl?: string;
207
- /**
208
- * The group id to determine which modern group contains the AdaptiveCardExtension in modern site page. The SharePoint
209
- * Framework reserves group ids for predefined groups. The developer can pick one from those groups. If the developer
210
- * fills an id not in the predefined groups, it falls back to Other group.
211
- *
212
- * @remarks
213
- *
214
- * Supported values: the GUID from PredefinedGroup list
215
- *
216
- * Example: `"cf066440-0614-43d6-98ae-0b31cf14c7c3"`
217
- *
218
- * @beta
219
- */
220
- groupId: PredefinedGroup | string;
221
- /**
222
- * This field is used to tag a AdaptiveCardExtension with keywords that are different from the AdaptiveCardExtension group name.
223
- * Tags can be used for categorization and searching of AdaptiveCardExtensions. For example, in the toolbox.
224
- *
225
- * @remarks
226
- *
227
- * Example `[{ "default": "image" }, { "default": "media" }, { "default": "picture" }, ...]`
228
- *
229
- * @beta
230
- */
231
- tags?: ILocalizedString[];
232
- /**
233
- * Definition: Use this field to specify the data version of the pre-configured data provided to the AdaptiveCardExtension.
234
- * Note that data version is different from the version field in the manifest.
235
- *
236
- * @remarks
237
- * The manifest version is used to control the versioning of the AdaptiveCardExtension code, while data version is used
238
- * to control the versioning of the serialized data of the AdaptiveCardExtension. Refer to dataVersion field of your
239
- * AdaptiveCardExtension for more information.
240
- *
241
- * Usage: versioning and evolving the serialized data of the AdaptiveCardExtension
242
- *
243
- * Type: string representing a {@link http://semver.org | semantic version} with only two parts
244
- *
245
- * Supported values: MAJOR.MINOR
246
- *
247
- * Example: `"1.0"`
248
- */
249
- dataVersion?: string;
250
- /**
251
- * Every AdaptiveCardExtension is expected to have some custom properties. For example, a page AdaptiveCardExtension might define
252
- * properties for the page URL and caption text. A list AdaptiveCardExtension may have the list ID and list title as its
253
- * properties, and so on.
254
- *
255
- * @remarks
256
- *
257
- * The SharePoint Framework passes these properties to the AdaptiveCardExtensions when they are loaded. The AdaptiveCardExtension developer
258
- * fully controls the schema for these properties. The AdaptiveCardExtension developer should follow versioning rules when
259
- * updating the properties.
260
- *
261
- * Usage: rendering of the AdaptiveCardExtension
262
- *
263
- * Example: `{"imageSource": "https://contoso.akamaihd.net/files/contosoLogo.jpg", "captionText": "Contoso logo"}"`
264
- */
265
- properties: TProperties;
266
- }
16
+ /* Excluded from this release type: IAdaptiveCardExtensionManifestEntry */
267
17
 
268
18
  /* Excluded from this release type: ICapabilityCollection */
269
19
 
@@ -287,120 +37,7 @@ export declare interface IClientSideAssemblyManifest extends IClientSideComponen
287
37
  rootComponentId: string;
288
38
  }
289
39
 
290
- /**
291
- * This interface describes how a client-side component is to be loaded and initialized by a SharePoint client
292
- * framework. It contains all data for loading an entrypoint script and its dependency scripts.
293
- *
294
- * @beta
295
- */
296
- export declare interface IClientSideComponentLoaderConfiguration {
297
- /**
298
- * This is an array of fully-qualified paths to be prepended to each of the script resource paths with the
299
- * "internal" or "localized" type. If one fails to load, the loader will attempt to load from the next until there
300
- * are no base paths remaining.
301
- *
302
- * @remarks
303
- * All "internal" and "localized" script resources that do not have fully-qualified URLs
304
- * as their "path" field values must be hosted under each of the paths listed in this property. For example, if an
305
- * internal module's "path" field value is `"master_2015-04-20/my-application.bundle_1928f8a0.js"` and this field's
306
- * value is `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`, the loader will first
307
- * attempt to load this script resource from the URL
308
- * `"https://contoso.akamaihd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`. If loading from
309
- * that URL fails, the loader will then attempt to load this script resource from
310
- * `"https://contoso.msecnd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`. If that URL fails
311
- * to load, the component will fail to load and an error will be returned. It is important to note that the support
312
- * for multiple base URLs is purely for failover support. This means that all files must be present on all hosts
313
- * listed in this field.
314
- *
315
- * Usage: Base URLs for script resources with the "internal" or "localized" type.
316
- *
317
- * Supported values: Any URL that contains all internal scripts referenced in the "scriptResources" dictionary.
318
- *
319
- * Example: `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`
320
- */
321
- internalModuleBaseUrls: string[];
322
- /**
323
- * This is the ID of one of the entries in the "scriptResources" dictionary.
324
- *
325
- * @remarks
326
- * The loader will download and evaluate the script resource referenced in this field, resolve all dependencies
327
- * against the keys in the "scriptResources", and return the exported object to the loader's calling function.
328
- * The entry referenced in the "scriptResources" dictionary must be of the "internal" or the "localized" type.
329
- *
330
- * Supported values: An entry in the "scriptResources" dictionary that defines the base exported module of the
331
- * component.
332
- *
333
- * Example: `"myApplication.bundle"`
334
- */
335
- entryModuleId: string;
336
- /**
337
- * The module referenced by the "entryModuleId" field may export an object with several fields.
338
- *
339
- * @remarks
340
- * This value optionally references the name of a field on the object exported by the module referenced by the
341
- * `entryModuleId` field. When this field has a value, the value of the referenced field on the object exported
342
- * by the module referenced by the `entryModuleId` field is returned when this manifest is loaded instead of
343
- * the base exported object. For example, if entryModuleId refers to a module with with a top-level export of
344
- * `{ foo: 'bar', baz: 123 }` and:
345
- *
346
- * - if this field is unset, the value returned by the module loader is `{ foo: 'bar', baz: 123 }`
347
- *
348
- * - if this field is set to `foo`, the value returned by the module loader is `bar`
349
- *
350
- * - if this field is set to `bar`, the value returned by the module loader is undefined (as `bar` is not a key in
351
- * the top-level export).
352
- *
353
- * Example: `mySpWebpart`
354
- */
355
- exportName?: string;
356
- /**
357
- * This is a dictionary of named script resources. `path` and `localizedPath` modules may reference each
358
- * other and `manifest` modules are expected to be provided by the framework runtime. The resource named in the
359
- * `entryModuleId` must contain the component's exported object.
360
- *
361
- * @remarks
362
- *
363
- * Supported values: A dictionary of named script resources.
364
- *
365
- * Example:
366
- *
367
- * ```
368
- * {
369
- * "myApplication.bundle": {
370
- * "type": "path",
371
- * "path": "master_2015-04-20/my-application.bundle_1928f8a0.js"
372
- * },
373
- * "@microsoft/sp-client-base": {
374
- * "type": "component",
375
- * "id": "af59c2b3-2da7-41fd-8b72-3939817960af",
376
- * "version": "latest"
377
- * },
378
- * "@microsoft/sp-client-preview": {
379
- * "type": "component",
380
- * "id": "4d5eb168-6729-49a8-aec7-0e397f486b6e",
381
- * "version": "latest"
382
- * },
383
- * "jQuery": {
384
- * "type": "component",
385
- * "id": "00000000-0000-0000-0000-000000000000",
386
- * "version": "2.2.4",
387
- * "path": "https://code.jquery.com/jquery-2.2.4.min.js"
388
- * },
389
- * "myApplication_strings": {
390
- * "type": "localizedPath",
391
- * "defaultPath": "master_2015-04-20/my-application_strings_default_af378e0d.js",
392
- * "paths": {
393
- * "en-us": "master_2015-04-20/my-application_strings_en-us_d38ff012.js",
394
- * "fr-fr": "master_2015-04-20/my-application_strings_fr-fr_138af7e4.js"
395
- * }
396
- * }
397
- * }
398
- * ```
399
- */
400
- scriptResources: {
401
- [name: string]: IModuleConfiguration;
402
- };
403
- }
40
+ /* Excluded from this release type: IClientSideComponentLoaderConfiguration */
404
41
 
405
42
  /**
406
43
  * All client-side components built on the SharePoint framework need a valid component manifest. This interface
@@ -509,19 +146,7 @@ export declare interface IClientSideComponentManifest extends IClientSideManifes
509
146
  * Usage: Requires Custom Script to be allowed in order for this component to be installed and run.
510
147
  */
511
148
  requiresCustomScript?: boolean;
512
- /**
513
- * This portion of the configuration describes how the component is to be loaded and initialized by a
514
- * client. It contains an enumeration of scripts that the component requires along with a single
515
- * entry point script.
516
- *
517
- * @remarks
518
- * Usage: Loading a component.
519
- *
520
- * See `IClientSideComponentLoaderConfiguration` for more information and examples.
521
- *
522
- * @beta
523
- */
524
- loaderConfig: IClientSideComponentLoaderConfiguration;
149
+ /* Excluded from this release type: loaderConfig */
525
150
  /* Excluded from this release type: isolatedDomain */
526
151
  /* Excluded from this release type: storeAppId */
527
152
  /* Excluded from this release type: mpnId */
@@ -837,42 +462,9 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
837
462
  * Example: `"https://contoso.akamaihd.net/files/myWebpartIcon.png"`
838
463
  */
839
464
  iconImageUrl?: string;
840
- /**
841
- * The group id to determine which modern group contains the web part in modern site page. The SharePoint
842
- * Framework reserves group ids for predefined groups. The developer can pick one from those groups. If the developer
843
- * fills an id not in the predefined groups, it falls back to Other group.
844
- *
845
- * @remarks
846
- *
847
- * Supported values: the GUID from PredefinedGroup list
848
- *
849
- * Example: `"cf066440-0614-43d6-98ae-0b31cf14c7c3"`
850
- *
851
- * @beta
852
- */
853
- groupId: PredefinedGroup | string;
854
- /**
855
- * The group name in web part picker to contain the web part in the classic page. If no value is provided,
856
- * then the web part will be displayed in the Miscellaneous group.
857
- *
858
- * @remarks
859
- *
860
- * Example: `{ "default": "Media and Content" }`
861
- *
862
- * @beta
863
- */
864
- group?: ILocalizedString;
865
- /**
866
- * This field is used to tag a web part with keywords that are different from the web part group name.
867
- * Tags can be used for categorization and searching of web parts. For example, in the web part toolbox.
868
- *
869
- * @remarks
870
- *
871
- * Example `[{ "default": "image" }, { "default": "media" }, { "default": "picture" }, ...]`
872
- *
873
- * @beta
874
- */
875
- tags?: ILocalizedString[];
465
+ /* Excluded from this release type: groupId */
466
+ /* Excluded from this release type: group */
467
+ /* Excluded from this release type: tags */
876
468
  /**
877
469
  * Definition: Use this field to specify the data version of the pre-configured data provided to the web part.
878
470
  * Note that data version is different from the version field in the manifest.
@@ -1004,51 +596,7 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
1004
596
  };
1005
597
  }
1006
598
 
1007
- /**
1008
- * This is the interface for a script module with the "component" type. Modules of this type will be provided via
1009
- * manifests. In order for the dependency to be loaded, the manifest must be available on the site.
1010
- *
1011
- * @beta
1012
- */
1013
- export declare interface IComponentModuleConfiguration extends IModuleConfigurationBase {
1014
- type: 'component';
1015
- /**
1016
- * The version of the framework-supplied component to be loaded. For framework runtime component such as
1017
- * `@microsoft/sp-client-base`, it is recommended the version of the framework component the component was developed
1018
- * against be specified.
1019
- *
1020
- * @remarks
1021
- *
1022
- * Supported values: string representing a {@link http://semver.org | semantic version}, or "latest".
1023
- *
1024
- * Example: `"2.2.4"`
1025
- */
1026
- version: string;
1027
- /**
1028
- * The ID of the framework-supplied component to be loaded.
1029
- *
1030
- * @remarks
1031
- *
1032
- * Supported values: string representing a component's ID.
1033
- *
1034
- * Example: `"0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d"`
1035
- */
1036
- id: string;
1037
- /**
1038
- * A path to the framework-supplied component in case the framework fails to load the requested version.
1039
- *
1040
- * @remarks
1041
- * This must be either a fully-qualified URL, or a path under the paths specified in the `internalModuleBaseUrls`
1042
- * field. If this field is not specified and the version is not available in the framework runtime, the closest
1043
- * matching version of the component will be provided instead.
1044
- *
1045
- * Supported values: The path to the component either as a fully-qualified URL or as a path under the
1046
- * paths provided in the "internalModuleBaseUrls" field.
1047
- *
1048
- * Example: `"https://code.jquery.com/jquery-2.2.4.min.js"`
1049
- */
1050
- failoverPath?: string | IIntegrityPath;
1051
- }
599
+ /* Excluded from this release type: IComponentModuleConfiguration */
1052
600
 
1053
601
  /**
1054
602
  * Flexible layout sizing data
@@ -1070,78 +618,9 @@ export declare interface IFlexibleLayoutSizing {
1070
618
  defaultRowHeight?: number;
1071
619
  }
1072
620
 
1073
- /**
1074
- * A path with the subresource integrity hash of the resource.
1075
- *
1076
- * @beta
1077
- */
1078
- export declare interface IIntegrityPath {
1079
- /**
1080
- * The path to the resource.
1081
- */
1082
- path: string;
1083
- /**
1084
- * The subresource integrity hash of the resource referenced in {@link IIntegrityPath.path}.
1085
- */
1086
- integrity?: string;
1087
- }
621
+ /* Excluded from this release type: IIntegrityPath */
1088
622
 
1089
- /**
1090
- * This is the interface for a script module with the "localizedPath" type.
1091
- *
1092
- * @remarks
1093
- * Modules of this type must be provided by the component developer. These script resources are similar to those of
1094
- * the "path" type, but they may be present at a number of different paths, to be selected by the user's locale.
1095
- * Paths in this module type are loaded exactly the same way as "internal" modules are.
1096
- *
1097
- * @beta
1098
- */
1099
- export declare interface ILocalizedPathModuleConfiguration extends IModuleConfigurationBase {
1100
- type: 'localizedPath';
1101
- /**
1102
- * A path to this module's default locale javascript resource either as a fully-qualified URL or as a
1103
- * path under the paths provided in the "internalModuleBaseUrls" field.
1104
- *
1105
- * @remarks
1106
- * If the user's locale does not resolve to one of the paths specified in the "paths" field, the path in this
1107
- * field is used. Paths in this module type are treated exactly the same way paths in modules of the "internal"
1108
- * type are treated.
1109
- *
1110
- * Supported values: The path to the default locale version of the module either as a fully-qualified URL or as a path
1111
- * under the paths provided in the "internalModuleBaseUrls" field.
1112
- *
1113
- * Example: `"master_2015-04-20/my-application_strings_default_af378e0d.js"`
1114
- */
1115
- defaultPath: string | IIntegrityPath;
1116
- /**
1117
- * This is a dictionary of locale keys (in the `"ll-cc"` format) to paths to this module's locale
1118
- * javascript resource either as a fully-qualified URL or as a path under the paths provided in the
1119
- * `"internalModuleBaseUrls"` field.
1120
- *
1121
- * @remarks
1122
- * The loader will attempt to resolve the user's locale to one of the paths provided by this field, and will load
1123
- * the script resource under that path. If the user's locale does not resolve to one of the paths specified in this
1124
- * field, the path in `"defaultPath"` field is used. For example, if the user's locale is `"en-gb"`, and this field's
1125
- * value contains the keys `[ "en-us", "en-gb", "fr-fr" ]`, the path specified by the `"en-gb"` key will be used.
1126
- * If the user's locale is "en-gb", and this field's value contains the keys `[ "en-us", "fr-fr" ]`, the path
1127
- * specified by the `"en-us"` key will be used. If the user's locale is `"en-gb"`, and this field's value contains
1128
- * the keys `[ "es-es", "fr-fr" ]`, the path specified by the "defaultPath" field will be used.
1129
- * Paths in this module type are treated exactly the same way paths in modules of the "internal" type are treated.
1130
- *
1131
- * Supported values: A dictionary of locale-to-path mappings.
1132
- *
1133
- * Example:
1134
- * ```
1135
- * {
1136
- * "en-us": "master_2015-04-20/my-application_strings_en-us_d38ff012.js",
1137
- * "fr-fr": "master_2015-04-20/my-application_strings_fr-fr_138af7e4.js"
1138
- * }
1139
- * ```
1140
- */
1141
- paths?: {
1142
- [locale: string]: string | IIntegrityPath;
1143
- };
1144
- }
623
+ /* Excluded from this release type: ILocalizedPathModuleConfiguration */
1145
624
 
1146
625
  /**
1147
626
  * A set of localized strings.
@@ -1189,112 +668,11 @@ export declare interface ILocalizedString {
1189
668
  [locale: string]: string | undefined;
1190
669
  }
1191
670
 
1192
- /**
1193
- * @beta
1194
- */
1195
- export declare type IModuleConfiguration = IComponentModuleConfiguration | IPathModuleConfiguration | ILocalizedPathModuleConfiguration;
671
+ /* Excluded from this release type: IModuleConfiguration */
1196
672
 
1197
- /**
1198
- * This is the base interface for a script module's definition.
1199
- *
1200
- * @beta
1201
- */
1202
- export declare interface IModuleConfigurationBase {
1203
- /**
1204
- * The type of the script block. `"component"` modules come from a component,
1205
- * `"path"` and `"localizedPath"` modules must be available on the paths provided in
1206
- * the `"internalModuleBaseUrls"` field.
1207
- *
1208
- * @remarks
1209
- *
1210
- * Modules with the `"path"` type use the `IPathModuleConfiguration` interface.
1211
- *
1212
- * Modules with the `"component"` type use the `IComponentModuleConfiguration` interface.
1213
- * Modules with the "localizedPath" type use the `ILocalizedPathModuleConfiguration` interface.
1214
- *
1215
- * Supported values: `"component"`, `"path"`, `"localizedPath"`
1216
- *
1217
- * Example: `"localized"`
1218
- */
1219
- type: 'component' | 'path' | 'localizedPath';
1220
- /**
1221
- * If set to `true`, this module should not be preloaded when loading the component.
1222
- *
1223
- * @remarks
1224
- * The most common case for setting this property to "true" is when a module is defined in a manifest,
1225
- * but is not required for the module referenced in "entryModuleId" to load. Modules may be defined that
1226
- * are loaded asynchronously, and these modules do not need to be preloaded. This field implicitly defaults
1227
- * to `false`.
1228
- *
1229
- * Usage: Instructs the module loader to not preload this module.
1230
- */
1231
- shouldNotPreload?: boolean;
1232
- }
673
+ /* Excluded from this release type: IModuleConfigurationBase */
1233
674
 
1234
- /**
1235
- * This is the interface for a script module with the "path" type. Modules of this type must be provided by the
1236
- * component developer.
1237
- *
1238
- * @beta
1239
- */
1240
- export declare interface IPathModuleConfiguration extends IModuleConfigurationBase {
1241
- type: 'path';
1242
- /**
1243
- * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
1244
- * paths provided in the `internalModuleBaseUrls` field.
1245
- *
1246
- * @remarks
1247
- *
1248
- * For example, if this field's value is `"master_2015-04-20/my-application.bundle_1928f8a0.js"` and
1249
- * the `"internalModuleBaseUrls"` field's value is
1250
- * `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`, the loader will
1251
- * first attempt to load this script resource from the URL
1252
- * `"https://contoso.akamaihd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`.
1253
- * If loading from that URL fails, the loader will then attempt to load this script resource from
1254
- * `"https://contoso.msecnd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`.
1255
- * If that URL fails to load, the component will fail to load and an error will be returned.
1256
- *
1257
- * Supported values: The path to the module either as a fully-qualified URL or as a path under the
1258
- * paths provided in the "internalModuleBaseUrls" field.
1259
- *
1260
- * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
1261
- */
1262
- path: string | IIntegrityPath;
1263
- /**
1264
- * If this property is specified, this module is considered non-AMD and
1265
- * the module loader will not expect "define" or "require" to be called.
1266
- *
1267
- * @remarks
1268
- * In order to load scripts that don't follow the AMD/module-pattern where "define" or "require" is
1269
- * called and dependencies are explicitly listed and exports are explicitly returned, the module loader needs to
1270
- * know which global variable must be examined. If this property is specified, this module is considered non-AMD and
1271
- * the module loader will not expect "define" or "require" to be called. Instead, it will wait for the script to
1272
- * finish loading and examine the global variable specified in this field.
1273
- *
1274
- * Supported values: Variable names that are expected to be populated after this module is loaded. For example,
1275
- * if this module is describing jQuery, this value should probably be "$". If an empty string is specified,
1276
- * the module loader will throw an exception and the component will fail to load.
1277
- *
1278
- * Example: `"$"`
1279
- */
1280
- globalName?: string;
1281
- /**
1282
- * For non-AMD/module-pattern scripts that have dependencies (for example, jQuery plugins), the module
1283
- * loader will ensure that those dependencies are already loaded.
1284
- *
1285
- * @remarks
1286
- * Entries in the array specified in this field must refer to other non-AMD modules in this component. This field
1287
- * is not required to have a value for non-AMD modules. If any values are specified that do not refer to other
1288
- * modules in the same component manifest that this module is specified, the module loader will throw an exception
1289
- * and the component will fail to load.
1290
- *
1291
- * Supported values: Names of other non-AMD-pattern modules in this loader configuration, as specified by the key
1292
- * `IClientSideComponentLoaderConfiguration.scriptResources[]`
1293
- *
1294
- * Example: `["jquery"]`
1295
- */
1296
- globalDependencies?: string[];
1297
- }
675
+ /* Excluded from this release type: IPathModuleConfiguration */
1298
676
 
1299
677
  /* Excluded from this release type: IPrefabAppManifest */
1300
678
 
@@ -1314,78 +692,7 @@ export declare interface IPathModuleConfiguration extends IModuleConfigurationBa
1314
692
 
1315
693
  /* Excluded from this release type: ManifestType */
1316
694
 
1317
- /**
1318
- * Predefined web part group.
1319
- *
1320
- * @beta
1321
- */
1322
- export declare const enum PredefinedGroup {
1323
- /**
1324
- * Text, media and content.
1325
- *
1326
- * This group includes web parts that display text, multi-media, documents, information from the web, and other
1327
- * rich content.
1328
- *
1329
- * @beta
1330
- */
1331
- TextMediaAndContent = "cf066440-0614-43d6-98ae-0b31cf14c7c3",
1332
- /**
1333
- * Discovery.
1334
- *
1335
- * This group includes web parts that organize, group, and filter content to help users discover information.
1336
- *
1337
- * @beta
1338
- */
1339
- DocumentsListsAndLibraries = "1edbd9a8-0bfb-4aa2-9afd-14b8c45dd489",
1340
- /**
1341
- * Communication and collaboration.
1342
- *
1343
- * This group includes web parts that facilitate information sharing, team work, and social interactions.
1344
- *
1345
- * @beta
1346
- */
1347
- Feeds = "75e22ed5-fa14-4829-850a-c890608aca2d",
1348
- /**
1349
- * Planning and process.
1350
- *
1351
- * This group includes web parts that empower team productivity with the use of planning and process tools.
1352
- *
1353
- * @beta
1354
- */
1355
- NewsPeopleAndEvents = "1bc7927e-4a5e-4520-b540-71305c79c20a",
1356
- /**
1357
- * Business and intelligence.
1358
- *
1359
- * This group includes web parts for tracking and analyzing data, and for integrating business flow with pages.
1360
- *
1361
- * @beta
1362
- */
1363
- DataAnalysis = "4aca9e90-eff5-4fa1-bac7-728f5f157b66",
1364
- /**
1365
- * Regional information
1366
- *
1367
- * This group includes web parts that display information based on current region and geographical location
1368
- *
1369
- * @beta
1370
- */
1371
- RegionalInformation = "cfc8bda5-cb9b-49e3-8526-2ee6e52b256a",
1372
- /**
1373
- * Other.
1374
- *
1375
- * This group includes web parts not in other groups.
1376
- *
1377
- * @beta
1378
- */
1379
- Advanced = "5c03119e-3074-46fd-976b-c60198311f70",
1380
- /**
1381
- * Other.
1382
- *
1383
- * This group includes local web parts.
1384
- *
1385
- * @beta
1386
- */
1387
- Local = "8b7bf6f1-a56a-4aa3-8657-7eb6e7e6af61"
1388
- }
695
+ /* Excluded from this release type: PredefinedGroup */
1389
696
 
1390
697
  /* Excluded from this release type: PrefabAppSiteScript */
1391
698
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-module-interfaces",
3
- "version": "1.21.0-beta.2",
3
+ "version": "1.21.0",
4
4
  "description": "SharePoint Framework module interfaces",
5
5
  "license": "https://aka.ms/spfx/license",
6
6
  "homepage": "http://aka.ms/spfx",