obsidian-typings 4.41.0 → 4.43.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.
@@ -1354,6 +1354,13 @@ export interface BasesContextConstructor extends ConstructorBase<[
1354
1354
  * @unofficial
1355
1355
  */
1356
1356
  export interface BasesControl {
1357
+ /**
1358
+ * Render to.
1359
+ *
1360
+ * @param containerEl - The container element.
1361
+ * @param t - The data to render.
1362
+ */
1363
+ renderTo(containerEl: HTMLElement, renderContext: RenderContext): void;
1357
1364
  }
1358
1365
  /**
1359
1366
  * Controller for the view.
@@ -1584,6 +1591,14 @@ export interface BasesController extends Component {
1584
1591
  */
1585
1592
  updateCurrentFile(file: TFile): void;
1586
1593
  }
1594
+ /**
1595
+ * Bases external link.
1596
+ *
1597
+ * @public
1598
+ * @unofficial
1599
+ */
1600
+ export interface BasesExternalLink extends BasesControl {
1601
+ }
1587
1602
  /**
1588
1603
  * Bases file.
1589
1604
  *
@@ -1933,7 +1948,7 @@ export interface BasesList extends BasesControl {
1933
1948
  /**
1934
1949
  * The controls.
1935
1950
  */
1936
- data: BasesControl[];
1951
+ data: Record<string, BasesControl>;
1937
1952
  /**
1938
1953
  * Gets a value by key.
1939
1954
  *
@@ -1950,9 +1965,13 @@ export interface BasesList extends BasesControl {
1950
1965
  */
1951
1966
  export interface BasesLocal {
1952
1967
  /**
1953
- * Implicit file.
1968
+ * Implicit.
1954
1969
  */
1955
1970
  implicit: BasesFile;
1971
+ /**
1972
+ * Note.
1973
+ */
1974
+ note: BasesNote;
1956
1975
  }
1957
1976
  /**
1958
1977
  * Bases view controller mock context.
@@ -1970,6 +1989,25 @@ export interface BasesMockContext {
1970
1989
  */
1971
1990
  export interface BasesNewItemMenu {
1972
1991
  }
1992
+ /**
1993
+ * Bases note.
1994
+ *
1995
+ * @public
1996
+ * @unofficial
1997
+ */
1998
+ export interface BasesNote {
1999
+ /**
2000
+ * Data.
2001
+ */
2002
+ data: unknown[];
2003
+ /**
2004
+ * Get control.
2005
+ *
2006
+ * @param key - The key.
2007
+ * @returns The control.
2008
+ */
2009
+ get(key: string): BasesControl;
2010
+ }
1973
2011
  /**
1974
2012
  * Bases plugin.
1975
2013
  *
@@ -10123,6 +10161,14 @@ export interface ReleaseNotesView extends ItemView {
10123
10161
  */
10124
10162
  export interface ReleaseNotesViewConstructor extends TypedViewConstructor<ReleaseNotesView> {
10125
10163
  }
10164
+ /**
10165
+ * Render context.
10166
+ *
10167
+ * @public
10168
+ * @unofficial
10169
+ */
10170
+ export interface RenderContext {
10171
+ }
10126
10172
  /**
10127
10173
  * @todo Documentation incomplete.
10128
10174
  * @public
@@ -17,7 +17,7 @@ import * as fs from 'node:fs';
17
17
  import type { FSWatcher, Stats } from 'node:fs';
18
18
  import * as fsPromises from 'node:fs/promises';
19
19
  import * as path from 'node:path';
20
- import type { App, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileManager, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverPopover, IconName, ItemView, Keymap, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, Notice, ObsidianProtocolHandler, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, request, requestUrl } from 'obsidian';
20
+ import type { App, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, Notice, ObsidianProtocolHandler, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, request, requestUrl } from 'obsidian';
21
21
  import type { default as pdfjsLib } from 'pdfjs-dist';
22
22
  import type { Application, Container, Graphics, ICanvas, Sprite, Text as Text$1, TextStyle, default as PIXI } from 'pixi.js';
23
23
  import type { default as Prism$1 } from 'prismjs';
@@ -13066,6 +13066,12 @@ declare module "obsidian" {
13066
13066
  * @unofficial
13067
13067
  */
13068
13068
  plugins: Plugins;
13069
+ /**
13070
+ * The render context.
13071
+ *
13072
+ * @unofficial
13073
+ */
13074
+ renderContext: RenderContext;
13069
13075
  /**
13070
13076
  * The scope object.
13071
13077
  *
@@ -17556,6 +17562,13 @@ export interface BasesContextConstructor extends ConstructorBase<[
17556
17562
  * @unofficial
17557
17563
  */
17558
17564
  export interface BasesControl {
17565
+ /**
17566
+ * Render to.
17567
+ *
17568
+ * @param containerEl - The container element.
17569
+ * @param t - The data to render.
17570
+ */
17571
+ renderTo(containerEl: HTMLElement, renderContext: RenderContext): void;
17559
17572
  }
17560
17573
  /**
17561
17574
  * Controller for the view.
@@ -17786,6 +17799,14 @@ export interface BasesController extends Component {
17786
17799
  */
17787
17800
  updateCurrentFile(file: TFile): void;
17788
17801
  }
17802
+ /**
17803
+ * Bases external link.
17804
+ *
17805
+ * @public
17806
+ * @unofficial
17807
+ */
17808
+ export interface BasesExternalLink extends BasesControl {
17809
+ }
17789
17810
  /**
17790
17811
  * Bases file.
17791
17812
  *
@@ -18135,7 +18156,7 @@ export interface BasesList extends BasesControl {
18135
18156
  /**
18136
18157
  * The controls.
18137
18158
  */
18138
- data: BasesControl[];
18159
+ data: Record<string, BasesControl>;
18139
18160
  /**
18140
18161
  * Gets a value by key.
18141
18162
  *
@@ -18152,9 +18173,13 @@ export interface BasesList extends BasesControl {
18152
18173
  */
18153
18174
  export interface BasesLocal {
18154
18175
  /**
18155
- * Implicit file.
18176
+ * Implicit.
18156
18177
  */
18157
18178
  implicit: BasesFile;
18179
+ /**
18180
+ * Note.
18181
+ */
18182
+ note: BasesNote;
18158
18183
  }
18159
18184
  /**
18160
18185
  * Bases view controller mock context.
@@ -18172,6 +18197,25 @@ export interface BasesMockContext {
18172
18197
  */
18173
18198
  export interface BasesNewItemMenu {
18174
18199
  }
18200
+ /**
18201
+ * Bases note.
18202
+ *
18203
+ * @public
18204
+ * @unofficial
18205
+ */
18206
+ export interface BasesNote {
18207
+ /**
18208
+ * Data.
18209
+ */
18210
+ data: unknown[];
18211
+ /**
18212
+ * Get control.
18213
+ *
18214
+ * @param key - The key.
18215
+ * @returns The control.
18216
+ */
18217
+ get(key: string): BasesControl;
18218
+ }
18175
18219
  /**
18176
18220
  * Bases plugin.
18177
18221
  *
@@ -26325,6 +26369,14 @@ export interface ReleaseNotesView extends ItemView {
26325
26369
  */
26326
26370
  export interface ReleaseNotesViewConstructor extends TypedViewConstructor<ReleaseNotesView> {
26327
26371
  }
26372
+ /**
26373
+ * Render context.
26374
+ *
26375
+ * @public
26376
+ * @unofficial
26377
+ */
26378
+ export interface RenderContext {
26379
+ }
26328
26380
  /**
26329
26381
  * @todo Documentation incomplete.
26330
26382
  * @public
@@ -8836,7 +8836,71 @@
8836
8836
  "releaseTag": "Public",
8837
8837
  "name": "BasesControl",
8838
8838
  "preserveMemberOrder": false,
8839
- "members": [],
8839
+ "members": [
8840
+ {
8841
+ "kind": "MethodSignature",
8842
+ "canonicalReference": "obsidian-typings!BasesControl#renderTo:member(1)",
8843
+ "docComment": "/**\n * Render to.\n *\n * @param containerEl - The container element.\n *\n * @param t - The data to render.\n */\n",
8844
+ "excerptTokens": [
8845
+ {
8846
+ "kind": "Content",
8847
+ "text": "renderTo(containerEl: "
8848
+ },
8849
+ {
8850
+ "kind": "Reference",
8851
+ "text": "HTMLElement",
8852
+ "canonicalReference": "!HTMLElement:interface"
8853
+ },
8854
+ {
8855
+ "kind": "Content",
8856
+ "text": ", renderContext: "
8857
+ },
8858
+ {
8859
+ "kind": "Reference",
8860
+ "text": "RenderContext",
8861
+ "canonicalReference": "obsidian-typings!RenderContext:interface"
8862
+ },
8863
+ {
8864
+ "kind": "Content",
8865
+ "text": "): "
8866
+ },
8867
+ {
8868
+ "kind": "Content",
8869
+ "text": "void"
8870
+ },
8871
+ {
8872
+ "kind": "Content",
8873
+ "text": ";"
8874
+ }
8875
+ ],
8876
+ "isOptional": false,
8877
+ "returnTypeTokenRange": {
8878
+ "startIndex": 5,
8879
+ "endIndex": 6
8880
+ },
8881
+ "releaseTag": "Public",
8882
+ "overloadIndex": 1,
8883
+ "parameters": [
8884
+ {
8885
+ "parameterName": "containerEl",
8886
+ "parameterTypeTokenRange": {
8887
+ "startIndex": 1,
8888
+ "endIndex": 2
8889
+ },
8890
+ "isOptional": false
8891
+ },
8892
+ {
8893
+ "parameterName": "renderContext",
8894
+ "parameterTypeTokenRange": {
8895
+ "startIndex": 3,
8896
+ "endIndex": 4
8897
+ },
8898
+ "isOptional": false
8899
+ }
8900
+ ],
8901
+ "name": "renderTo"
8902
+ }
8903
+ ],
8840
8904
  "extendsTokenRanges": []
8841
8905
  },
8842
8906
  {
@@ -10772,6 +10836,37 @@
10772
10836
  }
10773
10837
  ]
10774
10838
  },
10839
+ {
10840
+ "kind": "Interface",
10841
+ "canonicalReference": "obsidian-typings!BasesExternalLink:interface",
10842
+ "docComment": "/**\n * Bases external link.\n *\n * @unofficial\n *\n * @public\n */\n",
10843
+ "excerptTokens": [
10844
+ {
10845
+ "kind": "Content",
10846
+ "text": "export interface BasesExternalLink extends "
10847
+ },
10848
+ {
10849
+ "kind": "Reference",
10850
+ "text": "BasesControl",
10851
+ "canonicalReference": "obsidian-typings!BasesControl:interface"
10852
+ },
10853
+ {
10854
+ "kind": "Content",
10855
+ "text": " "
10856
+ }
10857
+ ],
10858
+ "fileUrlPath": "src/obsidian/internals/InternalPlugins/Bases/BasesExternalLink.d.ts",
10859
+ "releaseTag": "Public",
10860
+ "name": "BasesExternalLink",
10861
+ "preserveMemberOrder": false,
10862
+ "members": [],
10863
+ "extendsTokenRanges": [
10864
+ {
10865
+ "startIndex": 1,
10866
+ "endIndex": 2
10867
+ }
10868
+ ]
10869
+ },
10775
10870
  {
10776
10871
  "kind": "Interface",
10777
10872
  "canonicalReference": "obsidian-typings!BasesFile:interface",
@@ -12931,6 +13026,15 @@
12931
13026
  "kind": "Content",
12932
13027
  "text": "data: "
12933
13028
  },
13029
+ {
13030
+ "kind": "Reference",
13031
+ "text": "Record",
13032
+ "canonicalReference": "!Record:type"
13033
+ },
13034
+ {
13035
+ "kind": "Content",
13036
+ "text": "<string, "
13037
+ },
12934
13038
  {
12935
13039
  "kind": "Reference",
12936
13040
  "text": "BasesControl",
@@ -12938,7 +13042,7 @@
12938
13042
  },
12939
13043
  {
12940
13044
  "kind": "Content",
12941
- "text": "[]"
13045
+ "text": ">"
12942
13046
  },
12943
13047
  {
12944
13048
  "kind": "Content",
@@ -12951,7 +13055,7 @@
12951
13055
  "name": "data",
12952
13056
  "propertyTypeTokenRange": {
12953
13057
  "startIndex": 1,
12954
- "endIndex": 3
13058
+ "endIndex": 5
12955
13059
  }
12956
13060
  },
12957
13061
  {
@@ -13026,7 +13130,7 @@
13026
13130
  {
13027
13131
  "kind": "PropertySignature",
13028
13132
  "canonicalReference": "obsidian-typings!BasesLocal#implicit:member",
13029
- "docComment": "/**\n * Implicit file.\n */\n",
13133
+ "docComment": "/**\n * Implicit.\n */\n",
13030
13134
  "excerptTokens": [
13031
13135
  {
13032
13136
  "kind": "Content",
@@ -13050,6 +13154,34 @@
13050
13154
  "startIndex": 1,
13051
13155
  "endIndex": 2
13052
13156
  }
13157
+ },
13158
+ {
13159
+ "kind": "PropertySignature",
13160
+ "canonicalReference": "obsidian-typings!BasesLocal#note:member",
13161
+ "docComment": "/**\n * Note.\n */\n",
13162
+ "excerptTokens": [
13163
+ {
13164
+ "kind": "Content",
13165
+ "text": "note: "
13166
+ },
13167
+ {
13168
+ "kind": "Reference",
13169
+ "text": "BasesNote",
13170
+ "canonicalReference": "obsidian-typings!BasesNote:interface"
13171
+ },
13172
+ {
13173
+ "kind": "Content",
13174
+ "text": ";"
13175
+ }
13176
+ ],
13177
+ "isReadonly": false,
13178
+ "isOptional": false,
13179
+ "releaseTag": "Public",
13180
+ "name": "note",
13181
+ "propertyTypeTokenRange": {
13182
+ "startIndex": 1,
13183
+ "endIndex": 2
13184
+ }
13053
13185
  }
13054
13186
  ],
13055
13187
  "extendsTokenRanges": []
@@ -13088,6 +13220,97 @@
13088
13220
  "members": [],
13089
13221
  "extendsTokenRanges": []
13090
13222
  },
13223
+ {
13224
+ "kind": "Interface",
13225
+ "canonicalReference": "obsidian-typings!BasesNote:interface",
13226
+ "docComment": "/**\n * Bases note.\n *\n * @unofficial\n *\n * @public\n */\n",
13227
+ "excerptTokens": [
13228
+ {
13229
+ "kind": "Content",
13230
+ "text": "export interface BasesNote "
13231
+ }
13232
+ ],
13233
+ "fileUrlPath": "src/obsidian/internals/InternalPlugins/Bases/BasesNote.d.ts",
13234
+ "releaseTag": "Public",
13235
+ "name": "BasesNote",
13236
+ "preserveMemberOrder": false,
13237
+ "members": [
13238
+ {
13239
+ "kind": "PropertySignature",
13240
+ "canonicalReference": "obsidian-typings!BasesNote#data:member",
13241
+ "docComment": "/**\n * Data.\n */\n",
13242
+ "excerptTokens": [
13243
+ {
13244
+ "kind": "Content",
13245
+ "text": "data: "
13246
+ },
13247
+ {
13248
+ "kind": "Content",
13249
+ "text": "unknown[]"
13250
+ },
13251
+ {
13252
+ "kind": "Content",
13253
+ "text": ";"
13254
+ }
13255
+ ],
13256
+ "isReadonly": false,
13257
+ "isOptional": false,
13258
+ "releaseTag": "Public",
13259
+ "name": "data",
13260
+ "propertyTypeTokenRange": {
13261
+ "startIndex": 1,
13262
+ "endIndex": 2
13263
+ }
13264
+ },
13265
+ {
13266
+ "kind": "MethodSignature",
13267
+ "canonicalReference": "obsidian-typings!BasesNote#get:member(1)",
13268
+ "docComment": "/**\n * Get control.\n *\n * @param key - The key.\n *\n * @returns The control.\n */\n",
13269
+ "excerptTokens": [
13270
+ {
13271
+ "kind": "Content",
13272
+ "text": "get(key: "
13273
+ },
13274
+ {
13275
+ "kind": "Content",
13276
+ "text": "string"
13277
+ },
13278
+ {
13279
+ "kind": "Content",
13280
+ "text": "): "
13281
+ },
13282
+ {
13283
+ "kind": "Reference",
13284
+ "text": "BasesControl",
13285
+ "canonicalReference": "obsidian-typings!BasesControl:interface"
13286
+ },
13287
+ {
13288
+ "kind": "Content",
13289
+ "text": ";"
13290
+ }
13291
+ ],
13292
+ "isOptional": false,
13293
+ "returnTypeTokenRange": {
13294
+ "startIndex": 3,
13295
+ "endIndex": 4
13296
+ },
13297
+ "releaseTag": "Public",
13298
+ "overloadIndex": 1,
13299
+ "parameters": [
13300
+ {
13301
+ "parameterName": "key",
13302
+ "parameterTypeTokenRange": {
13303
+ "startIndex": 1,
13304
+ "endIndex": 2
13305
+ },
13306
+ "isOptional": false
13307
+ }
13308
+ ],
13309
+ "name": "get"
13310
+ }
13311
+ ],
13312
+ "extendsTokenRanges": []
13313
+ },
13091
13314
  {
13092
13315
  "kind": "Interface",
13093
13316
  "canonicalReference": "obsidian-typings!BasesPlugin:interface",
@@ -105284,6 +105507,23 @@
105284
105507
  }
105285
105508
  ]
105286
105509
  },
105510
+ {
105511
+ "kind": "Interface",
105512
+ "canonicalReference": "obsidian-typings!RenderContext:interface",
105513
+ "docComment": "/**\n * Render context.\n *\n * @unofficial\n *\n * @public\n */\n",
105514
+ "excerptTokens": [
105515
+ {
105516
+ "kind": "Content",
105517
+ "text": "export interface RenderContext "
105518
+ }
105519
+ ],
105520
+ "fileUrlPath": "src/obsidian/internals/RenderContext.d.ts",
105521
+ "releaseTag": "Public",
105522
+ "name": "RenderContext",
105523
+ "preserveMemberOrder": false,
105524
+ "members": [],
105525
+ "extendsTokenRanges": []
105526
+ },
105287
105527
  {
105288
105528
  "kind": "Interface",
105289
105529
  "canonicalReference": "obsidian-typings!RendererSection:interface",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.41.0",
3
+ "version": "4.43.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",