obsidian-typings 4.42.0 → 4.44.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
  *
@@ -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: Record<string, 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
  *
@@ -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: Record<string, 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",
@@ -13035,7 +13130,7 @@
13035
13130
  {
13036
13131
  "kind": "PropertySignature",
13037
13132
  "canonicalReference": "obsidian-typings!BasesLocal#implicit:member",
13038
- "docComment": "/**\n * Implicit file.\n */\n",
13133
+ "docComment": "/**\n * Implicit.\n */\n",
13039
13134
  "excerptTokens": [
13040
13135
  {
13041
13136
  "kind": "Content",
@@ -13059,6 +13154,34 @@
13059
13154
  "startIndex": 1,
13060
13155
  "endIndex": 2
13061
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
+ }
13062
13185
  }
13063
13186
  ],
13064
13187
  "extendsTokenRanges": []
@@ -13097,6 +13220,102 @@
13097
13220
  "members": [],
13098
13221
  "extendsTokenRanges": []
13099
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": "Reference",
13249
+ "text": "Record",
13250
+ "canonicalReference": "!Record:type"
13251
+ },
13252
+ {
13253
+ "kind": "Content",
13254
+ "text": "<string, unknown>"
13255
+ },
13256
+ {
13257
+ "kind": "Content",
13258
+ "text": ";"
13259
+ }
13260
+ ],
13261
+ "isReadonly": false,
13262
+ "isOptional": false,
13263
+ "releaseTag": "Public",
13264
+ "name": "data",
13265
+ "propertyTypeTokenRange": {
13266
+ "startIndex": 1,
13267
+ "endIndex": 3
13268
+ }
13269
+ },
13270
+ {
13271
+ "kind": "MethodSignature",
13272
+ "canonicalReference": "obsidian-typings!BasesNote#get:member(1)",
13273
+ "docComment": "/**\n * Get control.\n *\n * @param key - The key.\n *\n * @returns The control.\n */\n",
13274
+ "excerptTokens": [
13275
+ {
13276
+ "kind": "Content",
13277
+ "text": "get(key: "
13278
+ },
13279
+ {
13280
+ "kind": "Content",
13281
+ "text": "string"
13282
+ },
13283
+ {
13284
+ "kind": "Content",
13285
+ "text": "): "
13286
+ },
13287
+ {
13288
+ "kind": "Reference",
13289
+ "text": "BasesControl",
13290
+ "canonicalReference": "obsidian-typings!BasesControl:interface"
13291
+ },
13292
+ {
13293
+ "kind": "Content",
13294
+ "text": ";"
13295
+ }
13296
+ ],
13297
+ "isOptional": false,
13298
+ "returnTypeTokenRange": {
13299
+ "startIndex": 3,
13300
+ "endIndex": 4
13301
+ },
13302
+ "releaseTag": "Public",
13303
+ "overloadIndex": 1,
13304
+ "parameters": [
13305
+ {
13306
+ "parameterName": "key",
13307
+ "parameterTypeTokenRange": {
13308
+ "startIndex": 1,
13309
+ "endIndex": 2
13310
+ },
13311
+ "isOptional": false
13312
+ }
13313
+ ],
13314
+ "name": "get"
13315
+ }
13316
+ ],
13317
+ "extendsTokenRanges": []
13318
+ },
13100
13319
  {
13101
13320
  "kind": "Interface",
13102
13321
  "canonicalReference": "obsidian-typings!BasesPlugin:interface",
@@ -105293,6 +105512,23 @@
105293
105512
  }
105294
105513
  ]
105295
105514
  },
105515
+ {
105516
+ "kind": "Interface",
105517
+ "canonicalReference": "obsidian-typings!RenderContext:interface",
105518
+ "docComment": "/**\n * Render context.\n *\n * @unofficial\n *\n * @public\n */\n",
105519
+ "excerptTokens": [
105520
+ {
105521
+ "kind": "Content",
105522
+ "text": "export interface RenderContext "
105523
+ }
105524
+ ],
105525
+ "fileUrlPath": "src/obsidian/internals/RenderContext.d.ts",
105526
+ "releaseTag": "Public",
105527
+ "name": "RenderContext",
105528
+ "preserveMemberOrder": false,
105529
+ "members": [],
105530
+ "extendsTokenRanges": []
105531
+ },
105296
105532
  {
105297
105533
  "kind": "Interface",
105298
105534
  "canonicalReference": "obsidian-typings!RendererSection:interface",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.42.0",
3
+ "version": "4.44.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",