@dxos/plugin-wnfs 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8
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/dist/lib/browser/FileContainer-TI75RSXW.mjs +72 -0
- package/dist/lib/browser/FileContainer-TI75RSXW.mjs.map +7 -0
- package/dist/lib/browser/{blockstore-KKFOALUH.mjs → blockstore-3GWACM5O.mjs} +4 -4
- package/dist/lib/browser/{blockstore-KKFOALUH.mjs.map → blockstore-3GWACM5O.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-GXXEH7H6.mjs → chunk-4TGMSAOM.mjs} +18 -33
- package/dist/lib/browser/chunk-4TGMSAOM.mjs.map +7 -0
- package/dist/lib/browser/chunk-D7BMRINF.mjs +56 -0
- package/dist/lib/browser/chunk-D7BMRINF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NCTUASHL.mjs → chunk-UC4HMNZZ.mjs} +8 -6
- package/dist/lib/browser/chunk-UC4HMNZZ.mjs.map +7 -0
- package/dist/lib/browser/{file-uploader-BUHAXRSV.mjs → file-uploader-TSZWW7S7.mjs} +6 -5
- package/dist/lib/browser/file-uploader-TSZWW7S7.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +31 -32
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{markdown-BRT2MN6C.mjs → markdown-JGZQQERR.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-F6GUL54A.mjs → operation-resolver-AUNGHUOQ.mjs} +7 -20
- package/dist/lib/browser/operation-resolver-AUNGHUOQ.mjs.map +7 -0
- package/dist/lib/browser/react-surface-5XF3LK5B.mjs +60 -0
- package/dist/lib/browser/react-surface-5XF3LK5B.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/blockstore/blockstore.d.ts +1 -1
- package/dist/types/src/capabilities/file-uploader/file-uploader.d.ts +3 -2
- package/dist/types/src/capabilities/file-uploader/file-uploader.d.ts.map +1 -1
- package/dist/types/src/capabilities/file-uploader/index.d.ts +1 -1
- package/dist/types/src/capabilities/file-uploader/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- 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.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 +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers/FileContainer}/FileContainer.d.ts +2 -2
- package/dist/types/src/containers/FileContainer/FileContainer.d.ts.map +1 -0
- package/dist/types/src/containers/FileContainer/index.d.ts +3 -0
- package/dist/types/src/containers/FileContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/File.d.ts +1 -1
- package/dist/types/src/types/File.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3 -23
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -30
- package/src/WnfsPlugin.tsx +22 -30
- package/src/blockstore.ts +1 -1
- package/src/capabilities/file-uploader/file-uploader.ts +4 -3
- package/src/capabilities/operation-resolver/operation-resolver.ts +2 -13
- package/src/capabilities/react-surface/react-surface.tsx +9 -7
- package/src/components/{FileInput.tsx → FileInput/FileInput.tsx} +4 -4
- package/src/components/FileInput/index.ts +5 -0
- package/src/components/{FilePreview.tsx → FilePreview/FilePreview.tsx} +3 -3
- package/src/components/FilePreview/index.ts +5 -0
- package/src/components/index.ts +1 -4
- package/src/{components → containers/FileContainer}/FileContainer.tsx +11 -11
- package/src/containers/FileContainer/index.ts +7 -0
- package/src/containers/index.ts +7 -0
- package/src/extensions/image.stories.tsx +3 -3
- package/src/meta.ts +1 -1
- package/src/translations.ts +1 -0
- package/src/types/File.ts +6 -2
- package/src/types/capabilities.ts +2 -2
- package/src/types/types.ts +9 -23
- package/dist/lib/browser/FileContainer-O5YFSIWV.mjs +0 -91
- package/dist/lib/browser/FileContainer-O5YFSIWV.mjs.map +0 -7
- package/dist/lib/browser/chunk-GXXEH7H6.mjs.map +0 -7
- package/dist/lib/browser/chunk-NCTUASHL.mjs.map +0 -7
- package/dist/lib/browser/file-uploader-BUHAXRSV.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-F6GUL54A.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UNAYSIAC.mjs +0 -81
- package/dist/lib/browser/react-surface-UNAYSIAC.mjs.map +0 -7
- package/dist/types/src/components/FileContainer.d.ts.map +0 -1
- package/dist/types/src/components/FileInput.d.ts.map +0 -1
- package/dist/types/src/components/FilePreview.d.ts.map +0 -1
- /package/dist/lib/browser/{markdown-BRT2MN6C.mjs.map → markdown-JGZQQERR.mjs.map} +0 -0
- /package/dist/types/src/components/{FileInput.d.ts → FileInput/FileInput.d.ts} +0 -0
- /package/dist/types/src/components/{FilePreview.d.ts → FilePreview/FilePreview.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type SurfaceComponentProps } from '@dxos/app-
|
|
3
|
-
import { type WnfsFile } from '
|
|
2
|
+
import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { type WnfsFile } from '../../types';
|
|
4
4
|
export type FileContainerProps = SurfaceComponentProps<WnfsFile.File>;
|
|
5
5
|
export declare const FileContainer: ({ role, subject: file }: FileContainerProps) => React.JSX.Element | null;
|
|
6
6
|
export default FileContainer;
|
|
@@ -0,0 +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,6BAmCxE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -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,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const translations: [{
|
|
|
8
8
|
readonly 'typename label_one': "File";
|
|
9
9
|
readonly 'typename label_other': "Files";
|
|
10
10
|
readonly 'object name placeholder': "New file";
|
|
11
|
+
readonly 'add object label': "Add file";
|
|
11
12
|
readonly 'rename object label': "Rename file";
|
|
12
13
|
readonly 'delete object label': "Delete file";
|
|
13
14
|
readonly 'object deleted label': "File deleted";
|
|
@@ -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
|
|
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;;;;;;;;;;UAUvB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;UAGR;;EAGwB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const File: Type.Obj<{
|
|
|
7
7
|
readonly timestamp?: string | undefined;
|
|
8
8
|
}, Schema.Struct.Fields>;
|
|
9
9
|
export type File = Schema.Schema.Type<typeof File>;
|
|
10
|
-
export declare const make: (props: Obj.MakeProps<typeof File>) => Obj.
|
|
10
|
+
export declare const make: (props: Obj.MakeProps<typeof File>) => 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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/types/File.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/types/File.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGnD,eAAO,MAAM,IAAI;;;;;wBAchB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,CAAC;;;;;EAA0B,CAAC"}
|
|
@@ -9,29 +9,9 @@ export declare namespace WnfsAction {
|
|
|
9
9
|
type UploadFileForm = Schema.Schema.Type<typeof UploadFileSchema>;
|
|
10
10
|
}
|
|
11
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<any>[];
|
|
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
12
|
const Create: Omit<{
|
|
33
13
|
readonly meta: {
|
|
34
|
-
readonly key: `${string}
|
|
14
|
+
readonly key: `${string}.create`;
|
|
35
15
|
readonly name: "Create WNFS File";
|
|
36
16
|
};
|
|
37
17
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -59,7 +39,7 @@ export declare namespace WnfsOperation {
|
|
|
59
39
|
};
|
|
60
40
|
const Upload: Omit<{
|
|
61
41
|
readonly meta: {
|
|
62
|
-
readonly key: `${string}
|
|
42
|
+
readonly key: `${string}.upload`;
|
|
63
43
|
readonly name: "Upload File";
|
|
64
44
|
};
|
|
65
45
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -86,7 +66,7 @@ export declare namespace WnfsOperation {
|
|
|
86
66
|
};
|
|
87
67
|
const CreateFile: Omit<{
|
|
88
68
|
readonly meta: {
|
|
89
|
-
readonly key: `${string}
|
|
69
|
+
readonly key: `${string}.create-file`;
|
|
90
70
|
readonly name: "Create File";
|
|
91
71
|
};
|
|
92
72
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -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,
|
|
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;AAOtC,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,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;KASjB,CAAC;IAEI,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;KAOjB,CAAC;IAEI,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;KASrB,CAAC;CACJ"}
|