crossnote 0.9.20 → 0.9.22
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 +52 -2
- package/out/cjs/index.cjs +270 -263
- package/out/dependencies/README.md +2 -2
- package/out/dependencies/katex/katex-swap.min.css +1 -1
- package/out/dependencies/katex/katex.min.css +1 -1
- package/out/dependencies/mermaid/mermaid.min.js +813 -537
- package/out/dependencies/reveal/css/theme/vscode.css +290 -0
- package/out/dependencies/reveal/lib/js/head.min.js +1 -1
- package/out/esm/index.mjs +279 -272
- package/out/styles/octocat-spinner-128.gif +0 -0
- package/out/styles/preview.css +1 -1
- package/out/styles/preview_theme/gothic.css +1 -1
- package/out/styles/preview_theme/vscode.css +1 -0
- package/out/styles/preview_theme/vue.css +1 -1
- package/out/styles/prism_theme/vscode.css +1 -0
- package/out/styles/prism_theme/vue.css +1 -1
- package/out/styles/style-template.css +1 -1
- package/out/types/src/converters/ebook-convert.d.ts +1 -1
- package/out/types/src/converters/markdown-convert.d.ts +2 -2
- package/out/types/src/converters/pandoc-convert.d.ts +2 -2
- package/out/types/src/converters/prince-convert.d.ts +1 -1
- package/out/types/src/custom-markdown-it-features/code-fences.d.ts +2 -0
- package/out/types/src/custom-markdown-it-features/colon-fenced-code-blocks.d.ts +3 -0
- package/out/types/src/markdown-engine/extension-helper.d.ts +1 -1
- package/out/types/src/markdown-engine/index.d.ts +24 -18
- package/out/types/src/markdown-engine/sanitize.d.ts +2 -1
- package/out/types/src/markdown-engine/transformer.d.ts +3 -2
- package/out/types/src/notebook/index.d.ts +17 -1
- package/out/types/src/notebook/note.d.ts +1 -1
- package/out/types/src/notebook/slash.d.ts +1 -1
- package/out/types/src/notebook/types.d.ts +11 -5
- package/out/types/src/prism/iele.d.ts +4 -1
- package/out/types/src/prism/k.d.ts +4 -1
- package/out/types/src/render-enhancers/code-block-styling.d.ts +2 -1
- package/out/types/src/render-enhancers/embedded-local-images.d.ts +2 -1
- package/out/types/src/render-enhancers/embedded-svgs.d.ts +2 -1
- package/out/types/src/render-enhancers/extended-table-syntax.d.ts +2 -1
- package/out/types/src/render-enhancers/fenced-code-chunks.d.ts +4 -2
- package/out/types/src/render-enhancers/fenced-diagrams.d.ts +7 -2
- package/out/types/src/render-enhancers/fenced-math.d.ts +2 -1
- package/out/types/src/render-enhancers/resolved-image-paths.d.ts +2 -1
- package/out/types/src/renderers/bitfield.d.ts +1 -1
- package/out/types/src/renderers/d2.d.ts +8 -0
- package/out/types/src/renderers/tikz.d.ts +10 -0
- package/out/types/src/renderers/vega-lite.d.ts +1 -1
- package/out/types/src/tools/image-uploader.d.ts +3 -3
- package/out/types/src/tools/mermaid.d.ts +1 -1
- package/out/types/src/utility.d.ts +5 -4
- package/out/types/src/webview/components/GraphViewComponent.d.ts +2 -0
- package/out/types/src/webview/containers/preview.d.ts +2 -1
- package/out/types/src/webview/graph-view.d.ts +1 -0
- package/out/types/src/webview/lib/utility.d.ts +1 -1
- package/out/types/test/notebook.test.d.ts +1 -0
- package/out/types/test/tikz-fenced.test.d.ts +1 -0
- package/out/types/test/tikz.test.d.ts +1 -0
- package/out/types/test/webview-sanitize.test.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/out/webview/backlinks.css +1 -1
- package/out/webview/backlinks.js +5 -5
- package/out/webview/graph-view.css +1 -0
- package/out/webview/graph-view.js +43 -0
- package/out/webview/preview.css +1 -1
- package/out/webview/preview.js +221 -221
- package/package.json +47 -22
|
@@ -6,7 +6,9 @@ import { BlockInfo } from './lib/block-info';
|
|
|
6
6
|
export declare function tempOpen(options: temp.AffixOptions): Promise<temp.OpenFile>;
|
|
7
7
|
export declare function openFile(filePath: string): child_process.ChildProcess | undefined;
|
|
8
8
|
export declare function isWSL(): boolean;
|
|
9
|
-
export declare function toFileURL(filePath: string
|
|
9
|
+
export declare function toFileURL(filePath: string, { useWSL }?: {
|
|
10
|
+
useWSL?: boolean;
|
|
11
|
+
}): string;
|
|
10
12
|
export declare function sleep(ms: number): Promise<void>;
|
|
11
13
|
export declare function parseYAML(yaml?: string): JsonObject;
|
|
12
14
|
export declare function setCrossnoteBuildDirectory(path: string): void;
|
|
@@ -15,12 +17,11 @@ export declare function useExternalAddFileProtocolFunction(func: (filePath: stri
|
|
|
15
17
|
export declare function addFileProtocol(filePath: string, vscodePreviewPanel?: vscode.WebviewPanel | null): string;
|
|
16
18
|
export declare function removeFileProtocol(filePath: string): string;
|
|
17
19
|
export { uploadImage } from './tools/image-uploader';
|
|
18
|
-
export declare function allowUnsafeEval(fn:
|
|
20
|
+
export declare function allowUnsafeEval<T>(fn: () => T): T;
|
|
19
21
|
export declare function allowUnsafeEvalAync(fn: () => Promise<any>): Promise<any>;
|
|
20
|
-
export declare function allowUnsafeNewFunction(fn:
|
|
22
|
+
export declare function allowUnsafeNewFunction<T>(fn: () => T): T;
|
|
21
23
|
export declare function allowUnsafeNewFunctionAsync(fn: () => Promise<any>): Promise<any>;
|
|
22
24
|
export declare function allowUnsafeEvalAndUnsafeNewFunctionAsync(fn: () => Promise<any>): Promise<any>;
|
|
23
|
-
export declare const loadDependency: (dependencyPath: string) => any;
|
|
24
25
|
export declare const extractCommandFromBlockInfo: (info: BlockInfo) => any;
|
|
25
26
|
export declare function Function(...args: string[]): any;
|
|
26
27
|
export declare namespace Function {
|
|
@@ -3,7 +3,7 @@ declare const PreviewContainer: import("unstated-next").Container<{
|
|
|
3
3
|
backlinks: Backlink[];
|
|
4
4
|
backlinksElement: import("react").RefObject<HTMLDivElement>;
|
|
5
5
|
bindAnchorElementsClickEvent: (anchorElements: Array<HTMLAnchorElement>) => void;
|
|
6
|
-
clickSidebarTocButton: () =>
|
|
6
|
+
clickSidebarTocButton: () => void;
|
|
7
7
|
config: WebviewConfig;
|
|
8
8
|
contextMenuId: string;
|
|
9
9
|
enablePreviewZenMode: boolean;
|
|
@@ -36,6 +36,7 @@ declare const PreviewContainer: import("unstated-next").Container<{
|
|
|
36
36
|
showSidebarToc: boolean;
|
|
37
37
|
sidebarTocElement: import("react").RefObject<HTMLDivElement>;
|
|
38
38
|
sidebarTocHtml: string;
|
|
39
|
+
onSidebarResized: () => void;
|
|
39
40
|
sourceScheme: import("react").MutableRefObject<string>;
|
|
40
41
|
sourceUri: import("react").MutableRefObject<string | undefined>;
|
|
41
42
|
theme: "dark" | "light";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function getElementBackgroundColor(element: HTMLElement): string;
|
|
2
|
-
export declare function isBackgroundColorLight(element:
|
|
2
|
+
export declare function isBackgroundColorLight(element: HTMLElement): boolean;
|
|
3
3
|
export declare function copyTextToClipboard(text: string): void;
|
|
4
4
|
export declare function copyBlobToClipboard(blob: Blob): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|