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.
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -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..a2f7270 100644
2
+ index 6b78a9f..59081c3 100644
3
3
  --- a/node_modules/obsidian/obsidian.d.ts
4
4
  +++ b/node_modules/obsidian/obsidian.d.ts
5
- @@ -7,6 +7,9 @@ import { Extension, StateField } from '@codemirror/state';
5
+ @@ -5,8 +5,10 @@
6
+
7
+ import { Extension, StateField } from '@codemirror/state';
6
8
  import { EditorView, ViewPlugin } from '@codemirror/view';
7
- import * as CodeMirror from 'codemirror';
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 +2290,7 @@ export function loadMathJax(): Promise<void>;
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 +2298,7 @@ export function loadMermaid(): Promise<any>;
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 +2306,7 @@ export function loadPdfJs(): Promise<any>;
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
+ *