orgnote-api 0.8.0 → 0.8.2

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/api.ts CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  WidgetBuilder,
10
10
  CommandPreview,
11
11
  OrgNoteEncryption,
12
+ Modal,
12
13
  } from './models';
13
14
  import type { NavigationFailure } from 'vue-router';
14
15
  import { WidgetType } from './models/widget-type';
@@ -29,6 +30,7 @@ export interface OrgNoteApi {
29
30
 
30
31
  system: {
31
32
  reload: (params?: { verbose: boolean }) => Promise<void>;
33
+ setNewFilesAvailable: (status?: boolean) => void;
32
34
  };
33
35
  navigation: {
34
36
  openNote: (id: string) => Promise<void | NavigationFailure>;
@@ -45,6 +47,7 @@ export interface OrgNoteApi {
45
47
  applyStyles: (scopeName: string, styles: string) => void;
46
48
  removeStyles: (scopeName: string) => void;
47
49
  resetTheme: () => void;
50
+ openModal: (modal: Modal) => void;
48
51
  };
49
52
  interaction: {
50
53
  confirm: (title: string, message: string) => Promise<boolean>;
package/models/modal.ts CHANGED
@@ -1,5 +1,12 @@
1
+ import { VueComponent } from './vue-component';
2
+
1
3
  export interface ModalConfig<T = any> {
2
4
  closable?: boolean;
3
5
  title?: string;
4
6
  modalProps?: T;
5
7
  }
8
+
9
+ export interface Modal {
10
+ config?: ModalConfig;
11
+ component: VueComponent;
12
+ }
@@ -0,0 +1,3 @@
1
+ export type VueComponent = {
2
+ __name: string;
3
+ } & any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.ts",