expo-document-picker 13.1.1-canary-20250408-7f0ab53 → 13.1.2

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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/android/build.gradle +2 -2
  3. package/build/ExpoDocumentPicker.web.d.ts.map +1 -1
  4. package/build/ExpoDocumentPicker.web.js.map +1 -1
  5. package/build/index.js.map +1 -1
  6. package/expo-module.config.json +1 -1
  7. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.module → 13.1.2/expo.modules.documentpicker-13.1.2.module} +7 -7
  8. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.module.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.module.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.module.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.module.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.pom → 13.1.2/expo.modules.documentpicker-13.1.2.pom} +1 -1
  13. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.pom.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.pom.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.pom.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.2/expo.modules.documentpicker-13.1.2.pom.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml +4 -4
  18. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.md5 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha1 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha256 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha512 +1 -1
  22. package/package.json +5 -4
  23. package/plugin/build/withDocumentPickerIOS.js +2 -2
  24. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.module.md5 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.module.sha1 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.module.sha256 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.module.sha512 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.pom.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.pom.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.pom.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.pom.sha512 +0 -1
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar → 13.1.2/expo.modules.documentpicker-13.1.2-sources.jar} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar.md5 → 13.1.2/expo.modules.documentpicker-13.1.2-sources.jar.md5} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar.sha1 → 13.1.2/expo.modules.documentpicker-13.1.2-sources.jar.sha1} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar.sha256 → 13.1.2/expo.modules.documentpicker-13.1.2-sources.jar.sha256} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar.sha512 → 13.1.2/expo.modules.documentpicker-13.1.2-sources.jar.sha512} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar → 13.1.2/expo.modules.documentpicker-13.1.2.aar} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar.md5 → 13.1.2/expo.modules.documentpicker-13.1.2.aar.md5} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar.sha1 → 13.1.2/expo.modules.documentpicker-13.1.2.aar.sha1} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar.sha256 → 13.1.2/expo.modules.documentpicker-13.1.2.aar.sha256} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250408-7f0ab53/expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar.sha512 → 13.1.2/expo.modules.documentpicker-13.1.2.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.1.2 — 2025-04-14
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 13.1.1 — 2025-04-09
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
13
21
  ## 13.1.0 — 2025-04-04
14
22
 
15
23
  ### 💡 Others
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = "host.exp.exponent"
7
- version = "13.1.1-canary-20250408-7f0ab53"
7
+ version = "13.1.2"
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.documentpicker"
11
11
  defaultConfig {
12
12
  versionCode 17
13
- versionName '13.1.1-canary-20250408-7f0ab53'
13
+ versionName '13.1.2'
14
14
  }
15
15
  }
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoDocumentPicker.web.d.ts","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;;kDAOtF,qBAAqB,GAAG,QAAQ,oBAAoB,CAAC;;AAL1D,wBAkDE"}
1
+ {"version":3,"file":"ExpoDocumentPicker.web.d.ts","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;;kDAOtF,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;;AAL1D,wBAkDE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoDocumentPicker.web.js","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,eAAe;IACb,KAAK,CAAC,gBAAgB,CAAC,EACrB,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,GACS;QACtB,YAAY;QACZ,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE;YAC5B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SACzC;QAED,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9C,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAC7B,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1E,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAChD,IAAI,QAAQ,EAAE;YACZ,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;SAC5C;QAED,QAAQ,C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AAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEF,SAAS,aAAa,CAAC,UAAgB,EAAE,SAAkB,IAAI;IAC7D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,CAAC;gBACN,GAAG,EAAE,UAAU,CAAC,kBAAkB;gBAClC,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;YACH,OAAO;SACR;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;YACpB,MAAM,CAAC,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC,CAAC;QACvF,CAAC,CAAC;QACF,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7B,MAAM,GAAG,GAAI,MAAc,CAAC,MAAM,CAAC;YACnC,OAAO,CAAC;gBACN,GAAG;gBACH,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,6CAA6C;QAC7C,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Platform } from 'expo-modules-core';\n\nimport { DocumentPickerAsset, DocumentPickerOptions, DocumentPickerResult } from './types';\n\nexport default {\n async getDocumentAsync({\n type = '*/*',\n multiple = false,\n base64 = true,\n }: DocumentPickerOptions): Promise<DocumentPickerResult> {\n // SSR guard\n if (!Platform.isDOMAvailable) {\n return { canceled: true, assets: null };\n }\n\n const input = document.createElement('input');\n input.style.display = 'none';\n input.setAttribute('type', 'file');\n input.setAttribute('accept', Array.isArray(type) ? type.join(',') : type);\n input.setAttribute('id', String(Math.random()));\n if (multiple) {\n input.setAttribute('multiple', 'multiple');\n }\n\n document.body.appendChild(input);\n\n return new Promise((resolve, reject) => {\n input.addEventListener('change', async () => {\n if (input.files) {\n const results: Promise<DocumentPickerAsset>[] = [];\n for (let i = 0; i < input.files.length; i++) {\n results.push(readFileAsync(input.files[i], base64));\n }\n try {\n const assets = await Promise.all(results);\n resolve({ canceled: false, assets, output: input.files });\n } catch (e) {\n reject(e);\n }\n } else {\n resolve({ canceled: true, assets: null });\n }\n\n document.body.removeChild(input);\n });\n\n input.addEventListener('cancel', () => {\n resolve({ canceled: true, assets: null });\n });\n\n const event = new MouseEvent('click');\n input.dispatchEvent(event);\n });\n },\n};\n\nfunction readFileAsync(targetFile: File, base64: boolean = true): Promise<DocumentPickerAsset> {\n return new Promise((resolve, reject) => {\n const mimeType = targetFile.type;\n if (!base64) {\n resolve({\n uri: targetFile.webkitRelativePath,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n return;\n }\n const reader = new FileReader();\n reader.onerror = () => {\n reject(new Error(`Failed to read the selected media because the operation failed.`));\n };\n reader.onload = ({ target }) => {\n const uri = (target as any).result;\n resolve({\n uri,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n };\n\n // Read in the image file as a binary string.\n reader.readAsDataURL(targetFile);\n });\n}\n"]}
1
+ {"version":3,"file":"ExpoDocumentPicker.web.js","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,eAAe;IACb,KAAK,CAAC,gBA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AE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;YACH,OAAO;QACT,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;YACpB,MAAM,CAAC,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC,CAAC;QACvF,CAAC,CAAC;QACF,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7B,MAAM,GAAG,GAAI,MAAc,CAAC,MAAM,CAAC;YACnC,OAAO,CAAC;gBACN,GAAG;gBACH,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,6CAA6C;QAC7C,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Platform } from 'expo-modules-core';\n\nimport { DocumentPickerAsset, DocumentPickerOptions, DocumentPickerResult } from './types';\n\nexport default {\n async getDocumentAsync({\n type = '*/*',\n multiple = false,\n base64 = true,\n }: DocumentPickerOptions): Promise<DocumentPickerResult> {\n // SSR guard\n if (!Platform.isDOMAvailable) {\n return { canceled: true, assets: null };\n }\n\n const input = document.createElement('input');\n input.style.display = 'none';\n input.setAttribute('type', 'file');\n input.setAttribute('accept', Array.isArray(type) ? type.join(',') : type);\n input.setAttribute('id', String(Math.random()));\n if (multiple) {\n input.setAttribute('multiple', 'multiple');\n }\n\n document.body.appendChild(input);\n\n return new Promise((resolve, reject) => {\n input.addEventListener('change', async () => {\n if (input.files) {\n const results: Promise<DocumentPickerAsset>[] = [];\n for (let i = 0; i < input.files.length; i++) {\n results.push(readFileAsync(input.files[i], base64));\n }\n try {\n const assets = await Promise.all(results);\n resolve({ canceled: false, assets, output: input.files });\n } catch (e) {\n reject(e);\n }\n } else {\n resolve({ canceled: true, assets: null });\n }\n\n document.body.removeChild(input);\n });\n\n input.addEventListener('cancel', () => {\n resolve({ canceled: true, assets: null });\n });\n\n const event = new MouseEvent('click');\n input.dispatchEvent(event);\n });\n },\n};\n\nfunction readFileAsync(targetFile: File, base64: boolean = true): Promise<DocumentPickerAsset> {\n return new Promise((resolve, reject) => {\n const mimeType = targetFile.type;\n if (!base64) {\n resolve({\n uri: targetFile.webkitRelativePath,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n return;\n }\n const reader = new FileReader();\n reader.onerror = () => {\n reject(new Error(`Failed to read the selected media because the operation failed.`));\n };\n reader.onload = ({ target }) => {\n const uri = (target as any).result;\n resolve({\n uri,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n };\n\n // Read in the image file as a binary string.\n reader.readAsDataURL(targetFile);\n });\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAGtD,cAAc;AACd;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,IAAI,GAAG,KAAK,EACZ,oBAAoB,GAAG,IAAI,EAC3B,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,MACY,EAAE;IAC3B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,IAAI,GAAG,CAAC,IAAI,CAAa,CAAC;KAC3B;IACD,OAAO,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;QAC/C,IAAI;QACJ,oBAAoB;QACpB,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAED,cAAc,SAAS,CAAC","sourcesContent":["import ExpoDocumentPicker from './ExpoDocumentPicker';\nimport { DocumentPickerOptions, DocumentPickerResult } from './types';\n\n// @needsAudit\n/**\n * Display the system UI for choosing a document. By default, the chosen file is copied to [the app's internal cache directory](filesystem/#filesystemcachedirectory).\n * > **Notes for Web:** The system UI can only be shown after user activation (e.g. a `Button` press).\n * > Therefore, calling `getDocumentAsync` in `componentDidMount`, for example, will **not** work as\n * > intended. The `cancel` event will not be returned in the browser due to platform restrictions and\n * > inconsistencies across browsers.\n *\n * @return On success returns a promise that fulfils with [`DocumentPickerResult`](#documentpickerresult) object.\n *\n * If the user cancelled the document picking, the promise resolves to `{ type: 'cancel' }`.\n */\nexport async function getDocumentAsync({\n type = '*/*',\n copyToCacheDirectory = true,\n multiple = false,\n base64 = true,\n}: DocumentPickerOptions = {}): Promise<DocumentPickerResult> {\n if (typeof type === 'string') {\n type = [type] as string[];\n }\n return await ExpoDocumentPicker.getDocumentAsync({\n type,\n copyToCacheDirectory,\n multiple,\n base64,\n });\n}\n\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAGtD,cAAc;AACd;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,IAAI,GAAG,KAAK,EACZ,oBAAoB,GAAG,IAAI,EAC3B,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,MACY,EAAE;IAC3B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,IAAI,GAAG,CAAC,IAAI,CAAa,CAAC;IAC5B,CAAC;IACD,OAAO,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;QAC/C,IAAI;QACJ,oBAAoB;QACpB,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAED,cAAc,SAAS,CAAC","sourcesContent":["import ExpoDocumentPicker from './ExpoDocumentPicker';\nimport { DocumentPickerOptions, DocumentPickerResult } from './types';\n\n// @needsAudit\n/**\n * Display the system UI for choosing a document. By default, the chosen file is copied to [the app's internal cache directory](filesystem/#filesystemcachedirectory).\n * > **Notes for Web:** The system UI can only be shown after user activation (e.g. a `Button` press).\n * > Therefore, calling `getDocumentAsync` in `componentDidMount`, for example, will **not** work as\n * > intended. The `cancel` event will not be returned in the browser due to platform restrictions and\n * > inconsistencies across browsers.\n *\n * @return On success returns a promise that fulfils with [`DocumentPickerResult`](#documentpickerresult) object.\n *\n * If the user cancelled the document picking, the promise resolves to `{ type: 'cancel' }`.\n */\nexport async function getDocumentAsync({\n type = '*/*',\n copyToCacheDirectory = true,\n multiple = false,\n base64 = true,\n}: DocumentPickerOptions = {}): Promise<DocumentPickerResult> {\n if (typeof type === 'string') {\n type = [type] as string[];\n }\n return await ExpoDocumentPicker.getDocumentAsync({\n type,\n copyToCacheDirectory,\n multiple,\n base64,\n });\n}\n\nexport * from './types';\n"]}
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.documentpicker",
11
- "version": "13.1.1-canary-20250408-7f0ab53",
11
+ "version": "13.1.2",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.documentpicker",
6
- "version": "13.1.1-canary-20250408-7f0ab53",
6
+ "version": "13.1.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -40,8 +40,8 @@
40
40
  ],
41
41
  "files": [
42
42
  {
43
- "name": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar",
44
- "url": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar",
43
+ "name": "expo.modules.documentpicker-13.1.2.aar",
44
+ "url": "expo.modules.documentpicker-13.1.2.aar",
45
45
  "size": 23096,
46
46
  "sha512": "36b8d75dbfdb143ff85bc341d09d1561a93b040831a943f715814a1c9ebe900dbc196cfc8f25d79347611da9f023bcdb318e5293c9a88a82c08aeb3dfb16e5bb",
47
47
  "sha256": "26cfce5fd95b2eb787aa9b9d2c377db5d0caa58e85c4c083f2089ae5a69d7ed9",
@@ -83,8 +83,8 @@
83
83
  ],
84
84
  "files": [
85
85
  {
86
- "name": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar",
87
- "url": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53.aar",
86
+ "name": "expo.modules.documentpicker-13.1.2.aar",
87
+ "url": "expo.modules.documentpicker-13.1.2.aar",
88
88
  "size": 23096,
89
89
  "sha512": "36b8d75dbfdb143ff85bc341d09d1561a93b040831a943f715814a1c9ebe900dbc196cfc8f25d79347611da9f023bcdb318e5293c9a88a82c08aeb3dfb16e5bb",
90
90
  "sha256": "26cfce5fd95b2eb787aa9b9d2c377db5d0caa58e85c4c083f2089ae5a69d7ed9",
@@ -103,8 +103,8 @@
103
103
  },
104
104
  "files": [
105
105
  {
106
- "name": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar",
107
- "url": "expo.modules.documentpicker-13.1.1-canary-20250408-7f0ab53-sources.jar",
106
+ "name": "expo.modules.documentpicker-13.1.2-sources.jar",
107
+ "url": "expo.modules.documentpicker-13.1.2-sources.jar",
108
108
  "size": 4266,
109
109
  "sha512": "14b62b5104c5815e444717fbb22c806eb8a1428d6cb2a7bd522d89c22ecd15cbc66476e521eb5e1037fe3d529fc2602640f1c7d30e72fdcfc597e370e5b782fa",
110
110
  "sha256": "ebd5dbf8dacee77954127a989e57e14955f510ff606242156ed0b587b5c116aa",
@@ -0,0 +1 @@
1
+ 2f9ce18116292c69aa2107d1d1ce6f464fcff50dd76418cac6dc23ccba76fa47
@@ -0,0 +1 @@
1
+ d9cb216dca04dde4da9e3364c15d6579a88a4af4b3dac183272414f0e918ce7772e7af7feea933074f548614e9b0d38ae08f069b085045a1e9e2b0f4eb82bfa4
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.documentpicker</artifactId>
12
- <version>13.1.1-canary-20250408-7f0ab53</version>
12
+ <version>13.1.2</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.documentpicker</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 8c7ba473de012e21497d67c0aa1beceb69ab9bfaa52200f8930ed9c94cb854d0
@@ -0,0 +1 @@
1
+ fb766f25e69e91bcec6e4933b294b58db365a9e87069619a715126e365a045a6a3df0b693cc67d30c0783ba20be2250e49673ecc613c6fd94a20f5bb6f33def7
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.documentpicker</artifactId>
5
5
  <versioning>
6
- <latest>13.1.1-canary-20250408-7f0ab53</latest>
7
- <release>13.1.1-canary-20250408-7f0ab53</release>
6
+ <latest>13.1.2</latest>
7
+ <release>13.1.2</release>
8
8
  <versions>
9
- <version>13.1.1-canary-20250408-7f0ab53</version>
9
+ <version>13.1.2</version>
10
10
  </versions>
11
- <lastUpdated>20250408205733</lastUpdated>
11
+ <lastUpdated>20250414185046</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- b3cd05173a58b455890af4d04d9d7fb8
1
+ 4eba68dda386b2af11f0a6d0076fe45b
@@ -1 +1 @@
1
- 94a3b21aad486e49fb49a4f132d82830c07c2264
1
+ 4994f3c0e1bdb5e73b68568e913eeaeb74159bf6
@@ -1 +1 @@
1
- 1ac20becea158ca19b41657b037c82459ecf5369d686ba03713efd2fbd743657
1
+ 40a3bea6bb9f614a683839aee885ff5949b966b185214a1cd5498e180226019d
@@ -1 +1 @@
1
- fa3016c412fda3f58c97183e17ed246dcca3538118b6a9ca686bfc913237a2d15894bae0794874ad06e0399b99551bffef286248ebaf844437c14d940ad45b8b
1
+ 409cf3586021d44a4fc729ef978620f624e37a9debb7b6e89d9cbaba63060787a327f07fd19c7364c1af48377fa34866469139d6a60181b4de4c781d2b0ce1fe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-document-picker",
3
- "version": "13.1.1-canary-20250408-7f0ab53",
3
+ "version": "13.1.2",
4
4
  "description": "Provides access to the system's UI for selecting documents from the available providers on the user's device.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -35,9 +35,10 @@
35
35
  "preset": "expo-module-scripts"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "4.1.1-canary-20250408-7f0ab53"
38
+ "expo-module-scripts": "^4.1.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "expo": "53.0.0-canary-20250408-7f0ab53"
42
- }
41
+ "expo": "*"
42
+ },
43
+ "gitHead": "cb9fdd93f76f28e2ace4f66080b2386d87239553"
43
44
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setICloudEntitlements = exports.withDocumentPickerIOS = void 0;
3
+ exports.withDocumentPickerIOS = void 0;
4
+ exports.setICloudEntitlements = setICloudEntitlements;
4
5
  const config_plugins_1 = require("expo/config-plugins");
5
6
  const withDocumentPickerIOS = (config, { iCloudContainerEnvironment, kvStoreIdentifier } = {}) => {
6
7
  return (0, config_plugins_1.withEntitlementsPlist)(config, (config) => {
@@ -26,4 +27,3 @@ function setICloudEntitlements(config, { iCloudContainerEnvironment, kvStoreIden
26
27
  }
27
28
  return entitlements;
28
29
  }
29
- exports.setICloudEntitlements = setICloudEntitlements;
@@ -1 +0,0 @@
1
- 2ccfdaadb4c92a088e0216454df4fbf224e334e65ee528a4b4b3a9e7ec60d88cf9de6bb8e579619463821c390c4f5474c82f5cea4193b920099a317867ddb7ae
@@ -1 +0,0 @@
1
- 989c845bfda40aaf02981015ee60102d14f6c621d4dbc946554aeadbc6245a9dcba0c848271a36904599ddbf94851e17e9271992cd813b91b82e1e90ff6140e1