crossnote 0.9.38 → 0.9.40
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 +1 -1
- package/out/cjs/index.cjs +148 -159
- package/out/cli/index.cjs +567 -324
- package/out/dependencies/README.md +2 -2
- package/out/dependencies/mermaid/mermaid.min.js +2052 -1312
- package/out/esm/index.mjs +203 -214
- package/out/server-app/server-app.css +1 -1
- package/out/server-app/server-app.js +13 -12
- package/out/types/src/lib/css-urls.d.ts +4 -0
- package/out/types/src/markdown-engine/index.d.ts +1 -0
- package/out/types/src/notebook/index.d.ts +5 -2
- package/out/types/src/server-app/lib/api.d.ts +1 -0
- package/out/types/src/server-app/lib/wiki.d.ts +3 -1
- package/out/types/test/global-css-urls.test.d.ts +1 -0
- package/out/types/test/serve/config-writer.test.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/out/webview/backlinks.css +1 -1
- package/out/webview/graph-view.css +1 -1
- package/out/webview/preview.css +1 -1
- package/out/webview/preview.js +73 -73
- package/package.json +4 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const ABSOLUTE_URL: RegExp;
|
|
2
|
+
export declare const CSS_URL: RegExp;
|
|
3
|
+
export declare function resolveRelativeCssUrls(css: string, baseDir: string, exists: (filePath: string) => Promise<boolean>): Promise<string>;
|
|
4
|
+
export declare function mapAbsoluteCssUrls(css: string, toUrl: (filePath: string) => string): string;
|
|
@@ -14,6 +14,7 @@ export { extractBlockIds, extractHeadings, findFragmentTargetLine, } from './not
|
|
|
14
14
|
export type { Note, Notes, NoteConfig, Mentions } from './note';
|
|
15
15
|
export { matter, matterStringify } from './markdown';
|
|
16
16
|
export type { MatterOutput } from './markdown';
|
|
17
|
+
export declare const OVERSIZED_WALK_WARN_THRESHOLD = 10000;
|
|
17
18
|
interface NotebookConstructorArgs {
|
|
18
19
|
notebookPath: string;
|
|
19
20
|
config: Partial<NotebookConfig>;
|
|
@@ -34,7 +35,9 @@ export declare class Notebook {
|
|
|
34
35
|
fs: FileSystemApi;
|
|
35
36
|
notes: Notes;
|
|
36
37
|
hasLoadedNotes: boolean;
|
|
37
|
-
private
|
|
38
|
+
private refusedRootWarned;
|
|
39
|
+
private walkedEntriesThisRefresh;
|
|
40
|
+
private oversizedWalkWarned;
|
|
38
41
|
currentRenderFilePath: string;
|
|
39
42
|
referenceMap: ReferenceMap;
|
|
40
43
|
tagReferenceMap: TagReferenceMap;
|
|
@@ -79,7 +82,7 @@ export declare class Notebook {
|
|
|
79
82
|
getNoteMarkdown(filePath: string): Promise<string | null>;
|
|
80
83
|
private loadNoteFromDisk;
|
|
81
84
|
refreshNotesIfNotLoaded({ dir, includeSubdirectories, }: RefreshNotesIfNotLoaded): Promise<Notes>;
|
|
82
|
-
private
|
|
85
|
+
private skipIndexingIfRootIsRefused;
|
|
83
86
|
private loadGitignoreForDir;
|
|
84
87
|
refreshNotes(args: RefreshNotesArgs): Promise<Notes>;
|
|
85
88
|
refreshNotesIncremental(args: RefreshNotesArgs): Promise<Notes>;
|
|
@@ -4,9 +4,11 @@ export interface WikiThemeSelection {
|
|
|
4
4
|
codeBlock: string;
|
|
5
5
|
reveal: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function assembleWikiDocument(data: WikiData, file: WikiFileMeta, themes?: WikiThemeSelection): string;
|
|
7
|
+
export declare function assembleWikiDocument(data: WikiData, file: WikiFileMeta, themes?: WikiThemeSelection, zenEnabled?: boolean): string;
|
|
8
8
|
export declare function readWikiThemeSelection(data: WikiData, storage: Pick<Storage, 'getItem'>): WikiThemeSelection | null;
|
|
9
9
|
export declare function writeWikiThemeSelection(data: WikiData, storage: Pick<Storage, 'setItem'>, selection: WikiThemeSelection): void;
|
|
10
|
+
export declare function readWikiZenOverride(data: WikiData, storage: Pick<Storage, 'getItem'>): boolean | null;
|
|
11
|
+
export declare function writeWikiZenOverride(data: WikiData, storage: Pick<Storage, 'setItem'>, enabled: boolean): void;
|
|
10
12
|
export declare function wikiKeyOf(filePath: string): string;
|
|
11
13
|
export declare function createWikiIndex(data: WikiData): Map<string, WikiFileMeta>;
|
|
12
14
|
export declare function resolveWikiHref(data: WikiData, sourceKey: string, href: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|