obsidian-typings 3.6.0 → 3.7.0
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/cjs/types.d.cts +2 -2
- package/package.json +1 -1
- package/patches/obsidian+1.8.7.patch +36 -6
package/dist/cjs/types.d.cts
CHANGED
|
@@ -4407,7 +4407,7 @@ declare module "obsidian" {
|
|
|
4407
4407
|
*
|
|
4408
4408
|
* @official
|
|
4409
4409
|
*/
|
|
4410
|
-
hoverPopover: HoverPopover;
|
|
4410
|
+
hoverPopover: HoverPopover | null;
|
|
4411
4411
|
/**
|
|
4412
4412
|
* @todo Documentation incomplete.
|
|
4413
4413
|
* @unofficial
|
|
@@ -15130,7 +15130,7 @@ declare module "obsidian" {
|
|
|
15130
15130
|
/**
|
|
15131
15131
|
* Workspace leaf.
|
|
15132
15132
|
*/
|
|
15133
|
-
interface WorkspaceLeaf extends WorkspaceItem {
|
|
15133
|
+
interface WorkspaceLeaf extends WorkspaceItem, HoverParent {
|
|
15134
15134
|
/**
|
|
15135
15135
|
* @todo Documentation incomplete.
|
|
15136
15136
|
* @unofficial
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
diff --git a/node_modules/obsidian/obsidian.d.ts b/node_modules/obsidian/obsidian.d.ts
|
|
2
|
-
index 6b78a9f..
|
|
2
|
+
index 6b78a9f..59081c3 100644
|
|
3
3
|
--- a/node_modules/obsidian/obsidian.d.ts
|
|
4
4
|
+++ b/node_modules/obsidian/obsidian.d.ts
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -5,8 +5,10 @@
|
|
6
|
+
|
|
7
|
+
import { Extension, StateField } from '@codemirror/state';
|
|
6
8
|
import { EditorView, ViewPlugin } from '@codemirror/view';
|
|
7
|
-
|
|
9
|
+
-import * as CodeMirror from 'codemirror';
|
|
8
10
|
import * as Moment from 'moment';
|
|
9
11
|
+import type { Mermaid } from 'mermaid' with { 'resolution-mode': 'import' };
|
|
10
12
|
+import type { default as pdfjsLib } from 'pdfjs-dist';
|
|
@@ -12,7 +14,7 @@ index 6b78a9f..a2f7270 100644
|
|
|
12
14
|
|
|
13
15
|
declare global {
|
|
14
16
|
interface ObjectConstructor {
|
|
15
|
-
@@ -2287,7 +
|
|
17
|
+
@@ -2287,7 +2289,7 @@ export function loadMathJax(): Promise<void>;
|
|
16
18
|
* @see {@link https://mermaid.js.org/ Official Mermaid documentation}
|
|
17
19
|
* @public
|
|
18
20
|
*/
|
|
@@ -21,7 +23,7 @@ index 6b78a9f..a2f7270 100644
|
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* Load PDF.js and return a promise to the global pdfjsLib object.
|
|
24
|
-
@@ -2295,7 +
|
|
26
|
+
@@ -2295,7 +2297,7 @@ export function loadMermaid(): Promise<any>;
|
|
25
27
|
* @see {@link https://mozilla.github.io/pdf.js/ Official PDF.js documentation}
|
|
26
28
|
* @public
|
|
27
29
|
*/
|
|
@@ -30,7 +32,7 @@ index 6b78a9f..a2f7270 100644
|
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* Load Prism.js and return a promise to the global Prism object.
|
|
33
|
-
@@ -2303,7 +
|
|
35
|
+
@@ -2303,7 +2305,7 @@ export function loadPdfJs(): Promise<any>;
|
|
34
36
|
* @see {@link https://prismjs.com/ Official Prism documentation}
|
|
35
37
|
* @public
|
|
36
38
|
*/
|
|
@@ -39,3 +41,31 @@ index 6b78a9f..a2f7270 100644
|
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* Location within a Markdown document
|
|
44
|
+
@@ -2545,7 +2547,7 @@ export abstract class MarkdownRenderer extends MarkdownRenderChild implements Ma
|
|
45
|
+
app: App;
|
|
46
|
+
|
|
47
|
+
/** @public */
|
|
48
|
+
- hoverPopover: HoverPopover;
|
|
49
|
+
+ hoverPopover: HoverPopover | null;
|
|
50
|
+
|
|
51
|
+
/** @public */
|
|
52
|
+
abstract get file(): TFile;
|
|
53
|
+
@@ -5089,7 +5091,7 @@ export abstract class WorkspaceItem extends Events {
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
-export class WorkspaceLeaf extends WorkspaceItem {
|
|
58
|
+
+export class WorkspaceLeaf extends WorkspaceItem implements HoverParent {
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The direct parent of the leaf.
|
|
62
|
+
@@ -5110,6 +5112,9 @@ export class WorkspaceLeaf extends WorkspaceItem {
|
|
63
|
+
*/
|
|
64
|
+
view: View;
|
|
65
|
+
|
|
66
|
+
+ /** @public */
|
|
67
|
+
+ hoverPopover: HoverPopover | null;
|
|
68
|
+
+
|
|
69
|
+
/**
|
|
70
|
+
* Open a file in this leaf.
|
|
71
|
+
*
|