obsidian-typings 5.5.0 → 5.6.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/dist/cjs/implementations.d.cts +88 -84
- package/dist/cjs/types.d.cts +1628 -870
- package/dist/obsidian-typings.api.json +16 -16
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import type { FSWatcher } from 'node:fs';
|
|
|
12
12
|
import * as fsPromises from 'node:fs/promises';
|
|
13
13
|
import * as path from 'node:path';
|
|
14
14
|
import type { AbstractTextComponent, App, BaseComponent, BasesConfigFileFilter, BasesEntry, BasesEntryGroup, BasesQueryResult, BasesViewConfig, BlockCache, BooleanValue, ButtonComponent, CacheItem, CachedMetadata, CapacitorAdapter, CliFlag, CloseableComponent, ColorComponent, Command, Component, DateValue, Debouncer, DropdownComponent, DurationValue, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, ExtraButtonComponent, FileManager, FileStats, FileSystemAdapter, FileValue, FileView, FrontmatterLinkCache, FuzzySuggestModal, HTMLValue, HoverLinkSource, HoverParent, HoverPopover, IconName, IconValue, ImageValue, Instruction, ItemView, Keymap, KeymapInfo, LinkCache, LinkValue, ListValue, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewRenderer, MarkdownPreviewView, MarkdownRenderChild, MarkdownRenderer, MarkdownView, Menu, MenuItem, MenuSeparator, MetadataCache, Modal, MomentFormatComponent, NotNullValue, Notice, NullValue, NumberValue, ObjectValue, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, Point, PopoverSuggest, ProgressBarComponent, QueryController, Reference, ReferenceCache, RegExpValue, RelativeDateValue, RenderContext, Scope, SearchComponent, SearchResult, SecretComponent, SecretStorage, Setting, SettingGroup, SettingTab, SliderComponent, SplitDirection, StringValue, TAbstractFile, TFile, TFolder, TagValue, Tasks, TextAreaComponent, TextComponent, TextFileView, ToggleComponent, UrlValue, Value, ValueComponent, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceContainer, WorkspaceFloating, WorkspaceItem, WorkspaceLeaf, WorkspaceMobileDrawer, WorkspaceParent, WorkspaceRibbon, WorkspaceRoot, WorkspaceSidedock, WorkspaceSplit, WorkspaceTabs, WorkspaceWindow, moment as moment$1 } from 'obsidian';
|
|
15
|
-
import type { default as pdfjsLib } from 'pdfjs-dist';
|
|
15
|
+
import type { default as pdfjsLib$1 } from 'pdfjs-dist';
|
|
16
16
|
import type { Application, Container, Graphics, ICanvas, Sprite, Text as Text$1, TextStyle } from 'pixi.js';
|
|
17
17
|
import type { default as Prism$1 } from 'prismjs';
|
|
18
18
|
|
|
@@ -1689,7 +1689,7 @@ export declare function loadMermaid(): Promise<Mermaid>;
|
|
|
1689
1689
|
* @public
|
|
1690
1690
|
* @unofficial
|
|
1691
1691
|
*/
|
|
1692
|
-
export declare function loadPdfJs(): Promise<typeof pdfjsLib>;
|
|
1692
|
+
export declare function loadPdfJs(): Promise<typeof pdfjsLib$1>;
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Load Prism.js and return a promise to the global Prism object.
|
|
1695
1695
|
* Can also use `window.Prism` after this promise resolves to get the same reference.
|
|
@@ -13058,88 +13058,6 @@ export interface MatchingBracket {
|
|
|
13058
13058
|
/** Position of the matching bracket, if found. */
|
|
13059
13059
|
to?: EditorPosition;
|
|
13060
13060
|
}
|
|
13061
|
-
/**
|
|
13062
|
-
* MathJax library interface for rendering LaTeX math expressions.
|
|
13063
|
-
* @public
|
|
13064
|
-
* @unofficial
|
|
13065
|
-
*/
|
|
13066
|
-
export interface MathJax {
|
|
13067
|
-
/** MathJax configuration object. */
|
|
13068
|
-
config: unknown;
|
|
13069
|
-
/** MathJax component loader. */
|
|
13070
|
-
loader: unknown;
|
|
13071
|
-
/** MathJax runtime options. */
|
|
13072
|
-
options: unknown;
|
|
13073
|
-
/** MathJax library version string. */
|
|
13074
|
-
version: string;
|
|
13075
|
-
/**
|
|
13076
|
-
* Get the CHTML stylesheet element for MathJax-rendered content.
|
|
13077
|
-
*
|
|
13078
|
-
* @returns The stylesheet element.
|
|
13079
|
-
*/
|
|
13080
|
-
chtmlStylesheet(): HTMLStyleElement;
|
|
13081
|
-
/**
|
|
13082
|
-
* Get font metrics for a given DOM node, used for scaling math output.
|
|
13083
|
-
*
|
|
13084
|
-
* @param node - DOM node to get metrics for.
|
|
13085
|
-
* @param display - Whether display mode is enabled.
|
|
13086
|
-
* @returns Font metrics for the node.
|
|
13087
|
-
*/
|
|
13088
|
-
getMetricsFor(node: HTMLElement, display?: boolean): ExtendedMetrics;
|
|
13089
|
-
/**
|
|
13090
|
-
* Convert a TeX string to a CHTML (HTML) element synchronously.
|
|
13091
|
-
*
|
|
13092
|
-
* @param math - TeX string to convert.
|
|
13093
|
-
* @param options - Optional rendering options.
|
|
13094
|
-
* @returns The rendered HTML element.
|
|
13095
|
-
*/
|
|
13096
|
-
tex2chtml(math: string, options?: Record<string, unknown>): HTMLElement;
|
|
13097
|
-
/**
|
|
13098
|
-
* Convert a TeX string to a CHTML (HTML) element asynchronously.
|
|
13099
|
-
*
|
|
13100
|
-
* @param math - TeX string to convert.
|
|
13101
|
-
* @param options - Optional rendering options.
|
|
13102
|
-
* @returns The rendered HTML element.
|
|
13103
|
-
*/
|
|
13104
|
-
tex2chtmlPromise(math: string, options?: Record<string, unknown>): Promise<HTMLElement>;
|
|
13105
|
-
/**
|
|
13106
|
-
* Convert a TeX string to MathML markup synchronously.
|
|
13107
|
-
*
|
|
13108
|
-
* @param math - TeX string to convert.
|
|
13109
|
-
* @param options - Optional rendering options.
|
|
13110
|
-
* @returns The MathML markup string.
|
|
13111
|
-
*/
|
|
13112
|
-
tex2mml(math: string, options?: Record<string, unknown>): string;
|
|
13113
|
-
/**
|
|
13114
|
-
* Convert a TeX string to MathML markup asynchronously.
|
|
13115
|
-
*
|
|
13116
|
-
* @param math - TeX string to convert.
|
|
13117
|
-
* @param options - Optional rendering options.
|
|
13118
|
-
* @returns The MathML markup string.
|
|
13119
|
-
*/
|
|
13120
|
-
tex2mmlPromise(math: string, options?: Record<string, unknown>): Promise<string>;
|
|
13121
|
-
/** Reset the TeX input jax, clearing equation numbering and labels. */
|
|
13122
|
-
texReset(): void;
|
|
13123
|
-
/**
|
|
13124
|
-
* Typeset math expressions in the given elements synchronously.
|
|
13125
|
-
*
|
|
13126
|
-
* @param elements - The elements to typeset.
|
|
13127
|
-
*/
|
|
13128
|
-
typeset(elements?: null | unknown[]): void;
|
|
13129
|
-
/**
|
|
13130
|
-
* Clear typeset math from the given elements.
|
|
13131
|
-
*
|
|
13132
|
-
* @param elements - The elements to clear.
|
|
13133
|
-
*/
|
|
13134
|
-
typesetClear(elements?: null | unknown[]): void;
|
|
13135
|
-
/**
|
|
13136
|
-
* Typeset math expressions in the given elements asynchronously.
|
|
13137
|
-
*
|
|
13138
|
-
* @param elements - The elements to typeset.
|
|
13139
|
-
* @returns A promise that resolves when typesetting is complete.
|
|
13140
|
-
*/
|
|
13141
|
-
typesetPromise(elements?: null | unknown[]): Promise<void>;
|
|
13142
|
-
}
|
|
13143
13061
|
/**
|
|
13144
13062
|
* Menu submenu configuration record.
|
|
13145
13063
|
* @public
|
|
@@ -19092,5 +19010,91 @@ export type ViewTypeViewMapping = {
|
|
|
19092
19010
|
[ViewType.Tag]: TagView;
|
|
19093
19011
|
[ViewType.Video]: VideoView;
|
|
19094
19012
|
};
|
|
19013
|
+
/**
|
|
19014
|
+
* MathJax library interface for rendering LaTeX math expressions.
|
|
19015
|
+
* @public
|
|
19016
|
+
* @unofficial
|
|
19017
|
+
*/
|
|
19018
|
+
interface MathJax$1 {
|
|
19019
|
+
/** MathJax configuration object. */
|
|
19020
|
+
config: unknown;
|
|
19021
|
+
/** MathJax component loader. */
|
|
19022
|
+
loader: unknown;
|
|
19023
|
+
/** MathJax runtime options. */
|
|
19024
|
+
options: unknown;
|
|
19025
|
+
/** MathJax library version string. */
|
|
19026
|
+
version: string;
|
|
19027
|
+
/**
|
|
19028
|
+
* Get the CHTML stylesheet element for MathJax-rendered content.
|
|
19029
|
+
*
|
|
19030
|
+
* @returns The stylesheet element.
|
|
19031
|
+
*/
|
|
19032
|
+
chtmlStylesheet(): HTMLStyleElement;
|
|
19033
|
+
/**
|
|
19034
|
+
* Get font metrics for a given DOM node, used for scaling math output.
|
|
19035
|
+
*
|
|
19036
|
+
* @param node - DOM node to get metrics for.
|
|
19037
|
+
* @param display - Whether display mode is enabled.
|
|
19038
|
+
* @returns Font metrics for the node.
|
|
19039
|
+
*/
|
|
19040
|
+
getMetricsFor(node: HTMLElement, display?: boolean): ExtendedMetrics;
|
|
19041
|
+
/**
|
|
19042
|
+
* Convert a TeX string to a CHTML (HTML) element synchronously.
|
|
19043
|
+
*
|
|
19044
|
+
* @param math - TeX string to convert.
|
|
19045
|
+
* @param options - Optional rendering options.
|
|
19046
|
+
* @returns The rendered HTML element.
|
|
19047
|
+
*/
|
|
19048
|
+
tex2chtml(math: string, options?: Record<string, unknown>): HTMLElement;
|
|
19049
|
+
/**
|
|
19050
|
+
* Convert a TeX string to a CHTML (HTML) element asynchronously.
|
|
19051
|
+
*
|
|
19052
|
+
* @param math - TeX string to convert.
|
|
19053
|
+
* @param options - Optional rendering options.
|
|
19054
|
+
* @returns The rendered HTML element.
|
|
19055
|
+
*/
|
|
19056
|
+
tex2chtmlPromise(math: string, options?: Record<string, unknown>): Promise<HTMLElement>;
|
|
19057
|
+
/**
|
|
19058
|
+
* Convert a TeX string to MathML markup synchronously.
|
|
19059
|
+
*
|
|
19060
|
+
* @param math - TeX string to convert.
|
|
19061
|
+
* @param options - Optional rendering options.
|
|
19062
|
+
* @returns The MathML markup string.
|
|
19063
|
+
*/
|
|
19064
|
+
tex2mml(math: string, options?: Record<string, unknown>): string;
|
|
19065
|
+
/**
|
|
19066
|
+
* Convert a TeX string to MathML markup asynchronously.
|
|
19067
|
+
*
|
|
19068
|
+
* @param math - TeX string to convert.
|
|
19069
|
+
* @param options - Optional rendering options.
|
|
19070
|
+
* @returns The MathML markup string.
|
|
19071
|
+
*/
|
|
19072
|
+
tex2mmlPromise(math: string, options?: Record<string, unknown>): Promise<string>;
|
|
19073
|
+
/** Reset the TeX input jax, clearing equation numbering and labels. */
|
|
19074
|
+
texReset(): void;
|
|
19075
|
+
/**
|
|
19076
|
+
* Typeset math expressions in the given elements synchronously.
|
|
19077
|
+
*
|
|
19078
|
+
* @param elements - The elements to typeset.
|
|
19079
|
+
*/
|
|
19080
|
+
typeset(elements?: null | unknown[]): void;
|
|
19081
|
+
/**
|
|
19082
|
+
* Clear typeset math from the given elements.
|
|
19083
|
+
*
|
|
19084
|
+
* @param elements - The elements to clear.
|
|
19085
|
+
*/
|
|
19086
|
+
typesetClear(elements?: null | unknown[]): void;
|
|
19087
|
+
/**
|
|
19088
|
+
* Typeset math expressions in the given elements asynchronously.
|
|
19089
|
+
*
|
|
19090
|
+
* @param elements - The elements to typeset.
|
|
19091
|
+
* @returns A promise that resolves when typesetting is complete.
|
|
19092
|
+
*/
|
|
19093
|
+
typesetPromise(elements?: null | unknown[]): Promise<void>;
|
|
19094
|
+
}
|
|
19095
|
+
|
|
19096
|
+
export {
|
|
19097
|
+
MathJax$1 as MathJax,
|
|
19098
|
+
};
|
|
19095
19099
|
|
|
19096
19100
|
export {};
|