@microsoft/sp-module-interfaces 1.18.1-beta.0 → 1.18.1-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.
@@ -11,252 +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: connectedSPFXAppId */
20
- /**
21
- * Definition: An array defining what host types are supported
22
- *
23
- *
24
- * @remarks
25
- * Usage: Use this array to define all hosts that are supported.
26
- *
27
- */
28
- supportedHosts?: ReadonlyArray<'Dashboard'>;
29
- /**
30
- * Definition: If true, this ACE supports and has been tested for theme variants experience.
31
- *
32
- * @remarks
33
- * Usage: Use this flag if a ACE supports theme variants and has been tested as such.
34
- * In order to support theme variants, ACEs must have the capability to render correctly in the context
35
- * of a theme variant. An ACE may or may not need to be updated to support theme variants, but should
36
- * always be tested before enabling this flag. By default no ACEs support theme variants.
37
- *
38
- */
39
- supportsThemeVariants?: boolean;
40
- /**
41
- * An untyped property bag for experimental flags not ready for production.
42
- *
43
- */
44
- experimentalData?: {
45
- [key: string]: any;
46
- };
47
- /**
48
- * If true, this AdaptiveCardExtension should not be displayed in the modern SharePoint toolbox.
49
- *
50
- * @remarks
51
- * Usage: Use this flag if it is not appropriate to display a AdaptiveCardExtension in the modern toolbox. By default,
52
- * all AdaptiveCardExtensions are enabled to be displayed in the toolbox if supportedHosts contains 'SharePointWebPart'
53
- * Such AdaptiveCardExtensions can be provisioned on pages though API or be added to the page in a pre configured way.
54
- */
55
- hiddenFromToolbox?: boolean;
56
- /* Excluded from this release type: isolationLevel */
57
- /**
58
- * Definition:
59
- * - If true, the AdaptiveCardExtension will be disposed and reloaded when the AdaptiveCardExtension data is updated by an external source.
60
- * - If false, the AdaptiveCardExtension data will be deserialized and the properties of the AdaptiveCardExtension will be updated,
61
- * onAfterPropertiesUpdatedExternally will be executed.
62
- * - If undefined, AdaptiveCardExtensions developed with SPFx version below 1.9 will default to true and AdaptiveCardExtensions developed with
63
- * a SPFx version 1.9 or greater will default to false.
64
- *
65
- * @remarks
66
- * By default, onAfterPropertiesUpdatedExternally will re-render the AdaptiveCardExtension. If your AdaptiveCardExtension requires specialized
67
- * logic, then it is recommended to override onAfterPropertiesUpdatedExternally.
68
- */
69
- useFallbackWhenPropertiesUpdatedExternally?: boolean;
70
- /**
71
- * A AdaptiveCardExtension can have pre-configured properties like the title, description, iconImageUrl, officeFabricIconFontName, toolbox group name
72
- * and AdaptiveCardExtension specific custom properties. And there can be multiple instances of these pre-configured properties.
73
- *
74
- * @remarks
75
- * This helps support scenarios where an organization may want to present multiple pre-configured entries
76
- * for a AdaptiveCardExtension in the Toolbox. Each entry is expected to configure the AdaptiveCardExtension with a different set
77
- * of pre-configured properties. A developer may decide to seed some initial values for these properties
78
- * but an organization admin can go ahead and customize these properties per the needs of his/her organization.
79
- * The properties can also be modified by the author of the page.
80
- *
81
- * Usage: help display a AdaptiveCardExtension in the Toolbox, PropertyPane and the initial rendering of the AdaptiveCardExtension.
82
- *
83
- * Type: JSON object
84
- *
85
- * Supported values: Array of `IClientSideWebPartManifestEntry` objects.
86
- *
87
- * Example:
88
- * ```
89
- * [{
90
- * "groupId": "5c03119e-3074-46fd-976b-c60198311f70",
91
- * "group": { "default": "Advanced" },
92
- * "title": { "id": "$./ManifestStrings.resx:PrimaryTextL1Template;" },
93
- * "description": { "id": "$./ManifestStrings.resx:PrimaryTextL1TemplateDescription;" },
94
- * "officeFabricIconFontName": "Balloons",
95
- * "properties": {
96
- * "templateType": "primaryText",
97
- * "title": "Primary Text",
98
- * "primaryText": "Basic card",
99
- * "description": "This is an example.",
100
- * "cardSize": "Medium"
101
- * }
102
- * }]
103
- * ```
104
- */
105
- preconfiguredEntries: IAdaptiveCardExtensionManifestEntry<TProperties>[];
106
- }
14
+ /* Excluded from this release type: IAdaptiveCardExtensionManifest */
107
15
 
108
- /**
109
- * This interface specifies the set of properties that can be pre-configured by a AdaptiveCardExtension developer. Each
110
- * pre-configured instance of the AdaptiveCardExtension will need a copy of these properties. Organization admins and
111
- * content authors can modify these properties on a need basis.
112
- *
113
- * @beta
114
- */
115
- export declare interface IAdaptiveCardExtensionManifestEntry<TProperties> {
116
- /**
117
- * Size of the AdaptiveCardExtension when it is rendered. This is value must be one of the supported CardSizes
118
- * ["Medium", "Large"] defined in the sp-adaptive-card-base project.
119
- */
120
- cardSize: string;
121
- /**
122
- * Title of the AdaptiveCardExtension represented as a single a dictionary of locale keys to title values. This
123
- * value will be displayed to the user in the toolbox.
124
- *
125
- * @remarks
126
- * This title should be used in the Toolbox and other display areas. The AdaptiveCardExtension developer may give
127
- * an initial title to the AdaptiveCardExtension. The organization admin and page author will have the ability to
128
- * change this title as per need.
129
- *
130
- * Usage: display the name of the AdaptiveCardExtension in the toolbox, web part gallery and the page.
131
- *
132
- * Supported values: a dictionary of locale keys to strings. Should always have a `'default'` key.
133
- *
134
- * Example: `"My Webpart"`
135
- * ```
136
- * {
137
- * "default": "My WebPart"
138
- * "en-us": "My WebPart",
139
- * "fr-fr": "Ma WebPart",
140
- * "zh": "我的 web 部件"
141
- * }
142
- * ```
143
- */
144
- title: ILocalizedString;
145
- /**
146
- * Description of the AdaptiveCardExtension represented as a dictionary of locale keys to description values. This
147
- * value will be displayed to the user in the toolbox. This description should be used in the Toolbox tooltip and
148
- * other display areas.
149
- *
150
- * @remarks
151
- * The AdaptiveCardExtension developer may give an initial description to the AdaptiveCardExtension. The organization
152
- * admin and page author will have the ability to change this description as per need.
153
- *
154
- * Usage: display the description of the AdaptiveCardExtension in the toolbox tooltip, web part gallery and the page.
155
- *
156
- * Supported values: a dictionary of locale keys to strings. Should always have a `'default'` key.
157
- *
158
- * Example: `"A tool for displaying neat information."`
159
- *
160
- * ```
161
- * {
162
- * "default": "A tool for displaying neat information.",
163
- * "en-us": "A tool for displaying neat information.",
164
- * "fr-fr": "Un outil d'affichage des informations soignées.",
165
- * "zh": "用於顯示整潔資訊的工具。"
166
- * }
167
- * ```
168
- */
169
- description: ILocalizedString;
170
- /**
171
- * The icon for the AdaptiveCardExtension, to be displayed in the toolbox, represented as a character name in the
172
- * Office 365 icon font file.
173
- *
174
- * @remarks
175
- * The icon font is specified here: {@link https://aka.ms/uifabric-icons} If this field has
176
- * a value, the {@link IClientSideWebPartManifestEntry.iconImageUrl} field will be ignored.
177
- *
178
- * Supported values: Any character name in the Office 365 Icon Font.
179
- *
180
- * Example: "graph"
181
- */
182
- officeFabricIconFontName?: string;
183
- /**
184
- * The icon for the AdaptiveCardExtension, to be displayed in the toolbox, represented an image URL. The image at the
185
- * URL must be exactly 40x28 px (SPPPLAT VSO#218660 to fix the size of the icon image).
186
- *
187
- * @remarks
188
- * If the {@link IClientSideWebPartManifestEntry.officeFabricIconFontName} field does not have a value,
189
- * this field must have a value. This value can be an absolute URL (e.g. `"http://example.com/icons/my-icon.png"`) or
190
- * a relative file path (e.g. `"./icons/my-icon.png"`). In the latter case, the path will be resolved relative to
191
- * the folder containing the input manifest. The icon file will be copied to the deployment folder like an asset,
192
- * and the output manifest's iconImageUrl will be replaced with a URL relative to the URL used to load all other
193
- * assets (the loaderConfig.internalModuleBaseUrls property).
194
- *
195
- * Supported values: Any absolute URL.
196
- *
197
- * Example: `"https://contoso.akamaihd.net/files/myWebpartIcon.png"`
198
- */
199
- iconImageUrl?: string;
200
- /**
201
- * The group id to determine which modern group contains the AdaptiveCardExtension in modern site page. The SharePoint
202
- * Framework reserves group ids for predefined groups. The developer can pick one from those groups. If the developer
203
- * fills an id not in the predefined groups, it falls back to Other group.
204
- *
205
- * @remarks
206
- *
207
- * Supported values: the GUID from PredefinedGroup list
208
- *
209
- * Example: `"cf066440-0614-43d6-98ae-0b31cf14c7c3"`
210
- *
211
- * @beta
212
- */
213
- groupId: PredefinedGroup | string;
214
- /**
215
- * This field is used to tag a AdaptiveCardExtension with keywords that are different from the AdaptiveCardExtension group name.
216
- * Tags can be used for categorization and searching of AdaptiveCardExtensions. For example, in the toolbox.
217
- *
218
- * @remarks
219
- *
220
- * Example `[{ "default": "image" }, { "default": "media" }, { "default": "picture" }, ...]`
221
- *
222
- * @beta
223
- */
224
- tags?: ILocalizedString[];
225
- /**
226
- * Definition: Use this field to specify the data version of the pre-configured data provided to the AdaptiveCardExtension.
227
- * Note that data version is different from the version field in the manifest.
228
- *
229
- * @remarks
230
- * The manifest version is used to control the versioning of the AdaptiveCardExtension code, while data version is used
231
- * to control the versioning of the serialized data of the AdaptiveCardExtension. Refer to dataVersion field of your
232
- * AdaptiveCardExtension for more information.
233
- *
234
- * Usage: versioning and evolving the serialized data of the AdaptiveCardExtension
235
- *
236
- * Type: string representing a {@link http://semver.org | semantic version} with only two parts
237
- *
238
- * Supported values: MAJOR.MINOR
239
- *
240
- * Example: `"1.0"`
241
- */
242
- dataVersion?: string;
243
- /**
244
- * Every AdaptiveCardExtension is expected to have some custom properties. For example, a page AdaptiveCardExtension might define
245
- * properties for the page URL and caption text. A list AdaptiveCardExtension may have the list ID and list title as its
246
- * properties, and so on.
247
- *
248
- * @remarks
249
- *
250
- * The SharePoint Framework passes these properties to the AdaptiveCardExtensions when they are loaded. The AdaptiveCardExtension developer
251
- * fully controls the schema for these properties. The AdaptiveCardExtension developer should follow versioning rules when
252
- * updating the properties.
253
- *
254
- * Usage: rendering of the AdaptiveCardExtension
255
- *
256
- * Example: `{"imageSource": "https://contoso.akamaihd.net/files/contosoLogo.jpg", "captionText": "Contoso logo"}"`
257
- */
258
- properties: TProperties;
259
- }
16
+ /* Excluded from this release type: IAdaptiveCardExtensionManifestEntry */
260
17
 
261
18
  /* Excluded from this release type: ICapabilityCollection */
262
19
 
@@ -280,120 +37,7 @@ export declare interface IClientSideAssemblyManifest extends IClientSideComponen
280
37
  rootComponentId: string;
281
38
  }
282
39
 
283
- /**
284
- * This interface describes how a client-side component is to be loaded and initialized by a SharePoint client
285
- * framework. It contains all data for loading an entrypoint script and its dependency scripts.
286
- *
287
- * @beta
288
- */
289
- export declare interface IClientSideComponentLoaderConfiguration {
290
- /**
291
- * This is an array of fully-qualified paths to be prepended to each of the script resource paths with the
292
- * "internal" or "localized" type. If one fails to load, the loader will attempt to load from the next until there
293
- * are no base paths remaining.
294
- *
295
- * @remarks
296
- * All "internal" and "localized" script resources that do not have fully-qualified URLs
297
- * as their "path" field values must be hosted under each of the paths listed in this property. For example, if an
298
- * internal module's "path" field value is `"master_2015-04-20/my-application.bundle_1928f8a0.js"` and this field's
299
- * value is `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`, the loader will first
300
- * attempt to load this script resource from the URL
301
- * `"https://contoso.akamaihd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`. If loading from
302
- * that URL fails, the loader will then attempt to load this script resource from
303
- * `"https://contoso.msecnd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`. If that URL fails
304
- * to load, the component will fail to load and an error will be returned. It is important to note that the support
305
- * for multiple base URLs is purely for failover support. This means that all files must be present on all hosts
306
- * listed in this field.
307
- *
308
- * Usage: Base URLs for script resources with the "internal" or "localized" type.
309
- *
310
- * Supported values: Any URL that contains all internal scripts referenced in the "scriptResources" dictionary.
311
- *
312
- * Example: `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`
313
- */
314
- internalModuleBaseUrls: string[];
315
- /**
316
- * This is the ID of one of the entries in the "scriptResources" dictionary.
317
- *
318
- * @remarks
319
- * The loader will download and evaluate the script resource referenced in this field, resolve all dependencies
320
- * against the keys in the "scriptResources", and return the exported object to the loader's calling function.
321
- * The entry referenced in the "scriptResources" dictionary must be of the "internal" or the "localized" type.
322
- *
323
- * Supported values: An entry in the "scriptResources" dictionary that defines the base exported module of the
324
- * component.
325
- *
326
- * Example: `"myApplication.bundle"`
327
- */
328
- entryModuleId: string;
329
- /**
330
- * The module referenced by the "entryModuleId" field may export an object with several fields.
331
- *
332
- * @remarks
333
- * This value optionally references the name of a field on the object exported by the module referenced by the
334
- * `entryModuleId` field. When this field has a value, the value of the referenced field on the object exported
335
- * by the module referenced by the `entryModuleId` field is returned when this manifest is loaded instead of
336
- * the base exported object. For example, if entryModuleId refers to a module with with a top-level export of
337
- * `{ foo: 'bar', baz: 123 }` and:
338
- *
339
- * - if this field is unset, the value returned by the module loader is `{ foo: 'bar', baz: 123 }`
340
- *
341
- * - if this field is set to `foo`, the value returned by the module loader is `bar`
342
- *
343
- * - if this field is set to `bar`, the value returned by the module loader is undefined (as `bar` is not a key in
344
- * the top-level export).
345
- *
346
- * Example: `mySpWebpart`
347
- */
348
- exportName?: string;
349
- /**
350
- * This is a dictionary of named script resources. `path` and `localizedPath` modules may reference each
351
- * other and `manifest` modules are expected to be provided by the framework runtime. The resource named in the
352
- * `entryModuleId` must contain the component's exported object.
353
- *
354
- * @remarks
355
- *
356
- * Supported values: A dictionary of named script resources.
357
- *
358
- * Example:
359
- *
360
- * ```
361
- * {
362
- * "myApplication.bundle": {
363
- * "type": "path",
364
- * "path": "master_2015-04-20/my-application.bundle_1928f8a0.js"
365
- * },
366
- * "@microsoft/sp-client-base": {
367
- * "type": "component",
368
- * "id": "af59c2b3-2da7-41fd-8b72-3939817960af",
369
- * "version": "latest"
370
- * },
371
- * "@microsoft/sp-client-preview": {
372
- * "type": "component",
373
- * "id": "4d5eb168-6729-49a8-aec7-0e397f486b6e",
374
- * "version": "latest"
375
- * },
376
- * "jQuery": {
377
- * "type": "component",
378
- * "id": "00000000-0000-0000-0000-000000000000",
379
- * "version": "2.2.4",
380
- * "path": "https://code.jquery.com/jquery-2.2.4.min.js"
381
- * },
382
- * "myApplication_strings": {
383
- * "type": "localizedPath",
384
- * "defaultPath": "master_2015-04-20/my-application_strings_default_af378e0d.js",
385
- * "paths": {
386
- * "en-us": "master_2015-04-20/my-application_strings_en-us_d38ff012.js",
387
- * "fr-fr": "master_2015-04-20/my-application_strings_fr-fr_138af7e4.js"
388
- * }
389
- * }
390
- * }
391
- * ```
392
- */
393
- scriptResources: {
394
- [name: string]: IModuleConfiguration;
395
- };
396
- }
40
+ /* Excluded from this release type: IClientSideComponentLoaderConfiguration */
397
41
 
398
42
  /**
399
43
  * All client-side components built on the SharePoint framework need a valid component manifest. This interface
@@ -502,19 +146,7 @@ export declare interface IClientSideComponentManifest extends IClientSideManifes
502
146
  * Usage: Requires Custom Script to be allowed in order for this component to be installed and run.
503
147
  */
504
148
  requiresCustomScript?: boolean;
505
- /**
506
- * This portion of the configuration describes how the component is to be loaded and initialized by a
507
- * client. It contains an enumeration of scripts that the component requires along with a single
508
- * entry point script.
509
- *
510
- * @remarks
511
- * Usage: Loading a component.
512
- *
513
- * See `IClientSideComponentLoaderConfiguration` for more information and examples.
514
- *
515
- * @beta
516
- */
517
- loaderConfig: IClientSideComponentLoaderConfiguration;
149
+ /* Excluded from this release type: loaderConfig */
518
150
  /* Excluded from this release type: isolatedDomain */
519
151
  /* Excluded from this release type: storeAppId */
520
152
  /* Excluded from this release type: mpnId */
@@ -805,42 +437,9 @@ export declare interface IClientSideWebPartManifestEntry<TProperties> {
805
437
  * Example: `"https://contoso.akamaihd.net/files/myWebpartIcon.png"`
806
438
  */
807
439
  iconImageUrl?: string;
808
- /**
809
- * The group id to determine which modern group contains the web part in modern site page. The SharePoint
810
- * Framework reserves group ids for predefined groups. The developer can pick one from those groups. If the developer
811
- * fills an id not in the predefined groups, it falls back to Other group.
812
- *
813
- * @remarks
814
- *
815
- * Supported values: the GUID from PredefinedGroup list
816
- *
817
- * Example: `"cf066440-0614-43d6-98ae-0b31cf14c7c3"`
818
- *
819
- * @beta
820
- */
821
- groupId: PredefinedGroup | string;
822
- /**
823
- * The group name in web part picker to contain the web part in the classic page. If no value is provided,
824
- * then the web part will be displayed in the Miscellaneous group.
825
- *
826
- * @remarks
827
- *
828
- * Example: `{ "default": "Media and Content" }`
829
- *
830
- * @beta
831
- */
832
- group?: ILocalizedString;
833
- /**
834
- * This field is used to tag a web part with keywords that are different from the web part group name.
835
- * Tags can be used for categorization and searching of web parts. For example, in the web part toolbox.
836
- *
837
- * @remarks
838
- *
839
- * Example `[{ "default": "image" }, { "default": "media" }, { "default": "picture" }, ...]`
840
- *
841
- * @beta
842
- */
843
- tags?: ILocalizedString[];
440
+ /* Excluded from this release type: groupId */
441
+ /* Excluded from this release type: group */
442
+ /* Excluded from this release type: tags */
844
443
  /**
845
444
  * Definition: Use this field to specify the data version of the pre-configured data provided to the web part.
846
445
  * Note that data version is different from the version field in the manifest.
@@ -972,124 +571,11 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
972
571
  };
973
572
  }
974
573
 
975
- /**
976
- * This is the interface for a script module with the "component" type. Modules of this type will be provided via
977
- * manifests. In order for the dependency to be loaded, the manifest must be available on the site.
978
- *
979
- * @beta
980
- */
981
- export declare interface IComponentModuleConfiguration extends IModuleConfigurationBase {
982
- type: 'component';
983
- /**
984
- * The version of the framework-supplied component to be loaded. For framework runtime component such as
985
- * `@microsoft/sp-client-base`, it is recommended the version of the framework component the component was developed
986
- * against be specified.
987
- *
988
- * @remarks
989
- *
990
- * Supported values: string representing a {@link http://semver.org | semantic version}, or "latest".
991
- *
992
- * Example: `"2.2.4"`
993
- */
994
- version: string;
995
- /**
996
- * The ID of the framework-supplied component to be loaded.
997
- *
998
- * @remarks
999
- *
1000
- * Supported values: string representing a component's ID.
1001
- *
1002
- * Example: `"0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d"`
1003
- */
1004
- id: string;
1005
- /**
1006
- * A path to the framework-supplied component in case the framework fails to load the requested version.
1007
- *
1008
- * @remarks
1009
- * This must be either a fully-qualified URL, or a path under the paths specified in the `internalModuleBaseUrls`
1010
- * field. If this field is not specified and the version is not available in the framework runtime, the closest
1011
- * matching version of the component will be provided instead.
1012
- *
1013
- * Supported values: The path to the component either as a fully-qualified URL or as a path under the
1014
- * paths provided in the "internalModuleBaseUrls" field.
1015
- *
1016
- * Example: `"https://code.jquery.com/jquery-2.2.4.min.js"`
1017
- */
1018
- failoverPath?: string | IIntegrityPath;
1019
- }
574
+ /* Excluded from this release type: IComponentModuleConfiguration */
1020
575
 
1021
- /**
1022
- * A path with the subresource integrity hash of the resource.
1023
- *
1024
- * @beta
1025
- */
1026
- export declare interface IIntegrityPath {
1027
- /**
1028
- * The path to the resource.
1029
- */
1030
- path: string;
1031
- /**
1032
- * The subresource integrity hash of the resource referenced in {@link IIntegrityPath.path}.
1033
- */
1034
- integrity?: string;
1035
- }
576
+ /* Excluded from this release type: IIntegrityPath */
1036
577
 
1037
- /**
1038
- * This is the interface for a script module with the "localizedPath" type.
1039
- *
1040
- * @remarks
1041
- * Modules of this type must be provided by the component developer. These script resources are similar to those of
1042
- * the "path" type, but they may be present at a number of different paths, to be selected by the user's locale.
1043
- * Paths in this module type are loaded exactly the same way as "internal" modules are.
1044
- *
1045
- * @beta
1046
- */
1047
- export declare interface ILocalizedPathModuleConfiguration extends IModuleConfigurationBase {
1048
- type: 'localizedPath';
1049
- /**
1050
- * A path to this module's default locale javascript resource either as a fully-qualified URL or as a
1051
- * path under the paths provided in the "internalModuleBaseUrls" field.
1052
- *
1053
- * @remarks
1054
- * If the user's locale does not resolve to one of the paths specified in the "paths" field, the path in this
1055
- * field is used. Paths in this module type are treated exactly the same way paths in modules of the "internal"
1056
- * type are treated.
1057
- *
1058
- * Supported values: The path to the default locale version of the module either as a fully-qualified URL or as a path
1059
- * under the paths provided in the "internalModuleBaseUrls" field.
1060
- *
1061
- * Example: `"master_2015-04-20/my-application_strings_default_af378e0d.js"`
1062
- */
1063
- defaultPath: string | IIntegrityPath;
1064
- /**
1065
- * This is a dictionary of locale keys (in the `"ll-cc"` format) to paths to this module's locale
1066
- * javascript resource either as a fully-qualified URL or as a path under the paths provided in the
1067
- * `"internalModuleBaseUrls"` field.
1068
- *
1069
- * @remarks
1070
- * The loader will attempt to resolve the user's locale to one of the paths provided by this field, and will load
1071
- * the script resource under that path. If the user's locale does not resolve to one of the paths specified in this
1072
- * field, the path in `"defaultPath"` field is used. For example, if the user's locale is `"en-gb"`, and this field's
1073
- * value contains the keys `[ "en-us", "en-gb", "fr-fr" ]`, the path specified by the `"en-gb"` key will be used.
1074
- * If the user's locale is "en-gb", and this field's value contains the keys `[ "en-us", "fr-fr" ]`, the path
1075
- * specified by the `"en-us"` key will be used. If the user's locale is `"en-gb"`, and this field's value contains
1076
- * the keys `[ "es-es", "fr-fr" ]`, the path specified by the "defaultPath" field will be used.
1077
- * Paths in this module type are treated exactly the same way paths in modules of the "internal" type are treated.
1078
- *
1079
- * Supported values: A dictionary of locale-to-path mappings.
1080
- *
1081
- * Example:
1082
- * ```
1083
- * {
1084
- * "en-us": "master_2015-04-20/my-application_strings_en-us_d38ff012.js",
1085
- * "fr-fr": "master_2015-04-20/my-application_strings_fr-fr_138af7e4.js"
1086
- * }
1087
- * ```
1088
- */
1089
- paths?: {
1090
- [locale: string]: string | IIntegrityPath;
1091
- };
1092
- }
578
+ /* Excluded from this release type: ILocalizedPathModuleConfiguration */
1093
579
 
1094
580
  /**
1095
581
  * A set of localized strings.
@@ -1137,188 +623,16 @@ export declare interface ILocalizedString {
1137
623
  [locale: string]: string | undefined;
1138
624
  }
1139
625
 
1140
- /**
1141
- * @beta
1142
- */
1143
- export declare type IModuleConfiguration = IComponentModuleConfiguration | IPathModuleConfiguration | ILocalizedPathModuleConfiguration;
626
+ /* Excluded from this release type: IModuleConfiguration */
1144
627
 
1145
- /**
1146
- * This is the base interface for a script module's definition.
1147
- *
1148
- * @beta
1149
- */
1150
- export declare interface IModuleConfigurationBase {
1151
- /**
1152
- * The type of the script block. `"component"` modules come from a component,
1153
- * `"path"` and `"localizedPath"` modules must be available on the paths provided in
1154
- * the `"internalModuleBaseUrls"` field.
1155
- *
1156
- * @remarks
1157
- *
1158
- * Modules with the `"path"` type use the `IPathModuleConfiguration` interface.
1159
- *
1160
- * Modules with the `"component"` type use the `IComponentModuleConfiguration` interface.
1161
- * Modules with the "localizedPath" type use the `ILocalizedPathModuleConfiguration` interface.
1162
- *
1163
- * Supported values: `"component"`, `"path"`, `"localizedPath"`
1164
- *
1165
- * Example: `"localized"`
1166
- */
1167
- type: 'component' | 'path' | 'localizedPath';
1168
- /**
1169
- * If set to `true`, this module should not be preloaded when loading the component.
1170
- *
1171
- * @remarks
1172
- * The most common case for setting this property to "true" is when a module is defined in a manifest,
1173
- * but is not required for the module referenced in "entryModuleId" to load. Modules may be defined that
1174
- * are loaded asynchronously, and these modules do not need to be preloaded. This field implicitly defaults
1175
- * to `false`.
1176
- *
1177
- * Usage: Instructs the module loader to not preload this module.
1178
- */
1179
- shouldNotPreload?: boolean;
1180
- }
628
+ /* Excluded from this release type: IModuleConfigurationBase */
1181
629
 
1182
- /**
1183
- * This is the interface for a script module with the "path" type. Modules of this type must be provided by the
1184
- * component developer.
1185
- *
1186
- * @beta
1187
- */
1188
- export declare interface IPathModuleConfiguration extends IModuleConfigurationBase {
1189
- type: 'path';
1190
- /**
1191
- * A path to this module's javascript resource either as a fully-qualified URL or as a path under the
1192
- * paths provided in the `internalModuleBaseUrls` field.
1193
- *
1194
- * @remarks
1195
- *
1196
- * For example, if this field's value is `"master_2015-04-20/my-application.bundle_1928f8a0.js"` and
1197
- * the `"internalModuleBaseUrls"` field's value is
1198
- * `[ "https://contoso.akamaihd.net/files/", "https://contoso.msecnd.net/files/" ]`, the loader will
1199
- * first attempt to load this script resource from the URL
1200
- * `"https://contoso.akamaihd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`.
1201
- * If loading from that URL fails, the loader will then attempt to load this script resource from
1202
- * `"https://contoso.msecnd.net/files/master_2015-04-20/my-application.bundle_1928f8a0.js"`.
1203
- * If that URL fails to load, the component will fail to load and an error will be returned.
1204
- *
1205
- * Supported values: The path to the module either as a fully-qualified URL or as a path under the
1206
- * paths provided in the "internalModuleBaseUrls" field.
1207
- *
1208
- * Example: `"master_2015-04-20/my-application.bundle_1928f8a0.js"`
1209
- */
1210
- path: string | IIntegrityPath;
1211
- /**
1212
- * If this property is specified, this module is considered non-AMD and
1213
- * the module loader will not expect "define" or "require" to be called.
1214
- *
1215
- * @remarks
1216
- * In order to load scripts that don't follow the AMD/module-pattern where "define" or "require" is
1217
- * called and dependencies are explicitly listed and exports are explicitly returned, the module loader needs to
1218
- * know which global variable must be examined. If this property is specified, this module is considered non-AMD and
1219
- * the module loader will not expect "define" or "require" to be called. Instead, it will wait for the script to
1220
- * finish loading and examine the global variable specified in this field.
1221
- *
1222
- * Supported values: Variable names that are expected to be populated after this module is loaded. For example,
1223
- * if this module is describing jQuery, this value should probably be "$". If an empty string is specified,
1224
- * the module loader will throw an exception and the component will fail to load.
1225
- *
1226
- * Example: `"$"`
1227
- */
1228
- globalName?: string;
1229
- /**
1230
- * For non-AMD/module-pattern scripts that have dependencies (for example, jQuery plugins), the module
1231
- * loader will ensure that those dependencies are already loaded.
1232
- *
1233
- * @remarks
1234
- * Entries in the array specified in this field must refer to other non-AMD modules in this component. This field
1235
- * is not required to have a value for non-AMD modules. If any values are specified that do not refer to other
1236
- * modules in the same component manifest that this module is specified, the module loader will throw an exception
1237
- * and the component will fail to load.
1238
- *
1239
- * Supported values: Names of other non-AMD-pattern modules in this loader configuration, as specified by the key
1240
- * `IClientSideComponentLoaderConfiguration.scriptResources[]`
1241
- *
1242
- * Example: `["jquery"]`
1243
- */
1244
- globalDependencies?: string[];
1245
- }
630
+ /* Excluded from this release type: IPathModuleConfiguration */
1246
631
 
1247
632
  /* Excluded from this release type: IPreloadOptions */
1248
633
 
1249
634
  /* Excluded from this release type: ManifestType */
1250
635
 
1251
- /**
1252
- * Predefined web part group.
1253
- *
1254
- * @beta
1255
- */
1256
- export declare const enum PredefinedGroup {
1257
- /**
1258
- * Text, media and content.
1259
- *
1260
- * This group includes web parts that display text, multi-media, documents, information from the web, and other
1261
- * rich content.
1262
- *
1263
- * @beta
1264
- */
1265
- TextMediaAndContent = "cf066440-0614-43d6-98ae-0b31cf14c7c3",
1266
- /**
1267
- * Discovery.
1268
- *
1269
- * This group includes web parts that organize, group, and filter content to help users discover information.
1270
- *
1271
- * @beta
1272
- */
1273
- DocumentsListsAndLibraries = "1edbd9a8-0bfb-4aa2-9afd-14b8c45dd489",
1274
- /**
1275
- * Communication and collaboration.
1276
- *
1277
- * This group includes web parts that facilitate information sharing, team work, and social interactions.
1278
- *
1279
- * @beta
1280
- */
1281
- Feeds = "75e22ed5-fa14-4829-850a-c890608aca2d",
1282
- /**
1283
- * Planning and process.
1284
- *
1285
- * This group includes web parts that empower team productivity with the use of planning and process tools.
1286
- *
1287
- * @beta
1288
- */
1289
- NewsPeopleAndEvents = "1bc7927e-4a5e-4520-b540-71305c79c20a",
1290
- /**
1291
- * Business and intelligence.
1292
- *
1293
- * This group includes web parts for tracking and analyzing data, and for integrating business flow with pages.
1294
- *
1295
- * @beta
1296
- */
1297
- DataAnalysis = "4aca9e90-eff5-4fa1-bac7-728f5f157b66",
1298
- /**
1299
- * Regional information
1300
- *
1301
- * This group includes web parts that display information based on current region and geographical location
1302
- *
1303
- * @beta
1304
- */
1305
- RegionalInformation = "cfc8bda5-cb9b-49e3-8526-2ee6e52b256a",
1306
- /**
1307
- * Other.
1308
- *
1309
- * This group includes web parts not in other groups.
1310
- *
1311
- * @beta
1312
- */
1313
- Advanced = "5c03119e-3074-46fd-976b-c60198311f70",
1314
- /**
1315
- * Other.
1316
- *
1317
- * This group includes local web parts.
1318
- *
1319
- * @beta
1320
- */
1321
- Local = "8b7bf6f1-a56a-4aa3-8657-7eb6e7e6af61"
1322
- }
636
+ /* Excluded from this release type: PredefinedGroup */
1323
637
 
1324
638
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-module-interfaces",
3
- "version": "1.18.1-beta.0",
3
+ "version": "1.18.1-rc.0",
4
4
  "description": "SharePoint Framework module interfaces",
5
5
  "license": "https://aka.ms/spfx/license",
6
6
  "homepage": "http://aka.ms/spfx",