@fgv/ts-web-extras 5.0.2 → 5.1.0-0

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 (208) hide show
  1. package/.rush/temp/81e0881271ff236956b2f52e8ca99da6574c6e1e.tar.log +223 -0
  2. package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +35 -25
  3. package/.rush/temp/operation/build/all.log +35 -25
  4. package/.rush/temp/operation/build/log-chunks.jsonl +35 -25
  5. package/.rush/temp/operation/build/state.json +1 -1
  6. package/.rush/temp/shrinkwrap-deps.json +175 -163
  7. package/config/jest.config.json +4 -1
  8. package/config/typedoc.json +6 -0
  9. package/dist/index.js +2 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/packlets/crypto-utils/browserCryptoProvider.js +254 -0
  12. package/dist/packlets/crypto-utils/browserCryptoProvider.js.map +1 -0
  13. package/dist/packlets/crypto-utils/browserHashProvider.js.map +1 -0
  14. package/dist/packlets/{crypto → crypto-utils}/index.js +1 -0
  15. package/dist/packlets/crypto-utils/index.js.map +1 -0
  16. package/dist/packlets/file-api-types/index.js +27 -3
  17. package/dist/packlets/file-api-types/index.js.map +1 -1
  18. package/dist/packlets/file-tree/directoryHandleStore.js +124 -0
  19. package/dist/packlets/file-tree/directoryHandleStore.js.map +1 -0
  20. package/dist/packlets/file-tree/fileApiTreeAccessors.js +76 -0
  21. package/dist/packlets/file-tree/fileApiTreeAccessors.js.map +1 -1
  22. package/dist/packlets/file-tree/fileSystemAccessTreeAccessors.js +345 -0
  23. package/dist/packlets/file-tree/fileSystemAccessTreeAccessors.js.map +1 -0
  24. package/dist/packlets/file-tree/index.js +3 -0
  25. package/dist/packlets/file-tree/index.js.map +1 -1
  26. package/dist/packlets/file-tree/localStorageTreeAccessors.js +308 -0
  27. package/dist/packlets/file-tree/localStorageTreeAccessors.js.map +1 -0
  28. package/dist/test/mocks/idb-keyval.js +6 -0
  29. package/dist/test/mocks/idb-keyval.js.map +1 -0
  30. package/dist/test/unit/browserHashProvider.test.js +1 -1
  31. package/dist/test/unit/browserHashProvider.test.js.map +1 -1
  32. package/dist/test/unit/directoryHandleStore.test.js +190 -0
  33. package/dist/test/unit/directoryHandleStore.test.js.map +1 -0
  34. package/dist/test/unit/fileApiTypes.test.js +30 -0
  35. package/dist/test/unit/fileApiTypes.test.js.map +1 -1
  36. package/dist/test/unit/fileSystemAccessTreeAccessors.test.js +517 -0
  37. package/dist/test/unit/fileSystemAccessTreeAccessors.test.js.map +1 -0
  38. package/dist/test/unit/localStorageTreeAccessors.test.js +595 -0
  39. package/dist/test/unit/localStorageTreeAccessors.test.js.map +1 -0
  40. package/dist/test/utils/fileSystemAccessMocks.js +271 -0
  41. package/dist/test/utils/fileSystemAccessMocks.js.map +1 -0
  42. package/dist/ts-web-extras.d.ts +460 -1
  43. package/dist/tsdoc-metadata.json +1 -1
  44. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider._constructor_.md +50 -0
  45. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.decrypt.md +104 -0
  46. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.derivekey.md +88 -0
  47. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.encrypt.md +72 -0
  48. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.frombase64.md +56 -0
  49. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.generatekey.md +19 -0
  50. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.generaterandombytes.md +56 -0
  51. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.md +169 -0
  52. package/docs/ts-web-extras.cryptoutils.browsercryptoprovider.tobase64.md +56 -0
  53. package/docs/{ts-web-extras.browserhashprovider.hashparts.md → ts-web-extras.cryptoutils.browserhashprovider.hashparts.md} +2 -2
  54. package/docs/{ts-web-extras.browserhashprovider.hashstring.md → ts-web-extras.cryptoutils.browserhashprovider.hashstring.md} +2 -2
  55. package/docs/{ts-web-extras.browserhashprovider.md → ts-web-extras.cryptoutils.browserhashprovider.md} +4 -4
  56. package/docs/ts-web-extras.cryptoutils.createbrowsercryptoprovider.md +19 -0
  57. package/docs/ts-web-extras.cryptoutils.md +71 -0
  58. package/docs/ts-web-extras.fileapitreeaccessors.createfromlocalstorage.md +74 -0
  59. package/docs/ts-web-extras.fileapitreeaccessors.createpersistent.md +76 -0
  60. package/docs/ts-web-extras.fileapitreeaccessors.md +32 -0
  61. package/docs/ts-web-extras.filesystemaccesstreeaccessors._constructor_.md +114 -0
  62. package/docs/ts-web-extras.filesystemaccesstreeaccessors.fileismutable.md +52 -0
  63. package/docs/ts-web-extras.filesystemaccesstreeaccessors.fromdirectoryhandle.md +72 -0
  64. package/docs/ts-web-extras.filesystemaccesstreeaccessors.getdirtypaths.md +17 -0
  65. package/docs/ts-web-extras.filesystemaccesstreeaccessors.isdirty.md +17 -0
  66. package/docs/ts-web-extras.filesystemaccesstreeaccessors.md +159 -0
  67. package/docs/ts-web-extras.filesystemaccesstreeaccessors.savefilecontents.md +66 -0
  68. package/docs/ts-web-extras.filesystemaccesstreeaccessors.synctodisk.md +17 -0
  69. package/docs/ts-web-extras.ifilesystemaccesstreeparams.autosync.md +13 -0
  70. package/docs/ts-web-extras.ifilesystemaccesstreeparams.md +78 -0
  71. package/docs/ts-web-extras.ifilesystemaccesstreeparams.requirewritepermission.md +13 -0
  72. package/docs/ts-web-extras.ilocalstoragetreeparams.autosync.md +13 -0
  73. package/docs/ts-web-extras.ilocalstoragetreeparams.md +97 -0
  74. package/docs/ts-web-extras.ilocalstoragetreeparams.pathtokeymap.md +13 -0
  75. package/docs/ts-web-extras.ilocalstoragetreeparams.storage.md +13 -0
  76. package/docs/ts-web-extras.localstoragetreeaccessors.fileismutable.md +56 -0
  77. package/docs/ts-web-extras.localstoragetreeaccessors.fromstorage.md +56 -0
  78. package/docs/ts-web-extras.localstoragetreeaccessors.getdirtypaths.md +19 -0
  79. package/docs/ts-web-extras.localstoragetreeaccessors.isdirty.md +19 -0
  80. package/docs/ts-web-extras.localstoragetreeaccessors.md +131 -0
  81. package/docs/ts-web-extras.localstoragetreeaccessors.savefilecontents.md +72 -0
  82. package/docs/ts-web-extras.localstoragetreeaccessors.synctodisk.md +19 -0
  83. package/docs/ts-web-extras.md +50 -4
  84. package/etc/ts-web-extras.api.md +91 -1
  85. package/lib/index.d.ts +2 -1
  86. package/lib/index.d.ts.map +1 -1
  87. package/lib/index.js +25 -2
  88. package/lib/index.js.map +1 -1
  89. package/lib/packlets/crypto-utils/browserCryptoProvider.d.ts +77 -0
  90. package/lib/packlets/crypto-utils/browserCryptoProvider.d.ts.map +1 -0
  91. package/lib/packlets/crypto-utils/browserCryptoProvider.js +259 -0
  92. package/lib/packlets/crypto-utils/browserCryptoProvider.js.map +1 -0
  93. package/lib/packlets/crypto-utils/browserHashProvider.d.ts.map +1 -0
  94. package/lib/packlets/crypto-utils/browserHashProvider.js.map +1 -0
  95. package/lib/packlets/{crypto → crypto-utils}/index.d.ts +1 -0
  96. package/lib/packlets/crypto-utils/index.d.ts.map +1 -0
  97. package/lib/packlets/{crypto → crypto-utils}/index.js +1 -0
  98. package/lib/packlets/crypto-utils/index.js.map +1 -0
  99. package/lib/packlets/file-api-types/index.d.ts.map +1 -1
  100. package/lib/packlets/file-api-types/index.js +27 -3
  101. package/lib/packlets/file-api-types/index.js.map +1 -1
  102. package/lib/packlets/file-tree/directoryHandleStore.d.ts +59 -0
  103. package/lib/packlets/file-tree/directoryHandleStore.d.ts.map +1 -0
  104. package/lib/packlets/file-tree/directoryHandleStore.js +128 -0
  105. package/lib/packlets/file-tree/directoryHandleStore.js.map +1 -0
  106. package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts +57 -0
  107. package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts.map +1 -1
  108. package/lib/packlets/file-tree/fileApiTreeAccessors.js +76 -0
  109. package/lib/packlets/file-tree/fileApiTreeAccessors.js.map +1 -1
  110. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.d.ts +136 -0
  111. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.d.ts.map +1 -0
  112. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.js +349 -0
  113. package/lib/packlets/file-tree/fileSystemAccessTreeAccessors.js.map +1 -0
  114. package/lib/packlets/file-tree/index.d.ts +3 -0
  115. package/lib/packlets/file-tree/index.d.ts.map +1 -1
  116. package/lib/packlets/file-tree/index.js +3 -0
  117. package/lib/packlets/file-tree/index.js.map +1 -1
  118. package/lib/packlets/file-tree/localStorageTreeAccessors.d.ts +129 -0
  119. package/lib/packlets/file-tree/localStorageTreeAccessors.d.ts.map +1 -0
  120. package/lib/packlets/file-tree/localStorageTreeAccessors.js +312 -0
  121. package/lib/packlets/file-tree/localStorageTreeAccessors.js.map +1 -0
  122. package/lib/test/mocks/idb-keyval.d.ts +6 -0
  123. package/lib/test/mocks/idb-keyval.d.ts.map +1 -0
  124. package/lib/test/mocks/idb-keyval.js +9 -0
  125. package/lib/test/mocks/idb-keyval.js.map +1 -0
  126. package/lib/test/unit/browserHashProvider.test.js +21 -21
  127. package/lib/test/unit/browserHashProvider.test.js.map +1 -1
  128. package/lib/test/unit/directoryHandleStore.test.d.ts +2 -0
  129. package/lib/test/unit/directoryHandleStore.test.d.ts.map +1 -0
  130. package/lib/test/unit/directoryHandleStore.test.js +192 -0
  131. package/lib/test/unit/directoryHandleStore.test.js.map +1 -0
  132. package/lib/test/unit/fileApiTypes.test.js +30 -0
  133. package/lib/test/unit/fileApiTypes.test.js.map +1 -1
  134. package/lib/test/unit/fileSystemAccessTreeAccessors.test.d.ts +2 -0
  135. package/lib/test/unit/fileSystemAccessTreeAccessors.test.d.ts.map +1 -0
  136. package/lib/test/unit/fileSystemAccessTreeAccessors.test.js +519 -0
  137. package/lib/test/unit/fileSystemAccessTreeAccessors.test.js.map +1 -0
  138. package/lib/test/unit/localStorageTreeAccessors.test.d.ts +2 -0
  139. package/lib/test/unit/localStorageTreeAccessors.test.d.ts.map +1 -0
  140. package/lib/test/unit/localStorageTreeAccessors.test.js +597 -0
  141. package/lib/test/unit/localStorageTreeAccessors.test.js.map +1 -0
  142. package/lib/test/utils/fileSystemAccessMocks.d.ts +53 -0
  143. package/lib/test/utils/fileSystemAccessMocks.d.ts.map +1 -0
  144. package/lib/test/utils/fileSystemAccessMocks.js +277 -0
  145. package/lib/test/utils/fileSystemAccessMocks.js.map +1 -0
  146. package/package.json +27 -20
  147. package/rush-logs/ts-web-extras.build.cache.log +3 -1
  148. package/rush-logs/ts-web-extras.build.log +35 -25
  149. package/src/index.ts +2 -2
  150. package/src/packlets/crypto-utils/browserCryptoProvider.ts +311 -0
  151. package/src/packlets/{crypto → crypto-utils}/index.ts +1 -0
  152. package/src/packlets/file-api-types/index.ts +24 -3
  153. package/src/packlets/file-tree/directoryHandleStore.ts +136 -0
  154. package/src/packlets/file-tree/fileApiTreeAccessors.ts +90 -0
  155. package/src/packlets/file-tree/fileSystemAccessTreeAccessors.ts +427 -0
  156. package/src/packlets/file-tree/index.ts +3 -0
  157. package/src/packlets/file-tree/localStorageTreeAccessors.ts +377 -0
  158. package/src/test/mocks/idb-keyval.ts +5 -0
  159. package/src/test/unit/browserHashProvider.test.ts +1 -1
  160. package/src/test/unit/directoryHandleStore.test.ts +251 -0
  161. package/src/test/unit/fileApiTypes.test.ts +36 -0
  162. package/src/test/unit/fileSystemAccessTreeAccessors.test.ts +732 -0
  163. package/src/test/unit/localStorageTreeAccessors.test.ts +746 -0
  164. package/src/test/utils/fileSystemAccessMocks.ts +353 -0
  165. package/temp/build/typescript/ts_8nwakTlr.json +1 -0
  166. package/temp/coverage/crypto-utils/browserCryptoProvider.ts.html +1018 -0
  167. package/temp/coverage/{crypto → crypto-utils}/browserHashProvider.ts.html +3 -3
  168. package/temp/coverage/{lcov-report/crypto → crypto-utils}/index.html +21 -6
  169. package/temp/coverage/file-tree/directoryHandleStore.ts.html +493 -0
  170. package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +276 -6
  171. package/temp/coverage/file-tree/fileSystemAccessTreeAccessors.ts.html +1366 -0
  172. package/temp/coverage/file-tree/index.html +55 -10
  173. package/temp/coverage/file-tree/localStorageTreeAccessors.ts.html +1216 -0
  174. package/temp/coverage/helpers/fileTreeHelpers.ts.html +1 -1
  175. package/temp/coverage/helpers/index.html +1 -1
  176. package/temp/coverage/index.html +15 -15
  177. package/temp/coverage/lcov-report/crypto-utils/browserCryptoProvider.ts.html +1018 -0
  178. package/temp/coverage/lcov-report/{crypto → crypto-utils}/browserHashProvider.ts.html +3 -3
  179. package/temp/coverage/{crypto → lcov-report/crypto-utils}/index.html +21 -6
  180. package/temp/coverage/lcov-report/file-tree/directoryHandleStore.ts.html +493 -0
  181. package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +276 -6
  182. package/temp/coverage/lcov-report/file-tree/fileSystemAccessTreeAccessors.ts.html +1366 -0
  183. package/temp/coverage/lcov-report/file-tree/index.html +55 -10
  184. package/temp/coverage/lcov-report/file-tree/localStorageTreeAccessors.ts.html +1216 -0
  185. package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +1 -1
  186. package/temp/coverage/lcov-report/helpers/index.html +1 -1
  187. package/temp/coverage/lcov-report/index.html +15 -15
  188. package/temp/coverage/lcov-report/url-utils/index.html +1 -1
  189. package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +1 -1
  190. package/temp/coverage/lcov.info +2128 -451
  191. package/temp/coverage/url-utils/index.html +1 -1
  192. package/temp/coverage/url-utils/urlParams.ts.html +1 -1
  193. package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
  194. package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
  195. package/temp/ts-web-extras.api.json +3236 -385
  196. package/temp/ts-web-extras.api.md +91 -1
  197. package/dist/packlets/crypto/browserHashProvider.js.map +0 -1
  198. package/dist/packlets/crypto/index.js.map +0 -1
  199. package/lib/packlets/crypto/browserHashProvider.d.ts.map +0 -1
  200. package/lib/packlets/crypto/browserHashProvider.js.map +0 -1
  201. package/lib/packlets/crypto/index.d.ts.map +0 -1
  202. package/lib/packlets/crypto/index.js.map +0 -1
  203. package/temp/build/typescript/ts_vnCx6LlY.json +0 -1
  204. /package/dist/packlets/{crypto → crypto-utils}/browserHashProvider.js +0 -0
  205. /package/lib/packlets/{crypto → crypto-utils}/browserHashProvider.d.ts +0 -0
  206. /package/lib/packlets/{crypto → crypto-utils}/browserHashProvider.js +0 -0
  207. /package/src/packlets/{crypto → crypto-utils}/browserHashProvider.ts +0 -0
  208. /package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/{0e/package_0eb6535f5987849d93ea51ef33a14cf6 → 8d/package_8dcbedef69e4299f0f51fcda8f4f1c8e} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localStorageTreeAccessors.test.js","sourceRoot":"","sources":["../../../src/test/unit/localStorageTreeAccessors.test.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,8BAA4B;AAC5B,oDAA6C;AAC7C,wDAA2F;AAE3F;;GAEG;AACH,MAAM,WAAW;IAAjB;QACU,UAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IA0BjD,CAAC;IAxBC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,GAAW;;QACjB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,IAAI,CAAC;IACrC,CAAC;IAED,GAAG,CAAC,KAAa;;QACf,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,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;YACrC,SAAS,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;YACxF,SAAS,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;YAExF,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,UAAU,EAAE,CAAC;YAChD,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;YACrC,WAAW,CAAC,OAAO,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YAE3F,MAAM,SAAS,GAAG,qCAAyB,CAAC,WAAW,CAAC;gBACtD,YAAY,EAAE;oBACZ,mBAAmB,EAAE,qBAAqB;iBAC3C;gBACD,OAAO,EAAE,WAAW;gBACpB,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC,OAAO,EAAE,CAAC;YAEb,mEAAmE;YACnE,MAAM,UAAU,GAAG,SAAS,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACpG,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2026 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport '@fgv/ts-utils-jest';\nimport { FileTree } from '@fgv/ts-json-base';\nimport { LocalStorageTreeAccessors, FileApiTreeAccessors } from '../../packlets/file-tree';\n\n/**\n * Mock Storage implementation for testing\n */\nclass MockStorage implements Storage {\n private _data: Map<string, string> = new Map();\n\n get length(): number {\n return this._data.size;\n }\n\n clear(): void {\n this._data.clear();\n }\n\n getItem(key: string): string | null {\n return this._data.get(key) ?? null;\n }\n\n key(index: number): string | null {\n const keys = Array.from(this._data.keys());\n return keys[index] ?? null;\n }\n\n removeItem(key: string): void {\n this._data.delete(key);\n }\n\n setItem(key: string, value: string): void {\n this._data.set(key, value);\n }\n}\n\ndescribe('LocalStorageTreeAccessors', () => {\n let mockStorage: MockStorage;\n\n beforeEach(() => {\n mockStorage = new MockStorage();\n });\n\n describe('fromStorage', () => {\n test('creates accessors from empty storage', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n expect(accessors.isDirty()).toBe(false);\n });\n });\n\n test('loads collections from storage', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: { item1: {} } },\n collection2: { items: { item2: {} } }\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/collection1.json')).toSucceed();\n expect(accessors.getFileContents('/data/ingredients/collection2.json')).toSucceed();\n });\n });\n\n test('loads from multiple storage keys', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/ing1.json')).toSucceed();\n expect(accessors.getFileContents('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('skips corrupted JSON data', () => {\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('skips non-object JSON', () => {\n mockStorage.setItem('test:ingredients:v1', '\"string value\"');\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n\n test('loads string values (new format) with inferred extension', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n jsonCollection: '{\"items\":{}}',\n yamlCollection: 'metadata:\\n name: test\\nitems: {}'\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/jsonCollection.json')).toSucceedWith(\n '{\"items\":{}}'\n );\n expect(accessors.getFileContents('/data/ingredients/yamlCollection.yaml')).toSucceedWith(\n 'metadata:\\n name: test\\nitems: {}'\n );\n });\n });\n\n test('skips non-object non-string collection values', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n good: { items: {} },\n bad: 42\n })\n );\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/data/ingredients/good.json')).toSucceed();\n });\n });\n\n test('applies prefix parameter', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n prefix: '/myapp'\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors.getFileContents('/myapp/data/ingredients/collection1.json')).toSucceed();\n });\n });\n\n test('succeeds with empty storage when no data present', () => {\n const result = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((accessors) => {\n expect(accessors).toBeInstanceOf(LocalStorageTreeAccessors);\n });\n });\n });\n\n describe('dirty tracking', () => {\n test('starts with no dirty files', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('marks files as dirty after modification', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toContain('/data/ingredients/collection1.json');\n });\n\n test('tracks multiple dirty files', () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors\n .saveFileContents('/data/ingredients/collection2.json', JSON.stringify({ items: { b: 2 } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n expect(accessors.getDirtyPaths()).toHaveLength(2);\n });\n });\n\n describe('syncToDisk', () => {\n test('syncs modified files to storage', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({ collection1: { items: { original: true } } })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const newContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/collection1.json', newContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n expect(stored).toBeTruthy();\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(newContent);\n });\n\n test('clears dirty state after successful sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n expect(accessors.isDirty()).toBe(true);\n\n await accessors.syncToDisk();\n expect(accessors.isDirty()).toBe(false);\n expect(accessors.getDirtyPaths()).toEqual([]);\n });\n\n test('syncs multiple files to same storage key', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n collection1: { items: {} },\n collection2: { items: {} }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const content1 = JSON.stringify({ items: { a: 1 } });\n const content2 = JSON.stringify({ items: { b: 2 } });\n accessors.saveFileContents('/data/ingredients/collection1.json', content1).orThrow();\n accessors.saveFileContents('/data/ingredients/collection2.json', content2).orThrow();\n\n await accessors.syncToDisk();\n\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(content1);\n expect(parsed.collection2).toBe(content2);\n });\n\n test('syncs files to different storage keys', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/ing1.json', JSON.stringify({ items: { a: 1 } }))\n .orThrow();\n accessors.saveFileContents('/data/fillings/fill1.json', JSON.stringify({ items: { b: 2 } })).orThrow();\n\n await accessors.syncToDisk();\n\n const ingContent = JSON.stringify({ items: { a: 1 } });\n const fillContent = JSON.stringify({ items: { b: 2 } });\n const ingStored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n const fillStored = JSON.parse(mockStorage.getItem('test:fillings:v1')!);\n // New format: values are raw content strings\n expect(ingStored.ing1).toBe(ingContent);\n expect(fillStored.fill1).toBe(fillContent);\n });\n\n test('succeeds with no dirty files', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n }).orThrow();\n\n const result = await accessors.syncToDisk();\n expect(result).toSucceed();\n });\n\n test('preserves existing collections when syncing', async () => {\n mockStorage.setItem(\n 'test:ingredients:v1',\n JSON.stringify({\n existing: { items: { keep: true } },\n toModify: { items: { original: true } }\n })\n );\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n const modifiedContent = JSON.stringify({ items: { modified: true } });\n accessors.saveFileContents('/data/ingredients/toModify.json', modifiedContent).orThrow();\n await accessors.syncToDisk();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // existing was loaded from legacy format and not modified, so it stays as legacy object\n // toModify was saved with new content, so it's now a raw string\n expect(stored.toModify).toBe(modifiedContent);\n });\n });\n\n describe('autoSync mode', () => {\n test('automatically syncs on save when enabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { auto: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(false);\n const autoContent = JSON.stringify({ items: { auto: true } });\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n // New format: values are raw content strings\n expect(stored.collection1).toBe(autoContent);\n });\n\n test('does not auto-sync when disabled', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: false\n }).orThrow();\n\n accessors\n .saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ items: { manual: true } }))\n .orThrow();\n\n expect(accessors.isDirty()).toBe(true);\n // Storage should still have the original legacy format (not yet synced)\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored.collection1).toEqual({ items: {} });\n });\n });\n\n describe('fileIsMutable', () => {\n test('returns persistent detail when mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n expect(accessors.fileIsMutable('/data/ingredients/collection1.json')).toSucceedWithDetail(\n true,\n 'persistent'\n );\n });\n\n test('returns not-mutable when not mutable', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: false\n }).orThrow();\n\n const result = accessors.fileIsMutable('/data/ingredients/collection1.json');\n expect(result.isFailure()).toBe(true);\n if (result.isFailure()) {\n expect(result.detail).toBe('not-mutable');\n }\n });\n });\n\n describe('integration with FileApiTreeAccessors', () => {\n test('createFromLocalStorage creates FileTree with persistent accessors', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceed();\n\n const tree = result.orThrow();\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n expect(FileTree.isPersistentAccessors(tree.hal)).toBe(true);\n\n const file = tree.getFile('/data/ingredients/collection1.json').orThrow();\n expect(file.getIsMutable()).toSucceedWithDetail(true, 'persistent');\n });\n\n test('createFromLocalStorage with multiple paths', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ ing1: { items: {} } }));\n mockStorage.setItem('test:fillings:v1', JSON.stringify({ fill1: { items: {} } }));\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1',\n '/data/fillings': 'test:fillings:v1'\n },\n storage: mockStorage,\n mutable: true\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree.getFile('/data/ingredients/ing1.json')).toSucceed();\n expect(tree.getFile('/data/fillings/fill1.json')).toSucceed();\n });\n });\n\n test('createFromLocalStorage with empty storage', () => {\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage\n });\n\n expect(result).toSucceedAndSatisfy((tree) => {\n expect(tree).toBeInstanceOf(FileTree.FileTree);\n });\n });\n\n test('createFromLocalStorage fails when localStorage is not available', () => {\n // Remove the global window object to ensure no fallback\n const originalWindow = (global as any).window;\n delete (global as any).window;\n\n const result = FileApiTreeAccessors.createFromLocalStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: undefined\n });\n\n // Restore window\n (global as any).window = originalWindow;\n\n expect(result).toFailWith(/localStorage is not available/i);\n });\n });\n\n describe('path matching and error handling', () => {\n test('handles files outside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Try to save a file outside the configured path\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toSucceed();\n\n // But syncing should fail because no storage key is configured\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/No storage key configured for path/i);\n });\n\n test('handles files inside configured paths', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Save a file inside the configured path\n accessors.saveFileContents('/data/ingredients/newfile.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Syncing should succeed\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n });\n\n test('handles failed content retrieval during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Override getFileContents to fail\n const originalGetFileContents = accessors.getFileContents.bind(accessors);\n accessors.getFileContents = jest.fn((path: string) => {\n if (path === '/data/ingredients/collection1.json') {\n return { isSuccess: () => false, isFailure: () => true, message: 'File not found' } as any;\n }\n return originalGetFileContents(path);\n });\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to get file contents.*File not found/i);\n });\n\n test('handles corrupted JSON in localStorage during sync', async () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Modify a file\n accessors.saveFileContents('/data/ingredients/collection1.json', JSON.stringify({ test: 1 })).orThrow();\n\n // Corrupt the existing storage data\n mockStorage.setItem('test:ingredients:v1', 'not valid json');\n\n // Sync should still succeed by starting fresh\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n // Verify the data was written correctly despite corrupted previous data\n const stored = mockStorage.getItem('test:ingredients:v1');\n const parsed = JSON.parse(stored!);\n // New format: values are raw content strings\n expect(parsed.collection1).toBe(JSON.stringify({ test: 1 }));\n });\n\n test('syncs non-JSON content (YAML) without error', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Create and save a YAML file\n const yamlContent = 'metadata:\\n name: test\\nitems: {}';\n accessors.saveFileContents('/data/ingredients/my-collection.yaml', yamlContent).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toSucceed();\n\n const stored = JSON.parse(mockStorage.getItem('test:ingredients:v1')!);\n expect(stored['my-collection']).toBe(yamlContent);\n });\n\n test('handles multiple sync failures with aggregated errors', async () => {\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true\n }).orThrow();\n\n // Add files outside configured paths\n accessors.saveFileContents('/other1/file1.json', JSON.stringify({ test: 1 })).orThrow();\n accessors.saveFileContents('/other2/file2.json', JSON.stringify({ test: 2 })).orThrow();\n\n const syncResult = await accessors.syncToDisk();\n expect(syncResult).toFailWith(/Failed to sync 2 file\\(s\\)/i);\n });\n\n test('handles auto-sync failure', () => {\n mockStorage.setItem('test:ingredients:v1', JSON.stringify({ collection1: { items: {} } }));\n\n const accessors = LocalStorageTreeAccessors.fromStorage({\n pathToKeyMap: {\n '/data/ingredients': 'test:ingredients:v1'\n },\n storage: mockStorage,\n mutable: true,\n autoSync: true\n }).orThrow();\n\n // Try to save a file outside configured path with autoSync enabled\n const saveResult = accessors.saveFileContents('/other/path/file.json', JSON.stringify({ test: 1 }));\n expect(saveResult).toFailWith(/No storage key configured for path/i);\n });\n });\n});\n"]}
@@ -0,0 +1,53 @@
1
+ import { FileSystemDirectoryHandle, FileSystemFileHandle } from '../../packlets/file-api-types';
2
+ /**
3
+ * Mock file data for File System Access API
4
+ */
5
+ export interface MockFileData {
6
+ content: string;
7
+ type: string;
8
+ failOnRead?: boolean;
9
+ failOnWrite?: boolean;
10
+ }
11
+ /**
12
+ * Options for mock directory handle
13
+ */
14
+ export interface MockDirectoryOptions {
15
+ hasWritePermission?: boolean;
16
+ permissionError?: boolean;
17
+ permissionStatus?: PermissionState;
18
+ requestGranted?: boolean;
19
+ }
20
+ /**
21
+ * Mock implementation of FileSystemWritableFileStream
22
+ */
23
+ export declare class MockFileSystemWritableFileStream {
24
+ private _content;
25
+ private _closed;
26
+ private readonly _onWrite;
27
+ private readonly _failOnWrite;
28
+ constructor(onWrite: (content: string) => void, failOnWrite?: boolean);
29
+ get locked(): boolean;
30
+ write(data: string | BufferSource | Blob): Promise<void>;
31
+ seek(position: number): Promise<void>;
32
+ truncate(size: number): Promise<void>;
33
+ close(): Promise<void>;
34
+ abort(): Promise<void>;
35
+ getWriter(): WritableStreamDefaultWriter;
36
+ }
37
+ /**
38
+ * Options for mock file handle
39
+ */
40
+ export interface MockFileHandleOptions {
41
+ hasWritePermission?: boolean;
42
+ permissionStatus?: PermissionState;
43
+ requestGranted?: boolean;
44
+ }
45
+ /**
46
+ * Mock implementation of FileSystemFileHandle
47
+ */
48
+ export declare function createMockFileHandle(name: string, data: MockFileData, onWrite?: (content: string) => void, options?: MockFileHandleOptions): FileSystemFileHandle;
49
+ /**
50
+ * Mock implementation of FileSystemDirectoryHandle
51
+ */
52
+ export declare function createMockDirectoryHandle(name: string, files: Record<string, MockFileData>, options?: MockDirectoryOptions): FileSystemDirectoryHandle;
53
+ //# sourceMappingURL=fileSystemAccessMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystemAccessMocks.d.ts","sourceRoot":"","sources":["../../../src/test/utils/fileSystemAccessMocks.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGhG;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAU;gBAE3B,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAAE,WAAW,GAAE,OAAe;IAK5E,IAAI,MAAM,IAAI,OAAO,CAEpB;IAEK,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBxD,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,SAAS,IAAI,2BAA2B;CAGzC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACnC,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CAsDtB;AA6BD;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,EACnC,OAAO,GAAE,oBAAyB,GACjC,yBAAyB,CA4I3B"}
@@ -0,0 +1,277 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2026 Erik Fortune
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ * of this software and associated documentation files (the "Software"), to deal
7
+ * in the Software without restriction, including without limitation the rights
8
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ * copies of the Software, and to permit persons to whom the Software is
10
+ * furnished to do so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in all
13
+ * copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ * SOFTWARE.
22
+ */
23
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
24
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
25
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
26
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
27
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
28
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
29
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
30
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
31
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
32
+ function fulfill(value) { resume("next", value); }
33
+ function reject(value) { resume("throw", value); }
34
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.MockFileSystemWritableFileStream = void 0;
38
+ exports.createMockFileHandle = createMockFileHandle;
39
+ exports.createMockDirectoryHandle = createMockDirectoryHandle;
40
+ const testHelpers_1 = require("./testHelpers");
41
+ /**
42
+ * Mock implementation of FileSystemWritableFileStream
43
+ */
44
+ class MockFileSystemWritableFileStream {
45
+ constructor(onWrite, failOnWrite = false) {
46
+ this._content = '';
47
+ this._closed = false;
48
+ this._onWrite = onWrite;
49
+ this._failOnWrite = failOnWrite;
50
+ }
51
+ get locked() {
52
+ return false;
53
+ }
54
+ async write(data) {
55
+ if (this._closed) {
56
+ throw new Error('Stream is closed');
57
+ }
58
+ if (this._failOnWrite) {
59
+ throw new Error('Write operation failed');
60
+ }
61
+ if (typeof data === 'string') {
62
+ this._content = data;
63
+ }
64
+ else if (data instanceof Blob) {
65
+ this._content = await data.text();
66
+ }
67
+ else {
68
+ const decoder = new TextDecoder();
69
+ this._content = decoder.decode(data);
70
+ }
71
+ }
72
+ async seek(position) {
73
+ // Mock implementation - not used in our tests
74
+ }
75
+ async truncate(size) {
76
+ // Mock implementation - not used in our tests
77
+ }
78
+ async close() {
79
+ if (!this._closed) {
80
+ this._closed = true;
81
+ this._onWrite(this._content);
82
+ }
83
+ }
84
+ async abort() {
85
+ this._closed = true;
86
+ }
87
+ getWriter() {
88
+ throw new Error('getWriter not implemented in mock');
89
+ }
90
+ }
91
+ exports.MockFileSystemWritableFileStream = MockFileSystemWritableFileStream;
92
+ /**
93
+ * Mock implementation of FileSystemFileHandle
94
+ */
95
+ function createMockFileHandle(name, data, onWrite, options = {}) {
96
+ let currentContent = data.content;
97
+ const { hasWritePermission = true, permissionStatus, requestGranted = true } = options;
98
+ const handle = {
99
+ kind: 'file',
100
+ name,
101
+ async getFile() {
102
+ if (data.failOnRead) {
103
+ throw new Error('Failed to read file');
104
+ }
105
+ return (0, testHelpers_1.createMockFile)({
106
+ name,
107
+ content: currentContent,
108
+ type: data.type
109
+ });
110
+ },
111
+ async createWritable() {
112
+ return new MockFileSystemWritableFileStream((content) => {
113
+ currentContent = content;
114
+ if (onWrite) {
115
+ onWrite(content);
116
+ }
117
+ }, data.failOnWrite);
118
+ },
119
+ async queryPermission(descriptor) {
120
+ if (permissionStatus) {
121
+ return permissionStatus;
122
+ }
123
+ if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.mode) === 'readwrite' && !hasWritePermission) {
124
+ return 'denied';
125
+ }
126
+ return 'granted';
127
+ },
128
+ async requestPermission(descriptor) {
129
+ if (permissionStatus === 'prompt') {
130
+ return requestGranted ? 'granted' : 'denied';
131
+ }
132
+ if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.mode) === 'readwrite' && !hasWritePermission) {
133
+ return 'denied';
134
+ }
135
+ return 'granted';
136
+ },
137
+ isSameEntry: async (other) => {
138
+ return other === handle;
139
+ }
140
+ };
141
+ return handle;
142
+ }
143
+ /**
144
+ * Parse file structure into nested map
145
+ */
146
+ function parseFileStructure(files) {
147
+ const root = new Map();
148
+ for (const [path, data] of Object.entries(files)) {
149
+ const parts = path.split('/').filter((p) => p.length > 0);
150
+ let current = root;
151
+ for (let i = 0; i < parts.length - 1; i++) {
152
+ const part = parts[i];
153
+ if (!current.has(part)) {
154
+ current.set(part, new Map());
155
+ }
156
+ current = current.get(part);
157
+ }
158
+ const filename = parts[parts.length - 1];
159
+ current.set(filename, data);
160
+ }
161
+ return root;
162
+ }
163
+ /**
164
+ * Mock implementation of FileSystemDirectoryHandle
165
+ */
166
+ function createMockDirectoryHandle(name, files, options = {}) {
167
+ const { hasWritePermission = true, permissionError = false, permissionStatus, requestGranted = true } = options;
168
+ const structure = parseFileStructure(files);
169
+ const fileHandles = new Map();
170
+ const dirHandles = new Map();
171
+ // Create file handles for all files
172
+ for (const [path, data] of Object.entries(files)) {
173
+ const handle = createMockFileHandle(path.split('/').pop() || '', data, (content) => {
174
+ // Update the file content when written
175
+ files[path] = Object.assign(Object.assign({}, data), { content });
176
+ });
177
+ fileHandles.set(path, handle);
178
+ }
179
+ function createSubDirectoryHandle(dirName, subStructure, parentPath) {
180
+ // For root directory, currentPath should be empty string
181
+ const currentPath = dirName === '/' ? '' : parentPath ? `${parentPath}/${dirName}` : dirName;
182
+ const handle = {
183
+ kind: 'directory',
184
+ name: dirName,
185
+ entries() {
186
+ return __asyncGenerator(this, arguments, function* entries_1() {
187
+ for (const [itemName, item] of subStructure.entries()) {
188
+ if (item instanceof Map) {
189
+ const subDirHandle = createSubDirectoryHandle(itemName, item, currentPath);
190
+ yield yield __await([itemName, subDirHandle]);
191
+ }
192
+ else {
193
+ const filePath = currentPath ? `${currentPath}/${itemName}` : itemName;
194
+ const fileHandle = fileHandles.get(filePath);
195
+ if (fileHandle) {
196
+ yield yield __await([itemName, fileHandle]);
197
+ }
198
+ }
199
+ }
200
+ });
201
+ },
202
+ async getFileHandle(fileName, options) {
203
+ const filePath = currentPath ? `${currentPath}/${fileName}` : fileName;
204
+ let handle = fileHandles.get(filePath);
205
+ if (!handle && (options === null || options === void 0 ? void 0 : options.create)) {
206
+ const newData = { content: '', type: 'text/plain' };
207
+ files[filePath] = newData;
208
+ handle = createMockFileHandle(fileName, newData, (content) => {
209
+ files[filePath] = Object.assign(Object.assign({}, newData), { content });
210
+ });
211
+ fileHandles.set(filePath, handle);
212
+ // Add to structure
213
+ subStructure.set(fileName, newData);
214
+ }
215
+ if (!handle) {
216
+ throw new Error(`File not found: ${fileName}`);
217
+ }
218
+ return handle;
219
+ },
220
+ async getDirectoryHandle(dirName, options) {
221
+ const dirPath = currentPath ? `${currentPath}/${dirName}` : dirName;
222
+ let dirHandle = dirHandles.get(dirPath);
223
+ if (!dirHandle) {
224
+ let subDir = subStructure.get(dirName);
225
+ if (!subDir && (options === null || options === void 0 ? void 0 : options.create)) {
226
+ subDir = new Map();
227
+ subStructure.set(dirName, subDir);
228
+ }
229
+ if (subDir instanceof Map) {
230
+ dirHandle = createSubDirectoryHandle(dirName, subDir, currentPath);
231
+ dirHandles.set(dirPath, dirHandle);
232
+ }
233
+ }
234
+ if (!dirHandle) {
235
+ throw new Error(`Directory not found: ${dirName}`);
236
+ }
237
+ return dirHandle;
238
+ },
239
+ async removeEntry(name, options) {
240
+ subStructure.delete(name);
241
+ },
242
+ async queryPermission(descriptor) {
243
+ if (permissionError) {
244
+ throw new Error('Permission query failed');
245
+ }
246
+ if (permissionStatus) {
247
+ return permissionStatus;
248
+ }
249
+ if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.mode) === 'readwrite' && !hasWritePermission) {
250
+ return 'denied';
251
+ }
252
+ return 'granted';
253
+ },
254
+ async requestPermission(descriptor) {
255
+ if (permissionError) {
256
+ throw new Error('Permission request failed');
257
+ }
258
+ if (permissionStatus === 'prompt') {
259
+ return requestGranted ? 'granted' : 'denied';
260
+ }
261
+ if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.mode) === 'readwrite' && !hasWritePermission) {
262
+ return 'denied';
263
+ }
264
+ return 'granted';
265
+ },
266
+ async resolve(possibleDescendant) {
267
+ return null;
268
+ },
269
+ isSameEntry: async (other) => {
270
+ return other === handle;
271
+ }
272
+ };
273
+ return handle;
274
+ }
275
+ return createSubDirectoryHandle(name, structure, '');
276
+ }
277
+ //# sourceMappingURL=fileSystemAccessMocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystemAccessMocks.js","sourceRoot":"","sources":["../../../src/test/utils/fileSystemAccessMocks.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;AAiGH,oDA2DC;AAgCD,8DAgJC;AAzUD,+CAA+C;AAsB/C;;GAEG;AACH,MAAa,gCAAgC;IAM3C,YAAY,OAAkC,EAAE,cAAuB,KAAK;QALpE,aAAQ,GAAW,EAAE,CAAC;QACtB,YAAO,GAAY,KAAK,CAAC;QAK/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAkC;QAC5C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,MAAM,I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BACpB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;gBAC7C,CAAC;gBACD,IAAI,gBAAgB,EAAE,CAAC;oBACrB,OAAO,gBAAgB,CAAC;gBAC1B,CAAC;gBACD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,MAAK,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAC5D,OAAO,QAAQ,CAAC;gBAClB,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,KAAK,CAAC,iBAAiB,CAAC,UAA4C;gBAClE,IAAI,eAAe,EAAE,CAAC;oBACpB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;gBAC/C,CAAC;gBACD,IAAI,gBAAgB,KAAK,QAAQ,EAAE,CAAC;oBAClC,OAAO,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAC/C,CAAC;gBACD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,MAAK,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAC5D,OAAO,QAAQ,CAAC;gBAClB,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,KAAK,CAAC,OAAO,CAAC,kBAAoC;gBAChD,OAAO,IAAI,CAAC;YACd,CAAC;YAED,WAAW,EAAE,KAAK,EAAE,KAAgC,EAAoB,EAAE;gBACxE,OAAO,KAAK,KAAK,MAAM,CAAC;YAC1B,CAAC;SACF,CAAC;QAEF,OAAO,MAAmC,CAAC;IAC7C,CAAC;IAED,OAAO,wBAAwB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;AACvD,CAAC","sourcesContent":["/*\n * Copyright (c) 2026 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { FileSystemDirectoryHandle, FileSystemFileHandle } from '../../packlets/file-api-types';\nimport { createMockFile } from './testHelpers';\n\n/**\n * Mock file data for File System Access API\n */\nexport interface MockFileData {\n content: string;\n type: string;\n failOnRead?: boolean;\n failOnWrite?: boolean;\n}\n\n/**\n * Options for mock directory handle\n */\nexport interface MockDirectoryOptions {\n hasWritePermission?: boolean;\n permissionError?: boolean;\n permissionStatus?: PermissionState;\n requestGranted?: boolean;\n}\n\n/**\n * Mock implementation of FileSystemWritableFileStream\n */\nexport class MockFileSystemWritableFileStream {\n private _content: string = '';\n private _closed: boolean = false;\n private readonly _onWrite: (content: string) => void;\n private readonly _failOnWrite: boolean;\n\n constructor(onWrite: (content: string) => void, failOnWrite: boolean = false) {\n this._onWrite = onWrite;\n this._failOnWrite = failOnWrite;\n }\n\n get locked(): boolean {\n return false;\n }\n\n async write(data: string | BufferSource | Blob): Promise<void> {\n if (this._closed) {\n throw new Error('Stream is closed');\n }\n if (this._failOnWrite) {\n throw new Error('Write operation failed');\n }\n\n if (typeof data === 'string') {\n this._content = data;\n } else if (data instanceof Blob) {\n this._content = await data.text();\n } else {\n const decoder = new TextDecoder();\n this._content = decoder.decode(data as BufferSource);\n }\n }\n\n async seek(position: number): Promise<void> {\n // Mock implementation - not used in our tests\n }\n\n async truncate(size: number): Promise<void> {\n // Mock implementation - not used in our tests\n }\n\n async close(): Promise<void> {\n if (!this._closed) {\n this._closed = true;\n this._onWrite(this._content);\n }\n }\n\n async abort(): Promise<void> {\n this._closed = true;\n }\n\n getWriter(): WritableStreamDefaultWriter {\n throw new Error('getWriter not implemented in mock');\n }\n}\n\n/**\n * Options for mock file handle\n */\nexport interface MockFileHandleOptions {\n hasWritePermission?: boolean;\n permissionStatus?: PermissionState;\n requestGranted?: boolean;\n}\n\n/**\n * Mock implementation of FileSystemFileHandle\n */\nexport function createMockFileHandle(\n name: string,\n data: MockFileData,\n onWrite?: (content: string) => void,\n options: MockFileHandleOptions = {}\n): FileSystemFileHandle {\n let currentContent = data.content;\n const { hasWritePermission = true, permissionStatus, requestGranted = true } = options;\n\n const handle = {\n kind: 'file' as const,\n name,\n\n async getFile(): Promise<File> {\n if (data.failOnRead) {\n throw new Error('Failed to read file');\n }\n return createMockFile({\n name,\n content: currentContent,\n type: data.type\n });\n },\n\n async createWritable(): Promise<MockFileSystemWritableFileStream> {\n return new MockFileSystemWritableFileStream((content) => {\n currentContent = content;\n if (onWrite) {\n onWrite(content);\n }\n }, data.failOnWrite);\n },\n\n async queryPermission(descriptor?: { mode?: 'read' | 'readwrite' }): Promise<PermissionState> {\n if (permissionStatus) {\n return permissionStatus;\n }\n if (descriptor?.mode === 'readwrite' && !hasWritePermission) {\n return 'denied';\n }\n return 'granted';\n },\n\n async requestPermission(descriptor?: { mode?: 'read' | 'readwrite' }): Promise<PermissionState> {\n if (permissionStatus === 'prompt') {\n return requestGranted ? 'granted' : 'denied';\n }\n if (descriptor?.mode === 'readwrite' && !hasWritePermission) {\n return 'denied';\n }\n return 'granted';\n },\n\n isSameEntry: async (other: FileSystemFileHandle): Promise<boolean> => {\n return other === handle;\n }\n };\n\n return handle as FileSystemFileHandle;\n}\n\n/**\n * Parse file structure into nested map\n */\nfunction parseFileStructure(\n files: Record<string, MockFileData>\n): Map<string, Map<string, MockFileData> | MockFileData> {\n const root = new Map<string, Map<string, MockFileData> | MockFileData>();\n\n for (const [path, data] of Object.entries(files)) {\n const parts = path.split('/').filter((p) => p.length > 0);\n let current = root;\n\n for (let i = 0; i < parts.length - 1; i++) {\n const part = parts[i];\n if (!current.has(part)) {\n current.set(part, new Map<string, MockFileData>());\n }\n current = current.get(part) as Map<string, MockFileData>;\n }\n\n const filename = parts[parts.length - 1];\n current.set(filename, data);\n }\n\n return root;\n}\n\n/**\n * Mock implementation of FileSystemDirectoryHandle\n */\nexport function createMockDirectoryHandle(\n name: string,\n files: Record<string, MockFileData>,\n options: MockDirectoryOptions = {}\n): FileSystemDirectoryHandle {\n const {\n hasWritePermission = true,\n permissionError = false,\n permissionStatus,\n requestGranted = true\n } = options;\n const structure = parseFileStructure(files);\n const fileHandles = new Map<string, FileSystemFileHandle>();\n const dirHandles = new Map<string, FileSystemDirectoryHandle>();\n\n // Create file handles for all files\n for (const [path, data] of Object.entries(files)) {\n const handle = createMockFileHandle(path.split('/').pop() || '', data, (content) => {\n // Update the file content when written\n files[path] = { ...data, content };\n });\n fileHandles.set(path, handle);\n }\n\n function createSubDirectoryHandle(\n dirName: string,\n subStructure: Map<string, Map<string, MockFileData> | MockFileData>,\n parentPath: string\n ): FileSystemDirectoryHandle {\n // For root directory, currentPath should be empty string\n const currentPath = dirName === '/' ? '' : parentPath ? `${parentPath}/${dirName}` : dirName;\n\n const handle = {\n kind: 'directory' as const,\n name: dirName,\n\n async *entries(): AsyncIterableIterator<[string, FileSystemFileHandle | FileSystemDirectoryHandle]> {\n for (const [itemName, item] of subStructure.entries()) {\n if (item instanceof Map) {\n const subDirHandle = createSubDirectoryHandle(itemName, item, currentPath);\n yield [itemName, subDirHandle];\n } else {\n const filePath = currentPath ? `${currentPath}/${itemName}` : itemName;\n const fileHandle = fileHandles.get(filePath);\n if (fileHandle) {\n yield [itemName, fileHandle];\n }\n }\n }\n },\n\n async getFileHandle(fileName: string, options?: { create?: boolean }): Promise<FileSystemFileHandle> {\n const filePath = currentPath ? `${currentPath}/${fileName}` : fileName;\n let handle = fileHandles.get(filePath);\n\n if (!handle && options?.create) {\n const newData: MockFileData = { content: '', type: 'text/plain' };\n files[filePath] = newData;\n handle = createMockFileHandle(fileName, newData, (content) => {\n files[filePath] = { ...newData, content };\n });\n fileHandles.set(filePath, handle);\n\n // Add to structure\n subStructure.set(fileName, newData);\n }\n\n if (!handle) {\n throw new Error(`File not found: ${fileName}`);\n }\n\n return handle;\n },\n\n async getDirectoryHandle(\n dirName: string,\n options?: { create?: boolean }\n ): Promise<FileSystemDirectoryHandle> {\n const dirPath = currentPath ? `${currentPath}/${dirName}` : dirName;\n let dirHandle = dirHandles.get(dirPath);\n\n if (!dirHandle) {\n let subDir = subStructure.get(dirName);\n if (!subDir && options?.create) {\n subDir = new Map<string, MockFileData>();\n subStructure.set(dirName, subDir);\n }\n\n if (subDir instanceof Map) {\n dirHandle = createSubDirectoryHandle(dirName, subDir, currentPath);\n dirHandles.set(dirPath, dirHandle);\n }\n }\n\n if (!dirHandle) {\n throw new Error(`Directory not found: ${dirName}`);\n }\n\n return dirHandle;\n },\n\n async removeEntry(name: string, options?: { recursive?: boolean }): Promise<void> {\n subStructure.delete(name);\n },\n\n async queryPermission(descriptor?: { mode?: 'read' | 'readwrite' }): Promise<PermissionState> {\n if (permissionError) {\n throw new Error('Permission query failed');\n }\n if (permissionStatus) {\n return permissionStatus;\n }\n if (descriptor?.mode === 'readwrite' && !hasWritePermission) {\n return 'denied';\n }\n return 'granted';\n },\n\n async requestPermission(descriptor?: { mode?: 'read' | 'readwrite' }): Promise<PermissionState> {\n if (permissionError) {\n throw new Error('Permission request failed');\n }\n if (permissionStatus === 'prompt') {\n return requestGranted ? 'granted' : 'denied';\n }\n if (descriptor?.mode === 'readwrite' && !hasWritePermission) {\n return 'denied';\n }\n return 'granted';\n },\n\n async resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null> {\n return null;\n },\n\n isSameEntry: async (other: FileSystemDirectoryHandle): Promise<boolean> => {\n return other === handle;\n }\n };\n\n return handle as FileSystemDirectoryHandle;\n }\n\n return createSubDirectoryHandle(name, structure, '');\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-web-extras",
3
- "version": "5.0.2",
3
+ "version": "5.1.0-0",
4
4
  "description": "Browser-compatible utilities and FileTree implementations",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-web-extras.d.ts",
@@ -19,41 +19,45 @@
19
19
  },
20
20
  "homepage": "https://github.com/ErikFortune/fgv/tree/main/libraries/ts-web-extras#readme",
21
21
  "devDependencies": {
22
- "@microsoft/api-documenter": "^7.27.3",
23
- "@microsoft/api-extractor": "^7.53.3",
22
+ "@microsoft/api-documenter": "^7.28.2",
23
+ "@microsoft/api-extractor": "^7.55.2",
24
24
  "@types/jest": "^29.5.14",
25
25
  "@types/node": "^20.14.9",
26
- "@typescript-eslint/eslint-plugin": "^8.46.2",
27
- "@typescript-eslint/parser": "^8.46.2",
28
- "eslint": "^9.39.0",
26
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
27
+ "@typescript-eslint/parser": "^8.52.0",
28
+ "eslint": "^9.39.2",
29
29
  "eslint-plugin-import": "^2.32.0",
30
30
  "eslint-plugin-node": "^11.1.0",
31
31
  "eslint-plugin-promise": "^7.2.1",
32
32
  "jest": "^29.7.0",
33
33
  "jest-extended": "^4.0.2",
34
- "rimraf": "^6.1.0",
35
- "ts-jest": "^29.4.5",
34
+ "rimraf": "^6.1.2",
35
+ "ts-jest": "^29.4.6",
36
36
  "ts-node": "^10.9.2",
37
37
  "typescript": "5.9.3",
38
38
  "eslint-plugin-n": "^17.23.1",
39
- "@rushstack/eslint-config": "4.5.3",
40
- "@rushstack/heft": "1.1.3",
41
- "@rushstack/heft-jest-plugin": "1.1.3",
42
- "@rushstack/heft-node-rig": "2.11.4",
39
+ "@rushstack/eslint-config": "4.6.4",
40
+ "@rushstack/heft": "1.2.6",
41
+ "@rushstack/heft-jest-plugin": "1.2.6",
42
+ "@rushstack/heft-node-rig": "2.11.26",
43
43
  "@types/heft-jest": "1.0.6",
44
- "eslint-plugin-tsdoc": "~0.4.0",
44
+ "eslint-plugin-tsdoc": "~0.5.2",
45
45
  "@rushstack/eslint-patch": "1.14.1",
46
- "@types/react": "~19.2.2",
46
+ "@types/react": "~19.2.8",
47
+ "typedoc": "~0.28.16",
48
+ "typedoc-plugin-markdown": "~4.9.0",
47
49
  "@fgv/heft-dual-rig": "0.1.0",
48
- "@fgv/ts-utils": "5.0.2",
49
- "@fgv/ts-json-base": "5.0.2",
50
- "@fgv/ts-utils-jest": "5.0.2"
50
+ "@fgv/ts-json-base": "5.1.0-0",
51
+ "@fgv/ts-extras": "5.1.0-0",
52
+ "@fgv/ts-utils": "5.1.0-0",
53
+ "@fgv/ts-utils-jest": "5.1.0-0"
51
54
  },
52
55
  "peerDependencies": {
53
56
  "react": ">=18 <20",
54
57
  "react-dom": ">=18 <20",
55
- "@fgv/ts-json-base": "5.0.2",
56
- "@fgv/ts-utils": "5.0.2"
58
+ "@fgv/ts-utils": "5.1.0-0",
59
+ "@fgv/ts-extras": "5.1.0-0",
60
+ "@fgv/ts-json-base": "5.1.0-0"
57
61
  },
58
62
  "exports": {
59
63
  ".": {
@@ -72,11 +76,14 @@
72
76
  "type": "git",
73
77
  "url": "https://github.com/ErikFortune/fgv.git"
74
78
  },
79
+ "dependencies": {
80
+ "idb-keyval": "^6.2.2"
81
+ },
75
82
  "scripts": {
76
83
  "build": "heft test --clean",
77
84
  "clean": "heft clean",
78
85
  "test": "heft test --clean",
79
- "build-docs": "api-documenter markdown --input-folder ./temp --output-folder docs",
86
+ "build-docs": "typedoc --options ./config/typedoc.json",
80
87
  "build-all": "rushx build; rushx build-docs",
81
88
  "test-handles": "jest --runInBand --detectOpenHandles",
82
89
  "clean-jest": "jest --clear-cache",
@@ -1 +1,3 @@
1
- Project does not have a rush-project.json configuration file, or one provided by a rig, so it does not support caching.
1
+ Caching build output folders: dist, lib, temp, .rush/temp/operation/build
2
+ Successfully set cache entry.
3
+ Cache key: 81e0881271ff236956b2f52e8ca99da6574c6e1e