@fgv/ts-web-extras 5.1.0-3 → 5.1.0-4

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 (255) hide show
  1. package/.rush/temp/{61c1d4a91d98f048b475a5bb3e6541c5d27819de.tar.log → 44b0369e8112f3c6f4248af466a3f35ad626d9d7.tar.log} +3 -3
  2. package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +13 -13
  3. package/.rush/temp/operation/build/all.log +13 -13
  4. package/.rush/temp/operation/build/log-chunks.jsonl +13 -13
  5. package/.rush/temp/operation/build/state.json +1 -1
  6. package/.rush/temp/shrinkwrap-deps.json +690 -633
  7. package/config/typedoc.json +2 -1
  8. package/dist/tsdoc-metadata.json +1 -1
  9. package/docs/CryptoUtils/README.md +60 -0
  10. package/docs/CryptoUtils/classes/BrowserCryptoProvider.decrypt.md +27 -0
  11. package/docs/CryptoUtils/classes/BrowserCryptoProvider.deriveKey.md +26 -0
  12. package/docs/CryptoUtils/classes/BrowserCryptoProvider.encrypt.md +25 -0
  13. package/docs/CryptoUtils/classes/BrowserCryptoProvider.fromBase64.md +24 -0
  14. package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateKey.md +17 -0
  15. package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateRandomBytes.md +24 -0
  16. package/docs/CryptoUtils/classes/BrowserCryptoProvider.md +151 -0
  17. package/docs/CryptoUtils/classes/BrowserCryptoProvider.toBase64.md +24 -0
  18. package/docs/CryptoUtils/classes/BrowserHashProvider.hashParts.md +26 -0
  19. package/docs/CryptoUtils/classes/BrowserHashProvider.hashString.md +25 -0
  20. package/docs/CryptoUtils/classes/BrowserHashProvider.md +81 -0
  21. package/docs/CryptoUtils/functions/createBrowserCryptoProvider.md +12 -0
  22. package/docs/FileTreeHelpers/README.md +85 -0
  23. package/docs/FileTreeHelpers/functions/extractFileListMetadata.md +11 -0
  24. package/docs/FileTreeHelpers/functions/extractFileMetadata.md +11 -0
  25. package/docs/FileTreeHelpers/functions/fromDirectoryUpload.md +12 -0
  26. package/docs/FileTreeHelpers/functions/fromFileList.md +12 -0
  27. package/docs/FileTreeHelpers/functions/getOriginalFile.md +11 -0
  28. package/docs/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +9 -0
  29. package/docs/README.md +499 -53
  30. package/docs/classes/BrowserCryptoProvider.decrypt.md +27 -0
  31. package/docs/classes/BrowserCryptoProvider.deriveKey.md +26 -0
  32. package/docs/classes/BrowserCryptoProvider.encrypt.md +25 -0
  33. package/docs/classes/BrowserCryptoProvider.fromBase64.md +24 -0
  34. package/docs/classes/BrowserCryptoProvider.generateKey.md +17 -0
  35. package/docs/classes/BrowserCryptoProvider.generateRandomBytes.md +24 -0
  36. package/docs/classes/BrowserCryptoProvider.md +151 -0
  37. package/docs/classes/BrowserCryptoProvider.toBase64.md +24 -0
  38. package/docs/classes/BrowserHashProvider.hashParts.md +26 -0
  39. package/docs/classes/BrowserHashProvider.hashString.md +25 -0
  40. package/docs/classes/BrowserHashProvider.md +81 -0
  41. package/docs/classes/DirectoryHandleStore.getAll.md +17 -0
  42. package/docs/classes/DirectoryHandleStore.getAllLabels.md +17 -0
  43. package/docs/classes/DirectoryHandleStore.load.md +24 -0
  44. package/docs/classes/DirectoryHandleStore.md +65 -61
  45. package/docs/classes/DirectoryHandleStore.remove.md +24 -0
  46. package/docs/classes/DirectoryHandleStore.save.md +25 -0
  47. package/docs/classes/FileApiTreeAccessors.create.md +25 -0
  48. package/docs/classes/FileApiTreeAccessors.createFromHttp.md +24 -0
  49. package/docs/classes/FileApiTreeAccessors.createFromLocalStorage.md +25 -0
  50. package/docs/classes/FileApiTreeAccessors.createPersistent.md +26 -0
  51. package/docs/classes/FileApiTreeAccessors.createPersistentFromFile.md +27 -0
  52. package/docs/classes/FileApiTreeAccessors.extractFileMetadata.md +24 -0
  53. package/docs/classes/FileApiTreeAccessors.fromDirectoryUpload.md +25 -0
  54. package/docs/classes/FileApiTreeAccessors.fromFileList.md +25 -0
  55. package/docs/classes/FileApiTreeAccessors.getOriginalFile.md +27 -0
  56. package/docs/classes/FileApiTreeAccessors.md +87 -201
  57. package/docs/classes/FileSystemAccessTreeAccessors.deleteFile.md +22 -0
  58. package/docs/classes/FileSystemAccessTreeAccessors.fileIsMutable.md +22 -0
  59. package/docs/classes/FileSystemAccessTreeAccessors.fromDirectoryHandle.md +25 -0
  60. package/docs/classes/FileSystemAccessTreeAccessors.fromFileHandle.md +29 -0
  61. package/docs/classes/FileSystemAccessTreeAccessors.getDirtyPaths.md +15 -0
  62. package/docs/classes/FileSystemAccessTreeAccessors.isDirty.md +15 -0
  63. package/docs/classes/FileSystemAccessTreeAccessors.md +128 -410
  64. package/docs/classes/FileSystemAccessTreeAccessors.saveFileContents.md +23 -0
  65. package/docs/classes/FileSystemAccessTreeAccessors.syncToDisk.md +15 -0
  66. package/docs/classes/HttpTreeAccessors.deleteFile.md +22 -0
  67. package/docs/classes/HttpTreeAccessors.fileIsMutable.md +24 -0
  68. package/docs/classes/HttpTreeAccessors.fromHttp.md +24 -0
  69. package/docs/classes/HttpTreeAccessors.getDirtyPaths.md +17 -0
  70. package/docs/classes/HttpTreeAccessors.isDirty.md +17 -0
  71. package/docs/classes/HttpTreeAccessors.md +121 -368
  72. package/docs/classes/HttpTreeAccessors.saveFileContents.md +25 -0
  73. package/docs/classes/HttpTreeAccessors.syncToDisk.md +22 -0
  74. package/docs/classes/LocalStorageTreeAccessors.deleteFile.md +24 -0
  75. package/docs/classes/LocalStorageTreeAccessors.fileIsMutable.md +24 -0
  76. package/docs/classes/LocalStorageTreeAccessors.fromStorage.md +25 -0
  77. package/docs/classes/LocalStorageTreeAccessors.getDirtyPaths.md +17 -0
  78. package/docs/classes/LocalStorageTreeAccessors.isDirty.md +17 -0
  79. package/docs/classes/LocalStorageTreeAccessors.md +121 -371
  80. package/docs/classes/LocalStorageTreeAccessors.saveFileContents.md +25 -0
  81. package/docs/classes/LocalStorageTreeAccessors.syncToDisk.md +17 -0
  82. package/docs/functions/createBrowserCryptoProvider.md +12 -0
  83. package/docs/functions/exportAsJson.md +6 -17
  84. package/docs/functions/exportUsingFileSystemAPI.md +6 -21
  85. package/docs/functions/extractDirectoryPath.md +6 -16
  86. package/docs/functions/extractFileListMetadata.md +11 -0
  87. package/docs/functions/extractFileMetadata.md +11 -0
  88. package/docs/functions/fromDirectoryUpload.md +12 -0
  89. package/docs/functions/fromFileList.md +12 -0
  90. package/docs/functions/getOriginalFile.md +11 -0
  91. package/docs/functions/isDirectoryHandle.md +6 -18
  92. package/docs/functions/isFileHandle.md +6 -18
  93. package/docs/functions/isFilePath.md +6 -16
  94. package/docs/functions/parseContextFilter.md +6 -16
  95. package/docs/functions/parseQualifierDefaults.md +6 -16
  96. package/docs/functions/parseResourceTypes.md +6 -16
  97. package/docs/functions/parseUrlParameters.md +6 -10
  98. package/docs/functions/safeShowDirectoryPicker.md +6 -19
  99. package/docs/functions/safeShowOpenFilePicker.md +6 -19
  100. package/docs/functions/safeShowSaveFilePicker.md +6 -19
  101. package/docs/functions/supportsFileSystemAccess.md +6 -18
  102. package/docs/interfaces/FilePickerAcceptType.accept.md +9 -0
  103. package/docs/interfaces/FilePickerAcceptType.description.md +9 -0
  104. package/docs/interfaces/FilePickerAcceptType.md +54 -9
  105. package/docs/interfaces/FileSystemCreateWritableOptions.keepExistingData.md +9 -0
  106. package/docs/interfaces/FileSystemCreateWritableOptions.md +37 -8
  107. package/docs/interfaces/FileSystemDirectoryHandle._asyncIterator_.md +13 -0
  108. package/docs/interfaces/FileSystemDirectoryHandle.entries.md +13 -0
  109. package/docs/interfaces/FileSystemDirectoryHandle.getDirectoryHandle.md +21 -0
  110. package/docs/interfaces/FileSystemDirectoryHandle.getFileHandle.md +21 -0
  111. package/docs/interfaces/FileSystemDirectoryHandle.keys.md +13 -0
  112. package/docs/interfaces/FileSystemDirectoryHandle.kind.md +9 -0
  113. package/docs/interfaces/FileSystemDirectoryHandle.md +140 -103
  114. package/docs/interfaces/FileSystemDirectoryHandle.removeEntry.md +21 -0
  115. package/docs/interfaces/FileSystemDirectoryHandle.resolve.md +20 -0
  116. package/docs/interfaces/FileSystemDirectoryHandle.values.md +13 -0
  117. package/docs/interfaces/FileSystemFileHandle.createWritable.md +20 -0
  118. package/docs/interfaces/FileSystemFileHandle.getFile.md +13 -0
  119. package/docs/interfaces/FileSystemFileHandle.kind.md +9 -0
  120. package/docs/interfaces/FileSystemFileHandle.md +98 -58
  121. package/docs/interfaces/FileSystemGetDirectoryOptions.create.md +9 -0
  122. package/docs/interfaces/FileSystemGetDirectoryOptions.md +37 -8
  123. package/docs/interfaces/FileSystemGetFileOptions.create.md +9 -0
  124. package/docs/interfaces/FileSystemGetFileOptions.md +37 -8
  125. package/docs/interfaces/FileSystemHandle.isSameEntry.md +20 -0
  126. package/docs/interfaces/FileSystemHandle.kind.md +9 -0
  127. package/docs/interfaces/FileSystemHandle.md +88 -39
  128. package/docs/interfaces/FileSystemHandle.name.md +9 -0
  129. package/docs/interfaces/FileSystemHandle.queryPermission.md +20 -0
  130. package/docs/interfaces/FileSystemHandle.requestPermission.md +20 -0
  131. package/docs/interfaces/FileSystemHandlePermissionDescriptor.md +37 -8
  132. package/docs/interfaces/FileSystemHandlePermissionDescriptor.mode.md +9 -0
  133. package/docs/interfaces/FileSystemRemoveOptions.md +37 -8
  134. package/docs/interfaces/FileSystemRemoveOptions.recursive.md +9 -0
  135. package/docs/interfaces/FileSystemWritableFileStream.md +83 -68
  136. package/docs/interfaces/FileSystemWritableFileStream.seek.md +20 -0
  137. package/docs/interfaces/FileSystemWritableFileStream.truncate.md +20 -0
  138. package/docs/interfaces/FileSystemWritableFileStream.write.md +20 -0
  139. package/docs/interfaces/IDirectoryHandleTreeInitializer.dirHandles.md +9 -0
  140. package/docs/interfaces/IDirectoryHandleTreeInitializer.md +71 -10
  141. package/docs/interfaces/IDirectoryHandleTreeInitializer.nonRecursive.md +9 -0
  142. package/docs/interfaces/IDirectoryHandleTreeInitializer.prefix.md +9 -0
  143. package/docs/interfaces/IFileHandleTreeInitializer.fileHandles.md +9 -0
  144. package/docs/interfaces/IFileHandleTreeInitializer.md +54 -9
  145. package/docs/interfaces/IFileHandleTreeInitializer.prefix.md +9 -0
  146. package/docs/interfaces/IFileListTreeInitializer.fileList.md +9 -0
  147. package/docs/interfaces/IFileListTreeInitializer.md +37 -8
  148. package/docs/interfaces/IFileMetadata.lastModified.md +9 -0
  149. package/docs/interfaces/IFileMetadata.md +105 -12
  150. package/docs/interfaces/IFileMetadata.name.md +9 -0
  151. package/docs/interfaces/IFileMetadata.path.md +9 -0
  152. package/docs/interfaces/IFileMetadata.size.md +9 -0
  153. package/docs/interfaces/IFileMetadata.type.md +9 -0
  154. package/docs/interfaces/IFileSystemAccessTreeParams.autoSync.md +12 -0
  155. package/docs/interfaces/IFileSystemAccessTreeParams.filePath.md +13 -0
  156. package/docs/interfaces/IFileSystemAccessTreeParams.logger.md +11 -0
  157. package/docs/interfaces/IFileSystemAccessTreeParams.md +138 -20
  158. package/docs/interfaces/IFileSystemAccessTreeParams.requireWritePermission.md +13 -0
  159. package/docs/interfaces/IFsAccessApis.md +36 -31
  160. package/docs/interfaces/IFsAccessApis.showDirectoryPicker.md +20 -0
  161. package/docs/interfaces/IFsAccessApis.showOpenFilePicker.md +20 -0
  162. package/docs/interfaces/IFsAccessApis.showSaveFilePicker.md +20 -0
  163. package/docs/interfaces/IHttpTreeParams.autoSync.md +9 -0
  164. package/docs/interfaces/IHttpTreeParams.baseUrl.md +9 -0
  165. package/docs/interfaces/IHttpTreeParams.fetchImpl.md +9 -0
  166. package/docs/interfaces/IHttpTreeParams.logger.md +9 -0
  167. package/docs/interfaces/IHttpTreeParams.md +172 -22
  168. package/docs/interfaces/IHttpTreeParams.namespace.md +9 -0
  169. package/docs/interfaces/IHttpTreeParams.userId.md +9 -0
  170. package/docs/interfaces/ILocalStorageTreeParams.autoSync.md +12 -0
  171. package/docs/interfaces/ILocalStorageTreeParams.md +121 -20
  172. package/docs/interfaces/ILocalStorageTreeParams.pathToKeyMap.md +13 -0
  173. package/docs/interfaces/ILocalStorageTreeParams.storage.md +12 -0
  174. package/docs/interfaces/IUrlConfigOptions.config.md +11 -0
  175. package/docs/interfaces/IUrlConfigOptions.configStartDir.md +11 -0
  176. package/docs/interfaces/IUrlConfigOptions.contextFilter.md +11 -0
  177. package/docs/interfaces/IUrlConfigOptions.input.md +11 -0
  178. package/docs/interfaces/IUrlConfigOptions.inputStartDir.md +11 -0
  179. package/docs/interfaces/IUrlConfigOptions.interactive.md +11 -0
  180. package/docs/interfaces/IUrlConfigOptions.loadZip.md +11 -0
  181. package/docs/interfaces/IUrlConfigOptions.maxDistance.md +11 -0
  182. package/docs/interfaces/IUrlConfigOptions.md +241 -20
  183. package/docs/interfaces/IUrlConfigOptions.qualifierDefaults.md +11 -0
  184. package/docs/interfaces/IUrlConfigOptions.reduceQualifiers.md +11 -0
  185. package/docs/interfaces/IUrlConfigOptions.resourceTypes.md +11 -0
  186. package/docs/interfaces/IUrlConfigOptions.zipFile.md +11 -0
  187. package/docs/interfaces/IUrlConfigOptions.zipPath.md +11 -0
  188. package/docs/interfaces/ShowDirectoryPickerOptions.id.md +9 -0
  189. package/docs/interfaces/ShowDirectoryPickerOptions.md +71 -10
  190. package/docs/interfaces/ShowDirectoryPickerOptions.mode.md +9 -0
  191. package/docs/interfaces/ShowDirectoryPickerOptions.startIn.md +9 -0
  192. package/docs/interfaces/ShowOpenFilePickerOptions.excludeAcceptAllOption.md +9 -0
  193. package/docs/interfaces/ShowOpenFilePickerOptions.id.md +9 -0
  194. package/docs/interfaces/ShowOpenFilePickerOptions.md +105 -12
  195. package/docs/interfaces/ShowOpenFilePickerOptions.multiple.md +9 -0
  196. package/docs/interfaces/ShowOpenFilePickerOptions.startIn.md +9 -0
  197. package/docs/interfaces/ShowOpenFilePickerOptions.types.md +9 -0
  198. package/docs/interfaces/ShowSaveFilePickerOptions.excludeAcceptAllOption.md +9 -0
  199. package/docs/interfaces/ShowSaveFilePickerOptions.id.md +9 -0
  200. package/docs/interfaces/ShowSaveFilePickerOptions.md +105 -12
  201. package/docs/interfaces/ShowSaveFilePickerOptions.startIn.md +9 -0
  202. package/docs/interfaces/ShowSaveFilePickerOptions.suggestedName.md +9 -0
  203. package/docs/interfaces/ShowSaveFilePickerOptions.types.md +9 -0
  204. package/docs/type-aliases/TreeInitializer.md +7 -7
  205. package/docs/type-aliases/WellKnownDirectory.md +7 -7
  206. package/docs/type-aliases/WindowWithFsAccess.md +7 -7
  207. package/docs/variables/DEFAULT_DIRECTORY_HANDLE_DB.md +5 -7
  208. package/docs/variables/DEFAULT_DIRECTORY_HANDLE_STORE.md +5 -7
  209. package/docs/variables/defaultFileApiTreeInitParams.md +9 -0
  210. package/package.json +12 -11
  211. package/rush-logs/ts-web-extras.build.cache.log +1 -1
  212. package/rush-logs/ts-web-extras.build.log +13 -13
  213. package/temp/coverage/crypto-utils/browserCryptoProvider.ts.html +1 -1
  214. package/temp/coverage/crypto-utils/browserHashProvider.ts.html +1 -1
  215. package/temp/coverage/crypto-utils/index.html +1 -1
  216. package/temp/coverage/file-tree/directoryHandleStore.ts.html +1 -1
  217. package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +1 -1
  218. package/temp/coverage/file-tree/fileSystemAccessTreeAccessors.ts.html +1 -1
  219. package/temp/coverage/file-tree/httpTreeAccessors.ts.html +1 -1
  220. package/temp/coverage/file-tree/index.html +1 -1
  221. package/temp/coverage/file-tree/localStorageTreeAccessors.ts.html +1 -1
  222. package/temp/coverage/helpers/fileTreeHelpers.ts.html +1 -1
  223. package/temp/coverage/helpers/index.html +1 -1
  224. package/temp/coverage/index.html +1 -1
  225. package/temp/coverage/lcov-report/crypto-utils/browserCryptoProvider.ts.html +1 -1
  226. package/temp/coverage/lcov-report/crypto-utils/browserHashProvider.ts.html +1 -1
  227. package/temp/coverage/lcov-report/crypto-utils/index.html +1 -1
  228. package/temp/coverage/lcov-report/file-tree/directoryHandleStore.ts.html +1 -1
  229. package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +1 -1
  230. package/temp/coverage/lcov-report/file-tree/fileSystemAccessTreeAccessors.ts.html +1 -1
  231. package/temp/coverage/lcov-report/file-tree/httpTreeAccessors.ts.html +1 -1
  232. package/temp/coverage/lcov-report/file-tree/index.html +1 -1
  233. package/temp/coverage/lcov-report/file-tree/localStorageTreeAccessors.ts.html +1 -1
  234. package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +1 -1
  235. package/temp/coverage/lcov-report/helpers/index.html +1 -1
  236. package/temp/coverage/lcov-report/index.html +1 -1
  237. package/temp/coverage/lcov-report/url-utils/index.html +1 -1
  238. package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +1 -1
  239. package/temp/coverage/url-utils/index.html +1 -1
  240. package/temp/coverage/url-utils/urlParams.ts.html +1 -1
  241. package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
  242. package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
  243. package/temp/ts-web-extras.api.json +1 -1
  244. package/docs/@fgv/namespaces/CryptoUtils/README.md +0 -18
  245. package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserCryptoProvider.md +0 -203
  246. package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserHashProvider.md +0 -63
  247. package/docs/@fgv/namespaces/CryptoUtils/functions/createBrowserCryptoProvider.md +0 -18
  248. package/docs/@fgv/namespaces/FileTreeHelpers/README.md +0 -19
  249. package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileListMetadata.md +0 -23
  250. package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileMetadata.md +0 -23
  251. package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromDirectoryUpload.md +0 -33
  252. package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromFileList.md +0 -33
  253. package/docs/@fgv/namespaces/FileTreeHelpers/functions/getOriginalFile.md +0 -25
  254. package/docs/@fgv/namespaces/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +0 -11
  255. /package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/{d6/package_d6e3b0fa94752e16b0b2a2777739b973 → 7c/package_7c16afc8299e635d80273763175c7a50} +0 -0
@@ -1,23 +1,12 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > exportAsJson
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / exportAsJson
6
-
7
- # Function: exportAsJson()
8
-
9
- > **exportAsJson**(`data`, `filename`): `void`
3
+ # Function: exportAsJson
10
4
 
11
5
  Export data as JSON file using legacy blob download method.
12
6
  Creates a temporary download link and triggers file download.
13
7
 
14
- ## Parameters
15
-
16
- | Parameter | Type | Description |
17
- | ------ | ------ | ------ |
18
- | `data` | `unknown` | Data to export as JSON |
19
- | `filename` | `string` | Name for the downloaded file |
20
-
21
- ## Returns
8
+ ## Signature
22
9
 
23
- `void`
10
+ ```typescript
11
+ function exportAsJson(data: unknown, filename: string): void
12
+ ```
@@ -1,26 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > exportUsingFileSystemAPI
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / exportUsingFileSystemAPI
6
-
7
- # Function: exportUsingFileSystemAPI()
8
-
9
- > **exportUsingFileSystemAPI**(`data`, `suggestedName`, `description`, `window`): `Promise`\<`boolean`\>
3
+ # Function: exportUsingFileSystemAPI
10
4
 
11
5
  Export data using File System Access API with fallback to blob download.
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Default value | Description |
16
- | ------ | ------ | ------ | ------ |
17
- | `data` | `unknown` | `undefined` | Data to export as JSON |
18
- | `suggestedName` | `string` | `undefined` | Suggested filename for the save dialog |
19
- | `description` | `string` | `'JSON files'` | Description for file type filter (default: 'JSON files') |
20
- | `window` | `Window` | `globalThis.window` | Window object for API access (default: globalThis.window) |
21
-
22
- ## Returns
23
-
24
- `Promise`\<`boolean`\>
7
+ ## Signature
25
8
 
26
- Promise resolving to true if saved via File System Access API, false if fallback used
9
+ ```typescript
10
+ function exportUsingFileSystemAPI(data: unknown, suggestedName: string, description: string, window: Window): Promise<boolean>
11
+ ```
@@ -1,23 +1,13 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > extractDirectoryPath
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / extractDirectoryPath
6
-
7
- # Function: extractDirectoryPath()
8
-
9
- > **extractDirectoryPath**(`path`): `string`
3
+ # Function: extractDirectoryPath
10
4
 
11
5
  Extracts the directory path from a file or directory path
12
6
  If the path appears to be a directory (no extension), returns it as-is
13
7
  If the path appears to be a file, returns the parent directory
14
8
 
15
- ## Parameters
16
-
17
- | Parameter | Type |
18
- | ------ | ------ |
19
- | `path` | `string` |
20
-
21
- ## Returns
9
+ ## Signature
22
10
 
23
- `string`
11
+ ```typescript
12
+ function extractDirectoryPath(path: string): string
13
+ ```
@@ -0,0 +1,11 @@
1
+ [Home](../README.md) > extractFileListMetadata
2
+
3
+ # Function: extractFileListMetadata
4
+
5
+ Helper function to extract metadata from a `FileList`.
6
+
7
+ ## Signature
8
+
9
+ ```typescript
10
+ function extractFileListMetadata(fileList: FileList): IFileMetadata[]
11
+ ```
@@ -0,0 +1,11 @@
1
+ [Home](../README.md) > extractFileMetadata
2
+
3
+ # Function: extractFileMetadata
4
+
5
+ Helper function to extract metadata from a `File`.
6
+
7
+ ## Signature
8
+
9
+ ```typescript
10
+ function extractFileMetadata(file: File): IFileMetadata
11
+ ```
@@ -0,0 +1,12 @@
1
+ [Home](../README.md) > fromDirectoryUpload
2
+
3
+ # Function: fromDirectoryUpload
4
+
5
+ Helper function to create a new FileTree instance
6
+ from a directory upload with webkitRelativePath support.
7
+
8
+ ## Signature
9
+
10
+ ```typescript
11
+ function fromDirectoryUpload(fileList: FileList, params: IFileTreeInitParams<string>): Promise<Result<FileTree_2<string>>>
12
+ ```
@@ -0,0 +1,12 @@
1
+ [Home](../README.md) > fromFileList
2
+
3
+ # Function: fromFileList
4
+
5
+ Helper function to create a new FileTree instance
6
+ from a browser FileList (e.g., from input[type="file"]).
7
+
8
+ ## Signature
9
+
10
+ ```typescript
11
+ function fromFileList(fileList: FileList, params: IFileTreeInitParams<string>): Promise<Result<FileTree_2<string>>>
12
+ ```
@@ -0,0 +1,11 @@
1
+ [Home](../README.md) > getOriginalFile
2
+
3
+ # Function: getOriginalFile
4
+
5
+ Helper function to get the original File object from a FileList by path.
6
+
7
+ ## Signature
8
+
9
+ ```typescript
10
+ function getOriginalFile(fileList: FileList, path: string): Result<File>
11
+ ```
@@ -1,23 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > isDirectoryHandle
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / isDirectoryHandle
6
-
7
- # Function: isDirectoryHandle()
8
-
9
- > **isDirectoryHandle**(`handle`): `handle is FileSystemDirectoryHandle`
3
+ # Function: isDirectoryHandle
10
4
 
11
5
  Type guard to check if a FileSystemHandle is a directory handle
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `handle` | [`FileSystemHandle`](../interfaces/FileSystemHandle.md) | The handle to check |
18
-
19
- ## Returns
20
-
21
- `handle is FileSystemDirectoryHandle`
7
+ ## Signature
22
8
 
23
- True if the handle is a FileSystemDirectoryHandle
9
+ ```typescript
10
+ function isDirectoryHandle(handle: FileSystemHandle): handle is FileSystemDirectoryHandle
11
+ ```
@@ -1,23 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > isFileHandle
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / isFileHandle
6
-
7
- # Function: isFileHandle()
8
-
9
- > **isFileHandle**(`handle`): `handle is FileSystemFileHandle`
3
+ # Function: isFileHandle
10
4
 
11
5
  Type guard to check if a FileSystemHandle is a file handle
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `handle` | [`FileSystemHandle`](../interfaces/FileSystemHandle.md) | The handle to check |
18
-
19
- ## Returns
20
-
21
- `handle is FileSystemFileHandle`
7
+ ## Signature
22
8
 
23
- True if the handle is a FileSystemFileHandle
9
+ ```typescript
10
+ function isFileHandle(handle: FileSystemHandle): handle is FileSystemFileHandle
11
+ ```
@@ -1,21 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > isFilePath
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / isFilePath
6
-
7
- # Function: isFilePath()
8
-
9
- > **isFilePath**(`path`): `boolean`
3
+ # Function: isFilePath
10
4
 
11
5
  Determines if a path appears to be a file (has extension) or directory
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type |
16
- | ------ | ------ |
17
- | `path` | `string` |
18
-
19
- ## Returns
7
+ ## Signature
20
8
 
21
- `boolean`
9
+ ```typescript
10
+ function isFilePath(path: string): boolean
11
+ ```
@@ -1,22 +1,12 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > parseContextFilter
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / parseContextFilter
6
-
7
- # Function: parseContextFilter()
8
-
9
- > **parseContextFilter**(`contextFilter`): `Record`\<`string`, `string`\>
3
+ # Function: parseContextFilter
10
4
 
11
5
  Converts context filter token to context object
12
6
  Example: "language=en-US|territory=US" -\> { language: "en-US", territory: "US" }
13
7
 
14
- ## Parameters
15
-
16
- | Parameter | Type |
17
- | ------ | ------ |
18
- | `contextFilter` | `string` |
19
-
20
- ## Returns
8
+ ## Signature
21
9
 
22
- `Record`\<`string`, `string`\>
10
+ ```typescript
11
+ function parseContextFilter(contextFilter: string): Record<string, string>
12
+ ```
@@ -1,22 +1,12 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > parseQualifierDefaults
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / parseQualifierDefaults
6
-
7
- # Function: parseQualifierDefaults()
8
-
9
- > **parseQualifierDefaults**(`qualifierDefaults`): `Record`\<`string`, `string`[]\>
3
+ # Function: parseQualifierDefaults
10
4
 
11
5
  Converts qualifier defaults token to structured format
12
6
  Example: "language=en-US,en-CA|territory=US" -\> { language: ["en-US", "en-CA"], territory: ["US"] }
13
7
 
14
- ## Parameters
15
-
16
- | Parameter | Type |
17
- | ------ | ------ |
18
- | `qualifierDefaults` | `string` |
19
-
20
- ## Returns
8
+ ## Signature
21
9
 
22
- `Record`\<`string`, `string`[]\>
10
+ ```typescript
11
+ function parseQualifierDefaults(qualifierDefaults: string): Record<string, string[]>
12
+ ```
@@ -1,22 +1,12 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > parseResourceTypes
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / parseResourceTypes
6
-
7
- # Function: parseResourceTypes()
8
-
9
- > **parseResourceTypes**(`resourceTypes`): `string`[]
3
+ # Function: parseResourceTypes
10
4
 
11
5
  Converts resource types string to array
12
6
  Example: "json,string" -\> ["json", "string"]
13
7
 
14
- ## Parameters
15
-
16
- | Parameter | Type |
17
- | ------ | ------ |
18
- | `resourceTypes` | `string` |
19
-
20
- ## Returns
8
+ ## Signature
21
9
 
22
- `string`[]
10
+ ```typescript
11
+ function parseResourceTypes(resourceTypes: string): string[]
12
+ ```
@@ -1,15 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > parseUrlParameters
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / parseUrlParameters
6
-
7
- # Function: parseUrlParameters()
8
-
9
- > **parseUrlParameters**(): [`IUrlConfigOptions`](../interfaces/IUrlConfigOptions.md)
3
+ # Function: parseUrlParameters
10
4
 
11
5
  Parses URL parameters and extracts configuration options
12
6
 
13
- ## Returns
7
+ ## Signature
14
8
 
15
- [`IUrlConfigOptions`](../interfaces/IUrlConfigOptions.md)
9
+ ```typescript
10
+ function parseUrlParameters(): IUrlConfigOptions
11
+ ```
@@ -1,24 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > safeShowDirectoryPicker
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / safeShowDirectoryPicker
6
-
7
- # Function: safeShowDirectoryPicker()
8
-
9
- > **safeShowDirectoryPicker**(`window`, `options?`): `Promise`\<[`FileSystemDirectoryHandle`](../interfaces/FileSystemDirectoryHandle.md) \| `null`\>
3
+ # Function: safeShowDirectoryPicker
10
4
 
11
5
  Safely access showDirectoryPicker with proper type checking
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `window` | `Window` | The window object |
18
- | `options?` | [`ShowDirectoryPickerOptions`](../interfaces/ShowDirectoryPickerOptions.md) | Options for the directory picker |
19
-
20
- ## Returns
21
-
22
- `Promise`\<[`FileSystemDirectoryHandle`](../interfaces/FileSystemDirectoryHandle.md) \| `null`\>
7
+ ## Signature
23
8
 
24
- Promise with directory handle or null if not supported
9
+ ```typescript
10
+ function safeShowDirectoryPicker(window: Window, options: ShowDirectoryPickerOptions): Promise<FileSystemDirectoryHandle | null>
11
+ ```
@@ -1,24 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > safeShowOpenFilePicker
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / safeShowOpenFilePicker
6
-
7
- # Function: safeShowOpenFilePicker()
8
-
9
- > **safeShowOpenFilePicker**(`window`, `options?`): `Promise`\<[`FileSystemFileHandle`](../interfaces/FileSystemFileHandle.md)[] \| `null`\>
3
+ # Function: safeShowOpenFilePicker
10
4
 
11
5
  Safely access showOpenFilePicker with proper type checking
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `window` | `Window` | The window object |
18
- | `options?` | [`ShowOpenFilePickerOptions`](../interfaces/ShowOpenFilePickerOptions.md) | Options for the file picker |
19
-
20
- ## Returns
21
-
22
- `Promise`\<[`FileSystemFileHandle`](../interfaces/FileSystemFileHandle.md)[] \| `null`\>
7
+ ## Signature
23
8
 
24
- Promise with file handles or null if not supported
9
+ ```typescript
10
+ function safeShowOpenFilePicker(window: Window, options: ShowOpenFilePickerOptions): Promise<FileSystemFileHandle[] | null>
11
+ ```
@@ -1,24 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > safeShowSaveFilePicker
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / safeShowSaveFilePicker
6
-
7
- # Function: safeShowSaveFilePicker()
8
-
9
- > **safeShowSaveFilePicker**(`window`, `options?`): `Promise`\<[`FileSystemFileHandle`](../interfaces/FileSystemFileHandle.md) \| `null`\>
3
+ # Function: safeShowSaveFilePicker
10
4
 
11
5
  Safely access showSaveFilePicker with proper type checking
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `window` | `Window` | The window object |
18
- | `options?` | [`ShowSaveFilePickerOptions`](../interfaces/ShowSaveFilePickerOptions.md) | Options for the file picker |
19
-
20
- ## Returns
21
-
22
- `Promise`\<[`FileSystemFileHandle`](../interfaces/FileSystemFileHandle.md) \| `null`\>
7
+ ## Signature
23
8
 
24
- Promise with file handle or null if not supported
9
+ ```typescript
10
+ function safeShowSaveFilePicker(window: Window, options: ShowSaveFilePickerOptions): Promise<FileSystemFileHandle | null>
11
+ ```
@@ -1,23 +1,11 @@
1
- [**@fgv/ts-web-extras**](../README.md)
1
+ [Home](../README.md) > supportsFileSystemAccess
2
2
 
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / supportsFileSystemAccess
6
-
7
- # Function: supportsFileSystemAccess()
8
-
9
- > **supportsFileSystemAccess**(`window`): `window is WindowWithFsAccess`
3
+ # Function: supportsFileSystemAccess
10
4
 
11
5
  Type guard to check if the browser supports the File System Access API
12
6
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | ------ | ------ | ------ |
17
- | `window` | `Window` | The window object to check |
18
-
19
- ## Returns
20
-
21
- `window is WindowWithFsAccess`
7
+ ## Signature
22
8
 
23
- True if the window supports File System Access API
9
+ ```typescript
10
+ function supportsFileSystemAccess(window: Window): window is WindowWithFsAccess
11
+ ```
@@ -0,0 +1,9 @@
1
+ [Home](../README.md) > [FilePickerAcceptType](./FilePickerAcceptType.md) > accept
2
+
3
+ ## FilePickerAcceptType.accept property
4
+
5
+ **Signature:**
6
+
7
+ ```typescript
8
+ accept: Record<string, string | string[]>;
9
+ ```
@@ -0,0 +1,9 @@
1
+ [Home](../README.md) > [FilePickerAcceptType](./FilePickerAcceptType.md) > description
2
+
3
+ ## FilePickerAcceptType.description property
4
+
5
+ **Signature:**
6
+
7
+ ```typescript
8
+ description: string;
9
+ ```
@@ -1,8 +1,4 @@
1
- [**@fgv/ts-web-extras**](../README.md)
2
-
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / FilePickerAcceptType
1
+ [Home](../README.md) > FilePickerAcceptType
6
2
 
7
3
  # Interface: FilePickerAcceptType
8
4
 
@@ -10,7 +6,56 @@ File picker accept type
10
6
 
11
7
  ## Properties
12
8
 
13
- | Property | Type |
14
- | ------ | ------ |
15
- | <a id="accept"></a> `accept` | `Record`\<`string`, `string` \| `string`[]\> |
16
- | <a id="description"></a> `description?` | `string` |
9
+ <table><thead><tr><th>
10
+
11
+ Property
12
+
13
+ </th><th>
14
+
15
+ Modifiers
16
+
17
+ </th><th>
18
+
19
+ Type
20
+
21
+ </th><th>
22
+
23
+ Description
24
+
25
+ </th></tr></thead>
26
+ <tbody>
27
+ <tr><td>
28
+
29
+ [description](./FilePickerAcceptType.description.md)
30
+
31
+ </td><td>
32
+
33
+
34
+
35
+ </td><td>
36
+
37
+ string
38
+
39
+ </td><td>
40
+
41
+
42
+
43
+ </td></tr>
44
+ <tr><td>
45
+
46
+ [accept](./FilePickerAcceptType.accept.md)
47
+
48
+ </td><td>
49
+
50
+
51
+
52
+ </td><td>
53
+
54
+ Record&lt;string, string | string[]&gt;
55
+
56
+ </td><td>
57
+
58
+
59
+
60
+ </td></tr>
61
+ </tbody></table>
@@ -0,0 +1,9 @@
1
+ [Home](../README.md) > [FileSystemCreateWritableOptions](./FileSystemCreateWritableOptions.md) > keepExistingData
2
+
3
+ ## FileSystemCreateWritableOptions.keepExistingData property
4
+
5
+ **Signature:**
6
+
7
+ ```typescript
8
+ keepExistingData: boolean;
9
+ ```
@@ -1,8 +1,4 @@
1
- [**@fgv/ts-web-extras**](../README.md)
2
-
3
- ***
4
-
5
- [@fgv/ts-web-extras](../README.md) / FileSystemCreateWritableOptions
1
+ [Home](../README.md) > FileSystemCreateWritableOptions
6
2
 
7
3
  # Interface: FileSystemCreateWritableOptions
8
4
 
@@ -10,6 +6,39 @@ Options for creating writable file streams
10
6
 
11
7
  ## Properties
12
8
 
13
- | Property | Type |
14
- | ------ | ------ |
15
- | <a id="keepexistingdata"></a> `keepExistingData?` | `boolean` |
9
+ <table><thead><tr><th>
10
+
11
+ Property
12
+
13
+ </th><th>
14
+
15
+ Modifiers
16
+
17
+ </th><th>
18
+
19
+ Type
20
+
21
+ </th><th>
22
+
23
+ Description
24
+
25
+ </th></tr></thead>
26
+ <tbody>
27
+ <tr><td>
28
+
29
+ [keepExistingData](./FileSystemCreateWritableOptions.keepExistingData.md)
30
+
31
+ </td><td>
32
+
33
+
34
+
35
+ </td><td>
36
+
37
+ boolean
38
+
39
+ </td><td>
40
+
41
+
42
+
43
+ </td></tr>
44
+ </tbody></table>
@@ -0,0 +1,13 @@
1
+ [Home](../README.md) > [FileSystemDirectoryHandle](./FileSystemDirectoryHandle.md) > [asyncIterator]
2
+
3
+ ## FileSystemDirectoryHandle.[asyncIterator]() method
4
+
5
+ **Signature:**
6
+
7
+ ```typescript
8
+ [asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
9
+ ```
10
+
11
+ **Returns:**
12
+
13
+ AsyncIterableIterator&lt;[string, [FileSystemHandle](FileSystemHandle.md)]&gt;
@@ -0,0 +1,13 @@
1
+ [Home](../README.md) > [FileSystemDirectoryHandle](./FileSystemDirectoryHandle.md) > entries
2
+
3
+ ## FileSystemDirectoryHandle.entries() method
4
+
5
+ **Signature:**
6
+
7
+ ```typescript
8
+ entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
9
+ ```
10
+
11
+ **Returns:**
12
+
13
+ AsyncIterableIterator&lt;[string, [FileSystemHandle](FileSystemHandle.md)]&gt;