@dxos/plugin-file 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +105 -0
- package/PLUGIN.mdl +372 -0
- package/dist/lib/neutral/FileArticle-YU6NN3KN.mjs +80 -0
- package/dist/lib/neutral/FileArticle-YU6NN3KN.mjs.map +7 -0
- package/dist/lib/neutral/FilePlugin.mjs +58 -0
- package/dist/lib/neutral/FilePlugin.mjs.map +7 -0
- package/dist/lib/neutral/FilePlugin.node.mjs +23 -0
- package/dist/lib/neutral/FilePlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +23 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-DKGTSUUH.mjs +8 -0
- package/dist/lib/neutral/chunk-DKGTSUUH.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GMYSEHV4.mjs +40 -0
- package/dist/lib/neutral/chunk-GMYSEHV4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-LBZ4MCLI.mjs +45 -0
- package/dist/lib/neutral/chunk-LBZ4MCLI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YODPX62X.mjs +136 -0
- package/dist/lib/neutral/chunk-YODPX62X.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZUXUTRAJ.mjs +80 -0
- package/dist/lib/neutral/chunk-ZUXUTRAJ.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +74 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +59 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-IUUG7RI6.mjs +17 -0
- package/dist/lib/neutral/create-IUUG7RI6.mjs.map +7 -0
- package/dist/lib/neutral/create-object-V667G4ZL.mjs +30 -0
- package/dist/lib/neutral/create-object-V667G4ZL.mjs.map +7 -0
- package/dist/lib/neutral/file-uploader-BCJH6TUL.mjs +41 -0
- package/dist/lib/neutral/file-uploader-BCJH6TUL.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +32 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/inline-backend-FGGGDYRB.mjs +37 -0
- package/dist/lib/neutral/inline-backend-FGGGDYRB.mjs.map +7 -0
- package/dist/lib/neutral/markdown-extension-RA5YNMTW.mjs +230 -0
- package/dist/lib/neutral/markdown-extension-RA5YNMTW.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-CPDANWGH.mjs +13 -0
- package/dist/lib/neutral/operation-handler-CPDANWGH.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-5BXKSHD2.mjs +60 -0
- package/dist/lib/neutral/react-surface-5BXKSHD2.mjs.map +7 -0
- package/dist/lib/neutral/read-HG6CSWKR.mjs +28 -0
- package/dist/lib/neutral/read-HG6CSWKR.mjs.map +7 -0
- package/dist/lib/neutral/settings-RR3RESL2.mjs +28 -0
- package/dist/lib/neutral/settings-RR3RESL2.mjs.map +7 -0
- package/dist/lib/neutral/skill-definition-YHBGWBUS.mjs +15 -0
- package/dist/lib/neutral/skill-definition-YHBGWBUS.mjs.map +7 -0
- package/dist/lib/neutral/skills/index.mjs +11 -0
- package/dist/lib/neutral/skills/index.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +36 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +22 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/FilePlugin.d.ts +4 -0
- package/dist/types/src/FilePlugin.d.ts.map +1 -0
- package/dist/types/src/FilePlugin.node.d.ts +4 -0
- package/dist/types/src/FilePlugin.node.d.ts.map +1 -0
- package/dist/types/src/FilePlugin.test.d.ts +2 -0
- package/dist/types/src/FilePlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +5 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/file-uploader.d.ts +5 -0
- package/dist/types/src/capabilities/file-uploader.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/inline-backend.d.ts +11 -0
- package/dist/types/src/capabilities/inline-backend.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown-extension.d.ts +5 -0
- package/dist/types/src/capabilities/markdown-extension.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +5 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
- package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
- package/dist/types/src/components/FileInput/FileInput.d.ts +8 -0
- package/dist/types/src/components/FileInput/FileInput.d.ts.map +1 -0
- package/dist/types/src/components/FileInput/index.d.ts +2 -0
- package/dist/types/src/components/FileInput/index.d.ts.map +1 -0
- package/dist/types/src/components/FilePreview/FilePreview.d.ts +12 -0
- package/dist/types/src/components/FilePreview/FilePreview.d.ts.map +1 -0
- package/dist/types/src/components/FilePreview/index.d.ts +2 -0
- package/dist/types/src/components/FilePreview/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/containers/FileArticle/FileArticle.d.ts +7 -0
- package/dist/types/src/containers/FileArticle/FileArticle.d.ts.map +1 -0
- package/dist/types/src/containers/FileArticle/index.d.ts +2 -0
- package/dist/types/src/containers/FileArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/FileSettings/FileSettings.d.ts +6 -0
- package/dist/types/src/containers/FileSettings/FileSettings.d.ts.map +1 -0
- package/dist/types/src/containers/FileSettings/index.d.ts +2 -0
- package/dist/types/src/containers/FileSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/image.d.ts +12 -0
- package/dist/types/src/extensions/image.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +2 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +33 -0
- package/dist/types/src/meta.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +25 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/create.test.d.ts +2 -0
- package/dist/types/src/operations/create.test.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/read.d.ts +5 -0
- package/dist/types/src/operations/read.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/skills/file-skill.d.ts +5 -0
- package/dist/types/src/skills/file-skill.d.ts.map +1 -0
- package/dist/types/src/skills/index.d.ts +2 -0
- package/dist/types/src/skills/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +40 -0
- package/dist/types/src/translations.d.ts.map +1 -0
- package/dist/types/src/types/FileCapabilities.d.ts +41 -0
- package/dist/types/src/types/FileCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/FileOperation.d.ts +42 -0
- package/dist/types/src/types/FileOperation.d.ts.map +1 -0
- package/dist/types/src/types/Settings.d.ts +8 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +7 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/types/limits.d.ts +4 -0
- package/dist/types/src/types/limits.d.ts.map +1 -0
- package/dist/types/src/types/types.d.ts +9 -0
- package/dist/types/src/types/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dx.config.ts +35 -0
- package/package.json +139 -0
- package/src/FilePlugin.node.ts +19 -0
- package/src/FilePlugin.test.ts +26 -0
- package/src/FilePlugin.tsx +56 -0
- package/src/capabilities/create-object.ts +30 -0
- package/src/capabilities/file-uploader.ts +35 -0
- package/src/capabilities/index.ts +18 -0
- package/src/capabilities/inline-backend.ts +41 -0
- package/src/capabilities/markdown-extension.ts +38 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +61 -0
- package/src/capabilities/settings.ts +31 -0
- package/src/capabilities/skill-definition.ts +14 -0
- package/src/components/FileInput/FileInput.tsx +48 -0
- package/src/components/FileInput/index.ts +5 -0
- package/src/components/FilePreview/FilePreview.tsx +55 -0
- package/src/components/FilePreview/index.ts +5 -0
- package/src/components/index.ts +6 -0
- package/src/containers/FileArticle/FileArticle.tsx +84 -0
- package/src/containers/FileArticle/index.ts +5 -0
- package/src/containers/FileSettings/FileSettings.tsx +67 -0
- package/src/containers/FileSettings/index.ts +5 -0
- package/src/containers/index.ts +9 -0
- package/src/extensions/image.tsx +232 -0
- package/src/extensions/index.ts +5 -0
- package/src/index.ts +7 -0
- package/src/meta.ts +9 -0
- package/src/operations/create.test.ts +53 -0
- package/src/operations/create.ts +87 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/read.ts +35 -0
- package/src/plugin.ts +11 -0
- package/src/skills/file-skill.ts +38 -0
- package/src/skills/index.ts +5 -0
- package/src/translations.ts +37 -0
- package/src/types/FileCapabilities.ts +58 -0
- package/src/types/FileOperation.ts +44 -0
- package/src/types/Settings.ts +23 -0
- package/src/types/index.ts +12 -0
- package/src/types/limits.ts +21 -0
- package/src/types/types.ts +21 -0
- package/src/vite-env.d.ts +10 -0
|
@@ -0,0 +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,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,iEAAyE,CAAC;AACtG,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,aAAa,iEAAqE,CAAC;AAChG,eAAO,MAAM,QAAQ,iEAA6E,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,QAAQ,iEAA0D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { FileCapabilities } from '#types';
|
|
4
|
+
/**
|
|
5
|
+
* Inline backend: file bytes are stored on the ECHO object itself.
|
|
6
|
+
* Exported standalone for direct testing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const inlineBackend: FileCapabilities.Backend;
|
|
9
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Any, never, never>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=inline-backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-backend.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/inline-backend.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAQ,gBAAgB,EAA+C,MAAM,QAAQ,CAAC;AAI7F;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,OAoB5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-extension.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/markdown-extension.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +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,eAAe,CAAC"}
|
|
@@ -0,0 +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;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/skill-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKjD,QAAA,MAAM,eAAe,qDAA6F,CAAC;eAEpG,eAAe"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Schema from 'effect/Schema';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type FileInputProps = {
|
|
4
|
+
schema: Schema.Schema.AnyNoContext;
|
|
5
|
+
onChange: (file: File) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const FileInput: ({ schema, onChange }: FileInputProps) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FileInput.d.ts.map
|
|
@@ -0,0 +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,YAAY,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,SAAS,yBAA0B,cAAc,sBA2B7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FileInput/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type FilePreviewProps = {
|
|
3
|
+
type: string;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* File/content preview — image, video, PDF (iframe), or fallback download link.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FilePreview: React.ForwardRefExoticComponent<Omit<FilePreviewProps, "className"> & {
|
|
10
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
11
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -0,0 +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;;wHAyCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FilePreview/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { File } from '#types';
|
|
4
|
+
export type FileArticleProps = AppSurface.ObjectArticleProps<File.File>;
|
|
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,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,EAAE,IAAI,EAAoB,MAAM,QAAQ,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAExE,eAAO,MAAM,WAAW,4BAA6B,gBAAgB,6BAiEpE,CAAC;eAEa,WAAW"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { Settings } from '#types';
|
|
4
|
+
export type FileSettingsProps = AppSurface.SettingsProps<Settings.Settings>;
|
|
5
|
+
export declare const FileSettings: ({ settings, onSettingsChange }: FileSettingsProps) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=FileSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileSettings/FileSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,EAAoB,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE5E,eAAO,MAAM,YAAY,mCAAoC,iBAAiB,sBAkD7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileSettings/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +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,WAAW,EAAE,aAAa,CAAC,GAAG,CAAuC,CAAC;AAEnF,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { FileCapabilities } from '#types';
|
|
4
|
+
export type ImageOptions = {
|
|
5
|
+
space: Space;
|
|
6
|
+
resolvers: readonly FileCapabilities.UrlResolver[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Decorate `` references that resolve to File objects with inline image previews.
|
|
10
|
+
*/
|
|
11
|
+
export declare const image: (options: ImageOptions) => Extension[];
|
|
12
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +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;AAO7F,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAQ,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAIhD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,gBAAgB,CAAC,WAAW,EAAE,CAAC;CACpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,YAAa,YAAY,KAAG,SAAS,EA2CtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const meta: {
|
|
2
|
+
readonly profile: {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly homePage?: string | undefined;
|
|
7
|
+
readonly source?: string | undefined;
|
|
8
|
+
readonly tags?: readonly string[] | undefined;
|
|
9
|
+
readonly screenshots?: readonly {
|
|
10
|
+
readonly light?: string | undefined;
|
|
11
|
+
readonly dark?: string | undefined;
|
|
12
|
+
}[] | undefined;
|
|
13
|
+
readonly icon?: {
|
|
14
|
+
readonly key: string;
|
|
15
|
+
readonly hue?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly dependsOn?: readonly string[] | undefined;
|
|
18
|
+
readonly spec?: string | undefined;
|
|
19
|
+
readonly createdAt?: string | undefined;
|
|
20
|
+
readonly author?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
readonly release?: {
|
|
23
|
+
readonly version: string;
|
|
24
|
+
readonly moduleUrl: string;
|
|
25
|
+
readonly dependencies?: {
|
|
26
|
+
readonly [x: string]: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
readonly pluginKey?: string | undefined;
|
|
29
|
+
readonly manifestHash?: string | undefined;
|
|
30
|
+
readonly createdAt?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { Operation } from '@dxos/compute';
|
|
4
|
+
import { FileCapabilities, FileOperation } from '../types';
|
|
5
|
+
export declare class UnsupportedFileTypeError extends Error {
|
|
6
|
+
readonly type: string;
|
|
7
|
+
constructor(type: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class FileTooLargeError extends Error {
|
|
10
|
+
readonly size: number;
|
|
11
|
+
readonly limit: number;
|
|
12
|
+
constructor(size: number, limit?: number);
|
|
13
|
+
}
|
|
14
|
+
export declare class NoBackendError extends Error {
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Resolve the configured {@link FileCapabilities.Backend} from the plugin
|
|
19
|
+
* settings atom. Falls back to the inline backend (or the first registered
|
|
20
|
+
* one) if the configured id is missing or settings aren't available.
|
|
21
|
+
*/
|
|
22
|
+
export declare const resolveActiveBackend: Effect.Effect<FileCapabilities.Backend, NoBackendError, Capability.Service>;
|
|
23
|
+
declare const handler: Operation.WithHandler<typeof FileOperation.Create>;
|
|
24
|
+
export default handler;
|
|
25
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAQ,gBAAgB,EAAE,aAAa,EAA+C,MAAM,UAAU,CAAC;AAE9G,qBAAa,wBAAyB,SAAQ,KAAK;aACrB,IAAI,EAAE,MAAM;IAAxC,YAA4B,IAAI,EAAE,MAAM,EAGvC;CACF;AAED,qBAAa,iBAAkB,SAAQ,KAAK;aAExB,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,MAAM;IAF/B,YACkB,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,MAAsB,EAI9C;CACF;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,cAGC;CACF;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,6EAmB/B,CAAC;AAEH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,MAAM,CAuB/D,CAAC;eAEa,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.test.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.test.ts"],"names":[],"mappings":""}
|
|
@@ -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,yCAGnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/operations/read.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,IAAI,CAoB7D,CAAC;eAEa,OAAO"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-skill.d.ts","sourceRoot":"","sources":["../../../../src/skills/file-skill.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAY,MAAM,eAAe,CAAC;AAKhD,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAuB/C,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,UAGlB,CAAC;eAEa,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/skills/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const translations: [{
|
|
2
|
+
readonly 'en-US': {
|
|
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
|
+
readonly 'too-large-error.message'?: undefined;
|
|
16
|
+
readonly 'unsupported-type-error.message'?: undefined;
|
|
17
|
+
readonly 'settings.backend.label'?: undefined;
|
|
18
|
+
readonly 'settings.backend.description'?: undefined;
|
|
19
|
+
readonly 'settings.backend.placeholder'?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
readonly 'typename.label'?: undefined;
|
|
22
|
+
readonly 'typename.label_zero'?: undefined;
|
|
23
|
+
readonly 'typename.label_one'?: undefined;
|
|
24
|
+
readonly 'typename.label_other'?: undefined;
|
|
25
|
+
readonly 'object-name.placeholder'?: undefined;
|
|
26
|
+
readonly 'add-object.label'?: undefined;
|
|
27
|
+
readonly 'rename-object.label'?: undefined;
|
|
28
|
+
readonly 'delete-object.label'?: undefined;
|
|
29
|
+
readonly 'object-deleted.label'?: undefined;
|
|
30
|
+
readonly 'plugin.name': 'File';
|
|
31
|
+
readonly 'file-input.placeholder': 'Drop a file here, or click to select a file';
|
|
32
|
+
readonly 'too-large-error.message': 'File is too large. Maximum size is 4MB.';
|
|
33
|
+
readonly 'unsupported-type-error.message': 'Unsupported file type. Only images, videos, and PDFs are allowed.';
|
|
34
|
+
readonly 'settings.backend.label': 'Storage backend';
|
|
35
|
+
readonly 'settings.backend.description': 'Where uploaded files are stored. Install additional plugins (e.g. WNFS) to add backends.';
|
|
36
|
+
readonly 'settings.backend.placeholder': 'Select backend';
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}];
|
|
40
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;uCAIC,MAAM;4CACD,OAAO;2CACR,MAAM;6CACJ,OAAO;gDACJ,UAAU;yCACjB,UAAU;4CACP,aAAa;4CACb,aAAa;6CACZ,cAAc;;;;;;;;;;;;;;;;;;oCAGvB,MAAM;+CACK,6CAA6C;gDAC5C,yCAAyC;uDAClC,mEAAmE;+CAC3E,iBAAiB;qDAEzC,0FAA0F;qDAC5D,gBAAgB;;;EAIzB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { type Database } from '@dxos/echo';
|
|
4
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
5
|
+
import { File } from '@dxos/types';
|
|
6
|
+
import * as Settings from './Settings';
|
|
7
|
+
/**
|
|
8
|
+
* A file storage backend. Each backend ingests a File from the user and
|
|
9
|
+
* returns the metadata + the {@link File.FileData} to attach to a
|
|
10
|
+
* {@link File.File} object.
|
|
11
|
+
*/
|
|
12
|
+
export type Backend = {
|
|
13
|
+
/** Stable backend id (e.g. 'inline', 'wnfs'). Used as the settings key. */
|
|
14
|
+
readonly id: string;
|
|
15
|
+
/** Display label shown in the settings UI. */
|
|
16
|
+
readonly name: string;
|
|
17
|
+
/** Description shown next to the backend in settings. */
|
|
18
|
+
readonly description?: string;
|
|
19
|
+
/** Upload a file. Throws on validation errors (size cap, unsupported MIME). */
|
|
20
|
+
readonly upload: (file: globalThis.File, db: Database.Database) => Promise<UploadResult>;
|
|
21
|
+
};
|
|
22
|
+
export type UploadResult = {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly type: string;
|
|
25
|
+
readonly size: number;
|
|
26
|
+
readonly data: File.FileData;
|
|
27
|
+
};
|
|
28
|
+
export declare const Backend: Capability.InterfaceDef<Backend>;
|
|
29
|
+
/**
|
|
30
|
+
* Resolves an external URL (e.g. `wnfs://…`) into a renderable URL (a
|
|
31
|
+
* `blob:`, `data:`, or `http(s):` URL). Consumers iterate registered
|
|
32
|
+
* resolvers and pick the first that returns true from {@link UrlResolver#test}.
|
|
33
|
+
*/
|
|
34
|
+
export type UrlResolver = {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly test: (url: string) => boolean;
|
|
37
|
+
readonly resolve: (url: string, file: File.File, space?: Space) => Promise<string | undefined>;
|
|
38
|
+
};
|
|
39
|
+
export declare const UrlResolver: Capability.InterfaceDef<UrlResolver>;
|
|
40
|
+
export declare const SettingsAtom: Capability.InterfaceDef<Atom.Writable<Settings.Settings, Settings.Settings>>;
|
|
41
|
+
//# sourceMappingURL=FileCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/FileCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAInC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,CAAC,QAAQ,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1F,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,OAAO,kCAAqE,CAAC;AAE1F;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChG,CAAC;AAEF,eAAO,MAAM,WAAW,sCAA8E,CAAC;AAEvG,eAAO,MAAM,YAAY,8EAExB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
import { Database } from '@dxos/echo';
|
|
4
|
+
import { File } from '@dxos/types';
|
|
5
|
+
export declare const Create: Operation.Definition<{
|
|
6
|
+
readonly file: File;
|
|
7
|
+
} & {
|
|
8
|
+
readonly db: Database.Database;
|
|
9
|
+
}, {
|
|
10
|
+
readonly object: File.File & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
11
|
+
}, Capability.Service>;
|
|
12
|
+
export declare const Read: Operation.Definition<{
|
|
13
|
+
readonly file: import("@dxos/echo/internal").Ref<File.File & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
14
|
+
}, {
|
|
15
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
16
|
+
readonly content: readonly ({
|
|
17
|
+
readonly _tag: "text";
|
|
18
|
+
readonly pending?: boolean | undefined;
|
|
19
|
+
readonly mimeType?: string | undefined;
|
|
20
|
+
readonly text: string;
|
|
21
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
22
|
+
} | {
|
|
23
|
+
readonly _tag: "image";
|
|
24
|
+
readonly pending?: boolean | undefined;
|
|
25
|
+
readonly id?: string | undefined;
|
|
26
|
+
readonly source?: {
|
|
27
|
+
readonly type: "base64";
|
|
28
|
+
readonly mediaType: string;
|
|
29
|
+
readonly data: string;
|
|
30
|
+
} | {
|
|
31
|
+
readonly type: "http";
|
|
32
|
+
readonly url: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
readonly _tag: "file";
|
|
36
|
+
readonly pending?: boolean | undefined;
|
|
37
|
+
readonly url: string;
|
|
38
|
+
readonly name?: string | undefined;
|
|
39
|
+
readonly mediaType?: string | undefined;
|
|
40
|
+
})[];
|
|
41
|
+
}, Database.Service>;
|
|
42
|
+
//# sourceMappingURL=FileOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/FileOperation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAgB,IAAI,EAAE,MAAM,aAAa,CAAC;AAQjD,eAAO,MAAM,MAAM;;;;;;sBAOjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAef,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const DEFAULT_BACKEND_ID = "inline";
|
|
3
|
+
export declare const Settings: Schema.mutable<Schema.Struct<{
|
|
4
|
+
backend: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
5
|
+
}>>;
|
|
6
|
+
export interface Settings extends Schema.Schema.Type<typeof Settings> {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../src/types/Settings.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,eAAO,MAAM,QAAQ;;GAUpB,CAAC;AAEF,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { File } from '@dxos/types';
|
|
2
|
+
export * from './limits';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * as FileCapabilities from './FileCapabilities';
|
|
5
|
+
export * as FileOperation from './FileOperation';
|
|
6
|
+
export * as Settings from './Settings';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../../src/types/limits.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAAkB,CAAC;AAE7C,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAIlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,OAQjD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare namespace FileAction {
|
|
3
|
+
const UploadAnnotationId: unique symbol;
|
|
4
|
+
const CreateFileSchema: Schema.Struct<{
|
|
5
|
+
file: Schema.instanceOf<File>;
|
|
6
|
+
}>;
|
|
7
|
+
type CreateFileForm = Schema.Schema.Type<typeof CreateFileSchema>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,yBAAiB,UAAU,CAAC,CAAC;IACpB,MAAM,kBAAkB,eAAsD,CAAC;IAE/E,MAAM,gBAAgB;;MAI3B,CAAC;IAEH,KAAY,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAC1E"}
|