@dxos/plugin-wnfs 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934

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 (169) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +2 -2
  3. package/dist/lib/neutral/FileArticle-B3NF2VKL.mjs +58 -0
  4. package/dist/lib/neutral/FileArticle-B3NF2VKL.mjs.map +7 -0
  5. package/dist/lib/neutral/WnfsPlugin.mjs +50 -0
  6. package/dist/lib/neutral/WnfsPlugin.mjs.map +7 -0
  7. package/dist/lib/neutral/WnfsPlugin.node.mjs +23 -0
  8. package/dist/lib/neutral/WnfsPlugin.node.mjs.map +7 -0
  9. package/dist/lib/neutral/blockstore-3NLSWC7Z.mjs +190 -0
  10. package/dist/lib/neutral/blockstore-3NLSWC7Z.mjs.map +7 -0
  11. package/dist/lib/neutral/capabilities/index.mjs +19 -0
  12. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  13. package/dist/lib/{browser/chunk-N6Y4QPNF.mjs → neutral/chunk-7KFJ6LYH.mjs} +51 -17
  14. package/dist/lib/neutral/chunk-7KFJ6LYH.mjs.map +7 -0
  15. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  16. package/dist/lib/neutral/chunk-LHUHUCBD.mjs +18 -0
  17. package/dist/lib/neutral/chunk-LHUHUCBD.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-UIZBWELF.mjs +8 -0
  19. package/dist/lib/neutral/chunk-UIZBWELF.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-VWVCHTUK.mjs +125 -0
  21. package/dist/lib/neutral/chunk-VWVCHTUK.mjs.map +7 -0
  22. package/dist/lib/neutral/components/index.mjs +63 -0
  23. package/dist/lib/neutral/components/index.mjs.map +7 -0
  24. package/dist/lib/neutral/containers/index.mjs +9 -0
  25. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  26. package/dist/lib/neutral/create-4ERE5CA4.mjs +23 -0
  27. package/dist/lib/neutral/create-4ERE5CA4.mjs.map +7 -0
  28. package/dist/lib/neutral/create-file-RAHDIJVU.mjs +40 -0
  29. package/dist/lib/neutral/create-file-RAHDIJVU.mjs.map +7 -0
  30. package/dist/lib/neutral/create-object-7PJC47BB.mjs +33 -0
  31. package/dist/lib/neutral/create-object-7PJC47BB.mjs.map +7 -0
  32. package/dist/lib/neutral/file-uploader-WOF3H3FN.mjs +34 -0
  33. package/dist/lib/neutral/file-uploader-WOF3H3FN.mjs.map +7 -0
  34. package/dist/lib/neutral/helpers/index.mjs +26 -0
  35. package/dist/lib/neutral/helpers/index.mjs.map +7 -0
  36. package/dist/lib/neutral/index.mjs +40 -0
  37. package/dist/lib/neutral/index.mjs.map +7 -0
  38. package/dist/lib/neutral/markdown-I4FYAUCA.mjs +204 -0
  39. package/dist/lib/neutral/markdown-I4FYAUCA.mjs.map +7 -0
  40. package/dist/lib/neutral/meta.json +1 -0
  41. package/dist/lib/neutral/meta.mjs +8 -0
  42. package/dist/lib/neutral/meta.mjs.map +7 -0
  43. package/dist/lib/neutral/operation-handler-NPYSIPMR.mjs +13 -0
  44. package/dist/lib/neutral/operation-handler-NPYSIPMR.mjs.map +7 -0
  45. package/dist/lib/neutral/operations/index.mjs +8 -0
  46. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  47. package/dist/lib/neutral/plugin.mjs +16 -0
  48. package/dist/lib/neutral/plugin.mjs.map +7 -0
  49. package/dist/lib/neutral/react-surface-6QHCDYC3.mjs +53 -0
  50. package/dist/lib/neutral/react-surface-6QHCDYC3.mjs.map +7 -0
  51. package/dist/lib/neutral/translations.mjs +30 -0
  52. package/dist/lib/neutral/translations.mjs.map +7 -0
  53. package/dist/lib/neutral/types/index.mjs +14 -0
  54. package/dist/lib/neutral/types/index.mjs.map +7 -0
  55. package/dist/lib/neutral/upload-VA5CSUEP.mjs +33 -0
  56. package/dist/lib/neutral/upload-VA5CSUEP.mjs.map +7 -0
  57. package/dist/types/src/WnfsPlugin.d.ts +1 -0
  58. package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
  59. package/dist/types/src/WnfsPlugin.node.d.ts +4 -0
  60. package/dist/types/src/WnfsPlugin.node.d.ts.map +1 -0
  61. package/dist/types/src/WnfsPlugin.test.d.ts +2 -0
  62. package/dist/types/src/WnfsPlugin.test.d.ts.map +1 -0
  63. package/dist/types/src/blockstore.d.ts.map +1 -1
  64. package/dist/types/src/capabilities/blockstore.d.ts.map +1 -1
  65. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  66. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/file-uploader.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/index.d.ts +7 -1
  69. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/markdown.d.ts +2 -1
  71. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  72. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  73. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  74. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  75. package/dist/types/src/components/FileInput/FileInput.d.ts.map +1 -1
  76. package/dist/types/src/components/FilePreview/FilePreview.d.ts +1 -5
  77. package/dist/types/src/components/FilePreview/FilePreview.d.ts.map +1 -1
  78. package/dist/types/src/containers/FileArticle/FileArticle.d.ts +7 -0
  79. package/dist/types/src/containers/FileArticle/FileArticle.d.ts.map +1 -0
  80. package/dist/types/src/containers/FileArticle/index.d.ts +2 -0
  81. package/dist/types/src/containers/FileArticle/index.d.ts.map +1 -0
  82. package/dist/types/src/containers/index.d.ts +1 -1
  83. package/dist/types/src/containers/index.d.ts.map +1 -1
  84. package/dist/types/src/extensions/image.d.ts.map +1 -1
  85. package/dist/types/src/extensions/image.stories.d.ts.map +1 -1
  86. package/dist/types/src/helpers/common.d.ts.map +1 -1
  87. package/dist/types/src/helpers/load.d.ts.map +1 -1
  88. package/dist/types/src/helpers/upload.d.ts.map +1 -1
  89. package/dist/types/src/helpers/wnfs-url.d.ts.map +1 -1
  90. package/dist/types/src/index.d.ts +2 -2
  91. package/dist/types/src/index.d.ts.map +1 -1
  92. package/dist/types/src/operations/create-file.d.ts +3 -3
  93. package/dist/types/src/operations/create-file.d.ts.map +1 -1
  94. package/dist/types/src/operations/create.d.ts +3 -3
  95. package/dist/types/src/operations/create.d.ts.map +1 -1
  96. package/dist/types/src/operations/index.d.ts +1 -2
  97. package/dist/types/src/operations/index.d.ts.map +1 -1
  98. package/dist/types/src/operations/upload.d.ts +3 -3
  99. package/dist/types/src/operations/upload.d.ts.map +1 -1
  100. package/dist/types/src/plugin.d.ts +4 -0
  101. package/dist/types/src/plugin.d.ts.map +1 -0
  102. package/dist/types/src/translations.d.ts +24 -16
  103. package/dist/types/src/translations.d.ts.map +1 -1
  104. package/dist/types/src/types/WnfsCapabilities.d.ts +11 -0
  105. package/dist/types/src/types/WnfsCapabilities.d.ts.map +1 -0
  106. package/dist/types/src/types/{File.d.ts → WnfsFile.d.ts} +4 -4
  107. package/dist/types/src/types/WnfsFile.d.ts.map +1 -0
  108. package/dist/types/src/{operations/definitions.d.ts → types/WnfsOperation.d.ts} +3 -3
  109. package/dist/types/src/types/WnfsOperation.d.ts.map +1 -0
  110. package/dist/types/src/types/index.d.ts +3 -2
  111. package/dist/types/src/types/index.d.ts.map +1 -1
  112. package/dist/types/src/types/types.d.ts.map +1 -1
  113. package/dist/types/tsconfig.tsbuildinfo +1 -1
  114. package/package.json +90 -58
  115. package/src/WnfsPlugin.node.ts +19 -0
  116. package/src/WnfsPlugin.test.ts +27 -0
  117. package/src/WnfsPlugin.tsx +8 -33
  118. package/src/capabilities/blockstore.ts +1 -1
  119. package/src/capabilities/create-object.ts +33 -0
  120. package/src/capabilities/file-uploader.ts +2 -2
  121. package/src/capabilities/index.ts +2 -1
  122. package/src/capabilities/markdown.ts +16 -12
  123. package/src/capabilities/operation-handler.ts +1 -1
  124. package/src/capabilities/react-surface.tsx +18 -9
  125. package/src/containers/{FileContainer/FileContainer.tsx → FileArticle/FileArticle.tsx} +3 -3
  126. package/src/containers/FileArticle/index.ts +5 -0
  127. package/src/containers/index.ts +1 -1
  128. package/src/extensions/image.stories.tsx +2 -2
  129. package/src/helpers/load.ts +2 -2
  130. package/src/helpers/upload.ts +1 -1
  131. package/src/index.ts +2 -2
  132. package/src/operations/create-file.ts +4 -5
  133. package/src/operations/create.ts +3 -4
  134. package/src/operations/index.ts +1 -3
  135. package/src/operations/upload.ts +4 -5
  136. package/src/plugin.ts +11 -0
  137. package/src/translations.ts +1 -1
  138. package/src/types/WnfsCapabilities.ts +18 -0
  139. package/src/types/{File.ts → WnfsFile.ts} +5 -3
  140. package/src/{operations/definitions.ts → types/WnfsOperation.ts} +7 -4
  141. package/src/types/index.ts +4 -2
  142. package/dist/lib/browser/chunk-BM3MEFES.mjs +0 -69
  143. package/dist/lib/browser/chunk-BM3MEFES.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-N6Y4QPNF.mjs.map +0 -7
  145. package/dist/lib/browser/chunk-VXUCZHVZ.mjs +0 -69
  146. package/dist/lib/browser/chunk-VXUCZHVZ.mjs.map +0 -7
  147. package/dist/lib/browser/create-NOHKWE67.mjs +0 -24
  148. package/dist/lib/browser/create-NOHKWE67.mjs.map +0 -7
  149. package/dist/lib/browser/create-file-N7ADCFOF.mjs +0 -49
  150. package/dist/lib/browser/create-file-N7ADCFOF.mjs.map +0 -7
  151. package/dist/lib/browser/index.mjs +0 -117
  152. package/dist/lib/browser/index.mjs.map +0 -7
  153. package/dist/lib/browser/meta.json +0 -1
  154. package/dist/lib/browser/operations/index.mjs +0 -13
  155. package/dist/lib/browser/operations/index.mjs.map +0 -7
  156. package/dist/lib/browser/types/index.mjs +0 -11
  157. package/dist/lib/browser/upload-DA7GBOXF.mjs +0 -42
  158. package/dist/lib/browser/upload-DA7GBOXF.mjs.map +0 -7
  159. package/dist/types/src/containers/FileContainer/FileContainer.d.ts +0 -7
  160. package/dist/types/src/containers/FileContainer/FileContainer.d.ts.map +0 -1
  161. package/dist/types/src/containers/FileContainer/index.d.ts +0 -2
  162. package/dist/types/src/containers/FileContainer/index.d.ts.map +0 -1
  163. package/dist/types/src/operations/definitions.d.ts.map +0 -1
  164. package/dist/types/src/types/File.d.ts.map +0 -1
  165. package/dist/types/src/types/capabilities.d.ts +0 -13
  166. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  167. package/src/containers/FileContainer/index.ts +0 -5
  168. package/src/types/capabilities.ts +0 -18
  169. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport type * as Schema from 'effect/Schema';\nimport * as SchemaAST from 'effect/SchemaAST';\nimport React, { useCallback } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { findAnnotation } from '@dxos/effect';\nimport { type FormFieldComponentProps } from '@dxos/react-ui-form';\n\nimport { FileInput } from '#components';\nimport { FileArticle } from '#containers';\nimport { WnfsAction, WnfsFile } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'article',\n // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.\n filter: AppSurface.oneOf(\n AppSurface.object(AppSurface.Article, WnfsFile.WnfsFile),\n AppSurface.object(AppSurface.Section, WnfsFile.WnfsFile),\n AppSurface.object(AppSurface.Slide, WnfsFile.WnfsFile),\n ),\n component: ({ data, role }) => <FileArticle role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: 'create-form',\n role: 'form-input',\n filter: (data): data is { prop: string; schema: Schema.Schema.Any; fieldPropertyAst?: SchemaAST.AST } => {\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, fieldPropertyAst }, ...props }) => {\n const ast = fieldPropertyAst;\n if (!ast) {\n return null;\n }\n\n const inputProps = { ...props, type: ast } as unknown as FormFieldComponentProps;\n const handleChange = useCallback(\n (file: File) => inputProps.onValueChange?.(ast, file),\n [ast, inputProps.onValueChange],\n );\n\n return <FileInput schema={schema} onChange={handleChange} />;\n },\n }),\n ]),\n ),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAGxB,OAAOC,SAASC,mBAAmB;AAEnC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAG/B,SAASC,iBAAiB;AAC1B,SAASC,mBAAmB;AAC5B,SAASC,YAAYC,gBAAgB;AAErC,IAAA,wBAAeP,WAAWQ,WAAW,MAC5BC,eACLT,WAAWU,YAAYX,aAAaY,cAAc;EAChDV,QAAQW,OAAO;IACbC,IAAI;;IAEJC,QAAQZ,WAAWa,MACjBb,WAAWc,OAAOd,WAAWe,SAASV,SAASA,QAAQ,GACvDL,WAAWc,OAAOd,WAAWgB,SAASX,SAASA,QAAQ,GACvDL,WAAWc,OAAOd,WAAWiB,OAAOZ,SAASA,QAAQ,CAAA;IAEvDa,WAAW,CAAC,EAAEC,MAAMC,KAAI,MAAO,sBAAA,cAACjB,aAAAA;MAAYiB;MAAYC,SAASF,KAAKE;;EACxE,CAAA;EACAtB,QAAQW,OAAO;IACbC,IAAI;IACJS,MAAM;IACNR,QAAQ,CAACO,SAAAA;AACP,YAAMG,aAAarB,eAChBkB,KAAKI,OAA6BC,KACnCpB,WAAWqB,kBAAkB;AAE/B,aAAO,CAAC,CAACH;IACX;IACAJ,WAAW,CAAC,EAAEC,MAAM,EAAEI,QAAQG,iBAAgB,GAAI,GAAGC,MAAAA,MAAO;AAC1D,YAAMH,MAAME;AACZ,UAAI,CAACF,KAAK;AACR,eAAO;MACT;AAEA,YAAMI,aAAa;QAAE,GAAGD;QAAOE,MAAML;MAAI;AACzC,YAAMM,eAAelC,YACnB,CAACmC,SAAeH,WAAWI,gBAAgBR,KAAKO,IAAAA,GAChD;QAACP;QAAKI,WAAWI;OAAc;AAGjC,aAAO,sBAAA,cAAC9B,WAAAA;QAAUqB;QAAgBU,UAAUH;;IAC9C;EACF,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "useCallback", "Capabilities", "Capability", "Surface", "AppSurface", "findAnnotation", "FileInput", "FileArticle", "WnfsAction", "WnfsFile", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "oneOf", "object", "Article", "Section", "Slide", "component", "data", "role", "subject", "annotation", "schema", "ast", "UploadAnnotationId", "fieldPropertyAst", "props", "inputProps", "type", "handleChange", "file", "onValueChange", "onChange"]
7
+ }
@@ -0,0 +1,30 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { meta } from "#meta";
5
+ import { WnfsFile } from "#types";
6
+ var translations = [
7
+ {
8
+ "en-US": {
9
+ [WnfsFile.WnfsFile.typename]: {
10
+ "typename.label": "File",
11
+ "typename.label_zero": "Files",
12
+ "typename.label_one": "File",
13
+ "typename.label_other": "Files",
14
+ "object-name.placeholder": "New file",
15
+ "add-object.label": "Add file",
16
+ "rename-object.label": "Rename file",
17
+ "delete-object.label": "Delete file",
18
+ "object-deleted.label": "File deleted"
19
+ },
20
+ [meta.id]: {
21
+ "plugin.name": "Files",
22
+ "file-input.placeholder": "Drop a file here, or click to select a file"
23
+ }
24
+ }
25
+ }
26
+ ];
27
+ export {
28
+ translations
29
+ };
30
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { WnfsFile } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [WnfsFile.WnfsFile.typename]: {\n 'typename.label': 'File',\n 'typename.label_zero': 'Files',\n 'typename.label_one': 'File',\n 'typename.label_other': 'Files',\n 'object-name.placeholder': 'New file',\n 'add-object.label': 'Add file',\n 'rename-object.label': 'Rename file',\n 'delete-object.label': 'Delete file',\n 'object-deleted.label': 'File deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Files',\n 'file-input.placeholder': 'Drop a file here, or click to select a file',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAMA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAElB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,SAASA,SAASE,QAAQ,GAAG;QAC5B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACH,KAAKI,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;MAC5B;IACF;EACF;;",
6
+ "names": ["meta", "WnfsFile", "translations", "typename", "id"]
7
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ WnfsAction,
3
+ WnfsCapabilities_exports,
4
+ WnfsFile_exports,
5
+ WnfsOperation_exports
6
+ } from "../chunk-VWVCHTUK.mjs";
7
+ import "../chunk-J5LGTIGS.mjs";
8
+ export {
9
+ WnfsAction,
10
+ WnfsCapabilities_exports as WnfsCapabilities,
11
+ WnfsFile_exports as WnfsFile,
12
+ WnfsOperation_exports as WnfsOperation
13
+ };
14
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ import {
2
+ WnfsCapabilities_exports,
3
+ WnfsOperation_exports
4
+ } from "./chunk-VWVCHTUK.mjs";
5
+ import {
6
+ upload
7
+ } from "./chunk-7KFJ6LYH.mjs";
8
+ import "./chunk-J5LGTIGS.mjs";
9
+
10
+ // src/operations/upload.ts
11
+ import * as Effect from "effect/Effect";
12
+ import { Capability } from "@dxos/app-framework";
13
+ import { Operation } from "@dxos/compute";
14
+ import { invariant } from "@dxos/invariant";
15
+ import { ClientCapabilities } from "@dxos/plugin-client";
16
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-wnfs/src/operations/upload.ts";
17
+ var handler = WnfsOperation_exports.Upload.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ file, db }) {
18
+ const client = yield* Capability.get(ClientCapabilities.Client);
19
+ const blockstore = yield* Capability.get(WnfsCapabilities_exports.Blockstore);
20
+ const space = client.spaces.get(db.spaceId);
21
+ invariant(space, "Space not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 15, S: this, A: ["space", "'Space not found'"] });
22
+ const info = yield* Effect.promise(() => upload({
23
+ file,
24
+ blockstore,
25
+ space
26
+ }));
27
+ return info;
28
+ })));
29
+ var upload_default = handler;
30
+ export {
31
+ upload_default as default
32
+ };
33
+ //# sourceMappingURL=upload-VA5CSUEP.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/upload.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\nimport { ClientCapabilities } from '@dxos/plugin-client';\n\nimport { upload } from '../helpers';\nimport { WnfsCapabilities, WnfsOperation } from '../types';\n\nconst handler: Operation.WithHandler<typeof WnfsOperation.Upload> = WnfsOperation.Upload.pipe(\n Operation.withHandler(\n 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);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,0BAA0B;AAKnC,IAAA,eAAoEC;IAI9D,UAAMC,sBAAoBC,OAAAA,KAAWC,UAAIC,YAAiBC,kBAAU,WAAA,EAAA,MAAA,GAAA,GAAA;AACpE,QAAMC,SAAQC,OAAOC,WAAWC,IAAGC,mBAAO,MAAA;AAC1CC,QAAAA,aAAiB,OAAA,WAAA,IAAA,yBAAA,UAAA;AACjB,QAAMC,QAAO,OAAOC,OAAOC,IAAAA,GAAQ,OAAMC;YAASC,OAAAA,mBAAAA,EAAAA,YAAAA,YAAAA,GAAAA,cAAAA,GAAAA,IAAAA,GAAAA,MAAAA,GAAAA,CAAAA,SAAAA,mBAAAA,EAAAA,CAAAA;eAAMf,OAAAA,eAAAA,MAAAA,OAAAA;IAAYK;IAAM;IACnEM;EACT,CAAA,CAAA;AAIJ,SAAA;;;",
6
+ "names": ["Effect", "Capability", "Operation", "invariant", "ClientCapabilities", "WnfsOperation", "blockstore", "Capability", "get", "WnfsCapabilities", "Blockstore", "space", "client", "spaces", "db", "spaceId", "invariant", "info", "Effect", "promise", "upload", "file"]
7
+ }
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const WnfsPlugin: Plugin.PluginFactory<void>;
3
+ export default WnfsPlugin;
3
4
  //# sourceMappingURL=WnfsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WnfsPlugin.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAc,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgBzD,eAAO,MAAM,UAAU,4BAmDtB,CAAC"}
1
+ {"version":3,"file":"WnfsPlugin.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAUzD,eAAO,MAAM,UAAU,4BA+BtB,CAAC;eAEa,UAAU"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const WnfsPlugin: Plugin.PluginFactory<void>;
3
+ export default WnfsPlugin;
4
+ //# sourceMappingURL=WnfsPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WnfsPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,UAAU,4BAKtB,CAAC;eAEa,UAAU"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WnfsPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WnfsPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/WnfsPlugin.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"blockstore.d.ts","sourceRoot":"","sources":["../../../src/blockstore.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnC,eAAO,MAAM,MAAM,GAAI,UAAU,MAAM,oBAEtC,CAAC;AAEF;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;gBAQrC,OAAO,CAAC,EAAE,MAAM;IAWtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM;IAOxB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAU/B,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;IAqBlC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAc/B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IASrD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAMxB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IASnD,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAclD,QAAQ,CAAC,cAAc,SAAgC;CAsExD"}
1
+ {"version":3,"file":"blockstore.d.ts","sourceRoot":"","sources":["../../../src/blockstore.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnC,eAAO,MAAM,MAAM,aAAc,MAAM,oBAEtC,CAAC;AAEF;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;IAQjD,YAAY,OAAO,CAAC,EAAE,MAAM,EAS3B;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAY1B;IAED,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAGtC;IAIc,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ7C;IAEc,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,CAmBhD;IAEc,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAY7C;IAEc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAO1D;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAE7B;IAIK,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAOxD;IAEK,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAUjD;IAID,QAAQ,CAAC,cAAc,SAAgC;CAsExD"}
@@ -1 +1 @@
1
- {"version":3,"file":"blockstore.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blockstore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAOjD,wBASE"}
1
+ {"version":3,"file":"blockstore.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blockstore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { SpaceCapabilities } from '@dxos/plugin-space';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ createObject: import("@dxos/plugin-space").CreateObject;
7
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
8
+ customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
9
+ }>>>, never, never>;
10
+ export default _default;
11
+ //# sourceMappingURL=create-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/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"}
1
+ {"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/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"}
@@ -1,6 +1,12 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- import { OperationHandlerSet } from '@dxos/operation';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
3
  export declare const Blockstore: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("interface-blockstore").Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>>>, Error>;
4
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ createObject: import("@dxos/plugin-space").CreateObject;
7
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
8
+ customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
9
+ }>>>, Error>;
4
10
  export declare const FileUploader: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.FileUploader>>, Error>;
5
11
  export declare const Markdown: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, Error>;
6
12
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,UAAU,mKAA8D,CAAC;AACtF,eAAO,MAAM,YAAY,kJAAmE,CAAC;AAC7F,eAAO,MAAM,QAAQ,qJAA0D,CAAC;AAChF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,UAAU,mKAA8D,CAAC;AACtF,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC;AAC7F,eAAO,MAAM,QAAQ,qJAA0D,CAAC;AAChF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, never, Capability.Service>;
3
+ import { type MarkdownExtensionProvider } from '@dxos/plugin-markdown';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<MarkdownExtensionProvider[]>>, never, Capability.Service>;
4
5
  export default _default;
5
6
  //# sourceMappingURL=markdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/markdown.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAQjD,wBAmBE"}
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/markdown.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,yBAAyB,EAAwB,MAAM,uBAAuB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import type { OperationHandlerSet } from '@dxos/operation';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
4
  declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=operation-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAU/D,wBAgCE"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,sBAAsB,cAAc,sBA0B7D,CAAC"}
1
+ {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,SAAS,yBAA0B,cAAc,sBA0B7D,CAAC"}
@@ -8,9 +8,5 @@ export type FilePreviewProps = {
8
8
  */
9
9
  export declare const FilePreview: React.ForwardRefExoticComponent<Omit<FilePreviewProps, "className"> & {
10
10
  classNames?: import("@dxos/ui-types").ClassNameValue;
11
- } & {
12
- className?: string;
13
- children?: React.ReactNode;
14
- role?: string;
15
- } & React.RefAttributes<HTMLElement>>;
11
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLElement>>;
16
12
  //# sourceMappingURL=FilePreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/FilePreview/FilePreview.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;qCA6BvB,CAAC"}
1
+ {"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/FilePreview/FilePreview.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,WAAW;;wHA6BvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type WnfsFile } from '#types';
4
+ export type FileArticleProps = AppSurface.ObjectArticleProps<WnfsFile.WnfsFile>;
5
+ export declare const FileArticle: ({ role, subject: file }: FileArticleProps) => React.JSX.Element | null;
6
+ export default FileArticle;
7
+ //# sourceMappingURL=FileArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileArticle/FileArticle.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,gBAAgB,GAAG,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAEhF,eAAO,MAAM,WAAW,4BAA6B,gBAAgB,6BAmCpE,CAAC;eAEa,WAAW"}
@@ -0,0 +1,2 @@
1
+ export { FileArticle as default } from './FileArticle';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { type ComponentType } from 'react';
2
- export declare const FileContainer: ComponentType<any>;
2
+ export declare const FileArticle: ComponentType<any>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,GAAG,CAAuC,CAAC"}
@@ -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;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,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;AAsFrE,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 +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,QAAQ,CAAC;AAQ/C,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 +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,QAAQ,CAAC;AAM/C,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"}
@@ -1,5 +1,5 @@
1
- import { Operation } from '@dxos/operation';
2
- import { CreateFile } from './definitions';
3
- declare const handler: Operation.WithHandler<typeof CreateFile>;
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.CreateFile>;
4
4
  export default handler;
5
5
  //# sourceMappingURL=create-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-file.d.ts","sourceRoot":"","sources":["../../../../src/operations/create-file.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,UAAU,CAarD,CAAC;AAEF,eAAe,OAAO,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
- import { Operation } from '@dxos/operation';
2
- import { Create } from './definitions';
3
- declare const handler: Operation.WithHandler<typeof Create>;
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.Create>;
4
4
  export default handler;
5
5
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CAQjD,CAAC;AAEF,eAAe,OAAO,CAAC"}
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"}
@@ -1,4 +1,3 @@
1
- import { OperationHandlerSet } from '@dxos/operation';
2
- export * as WnfsOperation from './definitions';
1
+ import { OperationHandlerSet } from '@dxos/compute';
3
2
  export declare const WnfsOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,uBAAuB,yCAInC,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
- import { Operation } from '@dxos/operation';
2
- import { Upload } from './definitions';
3
- declare const handler: Operation.WithHandler<typeof Upload>;
1
+ import { Operation } from '@dxos/compute';
2
+ import { WnfsOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof WnfsOperation.Upload>;
4
4
  export default handler;
5
5
  //# sourceMappingURL=upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/operations/upload.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CAWjD,CAAC;AAEF,eAAe,OAAO,CAAC"}
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,21 +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 'add-object.label': "Add file";
12
- readonly 'rename-object.label': "Rename file";
13
- readonly 'delete-object.label': "Delete file";
14
- readonly 'object-deleted.label': "File deleted";
15
- };
16
- readonly [meta.id]: {
17
- readonly 'plugin.name': "Files";
18
- 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';
19
27
  };
20
28
  };
21
29
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;;UAUvB;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"}
@@ -1,6 +1,6 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
+ import { Operation } from '@dxos/compute';
2
3
  import { Database } from '@dxos/echo';
3
- import { Operation } from '@dxos/operation';
4
4
  export declare const Create: Operation.Definition<{
5
5
  readonly name: string;
6
6
  readonly type: string;
@@ -20,8 +20,8 @@ export declare const Upload: Operation.Definition<{
20
20
  }, {
21
21
  readonly name: string;
22
22
  readonly type: string;
23
- readonly cid: string;
24
23
  readonly url: string;
24
+ readonly cid: string;
25
25
  }, Capability.Service>;
26
26
  export declare const CreateFile: Operation.Definition<{
27
27
  readonly file: File;
@@ -35,4 +35,4 @@ export declare const CreateFile: Operation.Definition<{
35
35
  readonly timestamp?: string | undefined;
36
36
  };
37
37
  }, Capability.Service>;
38
- //# sourceMappingURL=definitions.d.ts.map
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 +1 @@
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;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"}
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"}