@silverbulletmd/silverbullet 2.6.1 → 2.7.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/README.md +0 -1
- package/client/markdown_parser/constants.ts +1 -0
- package/client/plugos/hooks/command.ts +46 -16
- package/client/plugos/hooks/slash_command.ts +3 -1
- package/client/plugos/plug.ts +5 -2
- package/client/plugos/plug_compile.ts +52 -2
- package/client/plugos/sandboxes/worker_sandbox.ts +11 -1
- package/client/plugos/syscalls/config.ts +9 -2
- package/client/plugos/syscalls/editor.ts +136 -0
- package/client/plugos/syscalls/index.ts +1 -1
- package/client/plugos/syscalls/jsonschema.ts +1 -19
- package/client/plugos/syscalls/system.ts +13 -0
- package/client/plugos/system.ts +14 -10
- package/client/plugos/types.ts +25 -0
- package/client/plugos/util.ts +20 -0
- package/client/space_lua/aggregates.ts +2 -2
- package/client/space_lua/query_collection.ts +4 -4
- package/client/space_lua/render_lua_markdown.ts +1 -1
- package/client/space_lua/runtime.ts +1 -1
- package/client/space_lua/{liq_null.ts → sliq_null.ts} +2 -2
- package/client/space_lua/stdlib/space_lua.ts +1 -1
- package/client/space_lua/stdlib.ts +1 -1
- package/dist/plug-compile.js +44 -2
- package/package.json +1 -1
- package/plug-api/constants.ts +20 -0
- package/plug-api/lib/ref.ts +9 -2
- package/plug-api/lib/shortcut.ts +16 -0
- package/plug-api/lib/tree.ts +35 -4
- package/plug-api/syscalls/config.ts +37 -0
- package/plug-api/syscalls/editor.ts +155 -0
- package/plug-api/syscalls/index.ts +18 -0
- package/plug-api/syscalls/system.ts +15 -0
- package/plug-api/types/manifest.ts +63 -0
- package/plugs/builtin_plugs.ts +1 -1
- package/client/plugos/sandboxes/web_worker_sandbox.ts +0 -17
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkerSandbox } from "./worker_sandbox.ts";
|
|
2
|
-
import type { Plug } from "../plug.ts";
|
|
3
|
-
import type { SandboxFactory } from "./sandbox.ts";
|
|
4
|
-
import { fsEndpoint } from "../../spaces/constants.ts";
|
|
5
|
-
|
|
6
|
-
export function createWorkerSandboxFromLocalPath<HookT>(
|
|
7
|
-
name: string,
|
|
8
|
-
): SandboxFactory<HookT> {
|
|
9
|
-
return (plug: Plug<HookT>) =>
|
|
10
|
-
new WorkerSandbox(
|
|
11
|
-
plug,
|
|
12
|
-
new URL(
|
|
13
|
-
name,
|
|
14
|
-
`${document.baseURI.slice(0, -1) + fsEndpoint}/`, // We're NOT striping trailing '/', this used to be `location.origin`
|
|
15
|
-
),
|
|
16
|
-
);
|
|
17
|
-
}
|