@nativescript-community/ui-document-picker 1.1.11 → 1.1.12

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.12](https://github.com/nativescript-community/ui-document-picker/compare/v1.1.11...v1.1.12) (2022-02-18)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-document-picker
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.1.11](https://github.com/nativescript-community/ui-document-picker/compare/v1.1.10...v1.1.11) (2022-02-16)
7
15
 
8
16
 
package/index.ios.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { FolderPickerOptions } from '.';
2
2
  import { FilePickerOptions } from './index.common';
3
3
  export { FilePickerOptions };
4
- export declare function openFilePicker(params: FilePickerOptions): Promise<unknown>;
4
+ export declare function openFilePicker(params?: FilePickerOptions): Promise<unknown>;
5
5
  export declare function pickFolder(params?: FolderPickerOptions): Promise<{
6
6
  folders: any[];
7
7
  }>;
package/index.ios.js CHANGED
@@ -44,11 +44,14 @@ var DocumentPickerDelegate = /** @class */ (function (_super) {
44
44
  return DocumentPickerDelegate;
45
45
  }(NSObject));
46
46
  let delegate;
47
- export function openFilePicker(params) {
47
+ export function openFilePicker(params = {}) {
48
48
  let documentTypes;
49
49
  if (params.extensions && params.extensions.length > 0) {
50
50
  documentTypes = Utils.ios.collections.jsArrayToNSArray(params.extensions);
51
51
  }
52
+ else {
53
+ documentTypes = Utils.ios.collections.jsArrayToNSArray([kUTTypeContent]);
54
+ }
52
55
  return new Promise((resolve, reject) => {
53
56
  const controller = UIDocumentPickerViewController.alloc().initWithDocumentTypesInMode(documentTypes, params.pickerMode !== undefined ? params.pickerMode : 0);
54
57
  delegate = DocumentPickerDelegate.initWithResolveReject(resolve, reject);
package/index.ios.js.map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AG,aAAa,CAAC,iBAAiB,CAAC;QAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAChF,SAAS,CAAC,uCAAuC,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACP,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,SAA8B,EAAE;IAC7D,OAAO;QACH,OAAO,EAAE,EAAE;KACd,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-document-picker",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "A NativeScript plugin that allows you to select files from the device.",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "license": "Apache-2.0",
40
40
  "readmeFilename": "README.md",
41
41
  "dependencies": {
42
- "@nativescript-community/perms": "2.2.2"
42
+ "@nativescript-community/perms": "2.2.5"
43
43
  },
44
- "gitHead": "a2f9a14ebc9433d513887ceb4a788458eb97dfb8"
44
+ "gitHead": "9e02a0c6759105f03087eb2eed0ac6356c96becf"
45
45
  }