crossnote 0.9.39 → 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/out/cjs/index.cjs +145 -145
- package/out/cli/index.cjs +462 -305
- package/out/dependencies/README.md +2 -2
- package/out/dependencies/mermaid/mermaid.min.js +2052 -1312
- package/out/esm/index.mjs +185 -185
- 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/test/global-css-urls.test.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- 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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|