orgnote-api 0.41.14 → 0.41.16
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.d.ts +2 -1
- package/constants/i18n-keys.d.ts +9 -0
- package/constants/i18n-keys.js +1 -0
- package/models/default-commands.d.ts +7 -0
- package/models/default-commands.js +7 -0
- package/models/file-content.d.ts +5 -0
- package/models/file-content.js +1 -0
- package/models/file-manager-store.d.ts +19 -2
- package/models/file-system-store.d.ts +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlineEmbeddedWidget, MultilineEmbeddedWidget, OrgLineClass, SyncStoreDefinition, BufferViewerStoreDefinition, CommandsStoreDefinition, CommandsGroupStoreDefinition, ModalStoreDefinition, SettingsStoreDefinition, SettingsUiStoreDefinition, MultipleUploadParams, UploadParams, CompletionStoreDefinition, PaneStoreDefinition, LayoutStoreDefinition, FileManagerStoreDefinition, UseScreenDetection, UseKeyboardState, NotificationsStoreDefinition, BufferStoreDefinition, BufferProviderStoreDefinition, Repositories, LogStoreDefinition, UseSystemInfo, ContextMenuStoreDefinition, QueueStoreDefinition, FileGuardStoreDefinition, FileWatcherStoreDefinition, BuildOrgNoteUrl, AuthStoreDefinition, FileSearchStoreDefinition, FileMetaStoreDefinition, FontStoreDefinition, EmbeddedBufferStoreDefinition } from './models/index.js';
|
|
1
|
+
import { InlineEmbeddedWidget, MultilineEmbeddedWidget, OrgLineClass, SyncStoreDefinition, BufferViewerStoreDefinition, CommandsStoreDefinition, CommandsGroupStoreDefinition, ModalStoreDefinition, SettingsStoreDefinition, SettingsUiStoreDefinition, MultipleUploadParams, UploadParams, CompletionStoreDefinition, PaneStoreDefinition, LayoutStoreDefinition, FileManagerStoreDefinition, UseScreenDetection, UseKeyboardState, NotificationsStoreDefinition, BufferStoreDefinition, BufferProviderStoreDefinition, Repositories, LogStoreDefinition, UseSystemInfo, ContextMenuStoreDefinition, QueueStoreDefinition, FileGuardStoreDefinition, FileWatcherStoreDefinition, BuildOrgNoteUrl, AuthStoreDefinition, FileSearchStoreDefinition, FileMetaStoreDefinition, FontStoreDefinition, EmbeddedBufferStoreDefinition, UseFileContent } from './models/index.js';
|
|
2
2
|
import { WebSocketClient } from './websocket/client.js';
|
|
3
3
|
import { WidgetType } from './models/widget-type.js';
|
|
4
4
|
import { NodeType } from 'org-mode-ast';
|
|
@@ -76,6 +76,7 @@ export interface OrgNoteApi {
|
|
|
76
76
|
useFileSearch: FileSearchStoreDefinition;
|
|
77
77
|
useFileMeta: FileMetaStoreDefinition;
|
|
78
78
|
useEmbeddedBuffer: EmbeddedBufferStoreDefinition;
|
|
79
|
+
useFileContent: UseFileContent;
|
|
79
80
|
app: App;
|
|
80
81
|
};
|
|
81
82
|
utils: {
|
package/constants/i18n-keys.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare enum i18n {
|
|
|
76
76
|
DELETE = "delete",
|
|
77
77
|
RENAME = "rename",
|
|
78
78
|
COPY = "copy",
|
|
79
|
+
MOVE = "move",
|
|
79
80
|
CREATE_FILE = "create file",
|
|
80
81
|
FILE_NAME = "file name",
|
|
81
82
|
DIR_NAME = "directory name",
|
|
@@ -236,6 +237,13 @@ export declare const I18N: {
|
|
|
236
237
|
CREATE_FILE: DefaultCommands.CREATE_FILE;
|
|
237
238
|
RENAME_FILE: DefaultCommands.RENAME_FILE;
|
|
238
239
|
DELETE_FILE: DefaultCommands.DELETE_FILE;
|
|
240
|
+
COPY_FILE: DefaultCommands.COPY_FILE;
|
|
241
|
+
MOVE_FILE: DefaultCommands.MOVE_FILE;
|
|
242
|
+
SELECT_FILE: DefaultCommands.SELECT_FILE;
|
|
243
|
+
SELECT_ALL_FILES: DefaultCommands.SELECT_ALL_FILES;
|
|
244
|
+
DESELECT_ALL_FILES: DefaultCommands.DESELECT_ALL_FILES;
|
|
245
|
+
EXECUTE_PENDING_FILE_OPERATION: DefaultCommands.EXECUTE_PENDING_FILE_OPERATION;
|
|
246
|
+
CANCEL_PENDING_FILE_OPERATION: DefaultCommands.CANCEL_PENDING_FILE_OPERATION;
|
|
239
247
|
CONFIRM_FILE_DELETION: DefaultCommands.CONFIRM_FILE_DELETION;
|
|
240
248
|
NEW_FILE_PATH: DefaultCommands.NEW_FILE_PATH;
|
|
241
249
|
SHOW_MOBILE_FILE_SEARCH: DefaultCommands.SHOW_MOBILE_FILE_SEARCH;
|
|
@@ -357,6 +365,7 @@ export declare const I18N: {
|
|
|
357
365
|
DELETE: i18n.DELETE;
|
|
358
366
|
RENAME: i18n.RENAME;
|
|
359
367
|
COPY: i18n.COPY;
|
|
368
|
+
MOVE: i18n.MOVE;
|
|
360
369
|
FILE_NAME: i18n.FILE_NAME;
|
|
361
370
|
DIR_NAME: i18n.DIR_NAME;
|
|
362
371
|
FINISH_SETUP: i18n.FINISH_SETUP;
|
package/constants/i18n-keys.js
CHANGED
|
@@ -67,6 +67,13 @@ export declare enum DefaultCommands {
|
|
|
67
67
|
CREATE_FILE = "create file",
|
|
68
68
|
RENAME_FILE = "rename file",
|
|
69
69
|
DELETE_FILE = "delete file",
|
|
70
|
+
COPY_FILE = "copy file",
|
|
71
|
+
MOVE_FILE = "move file",
|
|
72
|
+
SELECT_FILE = "select file",
|
|
73
|
+
SELECT_ALL_FILES = "select all files",
|
|
74
|
+
DESELECT_ALL_FILES = "deselect all files",
|
|
75
|
+
EXECUTE_PENDING_FILE_OPERATION = "paste files here",
|
|
76
|
+
CANCEL_PENDING_FILE_OPERATION = "cancel file operation",
|
|
70
77
|
CONFIRM_FILE_DELETION = "are you sure you want to delete file?",
|
|
71
78
|
NEW_FILE_PATH = "new file path",
|
|
72
79
|
SHOW_MOBILE_FILE_SEARCH = "show mobile file search",
|
|
@@ -82,6 +82,13 @@ export var DefaultCommands;
|
|
|
82
82
|
DefaultCommands["CREATE_FILE"] = "create file";
|
|
83
83
|
DefaultCommands["RENAME_FILE"] = "rename file";
|
|
84
84
|
DefaultCommands["DELETE_FILE"] = "delete file";
|
|
85
|
+
DefaultCommands["COPY_FILE"] = "copy file";
|
|
86
|
+
DefaultCommands["MOVE_FILE"] = "move file";
|
|
87
|
+
DefaultCommands["SELECT_FILE"] = "select file";
|
|
88
|
+
DefaultCommands["SELECT_ALL_FILES"] = "select all files";
|
|
89
|
+
DefaultCommands["DESELECT_ALL_FILES"] = "deselect all files";
|
|
90
|
+
DefaultCommands["EXECUTE_PENDING_FILE_OPERATION"] = "paste files here";
|
|
91
|
+
DefaultCommands["CANCEL_PENDING_FILE_OPERATION"] = "cancel file operation";
|
|
85
92
|
DefaultCommands["CONFIRM_FILE_DELETION"] = "are you sure you want to delete file?";
|
|
86
93
|
DefaultCommands["NEW_FILE_PATH"] = "new file path";
|
|
87
94
|
DefaultCommands["SHOW_MOBILE_FILE_SEARCH"] = "show mobile file search";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import { StoreDefinition } from './store.js';
|
|
2
|
-
import { Ref, ShallowRef } from 'vue';
|
|
2
|
+
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
3
3
|
import { DiskFile } from './file-system.js';
|
|
4
|
+
export type PendingFileOperation = {
|
|
5
|
+
type: 'copy' | 'move';
|
|
6
|
+
paths: string[];
|
|
7
|
+
};
|
|
4
8
|
export interface FileManagerStore {
|
|
5
9
|
path: Ref<string>;
|
|
6
10
|
focusFile: ShallowRef<DiskFile | undefined>;
|
|
7
11
|
focusDirPath: Ref<string>;
|
|
8
12
|
searchQuery: Ref<string>;
|
|
9
13
|
mobileFileSearchActive: Ref<boolean>;
|
|
10
|
-
|
|
14
|
+
selectionMode: ComputedRef<boolean>;
|
|
15
|
+
selectedFiles: Ref<Set<string>>;
|
|
16
|
+
operationTargets: ComputedRef<string[]>;
|
|
17
|
+
pendingOperation: Ref<PendingFileOperation | undefined>;
|
|
18
|
+
toggleSelection: (path: string) => void;
|
|
19
|
+
selectFiles: (files: DiskFile[]) => void;
|
|
20
|
+
clearSelection: () => void;
|
|
21
|
+
startCopy: (paths: string[]) => void;
|
|
22
|
+
startMove: (paths: string[]) => void;
|
|
23
|
+
executePending: (dest: string) => Promise<void>;
|
|
24
|
+
cancelPending: () => void;
|
|
25
|
+
copyFiles: (paths: string[], dest: string) => Promise<void>;
|
|
26
|
+
moveFiles: (paths: string[], dest: string) => Promise<void>;
|
|
27
|
+
deleteFiles: (paths: string[]) => Promise<void>;
|
|
11
28
|
createFolder: (path?: string) => Promise<void>;
|
|
12
29
|
createFile: (path?: string) => Promise<void>;
|
|
13
30
|
}
|
|
@@ -13,6 +13,7 @@ export interface FileSystemStore {
|
|
|
13
13
|
rmdir(path: string | string[]): Promise<void>;
|
|
14
14
|
fileInfo(path: string | string[]): Promise<DiskFile | undefined>;
|
|
15
15
|
readDir(path?: string | string[]): Promise<DiskFile[]>;
|
|
16
|
+
copyFile(src: string | string[], dest: string | string[]): Promise<void>;
|
|
16
17
|
dropFileSystem: () => Promise<void>;
|
|
17
18
|
prettyVault: Ref<string>;
|
|
18
19
|
}
|
package/models/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export * from './font-store.js';
|
|
|
85
85
|
export * from './file-search-store.js';
|
|
86
86
|
export * from './file-meta-store.js';
|
|
87
87
|
export * from './embedded-buffer-store.js';
|
|
88
|
+
export * from './file-content.js';
|
|
88
89
|
export * from './style-variant.js';
|
|
89
90
|
export * from './style-size.js';
|
|
90
91
|
export * from './repositories.js';
|
package/models/index.js
CHANGED
|
@@ -87,6 +87,7 @@ export * from "./font-store.js";
|
|
|
87
87
|
export * from "./file-search-store.js";
|
|
88
88
|
export * from "./file-meta-store.js";
|
|
89
89
|
export * from "./embedded-buffer-store.js";
|
|
90
|
+
export * from "./file-content.js";
|
|
90
91
|
// UI
|
|
91
92
|
export * from "./style-variant.js";
|
|
92
93
|
export * from "./style-size.js";
|