@yaakapp/api 0.4.1 → 0.5.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.
@@ -552,6 +552,8 @@ export type InternalEventPayload = {
552
552
  } & OpenWindowRequest | {
553
553
  "type": "window_navigate_event";
554
554
  } & WindowNavigateEvent | {
555
+ "type": "window_close_event";
556
+ } | {
555
557
  "type": "close_window_request";
556
558
  } & CloseWindowRequest | {
557
559
  "type": "template_render_request";
@@ -587,6 +589,7 @@ export type OpenWindowRequest = {
587
589
  label: string;
588
590
  title?: string;
589
591
  size?: WindowSize;
592
+ dataDirKey?: string;
590
593
  };
591
594
  export type PromptTextRequest = {
592
595
  id: string;
@@ -19,6 +19,7 @@ export interface Context {
19
19
  onNavigate?: (args: {
20
20
  url: string;
21
21
  }) => void;
22
+ onClose: () => void;
22
23
  }): Promise<{
23
24
  close: () => void;
24
25
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaakapp/api",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "main": "lib/index.js",
5
5
  "typings": "./lib/index.d.ts",
6
6
  "files": [