obsidian-typings 2.2.1-beta.34 → 2.2.1-beta.35

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +246 -246
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -6161,7 +6161,7 @@ declare module "obsidian" {
6161
6161
  /**
6162
6162
  * Get all backlink information for a file
6163
6163
  */
6164
- getBacklinksForFile(file: TFile): CustomArrayDict<ReferenceCache>;
6164
+ getBacklinksForFile(file: TFile): CustomArrayDict<LinkCache | EmbedCache | FrontmatterLinkCache>;
6165
6165
  /**
6166
6166
  * Get paths of all files cached in the vault
6167
6167
  */
@@ -7553,6 +7553,251 @@ export interface Database {
7553
7553
  readTransaction(callback: (transaction: SQLTransaction) => void, errorCallback?: (error: SQLError) => void, successCallback?: () => void): void;
7554
7554
  transaction(callback: (transaction: SQLTransaction) => void, errorCallback?: (error: SQLError) => void, successCallback?: () => void): void;
7555
7555
  }
7556
+ declare global {
7557
+ /**
7558
+ * Global reference to the app
7559
+ * @public
7560
+ * @deprecated - Prefer not to use this value directly.
7561
+ */
7562
+ var app: App;
7563
+ /**
7564
+ * @public
7565
+ */
7566
+ var bl: typeof Object.hasOwnProperty;
7567
+ /**
7568
+ * @public
7569
+ */
7570
+ var blinkfetch: typeof fetch;
7571
+ /**
7572
+ * @public
7573
+ */
7574
+ var blinkFormData: typeof FormData;
7575
+ /**
7576
+ * @public
7577
+ */
7578
+ var blinkHeaders: typeof Headers;
7579
+ /**
7580
+ * @public
7581
+ */
7582
+ var blinkRequest: typeof Request;
7583
+ /**
7584
+ * @public
7585
+ */
7586
+ var blinkResponse: typeof Response;
7587
+ /**
7588
+ * @public
7589
+ */
7590
+ var Capacitor: typeof _Capacitor;
7591
+ /**
7592
+ * @public
7593
+ */
7594
+ var CapacitorPlatforms: typeof _CapacitorPlatforms;
7595
+ /**
7596
+ * @public
7597
+ */
7598
+ var Cf: typeof Object.getOwnPropertyDescriptors;
7599
+ /**
7600
+ * @public
7601
+ *
7602
+ * Commented out because the global variable is already declared in the `@types/codemirror` package.
7603
+ */
7604
+ // var CodeMirror: typeof import('codemirror');
7605
+ /**
7606
+ * @public
7607
+ */
7608
+ var CodeMirrorAdapter: CodeMirrorAdapter2;
7609
+ /**
7610
+ * DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG.
7611
+ * @public
7612
+ *
7613
+ * Commented out because the global variable is already declared in the `@types/dompurify` package.
7614
+ */
7615
+ // var DOMPurify: typeof import('dompurify);
7616
+ /**
7617
+ * @public
7618
+ */
7619
+ var El: typeof Object.propertyIsEnumerable;
7620
+ /**
7621
+ * @public
7622
+ */
7623
+ var electron: typeof import("electron");
7624
+ /**
7625
+ * @public
7626
+ */
7627
+ var electronWindow: ElectronWindow;
7628
+ /**
7629
+ * @public
7630
+ */
7631
+ var frameDom: FrameDom;
7632
+ /**
7633
+ * Constructor for the Capacitor file system adapter.
7634
+ * @public
7635
+ */
7636
+ var FS: new (dir: string) => CapacitorAdapterFs;
7637
+ /**
7638
+ * @public
7639
+ */
7640
+ var globalEnhance: () => void;
7641
+ /**
7642
+ * @public
7643
+ */
7644
+ var i18next: typeof _i18next & {
7645
+ observers: object;
7646
+ isLanguageChangingTo: string | undefined;
7647
+ logger: unknown;
7648
+ translator: unknown;
7649
+ };
7650
+ /**
7651
+ * vim.js based on https://github.com/codemirror/CodeMirror/commit/793c9e65e09ec7fba3f4f5aaf366b3d36e1a709e (2021-12-04)
7652
+ *
7653
+ * Modified from https://github.com/nightwing/cm6-vim-mode-experiment/blob/master/src/vim.js 103a9b5 2021-12-03
7654
+ *
7655
+ * CodeMirror, copyright (c) by Marijn Haverbeke and others
7656
+ *
7657
+ * Distributed under an MIT license: https://codemirror.net/5/LICENSE
7658
+ *
7659
+ * Supported keybindings:
7660
+ * Too many to list. Refer to defaultKeymap below.
7661
+ *
7662
+ * Supported Ex commands:
7663
+ * Refer to defaultExCommandMap below.
7664
+ *
7665
+ * Registers: unnamed, -, ., :, /, _, a-z, A-Z, 0-9
7666
+ * (Does not respect the special case for number registers when delete
7667
+ * operator is made with these commands: %, (, ), , /, ?, n, N, {, } )
7668
+ * TODO: Implement the remaining registers.
7669
+ *
7670
+ * Marks: a-z, A-Z, and 0-9
7671
+ * TODO: Implement the remaining special marks. They have more complex
7672
+ * behavior.
7673
+ *
7674
+ * Events:
7675
+ * 'vim-mode-change' - raised on the editor anytime the current mode changes,
7676
+ * Event object: {mode: "visual", subMode: "linewise"}
7677
+ *
7678
+ * Code structure:
7679
+ * 1. Default keymap
7680
+ * 2. Variable declarations and short basic helpers
7681
+ * 3. Instance (External API) implementation
7682
+ * 4. Internal state tracking objects (input state, counter) implementation
7683
+ * and instantiation
7684
+ * 5. Key handler (the main command dispatcher) implementation
7685
+ * 6. Motion, operator, and action implementations
7686
+ * 7. Helper functions for the key handler, motions, operators, and actions
7687
+ * 8. Set up Vim to work as a keymap for CodeMirror.
7688
+ * 9. Ex command implementations.
7689
+ *
7690
+ * @public
7691
+ */
7692
+ var initVimMode: (CodeMirror: CodeMirrorAdapter2) => VimApi;
7693
+ /**
7694
+ * @public
7695
+ */
7696
+ var li: (target: object, source: object) => object;
7697
+ /**
7698
+ * @public
7699
+ */
7700
+ var mo: (target: object, propertyNames: string[]) => object;
7701
+ /**
7702
+ * Parse, validate, manipulate, and display dates in javascript.
7703
+ * @public
7704
+ *
7705
+ * Commented out because the global variable is already declared in the `moment` package.
7706
+ */
7707
+ // var moment: typeof import('moment');
7708
+ /**
7709
+ * @public
7710
+ */
7711
+ var mr: typeof Object.getOwnPropertySymbols;
7712
+ /**
7713
+ * Notification component. Use to present timely, high-value information.
7714
+ * @public
7715
+ */
7716
+ /**
7717
+ * @public
7718
+ */
7719
+ var Notice: typeof _Notice;
7720
+ /**
7721
+ * Invoke obsidian protocol action.
7722
+ * @public
7723
+ */
7724
+ var OBS_ACT: (obsidianProtocolData: ObsidianProtocolData) => void;
7725
+ /**
7726
+ * @public
7727
+ */
7728
+ var OBSIDIAN_DEFAULT_I18N: Localization;
7729
+ /**
7730
+ * @public
7731
+ */
7732
+ var openDatabase: (name: string, version: string, displayName: string, estimatedSize: number, creationCallback?: (database: Database) => void) => Database;
7733
+ /**
7734
+ * @public
7735
+ *
7736
+ * Commented out because the global variable is already declared in the `@types/pixi.js` package.
7737
+ */
7738
+ // var PIXI: typeof import('pixi.js');
7739
+ /**
7740
+ * Similar to `fetch()`, request a URL using HTTP/HTTPS, without any CORS restrictions.
7741
+ * Returns the text value of the response.
7742
+ * @public
7743
+ */
7744
+ var request: typeof _request;
7745
+ /**
7746
+ * Similar to `fetch()`, request a URL using HTTP/HTTPS, without any CORS restrictions.
7747
+ * @public
7748
+ */
7749
+ var requestUrl: typeof _requestUrl;
7750
+ /**
7751
+ * @public
7752
+ *
7753
+ * Commented out because the global variable is already declared in the `scrypt-js` package.
7754
+ */
7755
+ // var scrypt: typeof import('scrypt-js');
7756
+ /**
7757
+ * Select a language file location.
7758
+ * @public
7759
+ */
7760
+ var selectLanguageFileLocation: () => void;
7761
+ /**
7762
+ * @public
7763
+ */
7764
+ var Sf: typeof Object.defineProperties;
7765
+ /**
7766
+ * @public
7767
+ */
7768
+ var St: (target: object, source: object | undefined) => object;
7769
+ /**
7770
+ * @public
7771
+ */
7772
+ var temp1: Database["changeVersion"];
7773
+ /**
7774
+ * @public
7775
+ */
7776
+ var titlebarStyle: string;
7777
+ /**
7778
+ * @public
7779
+ */
7780
+ var Tl: (target: object, propertyName: string, propertyValue: unknown) => unknown;
7781
+ /**
7782
+ * @public
7783
+ */
7784
+ var TurndownService: typeof _TurndownService;
7785
+ /**
7786
+ * @public
7787
+ */
7788
+ var WebView: HTMLElement & {
7789
+ new (): HTMLElement;
7790
+ };
7791
+ /**
7792
+ * @public
7793
+ */
7794
+ var wf: typeof Object.defineProperty;
7795
+ }
7796
+ declare global {
7797
+ interface DomElementInfo {
7798
+ [eventName: `on${string}`]: EventListenerOrEventListenerObject;
7799
+ }
7800
+ }
7556
7801
  /** @todo Documentation incomplete */
7557
7802
  /** @public */
7558
7803
  export interface FilePropertiesView extends InfoFileView {
@@ -8017,251 +8262,6 @@ export interface TagView extends View {
8017
8262
  */
8018
8263
  updateTags(): void;
8019
8264
  }
8020
- declare global {
8021
- /**
8022
- * Global reference to the app
8023
- * @public
8024
- * @deprecated - Prefer not to use this value directly.
8025
- */
8026
- var app: App;
8027
- /**
8028
- * @public
8029
- */
8030
- var bl: typeof Object.hasOwnProperty;
8031
- /**
8032
- * @public
8033
- */
8034
- var blinkfetch: typeof fetch;
8035
- /**
8036
- * @public
8037
- */
8038
- var blinkFormData: typeof FormData;
8039
- /**
8040
- * @public
8041
- */
8042
- var blinkHeaders: typeof Headers;
8043
- /**
8044
- * @public
8045
- */
8046
- var blinkRequest: typeof Request;
8047
- /**
8048
- * @public
8049
- */
8050
- var blinkResponse: typeof Response;
8051
- /**
8052
- * @public
8053
- */
8054
- var Capacitor: typeof _Capacitor;
8055
- /**
8056
- * @public
8057
- */
8058
- var CapacitorPlatforms: typeof _CapacitorPlatforms;
8059
- /**
8060
- * @public
8061
- */
8062
- var Cf: typeof Object.getOwnPropertyDescriptors;
8063
- /**
8064
- * @public
8065
- *
8066
- * Commented out because the global variable is already declared in the `@types/codemirror` package.
8067
- */
8068
- // var CodeMirror: typeof import('codemirror');
8069
- /**
8070
- * @public
8071
- */
8072
- var CodeMirrorAdapter: CodeMirrorAdapter2;
8073
- /**
8074
- * DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG.
8075
- * @public
8076
- *
8077
- * Commented out because the global variable is already declared in the `@types/dompurify` package.
8078
- */
8079
- // var DOMPurify: typeof import('dompurify);
8080
- /**
8081
- * @public
8082
- */
8083
- var El: typeof Object.propertyIsEnumerable;
8084
- /**
8085
- * @public
8086
- */
8087
- var electron: typeof import("electron");
8088
- /**
8089
- * @public
8090
- */
8091
- var electronWindow: ElectronWindow;
8092
- /**
8093
- * @public
8094
- */
8095
- var frameDom: FrameDom;
8096
- /**
8097
- * Constructor for the Capacitor file system adapter.
8098
- * @public
8099
- */
8100
- var FS: new (dir: string) => CapacitorAdapterFs;
8101
- /**
8102
- * @public
8103
- */
8104
- var globalEnhance: () => void;
8105
- /**
8106
- * @public
8107
- */
8108
- var i18next: typeof _i18next & {
8109
- observers: object;
8110
- isLanguageChangingTo: string | undefined;
8111
- logger: unknown;
8112
- translator: unknown;
8113
- };
8114
- /**
8115
- * vim.js based on https://github.com/codemirror/CodeMirror/commit/793c9e65e09ec7fba3f4f5aaf366b3d36e1a709e (2021-12-04)
8116
- *
8117
- * Modified from https://github.com/nightwing/cm6-vim-mode-experiment/blob/master/src/vim.js 103a9b5 2021-12-03
8118
- *
8119
- * CodeMirror, copyright (c) by Marijn Haverbeke and others
8120
- *
8121
- * Distributed under an MIT license: https://codemirror.net/5/LICENSE
8122
- *
8123
- * Supported keybindings:
8124
- * Too many to list. Refer to defaultKeymap below.
8125
- *
8126
- * Supported Ex commands:
8127
- * Refer to defaultExCommandMap below.
8128
- *
8129
- * Registers: unnamed, -, ., :, /, _, a-z, A-Z, 0-9
8130
- * (Does not respect the special case for number registers when delete
8131
- * operator is made with these commands: %, (, ), , /, ?, n, N, {, } )
8132
- * TODO: Implement the remaining registers.
8133
- *
8134
- * Marks: a-z, A-Z, and 0-9
8135
- * TODO: Implement the remaining special marks. They have more complex
8136
- * behavior.
8137
- *
8138
- * Events:
8139
- * 'vim-mode-change' - raised on the editor anytime the current mode changes,
8140
- * Event object: {mode: "visual", subMode: "linewise"}
8141
- *
8142
- * Code structure:
8143
- * 1. Default keymap
8144
- * 2. Variable declarations and short basic helpers
8145
- * 3. Instance (External API) implementation
8146
- * 4. Internal state tracking objects (input state, counter) implementation
8147
- * and instantiation
8148
- * 5. Key handler (the main command dispatcher) implementation
8149
- * 6. Motion, operator, and action implementations
8150
- * 7. Helper functions for the key handler, motions, operators, and actions
8151
- * 8. Set up Vim to work as a keymap for CodeMirror.
8152
- * 9. Ex command implementations.
8153
- *
8154
- * @public
8155
- */
8156
- var initVimMode: (CodeMirror: CodeMirrorAdapter2) => VimApi;
8157
- /**
8158
- * @public
8159
- */
8160
- var li: (target: object, source: object) => object;
8161
- /**
8162
- * @public
8163
- */
8164
- var mo: (target: object, propertyNames: string[]) => object;
8165
- /**
8166
- * Parse, validate, manipulate, and display dates in javascript.
8167
- * @public
8168
- *
8169
- * Commented out because the global variable is already declared in the `moment` package.
8170
- */
8171
- // var moment: typeof import('moment');
8172
- /**
8173
- * @public
8174
- */
8175
- var mr: typeof Object.getOwnPropertySymbols;
8176
- /**
8177
- * Notification component. Use to present timely, high-value information.
8178
- * @public
8179
- */
8180
- /**
8181
- * @public
8182
- */
8183
- var Notice: typeof _Notice;
8184
- /**
8185
- * Invoke obsidian protocol action.
8186
- * @public
8187
- */
8188
- var OBS_ACT: (obsidianProtocolData: ObsidianProtocolData) => void;
8189
- /**
8190
- * @public
8191
- */
8192
- var OBSIDIAN_DEFAULT_I18N: Localization;
8193
- /**
8194
- * @public
8195
- */
8196
- var openDatabase: (name: string, version: string, displayName: string, estimatedSize: number, creationCallback?: (database: Database) => void) => Database;
8197
- /**
8198
- * @public
8199
- *
8200
- * Commented out because the global variable is already declared in the `@types/pixi.js` package.
8201
- */
8202
- // var PIXI: typeof import('pixi.js');
8203
- /**
8204
- * Similar to `fetch()`, request a URL using HTTP/HTTPS, without any CORS restrictions.
8205
- * Returns the text value of the response.
8206
- * @public
8207
- */
8208
- var request: typeof _request;
8209
- /**
8210
- * Similar to `fetch()`, request a URL using HTTP/HTTPS, without any CORS restrictions.
8211
- * @public
8212
- */
8213
- var requestUrl: typeof _requestUrl;
8214
- /**
8215
- * @public
8216
- *
8217
- * Commented out because the global variable is already declared in the `scrypt-js` package.
8218
- */
8219
- // var scrypt: typeof import('scrypt-js');
8220
- /**
8221
- * Select a language file location.
8222
- * @public
8223
- */
8224
- var selectLanguageFileLocation: () => void;
8225
- /**
8226
- * @public
8227
- */
8228
- var Sf: typeof Object.defineProperties;
8229
- /**
8230
- * @public
8231
- */
8232
- var St: (target: object, source: object | undefined) => object;
8233
- /**
8234
- * @public
8235
- */
8236
- var temp1: Database["changeVersion"];
8237
- /**
8238
- * @public
8239
- */
8240
- var titlebarStyle: string;
8241
- /**
8242
- * @public
8243
- */
8244
- var Tl: (target: object, propertyName: string, propertyValue: unknown) => unknown;
8245
- /**
8246
- * @public
8247
- */
8248
- var TurndownService: typeof _TurndownService;
8249
- /**
8250
- * @public
8251
- */
8252
- var WebView: HTMLElement & {
8253
- new (): HTMLElement;
8254
- };
8255
- /**
8256
- * @public
8257
- */
8258
- var wf: typeof Object.defineProperty;
8259
- }
8260
- declare global {
8261
- interface DomElementInfo {
8262
- [eventName: `on${string}`]: EventListenerOrEventListenerObject;
8263
- }
8264
- }
8265
8265
 
8266
8266
  export {};
8267
8267
  import './style-mod.d.cts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "2.2.1-beta.34",
3
+ "version": "2.2.1-beta.35",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",