@dxos/plugin-wnfs 0.8.4-main.dedc0f3 → 0.8.4-main.ead640a
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-3TVNDAPR.mjs → FileContainer-A4OJVMVS.mjs} +4 -4
- package/dist/lib/browser/{blockstore-7ZSJRK6J.mjs → blockstore-HK4IYHJJ.mjs} +5 -5
- package/dist/lib/browser/{blockstore-7ZSJRK6J.mjs.map → blockstore-HK4IYHJJ.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-VDDGZWAY.mjs → chunk-FYRZOKHG.mjs} +2 -4
- package/dist/lib/browser/chunk-FYRZOKHG.mjs.map +7 -0
- package/dist/lib/browser/chunk-PAIK4SJ3.mjs +16 -0
- package/dist/lib/browser/chunk-PAIK4SJ3.mjs.map +7 -0
- package/dist/lib/browser/{chunk-CW4BENRQ.mjs → chunk-QQB5IBX7.mjs} +9 -9
- package/dist/lib/browser/chunk-QQB5IBX7.mjs.map +7 -0
- package/dist/lib/browser/chunk-Y5JMTQ74.mjs +16 -0
- package/dist/lib/browser/{file-uploader-YRZPRETS.mjs → file-uploader-5S37ZZCW.mjs} +8 -7
- package/dist/lib/browser/file-uploader-5S37ZZCW.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +9 -10
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-CKGJNE6P.mjs → intent-resolver-3KMIEDBO.mjs} +6 -6
- package/dist/lib/browser/{intent-resolver-CKGJNE6P.mjs.map → intent-resolver-3KMIEDBO.mjs.map} +1 -1
- package/dist/lib/browser/{markdown-JBWCO5KY.mjs → markdown-5XD3I2NQ.mjs} +5 -5
- package/dist/lib/browser/{markdown-JBWCO5KY.mjs.map → markdown-5XD3I2NQ.mjs.map} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-K4J4I2CJ.mjs → react-surface-5D7M3Y4W.mjs} +10 -10
- package/dist/lib/browser/react-surface-5D7M3Y4W.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/types/src/WnfsPlugin.d.ts +1 -1
- package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/file-uploader.d.ts.map +1 -1
- package/dist/types/src/components/FileInput.d.ts +1 -1
- package/dist/types/src/components/FileInput.d.ts.map +1 -1
- package/dist/types/src/extensions/image.stories.d.ts +0 -1
- package/dist/types/src/extensions/image.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/file.d.ts +3 -3
- package/dist/types/src/types/file.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +5 -5
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -32
- package/src/WnfsPlugin.tsx +71 -68
- package/src/capabilities/capabilities.ts +3 -3
- package/src/capabilities/file-uploader.ts +5 -2
- package/src/capabilities/react-surface.tsx +4 -4
- package/src/components/FileInput.tsx +3 -3
- package/src/extensions/image.stories.tsx +2 -4
- package/src/meta.ts +1 -3
- package/src/types/file.ts +2 -2
- package/src/types/types.ts +5 -5
- package/dist/lib/browser/chunk-CW4BENRQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-KZANQHJY.mjs +0 -16
- package/dist/lib/browser/chunk-KZANQHJY.mjs.map +0 -7
- package/dist/lib/browser/chunk-R2CXJQHR.mjs +0 -16
- package/dist/lib/browser/chunk-VDDGZWAY.mjs.map +0 -7
- package/dist/lib/browser/file-uploader-YRZPRETS.mjs.map +0 -7
- package/dist/lib/browser/react-surface-K4J4I2CJ.mjs.map +0 -7
- /package/dist/lib/browser/{FileContainer-3TVNDAPR.mjs.map → FileContainer-A4OJVMVS.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-R2CXJQHR.mjs.map → chunk-Y5JMTQ74.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-wnfs",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.ead640a",
|
|
4
4
|
"description": "WNFS file management plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@codemirror/language": "^6.11.3",
|
|
36
36
|
"@codemirror/state": "^6.5.2",
|
|
37
|
-
"@codemirror/view": "^6.38.
|
|
37
|
+
"@codemirror/view": "^6.38.4",
|
|
38
38
|
"@ipld/car": "^5.3.3",
|
|
39
39
|
"@preact-signals/safe-react": "^0.9.0",
|
|
40
40
|
"blockstore-core": "^5.0.1",
|
|
41
41
|
"blockstore-idb": "^2.0.0",
|
|
42
42
|
"debounce": "^2.2.0",
|
|
43
|
-
"effect": "3.
|
|
43
|
+
"effect": "3.18.3",
|
|
44
44
|
"idb-keyval": "^6.2.1",
|
|
45
45
|
"interface-blockstore": "^5.2.10",
|
|
46
46
|
"it-all": "^3.0.6",
|
|
@@ -48,40 +48,39 @@
|
|
|
48
48
|
"react-dropzone": "^14.2.3",
|
|
49
49
|
"uint8arrays": "^5.1.0",
|
|
50
50
|
"wnfs": "0.2.2",
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/plugin-
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/react-client": "0.8.4-main.
|
|
62
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
63
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
64
|
-
"@dxos/react-ui-
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/react-ui-
|
|
67
|
-
"@dxos/util": "0.8.4-main.dedc0f3"
|
|
51
|
+
"@dxos/crypto": "0.8.4-main.ead640a",
|
|
52
|
+
"@dxos/effect": "0.8.4-main.ead640a",
|
|
53
|
+
"@dxos/echo": "0.8.4-main.ead640a",
|
|
54
|
+
"@dxos/local-storage": "0.8.4-main.ead640a",
|
|
55
|
+
"@dxos/log": "0.8.4-main.ead640a",
|
|
56
|
+
"@dxos/invariant": "0.8.4-main.ead640a",
|
|
57
|
+
"@dxos/app-framework": "0.8.4-main.ead640a",
|
|
58
|
+
"@dxos/plugin-markdown": "0.8.4-main.ead640a",
|
|
59
|
+
"@dxos/plugin-space": "0.8.4-main.ead640a",
|
|
60
|
+
"@dxos/plugin-client": "0.8.4-main.ead640a",
|
|
61
|
+
"@dxos/react-client": "0.8.4-main.ead640a",
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.ead640a",
|
|
63
|
+
"@dxos/react-ui-editor": "0.8.4-main.ead640a",
|
|
64
|
+
"@dxos/react-ui-stack": "0.8.4-main.ead640a",
|
|
65
|
+
"@dxos/util": "0.8.4-main.ead640a",
|
|
66
|
+
"@dxos/react-ui-form": "0.8.4-main.ead640a"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
|
-
"@types/react": "~
|
|
71
|
-
"@types/react-dom": "~
|
|
72
|
-
"react": "~
|
|
73
|
-
"react-dom": "~
|
|
74
|
-
"vite": "7.1.
|
|
75
|
-
"@dxos/random": "0.8.4-main.
|
|
76
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
77
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
69
|
+
"@types/react": "~19.2.2",
|
|
70
|
+
"@types/react-dom": "~19.2.1",
|
|
71
|
+
"react": "~19.2.0",
|
|
72
|
+
"react-dom": "~19.2.0",
|
|
73
|
+
"vite": "7.1.9",
|
|
74
|
+
"@dxos/random": "0.8.4-main.ead640a",
|
|
75
|
+
"@dxos/react-ui-theme": "0.8.4-main.ead640a",
|
|
76
|
+
"@dxos/storybook-utils": "0.8.4-main.ead640a"
|
|
78
77
|
},
|
|
79
78
|
"peerDependencies": {
|
|
80
79
|
"effect": "^3.13.3",
|
|
81
|
-
"react": "
|
|
82
|
-
"react-dom": "
|
|
83
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
84
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
80
|
+
"react": "^19.0.0",
|
|
81
|
+
"react-dom": "^19.0.0",
|
|
82
|
+
"@dxos/react-ui": "0.8.4-main.ead640a",
|
|
83
|
+
"@dxos/react-ui-theme": "0.8.4-main.ead640a"
|
|
85
84
|
},
|
|
86
85
|
"publishConfig": {
|
|
87
86
|
"access": "public"
|
package/src/WnfsPlugin.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Function from 'effect/Function';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
Capabilities,
|
|
@@ -23,71 +23,74 @@ import { meta } from './meta';
|
|
|
23
23
|
import { translations } from './translations';
|
|
24
24
|
import { FileType, WnfsAction } from './types';
|
|
25
25
|
|
|
26
|
-
export const WnfsPlugin = () =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
26
|
+
export const WnfsPlugin = definePlugin(meta, () => [
|
|
27
|
+
defineModule({
|
|
28
|
+
id: `${meta.id}/module/blockstore`,
|
|
29
|
+
activatesOn: ClientEvents.ClientReady,
|
|
30
|
+
activate: Blockstore,
|
|
31
|
+
}),
|
|
32
|
+
defineModule({
|
|
33
|
+
id: `${meta.id}/module/instances`,
|
|
34
|
+
activatesOn: ClientEvents.ClientReady,
|
|
35
|
+
activate: () => {
|
|
36
|
+
const instances: WnfsCapabilities.Instances = {};
|
|
37
|
+
return contributes(WnfsCapabilities.Instances, instances);
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
defineModule({
|
|
41
|
+
id: `${meta.id}/module/translations`,
|
|
42
|
+
activatesOn: Events.SetupTranslations,
|
|
43
|
+
activate: () => contributes(Capabilities.Translations, translations),
|
|
44
|
+
}),
|
|
45
|
+
defineModule({
|
|
46
|
+
id: `${meta.id}/module/metadata`,
|
|
47
|
+
activatesOn: Events.SetupMetadata,
|
|
48
|
+
activate: () =>
|
|
49
|
+
contributes(Capabilities.Metadata, {
|
|
50
|
+
id: FileType.typename,
|
|
51
|
+
metadata: {
|
|
52
|
+
label: (object: any) => (object instanceof FileType ? object.name : undefined),
|
|
53
|
+
// TODO(wittjosiah): Would be nice if icon could change based on the type of the file.
|
|
54
|
+
icon: 'ph--file--regular',
|
|
55
|
+
iconClassName: 'text-tealSurfaceText',
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
}),
|
|
59
|
+
defineModule({
|
|
60
|
+
id: `${meta.id}/module/object-form`,
|
|
61
|
+
activatesOn: ClientEvents.SetupSchema,
|
|
62
|
+
activate: () =>
|
|
63
|
+
contributes(
|
|
64
|
+
SpaceCapabilities.ObjectForm,
|
|
65
|
+
defineObjectForm({
|
|
66
|
+
objectSchema: FileType,
|
|
67
|
+
formSchema: WnfsAction.UploadFileSchema,
|
|
68
|
+
getIntent: (props, options) =>
|
|
69
|
+
Function.pipe(
|
|
70
|
+
createIntent(WnfsAction.Upload, { ...props, space: options.space }),
|
|
71
|
+
chain(WnfsAction.Create, {}),
|
|
72
|
+
),
|
|
57
73
|
}),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
activate: Markdown,
|
|
82
|
-
}),
|
|
83
|
-
defineModule({
|
|
84
|
-
id: `${meta.id}/module/react-surface`,
|
|
85
|
-
activatesOn: Events.SetupReactSurface,
|
|
86
|
-
activate: ReactSurface,
|
|
87
|
-
}),
|
|
88
|
-
defineModule({
|
|
89
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
90
|
-
activatesOn: Events.SetupIntentResolver,
|
|
91
|
-
activate: IntentResolver,
|
|
92
|
-
}),
|
|
93
|
-
]);
|
|
74
|
+
),
|
|
75
|
+
}),
|
|
76
|
+
defineModule({
|
|
77
|
+
id: `${meta.id}/module/file-uploader`,
|
|
78
|
+
activatesOn: ClientEvents.ClientReady,
|
|
79
|
+
activate: FileUploader,
|
|
80
|
+
}),
|
|
81
|
+
defineModule({
|
|
82
|
+
id: `${meta.id}/module/markdown`,
|
|
83
|
+
activatesOn: MarkdownEvents.SetupExtensions,
|
|
84
|
+
activate: Markdown,
|
|
85
|
+
}),
|
|
86
|
+
defineModule({
|
|
87
|
+
id: `${meta.id}/module/react-surface`,
|
|
88
|
+
activatesOn: Events.SetupReactSurface,
|
|
89
|
+
activate: ReactSurface,
|
|
90
|
+
}),
|
|
91
|
+
defineModule({
|
|
92
|
+
id: `${meta.id}/module/intent-resolver`,
|
|
93
|
+
activatesOn: Events.SetupIntentResolver,
|
|
94
|
+
activate: IntentResolver,
|
|
95
|
+
}),
|
|
96
|
+
]);
|
|
@@ -8,11 +8,11 @@ import { type PrivateDirectory, type PrivateForest } from 'wnfs';
|
|
|
8
8
|
import { defineCapability } from '@dxos/app-framework';
|
|
9
9
|
import { type SpaceId } from '@dxos/keys';
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { meta } from '../meta';
|
|
12
12
|
|
|
13
13
|
export namespace WnfsCapabilities {
|
|
14
|
-
export const Blockstore = defineCapability<Blockstore>(`${
|
|
14
|
+
export const Blockstore = defineCapability<Blockstore>(`${meta.id}/capability/blockstore`);
|
|
15
15
|
|
|
16
16
|
export type Instances = Record<SpaceId, { directory: PrivateDirectory; forest: PrivateForest }>;
|
|
17
|
-
export const Instances = defineCapability<Instances>(`${
|
|
17
|
+
export const Instances = defineCapability<Instances>(`${meta.id}/capability/instances`);
|
|
18
18
|
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Function from 'effect/Function';
|
|
6
7
|
|
|
7
8
|
import { Capabilities, type PluginContext, chain, contributes, createIntent } from '@dxos/app-framework';
|
|
8
9
|
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
@@ -15,7 +16,9 @@ export default (context: PluginContext) => {
|
|
|
15
16
|
|
|
16
17
|
const program = Effect.gen(function* () {
|
|
17
18
|
const fileInfo = yield* dispatch(createIntent(WnfsAction.Upload, { file, space }));
|
|
18
|
-
yield* dispatch(
|
|
19
|
+
yield* dispatch(
|
|
20
|
+
Function.pipe(createIntent(WnfsAction.Create, fileInfo), chain(SpaceAction.AddObject, { target: space })),
|
|
21
|
+
);
|
|
19
22
|
return fileInfo;
|
|
20
23
|
});
|
|
21
24
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import type * as Schema from 'effect/Schema';
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
7
|
|
|
8
8
|
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
@@ -11,19 +11,19 @@ import { findAnnotation } from '@dxos/effect';
|
|
|
11
11
|
import { type InputProps } from '@dxos/react-ui-form';
|
|
12
12
|
|
|
13
13
|
import { FileContainer, FileInput } from '../components';
|
|
14
|
-
import {
|
|
14
|
+
import { meta } from '../meta';
|
|
15
15
|
import { FileType, WnfsAction } from '../types';
|
|
16
16
|
|
|
17
17
|
export default () =>
|
|
18
18
|
contributes(Capabilities.ReactSurface, [
|
|
19
19
|
createSurface({
|
|
20
|
-
id: `${
|
|
20
|
+
id: `${meta.id}/article`,
|
|
21
21
|
role: ['article', 'section', 'slide'],
|
|
22
22
|
filter: (data): data is { subject: FileType } => Obj.instanceOf(FileType, data.subject),
|
|
23
23
|
component: ({ data, role }) => <FileContainer role={role} file={data.subject} />,
|
|
24
24
|
}),
|
|
25
25
|
createSurface({
|
|
26
|
-
id: `${
|
|
26
|
+
id: `${meta.id}/create-form`,
|
|
27
27
|
role: 'form-input',
|
|
28
28
|
filter: (data): data is { prop: string; schema: Schema.Schema.Any } => {
|
|
29
29
|
const annotation = findAnnotation<boolean>(
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import type * as Schema from 'effect/Schema';
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
7
|
import { useDropzone } from 'react-dropzone';
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ import { findAnnotation } from '@dxos/effect';
|
|
|
10
10
|
import { useTranslation } from '@dxos/react-ui';
|
|
11
11
|
import { mx } from '@dxos/react-ui-theme';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { meta } from '../meta';
|
|
14
14
|
import { WnfsAction } from '../types';
|
|
15
15
|
|
|
16
16
|
export type FileInputProps = {
|
|
@@ -19,7 +19,7 @@ export type FileInputProps = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export const FileInput = ({ schema, onChange }: FileInputProps) => {
|
|
22
|
-
const { t } = useTranslation(
|
|
22
|
+
const { t } = useTranslation(meta.id);
|
|
23
23
|
const accept = findAnnotation<Record<string, string[]>>(schema.ast, WnfsAction.UploadAnnotationId);
|
|
24
24
|
|
|
25
25
|
const onDropAccepted = useCallback((files: File[]) => onChange?.(files[0]), [onChange]);
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import '@dxos-theme';
|
|
6
|
-
|
|
7
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
8
6
|
import type { Blockstore } from 'interface-blockstore';
|
|
9
7
|
import React, { type ChangeEvent, useEffect, useState } from 'react';
|
|
@@ -12,6 +10,7 @@ import { faker } from '@dxos/random';
|
|
|
12
10
|
import { useSpace } from '@dxos/react-client/echo';
|
|
13
11
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
14
12
|
import { useThemeContext } from '@dxos/react-ui';
|
|
13
|
+
import { withTheme } from '@dxos/react-ui/testing';
|
|
15
14
|
import {
|
|
16
15
|
createBasicExtensions,
|
|
17
16
|
createMarkdownExtensions,
|
|
@@ -20,7 +19,6 @@ import {
|
|
|
20
19
|
processEditorPayload,
|
|
21
20
|
useTextEditor,
|
|
22
21
|
} from '@dxos/react-ui-editor';
|
|
23
|
-
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
24
22
|
|
|
25
23
|
import { create as createBlockstore } from '../blockstore';
|
|
26
24
|
import { upload } from '../helpers';
|
|
@@ -96,7 +94,7 @@ const DefaultStory = () => {
|
|
|
96
94
|
const meta = {
|
|
97
95
|
title: 'plugins/plugin-wnfs/image',
|
|
98
96
|
render: DefaultStory,
|
|
99
|
-
decorators: [withClientProvider({ createIdentity: true, createSpace: true })
|
|
97
|
+
decorators: [withTheme, withClientProvider({ createIdentity: true, createSpace: true })],
|
|
100
98
|
} satisfies Meta<typeof DefaultStory>;
|
|
101
99
|
|
|
102
100
|
export default meta;
|
package/src/meta.ts
CHANGED
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { type PluginMeta } from '@dxos/app-framework';
|
|
6
6
|
|
|
7
|
-
export const WNFS_PLUGIN = 'dxos.org/plugin/wnfs';
|
|
8
|
-
|
|
9
7
|
export const meta: PluginMeta = {
|
|
10
|
-
id:
|
|
8
|
+
id: 'dxos.org/plugin/wnfs',
|
|
11
9
|
name: 'WNFS',
|
|
12
10
|
description: 'Manage and view files with via the Web Native File System (WNFS).',
|
|
13
11
|
icon: 'ph--file-cloud--regular',
|
package/src/types/file.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import { TypedObject } from '@dxos/echo
|
|
7
|
+
import { TypedObject } from '@dxos/echo/internal';
|
|
8
8
|
|
|
9
9
|
export class FileType extends TypedObject({
|
|
10
10
|
typename: 'dxos.org/type/File',
|
package/src/types/types.ts
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
7
|
import { FileInfoSchema } from '@dxos/app-framework';
|
|
8
8
|
import { SpaceSchema } from '@dxos/react-client/echo';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { meta } from '../meta';
|
|
11
11
|
|
|
12
12
|
import { FileType } from './file';
|
|
13
13
|
|
|
14
14
|
export namespace WnfsAction {
|
|
15
|
-
export class Create extends Schema.TaggedClass<Create>()(`${
|
|
15
|
+
export class Create extends Schema.TaggedClass<Create>()(`${meta.id}/action/create`, {
|
|
16
16
|
input: FileInfoSchema.pick('name', 'type', 'cid').pipe(Schema.required),
|
|
17
17
|
output: Schema.Struct({
|
|
18
18
|
object: FileType,
|
|
19
19
|
}),
|
|
20
20
|
}) {}
|
|
21
21
|
|
|
22
|
-
export const UploadAnnotationId = Symbol.for(`${
|
|
22
|
+
export const UploadAnnotationId = Symbol.for(`${meta.id}/annotation/upload`);
|
|
23
23
|
|
|
24
24
|
export const UploadFileSchema = Schema.Struct({
|
|
25
25
|
file: Schema.instanceOf(File).annotations({
|
|
@@ -34,7 +34,7 @@ export namespace WnfsAction {
|
|
|
34
34
|
|
|
35
35
|
export type UploadFileForm = Schema.Schema.Type<typeof UploadFileSchema>;
|
|
36
36
|
|
|
37
|
-
export class Upload extends Schema.TaggedClass<Upload>()(`${
|
|
37
|
+
export class Upload extends Schema.TaggedClass<Upload>()(`${meta.id}/action/upload`, {
|
|
38
38
|
input: Schema.extend(UploadFileSchema, Schema.Struct({ space: SpaceSchema })),
|
|
39
39
|
output: Schema.required(FileInfoSchema),
|
|
40
40
|
}) {}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/file.ts", "../../../src/types/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { TypedObject } from '@dxos/echo-schema';\n\nexport class FileType extends TypedObject({\n typename: 'dxos.org/type/File',\n version: '0.1.0',\n})({\n name: Schema.optional(Schema.String),\n type: Schema.String,\n cid: Schema.String,\n timestamp: Schema.optional(Schema.String),\n}) {}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { FileInfoSchema } from '@dxos/app-framework';\nimport { SpaceSchema } from '@dxos/react-client/echo';\n\nimport { WNFS_PLUGIN } from '../meta';\n\nimport { FileType } from './file';\n\nexport namespace WnfsAction {\n export class Create extends Schema.TaggedClass<Create>()(`${WNFS_PLUGIN}/action/create`, {\n input: FileInfoSchema.pick('name', 'type', 'cid').pipe(Schema.required),\n output: Schema.Struct({\n object: FileType,\n }),\n }) {}\n\n export const UploadAnnotationId = Symbol.for(`${WNFS_PLUGIN}/annotation/upload`);\n\n export const UploadFileSchema = Schema.Struct({\n file: Schema.instanceOf(File).annotations({\n [UploadAnnotationId]: {\n // Accept file types.\n 'image/*': ['.jpg', '.jpeg', '.png', '.gif'],\n 'application/pdf': ['.pdf'],\n // TODO(wittjosiah): Add more file types.\n },\n }),\n });\n\n export type UploadFileForm = Schema.Schema.Type<typeof UploadFileSchema>;\n\n export class Upload extends Schema.TaggedClass<Upload>()(`${WNFS_PLUGIN}/action/upload`, {\n input: Schema.extend(UploadFileSchema, Schema.Struct({ space: SpaceSchema })),\n output: Schema.required(FileInfoSchema),\n }) {}\n}\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,mBAAmB;AAErB,IAAMC,WAAN,cAAuBC,YAAY;EACxCC,UAAU;EACVC,SAAS;AACX,CAAA,EAAG;EACDC,MAAMC,OAAOC,SAASD,OAAOE,MAAM;EACnCC,MAAMH,OAAOE;EACbE,KAAKJ,OAAOE;EACZG,WAAWL,OAAOC,SAASD,OAAOE,MAAM;AAC1C,CAAA,EAAA;AAAI;;;ACZJ,SAASI,UAAAA,eAAc;AAEvB,SAASC,sBAAsB;AAC/B,SAASC,mBAAmB;UAMXC,aAAAA;EACR,MAAMC,eAAeC,QAAOC,YAAW,EAAW,GAAGC,WAAAA,kBAA6B;IACvFC,OAAOC,eAAeC,KAAK,QAAQ,QAAQ,KAAA,EAAOC,KAAKN,QAAOO,QAAQ;IACtEC,QAAQR,QAAOS,OAAO;MACpBC,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;cALSZ,SAAAA;cAOAa,qBAAqBC,OAAOC,IAAI,GAAGZ,WAAAA,oBAA+B;cAElEa,mBAAmBf,QAAOS,OAAO;IAC5CO,MAAMhB,QAAOiB,WAAWC,IAAAA,EAAMC,YAAY;MACxC,CAAArB,YAACc,kBAAAA,GAAqB;;QAEpB,WAAW;UAAC;UAAQ;UAAS;UAAQ;;QACrC,mBAAmB;UAAC;;MAEtB;IACF,CAAA;EACF,CAAA;EAIO,MAAMQ,eAAepB,QAAOC,YAAW,EAAW,GAAGC,WAAAA,kBAA6B;IACvFC,OAAOH,QAAOqB,OAAMvB,YAACiB,kBAAkBf,QAAOS,OAAO;MAAEa,OAAOC;IAAY,CAAA,CAAA;IAC1Ef,QAAQR,QAAOO,SAASH,cAAAA;EAC1B,CAAA,EAAA;EAAI;cAHSgB,SAAAA;AAIf,GA3BiBtB,eAAAA,aAAAA,CAAAA,EAAAA;;",
|
|
6
|
-
"names": ["Schema", "TypedObject", "FileType", "TypedObject", "typename", "version", "name", "Schema", "optional", "String", "type", "cid", "timestamp", "Schema", "FileInfoSchema", "SpaceSchema", "WnfsAction", "Create", "Schema", "TaggedClass", "WNFS_PLUGIN", "input", "FileInfoSchema", "pick", "pipe", "required", "output", "Struct", "object", "FileType", "UploadAnnotationId", "Symbol", "for", "UploadFileSchema", "file", "instanceOf", "File", "annotations", "Upload", "extend", "space", "SpaceSchema"]
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
WNFS_PLUGIN
|
|
3
|
-
} from "./chunk-VDDGZWAY.mjs";
|
|
4
|
-
|
|
5
|
-
// src/capabilities/capabilities.ts
|
|
6
|
-
import { defineCapability } from "@dxos/app-framework";
|
|
7
|
-
(function(WnfsCapabilities2) {
|
|
8
|
-
WnfsCapabilities2.Blockstore = defineCapability(`${WNFS_PLUGIN}/capability/blockstore`);
|
|
9
|
-
WnfsCapabilities2.Instances = defineCapability(`${WNFS_PLUGIN}/capability/instances`);
|
|
10
|
-
})(WnfsCapabilities || (WnfsCapabilities = {}));
|
|
11
|
-
var WnfsCapabilities;
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
WnfsCapabilities
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-KZANQHJY.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/capabilities.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Blockstore } from 'interface-blockstore';\nimport { type PrivateDirectory, type PrivateForest } from 'wnfs';\n\nimport { defineCapability } from '@dxos/app-framework';\nimport { type SpaceId } from '@dxos/keys';\n\nimport { WNFS_PLUGIN } from '../meta';\n\nexport namespace WnfsCapabilities {\n export const Blockstore = defineCapability<Blockstore>(`${WNFS_PLUGIN}/capability/blockstore`);\n\n export type Instances = Record<SpaceId, { directory: PrivateDirectory; forest: PrivateForest }>;\n export const Instances = defineCapability<Instances>(`${WNFS_PLUGIN}/capability/instances`);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;AAOA,SAASA,wBAAwB;UAKhBC,mBAAAA;oBACFC,aAAaC,iBAA6B,GAAGC,WAAAA,wBAAmC;oBAGhFC,YAAYF,iBAA4B,GAAGC,WAAAA,uBAAkC;AAC5F,GALiBH,qBAAAA,mBAAAA,CAAAA,EAAAA;;",
|
|
6
|
-
"names": ["defineCapability", "WnfsCapabilities", "Blockstore", "defineCapability", "WNFS_PLUGIN", "Instances"]
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// src/capabilities/index.ts
|
|
2
|
-
import { lazy } from "@dxos/app-framework";
|
|
3
|
-
var Blockstore = lazy(() => import("./blockstore-7ZSJRK6J.mjs"));
|
|
4
|
-
var FileUploader = lazy(() => import("./file-uploader-YRZPRETS.mjs"));
|
|
5
|
-
var IntentResolver = lazy(() => import("./intent-resolver-CKGJNE6P.mjs"));
|
|
6
|
-
var Markdown = lazy(() => import("./markdown-JBWCO5KY.mjs"));
|
|
7
|
-
var ReactSurface = lazy(() => import("./react-surface-K4J4I2CJ.mjs"));
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
Blockstore,
|
|
11
|
-
FileUploader,
|
|
12
|
-
IntentResolver,
|
|
13
|
-
Markdown,
|
|
14
|
-
ReactSurface
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-R2CXJQHR.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const WNFS_PLUGIN = 'dxos.org/plugin/wnfs';\n\nexport const meta: PluginMeta = {\n id: WNFS_PLUGIN,\n name: 'WNFS',\n description: 'Manage and view files with via the Web Native File System (WNFS).',\n icon: 'ph--file-cloud--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-wnfs',\n};\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,cAAc;AAEpB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;AACV;",
|
|
6
|
-
"names": ["WNFS_PLUGIN", "meta", "id", "name", "description", "icon", "source"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/file-uploader.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Effect, pipe } from 'effect';\n\nimport { Capabilities, type PluginContext, chain, contributes, createIntent } from '@dxos/app-framework';\nimport { SpaceAction } from '@dxos/plugin-space/types';\n\nimport { WnfsAction } from '../types';\n\nexport default (context: PluginContext) => {\n return contributes(Capabilities.FileUploader, (file, space) => {\n const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n\n const program = Effect.gen(function* () {\n const fileInfo = yield* dispatch(createIntent(WnfsAction.Upload, { file, space }));\n yield* dispatch(pipe(createIntent(WnfsAction.Create, fileInfo), chain(SpaceAction.AddObject, { target: space })));\n return fileInfo;\n });\n\n return Effect.runPromise(program);\n });\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,QAAQC,YAAY;AAE7B,SAASC,cAAkCC,OAAOC,aAAaC,oBAAoB;AACnF,SAASC,mBAAmB;AAI5B,IAAA,wBAAe,CAACC,YAAAA;AACd,SAAOC,YAAYC,aAAaC,cAAc,CAACC,MAAMC,UAAAA;AACnD,UAAM,EAAEC,SAAQ,IAAKN,QAAQO,cAAcL,aAAaM,gBAAgB;AAExE,UAAMC,UAAUC,OAAOC,IAAI,aAAA;AACzB,YAAMC,WAAW,OAAON,SAASO,aAAaC,WAAWC,QAAQ;QAAEX;QAAMC;MAAM,CAAA,CAAA;AAC/E,aAAOC,SAASU,KAAKH,aAAaC,WAAWG,QAAQL,QAAAA,GAAWM,MAAMC,YAAYC,WAAW;QAAEC,QAAQhB;MAAM,CAAA,CAAA,CAAA;AAC7G,aAAOO;IACT,CAAA;AAEA,WAAOF,OAAOY,WAAWb,OAAAA;EAC3B,CAAA;AACF;",
|
|
6
|
-
"names": ["Effect", "pipe", "Capabilities", "chain", "contributes", "createIntent", "SpaceAction", "context", "contributes", "Capabilities", "FileUploader", "file", "space", "dispatch", "getCapability", "IntentDispatcher", "program", "Effect", "gen", "fileInfo", "createIntent", "WnfsAction", "Upload", "pipe", "Create", "chain", "SpaceAction", "AddObject", "target", "runPromise"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts", "../../../src/components/FileInput.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Schema } from 'effect';\nimport React, { useCallback } from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { findAnnotation } from '@dxos/effect';\nimport { type InputProps } from '@dxos/react-ui-form';\n\nimport { FileContainer, FileInput } from '../components';\nimport { WNFS_PLUGIN } from '../meta';\nimport { FileType, WnfsAction } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${WNFS_PLUGIN}/article`,\n role: ['article', 'section', 'slide'],\n filter: (data): data is { subject: FileType } => Obj.instanceOf(FileType, data.subject),\n component: ({ data, role }) => <FileContainer role={role} file={data.subject} />,\n }),\n createSurface({\n id: `${WNFS_PLUGIN}/create-form`,\n role: 'form-input',\n filter: (data): data is { prop: string; schema: Schema.Schema.Any } => {\n const annotation = findAnnotation<boolean>(\n (data.schema as Schema.Schema.All).ast,\n WnfsAction.UploadAnnotationId,\n );\n return !!annotation;\n },\n component: ({ data: { prop, schema }, ...props }) => {\n const inputProps = props as unknown as InputProps;\n const handleChange = useCallback(\n (file: File) => inputProps.onValueChange?.('object', file),\n [prop, inputProps.onValueChange],\n );\n\n return <FileInput schema={schema} onChange={handleChange} />;\n },\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const FileContainer = lazy(() => import('./FileContainer'));\n\nexport * from './FileInput';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Schema } from 'effect';\nimport React, { useCallback } from 'react';\nimport { useDropzone } from 'react-dropzone';\n\nimport { findAnnotation } from '@dxos/effect';\nimport { useTranslation } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-ui-theme';\n\nimport { WNFS_PLUGIN } from '../meta';\nimport { WnfsAction } from '../types';\n\nexport type FileInputProps = {\n schema: Schema.Schema.Any;\n onChange: (file: File) => void;\n};\n\nexport const FileInput = ({ schema, onChange }: FileInputProps) => {\n const { t } = useTranslation(WNFS_PLUGIN);\n const accept = findAnnotation<Record<string, string[]>>(schema.ast, WnfsAction.UploadAnnotationId);\n\n const onDropAccepted = useCallback((files: File[]) => onChange?.(files[0]), [onChange]);\n\n const { acceptedFiles, getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone({\n multiple: false,\n accept,\n onDropAccepted,\n });\n\n return (\n <div\n {...getRootProps()}\n className={mx(\n 'flex flex-col items-center p-8 border border-separator',\n isFocused && 'focus-ring',\n isDragAccept && 'bg-attention',\n isDragReject && 'border-error',\n )}\n >\n <input {...getInputProps()} />\n {acceptedFiles[0] ? <p>{acceptedFiles[0].name}</p> : <p>{t('file input placeholder')}</p>}\n </div>\n );\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;AAKA,OAAOA,UAASC,eAAAA,oBAAmB;AAEnC,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,WAAW;AACpB,SAASC,kBAAAA,uBAAsB;;;ACL/B,SAASC,YAAY;;;;ACCrB,OAAOC,SAASC,mBAAmB;AACnC,SAASC,mBAAmB;AAE5B,SAASC,sBAAsB;AAC/B,SAASC,sBAAsB;AAC/B,SAASC,UAAU;AAUZ,IAAMC,YAAY,CAAC,EAAEC,QAAQC,SAAQ,MAAkB;;;AAC5D,UAAM,EAAEC,EAAC,IAAKC,eAAeC,WAAAA;AAC7B,UAAMC,SAASC,eAAyCN,OAAOO,KAAKC,WAAWC,kBAAkB;AAEjG,UAAMC,iBAAiBC,YAAY,CAACC,UAAkBX,WAAWW,MAAM,CAAA,CAAE,GAAG;MAACX;KAAS;AAEtF,UAAM,EAAEY,eAAeC,cAAcC,eAAeC,WAAWC,cAAcC,aAAY,IAAKC,YAAY;MACxGC,UAAU;MACVf;MACAK;IACF,CAAA;AAEA,WACE,sBAAA,cAACW,OAAAA;MACE,GAAGP,aAAAA;MACJQ,WAAWC,GACT,0DACAP,aAAa,cACbC,gBAAgB,gBAChBC,gBAAgB,cAAA;OAGlB,sBAAA,cAACM,SAAUT,cAAAA,CAAAA,GACVF,cAAc,CAAA,IAAK,sBAAA,cAACY,KAAAA,MAAGZ,cAAc,CAAA,EAAGa,IAAI,IAAQ,sBAAA,cAACD,KAAAA,MAAGvB,EAAE,wBAAA,CAAA,CAAA;;;;AAGjE;;;ADxCO,IAAMyB,gBAAgBC,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ADU/C,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,WAAAA;IACPC,MAAM;MAAC;MAAW;MAAW;;IAC7BC,QAAQ,CAACC,SAAwCC,IAAIC,WAAWC,UAAUH,KAAKI,OAAO;IACtFC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,gBAAAQ,OAAA,cAACC,eAAAA;MAAcT;MAAYU,MAAMR,KAAKI;;EACvE,CAAA;EACAT,cAAc;IACZC,IAAI,GAAGC,WAAAA;IACPC,MAAM;IACNC,QAAQ,CAACC,SAAAA;AACP,YAAMS,aAAaC,gBAChBV,KAAKW,OAA6BC,KACnCC,WAAWC,kBAAkB;AAE/B,aAAO,CAAC,CAACL;IACX;IACAJ,WAAW,CAAC,EAAEL,MAAM,EAAEe,MAAMJ,OAAM,GAAI,GAAGK,MAAAA,MAAO;AAC9C,YAAMC,aAAaD;AACnB,YAAME,eAAeC,aACnB,CAACX,SAAeS,WAAWG,gBAAgB,UAAUZ,IAAAA,GACrD;QAACO;QAAME,WAAWG;OAAc;AAGlC,aAAO,gBAAAd,OAAA,cAACe,WAAAA;QAAUV;QAAgBW,UAAUJ;;IAC9C;EACF,CAAA;CACD;",
|
|
6
|
-
"names": ["React", "useCallback", "Capabilities", "contributes", "createSurface", "Obj", "findAnnotation", "lazy", "React", "useCallback", "useDropzone", "findAnnotation", "useTranslation", "mx", "FileInput", "schema", "onChange", "t", "useTranslation", "WNFS_PLUGIN", "accept", "findAnnotation", "ast", "WnfsAction", "UploadAnnotationId", "onDropAccepted", "useCallback", "files", "acceptedFiles", "getRootProps", "getInputProps", "isFocused", "isDragAccept", "isDragReject", "useDropzone", "multiple", "div", "className", "mx", "input", "p", "name", "FileContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "WNFS_PLUGIN", "role", "filter", "data", "Obj", "instanceOf", "FileType", "subject", "component", "React", "FileContainer", "file", "annotation", "findAnnotation", "schema", "ast", "WnfsAction", "UploadAnnotationId", "prop", "props", "inputProps", "handleChange", "useCallback", "onValueChange", "FileInput", "onChange"]
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|