crossnote 0.9.39 → 0.9.41

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.
@@ -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;
@@ -0,0 +1,3 @@
1
+ export declare const DANGEROUS_URL_PATTERN: RegExp;
2
+ export declare const URL_ATTRIBUTES: string[];
3
+ export declare function isDangerousUrl(value: string): boolean;
@@ -143,6 +143,7 @@ export declare class MarkdownEngine {
143
143
  }): Promise<string>;
144
144
  private exportOnSave;
145
145
  private resolveFilePath;
146
+ private resolvePathsInStyles;
146
147
  private resolvePathsInHeader;
147
148
  clearCaches(): void;
148
149
  private frontMatterToTable;
@@ -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 filesystemRootWarned;
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 skipIndexingIfFilesystemRoot;
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 {};