@dxos/plugin-wnfs 0.8.4-main.4a85c3132b → 0.8.4-main.4f23b4e393

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 (205) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/{browser/FileContainer-EILNV5LV.mjs → neutral/FileContainer-YXSTSMA6.mjs} +9 -25
  3. package/dist/lib/neutral/FileContainer-YXSTSMA6.mjs.map +7 -0
  4. package/dist/lib/neutral/WnfsPlugin.mjs +50 -0
  5. package/dist/lib/neutral/WnfsPlugin.mjs.map +7 -0
  6. package/dist/lib/neutral/WnfsPlugin.node.mjs +23 -0
  7. package/dist/lib/neutral/WnfsPlugin.node.mjs.map +7 -0
  8. package/dist/lib/{browser/blockstore-Q66HQJ4Q.mjs → neutral/blockstore-3NLSWC7Z.mjs} +7 -8
  9. package/dist/lib/neutral/blockstore-3NLSWC7Z.mjs.map +7 -0
  10. package/dist/lib/neutral/capabilities/index.mjs +19 -0
  11. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  12. package/dist/lib/{browser/chunk-UC4HMNZZ.mjs → neutral/chunk-7KFJ6LYH.mjs} +36 -21
  13. package/dist/lib/neutral/chunk-7KFJ6LYH.mjs.map +7 -0
  14. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  15. package/dist/lib/neutral/chunk-LHUHUCBD.mjs +18 -0
  16. package/dist/lib/neutral/chunk-LHUHUCBD.mjs.map +7 -0
  17. package/dist/lib/neutral/chunk-UIZBWELF.mjs +8 -0
  18. package/dist/lib/neutral/chunk-UIZBWELF.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-VWVCHTUK.mjs +125 -0
  20. package/dist/lib/neutral/chunk-VWVCHTUK.mjs.map +7 -0
  21. package/dist/lib/{browser/chunk-HXVPBJ3A.mjs → neutral/components/index.mjs} +25 -18
  22. package/dist/lib/neutral/components/index.mjs.map +7 -0
  23. package/dist/lib/neutral/containers/index.mjs +9 -0
  24. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  25. package/dist/lib/neutral/create-4ERE5CA4.mjs +23 -0
  26. package/dist/lib/neutral/create-4ERE5CA4.mjs.map +7 -0
  27. package/dist/lib/neutral/create-file-RAHDIJVU.mjs +40 -0
  28. package/dist/lib/neutral/create-file-RAHDIJVU.mjs.map +7 -0
  29. package/dist/lib/neutral/create-object-7PJC47BB.mjs +33 -0
  30. package/dist/lib/neutral/create-object-7PJC47BB.mjs.map +7 -0
  31. package/dist/lib/{browser/file-uploader-QL4DTOMM.mjs → neutral/file-uploader-WOF3H3FN.mjs} +5 -6
  32. package/dist/lib/neutral/file-uploader-WOF3H3FN.mjs.map +7 -0
  33. package/dist/lib/neutral/helpers/index.mjs +26 -0
  34. package/dist/lib/neutral/helpers/index.mjs.map +7 -0
  35. package/dist/lib/neutral/index.mjs +40 -0
  36. package/dist/lib/neutral/index.mjs.map +7 -0
  37. package/dist/lib/{browser/markdown-AYCVG6TJ.mjs → neutral/markdown-I4FYAUCA.mjs} +25 -22
  38. package/dist/lib/neutral/markdown-I4FYAUCA.mjs.map +7 -0
  39. package/dist/lib/neutral/meta.json +1 -0
  40. package/dist/lib/neutral/meta.mjs +8 -0
  41. package/dist/lib/neutral/meta.mjs.map +7 -0
  42. package/dist/lib/neutral/operation-handler-NPYSIPMR.mjs +13 -0
  43. package/dist/lib/neutral/operation-handler-NPYSIPMR.mjs.map +7 -0
  44. package/dist/lib/neutral/operations/index.mjs +8 -0
  45. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  46. package/dist/lib/neutral/plugin.mjs +16 -0
  47. package/dist/lib/neutral/plugin.mjs.map +7 -0
  48. package/dist/lib/{browser/react-surface-3LKVDPH7.mjs → neutral/react-surface-S4FB2UJ2.mjs} +22 -29
  49. package/dist/lib/neutral/react-surface-S4FB2UJ2.mjs.map +7 -0
  50. package/dist/lib/neutral/translations.mjs +30 -0
  51. package/dist/lib/neutral/translations.mjs.map +7 -0
  52. package/dist/lib/neutral/types/index.mjs +14 -0
  53. package/dist/lib/neutral/types/index.mjs.map +7 -0
  54. package/dist/lib/neutral/upload-VA5CSUEP.mjs +33 -0
  55. package/dist/lib/neutral/upload-VA5CSUEP.mjs.map +7 -0
  56. package/dist/types/src/WnfsPlugin.d.ts +1 -0
  57. package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
  58. package/dist/types/src/WnfsPlugin.node.d.ts +4 -0
  59. package/dist/types/src/WnfsPlugin.node.d.ts.map +1 -0
  60. package/dist/types/src/WnfsPlugin.test.d.ts +2 -0
  61. package/dist/types/src/WnfsPlugin.test.d.ts.map +1 -0
  62. package/dist/types/src/blockstore.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/blockstore.d.ts.map +1 -0
  64. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  65. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  66. package/dist/types/src/capabilities/file-uploader.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/index.d.ts +13 -5
  68. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  69. package/dist/types/src/capabilities/markdown.d.ts +6 -0
  70. package/dist/types/src/capabilities/markdown.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  72. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  74. package/dist/types/src/components/FileInput/FileInput.d.ts.map +1 -0
  75. package/dist/types/src/components/FileInput/index.d.ts +2 -0
  76. package/dist/types/src/components/FileInput/index.d.ts.map +1 -0
  77. package/dist/types/src/components/FilePreview/FilePreview.d.ts +12 -0
  78. package/dist/types/src/components/FilePreview/FilePreview.d.ts.map +1 -0
  79. package/dist/types/src/components/FilePreview/index.d.ts +2 -0
  80. package/dist/types/src/components/FilePreview/index.d.ts.map +1 -0
  81. package/dist/types/src/containers/FileContainer/FileContainer.d.ts +3 -3
  82. package/dist/types/src/containers/FileContainer/FileContainer.d.ts.map +1 -1
  83. package/dist/types/src/containers/FileContainer/index.d.ts +1 -2
  84. package/dist/types/src/containers/FileContainer/index.d.ts.map +1 -1
  85. package/dist/types/src/extensions/image.d.ts +1 -1
  86. package/dist/types/src/extensions/image.d.ts.map +1 -1
  87. package/dist/types/src/extensions/image.stories.d.ts.map +1 -1
  88. package/dist/types/src/helpers/common.d.ts.map +1 -1
  89. package/dist/types/src/helpers/load.d.ts +1 -1
  90. package/dist/types/src/helpers/load.d.ts.map +1 -1
  91. package/dist/types/src/helpers/upload.d.ts +1 -1
  92. package/dist/types/src/helpers/upload.d.ts.map +1 -1
  93. package/dist/types/src/helpers/wnfs-url.d.ts.map +1 -1
  94. package/dist/types/src/index.d.ts +2 -2
  95. package/dist/types/src/index.d.ts.map +1 -1
  96. package/dist/types/src/operations/create-file.d.ts +5 -0
  97. package/dist/types/src/operations/create-file.d.ts.map +1 -0
  98. package/dist/types/src/operations/create.d.ts +5 -0
  99. package/dist/types/src/operations/create.d.ts.map +1 -0
  100. package/dist/types/src/operations/index.d.ts +3 -0
  101. package/dist/types/src/operations/index.d.ts.map +1 -0
  102. package/dist/types/src/operations/upload.d.ts +5 -0
  103. package/dist/types/src/operations/upload.d.ts.map +1 -0
  104. package/dist/types/src/plugin.d.ts +4 -0
  105. package/dist/types/src/plugin.d.ts.map +1 -0
  106. package/dist/types/src/translations.d.ts +24 -15
  107. package/dist/types/src/translations.d.ts.map +1 -1
  108. package/dist/types/src/types/WnfsCapabilities.d.ts +11 -0
  109. package/dist/types/src/types/WnfsCapabilities.d.ts.map +1 -0
  110. package/dist/types/src/types/{File.d.ts → WnfsFile.d.ts} +4 -4
  111. package/dist/types/src/types/WnfsFile.d.ts.map +1 -0
  112. package/dist/types/src/types/WnfsOperation.d.ts +38 -0
  113. package/dist/types/src/types/WnfsOperation.d.ts.map +1 -0
  114. package/dist/types/src/types/index.d.ts +3 -2
  115. package/dist/types/src/types/index.d.ts.map +1 -1
  116. package/dist/types/src/types/types.d.ts +1 -104
  117. package/dist/types/src/types/types.d.ts.map +1 -1
  118. package/dist/types/tsconfig.tsbuildinfo +1 -1
  119. package/package.json +94 -46
  120. package/src/WnfsPlugin.node.ts +19 -0
  121. package/src/WnfsPlugin.test.ts +27 -0
  122. package/src/WnfsPlugin.tsx +9 -35
  123. package/src/blockstore.ts +1 -1
  124. package/src/capabilities/{blockstore/blockstore.ts → blockstore.ts} +3 -2
  125. package/src/capabilities/create-object.ts +33 -0
  126. package/src/capabilities/{file-uploader/file-uploader.ts → file-uploader.ts} +2 -2
  127. package/src/capabilities/index.ts +12 -5
  128. package/src/capabilities/markdown.ts +38 -0
  129. package/src/capabilities/operation-handler.ts +16 -0
  130. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +23 -14
  131. package/src/components/{FileInput.tsx → FileInput/FileInput.tsx} +3 -3
  132. package/src/components/FileInput/index.ts +5 -0
  133. package/src/components/FilePreview/FilePreview.tsx +43 -0
  134. package/src/components/FilePreview/index.ts +5 -0
  135. package/src/containers/FileContainer/FileContainer.tsx +7 -8
  136. package/src/containers/FileContainer/index.ts +1 -3
  137. package/src/extensions/image.stories.tsx +6 -7
  138. package/src/extensions/image.tsx +2 -1
  139. package/src/helpers/load.ts +6 -6
  140. package/src/helpers/upload.ts +3 -3
  141. package/src/index.ts +2 -2
  142. package/src/meta.ts +1 -1
  143. package/src/operations/create-file.ts +30 -0
  144. package/src/operations/create.ts +21 -0
  145. package/src/operations/index.ts +11 -0
  146. package/src/operations/upload.ts +28 -0
  147. package/src/plugin.ts +11 -0
  148. package/src/translations.ts +14 -13
  149. package/src/types/WnfsCapabilities.ts +18 -0
  150. package/src/types/{File.ts → WnfsFile.ts} +11 -5
  151. package/src/types/WnfsOperation.ts +44 -0
  152. package/src/types/index.ts +4 -2
  153. package/src/types/types.ts +3 -60
  154. package/dist/lib/browser/FileContainer-EILNV5LV.mjs.map +0 -7
  155. package/dist/lib/browser/blockstore-Q66HQJ4Q.mjs.map +0 -7
  156. package/dist/lib/browser/chunk-BXGCJRL2.mjs +0 -155
  157. package/dist/lib/browser/chunk-BXGCJRL2.mjs.map +0 -7
  158. package/dist/lib/browser/chunk-HXVPBJ3A.mjs.map +0 -7
  159. package/dist/lib/browser/chunk-UC4HMNZZ.mjs.map +0 -7
  160. package/dist/lib/browser/file-uploader-QL4DTOMM.mjs.map +0 -7
  161. package/dist/lib/browser/index.mjs +0 -117
  162. package/dist/lib/browser/index.mjs.map +0 -7
  163. package/dist/lib/browser/markdown-AYCVG6TJ.mjs.map +0 -7
  164. package/dist/lib/browser/meta.json +0 -1
  165. package/dist/lib/browser/operation-resolver-YYWUF6EY.mjs +0 -99
  166. package/dist/lib/browser/operation-resolver-YYWUF6EY.mjs.map +0 -7
  167. package/dist/lib/browser/react-surface-3LKVDPH7.mjs.map +0 -7
  168. package/dist/lib/browser/types/index.mjs +0 -13
  169. package/dist/types/src/capabilities/blockstore/blockstore.d.ts.map +0 -1
  170. package/dist/types/src/capabilities/blockstore/index.d.ts +0 -3
  171. package/dist/types/src/capabilities/blockstore/index.d.ts.map +0 -1
  172. package/dist/types/src/capabilities/file-uploader/file-uploader.d.ts.map +0 -1
  173. package/dist/types/src/capabilities/file-uploader/index.d.ts +0 -3
  174. package/dist/types/src/capabilities/file-uploader/index.d.ts.map +0 -1
  175. package/dist/types/src/capabilities/markdown/index.d.ts +0 -3
  176. package/dist/types/src/capabilities/markdown/index.d.ts.map +0 -1
  177. package/dist/types/src/capabilities/markdown/markdown.d.ts +0 -5
  178. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +0 -1
  179. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  180. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  181. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  182. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  183. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  184. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  185. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  186. package/dist/types/src/components/FileInput.d.ts.map +0 -1
  187. package/dist/types/src/components/FilePreview.d.ts +0 -11
  188. package/dist/types/src/components/FilePreview.d.ts.map +0 -1
  189. package/dist/types/src/types/File.d.ts.map +0 -1
  190. package/dist/types/src/types/capabilities.d.ts +0 -13
  191. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  192. package/src/capabilities/blockstore/index.ts +0 -7
  193. package/src/capabilities/file-uploader/index.ts +0 -7
  194. package/src/capabilities/markdown/index.ts +0 -7
  195. package/src/capabilities/markdown/markdown.ts +0 -33
  196. package/src/capabilities/operation-resolver/index.ts +0 -7
  197. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -62
  198. package/src/capabilities/react-surface/index.ts +0 -7
  199. package/src/components/FilePreview.tsx +0 -23
  200. package/src/types/capabilities.ts +0 -18
  201. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  202. /package/dist/types/src/capabilities/{blockstore/blockstore.d.ts → blockstore.d.ts} +0 -0
  203. /package/dist/types/src/capabilities/{file-uploader/file-uploader.d.ts → file-uploader.d.ts} +0 -0
  204. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  205. /package/dist/types/src/components/{FileInput.d.ts → FileInput/FileInput.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
3
- import { type WnfsFile } from '../../types';
4
- export type FileContainerProps = SurfaceComponentProps<WnfsFile.File>;
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type WnfsFile } from '#types';
4
+ export type FileContainerProps = AppSurface.ObjectArticleProps<WnfsFile.WnfsFile>;
5
5
  export declare const FileContainer: ({ role, subject: file }: FileContainerProps) => React.JSX.Element | null;
6
6
  export default FileContainer;
7
7
  //# sourceMappingURL=FileContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileContainer/FileContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEtE,eAAO,MAAM,aAAa,GAAI,yBAAyB,kBAAkB,6BAqCxE,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"FileContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileContainer/FileContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIzD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAElF,eAAO,MAAM,aAAa,4BAA6B,kBAAkB,6BAmCxE,CAAC;eAEa,aAAa"}
@@ -1,3 +1,2 @@
1
- import { FileContainer } from './FileContainer';
2
- export default FileContainer;
1
+ export { FileContainer as default } from './FileContainer';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type Extension } from '@codemirror/state';
2
2
  import type { Blockstore } from 'interface-blockstore';
3
3
  import { type Space } from '@dxos/react-client/echo';
4
- import { type WnfsCapabilities } from '../types';
4
+ import { type WnfsCapabilities } from '#types';
5
5
  export type ImageOptions = {
6
6
  blockstore: Blockstore;
7
7
  instances: WnfsCapabilities.Instances;
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA0B,MAAM,mBAAmB,CAAC;AAE7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAOrD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIjD,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,YAAY,KAAG,SAAS,EAgDtD,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA0B,MAAM,mBAAmB,CAAC;AAE7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAM/C,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,YAAa,YAAY,KAAG,SAAS,EAgDtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAuFrE,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
1
+ {"version":3,"file":"image.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAsFrE,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/helpers/common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAMrD,eAAO,MAAM,QAAQ,GAAI,UAAU,MAAM,EAAE,OAAO,KAAK,aAEtD,CAAC;AAMF,qBAAa,GAAG;IACd,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;CAGvC;AAMD,eAAO,MAAM,KAAK,GAAI,YAAY,UAAU,KAAG,cAyB9C,CAAC;AAEF,eAAO,MAAM,SAAS,cAAoB,CAAC;AAM3C,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,KAAG,OAAO,CAAC,UAAU,CAgBvD,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/helpers/common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAMrD,eAAO,MAAM,QAAQ,aAAc,MAAM,SAAS,KAAK,aAEtD,CAAC;AAMF,qBAAa,GAAG;IACd,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAErC;CACF;AAMD,eAAO,MAAM,KAAK,eAAgB,UAAU,KAAG,cAyB9C,CAAC;AAEF,eAAO,MAAM,SAAS,cAAoB,CAAC;AAM3C,eAAO,MAAM,QAAQ,SAAU,IAAI,KAAG,OAAO,CAAC,UAAU,CAgBvD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { Blockstore } from 'interface-blockstore';
2
2
  import { PrivateDirectory, PrivateForest } from 'wnfs';
3
3
  import { type Space } from '@dxos/react-client/echo';
4
- import { type WnfsCapabilities } from '../types';
4
+ import { type WnfsCapabilities } from '#types';
5
5
  export declare const loadWnfs: ({ space, blockstore, instances, }: {
6
6
  space: Space;
7
7
  blockstore: Blockstore;
@@ -1 +1 @@
1
- {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/helpers/load.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAa,gBAAgB,EAAE,aAAa,EAAe,MAAM,MAAM,CAAC;AAG/E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQjD,eAAO,MAAM,QAAQ,GAAU,mCAI5B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC;CACxC;;;EAsBA,CAAC"}
1
+ {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/helpers/load.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAa,gBAAgB,EAAE,aAAa,EAAe,MAAM,MAAM,CAAC;AAG/E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAQ/C,eAAO,MAAM,QAAQ,sCAIlB;IACD,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC;CACxC;;;EAsBA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Blockstore } from 'interface-blockstore';
2
2
  import type { Space } from '@dxos/client/echo';
3
- import { type WnfsCapabilities } from '../types';
3
+ import { type WnfsCapabilities } from '#types';
4
4
  export declare const upload: ({ file, blockstore, instances, space, }: {
5
5
  file: File;
6
6
  blockstore: Blockstore;
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/helpers/upload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,MAAM,GAAU,yCAK1B;IACD,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC;CACd;;;;;EAkCA,CAAC"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/helpers/upload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAM/C,eAAO,MAAM,MAAM,4CAKhB;IACD,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC;CACd;;;;;EAkCA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wnfs-url.d.ts","sourceRoot":"","sources":["../../../../src/helpers/wnfs-url.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,MAAM,CAAC;AAIjE,eAAO,MAAM,OAAO,GAAI,UAAU,MAAM,EAAE,WAEzC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,aAIR,CAAC;AAEvC,eAAO,MAAM,UAAU,GAAU,mDAM9B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,oBAMA,CAAC"}
1
+ {"version":3,"file":"wnfs-url.d.ts","sourceRoot":"","sources":["../../../../src/helpers/wnfs-url.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,MAAM,CAAC;AAIjE,eAAO,MAAM,OAAO,aAAc,MAAM,EAAE,WAEzC,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM,aAIR,CAAC;AAEvC,eAAO,MAAM,UAAU,sDAMpB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,oBAMA,CAAC"}
@@ -1,4 +1,4 @@
1
- export { WnfsCapabilities } from './types';
1
+ export * from './helpers';
2
2
  export * from './meta';
3
- export * from './WnfsPlugin';
3
+ export * from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.CreateFile>;
4
+ export default handler;
5
+ //# sourceMappingURL=create-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-file.d.ts","sourceRoot":"","sources":["../../../../src/operations/create-file.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAK1C,OAAO,EAA8B,aAAa,EAAE,MAAM,UAAU,CAAC;AAErE,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,UAAU,CAanE,CAAC;eAEa,OAAO"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.Create>;
4
+ export default handler;
5
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAY,aAAa,EAAE,MAAM,UAAU,CAAC;AAEnD,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,MAAM,CAQ/D,CAAC;eAEa,OAAO"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const WnfsOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,uBAAuB,yCAInC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.Upload>;
4
+ export default handler;
5
+ //# sourceMappingURL=upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/operations/upload.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAK1C,OAAO,EAAoB,aAAa,EAAE,MAAM,UAAU,CAAC;AAE3D,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,MAAM,CAW/D,CAAC;eAEa,OAAO"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const WnfsPlugin: Plugin.PluginFactory<void>;
3
+ export { WnfsOperationHandlerSet } from './operations';
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,UAAU,4BAA6C,CAAC;AAErE,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,20 +1,29 @@
1
- import { meta } from './meta';
2
- import { WnfsFile } from './types';
3
1
  export declare const translations: [{
4
2
  readonly 'en-US': {
5
- readonly [WnfsFile.File.typename]: {
6
- readonly 'typename label': "File";
7
- readonly 'typename label_zero': "Files";
8
- readonly 'typename label_one': "File";
9
- readonly 'typename label_other': "Files";
10
- readonly 'object name placeholder': "New file";
11
- readonly 'rename object label': "Rename file";
12
- readonly 'delete object label': "Delete file";
13
- readonly 'object deleted label': "File deleted";
14
- };
15
- readonly [meta.id]: {
16
- readonly 'plugin name': "Files";
17
- readonly 'file input placeholder': "Drop a file here, or click to select a file";
3
+ readonly [x: string]: {
4
+ readonly 'typename.label': 'File';
5
+ readonly 'typename.label_zero': 'Files';
6
+ readonly 'typename.label_one': 'File';
7
+ readonly 'typename.label_other': 'Files';
8
+ readonly 'object-name.placeholder': 'New file';
9
+ readonly 'add-object.label': 'Add file';
10
+ readonly 'rename-object.label': 'Rename file';
11
+ readonly 'delete-object.label': 'Delete file';
12
+ readonly 'object-deleted.label': 'File deleted';
13
+ readonly 'plugin.name'?: undefined;
14
+ readonly 'file-input.placeholder'?: undefined;
15
+ } | {
16
+ readonly 'typename.label'?: undefined;
17
+ readonly 'typename.label_zero'?: undefined;
18
+ readonly 'typename.label_one'?: undefined;
19
+ readonly 'typename.label_other'?: undefined;
20
+ readonly 'object-name.placeholder'?: undefined;
21
+ readonly 'add-object.label'?: undefined;
22
+ readonly 'rename-object.label'?: undefined;
23
+ readonly 'delete-object.label'?: undefined;
24
+ readonly 'object-deleted.label'?: undefined;
25
+ readonly 'plugin.name': 'Files';
26
+ readonly 'file-input.placeholder': 'Drop a file here, or click to select a file';
18
27
  };
19
28
  };
20
29
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;UASvB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;UAGR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;uCAIC,MAAM;4CACD,OAAO;2CACR,MAAM;6CACJ,OAAO;gDACJ,UAAU;yCACjB,UAAU;4CACP,aAAa;4CACb,aAAa;6CACZ,cAAc;;;;;;;;;;;;;oCAGvB,OAAO;+CACI,6CAA6C;;;EAIhD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type Blockstore as BlockstoreInterface } from 'interface-blockstore';
2
+ import { type PrivateDirectory, type PrivateForest } from 'wnfs';
3
+ import { Capability } from '@dxos/app-framework';
4
+ import { type SpaceId } from '@dxos/keys';
5
+ export declare const Blockstore: Capability.InterfaceDef<BlockstoreInterface<{}, {}, {}, {}, {}, {}, {}, {}>>;
6
+ export type Instances = Record<SpaceId, {
7
+ directory: PrivateDirectory;
8
+ forest: PrivateForest;
9
+ }>;
10
+ export declare const Instances: Capability.InterfaceDef<Instances>;
11
+ //# sourceMappingURL=WnfsCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WnfsCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/WnfsCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,MAAM,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAI1C,eAAO,MAAM,UAAU,8EAA2E,CAAC;AAEnG,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,EAAE;IAAE,SAAS,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AAChG,eAAO,MAAM,SAAS,oCAAgE,CAAC"}
@@ -1,16 +1,16 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { Obj, Type } from '@dxos/echo';
3
- export declare const File: Type.Obj<{
3
+ export declare const WnfsFile: Type.Obj<{
4
4
  readonly name?: string | undefined;
5
5
  readonly type: string;
6
6
  readonly cid: string;
7
7
  readonly timestamp?: string | undefined;
8
8
  }, Schema.Struct.Fields>;
9
- export type File = Schema.Schema.Type<typeof File>;
10
- export declare const make: (props: Obj.MakeProps<typeof File>) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
9
+ export type WnfsFile = Schema.Schema.Type<typeof WnfsFile>;
10
+ export declare const make: (props: Obj.MakeProps<typeof WnfsFile>) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
11
11
  readonly name?: string | undefined;
12
12
  readonly type: string;
13
13
  readonly cid: string;
14
14
  readonly timestamp?: string | undefined;
15
15
  }>;
16
- //# sourceMappingURL=File.d.ts.map
16
+ //# sourceMappingURL=WnfsFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WnfsFile.d.ts","sourceRoot":"","sources":["../../../../src/types/WnfsFile.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGnD,eAAO,MAAM,QAAQ;;;;;wBAcpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI,UAAW,GAAG,CAAC,SAAS,CAAC,OAAO,QAAQ,CAAC;;;;;EAA8B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { Operation } from '@dxos/compute';
3
+ import { Database } from '@dxos/echo';
4
+ export declare const Create: Operation.Definition<{
5
+ readonly name: string;
6
+ readonly type: string;
7
+ readonly cid: string;
8
+ }, {
9
+ readonly object: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
10
+ readonly name?: string | undefined;
11
+ readonly type: string;
12
+ readonly cid: string;
13
+ readonly timestamp?: string | undefined;
14
+ };
15
+ }, Capability.Service>;
16
+ export declare const Upload: Operation.Definition<{
17
+ readonly file: File;
18
+ } & {
19
+ readonly db: Database.Database;
20
+ }, {
21
+ readonly name: string;
22
+ readonly type: string;
23
+ readonly url: string;
24
+ readonly cid: string;
25
+ }, Capability.Service>;
26
+ export declare const CreateFile: Operation.Definition<{
27
+ readonly file: File;
28
+ } & {
29
+ readonly db: Database.Database;
30
+ }, {
31
+ readonly object: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
32
+ readonly name?: string | undefined;
33
+ readonly type: string;
34
+ readonly cid: string;
35
+ readonly timestamp?: string | undefined;
36
+ };
37
+ }, Capability.Service>;
38
+ //# sourceMappingURL=WnfsOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WnfsOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/WnfsOperation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,eAAO,MAAM,MAAM;;;;;;;;;;;sBAOjB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;sBAKjB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;sBAOrB,CAAC"}
@@ -1,4 +1,5 @@
1
- export * from './capabilities';
2
- export * as WnfsFile from './File';
3
1
  export * from './types';
2
+ export * as WnfsCapabilities from './WnfsCapabilities';
3
+ export * as WnfsFile from './WnfsFile';
4
+ export * as WnfsOperation from './WnfsOperation';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,QAAQ,CAAC;AACnC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AAExB,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC"}
@@ -1,112 +1,9 @@
1
1
  import * as Schema from 'effect/Schema';
2
- import { Capability } from '@dxos/app-framework';
3
- import { Database } from '@dxos/echo';
4
2
  export declare namespace WnfsAction {
5
3
  const UploadAnnotationId: unique symbol;
6
4
  const UploadFileSchema: Schema.Struct<{
7
- file: Schema.instanceOf<any>;
5
+ file: Schema.instanceOf<File>;
8
6
  }>;
9
7
  type UploadFileForm = Schema.Schema.Type<typeof UploadFileSchema>;
10
8
  }
11
- export declare namespace WnfsOperation {
12
- const OnCreateSpace: Omit<{
13
- readonly meta: {
14
- readonly key: `${string}/on-create-space`;
15
- readonly name: "On Create Space";
16
- };
17
- readonly services: readonly [typeof Capability.Service];
18
- readonly schema: {
19
- readonly input: Schema.Struct<{
20
- space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
21
- rootCollection: import("@dxos/echo/Type").Obj<{
22
- readonly name?: string | undefined;
23
- readonly objects: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>[];
24
- }, Schema.Struct.Fields>;
25
- isDefault: Schema.optional<typeof Schema.Boolean>;
26
- }>;
27
- readonly output: typeof Schema.Void;
28
- };
29
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
30
- readonly executionMode: "sync" | "async";
31
- };
32
- const Create: Omit<{
33
- readonly meta: {
34
- readonly key: `${string}/create`;
35
- readonly name: "Create WNFS File";
36
- };
37
- readonly services: readonly [typeof Capability.Service];
38
- readonly schema: {
39
- readonly input: Schema.SchemaClass<{
40
- readonly name: string;
41
- readonly type: string;
42
- readonly cid: string;
43
- }, {
44
- readonly name: string;
45
- readonly type: string;
46
- readonly cid: string;
47
- }, never>;
48
- readonly output: Schema.Struct<{
49
- object: import("@dxos/echo/Type").Obj<{
50
- readonly name?: string | undefined;
51
- readonly type: string;
52
- readonly cid: string;
53
- readonly timestamp?: string | undefined;
54
- }, Schema.Struct.Fields>;
55
- }>;
56
- };
57
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
58
- readonly executionMode: "sync" | "async";
59
- };
60
- const Upload: Omit<{
61
- readonly meta: {
62
- readonly key: `${string}/upload`;
63
- readonly name: "Upload File";
64
- };
65
- readonly services: readonly [typeof Capability.Service];
66
- readonly schema: {
67
- readonly input: Schema.extend<Schema.Struct<{
68
- file: Schema.instanceOf<any>;
69
- }>, Schema.Struct<{
70
- db: Schema.Schema<Database.Database, Database.Database, never>;
71
- }>>;
72
- readonly output: Schema.SchemaClass<{
73
- readonly name: string;
74
- readonly type: string;
75
- readonly cid: string;
76
- readonly url: string;
77
- }, {
78
- readonly name: string;
79
- readonly type: string;
80
- readonly cid: string;
81
- readonly url: string;
82
- }, never>;
83
- };
84
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
85
- readonly executionMode: "sync" | "async";
86
- };
87
- const CreateFile: Omit<{
88
- readonly meta: {
89
- readonly key: `${string}/create-file`;
90
- readonly name: "Create File";
91
- };
92
- readonly services: readonly [typeof Capability.Service];
93
- readonly schema: {
94
- readonly input: Schema.extend<Schema.Struct<{
95
- file: Schema.instanceOf<any>;
96
- }>, Schema.Struct<{
97
- db: Schema.Schema<Database.Database, Database.Database, never>;
98
- }>>;
99
- readonly output: Schema.Struct<{
100
- object: import("@dxos/echo/Type").Obj<{
101
- readonly name?: string | undefined;
102
- readonly type: string;
103
- readonly cid: string;
104
- readonly timestamp?: string | undefined;
105
- }, Schema.Struct.Fields>;
106
- }>;
107
- };
108
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
109
- readonly executionMode: "sync" | "async";
110
- };
111
- }
112
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,yBAAiB,UAAU,CAAC;IACnB,MAAM,kBAAkB,eAA6C,CAAC;IAEtE,MAAM,gBAAgB;;MAS3B,CAAC;IAEH,KAAY,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAC1E;AAID,yBAAiB,aAAa,CAAC;IACtB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;KAWxB,CAAC;IAEI,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;KASjB,CAAC;IAEI,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;KAOjB,CAAC;IAEI,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;KASrB,CAAC;CACJ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,yBAAiB,UAAU,CAAC,CAAC;IACpB,MAAM,kBAAkB,eAA6C,CAAC;IAEtE,MAAM,gBAAgB;;MAS3B,CAAC;IAEH,KAAY,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAC1E"}