obsidian-typings 4.82.0 → 4.84.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.
@@ -8,7 +8,7 @@ import type { Tree as LezerTree } from '@lezer/common';
8
8
  import type { App as App$1, BrowserWindow } from 'electron';
9
9
  import type { Mermaid } from 'mermaid';
10
10
  import type { FSWatcher } from 'node:fs';
11
- import type { App, BasesConfigFileFilter, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, 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, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, RenderContext, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, moment as moment$1 } from 'obsidian';
11
+ import type { App, BasesConfigFileFilter, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverParent, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, RenderContext, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, moment as moment$1 } from 'obsidian';
12
12
  import type { default as pdfjsLib } from 'pdfjs-dist';
13
13
  import type { Application, Container, Graphics, ICanvas, Sprite, Text as Text$1, TextStyle } from 'pixi.js';
14
14
  import type { default as Prism$1 } from 'prismjs';
@@ -7354,24 +7354,39 @@ export interface HotkeysSettingTab extends SettingTab {
7354
7354
  export interface HourFunction extends BasesFunction, HasExtract {
7355
7355
  }
7356
7356
  /**
7357
- * @todo Documentation incomplete.
7357
+ * Event triggered when a link is hovered.
7358
+ *
7358
7359
  * @public
7359
7360
  * @unofficial
7360
7361
  */
7361
7362
  export interface HoverLinkEvent {
7362
- /** @todo Documentation incomplete. */
7363
+ /**
7364
+ * The mouse event.
7365
+ */
7363
7366
  event: MouseEvent;
7364
- /** @todo Documentation incomplete. */
7365
- hoverParent: WorkspaceLeaf;
7366
- /** @todo Documentation incomplete. */
7367
+ /**
7368
+ * The hover parent.
7369
+ */
7370
+ hoverParent: HoverParent;
7371
+ /**
7372
+ * The link text.
7373
+ */
7367
7374
  linktext: string;
7368
- /** @todo Documentation incomplete. */
7375
+ /**
7376
+ * The source of the event.
7377
+ */
7369
7378
  source: "search" | "editor" | "preview" | "properties" | "graph" | "file-explorer" | "hover-link";
7370
- /** @todo Documentation incomplete. */
7379
+ /**
7380
+ * The source path.
7381
+ */
7371
7382
  sourcePath?: string;
7372
- /** @todo Documentation incomplete. */
7383
+ /**
7384
+ * The state of the event.
7385
+ */
7373
7386
  state?: HoverLinkEventState;
7374
- /** @todo Documentation incomplete. */
7387
+ /**
7388
+ * The target element.
7389
+ */
7375
7390
  targetEl: HTMLElement | null;
7376
7391
  }
7377
7392
  /**
@@ -10370,6 +10385,97 @@ export interface RecentFileTracker {
10370
10385
  */
10371
10386
  serialize(): string[];
10372
10387
  }
10388
+ /**
10389
+ * The handlers for the DOM events.
10390
+ *
10391
+ * @public
10392
+ * @unofficial
10393
+ */
10394
+ export interface RegisterDomEventsHandlers {
10395
+ /**
10396
+ * Handles the external link click event.
10397
+ *
10398
+ * @param evt - The mouse event.
10399
+ * @param targetEl - The target element.
10400
+ * @param linkText - The link text.
10401
+ */
10402
+ onExternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
10403
+ /**
10404
+ * Handles the external link right click event.
10405
+ *
10406
+ * @param evt - The mouse event.
10407
+ * @param targetEl - The target element.
10408
+ * @param linkText - The link text.
10409
+ */
10410
+ onExternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
10411
+ /**
10412
+ * Handles the internal link click event.
10413
+ *
10414
+ * @param evt - The mouse event.
10415
+ * @param targetEl - The target element.
10416
+ * @param linkText - The link text.
10417
+ */
10418
+ onInternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
10419
+ /**
10420
+ * Handles the internal link drag event.
10421
+ *
10422
+ * @param evt - The mouse event.
10423
+ * @param targetEl - The target element.
10424
+ * @param linkText - The link text.
10425
+ * @param title - The title.
10426
+ */
10427
+ onInternalLinkDrag(evt: MouseEvent, targetEl: HTMLElement, linkText: string, title?: string): unknown;
10428
+ /**
10429
+ * Handles the internal link mouseover event.
10430
+ *
10431
+ * @param evt - The mouse event.
10432
+ * @param targetEl - The target element.
10433
+ * @param linkText - The link text.
10434
+ */
10435
+ onInternalLinkMouseover(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
10436
+ /**
10437
+ * Handles the internal link right click event.
10438
+ *
10439
+ * @param evt - The mouse event.
10440
+ * @param targetEl - The target element.
10441
+ * @param linkText - The link text.
10442
+ */
10443
+ onInternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
10444
+ /**
10445
+ * Handles the tag click event.
10446
+ *
10447
+ * @param evt - The mouse event.
10448
+ * @param targetEl - The target element.
10449
+ * @param linkText - The link text.
10450
+ */
10451
+ onTagClick(evt: MouseEvent, targetEl: HTMLElement, tag: string): unknown;
10452
+ }
10453
+ /**
10454
+ * The RegisterDomEventsHandlers constructor.
10455
+ *
10456
+ * @public
10457
+ * @unofficial
10458
+ */
10459
+ export interface RegisterDomEventsHandlersConstructor extends ConstructorBase<[
10460
+ info: RegisterDomEventsHandlersInfo
10461
+ ], RegisterDomEventsHandlers> {
10462
+ }
10463
+ /**
10464
+ * Information about the register dom events handlers.
10465
+ *
10466
+ * @public
10467
+ * @unofficial
10468
+ */
10469
+ export interface RegisterDomEventsHandlersInfo extends HoverParent {
10470
+ /**
10471
+ * Obsidian app instance.
10472
+ */
10473
+ app: App;
10474
+ /**
10475
+ * The path to calculate relative links from.
10476
+ */
10477
+ path: string;
10478
+ }
10373
10479
  /**
10374
10480
  * @todo Documentation incomplete.
10375
10481
  * @public
@@ -16,7 +16,7 @@ import * as fs from 'node:fs';
16
16
  import type { FSWatcher, Stats } from 'node:fs';
17
17
  import * as fsPromises from 'node:fs/promises';
18
18
  import * as path from 'node:path';
19
- import type { App, BasesConfigFileFilter, 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, RenderContext, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, moment as moment$1, request, requestUrl } from 'obsidian';
19
+ import type { App, BasesConfigFileFilter, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverParent, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, Notice, ObsidianProtocolHandler, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, RenderContext, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, moment as moment$1, request, requestUrl } from 'obsidian';
20
20
  import type { default as pdfjsLib } from 'pdfjs-dist';
21
21
  import type { Application, Container, Graphics, ICanvas, Sprite, Text as Text$1, TextStyle, default as PIXI } from 'pixi.js';
22
22
  import type { default as Prism$1 } from 'prismjs';
@@ -15381,6 +15381,16 @@ declare module "obsidian" {
15381
15381
  * @since 0.12.11
15382
15382
  */
15383
15383
  function createCodeBlockPostProcessor__(language: string, handler: (source: string, el: HTMLElement, ctx: MarkdownPostProcessorContext) => Promise<any> | void): (el: HTMLElement, ctx: MarkdownPostProcessorContext) => void;
15384
+ /**
15385
+ * Registers the DOM events.
15386
+ *
15387
+ * @param el - The element to register the events on.
15388
+ * @param handlers - The handlers to register.
15389
+ * @param childElFn - The function to determine if `childEl` belongs to the `el`.
15390
+ *
15391
+ * @unofficial
15392
+ */
15393
+ function registerDomEvents(el: HTMLElement, handlers: RegisterDomEventsHandlers, childElFn?: (childEl: HTMLElement) => boolean): void;
15384
15394
  /**
15385
15395
  * Register a post processor.
15386
15396
  *
@@ -25765,24 +25775,39 @@ export interface HotkeysSettingTab extends SettingTab {
25765
25775
  export interface HourFunction extends BasesFunction, HasExtract {
25766
25776
  }
25767
25777
  /**
25768
- * @todo Documentation incomplete.
25778
+ * Event triggered when a link is hovered.
25779
+ *
25769
25780
  * @public
25770
25781
  * @unofficial
25771
25782
  */
25772
25783
  export interface HoverLinkEvent {
25773
- /** @todo Documentation incomplete. */
25784
+ /**
25785
+ * The mouse event.
25786
+ */
25774
25787
  event: MouseEvent;
25775
- /** @todo Documentation incomplete. */
25776
- hoverParent: WorkspaceLeaf;
25777
- /** @todo Documentation incomplete. */
25788
+ /**
25789
+ * The hover parent.
25790
+ */
25791
+ hoverParent: HoverParent;
25792
+ /**
25793
+ * The link text.
25794
+ */
25778
25795
  linktext: string;
25779
- /** @todo Documentation incomplete. */
25796
+ /**
25797
+ * The source of the event.
25798
+ */
25780
25799
  source: "search" | "editor" | "preview" | "properties" | "graph" | "file-explorer" | "hover-link";
25781
- /** @todo Documentation incomplete. */
25800
+ /**
25801
+ * The source path.
25802
+ */
25782
25803
  sourcePath?: string;
25783
- /** @todo Documentation incomplete. */
25804
+ /**
25805
+ * The state of the event.
25806
+ */
25784
25807
  state?: HoverLinkEventState;
25785
- /** @todo Documentation incomplete. */
25808
+ /**
25809
+ * The target element.
25810
+ */
25786
25811
  targetEl: HTMLElement | null;
25787
25812
  }
25788
25813
  /**
@@ -28781,6 +28806,97 @@ export interface RecentFileTracker {
28781
28806
  */
28782
28807
  serialize(): string[];
28783
28808
  }
28809
+ /**
28810
+ * The handlers for the DOM events.
28811
+ *
28812
+ * @public
28813
+ * @unofficial
28814
+ */
28815
+ export interface RegisterDomEventsHandlers {
28816
+ /**
28817
+ * Handles the external link click event.
28818
+ *
28819
+ * @param evt - The mouse event.
28820
+ * @param targetEl - The target element.
28821
+ * @param linkText - The link text.
28822
+ */
28823
+ onExternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
28824
+ /**
28825
+ * Handles the external link right click event.
28826
+ *
28827
+ * @param evt - The mouse event.
28828
+ * @param targetEl - The target element.
28829
+ * @param linkText - The link text.
28830
+ */
28831
+ onExternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
28832
+ /**
28833
+ * Handles the internal link click event.
28834
+ *
28835
+ * @param evt - The mouse event.
28836
+ * @param targetEl - The target element.
28837
+ * @param linkText - The link text.
28838
+ */
28839
+ onInternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
28840
+ /**
28841
+ * Handles the internal link drag event.
28842
+ *
28843
+ * @param evt - The mouse event.
28844
+ * @param targetEl - The target element.
28845
+ * @param linkText - The link text.
28846
+ * @param title - The title.
28847
+ */
28848
+ onInternalLinkDrag(evt: MouseEvent, targetEl: HTMLElement, linkText: string, title?: string): unknown;
28849
+ /**
28850
+ * Handles the internal link mouseover event.
28851
+ *
28852
+ * @param evt - The mouse event.
28853
+ * @param targetEl - The target element.
28854
+ * @param linkText - The link text.
28855
+ */
28856
+ onInternalLinkMouseover(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
28857
+ /**
28858
+ * Handles the internal link right click event.
28859
+ *
28860
+ * @param evt - The mouse event.
28861
+ * @param targetEl - The target element.
28862
+ * @param linkText - The link text.
28863
+ */
28864
+ onInternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
28865
+ /**
28866
+ * Handles the tag click event.
28867
+ *
28868
+ * @param evt - The mouse event.
28869
+ * @param targetEl - The target element.
28870
+ * @param linkText - The link text.
28871
+ */
28872
+ onTagClick(evt: MouseEvent, targetEl: HTMLElement, tag: string): unknown;
28873
+ }
28874
+ /**
28875
+ * The RegisterDomEventsHandlers constructor.
28876
+ *
28877
+ * @public
28878
+ * @unofficial
28879
+ */
28880
+ export interface RegisterDomEventsHandlersConstructor extends ConstructorBase<[
28881
+ info: RegisterDomEventsHandlersInfo
28882
+ ], RegisterDomEventsHandlers> {
28883
+ }
28884
+ /**
28885
+ * Information about the register dom events handlers.
28886
+ *
28887
+ * @public
28888
+ * @unofficial
28889
+ */
28890
+ export interface RegisterDomEventsHandlersInfo extends HoverParent {
28891
+ /**
28892
+ * Obsidian app instance.
28893
+ */
28894
+ app: App;
28895
+ /**
28896
+ * The path to calculate relative links from.
28897
+ */
28898
+ path: string;
28899
+ }
28784
28900
  /**
28785
28901
  * @todo Documentation incomplete.
28786
28902
  * @public
@@ -75921,7 +75921,7 @@
75921
75921
  {
75922
75922
  "kind": "Interface",
75923
75923
  "canonicalReference": "obsidian-typings!HoverLinkEvent:interface",
75924
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n *\n * @unofficial\n *\n * @public\n */\n",
75924
+ "docComment": "/**\n * Event triggered when a link is hovered.\n *\n * @unofficial\n *\n * @public\n */\n",
75925
75925
  "excerptTokens": [
75926
75926
  {
75927
75927
  "kind": "Content",
@@ -75936,7 +75936,7 @@
75936
75936
  {
75937
75937
  "kind": "PropertySignature",
75938
75938
  "canonicalReference": "obsidian-typings!HoverLinkEvent#event:member",
75939
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
75939
+ "docComment": "/**\n * The mouse event.\n */\n",
75940
75940
  "excerptTokens": [
75941
75941
  {
75942
75942
  "kind": "Content",
@@ -75964,7 +75964,7 @@
75964
75964
  {
75965
75965
  "kind": "PropertySignature",
75966
75966
  "canonicalReference": "obsidian-typings!HoverLinkEvent#hoverParent:member",
75967
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
75967
+ "docComment": "/**\n * The hover parent.\n */\n",
75968
75968
  "excerptTokens": [
75969
75969
  {
75970
75970
  "kind": "Content",
@@ -75972,8 +75972,8 @@
75972
75972
  },
75973
75973
  {
75974
75974
  "kind": "Reference",
75975
- "text": "WorkspaceLeaf",
75976
- "canonicalReference": "obsidian!WorkspaceLeaf:class"
75975
+ "text": "HoverParent",
75976
+ "canonicalReference": "obsidian!HoverParent:interface"
75977
75977
  },
75978
75978
  {
75979
75979
  "kind": "Content",
@@ -75992,7 +75992,7 @@
75992
75992
  {
75993
75993
  "kind": "PropertySignature",
75994
75994
  "canonicalReference": "obsidian-typings!HoverLinkEvent#linktext:member",
75995
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
75995
+ "docComment": "/**\n * The link text.\n */\n",
75996
75996
  "excerptTokens": [
75997
75997
  {
75998
75998
  "kind": "Content",
@@ -76019,7 +76019,7 @@
76019
76019
  {
76020
76020
  "kind": "PropertySignature",
76021
76021
  "canonicalReference": "obsidian-typings!HoverLinkEvent#source:member",
76022
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76022
+ "docComment": "/**\n * The source of the event.\n */\n",
76023
76023
  "excerptTokens": [
76024
76024
  {
76025
76025
  "kind": "Content",
@@ -76046,7 +76046,7 @@
76046
76046
  {
76047
76047
  "kind": "PropertySignature",
76048
76048
  "canonicalReference": "obsidian-typings!HoverLinkEvent#sourcePath:member",
76049
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76049
+ "docComment": "/**\n * The source path.\n */\n",
76050
76050
  "excerptTokens": [
76051
76051
  {
76052
76052
  "kind": "Content",
@@ -76073,7 +76073,7 @@
76073
76073
  {
76074
76074
  "kind": "PropertySignature",
76075
76075
  "canonicalReference": "obsidian-typings!HoverLinkEvent#state:member",
76076
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76076
+ "docComment": "/**\n * The state of the event.\n */\n",
76077
76077
  "excerptTokens": [
76078
76078
  {
76079
76079
  "kind": "Content",
@@ -76101,7 +76101,7 @@
76101
76101
  {
76102
76102
  "kind": "PropertySignature",
76103
76103
  "canonicalReference": "obsidian-typings!HoverLinkEvent#targetEl:member",
76104
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76104
+ "docComment": "/**\n * The target element.\n */\n",
76105
76105
  "excerptTokens": [
76106
76106
  {
76107
76107
  "kind": "Content",
@@ -106145,6 +106145,733 @@
106145
106145
  ],
106146
106146
  "extendsTokenRanges": []
106147
106147
  },
106148
+ {
106149
+ "kind": "Interface",
106150
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers:interface",
106151
+ "docComment": "/**\n * The handlers for the DOM events.\n *\n * @unofficial\n *\n * @public\n */\n",
106152
+ "excerptTokens": [
106153
+ {
106154
+ "kind": "Content",
106155
+ "text": "export interface RegisterDomEventsHandlers "
106156
+ }
106157
+ ],
106158
+ "fileUrlPath": "src/obsidian/internals/RegisterDomEventsHandlers.d.ts",
106159
+ "releaseTag": "Public",
106160
+ "name": "RegisterDomEventsHandlers",
106161
+ "preserveMemberOrder": false,
106162
+ "members": [
106163
+ {
106164
+ "kind": "MethodSignature",
106165
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onExternalLinkClick:member(1)",
106166
+ "docComment": "/**\n * Handles the external link click event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106167
+ "excerptTokens": [
106168
+ {
106169
+ "kind": "Content",
106170
+ "text": "onExternalLinkClick(evt: "
106171
+ },
106172
+ {
106173
+ "kind": "Reference",
106174
+ "text": "MouseEvent",
106175
+ "canonicalReference": "!MouseEvent:interface"
106176
+ },
106177
+ {
106178
+ "kind": "Content",
106179
+ "text": ", targetEl: "
106180
+ },
106181
+ {
106182
+ "kind": "Reference",
106183
+ "text": "HTMLElement",
106184
+ "canonicalReference": "!HTMLElement:interface"
106185
+ },
106186
+ {
106187
+ "kind": "Content",
106188
+ "text": ", linkText: "
106189
+ },
106190
+ {
106191
+ "kind": "Content",
106192
+ "text": "string"
106193
+ },
106194
+ {
106195
+ "kind": "Content",
106196
+ "text": "): "
106197
+ },
106198
+ {
106199
+ "kind": "Content",
106200
+ "text": "unknown"
106201
+ },
106202
+ {
106203
+ "kind": "Content",
106204
+ "text": ";"
106205
+ }
106206
+ ],
106207
+ "isOptional": false,
106208
+ "returnTypeTokenRange": {
106209
+ "startIndex": 7,
106210
+ "endIndex": 8
106211
+ },
106212
+ "releaseTag": "Public",
106213
+ "overloadIndex": 1,
106214
+ "parameters": [
106215
+ {
106216
+ "parameterName": "evt",
106217
+ "parameterTypeTokenRange": {
106218
+ "startIndex": 1,
106219
+ "endIndex": 2
106220
+ },
106221
+ "isOptional": false
106222
+ },
106223
+ {
106224
+ "parameterName": "targetEl",
106225
+ "parameterTypeTokenRange": {
106226
+ "startIndex": 3,
106227
+ "endIndex": 4
106228
+ },
106229
+ "isOptional": false
106230
+ },
106231
+ {
106232
+ "parameterName": "linkText",
106233
+ "parameterTypeTokenRange": {
106234
+ "startIndex": 5,
106235
+ "endIndex": 6
106236
+ },
106237
+ "isOptional": false
106238
+ }
106239
+ ],
106240
+ "name": "onExternalLinkClick"
106241
+ },
106242
+ {
106243
+ "kind": "MethodSignature",
106244
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onExternalLinkRightClick:member(1)",
106245
+ "docComment": "/**\n * Handles the external link right click event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106246
+ "excerptTokens": [
106247
+ {
106248
+ "kind": "Content",
106249
+ "text": "onExternalLinkRightClick(evt: "
106250
+ },
106251
+ {
106252
+ "kind": "Reference",
106253
+ "text": "MouseEvent",
106254
+ "canonicalReference": "!MouseEvent:interface"
106255
+ },
106256
+ {
106257
+ "kind": "Content",
106258
+ "text": ", targetEl: "
106259
+ },
106260
+ {
106261
+ "kind": "Reference",
106262
+ "text": "HTMLElement",
106263
+ "canonicalReference": "!HTMLElement:interface"
106264
+ },
106265
+ {
106266
+ "kind": "Content",
106267
+ "text": ", linkText: "
106268
+ },
106269
+ {
106270
+ "kind": "Content",
106271
+ "text": "string"
106272
+ },
106273
+ {
106274
+ "kind": "Content",
106275
+ "text": "): "
106276
+ },
106277
+ {
106278
+ "kind": "Content",
106279
+ "text": "unknown"
106280
+ },
106281
+ {
106282
+ "kind": "Content",
106283
+ "text": ";"
106284
+ }
106285
+ ],
106286
+ "isOptional": false,
106287
+ "returnTypeTokenRange": {
106288
+ "startIndex": 7,
106289
+ "endIndex": 8
106290
+ },
106291
+ "releaseTag": "Public",
106292
+ "overloadIndex": 1,
106293
+ "parameters": [
106294
+ {
106295
+ "parameterName": "evt",
106296
+ "parameterTypeTokenRange": {
106297
+ "startIndex": 1,
106298
+ "endIndex": 2
106299
+ },
106300
+ "isOptional": false
106301
+ },
106302
+ {
106303
+ "parameterName": "targetEl",
106304
+ "parameterTypeTokenRange": {
106305
+ "startIndex": 3,
106306
+ "endIndex": 4
106307
+ },
106308
+ "isOptional": false
106309
+ },
106310
+ {
106311
+ "parameterName": "linkText",
106312
+ "parameterTypeTokenRange": {
106313
+ "startIndex": 5,
106314
+ "endIndex": 6
106315
+ },
106316
+ "isOptional": false
106317
+ }
106318
+ ],
106319
+ "name": "onExternalLinkRightClick"
106320
+ },
106321
+ {
106322
+ "kind": "MethodSignature",
106323
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onInternalLinkClick:member(1)",
106324
+ "docComment": "/**\n * Handles the internal link click event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106325
+ "excerptTokens": [
106326
+ {
106327
+ "kind": "Content",
106328
+ "text": "onInternalLinkClick(evt: "
106329
+ },
106330
+ {
106331
+ "kind": "Reference",
106332
+ "text": "MouseEvent",
106333
+ "canonicalReference": "!MouseEvent:interface"
106334
+ },
106335
+ {
106336
+ "kind": "Content",
106337
+ "text": ", targetEl: "
106338
+ },
106339
+ {
106340
+ "kind": "Reference",
106341
+ "text": "HTMLElement",
106342
+ "canonicalReference": "!HTMLElement:interface"
106343
+ },
106344
+ {
106345
+ "kind": "Content",
106346
+ "text": ", linkText: "
106347
+ },
106348
+ {
106349
+ "kind": "Content",
106350
+ "text": "string"
106351
+ },
106352
+ {
106353
+ "kind": "Content",
106354
+ "text": "): "
106355
+ },
106356
+ {
106357
+ "kind": "Content",
106358
+ "text": "unknown"
106359
+ },
106360
+ {
106361
+ "kind": "Content",
106362
+ "text": ";"
106363
+ }
106364
+ ],
106365
+ "isOptional": false,
106366
+ "returnTypeTokenRange": {
106367
+ "startIndex": 7,
106368
+ "endIndex": 8
106369
+ },
106370
+ "releaseTag": "Public",
106371
+ "overloadIndex": 1,
106372
+ "parameters": [
106373
+ {
106374
+ "parameterName": "evt",
106375
+ "parameterTypeTokenRange": {
106376
+ "startIndex": 1,
106377
+ "endIndex": 2
106378
+ },
106379
+ "isOptional": false
106380
+ },
106381
+ {
106382
+ "parameterName": "targetEl",
106383
+ "parameterTypeTokenRange": {
106384
+ "startIndex": 3,
106385
+ "endIndex": 4
106386
+ },
106387
+ "isOptional": false
106388
+ },
106389
+ {
106390
+ "parameterName": "linkText",
106391
+ "parameterTypeTokenRange": {
106392
+ "startIndex": 5,
106393
+ "endIndex": 6
106394
+ },
106395
+ "isOptional": false
106396
+ }
106397
+ ],
106398
+ "name": "onInternalLinkClick"
106399
+ },
106400
+ {
106401
+ "kind": "MethodSignature",
106402
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onInternalLinkDrag:member(1)",
106403
+ "docComment": "/**\n * Handles the internal link drag event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n *\n * @param title - The title.\n */\n",
106404
+ "excerptTokens": [
106405
+ {
106406
+ "kind": "Content",
106407
+ "text": "onInternalLinkDrag(evt: "
106408
+ },
106409
+ {
106410
+ "kind": "Reference",
106411
+ "text": "MouseEvent",
106412
+ "canonicalReference": "!MouseEvent:interface"
106413
+ },
106414
+ {
106415
+ "kind": "Content",
106416
+ "text": ", targetEl: "
106417
+ },
106418
+ {
106419
+ "kind": "Reference",
106420
+ "text": "HTMLElement",
106421
+ "canonicalReference": "!HTMLElement:interface"
106422
+ },
106423
+ {
106424
+ "kind": "Content",
106425
+ "text": ", linkText: "
106426
+ },
106427
+ {
106428
+ "kind": "Content",
106429
+ "text": "string"
106430
+ },
106431
+ {
106432
+ "kind": "Content",
106433
+ "text": ", title?: "
106434
+ },
106435
+ {
106436
+ "kind": "Content",
106437
+ "text": "string"
106438
+ },
106439
+ {
106440
+ "kind": "Content",
106441
+ "text": "): "
106442
+ },
106443
+ {
106444
+ "kind": "Content",
106445
+ "text": "unknown"
106446
+ },
106447
+ {
106448
+ "kind": "Content",
106449
+ "text": ";"
106450
+ }
106451
+ ],
106452
+ "isOptional": false,
106453
+ "returnTypeTokenRange": {
106454
+ "startIndex": 9,
106455
+ "endIndex": 10
106456
+ },
106457
+ "releaseTag": "Public",
106458
+ "overloadIndex": 1,
106459
+ "parameters": [
106460
+ {
106461
+ "parameterName": "evt",
106462
+ "parameterTypeTokenRange": {
106463
+ "startIndex": 1,
106464
+ "endIndex": 2
106465
+ },
106466
+ "isOptional": false
106467
+ },
106468
+ {
106469
+ "parameterName": "targetEl",
106470
+ "parameterTypeTokenRange": {
106471
+ "startIndex": 3,
106472
+ "endIndex": 4
106473
+ },
106474
+ "isOptional": false
106475
+ },
106476
+ {
106477
+ "parameterName": "linkText",
106478
+ "parameterTypeTokenRange": {
106479
+ "startIndex": 5,
106480
+ "endIndex": 6
106481
+ },
106482
+ "isOptional": false
106483
+ },
106484
+ {
106485
+ "parameterName": "title",
106486
+ "parameterTypeTokenRange": {
106487
+ "startIndex": 7,
106488
+ "endIndex": 8
106489
+ },
106490
+ "isOptional": true
106491
+ }
106492
+ ],
106493
+ "name": "onInternalLinkDrag"
106494
+ },
106495
+ {
106496
+ "kind": "MethodSignature",
106497
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onInternalLinkMouseover:member(1)",
106498
+ "docComment": "/**\n * Handles the internal link mouseover event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106499
+ "excerptTokens": [
106500
+ {
106501
+ "kind": "Content",
106502
+ "text": "onInternalLinkMouseover(evt: "
106503
+ },
106504
+ {
106505
+ "kind": "Reference",
106506
+ "text": "MouseEvent",
106507
+ "canonicalReference": "!MouseEvent:interface"
106508
+ },
106509
+ {
106510
+ "kind": "Content",
106511
+ "text": ", targetEl: "
106512
+ },
106513
+ {
106514
+ "kind": "Reference",
106515
+ "text": "HTMLElement",
106516
+ "canonicalReference": "!HTMLElement:interface"
106517
+ },
106518
+ {
106519
+ "kind": "Content",
106520
+ "text": ", linkText: "
106521
+ },
106522
+ {
106523
+ "kind": "Content",
106524
+ "text": "string"
106525
+ },
106526
+ {
106527
+ "kind": "Content",
106528
+ "text": "): "
106529
+ },
106530
+ {
106531
+ "kind": "Content",
106532
+ "text": "unknown"
106533
+ },
106534
+ {
106535
+ "kind": "Content",
106536
+ "text": ";"
106537
+ }
106538
+ ],
106539
+ "isOptional": false,
106540
+ "returnTypeTokenRange": {
106541
+ "startIndex": 7,
106542
+ "endIndex": 8
106543
+ },
106544
+ "releaseTag": "Public",
106545
+ "overloadIndex": 1,
106546
+ "parameters": [
106547
+ {
106548
+ "parameterName": "evt",
106549
+ "parameterTypeTokenRange": {
106550
+ "startIndex": 1,
106551
+ "endIndex": 2
106552
+ },
106553
+ "isOptional": false
106554
+ },
106555
+ {
106556
+ "parameterName": "targetEl",
106557
+ "parameterTypeTokenRange": {
106558
+ "startIndex": 3,
106559
+ "endIndex": 4
106560
+ },
106561
+ "isOptional": false
106562
+ },
106563
+ {
106564
+ "parameterName": "linkText",
106565
+ "parameterTypeTokenRange": {
106566
+ "startIndex": 5,
106567
+ "endIndex": 6
106568
+ },
106569
+ "isOptional": false
106570
+ }
106571
+ ],
106572
+ "name": "onInternalLinkMouseover"
106573
+ },
106574
+ {
106575
+ "kind": "MethodSignature",
106576
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onInternalLinkRightClick:member(1)",
106577
+ "docComment": "/**\n * Handles the internal link right click event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106578
+ "excerptTokens": [
106579
+ {
106580
+ "kind": "Content",
106581
+ "text": "onInternalLinkRightClick(evt: "
106582
+ },
106583
+ {
106584
+ "kind": "Reference",
106585
+ "text": "MouseEvent",
106586
+ "canonicalReference": "!MouseEvent:interface"
106587
+ },
106588
+ {
106589
+ "kind": "Content",
106590
+ "text": ", targetEl: "
106591
+ },
106592
+ {
106593
+ "kind": "Reference",
106594
+ "text": "HTMLElement",
106595
+ "canonicalReference": "!HTMLElement:interface"
106596
+ },
106597
+ {
106598
+ "kind": "Content",
106599
+ "text": ", linkText: "
106600
+ },
106601
+ {
106602
+ "kind": "Content",
106603
+ "text": "string"
106604
+ },
106605
+ {
106606
+ "kind": "Content",
106607
+ "text": "): "
106608
+ },
106609
+ {
106610
+ "kind": "Content",
106611
+ "text": "unknown"
106612
+ },
106613
+ {
106614
+ "kind": "Content",
106615
+ "text": ";"
106616
+ }
106617
+ ],
106618
+ "isOptional": false,
106619
+ "returnTypeTokenRange": {
106620
+ "startIndex": 7,
106621
+ "endIndex": 8
106622
+ },
106623
+ "releaseTag": "Public",
106624
+ "overloadIndex": 1,
106625
+ "parameters": [
106626
+ {
106627
+ "parameterName": "evt",
106628
+ "parameterTypeTokenRange": {
106629
+ "startIndex": 1,
106630
+ "endIndex": 2
106631
+ },
106632
+ "isOptional": false
106633
+ },
106634
+ {
106635
+ "parameterName": "targetEl",
106636
+ "parameterTypeTokenRange": {
106637
+ "startIndex": 3,
106638
+ "endIndex": 4
106639
+ },
106640
+ "isOptional": false
106641
+ },
106642
+ {
106643
+ "parameterName": "linkText",
106644
+ "parameterTypeTokenRange": {
106645
+ "startIndex": 5,
106646
+ "endIndex": 6
106647
+ },
106648
+ "isOptional": false
106649
+ }
106650
+ ],
106651
+ "name": "onInternalLinkRightClick"
106652
+ },
106653
+ {
106654
+ "kind": "MethodSignature",
106655
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers#onTagClick:member(1)",
106656
+ "docComment": "/**\n * Handles the tag click event.\n *\n * @param evt - The mouse event.\n *\n * @param targetEl - The target element.\n *\n * @param linkText - The link text.\n */\n",
106657
+ "excerptTokens": [
106658
+ {
106659
+ "kind": "Content",
106660
+ "text": "onTagClick(evt: "
106661
+ },
106662
+ {
106663
+ "kind": "Reference",
106664
+ "text": "MouseEvent",
106665
+ "canonicalReference": "!MouseEvent:interface"
106666
+ },
106667
+ {
106668
+ "kind": "Content",
106669
+ "text": ", targetEl: "
106670
+ },
106671
+ {
106672
+ "kind": "Reference",
106673
+ "text": "HTMLElement",
106674
+ "canonicalReference": "!HTMLElement:interface"
106675
+ },
106676
+ {
106677
+ "kind": "Content",
106678
+ "text": ", tag: "
106679
+ },
106680
+ {
106681
+ "kind": "Content",
106682
+ "text": "string"
106683
+ },
106684
+ {
106685
+ "kind": "Content",
106686
+ "text": "): "
106687
+ },
106688
+ {
106689
+ "kind": "Content",
106690
+ "text": "unknown"
106691
+ },
106692
+ {
106693
+ "kind": "Content",
106694
+ "text": ";"
106695
+ }
106696
+ ],
106697
+ "isOptional": false,
106698
+ "returnTypeTokenRange": {
106699
+ "startIndex": 7,
106700
+ "endIndex": 8
106701
+ },
106702
+ "releaseTag": "Public",
106703
+ "overloadIndex": 1,
106704
+ "parameters": [
106705
+ {
106706
+ "parameterName": "evt",
106707
+ "parameterTypeTokenRange": {
106708
+ "startIndex": 1,
106709
+ "endIndex": 2
106710
+ },
106711
+ "isOptional": false
106712
+ },
106713
+ {
106714
+ "parameterName": "targetEl",
106715
+ "parameterTypeTokenRange": {
106716
+ "startIndex": 3,
106717
+ "endIndex": 4
106718
+ },
106719
+ "isOptional": false
106720
+ },
106721
+ {
106722
+ "parameterName": "tag",
106723
+ "parameterTypeTokenRange": {
106724
+ "startIndex": 5,
106725
+ "endIndex": 6
106726
+ },
106727
+ "isOptional": false
106728
+ }
106729
+ ],
106730
+ "name": "onTagClick"
106731
+ }
106732
+ ],
106733
+ "extendsTokenRanges": []
106734
+ },
106735
+ {
106736
+ "kind": "Interface",
106737
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlersConstructor:interface",
106738
+ "docComment": "/**\n * The RegisterDomEventsHandlers constructor.\n *\n * @unofficial\n *\n * @public\n */\n",
106739
+ "excerptTokens": [
106740
+ {
106741
+ "kind": "Content",
106742
+ "text": "export interface RegisterDomEventsHandlersConstructor\n extends "
106743
+ },
106744
+ {
106745
+ "kind": "Reference",
106746
+ "text": "ConstructorBase",
106747
+ "canonicalReference": "obsidian-typings!ConstructorBase:interface"
106748
+ },
106749
+ {
106750
+ "kind": "Content",
106751
+ "text": "<[info: "
106752
+ },
106753
+ {
106754
+ "kind": "Reference",
106755
+ "text": "RegisterDomEventsHandlersInfo",
106756
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlersInfo:interface"
106757
+ },
106758
+ {
106759
+ "kind": "Content",
106760
+ "text": "], "
106761
+ },
106762
+ {
106763
+ "kind": "Reference",
106764
+ "text": "RegisterDomEventsHandlers",
106765
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlers:interface"
106766
+ },
106767
+ {
106768
+ "kind": "Content",
106769
+ "text": ">"
106770
+ },
106771
+ {
106772
+ "kind": "Content",
106773
+ "text": "\n"
106774
+ }
106775
+ ],
106776
+ "fileUrlPath": "src/obsidian/internals/Constructors/RegisterDomEventsHandlersConstructor.d.ts",
106777
+ "releaseTag": "Public",
106778
+ "name": "RegisterDomEventsHandlersConstructor",
106779
+ "preserveMemberOrder": false,
106780
+ "members": [],
106781
+ "extendsTokenRanges": [
106782
+ {
106783
+ "startIndex": 1,
106784
+ "endIndex": 7
106785
+ }
106786
+ ]
106787
+ },
106788
+ {
106789
+ "kind": "Interface",
106790
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlersInfo:interface",
106791
+ "docComment": "/**\n * Information about the register dom events handlers.\n *\n * @unofficial\n *\n * @public\n */\n",
106792
+ "excerptTokens": [
106793
+ {
106794
+ "kind": "Content",
106795
+ "text": "export interface RegisterDomEventsHandlersInfo extends "
106796
+ },
106797
+ {
106798
+ "kind": "Reference",
106799
+ "text": "HoverParent",
106800
+ "canonicalReference": "obsidian!HoverParent:interface"
106801
+ },
106802
+ {
106803
+ "kind": "Content",
106804
+ "text": " "
106805
+ }
106806
+ ],
106807
+ "fileUrlPath": "src/obsidian/internals/RegisterDomEventsHandlersInfo.d.ts",
106808
+ "releaseTag": "Public",
106809
+ "name": "RegisterDomEventsHandlersInfo",
106810
+ "preserveMemberOrder": false,
106811
+ "members": [
106812
+ {
106813
+ "kind": "PropertySignature",
106814
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlersInfo#app:member",
106815
+ "docComment": "/**\n * Obsidian app instance.\n */\n",
106816
+ "excerptTokens": [
106817
+ {
106818
+ "kind": "Content",
106819
+ "text": "app: "
106820
+ },
106821
+ {
106822
+ "kind": "Reference",
106823
+ "text": "App",
106824
+ "canonicalReference": "!Electron.CrossProcessExports.App:type"
106825
+ },
106826
+ {
106827
+ "kind": "Content",
106828
+ "text": ";"
106829
+ }
106830
+ ],
106831
+ "isReadonly": false,
106832
+ "isOptional": false,
106833
+ "releaseTag": "Public",
106834
+ "name": "app",
106835
+ "propertyTypeTokenRange": {
106836
+ "startIndex": 1,
106837
+ "endIndex": 2
106838
+ }
106839
+ },
106840
+ {
106841
+ "kind": "PropertySignature",
106842
+ "canonicalReference": "obsidian-typings!RegisterDomEventsHandlersInfo#path:member",
106843
+ "docComment": "/**\n * The path to calculate relative links from.\n */\n",
106844
+ "excerptTokens": [
106845
+ {
106846
+ "kind": "Content",
106847
+ "text": "path: "
106848
+ },
106849
+ {
106850
+ "kind": "Content",
106851
+ "text": "string"
106852
+ },
106853
+ {
106854
+ "kind": "Content",
106855
+ "text": ";"
106856
+ }
106857
+ ],
106858
+ "isReadonly": false,
106859
+ "isOptional": false,
106860
+ "releaseTag": "Public",
106861
+ "name": "path",
106862
+ "propertyTypeTokenRange": {
106863
+ "startIndex": 1,
106864
+ "endIndex": 2
106865
+ }
106866
+ }
106867
+ ],
106868
+ "extendsTokenRanges": [
106869
+ {
106870
+ "startIndex": 1,
106871
+ "endIndex": 2
106872
+ }
106873
+ ]
106874
+ },
106148
106875
  {
106149
106876
  "kind": "Interface",
106150
106877
  "canonicalReference": "obsidian-typings!ReleaseNotesView:interface",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.82.0",
3
+ "version": "4.84.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",