@dxos/plugin-wnfs 0.8.3-staging.0fa589b → 0.8.4-main.1068cf700f

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 (139) hide show
  1. package/dist/lib/browser/FileContainer-FUAINNAS.mjs +91 -0
  2. package/dist/lib/browser/FileContainer-FUAINNAS.mjs.map +7 -0
  3. package/dist/lib/browser/{blockstore-UT7233RJ.mjs → blockstore-U42RF6KA.mjs} +20 -20
  4. package/dist/lib/browser/blockstore-U42RF6KA.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-YYAW4U6J.mjs → chunk-NCTUASHL.mjs} +23 -15
  6. package/dist/lib/browser/chunk-NCTUASHL.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-PCYQNMXS.mjs +155 -0
  8. package/dist/lib/browser/chunk-PCYQNMXS.mjs.map +7 -0
  9. package/dist/lib/browser/file-uploader-VBBUS2GG.mjs +35 -0
  10. package/dist/lib/browser/file-uploader-VBBUS2GG.mjs.map +7 -0
  11. package/dist/lib/browser/index.mjs +92 -91
  12. package/dist/lib/browser/index.mjs.map +4 -4
  13. package/dist/lib/browser/{markdown-BWBHUHHH.mjs → markdown-ZLOS5HZU.mjs} +32 -27
  14. package/dist/lib/browser/markdown-ZLOS5HZU.mjs.map +7 -0
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/operation-resolver-7TLMWGST.mjs +99 -0
  17. package/dist/lib/browser/operation-resolver-7TLMWGST.mjs.map +7 -0
  18. package/dist/lib/browser/react-surface-YTIVVF2C.mjs +82 -0
  19. package/dist/lib/browser/react-surface-YTIVVF2C.mjs.map +7 -0
  20. package/dist/lib/browser/types/index.mjs +9 -6
  21. package/dist/types/src/WnfsPlugin.d.ts +2 -1
  22. package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/blockstore/blockstore.d.ts +5 -0
  24. package/dist/types/src/capabilities/blockstore/blockstore.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/blockstore/index.d.ts +3 -0
  26. package/dist/types/src/capabilities/blockstore/index.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/file-uploader/file-uploader.d.ts +6 -0
  28. package/dist/types/src/capabilities/file-uploader/file-uploader.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/file-uploader/index.d.ts +3 -0
  30. package/dist/types/src/capabilities/file-uploader/index.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/index.d.ts +5 -6
  32. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  33. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  34. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  35. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  36. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  38. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  40. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  42. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  43. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  44. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  45. package/dist/types/src/components/FileContainer.d.ts +4 -5
  46. package/dist/types/src/components/FileContainer.d.ts.map +1 -1
  47. package/dist/types/src/components/FileInput.d.ts +1 -1
  48. package/dist/types/src/components/FileInput.d.ts.map +1 -1
  49. package/dist/types/src/components/index.d.ts +1 -4
  50. package/dist/types/src/components/index.d.ts.map +1 -1
  51. package/dist/types/src/extensions/image.d.ts +1 -1
  52. package/dist/types/src/extensions/image.d.ts.map +1 -1
  53. package/dist/types/src/extensions/image.stories.d.ts +5 -4
  54. package/dist/types/src/extensions/image.stories.d.ts.map +1 -1
  55. package/dist/types/src/helpers/load.d.ts +2 -2
  56. package/dist/types/src/helpers/load.d.ts.map +1 -1
  57. package/dist/types/src/helpers/upload.d.ts +1 -1
  58. package/dist/types/src/helpers/upload.d.ts.map +1 -1
  59. package/dist/types/src/index.d.ts +1 -1
  60. package/dist/types/src/index.d.ts.map +1 -1
  61. package/dist/types/src/meta.d.ts +2 -3
  62. package/dist/types/src/meta.d.ts.map +1 -1
  63. package/dist/types/src/translations.d.ts +17 -12
  64. package/dist/types/src/translations.d.ts.map +1 -1
  65. package/dist/types/src/types/File.d.ts +16 -0
  66. package/dist/types/src/types/File.d.ts.map +1 -0
  67. package/dist/types/src/{capabilities → types}/capabilities.d.ts +3 -2
  68. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  69. package/dist/types/src/types/index.d.ts +2 -1
  70. package/dist/types/src/types/index.d.ts.map +1 -1
  71. package/dist/types/src/types/types.d.ts +108 -47
  72. package/dist/types/src/types/types.d.ts.map +1 -1
  73. package/dist/types/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +48 -42
  75. package/src/WnfsPlugin.tsx +64 -81
  76. package/src/blockstore.ts +2 -2
  77. package/src/capabilities/blockstore/blockstore.ts +22 -0
  78. package/src/capabilities/blockstore/index.ts +7 -0
  79. package/src/capabilities/file-uploader/file-uploader.ts +34 -0
  80. package/src/capabilities/file-uploader/index.ts +7 -0
  81. package/src/capabilities/index.ts +5 -9
  82. package/src/capabilities/markdown/index.ts +7 -0
  83. package/src/capabilities/markdown/markdown.ts +33 -0
  84. package/src/capabilities/operation-resolver/index.ts +7 -0
  85. package/src/capabilities/operation-resolver/operation-resolver.ts +62 -0
  86. package/src/capabilities/react-surface/index.ts +7 -0
  87. package/src/capabilities/react-surface/react-surface.tsx +50 -0
  88. package/src/components/FileContainer.tsx +30 -19
  89. package/src/components/FileInput.tsx +5 -5
  90. package/src/components/FilePreview.tsx +4 -4
  91. package/src/extensions/image.stories.tsx +18 -14
  92. package/src/extensions/image.tsx +9 -9
  93. package/src/helpers/load.ts +14 -8
  94. package/src/helpers/upload.ts +6 -2
  95. package/src/index.ts +1 -1
  96. package/src/meta.ts +9 -6
  97. package/src/translations.ts +14 -7
  98. package/src/types/File.ts +24 -0
  99. package/src/{capabilities → types}/capabilities.ts +4 -4
  100. package/src/types/index.ts +2 -1
  101. package/src/types/types.ts +58 -17
  102. package/dist/lib/browser/FileContainer-7YOCEQ6P.mjs +0 -106
  103. package/dist/lib/browser/FileContainer-7YOCEQ6P.mjs.map +0 -7
  104. package/dist/lib/browser/blockstore-UT7233RJ.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-DL7BBH57.mjs +0 -16
  106. package/dist/lib/browser/chunk-DL7BBH57.mjs.map +0 -7
  107. package/dist/lib/browser/chunk-PHTWWADN.mjs +0 -15
  108. package/dist/lib/browser/chunk-PHTWWADN.mjs.map +0 -7
  109. package/dist/lib/browser/chunk-SCL6PT4P.mjs +0 -64
  110. package/dist/lib/browser/chunk-SCL6PT4P.mjs.map +0 -7
  111. package/dist/lib/browser/chunk-WJVYRUYQ.mjs +0 -16
  112. package/dist/lib/browser/chunk-WJVYRUYQ.mjs.map +0 -7
  113. package/dist/lib/browser/chunk-YYAW4U6J.mjs.map +0 -7
  114. package/dist/lib/browser/file-uploader-RHINBPDQ.mjs +0 -29
  115. package/dist/lib/browser/file-uploader-RHINBPDQ.mjs.map +0 -7
  116. package/dist/lib/browser/intent-resolver-JDRRPIZC.mjs +0 -49
  117. package/dist/lib/browser/intent-resolver-JDRRPIZC.mjs.map +0 -7
  118. package/dist/lib/browser/markdown-BWBHUHHH.mjs.map +0 -7
  119. package/dist/lib/browser/react-surface-6GM4J4YG.mjs +0 -88
  120. package/dist/lib/browser/react-surface-6GM4J4YG.mjs.map +0 -7
  121. package/dist/types/src/capabilities/blockstore.d.ts +0 -4
  122. package/dist/types/src/capabilities/blockstore.d.ts.map +0 -1
  123. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  124. package/dist/types/src/capabilities/file-uploader.d.ts +0 -4
  125. package/dist/types/src/capabilities/file-uploader.d.ts.map +0 -1
  126. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  127. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  128. package/dist/types/src/capabilities/markdown.d.ts +0 -4
  129. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  130. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  131. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  132. package/dist/types/src/types/file.d.ts +0 -16
  133. package/dist/types/src/types/file.d.ts.map +0 -1
  134. package/src/capabilities/blockstore.ts +0 -18
  135. package/src/capabilities/file-uploader.ts +0 -24
  136. package/src/capabilities/intent-resolver.ts +0 -32
  137. package/src/capabilities/markdown.ts +0 -25
  138. package/src/capabilities/react-surface.tsx +0 -45
  139. package/src/types/file.ts +0 -17
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-wnfs/src/meta.ts":{"bytes":1463,"imports":[],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts":{"bytes":1937,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/helpers/common.ts":{"bytes":7615,"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-wnfs/src/helpers/load.ts":{"bytes":8933,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/helpers/wnfs-url.ts":{"bytes":3338,"imports":[{"path":"packages/plugins/plugin-wnfs/src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/helpers/upload.ts":{"bytes":6696,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/plugins/plugin-wnfs/src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"packages/plugins/plugin-wnfs/src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/helpers/index.ts":{"bytes":724,"imports":[{"path":"packages/plugins/plugin-wnfs/src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/plugins/plugin-wnfs/src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"packages/plugins/plugin-wnfs/src/helpers/upload.ts","kind":"import-statement","original":"./upload"},{"path":"packages/plugins/plugin-wnfs/src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/blockstore.ts":{"bytes":19260,"imports":[{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/helpers/index.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/blockstore.ts":{"bytes":2526,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/blockstore.ts","kind":"import-statement","original":"../blockstore"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/types/file.ts":{"bytes":1653,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-wnfs/src/types/types.ts":{"bytes":4909,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/types/file.ts","kind":"import-statement","original":"./file"},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/types/index.ts":{"bytes":547,"imports":[{"path":"packages/plugins/plugin-wnfs/src/types/file.ts","kind":"import-statement","original":"./file"},{"path":"packages/plugins/plugin-wnfs/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/file-uploader.ts":{"bytes":3392,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/intent-resolver.ts":{"bytes":4471,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/helpers/index.ts","kind":"import-statement","original":"../helpers"},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/extensions/image.tsx":{"bytes":21204,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/helpers/index.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/extensions/index.ts":{"bytes":472,"imports":[{"path":"packages/plugins/plugin-wnfs/src/extensions/image.tsx","kind":"import-statement","original":"./image"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/markdown.ts":{"bytes":3134,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/extensions/index.ts","kind":"import-statement","original":"../extensions"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/components/FileInput.tsx":{"bytes":5198,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/components/FilePreview.tsx":{"bytes":3109,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-wnfs/src/components/FileContainer.tsx":{"bytes":6271,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/components/FilePreview.tsx","kind":"import-statement","original":"./FilePreview"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/index.ts","kind":"import-statement","original":"../capabilities"},{"path":"packages/plugins/plugin-wnfs/src/helpers/index.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/components/index.ts":{"bytes":852,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/components/FileInput.tsx","kind":"import-statement","original":"./FileInput"},{"path":"packages/plugins/plugin-wnfs/src/components/FileContainer.tsx","kind":"dynamic-import","original":"./FileContainer"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/react-surface.tsx":{"bytes":5922,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/capabilities/index.ts":{"bytes":1832,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/blockstore.ts","kind":"dynamic-import","original":"./blockstore"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/file-uploader.ts","kind":"dynamic-import","original":"./file-uploader"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"packages/plugins/plugin-wnfs/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/translations.ts":{"bytes":1852,"imports":[{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/WnfsPlugin.tsx":{"bytes":10989,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-wnfs/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-wnfs/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-wnfs/src/index.ts":{"bytes":737,"imports":[{"path":"packages/plugins/plugin-wnfs/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-wnfs/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-wnfs/src/WnfsPlugin.tsx","kind":"import-statement","original":"./WnfsPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-wnfs/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6184},"packages/plugins/plugin-wnfs/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-WJVYRUYQ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["WNFS_PLUGIN","WnfsCapabilities","WnfsPlugin","meta"],"entryPoint":"packages/plugins/plugin-wnfs/src/index.ts","inputs":{"packages/plugins/plugin-wnfs/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-wnfs/src/WnfsPlugin.tsx":{"bytesInOutput":2380},"packages/plugins/plugin-wnfs/src/translations.ts":{"bytesInOutput":363}},"bytes":3304},"packages/plugins/plugin-wnfs/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-wnfs/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"}],"exports":["FileType","WnfsAction"],"entryPoint":"packages/plugins/plugin-wnfs/src/types/index.ts","inputs":{},"bytes":170},"packages/plugins/plugin-wnfs/dist/lib/browser/blockstore-UT7233RJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10739},"packages/plugins/plugin-wnfs/dist/lib/browser/blockstore-UT7233RJ.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/capabilities/blockstore.ts","inputs":{"packages/plugins/plugin-wnfs/src/capabilities/blockstore.ts":{"bytesInOutput":449},"packages/plugins/plugin-wnfs/src/blockstore.ts":{"bytesInOutput":4273}},"bytes":5136},"packages/plugins/plugin-wnfs/dist/lib/browser/file-uploader-RHINBPDQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1829},"packages/plugins/plugin-wnfs/dist/lib/browser/file-uploader-RHINBPDQ.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/capabilities/file-uploader.ts","inputs":{"packages/plugins/plugin-wnfs/src/capabilities/file-uploader.ts":{"bytesInOutput":742}},"bytes":992},"packages/plugins/plugin-wnfs/dist/lib/browser/intent-resolver-JDRRPIZC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2095},"packages/plugins/plugin-wnfs/dist/lib/browser/intent-resolver-JDRRPIZC.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-wnfs/src/capabilities/intent-resolver.ts":{"bytesInOutput":918}},"bytes":1294},"packages/plugins/plugin-wnfs/dist/lib/browser/markdown-BWBHUHHH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12475},"packages/plugins/plugin-wnfs/dist/lib/browser/markdown-BWBHUHHH.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/capabilities/markdown.ts","inputs":{"packages/plugins/plugin-wnfs/src/capabilities/markdown.ts":{"bytesInOutput":643},"packages/plugins/plugin-wnfs/src/extensions/image.tsx":{"bytesInOutput":4786},"packages/plugins/plugin-wnfs/src/extensions/index.ts":{"bytesInOutput":0}},"bytes":5873},"packages/plugins/plugin-wnfs/dist/lib/browser/FileContainer-7YOCEQ6P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4340},"packages/plugins/plugin-wnfs/dist/lib/browser/FileContainer-7YOCEQ6P.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-WJVYRUYQ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/components/FileContainer.tsx","inputs":{"packages/plugins/plugin-wnfs/src/components/FileContainer.tsx":{"bytesInOutput":1767},"packages/plugins/plugin-wnfs/src/components/FilePreview.tsx":{"bytesInOutput":863}},"bytes":3134},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-WJVYRUYQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":909},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-WJVYRUYQ.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/blockstore-UT7233RJ.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/file-uploader-RHINBPDQ.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/intent-resolver-JDRRPIZC.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/markdown-BWBHUHHH.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/react-surface-6GM4J4YG.mjs","kind":"dynamic-import"}],"exports":["Blockstore","FileUploader","IntentResolver","Markdown","ReactSurface"],"inputs":{"packages/plugins/plugin-wnfs/src/capabilities/index.ts":{"bytesInOutput":389}},"bytes":579},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13383},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-YYAW4U6J.mjs":{"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["filePath","getBlobUrl","getPathFromUrl","loadWnfs","storeName","upload","wnfsUrl"],"inputs":{"packages/plugins/plugin-wnfs/src/helpers/common.ts":{"bytesInOutput":1077},"packages/plugins/plugin-wnfs/src/helpers/load.ts":{"bytesInOutput":1918},"packages/plugins/plugin-wnfs/src/helpers/wnfs-url.ts":{"bytesInOutput":567},"packages/plugins/plugin-wnfs/src/helpers/upload.ts":{"bytesInOutput":1281},"packages/plugins/plugin-wnfs/src/helpers/index.ts":{"bytesInOutput":0}},"bytes":5208},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1040},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-DL7BBH57.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["WnfsCapabilities"],"inputs":{"packages/plugins/plugin-wnfs/src/capabilities/capabilities.ts":{"bytesInOutput":338}},"bytes":534},"packages/plugins/plugin-wnfs/dist/lib/browser/react-surface-6GM4J4YG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5915},"packages/plugins/plugin-wnfs/dist/lib/browser/react-surface-6GM4J4YG.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/FileContainer-7YOCEQ6P.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-wnfs/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-wnfs/src/capabilities/react-surface.tsx":{"bytesInOutput":1243},"packages/plugins/plugin-wnfs/src/components/index.ts":{"bytesInOutput":102},"packages/plugins/plugin-wnfs/src/components/FileInput.tsx":{"bytesInOutput":1320}},"bytes":3195},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3266},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-SCL6PT4P.mjs":{"imports":[{"path":"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["FileType","WnfsAction"],"inputs":{"packages/plugins/plugin-wnfs/src/types/file.ts":{"bytesInOutput":320},"packages/plugins/plugin-wnfs/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-wnfs/src/types/types.ts":{"bytesInOutput":1197}},"bytes":1756},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":711},"packages/plugins/plugin-wnfs/dist/lib/browser/chunk-PHTWWADN.mjs":{"imports":[],"exports":["WNFS_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-wnfs/src/meta.ts":{"bytesInOutput":292}},"bytes":415}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1782,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1910,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/File.ts":{"bytes":2741,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":9661,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/File.ts","kind":"import-statement","original":"./File"}],"format":"esm"},"src/types/index.ts":{"bytes":698,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/File.ts","kind":"import-statement","original":"./File"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/helpers/common.ts":{"bytes":7602,"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true}],"format":"esm"},"src/helpers/load.ts":{"bytes":9351,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/helpers/wnfs-url.ts":{"bytes":3325,"imports":[{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/helpers/upload.ts":{"bytes":6958,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"src/helpers/index.ts":{"bytes":711,"imports":[{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"src/helpers/upload.ts","kind":"import-statement","original":"./upload"},{"path":"src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"src/blockstore.ts":{"bytes":19319,"imports":[{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/capabilities/blockstore/blockstore.ts":{"bytes":2930,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"src/blockstore.ts","kind":"import-statement","original":"../../blockstore"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/blockstore/index.ts":{"bytes":886,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blockstore/blockstore.ts","kind":"dynamic-import","original":"./blockstore"}],"format":"esm"},"src/capabilities/file-uploader/file-uploader.ts":{"bytes":4495,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/file-uploader/index.ts":{"bytes":908,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/file-uploader/file-uploader.ts","kind":"dynamic-import","original":"./file-uploader"}],"format":"esm"},"src/extensions/image.tsx":{"bytes":21075,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/extensions/index.ts":{"bytes":459,"imports":[{"path":"src/extensions/image.tsx","kind":"import-statement","original":"./image"}],"format":"esm"},"src/capabilities/markdown/markdown.ts":{"bytes":3864,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/markdown/index.ts":{"bytes":862,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/markdown/markdown.ts","kind":"dynamic-import","original":"./markdown"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":10282,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":960,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/components/FileInput.tsx":{"bytes":4949,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/components/FilePreview.tsx":{"bytes":2842,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/FileContainer.tsx":{"bytes":5849,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../helpers"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/components/FilePreview.tsx","kind":"import-statement","original":"./FilePreview"}],"format":"esm"},"src/components/index.ts":{"bytes":839,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/FileInput.tsx","kind":"import-statement","original":"./FileInput"},{"path":"src/components/FileContainer.tsx","kind":"dynamic-import","original":"./FileContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":6658,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":908,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":882,"imports":[{"path":"src/capabilities/blockstore/index.ts","kind":"import-statement","original":"./blockstore"},{"path":"src/capabilities/file-uploader/index.ts","kind":"import-statement","original":"./file-uploader"},{"path":"src/capabilities/markdown/index.ts","kind":"import-statement","original":"./markdown"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":2684,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/WnfsPlugin.tsx":{"bytes":9473,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":705,"imports":[{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/WnfsPlugin.tsx","kind":"import-statement","original":"./WnfsPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7931},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/blockstore-U42RF6KA.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/file-uploader-VBBUS2GG.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/markdown-ZLOS5HZU.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-7TLMWGST.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-YTIVVF2C.mjs","kind":"dynamic-import"}],"exports":["WnfsCapabilities","WnfsPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/WnfsPlugin.tsx":{"bytesInOutput":2024},"src/capabilities/blockstore/index.ts":{"bytesInOutput":141},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/file-uploader/index.ts":{"bytesInOutput":164},"src/capabilities/markdown/index.ts":{"bytesInOutput":151},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/translations.ts":{"bytesInOutput":578}},"bytes":3890},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"}],"exports":["WnfsAction","WnfsCapabilities","WnfsFile","WnfsOperation"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":232},"dist/lib/browser/blockstore-U42RF6KA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11013},"dist/lib/browser/blockstore-U42RF6KA.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NCTUASHL.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blockstore/blockstore.ts","inputs":{"src/capabilities/blockstore/blockstore.ts":{"bytesInOutput":562},"src/blockstore.ts":{"bytesInOutput":4264}},"bytes":5144},"dist/lib/browser/file-uploader-VBBUS2GG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2349},"dist/lib/browser/file-uploader-VBBUS2GG.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/file-uploader/file-uploader.ts","inputs":{"src/capabilities/file-uploader/file-uploader.ts":{"bytesInOutput":1015}},"bytes":1222},"dist/lib/browser/markdown-ZLOS5HZU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12794},"dist/lib/browser/markdown-ZLOS5HZU.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NCTUASHL.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown/markdown.ts","inputs":{"src/capabilities/markdown/markdown.ts":{"bytesInOutput":822},"src/extensions/image.tsx":{"bytesInOutput":4794},"src/extensions/index.ts":{"bytesInOutput":0}},"bytes":5960},"dist/lib/browser/operation-resolver-7TLMWGST.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4880},"dist/lib/browser/operation-resolver-7TLMWGST.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NCTUASHL.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":2789}},"bytes":3101},"dist/lib/browser/FileContainer-FUAINNAS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4372},"dist/lib/browser/FileContainer-FUAINNAS.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NCTUASHL.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["FileContainer","default"],"entryPoint":"src/components/FileContainer.tsx","inputs":{"src/components/FileContainer.tsx":{"bytesInOutput":1416},"src/components/FilePreview.tsx":{"bytesInOutput":674}},"bytes":2462},"dist/lib/browser/chunk-NCTUASHL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13802},"dist/lib/browser/chunk-NCTUASHL.mjs":{"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["filePath","getBlobUrl","getPathFromUrl","loadWnfs","storeName","upload","wnfsUrl"],"inputs":{"src/helpers/common.ts":{"bytesInOutput":1077},"src/helpers/load.ts":{"bytesInOutput":2021},"src/helpers/wnfs-url.ts":{"bytesInOutput":567},"src/helpers/upload.ts":{"bytesInOutput":1344},"src/helpers/index.ts":{"bytesInOutput":0}},"bytes":5258},"dist/lib/browser/react-surface-YTIVVF2C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6313},"dist/lib/browser/react-surface-YTIVVF2C.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PCYQNMXS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"dist/lib/browser/FileContainer-FUAINNAS.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":1386},"src/components/index.ts":{"bytesInOutput":102},"src/components/FileInput.tsx":{"bytesInOutput":1130}},"bytes":2989},"dist/lib/browser/chunk-PCYQNMXS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7736},"dist/lib/browser/chunk-PCYQNMXS.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["File_exports","WnfsAction","WnfsCapabilities","WnfsOperation","meta"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":322},"src/meta.ts":{"bytesInOutput":423},"src/types/index.ts":{"bytesInOutput":0},"src/types/File.ts":{"bytesInOutput":628},"src/types/types.ts":{"bytesInOutput":2501}},"bytes":4293}}}
@@ -0,0 +1,99 @@
1
+ import {
2
+ upload
3
+ } from "./chunk-NCTUASHL.mjs";
4
+ import {
5
+ File_exports,
6
+ WnfsCapabilities,
7
+ WnfsOperation
8
+ } from "./chunk-PCYQNMXS.mjs";
9
+
10
+ // src/capabilities/operation-resolver/operation-resolver.ts
11
+ import * as Effect from "effect/Effect";
12
+ import { Capabilities, Capability } from "@dxos/app-framework";
13
+ import { Obj, Ref, Type } from "@dxos/echo";
14
+ import { invariant } from "@dxos/invariant";
15
+ import { OperationResolver } from "@dxos/operation";
16
+ import { ClientCapabilities } from "@dxos/plugin-client";
17
+ import { Collection } from "@dxos/schema";
18
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-wnfs/src/capabilities/operation-resolver/operation-resolver.ts";
19
+ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* () {
20
+ return Capability.contributes(Capabilities.OperationResolver, [
21
+ OperationResolver.make({
22
+ operation: WnfsOperation.OnCreateSpace,
23
+ handler: Effect.fnUntraced(function* ({ rootCollection }) {
24
+ const collection = Collection.makeManaged({
25
+ key: Type.getTypename(File_exports.File)
26
+ });
27
+ Obj.change(rootCollection, (c) => {
28
+ c.objects.push(Ref.make(collection));
29
+ });
30
+ })
31
+ }),
32
+ OperationResolver.make({
33
+ operation: WnfsOperation.Create,
34
+ handler: ({ name, type, cid }) => Effect.succeed({
35
+ object: File_exports.make({
36
+ name,
37
+ type,
38
+ cid
39
+ })
40
+ })
41
+ }),
42
+ OperationResolver.make({
43
+ operation: WnfsOperation.Upload,
44
+ handler: Effect.fnUntraced(function* ({ file, db }) {
45
+ const client = yield* Capability.get(ClientCapabilities.Client);
46
+ const blockstore = yield* Capability.get(WnfsCapabilities.Blockstore);
47
+ const space = client.spaces.get(db.spaceId);
48
+ invariant(space, "Space not found", {
49
+ F: __dxlog_file,
50
+ L: 42,
51
+ S: this,
52
+ A: [
53
+ "space",
54
+ "'Space not found'"
55
+ ]
56
+ });
57
+ const info = yield* Effect.promise(() => upload({
58
+ file,
59
+ blockstore,
60
+ space
61
+ }));
62
+ return info;
63
+ })
64
+ }),
65
+ OperationResolver.make({
66
+ operation: WnfsOperation.CreateFile,
67
+ handler: Effect.fnUntraced(function* ({ file, db }) {
68
+ const client = yield* Capability.get(ClientCapabilities.Client);
69
+ const blockstore = yield* Capability.get(WnfsCapabilities.Blockstore);
70
+ const space = client.spaces.get(db.spaceId);
71
+ invariant(space, "Space not found", {
72
+ F: __dxlog_file,
73
+ L: 53,
74
+ S: this,
75
+ A: [
76
+ "space",
77
+ "'Space not found'"
78
+ ]
79
+ });
80
+ const info = yield* Effect.promise(() => upload({
81
+ file,
82
+ blockstore,
83
+ space
84
+ }));
85
+ return {
86
+ object: File_exports.make({
87
+ name: info.name,
88
+ type: info.type,
89
+ cid: info.cid
90
+ })
91
+ };
92
+ })
93
+ })
94
+ ]);
95
+ }));
96
+ export {
97
+ operation_resolver_default as default
98
+ };
99
+ //# sourceMappingURL=operation-resolver-7TLMWGST.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Obj, Ref, Type } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { OperationResolver } from '@dxos/operation';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { Collection } from '@dxos/schema';\n\nimport { upload } from '../../helpers';\nimport { WnfsCapabilities, WnfsFile, WnfsOperation } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.OperationResolver, [\n OperationResolver.make({\n operation: WnfsOperation.OnCreateSpace,\n handler: Effect.fnUntraced(function* ({ rootCollection }) {\n const collection = Collection.makeManaged({ key: Type.getTypename(WnfsFile.File) });\n Obj.change(rootCollection, (c) => {\n c.objects.push(Ref.make(collection));\n });\n }),\n }),\n OperationResolver.make({\n operation: WnfsOperation.Create,\n handler: ({ name, type, cid }) =>\n Effect.succeed({\n object: WnfsFile.make({ name, type, cid }),\n }),\n }),\n OperationResolver.make({\n operation: WnfsOperation.Upload,\n handler: Effect.fnUntraced(function* ({ file, db }) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const blockstore = yield* Capability.get(WnfsCapabilities.Blockstore);\n const space = client.spaces.get(db.spaceId);\n invariant(space, 'Space not found');\n const info = yield* Effect.promise(() => upload({ file, blockstore, space }));\n return info;\n }),\n }),\n OperationResolver.make({\n operation: WnfsOperation.CreateFile,\n handler: Effect.fnUntraced(function* ({ file, db }) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const blockstore = yield* Capability.get(WnfsCapabilities.Blockstore);\n const space = client.spaces.get(db.spaceId);\n invariant(space, 'Space not found');\n const info = yield* Effect.promise(() => upload({ file, blockstore, space }));\n return {\n object: WnfsFile.make({ name: info.name, type: info.type, cid: info.cid }),\n };\n }),\n }),\n ]);\n }),\n);\n"],
5
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,KAAKC,KAAKC,YAAY;AAC/B,SAASC,iBAAiB;AAC1B,SAASC,yBAAyB;AAClC,SAASC,0BAA0B;AACnC,SAASC,kBAAkB;;AAK3B,IAAA,6BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,SAAOF,WAAWG,YAAYC,aAAaC,mBAAmB;IAC5DA,kBAAkBC,KAAK;MACrBC,WAAWC,cAAcC;MACzBC,SAAgBR,kBAAW,WAAW,EAAES,eAAc,GAAE;AACtD,cAAMC,aAAaC,WAAWC,YAAY;UAAEC,KAAKC,KAAKC,YAAYC,aAASC,IAAI;QAAE,CAAA;AACjFC,YAAIC,OAAOV,gBAAgB,CAACW,MAAAA;AAC1BA,YAAEC,QAAQC,KAAKC,IAAInB,KAAKM,UAAAA,CAAAA;QAC1B,CAAA;MACF,CAAA;IACF,CAAA;IACAP,kBAAkBC,KAAK;MACrBC,WAAWC,cAAckB;MACzBhB,SAAS,CAAC,EAAEiB,MAAMC,MAAMC,IAAG,MAClBC,eAAQ;QACbC,QAAQb,aAASZ,KAAK;UAAEqB;UAAMC;UAAMC;QAAI,CAAA;MAC1C,CAAA;IACJ,CAAA;IACAxB,kBAAkBC,KAAK;MACrBC,WAAWC,cAAcwB;MACzBtB,SAAgBR,kBAAW,WAAW,EAAE+B,MAAMC,GAAE,GAAE;AAChD,cAAMC,SAAS,OAAOnC,WAAWoC,IAAIC,mBAAmBC,MAAM;AAC9D,cAAMC,aAAa,OAAOvC,WAAWoC,IAAII,iBAAiBC,UAAU;AACpE,cAAMC,QAAQP,OAAOQ,OAAOP,IAAIF,GAAGU,OAAO;AAC1CC,kBAAUH,OAAO,mBAAA;;;;;;;;;AACjB,cAAMI,OAAO,OAAcC,eAAQ,MAAMC,OAAO;UAAEf;UAAMM;UAAYG;QAAM,CAAA,CAAA;AAC1E,eAAOI;MACT,CAAA;IACF,CAAA;IACAzC,kBAAkBC,KAAK;MACrBC,WAAWC,cAAcyC;MACzBvC,SAAgBR,kBAAW,WAAW,EAAE+B,MAAMC,GAAE,GAAE;AAChD,cAAMC,SAAS,OAAOnC,WAAWoC,IAAIC,mBAAmBC,MAAM;AAC9D,cAAMC,aAAa,OAAOvC,WAAWoC,IAAII,iBAAiBC,UAAU;AACpE,cAAMC,QAAQP,OAAOQ,OAAOP,IAAIF,GAAGU,OAAO;AAC1CC,kBAAUH,OAAO,mBAAA;;;;;;;;;AACjB,cAAMI,OAAO,OAAcC,eAAQ,MAAMC,OAAO;UAAEf;UAAMM;UAAYG;QAAM,CAAA,CAAA;AAC1E,eAAO;UACLX,QAAQb,aAASZ,KAAK;YAAEqB,MAAMmB,KAAKnB;YAAMC,MAAMkB,KAAKlB;YAAMC,KAAKiB,KAAKjB;UAAI,CAAA;QAC1E;MACF,CAAA;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Obj", "Ref", "Type", "invariant", "OperationResolver", "ClientCapabilities", "Collection", "Capability", "makeModule", "fnUntraced", "contributes", "Capabilities", "OperationResolver", "make", "operation", "WnfsOperation", "OnCreateSpace", "handler", "rootCollection", "collection", "Collection", "makeManaged", "key", "Type", "getTypename", "WnfsFile", "File", "Obj", "change", "c", "objects", "push", "Ref", "Create", "name", "type", "cid", "succeed", "object", "Upload", "file", "db", "client", "get", "ClientCapabilities", "Client", "blockstore", "WnfsCapabilities", "Blockstore", "space", "spaces", "spaceId", "invariant", "info", "promise", "upload", "CreateFile"]
7
+ }
@@ -0,0 +1,82 @@
1
+ import {
2
+ File_exports,
3
+ WnfsAction,
4
+ meta
5
+ } from "./chunk-PCYQNMXS.mjs";
6
+
7
+ // src/capabilities/react-surface/react-surface.tsx
8
+ import * as Effect from "effect/Effect";
9
+ import React2, { useCallback as useCallback2 } from "react";
10
+ import { Capabilities, Capability } from "@dxos/app-framework";
11
+ import { Surface } from "@dxos/app-framework/ui";
12
+ import { Obj } from "@dxos/echo";
13
+ import { findAnnotation as findAnnotation2 } from "@dxos/effect";
14
+
15
+ // src/components/index.ts
16
+ import { lazy } from "react";
17
+
18
+ // src/components/FileInput.tsx
19
+ import React, { useCallback } from "react";
20
+ import { useDropzone } from "react-dropzone";
21
+ import { findAnnotation } from "@dxos/effect";
22
+ import { useTranslation } from "@dxos/react-ui";
23
+ import { mx } from "@dxos/ui-theme";
24
+ var FileInput = ({ schema, onChange }) => {
25
+ const { t } = useTranslation(meta.id);
26
+ const accept = findAnnotation(schema.ast, WnfsAction.UploadAnnotationId);
27
+ const onDropAccepted = useCallback((files) => onChange?.(files[0]), [
28
+ onChange
29
+ ]);
30
+ const { acceptedFiles, getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone({
31
+ multiple: false,
32
+ accept,
33
+ onDropAccepted
34
+ });
35
+ return /* @__PURE__ */ React.createElement("div", {
36
+ ...getRootProps(),
37
+ className: mx("flex flex-col items-center p-8 border border-separator", isFocused && "focus-ring", isDragAccept && "bg-attention", isDragReject && "border-roseFill")
38
+ }, /* @__PURE__ */ React.createElement("input", getInputProps()), acceptedFiles[0] ? /* @__PURE__ */ React.createElement("p", null, acceptedFiles[0].name) : /* @__PURE__ */ React.createElement("p", null, t("file input placeholder")));
39
+ };
40
+
41
+ // src/components/index.ts
42
+ var FileContainer = lazy(() => import("./FileContainer-FUAINNAS.mjs"));
43
+
44
+ // src/capabilities/react-surface/react-surface.tsx
45
+ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
46
+ Surface.create({
47
+ id: `${meta.id}/article`,
48
+ role: [
49
+ "article",
50
+ "section",
51
+ "slide"
52
+ ],
53
+ filter: (data) => Obj.instanceOf(File_exports.File, data.subject),
54
+ component: ({ data, role }) => /* @__PURE__ */ React2.createElement(FileContainer, {
55
+ role,
56
+ subject: data.subject
57
+ })
58
+ }),
59
+ Surface.create({
60
+ id: `${meta.id}/create-form`,
61
+ role: "form-input",
62
+ filter: (data) => {
63
+ const annotation = findAnnotation2(data.schema.ast, WnfsAction.UploadAnnotationId);
64
+ return !!annotation;
65
+ },
66
+ component: ({ data: { schema }, ...props }) => {
67
+ const inputProps = props;
68
+ const handleChange = useCallback2((file) => inputProps.onValueChange?.(inputProps.type, file), [
69
+ inputProps.type,
70
+ inputProps.onValueChange
71
+ ]);
72
+ return /* @__PURE__ */ React2.createElement(FileInput, {
73
+ schema,
74
+ onChange: handleChange
75
+ });
76
+ }
77
+ })
78
+ ])));
79
+ export {
80
+ react_surface_default as default
81
+ };
82
+ //# sourceMappingURL=react-surface-YTIVVF2C.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/components/index.ts", "../../../src/components/FileInput.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport type * as Schema from 'effect/Schema';\nimport React, { useCallback } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\nimport { findAnnotation } from '@dxos/effect';\nimport { type FormFieldComponentProps } from '@dxos/react-ui-form';\n\nimport { FileContainer, FileInput } from '../../components';\nimport { meta } from '../../meta';\nimport { WnfsAction, WnfsFile } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: `${meta.id}/article`,\n role: ['article', 'section', 'slide'],\n filter: (data): data is { subject: WnfsFile.File } => Obj.instanceOf(WnfsFile.File, data.subject),\n component: ({ data, role }) => <FileContainer role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: `${meta.id}/create-form`,\n role: 'form-input',\n filter: (data): data is { prop: string; schema: Schema.Schema.Any } => {\n const annotation = findAnnotation<boolean>(\n (data.schema as Schema.Schema.All).ast,\n WnfsAction.UploadAnnotationId,\n );\n return !!annotation;\n },\n component: ({ data: { schema }, ...props }) => {\n const inputProps = props as unknown as FormFieldComponentProps;\n const handleChange = useCallback(\n (file: File) => inputProps.onValueChange?.(inputProps.type, file),\n [inputProps.type, inputProps.onValueChange],\n );\n\n return <FileInput schema={schema} onChange={handleChange} />;\n },\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const FileContainer = lazy(() => import('./FileContainer'));\n\nexport * from './FileInput';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Schema from 'effect/Schema';\nimport React, { useCallback } from 'react';\nimport { useDropzone } from 'react-dropzone';\n\nimport { findAnnotation } from '@dxos/effect';\nimport { useTranslation } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\nimport { WnfsAction } from '../types';\n\nexport type FileInputProps = {\n schema: Schema.Schema.Any;\n onChange: (file: File) => void;\n};\n\nexport const FileInput = ({ schema, onChange }: FileInputProps) => {\n const { t } = useTranslation(meta.id);\n const accept = findAnnotation<Record<string, string[]>>(schema.ast, WnfsAction.UploadAnnotationId);\n\n const onDropAccepted = useCallback((files: File[]) => onChange?.(files[0]), [onChange]);\n\n const { acceptedFiles, getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone({\n multiple: false,\n accept,\n onDropAccepted,\n });\n\n return (\n <div\n {...getRootProps()}\n className={mx(\n 'flex flex-col items-center p-8 border border-separator',\n isFocused && 'focus-ring',\n isDragAccept && 'bg-attention',\n isDragReject && 'border-roseFill',\n )}\n >\n <input {...getInputProps()} />\n {acceptedFiles[0] ? <p>{acceptedFiles[0].name}</p> : <p>{t('file input placeholder')}</p>}\n </div>\n );\n};\n"],
5
+ "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,OAAOC,UAASC,eAAAA,oBAAmB;AAEnC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,WAAW;AACpB,SAASC,kBAAAA,uBAAsB;;;ACP/B,SAASC,YAAY;;;ACCrB,OAAOC,SAASC,mBAAmB;AACnC,SAASC,mBAAmB;AAE5B,SAASC,sBAAsB;AAC/B,SAASC,sBAAsB;AAC/B,SAASC,UAAU;AAUZ,IAAMC,YAAY,CAAC,EAAEC,QAAQC,SAAQ,MAAkB;AAC5D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,QAAMC,SAASC,eAAyCP,OAAOQ,KAAKC,WAAWC,kBAAkB;AAEjG,QAAMC,iBAAiBC,YAAY,CAACC,UAAkBZ,WAAWY,MAAM,CAAA,CAAE,GAAG;IAACZ;GAAS;AAEtF,QAAM,EAAEa,eAAeC,cAAcC,eAAeC,WAAWC,cAAcC,aAAY,IAAKC,YAAY;IACxGC,UAAU;IACVf;IACAK;EACF,CAAA;AAEA,SACE,sBAAA,cAACW,OAAAA;IACE,GAAGP,aAAAA;IACJQ,WAAWC,GACT,0DACAP,aAAa,cACbC,gBAAgB,gBAChBC,gBAAgB,iBAAA;KAGlB,sBAAA,cAACM,SAAUT,cAAAA,CAAAA,GACVF,cAAc,CAAA,IAAK,sBAAA,cAACY,KAAAA,MAAGZ,cAAc,CAAA,EAAGa,IAAI,IAAQ,sBAAA,cAACD,KAAAA,MAAGxB,EAAE,wBAAA,CAAA,CAAA;AAGjE;;;ADxCO,IAAM0B,gBAAgBC,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ADY/C,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;MAAC;MAAW;MAAW;;IAC7BC,QAAQ,CAACC,SAA6CC,IAAIC,WAAWC,aAASC,MAAMJ,KAAKK,OAAO;IAChGC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,gBAAAS,OAAA,cAACC,eAAAA;MAAcV;MAAYO,SAASL,KAAKK;;EAC1E,CAAA;EACAX,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAAA;AACP,YAAMS,aAAaC,gBAChBV,KAAKW,OAA6BC,KACnCC,WAAWC,kBAAkB;AAE/B,aAAO,CAAC,CAACL;IACX;IACAH,WAAW,CAAC,EAAEN,MAAM,EAAEW,OAAM,GAAI,GAAGI,MAAAA,MAAO;AACxC,YAAMC,aAAaD;AACnB,YAAME,eAAeC,aACnB,CAACC,SAAeH,WAAWI,gBAAgBJ,WAAWK,MAAMF,IAAAA,GAC5D;QAACH,WAAWK;QAAML,WAAWI;OAAc;AAG7C,aAAO,gBAAAb,OAAA,cAACe,WAAAA;QAAUX;QAAgBY,UAAUN;;IAC9C;EACF,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "useCallback", "Capabilities", "Capability", "Surface", "Obj", "findAnnotation", "lazy", "React", "useCallback", "useDropzone", "findAnnotation", "useTranslation", "mx", "FileInput", "schema", "onChange", "t", "useTranslation", "meta", "id", "accept", "findAnnotation", "ast", "WnfsAction", "UploadAnnotationId", "onDropAccepted", "useCallback", "files", "acceptedFiles", "getRootProps", "getInputProps", "isFocused", "isDragAccept", "isDragReject", "useDropzone", "multiple", "div", "className", "mx", "input", "p", "name", "FileContainer", "lazy", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "WnfsFile", "File", "subject", "component", "React", "FileContainer", "annotation", "findAnnotation", "schema", "ast", "WnfsAction", "UploadAnnotationId", "props", "inputProps", "handleChange", "useCallback", "file", "onValueChange", "type", "FileInput", "onChange"]
7
+ }
@@ -1,10 +1,13 @@
1
1
  import {
2
- FileType,
3
- WnfsAction
4
- } from "../chunk-SCL6PT4P.mjs";
5
- import "../chunk-PHTWWADN.mjs";
2
+ File_exports,
3
+ WnfsAction,
4
+ WnfsCapabilities,
5
+ WnfsOperation
6
+ } from "../chunk-PCYQNMXS.mjs";
6
7
  export {
7
- FileType,
8
- WnfsAction
8
+ WnfsAction,
9
+ WnfsCapabilities,
10
+ File_exports as WnfsFile,
11
+ WnfsOperation
9
12
  };
10
13
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,3 @@
1
- export declare const WnfsPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const WnfsPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=WnfsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WnfsPlugin.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.tsx"],"names":[],"mappings":"AAyBA,eAAO,MAAM,UAAU,4CAmEnB,CAAC"}
1
+ {"version":3,"file":"WnfsPlugin.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAazD,eAAO,MAAM,UAAU,4BAwDtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("interface-blockstore").Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>>>, Error, Capability.Service>;
4
+ export default _default;
5
+ //# sourceMappingURL=blockstore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockstore.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blockstore/blockstore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAMjD,wBASE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const Blockstore: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("interface-blockstore").Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blockstore/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,UAAU,mKAA8D,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { AppCapabilities } from '@dxos/app-toolkit';
4
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AppCapabilities.FileUploader>>, never, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=file-uploader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/file-uploader/file-uploader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;;AAMpD,wBAoBE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const FileUploader: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.FileUploader>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/file-uploader/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
@@ -1,7 +1,6 @@
1
- export declare const Blockstore: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("interface-blockstore").Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const FileUploader: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.FileUploader> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
4
- export declare const Markdown: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/plugin-markdown/types").MarkdownExtensionProvider[]> | import("@dxos/app-framework").AnyCapability[]>>;
5
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
6
- export * from './capabilities';
1
+ export * from './blockstore';
2
+ export * from './file-uploader';
3
+ export * from './markdown';
4
+ export * from './operation-resolver';
5
+ export * from './react-surface';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,kQAAqC,CAAC;AAC7D,eAAO,MAAM,YAAY,gPAAwC,CAAC;AAClE,eAAO,MAAM,cAAc,kPAA0C,CAAC;AACtE,eAAO,MAAM,QAAQ,0PAAmC,CAAC;AACzD,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAElE,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const Markdown: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/markdown/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,QAAQ,qJAA0D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, never, Capability.Service>;
4
+ export default _default;
5
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/markdown/markdown.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAOjD,wBAmBE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const OperationResolver: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").OperationResolver[]>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,wJAA6E,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.OperationResolver[]>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=operation-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAU/D,wBA6CE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAU/D,wBA+BE"}
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { type FileType } from '../types';
3
- declare const FileContainer: ({ file, role }: {
4
- file: FileType;
5
- role: string;
6
- }) => React.JSX.Element | null;
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
3
+ import { type WnfsFile } from '../types';
4
+ export type FileContainerProps = SurfaceComponentProps<WnfsFile.File>;
5
+ export declare const FileContainer: ({ role, subject: file }: FileContainerProps) => React.JSX.Element | null;
7
6
  export default FileContainer;
8
7
  //# sourceMappingURL=FileContainer.d.ts.map