@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.
- package/.rush/temp/{61c1d4a91d98f048b475a5bb3e6541c5d27819de.tar.log → 44b0369e8112f3c6f4248af466a3f35ad626d9d7.tar.log} +3 -3
- package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +13 -13
- package/.rush/temp/operation/build/all.log +13 -13
- package/.rush/temp/operation/build/log-chunks.jsonl +13 -13
- package/.rush/temp/operation/build/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +690 -633
- package/config/typedoc.json +2 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/docs/CryptoUtils/README.md +60 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.decrypt.md +27 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.deriveKey.md +26 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.encrypt.md +25 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.fromBase64.md +24 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateKey.md +17 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.generateRandomBytes.md +24 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.md +151 -0
- package/docs/CryptoUtils/classes/BrowserCryptoProvider.toBase64.md +24 -0
- package/docs/CryptoUtils/classes/BrowserHashProvider.hashParts.md +26 -0
- package/docs/CryptoUtils/classes/BrowserHashProvider.hashString.md +25 -0
- package/docs/CryptoUtils/classes/BrowserHashProvider.md +81 -0
- package/docs/CryptoUtils/functions/createBrowserCryptoProvider.md +12 -0
- package/docs/FileTreeHelpers/README.md +85 -0
- package/docs/FileTreeHelpers/functions/extractFileListMetadata.md +11 -0
- package/docs/FileTreeHelpers/functions/extractFileMetadata.md +11 -0
- package/docs/FileTreeHelpers/functions/fromDirectoryUpload.md +12 -0
- package/docs/FileTreeHelpers/functions/fromFileList.md +12 -0
- package/docs/FileTreeHelpers/functions/getOriginalFile.md +11 -0
- package/docs/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +9 -0
- package/docs/README.md +499 -53
- package/docs/classes/BrowserCryptoProvider.decrypt.md +27 -0
- package/docs/classes/BrowserCryptoProvider.deriveKey.md +26 -0
- package/docs/classes/BrowserCryptoProvider.encrypt.md +25 -0
- package/docs/classes/BrowserCryptoProvider.fromBase64.md +24 -0
- package/docs/classes/BrowserCryptoProvider.generateKey.md +17 -0
- package/docs/classes/BrowserCryptoProvider.generateRandomBytes.md +24 -0
- package/docs/classes/BrowserCryptoProvider.md +151 -0
- package/docs/classes/BrowserCryptoProvider.toBase64.md +24 -0
- package/docs/classes/BrowserHashProvider.hashParts.md +26 -0
- package/docs/classes/BrowserHashProvider.hashString.md +25 -0
- package/docs/classes/BrowserHashProvider.md +81 -0
- package/docs/classes/DirectoryHandleStore.getAll.md +17 -0
- package/docs/classes/DirectoryHandleStore.getAllLabels.md +17 -0
- package/docs/classes/DirectoryHandleStore.load.md +24 -0
- package/docs/classes/DirectoryHandleStore.md +65 -61
- package/docs/classes/DirectoryHandleStore.remove.md +24 -0
- package/docs/classes/DirectoryHandleStore.save.md +25 -0
- package/docs/classes/FileApiTreeAccessors.create.md +25 -0
- package/docs/classes/FileApiTreeAccessors.createFromHttp.md +24 -0
- package/docs/classes/FileApiTreeAccessors.createFromLocalStorage.md +25 -0
- package/docs/classes/FileApiTreeAccessors.createPersistent.md +26 -0
- package/docs/classes/FileApiTreeAccessors.createPersistentFromFile.md +27 -0
- package/docs/classes/FileApiTreeAccessors.extractFileMetadata.md +24 -0
- package/docs/classes/FileApiTreeAccessors.fromDirectoryUpload.md +25 -0
- package/docs/classes/FileApiTreeAccessors.fromFileList.md +25 -0
- package/docs/classes/FileApiTreeAccessors.getOriginalFile.md +27 -0
- package/docs/classes/FileApiTreeAccessors.md +87 -201
- package/docs/classes/FileSystemAccessTreeAccessors.deleteFile.md +22 -0
- package/docs/classes/FileSystemAccessTreeAccessors.fileIsMutable.md +22 -0
- package/docs/classes/FileSystemAccessTreeAccessors.fromDirectoryHandle.md +25 -0
- package/docs/classes/FileSystemAccessTreeAccessors.fromFileHandle.md +29 -0
- package/docs/classes/FileSystemAccessTreeAccessors.getDirtyPaths.md +15 -0
- package/docs/classes/FileSystemAccessTreeAccessors.isDirty.md +15 -0
- package/docs/classes/FileSystemAccessTreeAccessors.md +128 -410
- package/docs/classes/FileSystemAccessTreeAccessors.saveFileContents.md +23 -0
- package/docs/classes/FileSystemAccessTreeAccessors.syncToDisk.md +15 -0
- package/docs/classes/HttpTreeAccessors.deleteFile.md +22 -0
- package/docs/classes/HttpTreeAccessors.fileIsMutable.md +24 -0
- package/docs/classes/HttpTreeAccessors.fromHttp.md +24 -0
- package/docs/classes/HttpTreeAccessors.getDirtyPaths.md +17 -0
- package/docs/classes/HttpTreeAccessors.isDirty.md +17 -0
- package/docs/classes/HttpTreeAccessors.md +121 -368
- package/docs/classes/HttpTreeAccessors.saveFileContents.md +25 -0
- package/docs/classes/HttpTreeAccessors.syncToDisk.md +22 -0
- package/docs/classes/LocalStorageTreeAccessors.deleteFile.md +24 -0
- package/docs/classes/LocalStorageTreeAccessors.fileIsMutable.md +24 -0
- package/docs/classes/LocalStorageTreeAccessors.fromStorage.md +25 -0
- package/docs/classes/LocalStorageTreeAccessors.getDirtyPaths.md +17 -0
- package/docs/classes/LocalStorageTreeAccessors.isDirty.md +17 -0
- package/docs/classes/LocalStorageTreeAccessors.md +121 -371
- package/docs/classes/LocalStorageTreeAccessors.saveFileContents.md +25 -0
- package/docs/classes/LocalStorageTreeAccessors.syncToDisk.md +17 -0
- package/docs/functions/createBrowserCryptoProvider.md +12 -0
- package/docs/functions/exportAsJson.md +6 -17
- package/docs/functions/exportUsingFileSystemAPI.md +6 -21
- package/docs/functions/extractDirectoryPath.md +6 -16
- package/docs/functions/extractFileListMetadata.md +11 -0
- package/docs/functions/extractFileMetadata.md +11 -0
- package/docs/functions/fromDirectoryUpload.md +12 -0
- package/docs/functions/fromFileList.md +12 -0
- package/docs/functions/getOriginalFile.md +11 -0
- package/docs/functions/isDirectoryHandle.md +6 -18
- package/docs/functions/isFileHandle.md +6 -18
- package/docs/functions/isFilePath.md +6 -16
- package/docs/functions/parseContextFilter.md +6 -16
- package/docs/functions/parseQualifierDefaults.md +6 -16
- package/docs/functions/parseResourceTypes.md +6 -16
- package/docs/functions/parseUrlParameters.md +6 -10
- package/docs/functions/safeShowDirectoryPicker.md +6 -19
- package/docs/functions/safeShowOpenFilePicker.md +6 -19
- package/docs/functions/safeShowSaveFilePicker.md +6 -19
- package/docs/functions/supportsFileSystemAccess.md +6 -18
- package/docs/interfaces/FilePickerAcceptType.accept.md +9 -0
- package/docs/interfaces/FilePickerAcceptType.description.md +9 -0
- package/docs/interfaces/FilePickerAcceptType.md +54 -9
- package/docs/interfaces/FileSystemCreateWritableOptions.keepExistingData.md +9 -0
- package/docs/interfaces/FileSystemCreateWritableOptions.md +37 -8
- package/docs/interfaces/FileSystemDirectoryHandle._asyncIterator_.md +13 -0
- package/docs/interfaces/FileSystemDirectoryHandle.entries.md +13 -0
- package/docs/interfaces/FileSystemDirectoryHandle.getDirectoryHandle.md +21 -0
- package/docs/interfaces/FileSystemDirectoryHandle.getFileHandle.md +21 -0
- package/docs/interfaces/FileSystemDirectoryHandle.keys.md +13 -0
- package/docs/interfaces/FileSystemDirectoryHandle.kind.md +9 -0
- package/docs/interfaces/FileSystemDirectoryHandle.md +140 -103
- package/docs/interfaces/FileSystemDirectoryHandle.removeEntry.md +21 -0
- package/docs/interfaces/FileSystemDirectoryHandle.resolve.md +20 -0
- package/docs/interfaces/FileSystemDirectoryHandle.values.md +13 -0
- package/docs/interfaces/FileSystemFileHandle.createWritable.md +20 -0
- package/docs/interfaces/FileSystemFileHandle.getFile.md +13 -0
- package/docs/interfaces/FileSystemFileHandle.kind.md +9 -0
- package/docs/interfaces/FileSystemFileHandle.md +98 -58
- package/docs/interfaces/FileSystemGetDirectoryOptions.create.md +9 -0
- package/docs/interfaces/FileSystemGetDirectoryOptions.md +37 -8
- package/docs/interfaces/FileSystemGetFileOptions.create.md +9 -0
- package/docs/interfaces/FileSystemGetFileOptions.md +37 -8
- package/docs/interfaces/FileSystemHandle.isSameEntry.md +20 -0
- package/docs/interfaces/FileSystemHandle.kind.md +9 -0
- package/docs/interfaces/FileSystemHandle.md +88 -39
- package/docs/interfaces/FileSystemHandle.name.md +9 -0
- package/docs/interfaces/FileSystemHandle.queryPermission.md +20 -0
- package/docs/interfaces/FileSystemHandle.requestPermission.md +20 -0
- package/docs/interfaces/FileSystemHandlePermissionDescriptor.md +37 -8
- package/docs/interfaces/FileSystemHandlePermissionDescriptor.mode.md +9 -0
- package/docs/interfaces/FileSystemRemoveOptions.md +37 -8
- package/docs/interfaces/FileSystemRemoveOptions.recursive.md +9 -0
- package/docs/interfaces/FileSystemWritableFileStream.md +83 -68
- package/docs/interfaces/FileSystemWritableFileStream.seek.md +20 -0
- package/docs/interfaces/FileSystemWritableFileStream.truncate.md +20 -0
- package/docs/interfaces/FileSystemWritableFileStream.write.md +20 -0
- package/docs/interfaces/IDirectoryHandleTreeInitializer.dirHandles.md +9 -0
- package/docs/interfaces/IDirectoryHandleTreeInitializer.md +71 -10
- package/docs/interfaces/IDirectoryHandleTreeInitializer.nonRecursive.md +9 -0
- package/docs/interfaces/IDirectoryHandleTreeInitializer.prefix.md +9 -0
- package/docs/interfaces/IFileHandleTreeInitializer.fileHandles.md +9 -0
- package/docs/interfaces/IFileHandleTreeInitializer.md +54 -9
- package/docs/interfaces/IFileHandleTreeInitializer.prefix.md +9 -0
- package/docs/interfaces/IFileListTreeInitializer.fileList.md +9 -0
- package/docs/interfaces/IFileListTreeInitializer.md +37 -8
- package/docs/interfaces/IFileMetadata.lastModified.md +9 -0
- package/docs/interfaces/IFileMetadata.md +105 -12
- package/docs/interfaces/IFileMetadata.name.md +9 -0
- package/docs/interfaces/IFileMetadata.path.md +9 -0
- package/docs/interfaces/IFileMetadata.size.md +9 -0
- package/docs/interfaces/IFileMetadata.type.md +9 -0
- package/docs/interfaces/IFileSystemAccessTreeParams.autoSync.md +12 -0
- package/docs/interfaces/IFileSystemAccessTreeParams.filePath.md +13 -0
- package/docs/interfaces/IFileSystemAccessTreeParams.logger.md +11 -0
- package/docs/interfaces/IFileSystemAccessTreeParams.md +138 -20
- package/docs/interfaces/IFileSystemAccessTreeParams.requireWritePermission.md +13 -0
- package/docs/interfaces/IFsAccessApis.md +36 -31
- package/docs/interfaces/IFsAccessApis.showDirectoryPicker.md +20 -0
- package/docs/interfaces/IFsAccessApis.showOpenFilePicker.md +20 -0
- package/docs/interfaces/IFsAccessApis.showSaveFilePicker.md +20 -0
- package/docs/interfaces/IHttpTreeParams.autoSync.md +9 -0
- package/docs/interfaces/IHttpTreeParams.baseUrl.md +9 -0
- package/docs/interfaces/IHttpTreeParams.fetchImpl.md +9 -0
- package/docs/interfaces/IHttpTreeParams.logger.md +9 -0
- package/docs/interfaces/IHttpTreeParams.md +172 -22
- package/docs/interfaces/IHttpTreeParams.namespace.md +9 -0
- package/docs/interfaces/IHttpTreeParams.userId.md +9 -0
- package/docs/interfaces/ILocalStorageTreeParams.autoSync.md +12 -0
- package/docs/interfaces/ILocalStorageTreeParams.md +121 -20
- package/docs/interfaces/ILocalStorageTreeParams.pathToKeyMap.md +13 -0
- package/docs/interfaces/ILocalStorageTreeParams.storage.md +12 -0
- package/docs/interfaces/IUrlConfigOptions.config.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.configStartDir.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.contextFilter.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.input.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.inputStartDir.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.interactive.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.loadZip.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.maxDistance.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.md +241 -20
- package/docs/interfaces/IUrlConfigOptions.qualifierDefaults.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.reduceQualifiers.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.resourceTypes.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.zipFile.md +11 -0
- package/docs/interfaces/IUrlConfigOptions.zipPath.md +11 -0
- package/docs/interfaces/ShowDirectoryPickerOptions.id.md +9 -0
- package/docs/interfaces/ShowDirectoryPickerOptions.md +71 -10
- package/docs/interfaces/ShowDirectoryPickerOptions.mode.md +9 -0
- package/docs/interfaces/ShowDirectoryPickerOptions.startIn.md +9 -0
- package/docs/interfaces/ShowOpenFilePickerOptions.excludeAcceptAllOption.md +9 -0
- package/docs/interfaces/ShowOpenFilePickerOptions.id.md +9 -0
- package/docs/interfaces/ShowOpenFilePickerOptions.md +105 -12
- package/docs/interfaces/ShowOpenFilePickerOptions.multiple.md +9 -0
- package/docs/interfaces/ShowOpenFilePickerOptions.startIn.md +9 -0
- package/docs/interfaces/ShowOpenFilePickerOptions.types.md +9 -0
- package/docs/interfaces/ShowSaveFilePickerOptions.excludeAcceptAllOption.md +9 -0
- package/docs/interfaces/ShowSaveFilePickerOptions.id.md +9 -0
- package/docs/interfaces/ShowSaveFilePickerOptions.md +105 -12
- package/docs/interfaces/ShowSaveFilePickerOptions.startIn.md +9 -0
- package/docs/interfaces/ShowSaveFilePickerOptions.suggestedName.md +9 -0
- package/docs/interfaces/ShowSaveFilePickerOptions.types.md +9 -0
- package/docs/type-aliases/TreeInitializer.md +7 -7
- package/docs/type-aliases/WellKnownDirectory.md +7 -7
- package/docs/type-aliases/WindowWithFsAccess.md +7 -7
- package/docs/variables/DEFAULT_DIRECTORY_HANDLE_DB.md +5 -7
- package/docs/variables/DEFAULT_DIRECTORY_HANDLE_STORE.md +5 -7
- package/docs/variables/defaultFileApiTreeInitParams.md +9 -0
- package/package.json +12 -11
- package/rush-logs/ts-web-extras.build.cache.log +1 -1
- package/rush-logs/ts-web-extras.build.log +13 -13
- package/temp/coverage/crypto-utils/browserCryptoProvider.ts.html +1 -1
- package/temp/coverage/crypto-utils/browserHashProvider.ts.html +1 -1
- package/temp/coverage/crypto-utils/index.html +1 -1
- package/temp/coverage/file-tree/directoryHandleStore.ts.html +1 -1
- package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +1 -1
- package/temp/coverage/file-tree/fileSystemAccessTreeAccessors.ts.html +1 -1
- package/temp/coverage/file-tree/httpTreeAccessors.ts.html +1 -1
- package/temp/coverage/file-tree/index.html +1 -1
- package/temp/coverage/file-tree/localStorageTreeAccessors.ts.html +1 -1
- package/temp/coverage/helpers/fileTreeHelpers.ts.html +1 -1
- package/temp/coverage/helpers/index.html +1 -1
- package/temp/coverage/index.html +1 -1
- package/temp/coverage/lcov-report/crypto-utils/browserCryptoProvider.ts.html +1 -1
- package/temp/coverage/lcov-report/crypto-utils/browserHashProvider.ts.html +1 -1
- package/temp/coverage/lcov-report/crypto-utils/index.html +1 -1
- package/temp/coverage/lcov-report/file-tree/directoryHandleStore.ts.html +1 -1
- package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +1 -1
- package/temp/coverage/lcov-report/file-tree/fileSystemAccessTreeAccessors.ts.html +1 -1
- package/temp/coverage/lcov-report/file-tree/httpTreeAccessors.ts.html +1 -1
- package/temp/coverage/lcov-report/file-tree/index.html +1 -1
- package/temp/coverage/lcov-report/file-tree/localStorageTreeAccessors.ts.html +1 -1
- package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +1 -1
- package/temp/coverage/lcov-report/helpers/index.html +1 -1
- package/temp/coverage/lcov-report/index.html +1 -1
- package/temp/coverage/lcov-report/url-utils/index.html +1 -1
- package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +1 -1
- package/temp/coverage/url-utils/index.html +1 -1
- package/temp/coverage/url-utils/urlParams.ts.html +1 -1
- package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
- package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
- package/temp/ts-web-extras.api.json +1 -1
- package/docs/@fgv/namespaces/CryptoUtils/README.md +0 -18
- package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserCryptoProvider.md +0 -203
- package/docs/@fgv/namespaces/CryptoUtils/classes/BrowserHashProvider.md +0 -63
- package/docs/@fgv/namespaces/CryptoUtils/functions/createBrowserCryptoProvider.md +0 -18
- package/docs/@fgv/namespaces/FileTreeHelpers/README.md +0 -19
- package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileListMetadata.md +0 -23
- package/docs/@fgv/namespaces/FileTreeHelpers/functions/extractFileMetadata.md +0 -23
- package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromDirectoryUpload.md +0 -33
- package/docs/@fgv/namespaces/FileTreeHelpers/functions/fromFileList.md +0 -33
- package/docs/@fgv/namespaces/FileTreeHelpers/functions/getOriginalFile.md +0 -25
- package/docs/@fgv/namespaces/FileTreeHelpers/variables/defaultFileApiTreeInitParams.md +0 -11
- /package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/{d6/package_d6e3b0fa94752e16b0b2a2777739b973 → 7c/package_7c16afc8299e635d80273763175c7a50} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Home](../README.md) > [IFileSystemAccessTreeParams](./IFileSystemAccessTreeParams.md) > autoSync
|
|
2
|
+
|
|
3
|
+
## IFileSystemAccessTreeParams.autoSync property
|
|
4
|
+
|
|
5
|
+
Automatically sync changes to disk immediately after each save.
|
|
6
|
+
If false, changes are batched and written on explicit syncToDisk() call.
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
autoSync: boolean;
|
|
12
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Home](../README.md) > [IFileSystemAccessTreeParams](./IFileSystemAccessTreeParams.md) > filePath
|
|
2
|
+
|
|
3
|
+
## IFileSystemAccessTreeParams.filePath property
|
|
4
|
+
|
|
5
|
+
Override the path at which the file is stored in the tree (for fromFileHandle).
|
|
6
|
+
Must be an absolute path (e.g., '/data/confections/common.yaml').
|
|
7
|
+
If omitted, defaults to `/<filename>`.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
filePath: string;
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Home](../README.md) > [IFileSystemAccessTreeParams](./IFileSystemAccessTreeParams.md) > logger
|
|
2
|
+
|
|
3
|
+
## IFileSystemAccessTreeParams.logger property
|
|
4
|
+
|
|
5
|
+
Optional logger for auto-sync and persistence failures.
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
logger: LogReporter<unknown, unknown>;
|
|
11
|
+
```
|
|
@@ -1,30 +1,148 @@
|
|
|
1
|
-
[
|
|
1
|
+
[Home](../README.md) > IFileSystemAccessTreeParams
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Interface: IFileSystemAccessTreeParams
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Options for creating persistent file trees.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Extends:** `IFileTreeInitParams<TCT>`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Properties
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<table><thead><tr><th>
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Property
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
</th><th>
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
| ------ | ------ |
|
|
19
|
-
| `TCT` *extends* `string` | `string` |
|
|
17
|
+
Modifiers
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
</th><th>
|
|
20
|
+
|
|
21
|
+
Type
|
|
22
|
+
|
|
23
|
+
</th><th>
|
|
24
|
+
|
|
25
|
+
Description
|
|
26
|
+
|
|
27
|
+
</th></tr></thead>
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr><td>
|
|
30
|
+
|
|
31
|
+
[autoSync](./IFileSystemAccessTreeParams.autoSync.md)
|
|
32
|
+
|
|
33
|
+
</td><td>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</td><td>
|
|
38
|
+
|
|
39
|
+
boolean
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
Automatically sync changes to disk immediately after each save.
|
|
44
|
+
|
|
45
|
+
</td></tr>
|
|
46
|
+
<tr><td>
|
|
47
|
+
|
|
48
|
+
[requireWritePermission](./IFileSystemAccessTreeParams.requireWritePermission.md)
|
|
49
|
+
|
|
50
|
+
</td><td>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
boolean
|
|
57
|
+
|
|
58
|
+
</td><td>
|
|
59
|
+
|
|
60
|
+
Require write permission on the directory handle.
|
|
61
|
+
|
|
62
|
+
</td></tr>
|
|
63
|
+
<tr><td>
|
|
64
|
+
|
|
65
|
+
[filePath](./IFileSystemAccessTreeParams.filePath.md)
|
|
66
|
+
|
|
67
|
+
</td><td>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</td><td>
|
|
72
|
+
|
|
73
|
+
string
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
Override the path at which the file is stored in the tree (for fromFileHandle).
|
|
78
|
+
|
|
79
|
+
</td></tr>
|
|
80
|
+
<tr><td>
|
|
81
|
+
|
|
82
|
+
[logger](./IFileSystemAccessTreeParams.logger.md)
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
LogReporter<unknown, unknown>
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
Optional logger for auto-sync and persistence failures.
|
|
95
|
+
|
|
96
|
+
</td></tr>
|
|
97
|
+
<tr><td>
|
|
98
|
+
|
|
99
|
+
[prefix](./IFileSystemAccessTreeParams.prefix.md)
|
|
100
|
+
|
|
101
|
+
</td><td>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</td><td>
|
|
106
|
+
|
|
107
|
+
string
|
|
108
|
+
|
|
109
|
+
</td><td>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td></tr>
|
|
114
|
+
<tr><td>
|
|
115
|
+
|
|
116
|
+
[inferContentType](./IFileSystemAccessTreeParams.inferContentType.md)
|
|
117
|
+
|
|
118
|
+
</td><td>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
</td><td>
|
|
123
|
+
|
|
124
|
+
ContentTypeFactory<TCT>
|
|
125
|
+
|
|
126
|
+
</td><td>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</td></tr>
|
|
131
|
+
<tr><td>
|
|
132
|
+
|
|
133
|
+
[mutable](./IFileSystemAccessTreeParams.mutable.md)
|
|
134
|
+
|
|
135
|
+
</td><td>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</td><td>
|
|
140
|
+
|
|
141
|
+
boolean | IFilterSpec
|
|
142
|
+
|
|
143
|
+
</td><td>
|
|
144
|
+
|
|
145
|
+
Controls mutability of the file tree.
|
|
22
146
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| <a id="autosync"></a> `autoSync?` | `boolean` | `false` | Automatically sync changes to disk immediately after each save. If false, changes are batched and written on explicit syncToDisk() call. |
|
|
26
|
-
| <a id="filepath"></a> `filePath?` | `string` | `undefined` | Override the path at which the file is stored in the tree (for fromFileHandle). Must be an absolute path (e.g., '/data/confections/common.yaml'). If omitted, defaults to `/<filename>`. |
|
|
27
|
-
| <a id="infercontenttype"></a> `inferContentType?` | [`ContentTypeFactory`](https://github.com/ErikFortune/fgv/tree/main/libraries/ts-json-base/docs)\<`TCT`\> | `undefined` | - |
|
|
28
|
-
| <a id="mutable"></a> `mutable?` | `boolean` \| [`IFilterSpec`](https://github.com/ErikFortune/fgv/tree/main/libraries/ts-json-base/docs) | `undefined` | Controls mutability of the file tree. - `undefined` or `false`: No files are mutable. - `true`: All files are mutable. - `IFilterSpec`: Only files matching the filter are mutable. |
|
|
29
|
-
| <a id="prefix"></a> `prefix?` | `string` | `undefined` | - |
|
|
30
|
-
| <a id="requirewritepermission"></a> `requireWritePermission?` | `boolean` | `true` | Require write permission on the directory handle. If true, fails if write permission cannot be obtained. If false, falls back to read-only mode. |
|
|
147
|
+
</td></tr>
|
|
148
|
+
</tbody></table>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Home](../README.md) > [IFileSystemAccessTreeParams](./IFileSystemAccessTreeParams.md) > requireWritePermission
|
|
2
|
+
|
|
3
|
+
## IFileSystemAccessTreeParams.requireWritePermission property
|
|
4
|
+
|
|
5
|
+
Require write permission on the directory handle.
|
|
6
|
+
If true, fails if write permission cannot be obtained.
|
|
7
|
+
If false, falls back to read-only mode.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
requireWritePermission: boolean;
|
|
13
|
+
```
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
[
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@fgv/ts-web-extras](../README.md) / IFsAccessApis
|
|
1
|
+
[Home](../README.md) > IFsAccessApis
|
|
6
2
|
|
|
7
3
|
# Interface: IFsAccessApis
|
|
8
4
|
|
|
@@ -10,48 +6,57 @@ File System Access API methods available on Window
|
|
|
10
6
|
|
|
11
7
|
## Methods
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Method
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Description
|
|
20
|
+
|
|
21
|
+
</th></tr></thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr><td>
|
|
24
|
+
|
|
25
|
+
[showDirectoryPicker(options)](./IFsAccessApis.showDirectoryPicker.md)
|
|
26
|
+
|
|
27
|
+
</td><td>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
14
32
|
|
|
15
|
-
> **showDirectoryPicker**(`options?`): `Promise`\<[`FileSystemDirectoryHandle`](FileSystemDirectoryHandle.md)\>
|
|
16
33
|
|
|
17
|
-
#### Parameters
|
|
18
34
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
| `options?` | [`ShowDirectoryPickerOptions`](ShowDirectoryPickerOptions.md) |
|
|
35
|
+
</td></tr>
|
|
36
|
+
<tr><td>
|
|
22
37
|
|
|
23
|
-
|
|
38
|
+
[showOpenFilePicker(options)](./IFsAccessApis.showOpenFilePicker.md)
|
|
24
39
|
|
|
25
|
-
|
|
40
|
+
</td><td>
|
|
26
41
|
|
|
27
|
-
***
|
|
28
42
|
|
|
29
|
-
### showOpenFilePicker()
|
|
30
43
|
|
|
31
|
-
>
|
|
44
|
+
</td><td>
|
|
32
45
|
|
|
33
|
-
#### Parameters
|
|
34
46
|
|
|
35
|
-
| Parameter | Type |
|
|
36
|
-
| ------ | ------ |
|
|
37
|
-
| `options?` | [`ShowOpenFilePickerOptions`](ShowOpenFilePickerOptions.md) |
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
</td></tr>
|
|
49
|
+
<tr><td>
|
|
40
50
|
|
|
41
|
-
|
|
51
|
+
[showSaveFilePicker(options)](./IFsAccessApis.showSaveFilePicker.md)
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
</td><td>
|
|
44
54
|
|
|
45
|
-
### showSaveFilePicker()
|
|
46
55
|
|
|
47
|
-
> **showSaveFilePicker**(`options?`): `Promise`\<[`FileSystemFileHandle`](FileSystemFileHandle.md)\>
|
|
48
56
|
|
|
49
|
-
|
|
57
|
+
</td><td>
|
|
50
58
|
|
|
51
|
-
| Parameter | Type |
|
|
52
|
-
| ------ | ------ |
|
|
53
|
-
| `options?` | [`ShowSaveFilePickerOptions`](ShowSaveFilePickerOptions.md) |
|
|
54
59
|
|
|
55
|
-
#### Returns
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
</td></tr>
|
|
62
|
+
</tbody></table>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [IFsAccessApis](./IFsAccessApis.md) > showDirectoryPicker
|
|
2
|
+
|
|
3
|
+
## IFsAccessApis.showDirectoryPicker() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
showDirectoryPicker(options?: ShowDirectoryPickerOptions): Promise<FileSystemDirectoryHandle>;
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Parameters:**
|
|
12
|
+
|
|
13
|
+
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr><td>options</td><td>ShowDirectoryPickerOptions</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<[FileSystemDirectoryHandle](FileSystemDirectoryHandle.md)>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [IFsAccessApis](./IFsAccessApis.md) > showOpenFilePicker
|
|
2
|
+
|
|
3
|
+
## IFsAccessApis.showOpenFilePicker() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
showOpenFilePicker(options?: ShowOpenFilePickerOptions): Promise<FileSystemFileHandle[]>;
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Parameters:**
|
|
12
|
+
|
|
13
|
+
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr><td>options</td><td>ShowOpenFilePickerOptions</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<[FileSystemFileHandle](FileSystemFileHandle.md)[]>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [IFsAccessApis](./IFsAccessApis.md) > showSaveFilePicker
|
|
2
|
+
|
|
3
|
+
## IFsAccessApis.showSaveFilePicker() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
showSaveFilePicker(options?: ShowSaveFilePickerOptions): Promise<FileSystemFileHandle>;
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Parameters:**
|
|
12
|
+
|
|
13
|
+
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr><td>options</td><td>ShowSaveFilePickerOptions</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<[FileSystemFileHandle](FileSystemFileHandle.md)>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[Home](../README.md) > [IHttpTreeParams](./IHttpTreeParams.md) > fetchImpl
|
|
2
|
+
|
|
3
|
+
## IHttpTreeParams.fetchImpl property
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
readonly fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response> };
|
|
9
|
+
```
|
|
@@ -1,32 +1,182 @@
|
|
|
1
|
-
[
|
|
1
|
+
[Home](../README.md) > IHttpTreeParams
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Interface: IHttpTreeParams
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Configuration for creating HTTP-backed tree accessors.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Extends:** `IFileTreeInitParams<TCT>`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Properties
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<table><thead><tr><th>
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Property
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
</th><th>
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
| ------ | ------ |
|
|
19
|
-
| `TCT` *extends* `string` | `string` |
|
|
17
|
+
Modifiers
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
</th><th>
|
|
20
|
+
|
|
21
|
+
Type
|
|
22
|
+
|
|
23
|
+
</th><th>
|
|
24
|
+
|
|
25
|
+
Description
|
|
26
|
+
|
|
27
|
+
</th></tr></thead>
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr><td>
|
|
30
|
+
|
|
31
|
+
[baseUrl](./IHttpTreeParams.baseUrl.md)
|
|
32
|
+
|
|
33
|
+
</td><td>
|
|
34
|
+
|
|
35
|
+
`readonly`
|
|
36
|
+
|
|
37
|
+
</td><td>
|
|
38
|
+
|
|
39
|
+
string
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td></tr>
|
|
46
|
+
<tr><td>
|
|
47
|
+
|
|
48
|
+
[namespace](./IHttpTreeParams.namespace.md)
|
|
49
|
+
|
|
50
|
+
</td><td>
|
|
51
|
+
|
|
52
|
+
`readonly`
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
string
|
|
57
|
+
|
|
58
|
+
</td><td>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td></tr>
|
|
63
|
+
<tr><td>
|
|
64
|
+
|
|
65
|
+
[autoSync](./IHttpTreeParams.autoSync.md)
|
|
66
|
+
|
|
67
|
+
</td><td>
|
|
68
|
+
|
|
69
|
+
`readonly`
|
|
70
|
+
|
|
71
|
+
</td><td>
|
|
72
|
+
|
|
73
|
+
boolean
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</td></tr>
|
|
80
|
+
<tr><td>
|
|
81
|
+
|
|
82
|
+
[fetchImpl](./IHttpTreeParams.fetchImpl.md)
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
`readonly`
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response> }
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
</td></tr>
|
|
97
|
+
<tr><td>
|
|
98
|
+
|
|
99
|
+
[userId](./IHttpTreeParams.userId.md)
|
|
100
|
+
|
|
101
|
+
</td><td>
|
|
102
|
+
|
|
103
|
+
`readonly`
|
|
104
|
+
|
|
105
|
+
</td><td>
|
|
106
|
+
|
|
107
|
+
string
|
|
108
|
+
|
|
109
|
+
</td><td>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td></tr>
|
|
114
|
+
<tr><td>
|
|
115
|
+
|
|
116
|
+
[logger](./IHttpTreeParams.logger.md)
|
|
117
|
+
|
|
118
|
+
</td><td>
|
|
119
|
+
|
|
120
|
+
`readonly`
|
|
121
|
+
|
|
122
|
+
</td><td>
|
|
123
|
+
|
|
124
|
+
LogReporter<unknown, unknown>
|
|
125
|
+
|
|
126
|
+
</td><td>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</td></tr>
|
|
131
|
+
<tr><td>
|
|
132
|
+
|
|
133
|
+
[prefix](./IHttpTreeParams.prefix.md)
|
|
134
|
+
|
|
135
|
+
</td><td>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</td><td>
|
|
140
|
+
|
|
141
|
+
string
|
|
142
|
+
|
|
143
|
+
</td><td>
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</td></tr>
|
|
148
|
+
<tr><td>
|
|
149
|
+
|
|
150
|
+
[inferContentType](./IHttpTreeParams.inferContentType.md)
|
|
151
|
+
|
|
152
|
+
</td><td>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</td><td>
|
|
157
|
+
|
|
158
|
+
ContentTypeFactory<TCT>
|
|
159
|
+
|
|
160
|
+
</td><td>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</td></tr>
|
|
165
|
+
<tr><td>
|
|
166
|
+
|
|
167
|
+
[mutable](./IHttpTreeParams.mutable.md)
|
|
168
|
+
|
|
169
|
+
</td><td>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
</td><td>
|
|
174
|
+
|
|
175
|
+
boolean | IFilterSpec
|
|
176
|
+
|
|
177
|
+
</td><td>
|
|
178
|
+
|
|
179
|
+
Controls mutability of the file tree.
|
|
22
180
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| <a id="autosync"></a> `autoSync?` | `readonly` | `boolean` | - |
|
|
26
|
-
| <a id="baseurl"></a> `baseUrl` | `readonly` | `string` | - |
|
|
27
|
-
| <a id="fetchimpl"></a> `fetchImpl?` | `readonly` | \{(`input`, `init?`): `Promise`\<`Response`\>; (`input`, `init?`): `Promise`\<`Response`\>; \} | - |
|
|
28
|
-
| <a id="infercontenttype"></a> `inferContentType?` | `public` | [`ContentTypeFactory`](https://github.com/ErikFortune/fgv/tree/main/libraries/ts-json-base/docs)\<`TCT`\> | - |
|
|
29
|
-
| <a id="mutable"></a> `mutable?` | `public` | `boolean` \| [`IFilterSpec`](https://github.com/ErikFortune/fgv/tree/main/libraries/ts-json-base/docs) | Controls mutability of the file tree. - `undefined` or `false`: No files are mutable. - `true`: All files are mutable. - `IFilterSpec`: Only files matching the filter are mutable. |
|
|
30
|
-
| <a id="namespace"></a> `namespace?` | `readonly` | `string` | - |
|
|
31
|
-
| <a id="prefix"></a> `prefix?` | `public` | `string` | - |
|
|
32
|
-
| <a id="userid"></a> `userId?` | `readonly` | `string` | - |
|
|
181
|
+
</td></tr>
|
|
182
|
+
</tbody></table>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Home](../README.md) > [ILocalStorageTreeParams](./ILocalStorageTreeParams.md) > autoSync
|
|
2
|
+
|
|
3
|
+
## ILocalStorageTreeParams.autoSync property
|
|
4
|
+
|
|
5
|
+
If true, automatically sync changes to localStorage on every modification.
|
|
6
|
+
If false (default), changes are only synced when syncToDisk() is called.
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
autoSync: boolean;
|
|
12
|
+
```
|