obsidian-typings 4.18.0 → 4.20.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
@@ -5,11 +5,11 @@
5
5
  </center>
6
6
 
7
7
  <div align="center">
8
- <a href="https://obsidian.md/changelog/2025-04-22-desktop-v1.8.10/"><img src="https://img.shields.io/badge/Obsidian_version-1.8.10_public-blue?logo=obsidian" alt="Obsidian version: 1.8.10 public"></a>
9
- <a href="https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.8.10"><img src="https://img.shields.io/badge/Git_branch-release/obsidian--public/1.8.10-red?logo=git" alt="Git branch: release/obsidian-public/1.8.10"></a>
8
+ <a href="https://obsidian.md/changelog/2025-08-15-desktop-v1.9.9/"><img src="https://img.shields.io/badge/Obsidian_version-1.9.9_catalyst-blue?logo=obsidian" alt="Obsidian version: 1.9.9 catalyst"></a>
9
+ <a href="https://github.com/Fevol/obsidian-typings/tree/release/obsidian-catalyst/1.9.9"><img src="https://img.shields.io/badge/Git_branch-release/obsidian--catalyst/1.9.9-red?logo=git" alt="Git branch: release/obsidian-catalyst/1.9.9"></a>
10
10
  </div>
11
11
 
12
- This branch contains the typings for Obsidian version [`1.8.10 public`](https://obsidian.md/changelog/2025-04-22-desktop-v1.8.10/).
12
+ This branch contains the typings for Obsidian version [`1.9.9 catalyst`](https://obsidian.md/changelog/2025-08-15-desktop-v1.9.9/).
13
13
 
14
14
  > [!WARNING]
15
15
  >
@@ -8920,10 +8920,6 @@ export interface PropertyWidget<Value = unknown, ComponentType extends Component
8920
8920
  * Identifier for the widget.
8921
8921
  */
8922
8922
  type: string;
8923
- /**
8924
- * Get the default value for the property widget.
8925
- */
8926
- default(): Value;
8927
8923
  /**
8928
8924
  * Returns the I18N name of the widget.
8929
8925
  */
@@ -8931,7 +8927,7 @@ export interface PropertyWidget<Value = unknown, ComponentType extends Component
8931
8927
  /**
8932
8928
  * Render function for the widget on field container given context and data.
8933
8929
  */
8934
- render(containerEl: HTMLElement, data: PropertyEntryData<Value>, context: PropertyRenderContext): ComponentType;
8930
+ render(containerEl: HTMLElement, data: Value, context: PropertyRenderContext): ComponentType;
8935
8931
  /**
8936
8932
  * Validate whether the input value to the widget is correct.
8937
8933
  */
@@ -24960,10 +24960,6 @@ export interface PropertyWidget<Value = unknown, ComponentType extends Component
24960
24960
  * Identifier for the widget.
24961
24961
  */
24962
24962
  type: string;
24963
- /**
24964
- * Get the default value for the property widget.
24965
- */
24966
- default(): Value;
24967
24963
  /**
24968
24964
  * Returns the I18N name of the widget.
24969
24965
  */
@@ -24971,7 +24967,7 @@ export interface PropertyWidget<Value = unknown, ComponentType extends Component
24971
24967
  /**
24972
24968
  * Render function for the widget on field container given context and data.
24973
24969
  */
24974
- render(containerEl: HTMLElement, data: PropertyEntryData<Value>, context: PropertyRenderContext): ComponentType;
24970
+ render(containerEl: HTMLElement, data: Value, context: PropertyRenderContext): ComponentType;
24975
24971
  /**
24976
24972
  * Validate whether the input value to the widget is correct.
24977
24973
  */
@@ -98029,34 +98029,6 @@
98029
98029
  "name": "PropertyWidget",
98030
98030
  "preserveMemberOrder": false,
98031
98031
  "members": [
98032
- {
98033
- "kind": "MethodSignature",
98034
- "canonicalReference": "obsidian-typings!PropertyWidget#default:member(1)",
98035
- "docComment": "/**\n * Get the default value for the property widget.\n */\n",
98036
- "excerptTokens": [
98037
- {
98038
- "kind": "Content",
98039
- "text": "default(): "
98040
- },
98041
- {
98042
- "kind": "Content",
98043
- "text": "Value"
98044
- },
98045
- {
98046
- "kind": "Content",
98047
- "text": ";"
98048
- }
98049
- ],
98050
- "isOptional": false,
98051
- "returnTypeTokenRange": {
98052
- "startIndex": 1,
98053
- "endIndex": 2
98054
- },
98055
- "releaseTag": "Public",
98056
- "overloadIndex": 1,
98057
- "parameters": [],
98058
- "name": "default"
98059
- },
98060
98032
  {
98061
98033
  "kind": "PropertySignature",
98062
98034
  "canonicalReference": "obsidian-typings!PropertyWidget#icon:member",
@@ -98130,14 +98102,9 @@
98130
98102
  "kind": "Content",
98131
98103
  "text": ", data: "
98132
98104
  },
98133
- {
98134
- "kind": "Reference",
98135
- "text": "PropertyEntryData",
98136
- "canonicalReference": "obsidian-typings!PropertyEntryData:interface"
98137
- },
98138
98105
  {
98139
98106
  "kind": "Content",
98140
- "text": "<Value>"
98107
+ "text": "Value"
98141
98108
  },
98142
98109
  {
98143
98110
  "kind": "Content",
@@ -98163,8 +98130,8 @@
98163
98130
  ],
98164
98131
  "isOptional": false,
98165
98132
  "returnTypeTokenRange": {
98166
- "startIndex": 8,
98167
- "endIndex": 9
98133
+ "startIndex": 7,
98134
+ "endIndex": 8
98168
98135
  },
98169
98136
  "releaseTag": "Public",
98170
98137
  "overloadIndex": 1,
@@ -98181,15 +98148,15 @@
98181
98148
  "parameterName": "data",
98182
98149
  "parameterTypeTokenRange": {
98183
98150
  "startIndex": 3,
98184
- "endIndex": 5
98151
+ "endIndex": 4
98185
98152
  },
98186
98153
  "isOptional": false
98187
98154
  },
98188
98155
  {
98189
98156
  "parameterName": "context",
98190
98157
  "parameterTypeTokenRange": {
98191
- "startIndex": 6,
98192
- "endIndex": 7
98158
+ "startIndex": 5,
98159
+ "endIndex": 6
98193
98160
  },
98194
98161
  "isOptional": false
98195
98162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.18.0",
3
+ "version": "4.20.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -119,5 +119,15 @@
119
119
  "release": "git show origin/main:workflow-scripts/release.ts | bun -",
120
120
  "release:beta": "git show origin/main:workflow-scripts/release-beta.ts | bun -",
121
121
  "spellcheck": "cspell . --no-progress"
122
- }
122
+ },
123
+ "files": [
124
+ "dist/",
125
+ "implementations/",
126
+ "patches/",
127
+ "scripts/postinstall.ts",
128
+ "CHANGELOG.md",
129
+ "LICENSE",
130
+ "README.md",
131
+ "package.json"
132
+ ]
123
133
  }
@@ -0,0 +1,19 @@
1
+ import { spawnSync } from 'node:child_process';
2
+ import {
3
+ join,
4
+ relative
5
+ } from 'node:path/posix';
6
+ import { cwd } from 'node:process';
7
+
8
+ let pkgDir = cwd().replace(/\\/g, '/');
9
+ const patchDir = join(pkgDir, 'patches');
10
+ const relativePath = '/node_modules/obsidian-typings';
11
+ if (pkgDir.endsWith(relativePath)) {
12
+ pkgDir = pkgDir.slice(0, -relativePath.length);
13
+ }
14
+
15
+ spawnSync('npx', ['patch-package', '--patch-dir', relative(pkgDir, patchDir)], {
16
+ shell: true,
17
+ stdio: 'inherit',
18
+ cwd: pkgDir
19
+ });
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * text=auto eol=lf
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "mainEntryPointFilePath": "src/index.d.ts",
4
- "bundledPackages": [],
5
- "compiler": {
6
- },
7
- "apiReport": {
8
- "enabled": false
9
- },
10
- "docModel": {
11
- "enabled": true,
12
- "apiJsonFilePath": "dist/obsidian-typings.api.json"
13
- },
14
- "dtsRollup": {
15
- "enabled": false
16
- },
17
- "tsdocMetadata": {
18
- "enabled": false
19
- },
20
- "messages": {
21
- "compilerMessageReporting": {
22
- "default": {
23
- "logLevel": "warning"
24
- },
25
- "TS2411": {
26
- "logLevel": "none"
27
- }
28
- },
29
- "extractorMessageReporting": {
30
- "default": {
31
- "logLevel": "warning"
32
- }
33
- },
34
- "tsdocMessageReporting": {
35
- "default": {
36
- "logLevel": "warning"
37
- }
38
- }
39
- }
40
- }