@obsidian-typings/obsidian-catalyst-1.14.4 1.2.0 → 1.3.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 +4 -0
- package/dist/cjs/types.d.cts +59 -11
- package/dist/esm/types.d.mts +59 -11
- package/package.json +1 -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
|
*
|
|
@@ -14129,6 +14136,12 @@ declare module "obsidian" {
|
|
|
14129
14136
|
* @unofficial
|
|
14130
14137
|
*/
|
|
14131
14138
|
onEscapeKey(): void;
|
|
14139
|
+
/**
|
|
14140
|
+
* Called when the user navigates back in the history.
|
|
14141
|
+
*
|
|
14142
|
+
* @official
|
|
14143
|
+
*/
|
|
14144
|
+
onHistoryBack(): void;
|
|
14132
14145
|
/**
|
|
14133
14146
|
* Called after every selection change, including the programmatic one that follows
|
|
14134
14147
|
* {@link SuggestModalChooser.setSuggestions}.
|
|
@@ -15759,6 +15772,14 @@ declare module "obsidian" {
|
|
|
15759
15772
|
* @since 1.10.0
|
|
15760
15773
|
*/
|
|
15761
15774
|
groupBy?: BasesConfigFileViewGroupBy;
|
|
15775
|
+
/**
|
|
15776
|
+
* Ordered list of the groupBy values to show. When set, only these groups appear, in this order.
|
|
15777
|
+
* `null` is the group of entries with no value.
|
|
15778
|
+
*
|
|
15779
|
+
* @official
|
|
15780
|
+
* @since 1.14.3
|
|
15781
|
+
*/
|
|
15782
|
+
groupOrder?: FrontmatterValue[];
|
|
15762
15783
|
/**
|
|
15763
15784
|
* Friendly name for this view, displayed in the UI to select between views.
|
|
15764
15785
|
*
|
|
@@ -18073,6 +18094,16 @@ declare module "obsidian" {
|
|
|
18073
18094
|
offset: number;
|
|
18074
18095
|
}
|
|
18075
18096
|
}
|
|
18097
|
+
declare module "obsidian" {
|
|
18098
|
+
/**
|
|
18099
|
+
* Logical sidedock identity, independent of screen position. In LTR, `'primary'`
|
|
18100
|
+
* renders on the left and `'secondary'` on the right; RTL mirrors them.
|
|
18101
|
+
* `'left'` and `'right'` are legacy aliases for `'primary'` and `'secondary'`.
|
|
18102
|
+
*
|
|
18103
|
+
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
18104
|
+
*/
|
|
18105
|
+
type Side__ = "left" | "primary" | "right" | "secondary";
|
|
18106
|
+
}
|
|
18076
18107
|
declare module "obsidian" {
|
|
18077
18108
|
/**
|
|
18078
18109
|
* Manage the creation, deletion and renaming of files from the UI.
|
|
@@ -19174,12 +19205,12 @@ declare module "obsidian" {
|
|
|
19174
19205
|
* Display the new note menu for a file with the provided filename and optionally a function to modify the frontmatter.
|
|
19175
19206
|
*
|
|
19176
19207
|
* @param baseFileName - The filename of the base file.
|
|
19177
|
-
* @param frontmatterProcessor - A function to modify the frontmatter.
|
|
19208
|
+
* @param frontmatterProcessor - A function to modify the frontmatter, called with the frontmatter and the created file.
|
|
19178
19209
|
* @returns A promise that resolves when the file is created.
|
|
19179
19210
|
* @official
|
|
19180
19211
|
* @since 1.10.2
|
|
19181
19212
|
*/
|
|
19182
|
-
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown) => void): Promise<void>;
|
|
19213
|
+
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown, file: TFile) => void): Promise<void>;
|
|
19183
19214
|
/**
|
|
19184
19215
|
* Creates the heading element for a result group.
|
|
19185
19216
|
*
|
|
@@ -19645,6 +19676,25 @@ declare module "obsidian" {
|
|
|
19645
19676
|
text: string;
|
|
19646
19677
|
}
|
|
19647
19678
|
}
|
|
19679
|
+
declare module "obsidian" {
|
|
19680
|
+
/**
|
|
19681
|
+
* Represents a file that is outside the Vault.
|
|
19682
|
+
* Can be used with the vault API just like any other file.
|
|
19683
|
+
* Do not create these manually.
|
|
19684
|
+
*
|
|
19685
|
+
* @since 1.14.4
|
|
19686
|
+
*/
|
|
19687
|
+
interface TExternalFile extends TFile {
|
|
19688
|
+
/**
|
|
19689
|
+
* Returns the physical path in the filesystem.
|
|
19690
|
+
*
|
|
19691
|
+
* @returns The physical path in the filesystem.
|
|
19692
|
+
* @official
|
|
19693
|
+
* @since 1.14.4
|
|
19694
|
+
*/
|
|
19695
|
+
getRealPath(): string;
|
|
19696
|
+
}
|
|
19697
|
+
}
|
|
19648
19698
|
declare module "obsidian" {
|
|
19649
19699
|
/**
|
|
19650
19700
|
* Represents a point in a 2D coordinate system.
|
|
@@ -23426,14 +23476,6 @@ declare module "obsidian" {
|
|
|
23426
23476
|
scope: Scope;
|
|
23427
23477
|
}
|
|
23428
23478
|
}
|
|
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
23479
|
declare module "obsidian" {
|
|
23438
23480
|
/**
|
|
23439
23481
|
* The state of a popover.
|
|
@@ -27778,6 +27820,12 @@ declare module "obsidian" {
|
|
|
27778
27820
|
* @unofficial
|
|
27779
27821
|
*/
|
|
27780
27822
|
onEscapeKey(): void;
|
|
27823
|
+
/**
|
|
27824
|
+
* Called when the user navigates back in the history.
|
|
27825
|
+
*
|
|
27826
|
+
* @official
|
|
27827
|
+
*/
|
|
27828
|
+
onHistoryBack(): void;
|
|
27781
27829
|
/**
|
|
27782
27830
|
* Called when the modal is opened.
|
|
27783
27831
|
*
|
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
|
*
|
|
@@ -14129,6 +14136,12 @@ declare module "obsidian" {
|
|
|
14129
14136
|
* @unofficial
|
|
14130
14137
|
*/
|
|
14131
14138
|
onEscapeKey(): void;
|
|
14139
|
+
/**
|
|
14140
|
+
* Called when the user navigates back in the history.
|
|
14141
|
+
*
|
|
14142
|
+
* @official
|
|
14143
|
+
*/
|
|
14144
|
+
onHistoryBack(): void;
|
|
14132
14145
|
/**
|
|
14133
14146
|
* Called after every selection change, including the programmatic one that follows
|
|
14134
14147
|
* {@link SuggestModalChooser.setSuggestions}.
|
|
@@ -15759,6 +15772,14 @@ declare module "obsidian" {
|
|
|
15759
15772
|
* @since 1.10.0
|
|
15760
15773
|
*/
|
|
15761
15774
|
groupBy?: BasesConfigFileViewGroupBy;
|
|
15775
|
+
/**
|
|
15776
|
+
* Ordered list of the groupBy values to show. When set, only these groups appear, in this order.
|
|
15777
|
+
* `null` is the group of entries with no value.
|
|
15778
|
+
*
|
|
15779
|
+
* @official
|
|
15780
|
+
* @since 1.14.3
|
|
15781
|
+
*/
|
|
15782
|
+
groupOrder?: FrontmatterValue[];
|
|
15762
15783
|
/**
|
|
15763
15784
|
* Friendly name for this view, displayed in the UI to select between views.
|
|
15764
15785
|
*
|
|
@@ -18073,6 +18094,16 @@ declare module "obsidian" {
|
|
|
18073
18094
|
offset: number;
|
|
18074
18095
|
}
|
|
18075
18096
|
}
|
|
18097
|
+
declare module "obsidian" {
|
|
18098
|
+
/**
|
|
18099
|
+
* Logical sidedock identity, independent of screen position. In LTR, `'primary'`
|
|
18100
|
+
* renders on the left and `'secondary'` on the right; RTL mirrors them.
|
|
18101
|
+
* `'left'` and `'right'` are legacy aliases for `'primary'` and `'secondary'`.
|
|
18102
|
+
*
|
|
18103
|
+
* @deprecated - Added only for typing purposes. Use {@link Side} instead.
|
|
18104
|
+
*/
|
|
18105
|
+
type Side__ = "left" | "primary" | "right" | "secondary";
|
|
18106
|
+
}
|
|
18076
18107
|
declare module "obsidian" {
|
|
18077
18108
|
/**
|
|
18078
18109
|
* Manage the creation, deletion and renaming of files from the UI.
|
|
@@ -19174,12 +19205,12 @@ declare module "obsidian" {
|
|
|
19174
19205
|
* Display the new note menu for a file with the provided filename and optionally a function to modify the frontmatter.
|
|
19175
19206
|
*
|
|
19176
19207
|
* @param baseFileName - The filename of the base file.
|
|
19177
|
-
* @param frontmatterProcessor - A function to modify the frontmatter.
|
|
19208
|
+
* @param frontmatterProcessor - A function to modify the frontmatter, called with the frontmatter and the created file.
|
|
19178
19209
|
* @returns A promise that resolves when the file is created.
|
|
19179
19210
|
* @official
|
|
19180
19211
|
* @since 1.10.2
|
|
19181
19212
|
*/
|
|
19182
|
-
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown) => void): Promise<void>;
|
|
19213
|
+
createFileForView(baseFileName?: string, frontmatterProcessor?: (frontmatter: unknown, file: TFile) => void): Promise<void>;
|
|
19183
19214
|
/**
|
|
19184
19215
|
* Creates the heading element for a result group.
|
|
19185
19216
|
*
|
|
@@ -19645,6 +19676,25 @@ declare module "obsidian" {
|
|
|
19645
19676
|
text: string;
|
|
19646
19677
|
}
|
|
19647
19678
|
}
|
|
19679
|
+
declare module "obsidian" {
|
|
19680
|
+
/**
|
|
19681
|
+
* Represents a file that is outside the Vault.
|
|
19682
|
+
* Can be used with the vault API just like any other file.
|
|
19683
|
+
* Do not create these manually.
|
|
19684
|
+
*
|
|
19685
|
+
* @since 1.14.4
|
|
19686
|
+
*/
|
|
19687
|
+
interface TExternalFile extends TFile {
|
|
19688
|
+
/**
|
|
19689
|
+
* Returns the physical path in the filesystem.
|
|
19690
|
+
*
|
|
19691
|
+
* @returns The physical path in the filesystem.
|
|
19692
|
+
* @official
|
|
19693
|
+
* @since 1.14.4
|
|
19694
|
+
*/
|
|
19695
|
+
getRealPath(): string;
|
|
19696
|
+
}
|
|
19697
|
+
}
|
|
19648
19698
|
declare module "obsidian" {
|
|
19649
19699
|
/**
|
|
19650
19700
|
* Represents a point in a 2D coordinate system.
|
|
@@ -23426,14 +23476,6 @@ declare module "obsidian" {
|
|
|
23426
23476
|
scope: Scope;
|
|
23427
23477
|
}
|
|
23428
23478
|
}
|
|
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
23479
|
declare module "obsidian" {
|
|
23438
23480
|
/**
|
|
23439
23481
|
* The state of a popover.
|
|
@@ -27778,6 +27820,12 @@ declare module "obsidian" {
|
|
|
27778
27820
|
* @unofficial
|
|
27779
27821
|
*/
|
|
27780
27822
|
onEscapeKey(): void;
|
|
27823
|
+
/**
|
|
27824
|
+
* Called when the user navigates back in the history.
|
|
27825
|
+
*
|
|
27826
|
+
* @official
|
|
27827
|
+
*/
|
|
27828
|
+
onHistoryBack(): void;
|
|
27781
27829
|
/**
|
|
27782
27830
|
* Called when the modal is opened.
|
|
27783
27831
|
*
|