@sliprail/sdk 0.1.5 → 0.1.6

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 +4 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -52,7 +52,7 @@ export type KVStorage = {
52
52
  set: (key: string, value: unknown) => Promise<void>;
53
53
  get: (key: string) => Promise<unknown | undefined>;
54
54
  has: (key: string) => Promise<boolean>;
55
- remove: (key: string) => Promise<void>;
55
+ delete: (key: string) => Promise<void>;
56
56
  };
57
57
  export type LivePreviewContent = {
58
58
  content: string;
@@ -60,7 +60,7 @@ export type LivePreviewContent = {
60
60
  };
61
61
  export type ShortcutContext = SliprailMain & {
62
62
  parameter: any;
63
- getSettings: () => Promise<Record<string, unknown>>;
63
+ getSettings: (keys?: string[]) => Promise<Record<string, unknown>>;
64
64
  createWindow: (options: WindowOptions) => WindowControl;
65
65
  createStorage: () => KVStorage;
66
66
  getWindows: () => WindowControl[];
@@ -98,6 +98,7 @@ export type ExtensionInfo = {
98
98
  settingDefinitions?: SettingDefinition[];
99
99
  hasSettings: boolean;
100
100
  hasStatus: boolean;
101
+ limited: boolean;
101
102
  };
102
103
  type CommonSettingOptions = {
103
104
  id: string;
@@ -210,6 +211,7 @@ export type SliprailMain = {
210
211
  showAlert: (message: string) => void;
211
212
  copyToClipboard: (content: string) => void;
212
213
  pasteFromClipboard: () => string;
214
+ pasteFilesFromClipboard: () => string[];
213
215
  getSystemWindows: () => Promise<WindowInfo[]>;
214
216
  captureAllDisplays: () => Promise<Screenshot[]>;
215
217
  createWindowChannel: () => WindowChannel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sliprail/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",