gd-sprest 7.5.5 → 7.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/helper/listForm.d.ts +2 -1
- package/@types/lib/hubSites.d.ts +1 -1
- package/build/helper/listForm.js +0 -1
- package/build/rest.js +1 -1
- package/dist/gd-sprest.d.ts +3 -2
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +45 -45
|
@@ -55,8 +55,9 @@ export interface IListForm {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Method to show the file dialog.
|
|
58
|
+
* @param accept - The acceptable file extensions to allow.
|
|
58
59
|
*/
|
|
59
|
-
showFileDialog(): PromiseLike<IListFormAttachmentInfo>;
|
|
60
|
+
showFileDialog(accept?: string[]): PromiseLike<IListFormAttachmentInfo>;
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
63
|
* Method to show the file dialog.
|
package/@types/lib/hubSites.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface IHubSites {
|
|
|
17
17
|
* Creates an instance of the user profile library.
|
|
18
18
|
* @param targetInfo - (Optional) The target information.
|
|
19
19
|
*/
|
|
20
|
-
(targetInfo?: ITargetInfoProps): IHubSiteCollection
|
|
20
|
+
(targetInfo?: ITargetInfoProps): IBaseExecution<IHubSiteCollection>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* A static method to see if the current user can create a hub site.
|
package/build/helper/listForm.js
CHANGED
|
@@ -577,7 +577,6 @@ exports.ListForm = {
|
|
|
577
577
|
var reader = new FileReader();
|
|
578
578
|
// Set the file loaded event
|
|
579
579
|
reader.onloadend = function (ev) {
|
|
580
|
-
var attachment = null;
|
|
581
580
|
var ext = srcFile.name.split(".");
|
|
582
581
|
ext = ext[ext.length - 1].toLowerCase();
|
|
583
582
|
// See if the info exists
|
package/build/rest.js
CHANGED
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -1313,7 +1313,7 @@ declare module 'gd-sprest/lib/hubSites' {
|
|
|
1313
1313
|
* Creates an instance of the user profile library.
|
|
1314
1314
|
* @param targetInfo - (Optional) The target information.
|
|
1315
1315
|
*/
|
|
1316
|
-
(targetInfo?: ITargetInfoProps): IHubSiteCollection
|
|
1316
|
+
(targetInfo?: ITargetInfoProps): IBaseExecution<IHubSiteCollection>;
|
|
1317
1317
|
|
|
1318
1318
|
/**
|
|
1319
1319
|
* A static method to see if the current user can create a hub site.
|
|
@@ -2329,8 +2329,9 @@ declare module 'gd-sprest/helper/listForm' {
|
|
|
2329
2329
|
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Method to show the file dialog.
|
|
2332
|
+
* @param accept - The acceptable file extensions to allow.
|
|
2332
2333
|
*/
|
|
2333
|
-
showFileDialog(): PromiseLike<IListFormAttachmentInfo>;
|
|
2334
|
+
showFileDialog(accept?: string[]): PromiseLike<IListFormAttachmentInfo>;
|
|
2334
2335
|
|
|
2335
2336
|
/**
|
|
2336
2337
|
* Method to show the file dialog.
|