@sliprail/sdk 0.1.6 → 0.1.7
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/lib/index.d.ts +15 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -196,12 +196,12 @@ export type SliprailMain = {
|
|
|
196
196
|
openUrl: (url: string) => void;
|
|
197
197
|
openPath: (path: string) => void;
|
|
198
198
|
openFileLocation: (path: string) => void;
|
|
199
|
-
copyFilesToClipboard: (paths: string[]) => void;
|
|
200
199
|
deleteFiles: (paths: string[]) => void;
|
|
201
200
|
saveTextFile: (options: {
|
|
202
201
|
filename: string;
|
|
203
202
|
content: string;
|
|
204
203
|
}) => Promise<void>;
|
|
204
|
+
writeFilesToClipboard: (paths: string[]) => void;
|
|
205
205
|
cutFilesToClipboard: (paths: string[]) => void;
|
|
206
206
|
selectFiles: (options?: SelectFilesOptions) => Promise<string[]>;
|
|
207
207
|
showNotification: (options: {
|
|
@@ -209,9 +209,19 @@ export type SliprailMain = {
|
|
|
209
209
|
message: string;
|
|
210
210
|
}) => any;
|
|
211
211
|
showAlert: (message: string) => void;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
writeTextToClipboard: (content: string) => void;
|
|
213
|
+
writeHTMLToClipboard: (content: {
|
|
214
|
+
html: string;
|
|
215
|
+
text: string;
|
|
216
|
+
}) => void;
|
|
217
|
+
writeRTFToClipboard: (content: {
|
|
218
|
+
rtf: string;
|
|
219
|
+
text: string;
|
|
220
|
+
}) => void;
|
|
221
|
+
readTextFromClipboard: () => string;
|
|
222
|
+
readHTMLFromClipboard: () => string;
|
|
223
|
+
readRTFFromClipboard: () => string;
|
|
224
|
+
readFilesFromClipboard: () => string[];
|
|
215
225
|
getSystemWindows: () => Promise<WindowInfo[]>;
|
|
216
226
|
captureAllDisplays: () => Promise<Screenshot[]>;
|
|
217
227
|
createWindowChannel: () => WindowChannel;
|
|
@@ -230,7 +240,7 @@ export type SliprailRenderer = {
|
|
|
230
240
|
openUrl: (url: string) => void;
|
|
231
241
|
openPath: (path: string) => void;
|
|
232
242
|
openFileLocation: (path: string) => void;
|
|
233
|
-
|
|
243
|
+
writeFilesToClipboard: (paths: string[]) => void;
|
|
234
244
|
cutFilesToClipboard: (paths: string[]) => void;
|
|
235
245
|
deleteFiles: (paths: string[]) => void;
|
|
236
246
|
selectDirectory: () => Promise<string | undefined>;
|