@sliprail/sdk 0.1.6 → 0.1.8
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 -14
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -91,15 +91,6 @@ export type Shortcut = {
|
|
|
91
91
|
};
|
|
92
92
|
export type ExtensionSettingValue = undefined | boolean | string | string[] | ExtensionSettings[];
|
|
93
93
|
export type ExtensionSettings = Record<string, ExtensionSettingValue>;
|
|
94
|
-
export type ExtensionInfo = {
|
|
95
|
-
id: string;
|
|
96
|
-
displayName?: string;
|
|
97
|
-
settingValues: Record<string, any>;
|
|
98
|
-
settingDefinitions?: SettingDefinition[];
|
|
99
|
-
hasSettings: boolean;
|
|
100
|
-
hasStatus: boolean;
|
|
101
|
-
limited: boolean;
|
|
102
|
-
};
|
|
103
94
|
type CommonSettingOptions = {
|
|
104
95
|
id: string;
|
|
105
96
|
displayName: string;
|
|
@@ -196,12 +187,12 @@ export type SliprailMain = {
|
|
|
196
187
|
openUrl: (url: string) => void;
|
|
197
188
|
openPath: (path: string) => void;
|
|
198
189
|
openFileLocation: (path: string) => void;
|
|
199
|
-
copyFilesToClipboard: (paths: string[]) => void;
|
|
200
190
|
deleteFiles: (paths: string[]) => void;
|
|
201
191
|
saveTextFile: (options: {
|
|
202
192
|
filename: string;
|
|
203
193
|
content: string;
|
|
204
194
|
}) => Promise<void>;
|
|
195
|
+
writeFilesToClipboard: (paths: string[]) => void;
|
|
205
196
|
cutFilesToClipboard: (paths: string[]) => void;
|
|
206
197
|
selectFiles: (options?: SelectFilesOptions) => Promise<string[]>;
|
|
207
198
|
showNotification: (options: {
|
|
@@ -209,9 +200,19 @@ export type SliprailMain = {
|
|
|
209
200
|
message: string;
|
|
210
201
|
}) => any;
|
|
211
202
|
showAlert: (message: string) => void;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
203
|
+
writeTextToClipboard: (content: string) => void;
|
|
204
|
+
writeHTMLToClipboard: (content: {
|
|
205
|
+
html: string;
|
|
206
|
+
text: string;
|
|
207
|
+
}) => void;
|
|
208
|
+
writeRTFToClipboard: (content: {
|
|
209
|
+
rtf: string;
|
|
210
|
+
text: string;
|
|
211
|
+
}) => void;
|
|
212
|
+
readTextFromClipboard: () => string;
|
|
213
|
+
readHTMLFromClipboard: () => string;
|
|
214
|
+
readRTFFromClipboard: () => string;
|
|
215
|
+
readFilesFromClipboard: () => string[];
|
|
215
216
|
getSystemWindows: () => Promise<WindowInfo[]>;
|
|
216
217
|
captureAllDisplays: () => Promise<Screenshot[]>;
|
|
217
218
|
createWindowChannel: () => WindowChannel;
|
|
@@ -230,7 +231,7 @@ export type SliprailRenderer = {
|
|
|
230
231
|
openUrl: (url: string) => void;
|
|
231
232
|
openPath: (path: string) => void;
|
|
232
233
|
openFileLocation: (path: string) => void;
|
|
233
|
-
|
|
234
|
+
writeFilesToClipboard: (paths: string[]) => void;
|
|
234
235
|
cutFilesToClipboard: (paths: string[]) => void;
|
|
235
236
|
deleteFiles: (paths: string[]) => void;
|
|
236
237
|
selectDirectory: () => Promise<string | undefined>;
|