@vis3/kit 1.1.11 → 1.1.12-alpha.1
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/dist/components/CodeViewer/json-key-plugin.d.ts +13 -1
- package/dist/components/CodeViewer/link-plugin.d.ts +1 -1
- package/dist/index.mjs +15612 -15894
- package/dist/index.umd.js +152 -166
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { DecorationSet, ViewUpdate } from '@codemirror/view';
|
|
2
|
+
import { EditorView, ViewPlugin } from '@codemirror/view';
|
|
1
3
|
export declare const JSON_KEY_CLICK_EVENT = "json-key-click";
|
|
2
4
|
export type KeyPath = (string | number)[];
|
|
3
5
|
export interface CustomEventJsonNodeDetail {
|
|
@@ -15,5 +17,15 @@ export interface JsonNode {
|
|
|
15
17
|
pathArray: KeyPath;
|
|
16
18
|
path: string;
|
|
17
19
|
}
|
|
20
|
+
declare class KeyPlugin {
|
|
21
|
+
decorations: DecorationSet;
|
|
22
|
+
private updateScheduled;
|
|
23
|
+
private lastTreeLength;
|
|
24
|
+
constructor(view: EditorView);
|
|
25
|
+
update(update: ViewUpdate): void;
|
|
26
|
+
private scheduleUpdate;
|
|
27
|
+
private isNodeInVisibleRange;
|
|
28
|
+
}
|
|
18
29
|
export declare const keyStyle: import("@codemirror/state").Extension;
|
|
19
|
-
export declare const jsonKeyLink: import("@codemirror/state").Extension[];
|
|
30
|
+
export declare const jsonKeyLink: (ViewPlugin<KeyPlugin> | readonly import("@codemirror/state").Extension[])[];
|
|
31
|
+
export {};
|
|
@@ -16,6 +16,6 @@ export declare function hyperLinkExtension({ regexp, match, handle }?: HyperLink
|
|
|
16
16
|
decorator: MatchDecorator;
|
|
17
17
|
decorations: DecorationSet;
|
|
18
18
|
update(update: ViewUpdate): void;
|
|
19
|
-
}
|
|
19
|
+
}>[];
|
|
20
20
|
export declare const hyperLinkStyle: Extension;
|
|
21
21
|
export declare const hyperLink: Extension;
|