obsidian-typings 2.27.0 → 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 {
@@ -5757,6 +5757,10 @@ export interface ElectronWindow extends BrowserWindow {
5757
5757
  _eventsCount: unknown;
5758
5758
  devToolsWebContents: unknown;
5759
5759
  }
5760
+ export interface EmbedAudioComponent extends Component {
5761
+ }
5762
+ export interface EmbedCanvasComponent extends Component {
5763
+ }
5760
5764
  /** @public */
5761
5765
  export interface EmbedContext {
5762
5766
  /**
@@ -5790,6 +5794,12 @@ export interface EmbedContext {
5790
5794
  /** @internal */
5791
5795
  state?: unknown;
5792
5796
  }
5797
+ export interface EmbedImageComponent extends Component {
5798
+ }
5799
+ export interface EmbedMarkdownComponent extends Component {
5800
+ }
5801
+ export interface EmbedPdfComponent extends Component {
5802
+ }
5793
5803
  /** @public */
5794
5804
  export interface EmbedRegistry extends Events {
5795
5805
  /**
@@ -5823,6 +5833,32 @@ export interface EmbedRegistry extends Events {
5823
5833
  }
5824
5834
  /** @public */
5825
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 {
5826
5862
  }
5827
5863
  /** @public */
5828
5864
  export interface EmbeddedEditorView extends Component {