@immediately-run/sdk 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.cjs +21 -5
- package/dist/editor.cjs.map +1 -1
- package/dist/editor.d.cts +19 -1
- package/dist/editor.d.ts +19 -1
- package/dist/editor.js +15 -4
- package/dist/editor.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/editor.cjs
CHANGED
|
@@ -18,20 +18,36 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var editor_exports = {};
|
|
20
20
|
__export(editor_exports, {
|
|
21
|
-
|
|
21
|
+
createFile: () => createFile,
|
|
22
|
+
createFolder: () => createFolder,
|
|
23
|
+
deleteEntry: () => deleteEntry,
|
|
24
|
+
openInEditor: () => openInEditor,
|
|
25
|
+
renameEntry: () => renameEntry,
|
|
26
|
+
uploadFile: () => uploadFile
|
|
22
27
|
});
|
|
23
28
|
module.exports = __toCommonJS(editor_exports);
|
|
24
29
|
var import_sandboxUtils = require("./sandboxUtils");
|
|
25
|
-
const
|
|
26
|
-
const res = await (0, import_sandboxUtils.protocolRequest)("editor",
|
|
30
|
+
const editorRequest = async (method, arg) => {
|
|
31
|
+
const res = await (0, import_sandboxUtils.protocolRequest)("editor", method, [arg]);
|
|
27
32
|
if (!res || res.ok !== true) {
|
|
28
|
-
const err = new Error(res?.message ??
|
|
33
|
+
const err = new Error(res?.message ?? `editor ${method} failed`);
|
|
29
34
|
err.code = res?.code ?? "unknown";
|
|
30
35
|
throw err;
|
|
31
36
|
}
|
|
32
37
|
};
|
|
38
|
+
const openInEditor = (path) => editorRequest("open", { path });
|
|
39
|
+
const createFile = (path) => editorRequest("createFile", { path });
|
|
40
|
+
const createFolder = (path) => editorRequest("createFolder", { path });
|
|
41
|
+
const deleteEntry = (path) => editorRequest("deleteEntry", { path });
|
|
42
|
+
const renameEntry = (from, to) => editorRequest("rename", { from, to });
|
|
43
|
+
const uploadFile = (path, bytes) => editorRequest("upload", { path, bytes });
|
|
33
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
45
|
0 && (module.exports = {
|
|
35
|
-
|
|
46
|
+
createFile,
|
|
47
|
+
createFolder,
|
|
48
|
+
deleteEntry,
|
|
49
|
+
openInEditor,
|
|
50
|
+
renameEntry,
|
|
51
|
+
uploadFile
|
|
36
52
|
});
|
|
37
53
|
//# sourceMappingURL=editor.cjs.map
|
package/dist/editor.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/editor.ts"],"sourcesContent":["import { protocolRequest } from './sandboxUtils';\n\n/**\n * Open a working-tree file in the immediately.run host editor (UI_AS_APPS_SPEC §4 —\n * the file explorer's click-to-open). This is an INTENT: the app asks, the HOST\n * validates the path and drives the CodeMirror editor — the editor itself stays\n * host-owned (§2 recursion boundary), so an app can never own or script it beyond\n * \"please show this file\".\n *\n * Requires the elevated `editor:open` capability — a previewed app does not hold it\n * (it must not move the host's focus), so only a system app whose binding grants it\n * (the file explorer) can call this; anyone else is refused at the gate.\n */\n\n/** An error from {@link openInEditor}, carrying a machine-readable `.code`. */\nexport interface EditorOpenError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:open`\n | 'not-found' // no such file in the live working tree (the host never creates)\n | 'invalid-params' // the path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session to open files in\n | 'unknown';\n}\n\ntype EditorResult =\n | { ok: true; data: unknown }\n | { ok: false; code: string; message: string };\n\n/**\n * Ask the host to open `path` (a repo-relative working-tree path, e.g. `src/App.tsx`\n * or `/src/App.tsx`) in the editor. Resolves once the editor switches to it; rejects\n * with an {@link EditorOpenError} (`.code`) if the path is invalid, missing, or this\n * app may not open files.\n */\nexport const openInEditor =
|
|
1
|
+
{"version":3,"sources":["../src/editor.ts"],"sourcesContent":["import { protocolRequest } from './sandboxUtils';\n\n/**\n * Open a working-tree file in the immediately.run host editor (UI_AS_APPS_SPEC §4 —\n * the file explorer's click-to-open). This is an INTENT: the app asks, the HOST\n * validates the path and drives the CodeMirror editor — the editor itself stays\n * host-owned (§2 recursion boundary), so an app can never own or script it beyond\n * \"please show this file\".\n *\n * Requires the elevated `editor:open` capability — a previewed app does not hold it\n * (it must not move the host's focus), so only a system app whose binding grants it\n * (the file explorer) can call this; anyone else is refused at the gate.\n */\n\n/** An error from {@link openInEditor}, carrying a machine-readable `.code`. */\nexport interface EditorOpenError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:open`\n | 'not-found' // no such file in the live working tree (the host never creates)\n | 'invalid-params' // the path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session to open files in\n | 'unknown';\n}\n\ntype EditorResult =\n | { ok: true; data: unknown }\n | { ok: false; code: string; message: string };\n\nconst editorRequest = async (\n method: string,\n arg: Record<string, unknown>,\n): Promise<void> => {\n const res = (await protocolRequest('editor', method, [arg])) as EditorResult;\n if (!res || res.ok !== true) {\n const err = new Error(res?.message ?? `editor ${method} failed`) as EditorWriteError;\n err.code = (res?.code as EditorWriteError['code']) ?? 'unknown';\n throw err;\n }\n};\n\n/**\n * Ask the host to open `path` (a repo-relative working-tree path, e.g. `src/App.tsx`\n * or `/src/App.tsx`) in the editor. Resolves once the editor switches to it; rejects\n * with an {@link EditorOpenError} (`.code`) if the path is invalid, missing, or this\n * app may not open files.\n */\nexport const openInEditor = (path: string): Promise<void> => editorRequest('open', { path });\n\n// ---------------------------------------------------------------------------\n// Working-tree mutation (UI_AS_APPS_SPEC §4 / EDITOR_AS_APP_SPEC §5.2). The file\n// explorer NAMES a working-tree path and the HOST performs the COW write (and\n// refreshes the preview) — the app holds no write port; it asks. Gated by the\n// first-party `editor:write` capability, so only a first-party chrome app (the\n// file explorer) can call these; anyone else is refused at the gate.\n// ---------------------------------------------------------------------------\n\n/** An error from a working-tree mutation, carrying a machine-readable `.code`. */\nexport interface EditorWriteError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:write` (first-party-only)\n | 'not-found' // the target file/folder does not exist (delete/rename)\n | 'exists' // the target already exists (create/rename would clobber)\n | 'protected' // the host refuses to delete this file (e.g. package.json)\n | 'too-large' // an upload exceeds the host's size limit\n | 'invalid-params' // a path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session\n | 'unknown';\n}\n\n/** Create an empty working-tree file at `path` and open it. Rejects `exists` if a\n * file is already there. */\nexport const createFile = (path: string): Promise<void> => editorRequest('createFile', { path });\n\n/** Create a working-tree folder at `path` (materialised with a `.gitkeep`). */\nexport const createFolder = (path: string): Promise<void> =>\n editorRequest('createFolder', { path });\n\n/** Delete a working-tree file, or a folder and everything under it. Rejects\n * `protected` for files the host won't remove, `not-found` if absent. */\nexport const deleteEntry = (path: string): Promise<void> => editorRequest('deleteEntry', { path });\n\n/** Rename/move a working-tree file from `from` to `to`. Rejects `exists` if `to`\n * is taken, `not-found` if `from` is absent. */\nexport const renameEntry = (from: string, to: string): Promise<void> =>\n editorRequest('rename', { from, to });\n\n/** Upload binary/text `bytes` to a working-tree file at `path`. Rejects\n * `too-large` past the host's size limit. The bytes are transferred (zero-copy). */\nexport const uploadFile = (path: string, bytes: Uint8Array): Promise<void> =>\n editorRequest('upload', { path, bytes });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC;AA4BhC,MAAM,gBAAgB,OACpB,QACA,QACkB;AAClB,QAAM,MAAO,UAAM,qCAAgB,UAAU,QAAQ,CAAC,GAAG,CAAC;AAC1D,MAAI,CAAC,OAAO,IAAI,OAAO,MAAM;AAC3B,UAAM,MAAM,IAAI,MAAM,KAAK,WAAW,UAAU,MAAM,SAAS;AAC/D,QAAI,OAAQ,KAAK,QAAqC;AACtD,UAAM;AAAA,EACR;AACF;AAQO,MAAM,eAAe,CAAC,SAAgC,cAAc,QAAQ,EAAE,KAAK,CAAC;AAyBpF,MAAM,aAAa,CAAC,SAAgC,cAAc,cAAc,EAAE,KAAK,CAAC;AAGxF,MAAM,eAAe,CAAC,SAC3B,cAAc,gBAAgB,EAAE,KAAK,CAAC;AAIjC,MAAM,cAAc,CAAC,SAAgC,cAAc,eAAe,EAAE,KAAK,CAAC;AAI1F,MAAM,cAAc,CAAC,MAAc,OACxC,cAAc,UAAU,EAAE,MAAM,GAAG,CAAC;AAI/B,MAAM,aAAa,CAAC,MAAc,UACvC,cAAc,UAAU,EAAE,MAAM,MAAM,CAAC;","names":[]}
|
package/dist/editor.d.cts
CHANGED
|
@@ -20,5 +20,23 @@ interface EditorOpenError extends Error {
|
|
|
20
20
|
* app may not open files.
|
|
21
21
|
*/
|
|
22
22
|
declare const openInEditor: (path: string) => Promise<void>;
|
|
23
|
+
/** An error from a working-tree mutation, carrying a machine-readable `.code`. */
|
|
24
|
+
interface EditorWriteError extends Error {
|
|
25
|
+
code: 'forbidden' | 'not-found' | 'exists' | 'protected' | 'too-large' | 'invalid-params' | 'no-target' | 'unknown';
|
|
26
|
+
}
|
|
27
|
+
/** Create an empty working-tree file at `path` and open it. Rejects `exists` if a
|
|
28
|
+
* file is already there. */
|
|
29
|
+
declare const createFile: (path: string) => Promise<void>;
|
|
30
|
+
/** Create a working-tree folder at `path` (materialised with a `.gitkeep`). */
|
|
31
|
+
declare const createFolder: (path: string) => Promise<void>;
|
|
32
|
+
/** Delete a working-tree file, or a folder and everything under it. Rejects
|
|
33
|
+
* `protected` for files the host won't remove, `not-found` if absent. */
|
|
34
|
+
declare const deleteEntry: (path: string) => Promise<void>;
|
|
35
|
+
/** Rename/move a working-tree file from `from` to `to`. Rejects `exists` if `to`
|
|
36
|
+
* is taken, `not-found` if `from` is absent. */
|
|
37
|
+
declare const renameEntry: (from: string, to: string) => Promise<void>;
|
|
38
|
+
/** Upload binary/text `bytes` to a working-tree file at `path`. Rejects
|
|
39
|
+
* `too-large` past the host's size limit. The bytes are transferred (zero-copy). */
|
|
40
|
+
declare const uploadFile: (path: string, bytes: Uint8Array) => Promise<void>;
|
|
23
41
|
|
|
24
|
-
export { type EditorOpenError, openInEditor };
|
|
42
|
+
export { type EditorOpenError, type EditorWriteError, createFile, createFolder, deleteEntry, openInEditor, renameEntry, uploadFile };
|
package/dist/editor.d.ts
CHANGED
|
@@ -20,5 +20,23 @@ interface EditorOpenError extends Error {
|
|
|
20
20
|
* app may not open files.
|
|
21
21
|
*/
|
|
22
22
|
declare const openInEditor: (path: string) => Promise<void>;
|
|
23
|
+
/** An error from a working-tree mutation, carrying a machine-readable `.code`. */
|
|
24
|
+
interface EditorWriteError extends Error {
|
|
25
|
+
code: 'forbidden' | 'not-found' | 'exists' | 'protected' | 'too-large' | 'invalid-params' | 'no-target' | 'unknown';
|
|
26
|
+
}
|
|
27
|
+
/** Create an empty working-tree file at `path` and open it. Rejects `exists` if a
|
|
28
|
+
* file is already there. */
|
|
29
|
+
declare const createFile: (path: string) => Promise<void>;
|
|
30
|
+
/** Create a working-tree folder at `path` (materialised with a `.gitkeep`). */
|
|
31
|
+
declare const createFolder: (path: string) => Promise<void>;
|
|
32
|
+
/** Delete a working-tree file, or a folder and everything under it. Rejects
|
|
33
|
+
* `protected` for files the host won't remove, `not-found` if absent. */
|
|
34
|
+
declare const deleteEntry: (path: string) => Promise<void>;
|
|
35
|
+
/** Rename/move a working-tree file from `from` to `to`. Rejects `exists` if `to`
|
|
36
|
+
* is taken, `not-found` if `from` is absent. */
|
|
37
|
+
declare const renameEntry: (from: string, to: string) => Promise<void>;
|
|
38
|
+
/** Upload binary/text `bytes` to a working-tree file at `path`. Rejects
|
|
39
|
+
* `too-large` past the host's size limit. The bytes are transferred (zero-copy). */
|
|
40
|
+
declare const uploadFile: (path: string, bytes: Uint8Array) => Promise<void>;
|
|
23
41
|
|
|
24
|
-
export { type EditorOpenError, openInEditor };
|
|
42
|
+
export { type EditorOpenError, type EditorWriteError, createFile, createFolder, deleteEntry, openInEditor, renameEntry, uploadFile };
|
package/dist/editor.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { protocolRequest } from "./sandboxUtils";
|
|
2
|
-
const
|
|
3
|
-
const res = await protocolRequest("editor",
|
|
2
|
+
const editorRequest = async (method, arg) => {
|
|
3
|
+
const res = await protocolRequest("editor", method, [arg]);
|
|
4
4
|
if (!res || res.ok !== true) {
|
|
5
|
-
const err = new Error(res?.message ??
|
|
5
|
+
const err = new Error(res?.message ?? `editor ${method} failed`);
|
|
6
6
|
err.code = res?.code ?? "unknown";
|
|
7
7
|
throw err;
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
+
const openInEditor = (path) => editorRequest("open", { path });
|
|
11
|
+
const createFile = (path) => editorRequest("createFile", { path });
|
|
12
|
+
const createFolder = (path) => editorRequest("createFolder", { path });
|
|
13
|
+
const deleteEntry = (path) => editorRequest("deleteEntry", { path });
|
|
14
|
+
const renameEntry = (from, to) => editorRequest("rename", { from, to });
|
|
15
|
+
const uploadFile = (path, bytes) => editorRequest("upload", { path, bytes });
|
|
10
16
|
export {
|
|
11
|
-
|
|
17
|
+
createFile,
|
|
18
|
+
createFolder,
|
|
19
|
+
deleteEntry,
|
|
20
|
+
openInEditor,
|
|
21
|
+
renameEntry,
|
|
22
|
+
uploadFile
|
|
12
23
|
};
|
|
13
24
|
//# sourceMappingURL=editor.js.map
|
package/dist/editor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/editor.ts"],"sourcesContent":["import { protocolRequest } from './sandboxUtils';\n\n/**\n * Open a working-tree file in the immediately.run host editor (UI_AS_APPS_SPEC §4 —\n * the file explorer's click-to-open). This is an INTENT: the app asks, the HOST\n * validates the path and drives the CodeMirror editor — the editor itself stays\n * host-owned (§2 recursion boundary), so an app can never own or script it beyond\n * \"please show this file\".\n *\n * Requires the elevated `editor:open` capability — a previewed app does not hold it\n * (it must not move the host's focus), so only a system app whose binding grants it\n * (the file explorer) can call this; anyone else is refused at the gate.\n */\n\n/** An error from {@link openInEditor}, carrying a machine-readable `.code`. */\nexport interface EditorOpenError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:open`\n | 'not-found' // no such file in the live working tree (the host never creates)\n | 'invalid-params' // the path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session to open files in\n | 'unknown';\n}\n\ntype EditorResult =\n | { ok: true; data: unknown }\n | { ok: false; code: string; message: string };\n\n/**\n * Ask the host to open `path` (a repo-relative working-tree path, e.g. `src/App.tsx`\n * or `/src/App.tsx`) in the editor. Resolves once the editor switches to it; rejects\n * with an {@link EditorOpenError} (`.code`) if the path is invalid, missing, or this\n * app may not open files.\n */\nexport const openInEditor =
|
|
1
|
+
{"version":3,"sources":["../src/editor.ts"],"sourcesContent":["import { protocolRequest } from './sandboxUtils';\n\n/**\n * Open a working-tree file in the immediately.run host editor (UI_AS_APPS_SPEC §4 —\n * the file explorer's click-to-open). This is an INTENT: the app asks, the HOST\n * validates the path and drives the CodeMirror editor — the editor itself stays\n * host-owned (§2 recursion boundary), so an app can never own or script it beyond\n * \"please show this file\".\n *\n * Requires the elevated `editor:open` capability — a previewed app does not hold it\n * (it must not move the host's focus), so only a system app whose binding grants it\n * (the file explorer) can call this; anyone else is refused at the gate.\n */\n\n/** An error from {@link openInEditor}, carrying a machine-readable `.code`. */\nexport interface EditorOpenError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:open`\n | 'not-found' // no such file in the live working tree (the host never creates)\n | 'invalid-params' // the path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session to open files in\n | 'unknown';\n}\n\ntype EditorResult =\n | { ok: true; data: unknown }\n | { ok: false; code: string; message: string };\n\nconst editorRequest = async (\n method: string,\n arg: Record<string, unknown>,\n): Promise<void> => {\n const res = (await protocolRequest('editor', method, [arg])) as EditorResult;\n if (!res || res.ok !== true) {\n const err = new Error(res?.message ?? `editor ${method} failed`) as EditorWriteError;\n err.code = (res?.code as EditorWriteError['code']) ?? 'unknown';\n throw err;\n }\n};\n\n/**\n * Ask the host to open `path` (a repo-relative working-tree path, e.g. `src/App.tsx`\n * or `/src/App.tsx`) in the editor. Resolves once the editor switches to it; rejects\n * with an {@link EditorOpenError} (`.code`) if the path is invalid, missing, or this\n * app may not open files.\n */\nexport const openInEditor = (path: string): Promise<void> => editorRequest('open', { path });\n\n// ---------------------------------------------------------------------------\n// Working-tree mutation (UI_AS_APPS_SPEC §4 / EDITOR_AS_APP_SPEC §5.2). The file\n// explorer NAMES a working-tree path and the HOST performs the COW write (and\n// refreshes the preview) — the app holds no write port; it asks. Gated by the\n// first-party `editor:write` capability, so only a first-party chrome app (the\n// file explorer) can call these; anyone else is refused at the gate.\n// ---------------------------------------------------------------------------\n\n/** An error from a working-tree mutation, carrying a machine-readable `.code`. */\nexport interface EditorWriteError extends Error {\n code:\n | 'forbidden' // the frame lacks `editor:write` (first-party-only)\n | 'not-found' // the target file/folder does not exist (delete/rename)\n | 'exists' // the target already exists (create/rename would clobber)\n | 'protected' // the host refuses to delete this file (e.g. package.json)\n | 'too-large' // an upload exceeds the host's size limit\n | 'invalid-params' // a path was empty / contained `..` / looked like a URI\n | 'no-target' // there is no host editor session\n | 'unknown';\n}\n\n/** Create an empty working-tree file at `path` and open it. Rejects `exists` if a\n * file is already there. */\nexport const createFile = (path: string): Promise<void> => editorRequest('createFile', { path });\n\n/** Create a working-tree folder at `path` (materialised with a `.gitkeep`). */\nexport const createFolder = (path: string): Promise<void> =>\n editorRequest('createFolder', { path });\n\n/** Delete a working-tree file, or a folder and everything under it. Rejects\n * `protected` for files the host won't remove, `not-found` if absent. */\nexport const deleteEntry = (path: string): Promise<void> => editorRequest('deleteEntry', { path });\n\n/** Rename/move a working-tree file from `from` to `to`. Rejects `exists` if `to`\n * is taken, `not-found` if `from` is absent. */\nexport const renameEntry = (from: string, to: string): Promise<void> =>\n editorRequest('rename', { from, to });\n\n/** Upload binary/text `bytes` to a working-tree file at `path`. Rejects\n * `too-large` past the host's size limit. The bytes are transferred (zero-copy). */\nexport const uploadFile = (path: string, bytes: Uint8Array): Promise<void> =>\n editorRequest('upload', { path, bytes });\n"],"mappings":"AAAA,SAAS,uBAAuB;AA4BhC,MAAM,gBAAgB,OACpB,QACA,QACkB;AAClB,QAAM,MAAO,MAAM,gBAAgB,UAAU,QAAQ,CAAC,GAAG,CAAC;AAC1D,MAAI,CAAC,OAAO,IAAI,OAAO,MAAM;AAC3B,UAAM,MAAM,IAAI,MAAM,KAAK,WAAW,UAAU,MAAM,SAAS;AAC/D,QAAI,OAAQ,KAAK,QAAqC;AACtD,UAAM;AAAA,EACR;AACF;AAQO,MAAM,eAAe,CAAC,SAAgC,cAAc,QAAQ,EAAE,KAAK,CAAC;AAyBpF,MAAM,aAAa,CAAC,SAAgC,cAAc,cAAc,EAAE,KAAK,CAAC;AAGxF,MAAM,eAAe,CAAC,SAC3B,cAAc,gBAAgB,EAAE,KAAK,CAAC;AAIjC,MAAM,cAAc,CAAC,SAAgC,cAAc,eAAe,EAAE,KAAK,CAAC;AAI1F,MAAM,cAAc,CAAC,MAAc,OACxC,cAAc,UAAU,EAAE,MAAM,GAAG,CAAC;AAI/B,MAAM,aAAa,CAAC,MAAc,UACvC,cAAc,UAAU,EAAE,MAAM,MAAM,CAAC;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ export { useFileMetadata, useMetadataQuery } from './hooks.cjs';
|
|
|
7
7
|
export { AuthState, AuthStatus, SandboxUser, getAuthState, onAuthChange, useAuth } from './auth.cjs';
|
|
8
8
|
export { HostTheme, getHostTheme, onHostThemeChange, setHostTheme, useHostTheme } from './theme.cjs';
|
|
9
9
|
export { EditorContext, getEditorContext, onEditorContextChange, useEditorContext } from './editorContext.cjs';
|
|
10
|
-
export { EditorOpenError, openInEditor } from './editor.cjs';
|
|
10
|
+
export { EditorOpenError, EditorWriteError, createFile, createFolder, deleteEntry, openInEditor, renameEntry, uploadFile } from './editor.cjs';
|
|
11
11
|
export { FormFactor, FormFactorClass, Orientation, getFormFactor, onFormFactorChange, useFormFactor } from './formFactor.cjs';
|
|
12
12
|
export { GrantRecord, Member, MountQuery, ResolvedUser, Role, SandboxMount, SpaceError, SpaceInfo, createSpace, findMount, getAppMountPath, getMounts, getSpaceMembers, listAllSpaces, listGrants, listSpaces, lookupUser, mount, mountSpace, onMountsChange, openAppSpace, requestMount, requestSpace, revokeGrant, setSpaceRole, shareSpace, unmountSpace, unshareSpace, useMounts, waitForMount } from './mounts.cjs';
|
|
13
13
|
export { ContributeMode, ContributeOptions, ContributionEvent, ContributionResult, contribute } from './contribute.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { useFileMetadata, useMetadataQuery } from './hooks.js';
|
|
|
7
7
|
export { AuthState, AuthStatus, SandboxUser, getAuthState, onAuthChange, useAuth } from './auth.js';
|
|
8
8
|
export { HostTheme, getHostTheme, onHostThemeChange, setHostTheme, useHostTheme } from './theme.js';
|
|
9
9
|
export { EditorContext, getEditorContext, onEditorContextChange, useEditorContext } from './editorContext.js';
|
|
10
|
-
export { EditorOpenError, openInEditor } from './editor.js';
|
|
10
|
+
export { EditorOpenError, EditorWriteError, createFile, createFolder, deleteEntry, openInEditor, renameEntry, uploadFile } from './editor.js';
|
|
11
11
|
export { FormFactor, FormFactorClass, Orientation, getFormFactor, onFormFactorChange, useFormFactor } from './formFactor.js';
|
|
12
12
|
export { GrantRecord, Member, MountQuery, ResolvedUser, Role, SandboxMount, SpaceError, SpaceInfo, createSpace, findMount, getAppMountPath, getMounts, getSpaceMembers, listAllSpaces, listGrants, listSpaces, lookupUser, mount, mountSpace, onMountsChange, openAppSpace, requestMount, requestSpace, revokeGrant, setSpaceRole, shareSpace, unmountSpace, unshareSpace, useMounts, waitForMount } from './mounts.js';
|
|
13
13
|
export { ContributeMode, ContributeOptions, ContributionEvent, ContributionResult, contribute } from './contribute.js';
|
package/package.json
CHANGED