orgnote-api 0.41.38 → 0.41.40

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.
@@ -273,6 +273,7 @@ export declare const I18N: {
273
273
  NEW_FILE_PATH: DefaultCommands.NEW_FILE_PATH;
274
274
  SHOW_MOBILE_FILE_SEARCH: DefaultCommands.SHOW_MOBILE_FILE_SEARCH;
275
275
  HIDE_MOBILE_FILE_SEARCH: DefaultCommands.HIDE_MOBILE_FILE_SEARCH;
276
+ REVEAL_IN_FILE_MANAGER: DefaultCommands.REVEAL_IN_FILE_MANAGER;
276
277
  OPEN_NOTE: DefaultCommands.OPEN_NOTE;
277
278
  SHOW_FILE_INFO: DefaultCommands.SHOW_FILE_INFO;
278
279
  OPEN_FILE_ACTIONS: DefaultCommands.OPEN_FILE_ACTIONS;
@@ -1,7 +1,10 @@
1
1
  import { MenuAction, MenuGroupParams } from './menu-action.js';
2
+ import { CommandContext } from './pinned-commands-store.js';
2
3
  import { StoreDefinition } from './store.js';
3
4
  export interface ContextMenuStore {
4
- registerGroup: (group: string) => void;
5
+ registerGroup: (group: string, params?: {
6
+ commandContext?: CommandContext;
7
+ }) => void;
5
8
  updateContextGroup: (group: string, params: MenuGroupParams) => void;
6
9
  addContextMenuAction: (group: string, action: MenuAction) => void;
7
10
  removeContextMenuAction: (group: string, action: MenuAction) => void;
@@ -81,6 +81,7 @@ export declare enum DefaultCommands {
81
81
  NEW_FILE_PATH = "new file path",
82
82
  SHOW_MOBILE_FILE_SEARCH = "show mobile file search",
83
83
  HIDE_MOBILE_FILE_SEARCH = "hide mobile file search",
84
+ REVEAL_IN_FILE_MANAGER = "reveal in file manager",
84
85
  OPEN_NOTE = "open note",
85
86
  SHOW_FILE_INFO = "show file info",
86
87
  OPEN_FILE_ACTIONS = "open file actions",
@@ -96,6 +96,7 @@ export var DefaultCommands;
96
96
  DefaultCommands["NEW_FILE_PATH"] = "new file path";
97
97
  DefaultCommands["SHOW_MOBILE_FILE_SEARCH"] = "show mobile file search";
98
98
  DefaultCommands["HIDE_MOBILE_FILE_SEARCH"] = "hide mobile file search";
99
+ DefaultCommands["REVEAL_IN_FILE_MANAGER"] = "reveal in file manager";
99
100
  // Notes commands
100
101
  DefaultCommands["OPEN_NOTE"] = "open note";
101
102
  DefaultCommands["SHOW_FILE_INFO"] = "show file info";
@@ -1,7 +1,7 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { StoreDefinition } from './store.js';
3
3
  import type { CommandName } from './command.js';
4
- export type CommandContext = 'sidebar' | 'sidebar-footer' | 'right-sidebar' | 'edit-toolbar' | 'editor-actions' | ({} & string);
4
+ export type CommandContext = 'sidebar' | 'sidebar-footer' | 'right-sidebar' | 'edit-toolbar' | 'editor-actions' | 'file-actions' | 'context-menu-file' | 'context-menu-dir' | ({} & string);
5
5
  export interface PinnedCommandsStore {
6
6
  getCommands: (context: CommandContext) => Ref<CommandName[]>;
7
7
  addCommand: (context: CommandContext, command: CommandName) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.41.38",
3
+ "version": "0.41.40",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",