@scm-js/plugin-api 1.69.0 → 1.71.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/index.d.ts +20 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1395,6 +1395,20 @@ export interface Toast {
|
|
|
1395
1395
|
label: string;
|
|
1396
1396
|
run: () => void;
|
|
1397
1397
|
};
|
|
1398
|
+
/**
|
|
1399
|
+
* Buttons in a row under the text, for a notice that offers more than one way on — the
|
|
1400
|
+
* terrain notice's data set to switch to, folder to draw from and Game Data…. Pressing
|
|
1401
|
+
* one dismisses the toast unless it says `keep` (a button that opens a picker the person
|
|
1402
|
+
* may back out of).
|
|
1403
|
+
*/
|
|
1404
|
+
actions?: ToastAction[];
|
|
1405
|
+
}
|
|
1406
|
+
/** One of a toast's `actions`. */
|
|
1407
|
+
export interface ToastAction {
|
|
1408
|
+
label: string;
|
|
1409
|
+
run: () => void;
|
|
1410
|
+
/** Leave the toast up when pressed. */
|
|
1411
|
+
keep?: boolean;
|
|
1398
1412
|
}
|
|
1399
1413
|
/**
|
|
1400
1414
|
* The colour and layout codes StarCraft reads out of a string, and what a string looks
|
|
@@ -5914,9 +5928,14 @@ export interface PickFilesOptions {
|
|
|
5914
5928
|
accept?: string;
|
|
5915
5929
|
multiple?: boolean;
|
|
5916
5930
|
/**
|
|
5917
|
-
* Pick a folder rather than files: `pickFiles` then resolves with
|
|
5931
|
+
* Pick a folder rather than files: `pickFiles` then resolves with the files in it and
|
|
5918
5932
|
* its subfolders as `FolderFile`s, with their paths. The browser's folder picker where it
|
|
5919
5933
|
* has one, else the file input's folder mode; an empty list when the user cancels.
|
|
5934
|
+
*
|
|
5935
|
+
* The folder picker leaves out, without saying so, the files the browser keeps back from
|
|
5936
|
+
* a page: `desktop.ini`, shortcuts, names Windows keeps for devices and, on Windows, whole
|
|
5937
|
+
* file types such as `.ini` and `.dll`. A folder dropped on the editor
|
|
5938
|
+
* (`FileTypeSpec.openFolder`) comes with every file.
|
|
5920
5939
|
*/
|
|
5921
5940
|
directory?: boolean;
|
|
5922
5941
|
}
|