@sliprail/sdk 0.1.23 → 0.1.24

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/lib/index.d.ts +7 -6
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -35,6 +35,7 @@ export type WindowOptions = {
35
35
  skipTaskbar?: boolean;
36
36
  thickFrame?: boolean;
37
37
  fullscreen?: boolean;
38
+ coverPrimaryDisplay?: boolean;
38
39
  fullscreenable?: boolean;
39
40
  frame?: boolean;
40
41
  hasShadow?: boolean;
@@ -261,18 +262,18 @@ export type SliprailMain = {
261
262
  }) => any;
262
263
  showAlert: (message: string) => void;
263
264
  showConfirm: (message: string) => Promise<boolean>;
264
- writeTextToClipboard: (content: string) => void;
265
+ writeTextToClipboard: (content: string) => Promise<void>;
265
266
  writeHTMLToClipboard: (content: {
266
267
  html: string;
267
268
  text: string;
268
- }) => void;
269
+ }) => Promise<void>;
269
270
  writeRTFToClipboard: (content: {
270
271
  rtf: string;
271
272
  text: string;
272
- }) => void;
273
- readTextFromClipboard: () => string;
274
- readHTMLFromClipboard: () => string;
275
- readRTFFromClipboard: () => string;
273
+ }) => Promise<void>;
274
+ readTextFromClipboard: () => Promise<string>;
275
+ readHTMLFromClipboard: () => Promise<string>;
276
+ readRTFFromClipboard: () => Promise<string>;
276
277
  readFilesFromClipboard: () => string[];
277
278
  getSystemWindows: () => Promise<WindowInfo[]>;
278
279
  captureAllDisplays: () => Promise<Screenshot[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sliprail/sdk",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",
@@ -12,7 +12,7 @@
12
12
  "@types/react": "^19.2.17"
13
13
  },
14
14
  "devDependencies": {
15
- "@types/node": "^24.13.3",
15
+ "@types/node": "^24.13.6",
16
16
  "typescript": "6.0.3"
17
17
  },
18
18
  "engines": {