obsidian-typings 4.47.0 → 4.49.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/dist/cjs/implementations.d.cts +13 -11
- package/dist/cjs/types.d.cts +17 -12
- package/dist/obsidian-typings.api.json +29 -39
- package/package.json +1 -1
|
@@ -3831,7 +3831,7 @@ export interface ClipboardManager {
|
|
|
3831
3831
|
/**
|
|
3832
3832
|
* Insert files from drop-event into the editor.
|
|
3833
3833
|
*/
|
|
3834
|
-
insertFiles(
|
|
3834
|
+
insertFiles(importedAttachments: ImportedAttachment[]): Promise<void>;
|
|
3835
3835
|
/**
|
|
3836
3836
|
* Save an attachment of specified name and extension to the vault.
|
|
3837
3837
|
*
|
|
@@ -7274,18 +7274,19 @@ export interface ImageView extends EditableFileView {
|
|
|
7274
7274
|
export interface ImageViewConstructor extends TypedViewConstructor<ImageView> {
|
|
7275
7275
|
}
|
|
7276
7276
|
/**
|
|
7277
|
-
*
|
|
7277
|
+
* Imported attachment.
|
|
7278
|
+
*
|
|
7278
7279
|
* @public
|
|
7279
7280
|
* @unofficial
|
|
7280
7281
|
*/
|
|
7281
|
-
export interface
|
|
7282
|
-
/**
|
|
7282
|
+
export interface ImportedAttachment {
|
|
7283
|
+
/** Promise that resolves to the attachment file content. */
|
|
7283
7284
|
data: Promise<ArrayBuffer>;
|
|
7284
|
-
/**
|
|
7285
|
+
/** An attachment file extension. */
|
|
7285
7286
|
extension: string;
|
|
7286
|
-
/**
|
|
7287
|
-
|
|
7288
|
-
/**
|
|
7287
|
+
/** An attachment file path. */
|
|
7288
|
+
filepath: string;
|
|
7289
|
+
/** An attachment file name. */
|
|
7289
7290
|
name: string;
|
|
7290
7291
|
}
|
|
7291
7292
|
/**
|
|
@@ -8883,10 +8884,11 @@ export interface Multiselect {
|
|
|
8883
8884
|
/**
|
|
8884
8885
|
* Find a duplicate in the multiselect.
|
|
8885
8886
|
*
|
|
8887
|
+
* @param value - the value that will be checked for being a duplicate.
|
|
8886
8888
|
* @param values - the values to find a duplicate in.
|
|
8887
|
-
* @returns
|
|
8889
|
+
* @returns the index of value if duplicate, otherwise `-1`.
|
|
8888
8890
|
*/
|
|
8889
|
-
findDuplicate?(
|
|
8891
|
+
findDuplicate?(value: string, values: string[]): number;
|
|
8890
8892
|
/**
|
|
8891
8893
|
* Focus an element of the multiselect.
|
|
8892
8894
|
*
|
|
@@ -8914,7 +8916,7 @@ export interface Multiselect {
|
|
|
8914
8916
|
* @param findDuplicate - the function to find a duplicate.
|
|
8915
8917
|
* @returns the multiselect.
|
|
8916
8918
|
*/
|
|
8917
|
-
preventDuplicates(findDuplicate: (
|
|
8919
|
+
preventDuplicates(findDuplicate: (value: string, values: string[]) => number): this;
|
|
8918
8920
|
/**
|
|
8919
8921
|
* Remove an element of the multiselect.
|
|
8920
8922
|
*
|
package/dist/cjs/types.d.cts
CHANGED
|
@@ -13223,9 +13223,12 @@ declare module "obsidian" {
|
|
|
13223
13223
|
/**
|
|
13224
13224
|
* Import attachments into specified folder.
|
|
13225
13225
|
*
|
|
13226
|
+
* @param attachmentsToImport - The attachments to import.
|
|
13227
|
+
* @param folder - The folder to import the attachments to.
|
|
13228
|
+
*
|
|
13226
13229
|
* @unofficial
|
|
13227
13230
|
*/
|
|
13228
|
-
importAttachments(
|
|
13231
|
+
importAttachments(attachmentsToImport: ImportedAttachment[], folder: TFolder | null): Promise<void>;
|
|
13229
13232
|
/**
|
|
13230
13233
|
* Initialize the entire application using the provided FS adapter
|
|
13231
13234
|
*
|
|
@@ -20039,7 +20042,7 @@ export interface ClipboardManager {
|
|
|
20039
20042
|
/**
|
|
20040
20043
|
* Insert files from drop-event into the editor.
|
|
20041
20044
|
*/
|
|
20042
|
-
insertFiles(
|
|
20045
|
+
insertFiles(importedAttachments: ImportedAttachment[]): Promise<void>;
|
|
20043
20046
|
/**
|
|
20044
20047
|
* Save an attachment of specified name and extension to the vault.
|
|
20045
20048
|
*
|
|
@@ -23482,18 +23485,19 @@ export interface ImageView extends EditableFileView {
|
|
|
23482
23485
|
export interface ImageViewConstructor extends TypedViewConstructor<ImageView> {
|
|
23483
23486
|
}
|
|
23484
23487
|
/**
|
|
23485
|
-
*
|
|
23488
|
+
* Imported attachment.
|
|
23489
|
+
*
|
|
23486
23490
|
* @public
|
|
23487
23491
|
* @unofficial
|
|
23488
23492
|
*/
|
|
23489
|
-
export interface
|
|
23490
|
-
/**
|
|
23493
|
+
export interface ImportedAttachment {
|
|
23494
|
+
/** Promise that resolves to the attachment file content. */
|
|
23491
23495
|
data: Promise<ArrayBuffer>;
|
|
23492
|
-
/**
|
|
23496
|
+
/** An attachment file extension. */
|
|
23493
23497
|
extension: string;
|
|
23494
|
-
/**
|
|
23495
|
-
|
|
23496
|
-
/**
|
|
23498
|
+
/** An attachment file path. */
|
|
23499
|
+
filepath: string;
|
|
23500
|
+
/** An attachment file name. */
|
|
23497
23501
|
name: string;
|
|
23498
23502
|
}
|
|
23499
23503
|
/**
|
|
@@ -25091,10 +25095,11 @@ export interface Multiselect {
|
|
|
25091
25095
|
/**
|
|
25092
25096
|
* Find a duplicate in the multiselect.
|
|
25093
25097
|
*
|
|
25098
|
+
* @param value - the value that will be checked for being a duplicate.
|
|
25094
25099
|
* @param values - the values to find a duplicate in.
|
|
25095
|
-
* @returns
|
|
25100
|
+
* @returns the index of value if duplicate, otherwise `-1`.
|
|
25096
25101
|
*/
|
|
25097
|
-
findDuplicate?(
|
|
25102
|
+
findDuplicate?(value: string, values: string[]): number;
|
|
25098
25103
|
/**
|
|
25099
25104
|
* Focus an element of the multiselect.
|
|
25100
25105
|
*
|
|
@@ -25122,7 +25127,7 @@ export interface Multiselect {
|
|
|
25122
25127
|
* @param findDuplicate - the function to find a duplicate.
|
|
25123
25128
|
* @returns the multiselect.
|
|
25124
25129
|
*/
|
|
25125
|
-
preventDuplicates(findDuplicate: (
|
|
25130
|
+
preventDuplicates(findDuplicate: (value: string, values: string[]) => number): this;
|
|
25126
25131
|
/**
|
|
25127
25132
|
* Remove an element of the multiselect.
|
|
25128
25133
|
*
|
|
@@ -37617,12 +37617,12 @@
|
|
|
37617
37617
|
"excerptTokens": [
|
|
37618
37618
|
{
|
|
37619
37619
|
"kind": "Content",
|
|
37620
|
-
"text": "insertFiles(
|
|
37620
|
+
"text": "insertFiles(importedAttachments: "
|
|
37621
37621
|
},
|
|
37622
37622
|
{
|
|
37623
37623
|
"kind": "Reference",
|
|
37624
|
-
"text": "
|
|
37625
|
-
"canonicalReference": "obsidian-typings!
|
|
37624
|
+
"text": "ImportedAttachment",
|
|
37625
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment:interface"
|
|
37626
37626
|
},
|
|
37627
37627
|
{
|
|
37628
37628
|
"kind": "Content",
|
|
@@ -37655,7 +37655,7 @@
|
|
|
37655
37655
|
"overloadIndex": 1,
|
|
37656
37656
|
"parameters": [
|
|
37657
37657
|
{
|
|
37658
|
-
"parameterName": "
|
|
37658
|
+
"parameterName": "importedAttachments",
|
|
37659
37659
|
"parameterTypeTokenRange": {
|
|
37660
37660
|
"startIndex": 1,
|
|
37661
37661
|
"endIndex": 3
|
|
@@ -76104,23 +76104,23 @@
|
|
|
76104
76104
|
},
|
|
76105
76105
|
{
|
|
76106
76106
|
"kind": "Interface",
|
|
76107
|
-
"canonicalReference": "obsidian-typings!
|
|
76108
|
-
"docComment": "/**\n *
|
|
76107
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment:interface",
|
|
76108
|
+
"docComment": "/**\n * Imported attachment.\n *\n * @unofficial\n *\n * @public\n */\n",
|
|
76109
76109
|
"excerptTokens": [
|
|
76110
76110
|
{
|
|
76111
76111
|
"kind": "Content",
|
|
76112
|
-
"text": "export interface
|
|
76112
|
+
"text": "export interface ImportedAttachment "
|
|
76113
76113
|
}
|
|
76114
76114
|
],
|
|
76115
|
-
"fileUrlPath": "src/obsidian/internals/
|
|
76115
|
+
"fileUrlPath": "src/obsidian/internals/ImportedAttachment.d.ts",
|
|
76116
76116
|
"releaseTag": "Public",
|
|
76117
|
-
"name": "
|
|
76117
|
+
"name": "ImportedAttachment",
|
|
76118
76118
|
"preserveMemberOrder": false,
|
|
76119
76119
|
"members": [
|
|
76120
76120
|
{
|
|
76121
76121
|
"kind": "PropertySignature",
|
|
76122
|
-
"canonicalReference": "obsidian-typings!
|
|
76123
|
-
"docComment": "/**\n *
|
|
76122
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment#data:member",
|
|
76123
|
+
"docComment": "/**\n * Promise that resolves to the attachment file content.\n */\n",
|
|
76124
76124
|
"excerptTokens": [
|
|
76125
76125
|
{
|
|
76126
76126
|
"kind": "Content",
|
|
@@ -76160,8 +76160,8 @@
|
|
|
76160
76160
|
},
|
|
76161
76161
|
{
|
|
76162
76162
|
"kind": "PropertySignature",
|
|
76163
|
-
"canonicalReference": "obsidian-typings!
|
|
76164
|
-
"docComment": "/**\n *
|
|
76163
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment#extension:member",
|
|
76164
|
+
"docComment": "/**\n * An attachment file extension.\n */\n",
|
|
76165
76165
|
"excerptTokens": [
|
|
76166
76166
|
{
|
|
76167
76167
|
"kind": "Content",
|
|
@@ -76187,12 +76187,12 @@
|
|
|
76187
76187
|
},
|
|
76188
76188
|
{
|
|
76189
76189
|
"kind": "PropertySignature",
|
|
76190
|
-
"canonicalReference": "obsidian-typings!
|
|
76191
|
-
"docComment": "/**\n *
|
|
76190
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment#filepath:member",
|
|
76191
|
+
"docComment": "/**\n * An attachment file path.\n */\n",
|
|
76192
76192
|
"excerptTokens": [
|
|
76193
76193
|
{
|
|
76194
76194
|
"kind": "Content",
|
|
76195
|
-
"text": "
|
|
76195
|
+
"text": "filepath: "
|
|
76196
76196
|
},
|
|
76197
76197
|
{
|
|
76198
76198
|
"kind": "Content",
|
|
@@ -76206,7 +76206,7 @@
|
|
|
76206
76206
|
"isReadonly": false,
|
|
76207
76207
|
"isOptional": false,
|
|
76208
76208
|
"releaseTag": "Public",
|
|
76209
|
-
"name": "
|
|
76209
|
+
"name": "filepath",
|
|
76210
76210
|
"propertyTypeTokenRange": {
|
|
76211
76211
|
"startIndex": 1,
|
|
76212
76212
|
"endIndex": 2
|
|
@@ -76214,8 +76214,8 @@
|
|
|
76214
76214
|
},
|
|
76215
76215
|
{
|
|
76216
76216
|
"kind": "PropertySignature",
|
|
76217
|
-
"canonicalReference": "obsidian-typings!
|
|
76218
|
-
"docComment": "/**\n *
|
|
76217
|
+
"canonicalReference": "obsidian-typings!ImportedAttachment#name:member",
|
|
76218
|
+
"docComment": "/**\n * An attachment file name.\n */\n",
|
|
76219
76219
|
"excerptTokens": [
|
|
76220
76220
|
{
|
|
76221
76221
|
"kind": "Content",
|
|
@@ -93158,16 +93158,15 @@
|
|
|
93158
93158
|
{
|
|
93159
93159
|
"kind": "MethodSignature",
|
|
93160
93160
|
"canonicalReference": "obsidian-typings!Multiselect#findDuplicate:member(1)",
|
|
93161
|
-
"docComment": "/**\n * Find a duplicate in the multiselect.\n *\n * @param values - the values to find a duplicate in.\n *\n * @returns
|
|
93161
|
+
"docComment": "/**\n * Find a duplicate in the multiselect.\n *\n * @param value - the value that will be checked for being a duplicate.\n *\n * @param values - the values to find a duplicate in.\n *\n * @returns the index of value if duplicate, otherwise `-1`.\n */\n",
|
|
93162
93162
|
"excerptTokens": [
|
|
93163
93163
|
{
|
|
93164
93164
|
"kind": "Content",
|
|
93165
|
-
"text": "findDuplicate?(
|
|
93165
|
+
"text": "findDuplicate?(value: "
|
|
93166
93166
|
},
|
|
93167
93167
|
{
|
|
93168
|
-
"kind": "
|
|
93169
|
-
"text": "
|
|
93170
|
-
"canonicalReference": "obsidian-typings!Multiselect:interface"
|
|
93168
|
+
"kind": "Content",
|
|
93169
|
+
"text": "string"
|
|
93171
93170
|
},
|
|
93172
93171
|
{
|
|
93173
93172
|
"kind": "Content",
|
|
@@ -93183,7 +93182,7 @@
|
|
|
93183
93182
|
},
|
|
93184
93183
|
{
|
|
93185
93184
|
"kind": "Content",
|
|
93186
|
-
"text": "
|
|
93185
|
+
"text": "number"
|
|
93187
93186
|
},
|
|
93188
93187
|
{
|
|
93189
93188
|
"kind": "Content",
|
|
@@ -93199,7 +93198,7 @@
|
|
|
93199
93198
|
"overloadIndex": 1,
|
|
93200
93199
|
"parameters": [
|
|
93201
93200
|
{
|
|
93202
|
-
"parameterName": "
|
|
93201
|
+
"parameterName": "value",
|
|
93203
93202
|
"parameterTypeTokenRange": {
|
|
93204
93203
|
"startIndex": 1,
|
|
93205
93204
|
"endIndex": 2
|
|
@@ -93531,16 +93530,7 @@
|
|
|
93531
93530
|
},
|
|
93532
93531
|
{
|
|
93533
93532
|
"kind": "Content",
|
|
93534
|
-
"text": "(
|
|
93535
|
-
},
|
|
93536
|
-
{
|
|
93537
|
-
"kind": "Reference",
|
|
93538
|
-
"text": "Multiselect",
|
|
93539
|
-
"canonicalReference": "obsidian-typings!Multiselect:interface"
|
|
93540
|
-
},
|
|
93541
|
-
{
|
|
93542
|
-
"kind": "Content",
|
|
93543
|
-
"text": ", values: string[]) => number"
|
|
93533
|
+
"text": "(value: string, values: string[]) => number"
|
|
93544
93534
|
},
|
|
93545
93535
|
{
|
|
93546
93536
|
"kind": "Content",
|
|
@@ -93557,8 +93547,8 @@
|
|
|
93557
93547
|
],
|
|
93558
93548
|
"isOptional": false,
|
|
93559
93549
|
"returnTypeTokenRange": {
|
|
93560
|
-
"startIndex":
|
|
93561
|
-
"endIndex":
|
|
93550
|
+
"startIndex": 3,
|
|
93551
|
+
"endIndex": 4
|
|
93562
93552
|
},
|
|
93563
93553
|
"releaseTag": "Public",
|
|
93564
93554
|
"overloadIndex": 1,
|
|
@@ -93567,7 +93557,7 @@
|
|
|
93567
93557
|
"parameterName": "findDuplicate",
|
|
93568
93558
|
"parameterTypeTokenRange": {
|
|
93569
93559
|
"startIndex": 1,
|
|
93570
|
-
"endIndex":
|
|
93560
|
+
"endIndex": 2
|
|
93571
93561
|
},
|
|
93572
93562
|
"isOptional": false
|
|
93573
93563
|
}
|