obsidian-typings 4.53.0 → 4.55.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/README.md CHANGED
@@ -69,8 +69,8 @@ To make it easier to adapt to these differences, this package provides typings f
69
69
 
70
70
  Typings for each `Obsidian` version can be found in their own git branches: namely `release/obsidian-public/*` and `release/obsidian-catalyst/*`:
71
71
 
72
- - Latest `public` release: [`release/obsidian-public/1.9.12`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.9.12)
73
- - Latest `catalyst` release: [`release/obsidian-catalyst/1.9.14`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-catalyst/1.9.14)
72
+ - Latest `public` release: [`release/obsidian-public/1.9.14`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.9.14)
73
+ - Latest `catalyst` release: [`release/obsidian-catalyst/1.10.0`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-catalyst/1.10.0)
74
74
 
75
75
  Older versions of the package are available, but support for them is limited.
76
76
  In most cases, we recommend to always use the latest release.
@@ -4036,9 +4036,10 @@ declare module "obsidian" {
4036
4036
  /**
4037
4037
  * Get or create a menu from a mouse event.
4038
4038
  *
4039
- * @unofficial
4039
+ * @official
4040
+ * @deprecated - Added only for typing purposes. Use {@link forEvent} instead.
4040
4041
  */
4041
- function forEvent(evt: MouseEvent): Menu;
4042
+ function forEvent__(evt: MouseEvent): Menu;
4042
4043
  }
4043
4044
  }
4044
4045
  declare module "obsidian" {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.52.8",
4
+ "toolVersion": "7.52.15",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.53.0",
3
+ "version": "4.55.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -58,12 +58,13 @@
58
58
  "@capacitor/core": "5.7.8",
59
59
  "@codemirror/language": "6.11.2",
60
60
  "@codemirror/search": "6.5.11",
61
- "@codemirror/state": "6.5.2",
61
+ "@codemirror/state": "6.5.0",
62
+ "@codemirror/view": "6.38.1",
62
63
  "@lezer/common": "1.2.3",
63
64
  "@pixi/color": "7.2.4",
64
65
  "@pixi/events": "7.2.4",
65
66
  "@pixi/settings": "7.2.4",
66
- "@types/codemirror": "5.60.16",
67
+ "@types/codemirror": "5.60.8",
67
68
  "@types/css-font-loading-module": "0.0.14",
68
69
  "@types/dompurify": "3.0.1",
69
70
  "@types/node": "^18.17.0 || >=20.1.0",
@@ -74,24 +75,31 @@
74
75
  "i18next": "25.2.1",
75
76
  "mermaid": "11.4.1",
76
77
  "moment": "2.29.4",
77
- "obsidian": "1.8.7",
78
+ "obsidian": "1.10.0",
78
79
  "pdfjs-dist": "5.3.31",
79
80
  "pixi.js": "7.2.4",
80
81
  "scrypt-js": "3.0.1",
81
82
  "style-mod": "4.1.2"
82
83
  },
83
84
  "devDependencies": {
84
- "@microsoft/api-extractor": "^7.52.8",
85
- "@tsconfig/strictest": "^2.0.5",
85
+ "@commitlint/cli": "^20.1.0",
86
+ "@commitlint/config-conventional": "^20.0.0",
87
+ "@commitlint/types": "^20.0.0",
88
+ "@microsoft/api-extractor": "^7.52.15",
89
+ "@tsconfig/strictest": "^2.0.6",
86
90
  "builtin-modules": "^5.0.0",
87
- "cspell": "^9.1.2",
88
- "dprint": "^0.50.1",
91
+ "commitizen": "^4.3.1",
92
+ "cspell": "^9.2.1",
93
+ "cz-conventional-changelog": "^3.3.0",
94
+ "dprint": "^0.50.2",
89
95
  "dts-bundle-generator": "^9.5.1",
90
- "esbuild": "^0.25.5",
96
+ "esbuild": "^0.25.10",
97
+ "husky": "^9.1.7",
91
98
  "npm-run-all": "^4.1.5",
92
- "obsidian-dev-utils": "^33.1.0",
93
- "patch-package": "^8.0.0",
94
- "ts-morph": "^26.0.0"
99
+ "obsidian-dev-utils": "^42.6.3",
100
+ "patch-package": "^8.0.1",
101
+ "ts-morph": "^27.0.0",
102
+ "typescript": "^5.9.3"
95
103
  },
96
104
  "peerDependencies": {
97
105
  "typescript": ">=4.8.0"
@@ -114,8 +122,10 @@
114
122
  "build:fix-implementations-bundle-types": "bun run scripts/build-fix-implementations-bundle-types.ts",
115
123
  "build:static": "bun run scripts/build-static.ts",
116
124
  "build:extract-api": "api-extractor run --local",
125
+ "commit": "cz",
117
126
  "format": "bun run scripts/sort-interfaces.ts ./src/ && bun dprint fmt",
118
127
  "postinstall": "npx bun run scripts/postinstall.ts",
128
+ "prepare": "husky",
119
129
  "release": "git show origin/main:workflow-scripts/release.ts | bun -",
120
130
  "release:beta": "git show origin/main:workflow-scripts/release-beta.ts | bun -",
121
131
  "spellcheck": "cspell . --no-progress"
@@ -1,12 +1,10 @@
1
1
  diff --git a/node_modules/obsidian/obsidian.d.ts b/node_modules/obsidian/obsidian.d.ts
2
- index 6b78a9f..59081c3 100644
2
+ index caeee06..5e683eb 100644
3
3
  --- a/node_modules/obsidian/obsidian.d.ts
4
4
  +++ b/node_modules/obsidian/obsidian.d.ts
5
- @@ -5,8 +5,10 @@
6
-
5
+ @@ -6,6 +6,9 @@
7
6
  import { Extension, StateField } from '@codemirror/state';
8
7
  import { EditorView, ViewPlugin } from '@codemirror/view';
9
- -import * as CodeMirror from 'codemirror';
10
8
  import * as Moment from 'moment';
11
9
  +import type { Mermaid } from 'mermaid' with { 'resolution-mode': 'import' };
12
10
  +import type { default as pdfjsLib } from 'pdfjs-dist';
@@ -14,7 +12,7 @@ index 6b78a9f..59081c3 100644
14
12
 
15
13
  declare global {
16
14
  interface ObjectConstructor {
17
- @@ -2287,7 +2289,7 @@ export function loadMathJax(): Promise<void>;
15
+ @@ -3265,7 +3268,7 @@ export function loadMathJax(): Promise<void>;
18
16
  * @see {@link https://mermaid.js.org/ Official Mermaid documentation}
19
17
  * @public
20
18
  */
@@ -23,7 +21,7 @@ index 6b78a9f..59081c3 100644
23
21
 
24
22
  /**
25
23
  * Load PDF.js and return a promise to the global pdfjsLib object.
26
- @@ -2295,7 +2297,7 @@ export function loadMermaid(): Promise<any>;
24
+ @@ -3273,7 +3276,7 @@ export function loadMermaid(): Promise<any>;
27
25
  * @see {@link https://mozilla.github.io/pdf.js/ Official PDF.js documentation}
28
26
  * @public
29
27
  */
@@ -32,7 +30,7 @@ index 6b78a9f..59081c3 100644
32
30
 
33
31
  /**
34
32
  * Load Prism.js and return a promise to the global Prism object.
35
- @@ -2303,7 +2305,7 @@ export function loadPdfJs(): Promise<any>;
33
+ @@ -3281,7 +3284,7 @@ export function loadPdfJs(): Promise<any>;
36
34
  * @see {@link https://prismjs.com/ Official Prism documentation}
37
35
  * @public
38
36
  */
@@ -41,31 +39,3 @@ index 6b78a9f..59081c3 100644
41
39
 
42
40
  /**
43
41
  * 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
- *