obsidian-typings 2.26.1 → 2.28.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.
@@ -2531,6 +2531,10 @@ export interface ElectronWindow extends BrowserWindow {
2531
2531
  _eventsCount: unknown;
2532
2532
  devToolsWebContents: unknown;
2533
2533
  }
2534
+ export interface EmbedAudioComponent extends Component {
2535
+ }
2536
+ export interface EmbedCanvasComponent extends Component {
2537
+ }
2534
2538
  /** @public */
2535
2539
  export interface EmbedContext {
2536
2540
  /**
@@ -2564,6 +2568,12 @@ export interface EmbedContext {
2564
2568
  /** @internal */
2565
2569
  state?: unknown;
2566
2570
  }
2571
+ export interface EmbedImageComponent extends Component {
2572
+ }
2573
+ export interface EmbedMarkdownComponent extends Component {
2574
+ }
2575
+ export interface EmbedPdfComponent extends Component {
2576
+ }
2567
2577
  /** @public */
2568
2578
  export interface EmbedRegistry extends Events {
2569
2579
  /**
@@ -2597,6 +2607,32 @@ export interface EmbedRegistry extends Events {
2597
2607
  }
2598
2608
  /** @public */
2599
2609
  export interface EmbedRegistryEmbedByExtensionRecord extends Record<string, EmbeddableConstructor> {
2610
+ [FileExtension._3gp]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2611
+ [FileExtension.avif]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2612
+ [FileExtension.bmp]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2613
+ [FileExtension.canvas]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedCanvasComponent;
2614
+ [FileExtension.flac]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2615
+ [FileExtension.gif]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2616
+ [FileExtension.jpeg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2617
+ [FileExtension.jpg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2618
+ [FileExtension.m4a]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2619
+ [FileExtension.md]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedMarkdownComponent;
2620
+ [FileExtension.mkv]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
2621
+ [FileExtension.mov]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
2622
+ [FileExtension.mp3]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2623
+ [FileExtension.mp4]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
2624
+ [FileExtension.oga]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2625
+ [FileExtension.ogg]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2626
+ [FileExtension.ogv]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
2627
+ [FileExtension.opus]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2628
+ [FileExtension.pdf]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedPdfComponent;
2629
+ [FileExtension.png]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2630
+ [FileExtension.svg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2631
+ [FileExtension.wav]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
2632
+ [FileExtension.webm]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
2633
+ [FileExtension.webp]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
2634
+ }
2635
+ export interface EmbedVideoComponent extends Component {
2600
2636
  }
2601
2637
  /** @public */
2602
2638
  export interface EmbeddedEditorView extends Component {
@@ -1439,7 +1439,7 @@ declare module "obsidian" {
1439
1439
  /** @internal */
1440
1440
  reconcileFileInternal(normalizedPath: string, normalizedNewPath: string): Promise<void>;
1441
1441
  /** @internal */
1442
- startWatchpath(normalizedPath: string): Promise<void>;
1442
+ startWatchPath(normalizedPath: string): Promise<void>;
1443
1443
  /** @internal Remove listener on specific path */
1444
1444
  stopWatchPath(normalizedPath: string): void;
1445
1445
  /** @internal */
@@ -2680,6 +2680,8 @@ declare module "obsidian" {
2680
2680
  /** @internal Debounced function for saving config */
2681
2681
  requestSaveConfig: Debouncer<[
2682
2682
  ], Promise<void>>;
2683
+ /** @internal The same TFolder object as `.fileMap["/"]` */
2684
+ root: TFolder;
2683
2685
  /** @internal Add file as child/parent to respective folders */
2684
2686
  addChild(file: TAbstractFile): void;
2685
2687
  /** @internal Check whether new file path is available */
@@ -5755,6 +5757,10 @@ export interface ElectronWindow extends BrowserWindow {
5755
5757
  _eventsCount: unknown;
5756
5758
  devToolsWebContents: unknown;
5757
5759
  }
5760
+ export interface EmbedAudioComponent extends Component {
5761
+ }
5762
+ export interface EmbedCanvasComponent extends Component {
5763
+ }
5758
5764
  /** @public */
5759
5765
  export interface EmbedContext {
5760
5766
  /**
@@ -5788,6 +5794,12 @@ export interface EmbedContext {
5788
5794
  /** @internal */
5789
5795
  state?: unknown;
5790
5796
  }
5797
+ export interface EmbedImageComponent extends Component {
5798
+ }
5799
+ export interface EmbedMarkdownComponent extends Component {
5800
+ }
5801
+ export interface EmbedPdfComponent extends Component {
5802
+ }
5791
5803
  /** @public */
5792
5804
  export interface EmbedRegistry extends Events {
5793
5805
  /**
@@ -5821,6 +5833,32 @@ export interface EmbedRegistry extends Events {
5821
5833
  }
5822
5834
  /** @public */
5823
5835
  export interface EmbedRegistryEmbedByExtensionRecord extends Record<string, EmbeddableConstructor> {
5836
+ [FileExtension._3gp]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5837
+ [FileExtension.avif]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5838
+ [FileExtension.bmp]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5839
+ [FileExtension.canvas]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedCanvasComponent;
5840
+ [FileExtension.flac]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5841
+ [FileExtension.gif]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5842
+ [FileExtension.jpeg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5843
+ [FileExtension.jpg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5844
+ [FileExtension.m4a]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5845
+ [FileExtension.md]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedMarkdownComponent;
5846
+ [FileExtension.mkv]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
5847
+ [FileExtension.mov]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
5848
+ [FileExtension.mp3]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5849
+ [FileExtension.mp4]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
5850
+ [FileExtension.oga]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5851
+ [FileExtension.ogg]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5852
+ [FileExtension.ogv]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
5853
+ [FileExtension.opus]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5854
+ [FileExtension.pdf]: (context: EmbedContext, file: TFile, subpath?: string) => EmbedPdfComponent;
5855
+ [FileExtension.png]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5856
+ [FileExtension.svg]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5857
+ [FileExtension.wav]: (context: EmbedContext, file: TFile) => EmbedAudioComponent;
5858
+ [FileExtension.webm]: (context: EmbedContext, file: TFile) => EmbedVideoComponent;
5859
+ [FileExtension.webp]: (context: EmbedContext, file: TFile) => EmbedImageComponent;
5860
+ }
5861
+ export interface EmbedVideoComponent extends Component {
5824
5862
  }
5825
5863
  /** @public */
5826
5864
  export interface EmbeddedEditorView extends Component {