@obsidian-typings/obsidian-catalyst-1.14.4 1.2.0 → 1.4.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/CHANGELOG.md +8 -0
- package/dist/cjs/types.d.cts +69 -11
- package/dist/esm/types.d.mts +69 -11
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/types.d.cts
CHANGED
|
@@ -6667,6 +6667,7 @@ declare module "obsidian" {
|
|
|
6667
6667
|
* Get the editor instance.
|
|
6668
6668
|
*
|
|
6669
6669
|
* @returns The editor instance.
|
|
6670
|
+
* @deprecated Use the editor directly. Kept for compatibility with CodeMirror 5.
|
|
6670
6671
|
* @official
|
|
6671
6672
|
* @since 0.11.11
|
|
6672
6673
|
*/
|
|
@@ -7304,7 +7305,7 @@ declare module "obsidian" {
|
|
|
7304
7305
|
/**
|
|
7305
7306
|
* Close the menu.
|
|
7306
7307
|
*
|
|
7307
|
-
* @
|
|
7308
|
+
* @deprecated Previously existed to satisfy ClosableComponent.
|
|
7308
7309
|
* @official
|
|
7309
7310
|
*/
|
|
7310
7311
|
close(): void;
|
|
@@ -7405,6 +7406,12 @@ declare module "obsidian" {
|
|
|
7405
7406
|
* @official
|
|
7406
7407
|
*/
|
|
7407
7408
|
onHide(callback: () => unknown): void;
|
|
7409
|
+
/**
|
|
7410
|
+
* Called when the user navigates back in the history.
|
|
7411
|
+
*
|
|
7412
|
+
* @official
|
|
7413
|
+
*/
|
|
7414
|
+
onHistoryBack(): void;
|
|
7408
7415
|
/**
|
|
7409
7416
|
* Preemptively closes the menu if click is registered on menu item.
|
|
7410
7417
|
*
|
|
@@ -13802,6 +13809,16 @@ declare module "obsidian" {
|
|
|
13802
13809
|
*/
|
|
13803
13810
|
export function addIcon(iconId: string, svgContent: string): void;
|
|
13804
13811
|
}
|
|
13812
|
+
declare module "obsidian" {
|
|
13813
|
+
/**
|
|
13814
|
+
* All possible types that can be emitted from parsing or writing to frontmatter.
|
|
13815
|
+
*
|
|
13816
|
+
* @deprecated - Added only for typing purposes. Use {@link FrontmatterValue} instead.
|
|
13817
|
+
*/
|
|
13818
|
+
type FrontmatterValue__ = {
|
|
13819
|
+
[key: string]: FrontmatterValue;
|
|
13820
|
+
} | boolean | FrontmatterValue[] | null | number | string | undefined;
|
|
13821
|
+
}
|
|
13805
13822
|
declare module "obsidian" {
|
|
13806
13823
|
/**
|
|
13807
13824
|
* An instance of `Moment.js` library.
|
|
@@ -14129,6 +14146,12 @@ declare module "obsidian" {
|
|
|
14129
14146
|
* @unofficial
|
|
14130
14147
|
*/
|
|
14131
14148
|
onEscapeKey(): void;
|
|
14149
|
+
/**
|
|
14150
|
+
* Called when the user navigates back in the history.
|
|
14151
|
+
*
|
|
14152
|
+
* @official
|
|
14153
|
+
*/
|
|
14154
|
+
onHistoryBack(): void;
|
|
14132
14155
|
/**
|
|
14133
14156
|
* Called after every selection change, including the programmatic one that follows
|
|
14134
14157
|
* {@link SuggestModalChooser.setSuggestions}.
|
|
@@ -15759,6 +15782,14 @@ declare module "obsidian" {
|
|
|
15759
15782
|
* @since 1.10.0
|
|
15760
15783
|
*/
|
|
15761
15784
|
groupBy?: BasesConfigFileViewGroupBy;
|
|
15785
|
+
/**
|
|
15786
|
+
* Ordered list of the groupBy values to show. When set, only these groups appear, in this order.
|
|
15787
|
+
* `null` is the group of entries with no value.
|
|
15788
|
+
*
|
|
15789
|
+
* @official
|
|
15790
|
+
* @since 1.14.3
|
|
15791
|
+
*/
|
|
15792
|
+
groupOrder?: FrontmatterValue[];
|
|
15762
15793
|
/**
|
|
15763
15794
|
* Friendly name for this view, displayed in the UI to select between views.
|
|
15764
15795
|
*
|
|
@@ -18073,6 +18104,16 @@ declare module "obsidian" {
|
|
|
18073
18104
|
offset: number;
|
|
18074
18105
|
}
|
|
18075
18106
|
}
|
|
18107
|
+
declare module "obsidian" {
|
|
18108
|
+
/**
|
|
18109
|
+
* Logical sidedock identity, independent of screen position. In LTR, `'primary'`
|
|
18110
|
+
* renders on the left and `'secondary'` on the right; RTL mirrors them.
|
|
18111
|
+
* `'left'` and `'right'` are legacy aliases for `'primary'` and `'secondary'`.
|
|
18112
|
+
*
|
|
18113
|
+
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
18114
|
+
*/
|
|
18115
|
+
type Side__ = "left" | "primary" | "right" | "secondary";
|
|
18116
|
+
}
|
|
18076
18117
|
declare module "obsidian" {
|
|
18077
18118
|
/**
|
|
18078
18119
|
* Manage the creation, deletion and renaming of files from the UI.
|
|
@@ -19174,12 +19215,12 @@ declare module "obsidian" {
|
|
|
19174
19215
|
* Display the new note menu for a file with the provided filename and optionally a function to modify the frontmatter.
|
|
19175
19216
|
*
|
|
19176
19217
|
* @param baseFileName - The filename of the base file.
|
|
19177
|
-
* @param frontmatterProcessor - A function to modify the frontmatter.
|
|
19218
|
+
* @param frontmatterProcessor - A function to modify the frontmatter, called with the frontmatter and the created file.
|
|
19178
19219
|
* @returns A promise that resolves when the file is created.
|
|
19179
19220
|
* @official
|
|
19180
19221
|
* @since 1.10.2
|
|
19181
19222
|
*/
|
|
19182
|
-
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown) => void): Promise<void>;
|
|
19223
|
+
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown, file: TFile) => void): Promise<void>;
|
|
19183
19224
|
/**
|
|
19184
19225
|
* Creates the heading element for a result group.
|
|
19185
19226
|
*
|
|
@@ -19645,6 +19686,25 @@ declare module "obsidian" {
|
|
|
19645
19686
|
text: string;
|
|
19646
19687
|
}
|
|
19647
19688
|
}
|
|
19689
|
+
declare module "obsidian" {
|
|
19690
|
+
/**
|
|
19691
|
+
* Represents a file that is outside the Vault.
|
|
19692
|
+
* Can be used with the vault API just like any other file.
|
|
19693
|
+
* Do not create these manually.
|
|
19694
|
+
*
|
|
19695
|
+
* @since 1.14.4
|
|
19696
|
+
*/
|
|
19697
|
+
interface TExternalFile extends TFile {
|
|
19698
|
+
/**
|
|
19699
|
+
* Returns the physical path in the filesystem.
|
|
19700
|
+
*
|
|
19701
|
+
* @returns The physical path in the filesystem.
|
|
19702
|
+
* @official
|
|
19703
|
+
* @since 1.14.4
|
|
19704
|
+
*/
|
|
19705
|
+
getRealPath(): string;
|
|
19706
|
+
}
|
|
19707
|
+
}
|
|
19648
19708
|
declare module "obsidian" {
|
|
19649
19709
|
/**
|
|
19650
19710
|
* Represents a point in a 2D coordinate system.
|
|
@@ -23426,14 +23486,6 @@ declare module "obsidian" {
|
|
|
23426
23486
|
scope: Scope;
|
|
23427
23487
|
}
|
|
23428
23488
|
}
|
|
23429
|
-
declare module "obsidian" {
|
|
23430
|
-
/**
|
|
23431
|
-
* The side of the leaf.
|
|
23432
|
-
*
|
|
23433
|
-
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
23434
|
-
*/
|
|
23435
|
-
type Side__ = "left" | "right";
|
|
23436
|
-
}
|
|
23437
23489
|
declare module "obsidian" {
|
|
23438
23490
|
/**
|
|
23439
23491
|
* The state of a popover.
|
|
@@ -27778,6 +27830,12 @@ declare module "obsidian" {
|
|
|
27778
27830
|
* @unofficial
|
|
27779
27831
|
*/
|
|
27780
27832
|
onEscapeKey(): void;
|
|
27833
|
+
/**
|
|
27834
|
+
* Called when the user navigates back in the history.
|
|
27835
|
+
*
|
|
27836
|
+
* @official
|
|
27837
|
+
*/
|
|
27838
|
+
onHistoryBack(): void;
|
|
27781
27839
|
/**
|
|
27782
27840
|
* Called when the modal is opened.
|
|
27783
27841
|
*
|
package/dist/esm/types.d.mts
CHANGED
|
@@ -6667,6 +6667,7 @@ declare module "obsidian" {
|
|
|
6667
6667
|
* Get the editor instance.
|
|
6668
6668
|
*
|
|
6669
6669
|
* @returns The editor instance.
|
|
6670
|
+
* @deprecated Use the editor directly. Kept for compatibility with CodeMirror 5.
|
|
6670
6671
|
* @official
|
|
6671
6672
|
* @since 0.11.11
|
|
6672
6673
|
*/
|
|
@@ -7304,7 +7305,7 @@ declare module "obsidian" {
|
|
|
7304
7305
|
/**
|
|
7305
7306
|
* Close the menu.
|
|
7306
7307
|
*
|
|
7307
|
-
* @
|
|
7308
|
+
* @deprecated Previously existed to satisfy ClosableComponent.
|
|
7308
7309
|
* @official
|
|
7309
7310
|
*/
|
|
7310
7311
|
close(): void;
|
|
@@ -7405,6 +7406,12 @@ declare module "obsidian" {
|
|
|
7405
7406
|
* @official
|
|
7406
7407
|
*/
|
|
7407
7408
|
onHide(callback: () => unknown): void;
|
|
7409
|
+
/**
|
|
7410
|
+
* Called when the user navigates back in the history.
|
|
7411
|
+
*
|
|
7412
|
+
* @official
|
|
7413
|
+
*/
|
|
7414
|
+
onHistoryBack(): void;
|
|
7408
7415
|
/**
|
|
7409
7416
|
* Preemptively closes the menu if click is registered on menu item.
|
|
7410
7417
|
*
|
|
@@ -13802,6 +13809,16 @@ declare module "obsidian" {
|
|
|
13802
13809
|
*/
|
|
13803
13810
|
export function addIcon(iconId: string, svgContent: string): void;
|
|
13804
13811
|
}
|
|
13812
|
+
declare module "obsidian" {
|
|
13813
|
+
/**
|
|
13814
|
+
* All possible types that can be emitted from parsing or writing to frontmatter.
|
|
13815
|
+
*
|
|
13816
|
+
* @deprecated - Added only for typing purposes. Use {@link FrontmatterValue} instead.
|
|
13817
|
+
*/
|
|
13818
|
+
type FrontmatterValue__ = {
|
|
13819
|
+
[key: string]: FrontmatterValue;
|
|
13820
|
+
} | boolean | FrontmatterValue[] | null | number | string | undefined;
|
|
13821
|
+
}
|
|
13805
13822
|
declare module "obsidian" {
|
|
13806
13823
|
/**
|
|
13807
13824
|
* An instance of `Moment.js` library.
|
|
@@ -14129,6 +14146,12 @@ declare module "obsidian" {
|
|
|
14129
14146
|
* @unofficial
|
|
14130
14147
|
*/
|
|
14131
14148
|
onEscapeKey(): void;
|
|
14149
|
+
/**
|
|
14150
|
+
* Called when the user navigates back in the history.
|
|
14151
|
+
*
|
|
14152
|
+
* @official
|
|
14153
|
+
*/
|
|
14154
|
+
onHistoryBack(): void;
|
|
14132
14155
|
/**
|
|
14133
14156
|
* Called after every selection change, including the programmatic one that follows
|
|
14134
14157
|
* {@link SuggestModalChooser.setSuggestions}.
|
|
@@ -15759,6 +15782,14 @@ declare module "obsidian" {
|
|
|
15759
15782
|
* @since 1.10.0
|
|
15760
15783
|
*/
|
|
15761
15784
|
groupBy?: BasesConfigFileViewGroupBy;
|
|
15785
|
+
/**
|
|
15786
|
+
* Ordered list of the groupBy values to show. When set, only these groups appear, in this order.
|
|
15787
|
+
* `null` is the group of entries with no value.
|
|
15788
|
+
*
|
|
15789
|
+
* @official
|
|
15790
|
+
* @since 1.14.3
|
|
15791
|
+
*/
|
|
15792
|
+
groupOrder?: FrontmatterValue[];
|
|
15762
15793
|
/**
|
|
15763
15794
|
* Friendly name for this view, displayed in the UI to select between views.
|
|
15764
15795
|
*
|
|
@@ -18073,6 +18104,16 @@ declare module "obsidian" {
|
|
|
18073
18104
|
offset: number;
|
|
18074
18105
|
}
|
|
18075
18106
|
}
|
|
18107
|
+
declare module "obsidian" {
|
|
18108
|
+
/**
|
|
18109
|
+
* Logical sidedock identity, independent of screen position. In LTR, `'primary'`
|
|
18110
|
+
* renders on the left and `'secondary'` on the right; RTL mirrors them.
|
|
18111
|
+
* `'left'` and `'right'` are legacy aliases for `'primary'` and `'secondary'`.
|
|
18112
|
+
*
|
|
18113
|
+
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
18114
|
+
*/
|
|
18115
|
+
type Side__ = "left" | "primary" | "right" | "secondary";
|
|
18116
|
+
}
|
|
18076
18117
|
declare module "obsidian" {
|
|
18077
18118
|
/**
|
|
18078
18119
|
* Manage the creation, deletion and renaming of files from the UI.
|
|
@@ -19174,12 +19215,12 @@ declare module "obsidian" {
|
|
|
19174
19215
|
* Display the new note menu for a file with the provided filename and optionally a function to modify the frontmatter.
|
|
19175
19216
|
*
|
|
19176
19217
|
* @param baseFileName - The filename of the base file.
|
|
19177
|
-
* @param frontmatterProcessor - A function to modify the frontmatter.
|
|
19218
|
+
* @param frontmatterProcessor - A function to modify the frontmatter, called with the frontmatter and the created file.
|
|
19178
19219
|
* @returns A promise that resolves when the file is created.
|
|
19179
19220
|
* @official
|
|
19180
19221
|
* @since 1.10.2
|
|
19181
19222
|
*/
|
|
19182
|
-
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown) => void): Promise<void>;
|
|
19223
|
+
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown, file: TFile) => void): Promise<void>;
|
|
19183
19224
|
/**
|
|
19184
19225
|
* Creates the heading element for a result group.
|
|
19185
19226
|
*
|
|
@@ -19645,6 +19686,25 @@ declare module "obsidian" {
|
|
|
19645
19686
|
text: string;
|
|
19646
19687
|
}
|
|
19647
19688
|
}
|
|
19689
|
+
declare module "obsidian" {
|
|
19690
|
+
/**
|
|
19691
|
+
* Represents a file that is outside the Vault.
|
|
19692
|
+
* Can be used with the vault API just like any other file.
|
|
19693
|
+
* Do not create these manually.
|
|
19694
|
+
*
|
|
19695
|
+
* @since 1.14.4
|
|
19696
|
+
*/
|
|
19697
|
+
interface TExternalFile extends TFile {
|
|
19698
|
+
/**
|
|
19699
|
+
* Returns the physical path in the filesystem.
|
|
19700
|
+
*
|
|
19701
|
+
* @returns The physical path in the filesystem.
|
|
19702
|
+
* @official
|
|
19703
|
+
* @since 1.14.4
|
|
19704
|
+
*/
|
|
19705
|
+
getRealPath(): string;
|
|
19706
|
+
}
|
|
19707
|
+
}
|
|
19648
19708
|
declare module "obsidian" {
|
|
19649
19709
|
/**
|
|
19650
19710
|
* Represents a point in a 2D coordinate system.
|
|
@@ -23426,14 +23486,6 @@ declare module "obsidian" {
|
|
|
23426
23486
|
scope: Scope;
|
|
23427
23487
|
}
|
|
23428
23488
|
}
|
|
23429
|
-
declare module "obsidian" {
|
|
23430
|
-
/**
|
|
23431
|
-
* The side of the leaf.
|
|
23432
|
-
*
|
|
23433
|
-
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
23434
|
-
*/
|
|
23435
|
-
type Side__ = "left" | "right";
|
|
23436
|
-
}
|
|
23437
23489
|
declare module "obsidian" {
|
|
23438
23490
|
/**
|
|
23439
23491
|
* The state of a popover.
|
|
@@ -27778,6 +27830,12 @@ declare module "obsidian" {
|
|
|
27778
27830
|
* @unofficial
|
|
27779
27831
|
*/
|
|
27780
27832
|
onEscapeKey(): void;
|
|
27833
|
+
/**
|
|
27834
|
+
* Called when the user navigates back in the history.
|
|
27835
|
+
*
|
|
27836
|
+
* @official
|
|
27837
|
+
*/
|
|
27838
|
+
onHistoryBack(): void;
|
|
27781
27839
|
/**
|
|
27782
27840
|
* Called when the modal is opened.
|
|
27783
27841
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obsidian-typings/obsidian-catalyst-1.14.4",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"obsdmd",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"build:implementations": "jiti scripts/build-implementations.ts",
|
|
75
75
|
"build:implementations:bundle-types": "jiti scripts/build-implementations-bundle-types.ts",
|
|
76
76
|
"build:implementations:generate-types": "jiti scripts/build-implementations-generate-types.ts",
|
|
77
|
+
"build:validate-augmentation-coverage": "jiti scripts/build-validate-augmentation-coverage.ts",
|
|
77
78
|
"build:validate-bundle": "jiti scripts/build-validate-bundle.ts",
|
|
78
79
|
"build:validate-bundle-types": "jiti scripts/build-validate-bundle-types.ts",
|
|
79
80
|
"build:validate-types": "jiti scripts/build-validate-types.ts",
|