@dxos/plugin-wnfs 0.8.4-main.abd8ff62ef → 0.8.4-main.bc2380dfbc
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 +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/FileArticle-B3NF2VKL.mjs +58 -0
- package/dist/lib/neutral/FileArticle-B3NF2VKL.mjs.map +7 -0
- package/dist/lib/neutral/WnfsPlugin.mjs +50 -0
- package/dist/lib/neutral/WnfsPlugin.mjs.map +7 -0
- package/dist/lib/neutral/WnfsPlugin.node.mjs +23 -0
- package/dist/lib/neutral/WnfsPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/WnfsPlugin.workerd.mjs +21 -0
- package/dist/lib/neutral/WnfsPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/blockstore-3NLSWC7Z.mjs +190 -0
- package/dist/lib/neutral/blockstore-3NLSWC7Z.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +19 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/index.mjs → neutral/chunk-LHUHUCBD.mjs} +1 -13
- package/dist/lib/neutral/chunk-LHUHUCBD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-UIZBWELF.mjs +8 -0
- package/dist/lib/neutral/chunk-UIZBWELF.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VWVCHTUK.mjs +125 -0
- package/dist/lib/neutral/chunk-VWVCHTUK.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +63 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/{browser/create-QRLX4IMZ.mjs → neutral/create-4ERE5CA4.mjs} +6 -8
- package/dist/lib/neutral/create-4ERE5CA4.mjs.map +7 -0
- package/dist/lib/{browser/create-file-INAT56PX.mjs → neutral/create-file-RAHDIJVU.mjs} +11 -13
- package/dist/lib/neutral/create-file-RAHDIJVU.mjs.map +7 -0
- package/dist/lib/neutral/create-object-7PJC47BB.mjs +33 -0
- package/dist/lib/neutral/create-object-7PJC47BB.mjs.map +7 -0
- package/dist/lib/neutral/file-uploader-WOF3H3FN.mjs +34 -0
- package/dist/lib/neutral/file-uploader-WOF3H3FN.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +40 -0
- package/dist/lib/neutral/markdown-I4FYAUCA.mjs +204 -0
- package/dist/lib/neutral/markdown-I4FYAUCA.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-NPYSIPMR.mjs +13 -0
- package/dist/lib/neutral/operation-handler-NPYSIPMR.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-6QHCDYC3.mjs +53 -0
- package/dist/lib/neutral/react-surface-6QHCDYC3.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/translations.mjs +1 -1
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/{browser/upload-ZQI66T4Y.mjs → neutral/upload-VA5CSUEP.mjs} +9 -11
- package/dist/lib/neutral/upload-VA5CSUEP.mjs.map +7 -0
- package/dist/types/src/WnfsPlugin.d.ts.map +1 -1
- package/dist/types/src/WnfsPlugin.node.d.ts.map +1 -1
- package/dist/types/src/WnfsPlugin.workerd.d.ts +4 -0
- package/dist/types/src/WnfsPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +7 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-file.d.ts +2 -2
- package/dist/types/src/operations/create-file.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +2 -2
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +0 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/upload.d.ts +2 -2
- package/dist/types/src/operations/upload.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/types/WnfsCapabilities.d.ts +11 -0
- package/dist/types/src/types/WnfsCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/{File.d.ts → WnfsFile.d.ts} +4 -4
- package/dist/types/src/types/WnfsFile.d.ts.map +1 -0
- package/dist/types/src/{operations/definitions.d.ts → types/WnfsOperation.d.ts} +1 -1
- package/dist/types/src/types/WnfsOperation.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +87 -61
- package/src/WnfsPlugin.node.ts +4 -32
- package/src/WnfsPlugin.test.ts +3 -3
- package/src/WnfsPlugin.tsx +6 -32
- package/src/WnfsPlugin.workerd.ts +18 -0
- package/src/capabilities/blockstore.ts +1 -1
- package/src/capabilities/create-object.ts +33 -0
- package/src/capabilities/file-uploader.ts +2 -2
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/markdown.ts +1 -1
- package/src/capabilities/react-surface.tsx +5 -5
- package/src/containers/{FileContainer/FileContainer.tsx → FileArticle/FileArticle.tsx} +3 -3
- package/src/containers/FileArticle/index.ts +5 -0
- package/src/containers/index.ts +1 -1
- package/src/index.ts +2 -8
- package/src/operations/create-file.ts +3 -4
- package/src/operations/create.ts +2 -3
- package/src/operations/index.ts +0 -2
- package/src/operations/upload.ts +3 -4
- package/src/plugin.ts +11 -0
- package/src/translations.ts +1 -1
- package/src/types/WnfsCapabilities.ts +18 -0
- package/src/types/{File.ts → WnfsFile.ts} +5 -3
- package/src/{operations/definitions.ts → types/WnfsOperation.ts} +6 -3
- package/src/types/index.ts +4 -2
- package/dist/lib/browser/chunk-4D4K5JCC.mjs +0 -66
- package/dist/lib/browser/chunk-4D4K5JCC.mjs.map +0 -7
- package/dist/lib/browser/chunk-DK62NQ5T.mjs +0 -71
- package/dist/lib/browser/chunk-DK62NQ5T.mjs.map +0 -7
- package/dist/lib/browser/create-QRLX4IMZ.mjs.map +0 -7
- package/dist/lib/browser/create-file-INAT56PX.mjs.map +0 -7
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operations/index.mjs +0 -14
- package/dist/lib/browser/operations/index.mjs.map +0 -7
- package/dist/lib/browser/translations.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -12
- package/dist/lib/browser/upload-ZQI66T4Y.mjs.map +0 -7
- package/dist/types/src/containers/FileContainer/FileContainer.d.ts +0 -7
- package/dist/types/src/containers/FileContainer/FileContainer.d.ts.map +0 -1
- package/dist/types/src/containers/FileContainer/index.d.ts +0 -2
- package/dist/types/src/containers/FileContainer/index.d.ts.map +0 -1
- package/dist/types/src/operations/definitions.d.ts.map +0 -1
- package/dist/types/src/types/File.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -13
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/src/containers/FileContainer/index.ts +0 -5
- package/src/types/capabilities.ts +0 -18
- /package/dist/lib/{browser → neutral}/chunk-7KFJ6LYH.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-7KFJ6LYH.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/helpers/index.mjs +0 -0
- /package/dist/lib/{browser → neutral}/helpers/index.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getBlobUrl,
|
|
3
|
+
getPathFromUrl,
|
|
4
|
+
loadWnfs
|
|
5
|
+
} from "./chunk-7KFJ6LYH.mjs";
|
|
6
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
7
|
+
|
|
8
|
+
// src/capabilities/markdown.ts
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Capability } from "@dxos/app-framework";
|
|
11
|
+
import { MarkdownCapabilities } from "@dxos/plugin-markdown";
|
|
12
|
+
import { getSpace } from "@dxos/react-client/echo";
|
|
13
|
+
import { WnfsCapabilities } from "#types";
|
|
14
|
+
|
|
15
|
+
// src/extensions/image.tsx
|
|
16
|
+
import { syntaxTree } from "@codemirror/language";
|
|
17
|
+
import { StateField } from "@codemirror/state";
|
|
18
|
+
import { Decoration, EditorView, WidgetType } from "@codemirror/view";
|
|
19
|
+
import React from "react";
|
|
20
|
+
import { createRoot } from "react-dom/client";
|
|
21
|
+
import { Status, ThemeProvider } from "@dxos/react-ui";
|
|
22
|
+
import { focusField } from "@dxos/ui-editor";
|
|
23
|
+
import { defaultTx } from "@dxos/ui-theme";
|
|
24
|
+
var WAIT_UNTIL_LOADER = 1500;
|
|
25
|
+
var image = (options) => {
|
|
26
|
+
const blobUrlCache = {};
|
|
27
|
+
const preloaded = /* @__PURE__ */ new Set();
|
|
28
|
+
const preload = (url) => {
|
|
29
|
+
if (!preloaded.has(url)) {
|
|
30
|
+
const img = document.createElement("img");
|
|
31
|
+
img.src = url;
|
|
32
|
+
preloaded.add(url);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return [
|
|
36
|
+
StateField.define({
|
|
37
|
+
create: (state) => {
|
|
38
|
+
return Decoration.set(buildDecorations({
|
|
39
|
+
from: 0,
|
|
40
|
+
to: state.doc.length,
|
|
41
|
+
state,
|
|
42
|
+
blobUrlCache,
|
|
43
|
+
preload,
|
|
44
|
+
options
|
|
45
|
+
}));
|
|
46
|
+
},
|
|
47
|
+
update: (value, tr) => {
|
|
48
|
+
if (!tr.docChanged && !tr.selection) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
const cursor = tr.state.selection.main.head;
|
|
52
|
+
const oldCursor = tr.changes.mapPos(tr.startState.selection.main.head);
|
|
53
|
+
let from = Math.min(cursor, oldCursor);
|
|
54
|
+
let to = Math.max(cursor, oldCursor);
|
|
55
|
+
tr.changes.iterChangedRanges((fromA, toA, fromB, toB) => {
|
|
56
|
+
from = Math.min(from, fromB);
|
|
57
|
+
to = Math.max(to, toB);
|
|
58
|
+
});
|
|
59
|
+
from = tr.state.doc.lineAt(from).from;
|
|
60
|
+
to = tr.state.doc.lineAt(to).to;
|
|
61
|
+
return value.map(tr.changes).update({
|
|
62
|
+
filterFrom: from,
|
|
63
|
+
filterTo: to,
|
|
64
|
+
filter: () => false,
|
|
65
|
+
add: buildDecorations({
|
|
66
|
+
from,
|
|
67
|
+
to,
|
|
68
|
+
state: tr.state,
|
|
69
|
+
blobUrlCache,
|
|
70
|
+
preload,
|
|
71
|
+
options
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
provide: (field) => EditorView.decorations.from(field)
|
|
76
|
+
})
|
|
77
|
+
];
|
|
78
|
+
};
|
|
79
|
+
var buildDecorations = ({ state, from, to, blobUrlCache, preload, options: { blockstore, instances, space } }) => {
|
|
80
|
+
const decorations = [];
|
|
81
|
+
const cursor = state.selection.main.head;
|
|
82
|
+
syntaxTree(state).iterate({
|
|
83
|
+
enter: (node) => {
|
|
84
|
+
if (node.name !== "Image") {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const urlNode = node.node.getChild("URL");
|
|
88
|
+
if (!urlNode) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const hide = state.readOnly || cursor < node.from || cursor > node.to;
|
|
92
|
+
const wnfsUrl = state.sliceDoc(urlNode.from, urlNode.to);
|
|
93
|
+
if (!wnfsUrl.startsWith("wnfs://")) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const path = getPathFromUrl(wnfsUrl);
|
|
97
|
+
const spaceId = path[1];
|
|
98
|
+
if (spaceId !== space.id) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const blobUrlPromise = (async () => {
|
|
102
|
+
const { directory, forest } = await loadWnfs({
|
|
103
|
+
blockstore,
|
|
104
|
+
instances,
|
|
105
|
+
space
|
|
106
|
+
});
|
|
107
|
+
const url = await getBlobUrl({
|
|
108
|
+
wnfsUrl,
|
|
109
|
+
blockstore,
|
|
110
|
+
directory,
|
|
111
|
+
forest
|
|
112
|
+
});
|
|
113
|
+
blobUrlCache[path.join("/")] = url;
|
|
114
|
+
preload(url);
|
|
115
|
+
return url;
|
|
116
|
+
})();
|
|
117
|
+
decorations.push(Decoration.replace({
|
|
118
|
+
block: true,
|
|
119
|
+
widget: new WnfsImageWidget(wnfsUrl, blobUrlCache[path.join("/")] ?? blobUrlPromise)
|
|
120
|
+
}).range(hide ? node.from : node.to, node.to));
|
|
121
|
+
},
|
|
122
|
+
from,
|
|
123
|
+
to
|
|
124
|
+
});
|
|
125
|
+
return decorations;
|
|
126
|
+
};
|
|
127
|
+
var createImg = (view, url) => {
|
|
128
|
+
const img = document.createElement("img");
|
|
129
|
+
img.setAttribute("src", url);
|
|
130
|
+
img.setAttribute("class", "cm-image-with-loader");
|
|
131
|
+
if (view.state.field(focusField)) {
|
|
132
|
+
img.onload = () => img.classList.add("cm-loaded-image");
|
|
133
|
+
} else {
|
|
134
|
+
img.classList.add("cm-loaded-image");
|
|
135
|
+
}
|
|
136
|
+
return img;
|
|
137
|
+
};
|
|
138
|
+
var WnfsImageWidget = class extends WidgetType {
|
|
139
|
+
_wnfsUrl;
|
|
140
|
+
_url;
|
|
141
|
+
constructor(_wnfsUrl, _url) {
|
|
142
|
+
super(), this._wnfsUrl = _wnfsUrl, this._url = _url;
|
|
143
|
+
}
|
|
144
|
+
eq(other) {
|
|
145
|
+
return this._wnfsUrl === other._wnfsUrl;
|
|
146
|
+
}
|
|
147
|
+
toDOM(view) {
|
|
148
|
+
if (typeof this._url === "string") {
|
|
149
|
+
return createImg(view, this._url);
|
|
150
|
+
}
|
|
151
|
+
const widget = document.createElement("div");
|
|
152
|
+
widget.className = "cm-image-wrapper";
|
|
153
|
+
const loader = document.createElement("div");
|
|
154
|
+
loader.className = "mx-auto transition-opacity";
|
|
155
|
+
let loaderAdded = false;
|
|
156
|
+
const timeout = setTimeout(() => {
|
|
157
|
+
const root = createRoot(loader);
|
|
158
|
+
root.render(/* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
159
|
+
tx: defaultTx
|
|
160
|
+
}, /* @__PURE__ */ React.createElement(Status, {
|
|
161
|
+
indeterminate: true
|
|
162
|
+
})));
|
|
163
|
+
widget.appendChild(loader);
|
|
164
|
+
loaderAdded = true;
|
|
165
|
+
}, WAIT_UNTIL_LOADER);
|
|
166
|
+
void this._url.then((url) => {
|
|
167
|
+
clearTimeout(timeout);
|
|
168
|
+
const img = createImg(view, url);
|
|
169
|
+
loaderAdded && widget.removeChild(loader);
|
|
170
|
+
widget.appendChild(img);
|
|
171
|
+
});
|
|
172
|
+
return widget;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// src/capabilities/markdown.ts
|
|
177
|
+
var markdown_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
178
|
+
const capabilities = yield* Capability.Service;
|
|
179
|
+
const provider = ({ document: document2, viewMode }) => {
|
|
180
|
+
if (viewMode === "source") {
|
|
181
|
+
return void 0;
|
|
182
|
+
}
|
|
183
|
+
const blockstore = capabilities.get(WnfsCapabilities.Blockstore);
|
|
184
|
+
const instances = capabilities.get(WnfsCapabilities.Instances);
|
|
185
|
+
if (document2) {
|
|
186
|
+
const space = getSpace(document2);
|
|
187
|
+
return space ? [
|
|
188
|
+
image({
|
|
189
|
+
blockstore,
|
|
190
|
+
instances,
|
|
191
|
+
space
|
|
192
|
+
})
|
|
193
|
+
] : void 0;
|
|
194
|
+
}
|
|
195
|
+
return void 0;
|
|
196
|
+
};
|
|
197
|
+
return Capability.contributes(MarkdownCapabilities.Extensions, [
|
|
198
|
+
provider
|
|
199
|
+
]);
|
|
200
|
+
}));
|
|
201
|
+
export {
|
|
202
|
+
markdown_default as default
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=markdown-I4FYAUCA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/markdown.ts", "../../../src/extensions/image.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type MarkdownExtensionProvider, MarkdownCapabilities } from '@dxos/plugin-markdown';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { WnfsCapabilities } from '#types';\n\nimport { image } from '../extensions';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n // Get context for lazy capability access in callbacks.\n const capabilities = yield* Capability.Service;\n\n const provider: MarkdownExtensionProvider = ({ document, viewMode }) => {\n if (viewMode === 'source') {\n return undefined;\n }\n\n const blockstore = capabilities.get(WnfsCapabilities.Blockstore);\n const instances = capabilities.get(WnfsCapabilities.Instances);\n\n if (document) {\n const space = getSpace(document);\n return space ? [image({ blockstore, instances, space })] : undefined;\n }\n\n return undefined;\n };\n\n return Capability.contributes(MarkdownCapabilities.Extensions, [provider]);\n }),\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { syntaxTree } from '@codemirror/language';\nimport { type EditorState, type Extension, type Range, StateField } from '@codemirror/state';\nimport { Decoration, EditorView, WidgetType } from '@codemirror/view';\nimport type { Blockstore } from 'interface-blockstore';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { Status, ThemeProvider } from '@dxos/react-ui';\nimport { focusField } from '@dxos/ui-editor';\nimport { defaultTx } from '@dxos/ui-theme';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { type WnfsCapabilities } from '#types';\n\nimport { getBlobUrl, getPathFromUrl, loadWnfs } from '../helpers';\n\nconst WAIT_UNTIL_LOADER = 1500;\n\nexport type ImageOptions = {\n blockstore: Blockstore;\n instances: WnfsCapabilities.Instances;\n space: Space;\n};\n\n/**\n * Create WNFS image decorations.\n */\nexport const image = (options: ImageOptions): Extension[] => {\n const blobUrlCache: Record<string, string> = {};\n const preloaded = new Set<string>();\n\n const preload = (url: string) => {\n if (!preloaded.has(url)) {\n const img = document.createElement('img');\n img.src = url;\n preloaded.add(url);\n }\n };\n\n return [\n StateField.define({\n create: (state) => {\n return Decoration.set(\n buildDecorations({ from: 0, to: state.doc.length, state, blobUrlCache, preload, options }),\n );\n },\n update: (value, tr) => {\n if (!tr.docChanged && !tr.selection) {\n return value;\n }\n\n // Find range of changes and cursor changes.\n const cursor = tr.state.selection.main.head;\n const oldCursor = tr.changes.mapPos(tr.startState.selection.main.head);\n let from = Math.min(cursor, oldCursor);\n let to = Math.max(cursor, oldCursor);\n tr.changes.iterChangedRanges((fromA, toA, fromB, toB) => {\n from = Math.min(from, fromB);\n to = Math.max(to, toB);\n });\n\n // Expand to cover lines.\n from = tr.state.doc.lineAt(from).from;\n to = tr.state.doc.lineAt(to).to;\n\n return value.map(tr.changes).update({\n filterFrom: from,\n filterTo: to,\n filter: () => false,\n add: buildDecorations({ from, to, state: tr.state, blobUrlCache, preload, options }),\n });\n },\n provide: (field) => EditorView.decorations.from(field),\n }),\n ];\n};\n\nconst buildDecorations = ({\n state,\n from,\n to,\n blobUrlCache,\n preload,\n options: { blockstore, instances, space },\n}: {\n state: EditorState;\n from: number;\n to: number;\n blobUrlCache: Record<string, string>;\n preload: (url: string) => void;\n options: ImageOptions;\n}) => {\n const decorations: Range<Decoration>[] = [];\n const cursor = state.selection.main.head;\n syntaxTree(state).iterate({\n enter: (node) => {\n if (node.name !== 'Image') {\n return;\n }\n\n const urlNode = node.node.getChild('URL');\n if (!urlNode) {\n return;\n }\n\n const hide = state.readOnly || cursor < node.from || cursor > node.to;\n const wnfsUrl = state.sliceDoc(urlNode.from, urlNode.to);\n if (!wnfsUrl.startsWith('wnfs://')) {\n return;\n }\n\n const path = getPathFromUrl(wnfsUrl);\n\n // Cannot load images from other spaces\n const spaceId = path[1];\n if (spaceId !== space.id) {\n return;\n }\n\n // Load image contents into memory blob\n const blobUrlPromise = (async () => {\n const { directory, forest } = await loadWnfs({ blockstore, instances, space });\n const url = await getBlobUrl({ wnfsUrl, blockstore, directory, forest });\n blobUrlCache[path.join('/')] = url;\n preload(url);\n return url;\n })();\n\n decorations.push(\n Decoration.replace({\n block: true, // Prevent cursor from entering.\n widget: new WnfsImageWidget(wnfsUrl, blobUrlCache[path.join('/')] ?? blobUrlPromise),\n }).range(hide ? node.from : node.to, node.to),\n );\n },\n from,\n to,\n });\n\n return decorations;\n};\n\nconst createImg = (view: EditorView, url: string) => {\n const img = document.createElement('img');\n img.setAttribute('src', url);\n img.setAttribute('class', 'cm-image-with-loader');\n // If focused, hide image until successfully loaded to avoid flickering effects.\n if (view.state.field(focusField)) {\n img.onload = () => img.classList.add('cm-loaded-image');\n } else {\n img.classList.add('cm-loaded-image');\n }\n return img;\n};\n\nclass WnfsImageWidget extends WidgetType {\n constructor(\n readonly _wnfsUrl: string,\n readonly _url: MaybePromise<string>,\n ) {\n super();\n }\n\n override eq(other: this) {\n return this._wnfsUrl === other._wnfsUrl;\n }\n\n override toDOM(view: EditorView) {\n if (typeof this._url === 'string') {\n return createImg(view, this._url);\n }\n\n const widget = document.createElement('div');\n widget.className = 'cm-image-wrapper';\n const loader = document.createElement('div');\n loader.className = 'mx-auto transition-opacity';\n let loaderAdded = false;\n\n const timeout = setTimeout(() => {\n const root = createRoot(loader);\n root.render(\n <ThemeProvider tx={defaultTx}>\n <Status indeterminate />\n </ThemeProvider>,\n );\n widget.appendChild(loader);\n loaderAdded = true;\n }, WAIT_UNTIL_LOADER);\n\n void this._url.then((url) => {\n clearTimeout(timeout);\n const img = createImg(view, url);\n loaderAdded && widget.removeChild(loader);\n widget.appendChild(img);\n });\n\n return widget;\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Effect", "Capability", "MarkdownCapabilities", "getSpace", "WnfsCapabilities", "syntaxTree", "StateField", "Decoration", "EditorView", "WidgetType", "React", "createRoot", "Status", "ThemeProvider", "focusField", "defaultTx", "WAIT_UNTIL_LOADER", "image", "options", "blobUrlCache", "preloaded", "Set", "preload", "url", "has", "img", "document", "createElement", "src", "add", "StateField", "define", "create", "state", "Decoration", "set", "buildDecorations", "from", "to", "doc", "length", "update", "value", "tr", "docChanged", "selection", "cursor", "main", "head", "oldCursor", "changes", "mapPos", "startState", "Math", "min", "max", "iterChangedRanges", "fromA", "toA", "fromB", "toB", "lineAt", "map", "filterFrom", "filterTo", "filter", "provide", "field", "EditorView", "decorations", "blockstore", "instances", "space", "syntaxTree", "iterate", "enter", "node", "name", "urlNode", "getChild", "hide", "readOnly", "wnfsUrl", "sliceDoc", "startsWith", "path", "getPathFromUrl", "spaceId", "id", "blobUrlPromise", "directory", "forest", "loadWnfs", "getBlobUrl", "join", "push", "replace", "block", "widget", "WnfsImageWidget", "range", "createImg", "view", "setAttribute", "focusField", "onload", "classList", "WidgetType", "_wnfsUrl", "_url", "eq", "other", "toDOM", "className", "loader", "loaderAdded", "timeout", "setTimeout", "root", "createRoot", "render", "ThemeProvider", "tx", "defaultTx", "Status", "indeterminate", "appendChild", "then", "clearTimeout", "removeChild", "Capability", "makeModule", "fnUntraced", "capabilities", "Service", "provider", "document", "viewMode", "undefined", "blockstore", "get", "WnfsCapabilities", "Blockstore", "instances", "Instances", "space", "getSpace", "image", "contributes", "MarkdownCapabilities", "Extensions"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/helpers/common.ts":{"bytes":7514,"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true}],"format":"esm"},"src/helpers/load.ts":{"bytes":9287,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/helpers/wnfs-url.ts":{"bytes":3235,"imports":[{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/helpers/upload.ts":{"bytes":6915,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"src/helpers/index.ts":{"bytes":620,"imports":[{"path":"src/helpers/common.ts","kind":"import-statement","original":"./common"},{"path":"src/helpers/load.ts","kind":"import-statement","original":"./load"},{"path":"src/helpers/upload.ts","kind":"import-statement","original":"./upload"},{"path":"src/helpers/wnfs-url.ts","kind":"import-statement","original":"./wnfs-url"}],"format":"esm"},"src/meta.ts":{"bytes":1700,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":2425,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/WnfsCapabilities.ts":{"bytes":1732,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/WnfsFile.ts":{"bytes":3172,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true}],"format":"esm"},"src/types/WnfsOperation.ts":{"bytes":5398,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"},{"path":"src/types/WnfsFile.ts","kind":"import-statement","original":"./WnfsFile"}],"format":"esm"},"src/types/index.ts":{"bytes":911,"imports":[{"path":"src/types/types.ts","kind":"import-statement","original":"./types"},{"path":"src/types/WnfsCapabilities.ts","kind":"import-statement","original":"./WnfsCapabilities"},{"path":"src/types/WnfsFile.ts","kind":"import-statement","original":"./WnfsFile"},{"path":"src/types/WnfsOperation.ts","kind":"import-statement","original":"./WnfsOperation"}],"format":"esm"},"src/index.ts":{"bytes":532,"imports":[{"path":"src/helpers/index.ts","kind":"import-statement","original":"./helpers"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/WnfsPlugin.tsx":{"bytes":6016,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/WnfsPlugin.node.ts":{"bytes":2326,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/WnfsPlugin.workerd.ts":{"bytes":2023,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore.ts":{"bytes":19231,"imports":[{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/capabilities/blockstore.ts":{"bytes":2806,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/blockstore.ts","kind":"import-statement","original":"../blockstore"}],"format":"esm"},"src/capabilities/create-object.ts":{"bytes":4342,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/file-uploader.ts":{"bytes":4354,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/image.tsx":{"bytes":20980,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/extensions/index.ts":{"bytes":369,"imports":[{"path":"src/extensions/image.tsx","kind":"import-statement","original":"./image"}],"format":"esm"},"src/capabilities/markdown.ts":{"bytes":4132,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../extensions"}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1649,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":7554,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":2558,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blockstore.ts","kind":"dynamic-import","original":"./blockstore"},{"path":"src/capabilities/create-object.ts","kind":"dynamic-import","original":"./create-object"},{"path":"src/capabilities/file-uploader.ts","kind":"dynamic-import","original":"./file-uploader"},{"path":"src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/components/FileInput/FileInput.tsx":{"bytes":4863,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/components/FileInput/index.ts":{"bytes":377,"imports":[{"path":"src/components/FileInput/FileInput.tsx","kind":"import-statement","original":"./FileInput"}],"format":"esm"},"src/components/FilePreview/FilePreview.tsx":{"bytes":3867,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/FilePreview/index.ts":{"bytes":387,"imports":[{"path":"src/components/FilePreview/FilePreview.tsx","kind":"import-statement","original":"./FilePreview"}],"format":"esm"},"src/components/index.ts":{"bytes":476,"imports":[{"path":"src/components/FileInput/index.ts","kind":"import-statement","original":"./FileInput"},{"path":"src/components/FilePreview/index.ts","kind":"import-statement","original":"./FilePreview"}],"format":"esm"},"src/containers/FileArticle/FileArticle.tsx":{"bytes":5917,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../../helpers"}],"format":"esm"},"src/containers/FileArticle/index.ts":{"bytes":496,"imports":[{"path":"src/containers/FileArticle/FileArticle.tsx","kind":"import-statement","original":"./FileArticle"}],"format":"esm"},"src/containers/index.ts":{"bytes":696,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/FileArticle/index.ts","kind":"dynamic-import","original":"./FileArticle"}],"format":"esm"},"src/operations/create.ts":{"bytes":1872,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create-file.ts":{"bytes":4246,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../helpers"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/upload.ts":{"bytes":3713,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"src/helpers/index.ts","kind":"import-statement","original":"../helpers"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":1027,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/create.ts","kind":"dynamic-import","original":"./create"},{"path":"src/operations/create-file.ts","kind":"dynamic-import","original":"./create-file"},{"path":"src/operations/upload.ts","kind":"dynamic-import","original":"./upload"}],"format":"esm"},"src/plugin.ts":{"bytes":1057,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2716,"imports":[{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/markdown-I4FYAUCA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13048},"dist/lib/neutral/markdown-I4FYAUCA.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown.ts","inputs":{"src/capabilities/markdown.ts":{"bytesInOutput":944},"src/extensions/image.tsx":{"bytesInOutput":4794},"src/extensions/index.ts":{"bytesInOutput":0}},"bytes":6036},"dist/lib/neutral/operation-handler-NPYSIPMR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":922},"dist/lib/neutral/operation-handler-NPYSIPMR.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":341}},"bytes":521},"dist/lib/neutral/react-surface-6QHCDYC3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3902},"dist/lib/neutral/react-surface-6QHCDYC3.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":1761}},"bytes":1930},"dist/lib/neutral/FileArticle-B3NF2VKL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3029},"dist/lib/neutral/FileArticle-B3NF2VKL.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/FileArticle/index.ts","inputs":{"src/containers/FileArticle/FileArticle.tsx":{"bytesInOutput":1508},"src/containers/FileArticle/index.ts":{"bytesInOutput":0}},"bytes":1761},"dist/lib/neutral/create-4ERE5CA4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1017},"dist/lib/neutral/create-4ERE5CA4.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-VWVCHTUK.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create.ts","inputs":{"src/operations/create.ts":{"bytesInOutput":335}},"bytes":564},"dist/lib/neutral/create-file-RAHDIJVU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2067},"dist/lib/neutral/create-file-RAHDIJVU.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-VWVCHTUK.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create-file.ts","inputs":{"src/operations/create-file.ts":{"bytesInOutput":1043}},"bytes":1364},"dist/lib/neutral/upload-VA5CSUEP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1866},"dist/lib/neutral/upload-VA5CSUEP.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-VWVCHTUK.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/upload.ts","inputs":{"src/operations/upload.ts":{"bytesInOutput":919}},"bytes":1205},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-LHUHUCBD.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-UIZBWELF.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["WnfsOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":172},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":498},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-UIZBWELF.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-LHUHUCBD.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["WnfsOperationHandlerSet","WnfsPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":107}},"bytes":357},"dist/lib/neutral/chunk-UIZBWELF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":557},"dist/lib/neutral/chunk-UIZBWELF.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/create-4ERE5CA4.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/create-file-RAHDIJVU.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/upload-VA5CSUEP.mjs","kind":"dynamic-import"}],"exports":["WnfsOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":231}},"bytes":341},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1311},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":683}},"bytes":807},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-VWVCHTUK.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["WnfsAction","WnfsCapabilities","WnfsFile","WnfsOperation"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":341},"dist/lib/neutral/blockstore-3NLSWC7Z.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11033},"dist/lib/neutral/blockstore-3NLSWC7Z.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"blockstore-core","kind":"import-statement","external":true},{"path":"blockstore-idb","kind":"import-statement","external":true},{"path":"debounce","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"it-all","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blockstore.ts","inputs":{"src/capabilities/blockstore.ts":{"bytesInOutput":605},"src/blockstore.ts":{"bytesInOutput":4264}},"bytes":5137},"dist/lib/neutral/create-object-7PJC47BB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2204},"dist/lib/neutral/create-object-7PJC47BB.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/create-object.ts","inputs":{"src/capabilities/create-object.ts":{"bytesInOutput":1055}},"bytes":1223},"dist/lib/neutral/file-uploader-WOF3H3FN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2254},"dist/lib/neutral/file-uploader-WOF3H3FN.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/file-uploader.ts","inputs":{"src/capabilities/file-uploader.ts":{"bytesInOutput":1049}},"bytes":1217},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-LHUHUCBD.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-VWVCHTUK.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Rng","WnfsAction","WnfsCapabilities","WnfsFile","WnfsOperation","filePath","getBlobUrl","getPathFromUrl","loadWnfs","meta","readFile","store","storeName","upload","wnfsUrl"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":669},"dist/lib/neutral/chunk-LHUHUCBD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":849},"dist/lib/neutral/chunk-LHUHUCBD.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":423}},"bytes":502},"dist/lib/neutral/chunk-VWVCHTUK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6347},"dist/lib/neutral/chunk-VWVCHTUK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["WnfsAction","WnfsCapabilities_exports","WnfsFile_exports","WnfsOperation_exports"],"inputs":{"src/types/types.ts":{"bytesInOutput":594},"src/types/index.ts":{"bytesInOutput":0},"src/types/WnfsCapabilities.ts":{"bytesInOutput":366},"src/types/WnfsFile.ts":{"bytesInOutput":751},"src/types/WnfsOperation.ts":{"bytesInOutput":1379}},"bytes":3398},"dist/lib/neutral/WnfsPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3182},"dist/lib/neutral/WnfsPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["WnfsPlugin","default"],"entryPoint":"src/WnfsPlugin.tsx","inputs":{"src/WnfsPlugin.tsx":{"bytesInOutput":1459}},"bytes":1611},"dist/lib/neutral/WnfsPlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1226},"dist/lib/neutral/WnfsPlugin.node.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["WnfsPlugin","default"],"entryPoint":"src/WnfsPlugin.node.ts","inputs":{"src/WnfsPlugin.node.ts":{"bytesInOutput":524}},"bytes":690},"dist/lib/neutral/WnfsPlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1062},"dist/lib/neutral/WnfsPlugin.workerd.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["WnfsPlugin","default"],"entryPoint":"src/WnfsPlugin.workerd.ts","inputs":{"src/WnfsPlugin.workerd.ts":{"bytesInOutput":450}},"bytes":625},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1366},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/blockstore-3NLSWC7Z.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/create-object-7PJC47BB.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/file-uploader-WOF3H3FN.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/markdown-I4FYAUCA.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-NPYSIPMR.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-surface-6QHCDYC3.mjs","kind":"dynamic-import"}],"exports":["Blockstore","CreateObject","FileUploader","Markdown","OperationHandler","ReactSurface"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":636}},"bytes":838},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4647},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["FileInput","FilePreview"],"entryPoint":"src/components/index.ts","inputs":{"src/components/FileInput/FileInput.tsx":{"bytesInOutput":1206},"src/components/FileInput/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0},"src/components/FilePreview/FilePreview.tsx":{"bytesInOutput":896},"src/components/FilePreview/index.ts":{"bytesInOutput":0}},"bytes":2298},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":394},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/FileArticle-B3NF2VKL.mjs","kind":"dynamic-import"}],"exports":["FileArticle"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":99}},"bytes":220},"dist/lib/neutral/helpers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/helpers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7KFJ6LYH.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Rng","filePath","getBlobUrl","getPathFromUrl","loadWnfs","readFile","store","storeName","upload","wnfsUrl"],"entryPoint":"src/helpers/index.ts","inputs":{},"bytes":354},"dist/lib/neutral/chunk-7KFJ6LYH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14094},"dist/lib/neutral/chunk-7KFJ6LYH.mjs":{"imports":[{"path":"multiformats/cid","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"uint8arrays","kind":"import-statement","external":true},{"path":"wnfs","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Rng","filePath","getBlobUrl","getPathFromUrl","loadWnfs","readFile","store","storeName","upload","wnfsUrl"],"inputs":{"src/helpers/common.ts":{"bytesInOutput":1568},"src/helpers/index.ts":{"bytesInOutput":0},"src/helpers/load.ts":{"bytesInOutput":2031},"src/helpers/upload.ts":{"bytesInOutput":1332},"src/helpers/wnfs-url.ts":{"bytesInOutput":567}},"bytes":5801},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/operation-handler.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
6
|
+
import { WnfsOperationHandlerSet } from "#operations";
|
|
7
|
+
var operation_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
8
|
+
return Capability.contributes(Capabilities.OperationHandler, WnfsOperationHandlerSet);
|
|
9
|
+
}));
|
|
10
|
+
export {
|
|
11
|
+
operation_handler_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=operation-handler-NPYSIPMR.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/operation-handler.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport type { OperationHandlerSet } from '@dxos/compute';\n\nimport { WnfsOperationHandlerSet } from '#operations';\n\nexport default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.OperationHandler, WnfsOperationHandlerSet);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AAGzC,SAASC,+BAA+B;AAExC,IAAA,4BAAeD,WAAWE,WACjBC,kBAAW,aAAA;AAChB,SAAOH,WAAWI,YAAYL,aAAaM,kBAAkBJ,uBAAAA;AAC/D,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "WnfsOperationHandlerSet", "makeModule", "fnUntraced", "contributes", "OperationHandler"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WnfsOperationHandlerSet
|
|
3
|
+
} from "./chunk-UIZBWELF.mjs";
|
|
4
|
+
import {
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-LHUHUCBD.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/plugin.ts
|
|
10
|
+
import { Plugin } from "@dxos/app-framework";
|
|
11
|
+
var WnfsPlugin = Plugin.lazy(meta, () => import("#plugin"));
|
|
12
|
+
export {
|
|
13
|
+
WnfsOperationHandlerSet,
|
|
14
|
+
WnfsPlugin
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=plugin.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const WnfsPlugin = Plugin.lazy(meta, () => import('#plugin'));\n\nexport { WnfsOperationHandlerSet } from './operations';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAc;AAIhB,IAAMC,aAAaC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "WnfsPlugin", "Plugin", "lazy", "meta"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/react-surface.tsx
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import React, { useCallback } from "react";
|
|
6
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
7
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
8
|
+
import { AppSurface } from "@dxos/app-toolkit/ui";
|
|
9
|
+
import { findAnnotation } from "@dxos/effect";
|
|
10
|
+
import { FileInput } from "#components";
|
|
11
|
+
import { FileArticle } from "#containers";
|
|
12
|
+
import { WnfsAction, WnfsFile } from "#types";
|
|
13
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
14
|
+
Surface.create({
|
|
15
|
+
id: "article",
|
|
16
|
+
// TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.
|
|
17
|
+
filter: AppSurface.oneOf(AppSurface.object(AppSurface.Article, WnfsFile.WnfsFile), AppSurface.object(AppSurface.Section, WnfsFile.WnfsFile), AppSurface.object(AppSurface.Slide, WnfsFile.WnfsFile)),
|
|
18
|
+
component: ({ data, role }) => /* @__PURE__ */ React.createElement(FileArticle, {
|
|
19
|
+
role,
|
|
20
|
+
subject: data.subject
|
|
21
|
+
})
|
|
22
|
+
}),
|
|
23
|
+
Surface.create({
|
|
24
|
+
id: "create-form",
|
|
25
|
+
role: "form-input",
|
|
26
|
+
filter: (data) => {
|
|
27
|
+
const annotation = findAnnotation(data.schema.ast, WnfsAction.UploadAnnotationId);
|
|
28
|
+
return !!annotation;
|
|
29
|
+
},
|
|
30
|
+
component: ({ data: { schema, fieldPropertyAst }, ...props }) => {
|
|
31
|
+
const ast = fieldPropertyAst;
|
|
32
|
+
if (!ast) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
const inputProps = {
|
|
36
|
+
...props,
|
|
37
|
+
type: ast
|
|
38
|
+
};
|
|
39
|
+
const handleChange = useCallback((file) => inputProps.onValueChange?.(ast, file), [
|
|
40
|
+
ast,
|
|
41
|
+
inputProps.onValueChange
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ React.createElement(FileInput, {
|
|
44
|
+
schema,
|
|
45
|
+
onChange: handleChange
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
])));
|
|
50
|
+
export {
|
|
51
|
+
react_surface_default as default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=react-surface-6QHCDYC3.mjs.map
|
|
@@ -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,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
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WnfsCapabilities_exports,
|
|
3
|
+
WnfsOperation_exports
|
|
4
|
+
} from "./chunk-VWVCHTUK.mjs";
|
|
1
5
|
import {
|
|
2
6
|
upload
|
|
3
7
|
} from "./chunk-7KFJ6LYH.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Upload
|
|
6
|
-
} from "./chunk-DK62NQ5T.mjs";
|
|
7
|
-
import {
|
|
8
|
-
WnfsCapabilities
|
|
9
|
-
} from "./chunk-4D4K5JCC.mjs";
|
|
10
8
|
import "./chunk-J5LGTIGS.mjs";
|
|
11
9
|
|
|
12
10
|
// src/operations/upload.ts
|
|
@@ -14,13 +12,13 @@ import * as Effect from "effect/Effect";
|
|
|
14
12
|
import { Capability } from "@dxos/app-framework";
|
|
15
13
|
import { Operation } from "@dxos/compute";
|
|
16
14
|
import { invariant } from "@dxos/invariant";
|
|
17
|
-
import { ClientCapabilities } from "@dxos/plugin-client
|
|
15
|
+
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
18
16
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-wnfs/src/operations/upload.ts";
|
|
19
|
-
var handler = Upload.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ file, db }) {
|
|
17
|
+
var handler = WnfsOperation_exports.Upload.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ file, db }) {
|
|
20
18
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
21
|
-
const blockstore = yield* Capability.get(
|
|
19
|
+
const blockstore = yield* Capability.get(WnfsCapabilities_exports.Blockstore);
|
|
22
20
|
const space = client.spaces.get(db.spaceId);
|
|
23
|
-
invariant(space, "Space not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
21
|
+
invariant(space, "Space not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 15, S: this, A: ["space", "'Space not found'"] });
|
|
24
22
|
const info = yield* Effect.promise(() => upload({
|
|
25
23
|
file,
|
|
26
24
|
blockstore,
|
|
@@ -32,4 +30,4 @@ var upload_default = handler;
|
|
|
32
30
|
export {
|
|
33
31
|
upload_default as default
|
|
34
32
|
};
|
|
35
|
-
//# sourceMappingURL=upload-
|
|
33
|
+
//# sourceMappingURL=upload-VA5CSUEP.mjs.map
|