Make stuff work with npm

This commit is contained in:
Zef Hemel
2022-04-25 11:24:13 +02:00
parent 44cf4c6a72
commit d52d81a909
32 changed files with 1471 additions and 10639 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { insertAtCursor } from "@plugos/plugos-silverbullet-syscall/editor";
import { insertAtCursor } from "@silverbulletmd/plugos-silverbullet-syscall/editor";
const dateMatchRegex = /(\d{4}\-\d{2}\-\d{2})/g;
+1 -1
View File
@@ -3,7 +3,7 @@ import type { IndexTreeEvent } from "@silverbulletmd/web/app_event";
import {
batchSet,
scanPrefixGlobal,
} from "@plugos/plugos-silverbullet-syscall/index";
} from "@silverbulletmd/plugos-silverbullet-syscall/index";
import {
collectNodesOfType,
ParseTree,
+1 -1
View File
@@ -3,7 +3,7 @@ import {
getText,
insertAtPos,
replaceRange,
} from "@plugos/plugos-silverbullet-syscall/editor";
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
export async function toggleH1() {
await togglePrefix("# ");
+2 -2
View File
@@ -4,8 +4,8 @@ import {
getText,
navigate as navigateTo,
openUrl,
} from "@plugos/plugos-silverbullet-syscall/editor";
import { parseMarkdown } from "@plugos/plugos-silverbullet-syscall/markdown";
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
import { nodeAtPos, ParseTree } from "@silverbulletmd/common/tree";
const materializedQueryPrefix = /<!--\s*#query\s+/;
+5 -5
View File
@@ -5,7 +5,7 @@ import {
clearPageIndexForPage,
scanPrefixGlobal,
set,
} from "@plugos/plugos-silverbullet-syscall/index";
} from "@silverbulletmd/plugos-silverbullet-syscall/index";
import {
flashNotification,
getCurrentPage,
@@ -13,7 +13,7 @@ import {
matchBefore,
navigate,
prompt,
} from "@plugos/plugos-silverbullet-syscall/editor";
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
import { dispatch } from "@plugos/plugos-syscall/event";
import {
@@ -21,9 +21,9 @@ import {
listPages,
readPage,
writePage,
} from "@plugos/plugos-silverbullet-syscall/space";
import { invokeFunction } from "@plugos/plugos-silverbullet-syscall/system";
import { parseMarkdown } from "@plugos/plugos-silverbullet-syscall/markdown";
} from "@silverbulletmd/plugos-silverbullet-syscall/space";
import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system";
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
import {
addParentPointers,
collectNodesMatching,
+3 -3
View File
@@ -2,13 +2,13 @@ import {
listPages,
readPage,
writePage,
} from "@plugos/plugos-silverbullet-syscall/space";
} from "@silverbulletmd/plugos-silverbullet-syscall/space";
import {
filterBox,
navigate,
prompt,
} from "@plugos/plugos-silverbullet-syscall/editor";
import { parseMarkdown } from "@plugos/plugos-silverbullet-syscall/markdown";
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
import { extractMeta } from "../query/data";
import { renderToText } from "@silverbulletmd/common/tree";
import { niceDate } from "./dates";