orgnote-api 0.41.40 → 0.41.43
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/constants/i18n-keys.d.ts +28 -1
- package/constants/i18n-keys.js +13 -0
- package/constants/route-names.d.ts +2 -0
- package/constants/route-names.js +2 -0
- package/models/buffer-uri.d.ts +1 -1
- package/models/default-commands.d.ts +3 -0
- package/models/default-commands.js +3 -0
- package/models/orgnote-config.d.ts +11 -0
- package/models/orgnote-config.js +10 -0
- package/package.json +1 -1
package/constants/i18n-keys.d.ts
CHANGED
|
@@ -188,7 +188,19 @@ export declare enum i18n {
|
|
|
188
188
|
GPG_EMAIL_REQUIRED = "gpg email required",
|
|
189
189
|
GPG_EMAIL_INVALID = "gpg email invalid",
|
|
190
190
|
CLEAR_ALL_NOTIFICATIONS = "clear all notifications",
|
|
191
|
-
NO_NOTIFICATIONS = "no notifications"
|
|
191
|
+
NO_NOTIFICATIONS = "no notifications",
|
|
192
|
+
GRAPH_TITLE = "graph.title",
|
|
193
|
+
GRAPH_DESCRIPTION = "graph.description",
|
|
194
|
+
GRAPH_EMPTY_TITLE = "graph.empty.title",
|
|
195
|
+
GRAPH_EMPTY_DESCRIPTION = "graph.empty.description",
|
|
196
|
+
GRAPH_ERROR_TITLE = "graph.error.title",
|
|
197
|
+
GRAPH_SELECTED_LABEL = "graph.selected.label",
|
|
198
|
+
GRAPH_REFRESH = "graph.refresh",
|
|
199
|
+
GRAPH_NODES_LABEL = "graph.nodes.label",
|
|
200
|
+
GRAPH_EDGES_LABEL = "graph.edges.label",
|
|
201
|
+
GRAPH_SETTINGS_TITLE = "graph.settings.title",
|
|
202
|
+
GRAPH_SETTINGS_GROUP = "graph.settings.group",
|
|
203
|
+
LOCAL_GRAPH_TITLE = "local.graph.title"
|
|
192
204
|
}
|
|
193
205
|
export declare const I18N: {
|
|
194
206
|
REPORT_BUG: DefaultCommands.REPORT_BUG;
|
|
@@ -207,6 +219,7 @@ export declare const I18N: {
|
|
|
207
219
|
OPEN_BACKLINKS: DefaultCommands.OPEN_BACKLINKS;
|
|
208
220
|
OPEN_OUTLINE: DefaultCommands.OPEN_OUTLINE;
|
|
209
221
|
OPEN_LOCAL_GRAPH: DefaultCommands.OPEN_LOCAL_GRAPH;
|
|
222
|
+
LOCAL_GRAPH: DefaultCommands.LOCAL_GRAPH;
|
|
210
223
|
TOGGLE_AST_DEBUGGER: DefaultCommands.TOGGLE_AST_DEBUGGER;
|
|
211
224
|
SEARCH: DefaultCommands.SEARCH;
|
|
212
225
|
TOGGLE_COMMANDS: DefaultCommands.TOGGLE_COMMANDS;
|
|
@@ -245,6 +258,8 @@ export declare const I18N: {
|
|
|
245
258
|
OPEN_NOTE_EDITOR: DefaultCommands.OPEN_NOTE_EDITOR;
|
|
246
259
|
OPEN_NOTE_VIEWER: DefaultCommands.OPEN_NOTE_VIEWER;
|
|
247
260
|
OPEN_GRAPH: DefaultCommands.OPEN_GRAPH;
|
|
261
|
+
GRAPH_SETTINGS: DefaultCommands.GRAPH_SETTINGS;
|
|
262
|
+
OPEN_GRAPH_SETTINGS: DefaultCommands.OPEN_GRAPH_SETTINGS;
|
|
248
263
|
SELECT_FILE_PATH: DefaultCommands.SELECT_FILE_PATH;
|
|
249
264
|
PICK_SYNC_DIR: DefaultCommands.PICK_SYNC_DIR;
|
|
250
265
|
SYNC_FILES: DefaultCommands.SYNC_FILES;
|
|
@@ -505,5 +520,17 @@ export declare const I18N: {
|
|
|
505
520
|
GPG_EMAIL_INVALID: i18n.GPG_EMAIL_INVALID;
|
|
506
521
|
CLEAR_ALL_NOTIFICATIONS: i18n.CLEAR_ALL_NOTIFICATIONS;
|
|
507
522
|
NO_NOTIFICATIONS: i18n.NO_NOTIFICATIONS;
|
|
523
|
+
GRAPH_TITLE: i18n.GRAPH_TITLE;
|
|
524
|
+
GRAPH_DESCRIPTION: i18n.GRAPH_DESCRIPTION;
|
|
525
|
+
GRAPH_EMPTY_TITLE: i18n.GRAPH_EMPTY_TITLE;
|
|
526
|
+
GRAPH_EMPTY_DESCRIPTION: i18n.GRAPH_EMPTY_DESCRIPTION;
|
|
527
|
+
GRAPH_ERROR_TITLE: i18n.GRAPH_ERROR_TITLE;
|
|
528
|
+
GRAPH_SELECTED_LABEL: i18n.GRAPH_SELECTED_LABEL;
|
|
529
|
+
GRAPH_REFRESH: i18n.GRAPH_REFRESH;
|
|
530
|
+
GRAPH_NODES_LABEL: i18n.GRAPH_NODES_LABEL;
|
|
531
|
+
GRAPH_EDGES_LABEL: i18n.GRAPH_EDGES_LABEL;
|
|
532
|
+
GRAPH_SETTINGS_TITLE: i18n.GRAPH_SETTINGS_TITLE;
|
|
533
|
+
GRAPH_SETTINGS_GROUP: i18n.GRAPH_SETTINGS_GROUP;
|
|
534
|
+
LOCAL_GRAPH_TITLE: i18n.LOCAL_GRAPH_TITLE;
|
|
508
535
|
};
|
|
509
536
|
export type I18N = i18n | DefaultCommands;
|
package/constants/i18n-keys.js
CHANGED
|
@@ -200,6 +200,19 @@ export var i18n;
|
|
|
200
200
|
i18n["GPG_EMAIL_INVALID"] = "gpg email invalid";
|
|
201
201
|
i18n["CLEAR_ALL_NOTIFICATIONS"] = "clear all notifications";
|
|
202
202
|
i18n["NO_NOTIFICATIONS"] = "no notifications";
|
|
203
|
+
// Graph
|
|
204
|
+
i18n["GRAPH_TITLE"] = "graph.title";
|
|
205
|
+
i18n["GRAPH_DESCRIPTION"] = "graph.description";
|
|
206
|
+
i18n["GRAPH_EMPTY_TITLE"] = "graph.empty.title";
|
|
207
|
+
i18n["GRAPH_EMPTY_DESCRIPTION"] = "graph.empty.description";
|
|
208
|
+
i18n["GRAPH_ERROR_TITLE"] = "graph.error.title";
|
|
209
|
+
i18n["GRAPH_SELECTED_LABEL"] = "graph.selected.label";
|
|
210
|
+
i18n["GRAPH_REFRESH"] = "graph.refresh";
|
|
211
|
+
i18n["GRAPH_NODES_LABEL"] = "graph.nodes.label";
|
|
212
|
+
i18n["GRAPH_EDGES_LABEL"] = "graph.edges.label";
|
|
213
|
+
i18n["GRAPH_SETTINGS_TITLE"] = "graph.settings.title";
|
|
214
|
+
i18n["GRAPH_SETTINGS_GROUP"] = "graph.settings.group";
|
|
215
|
+
i18n["LOCAL_GRAPH_TITLE"] = "local.graph.title";
|
|
203
216
|
})(i18n || (i18n = {}));
|
|
204
217
|
export const I18N = {
|
|
205
218
|
...i18n,
|
|
@@ -24,6 +24,8 @@ export declare enum RouteNames {
|
|
|
24
24
|
ApiSettings = "ApiSettings",
|
|
25
25
|
AuthenticationSettings = "AuthenticationSettings",
|
|
26
26
|
SynchronisationSettings = "SynchronisationSettings",
|
|
27
|
+
GraphSettings = "GraphSettings",
|
|
28
|
+
Builtin = "Builtin",
|
|
27
29
|
Extensions = "Extensions",
|
|
28
30
|
Keybindings = "Keybindings",
|
|
29
31
|
RawEditor = "Raw editor",
|
package/constants/route-names.js
CHANGED
|
@@ -25,6 +25,8 @@ export var RouteNames;
|
|
|
25
25
|
RouteNames["ApiSettings"] = "ApiSettings";
|
|
26
26
|
RouteNames["AuthenticationSettings"] = "AuthenticationSettings";
|
|
27
27
|
RouteNames["SynchronisationSettings"] = "SynchronisationSettings";
|
|
28
|
+
RouteNames["GraphSettings"] = "GraphSettings";
|
|
29
|
+
RouteNames["Builtin"] = "Builtin";
|
|
28
30
|
RouteNames["Extensions"] = "Extensions";
|
|
29
31
|
RouteNames["Keybindings"] = "Keybindings";
|
|
30
32
|
RouteNames["RawEditor"] = "Raw editor";
|
package/models/buffer-uri.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type BuiltinBufferScheme = 'file' | 'memory' | 'shared' | 'remote' | 'embedded';
|
|
1
|
+
export type BuiltinBufferScheme = 'file' | 'memory' | 'shared' | 'remote' | 'embedded' | 'builtin';
|
|
2
2
|
export type BufferScheme = BuiltinBufferScheme | (string & {});
|
|
3
3
|
export interface BufferUri {
|
|
4
4
|
scheme: BufferScheme;
|
|
@@ -15,6 +15,7 @@ export declare enum DefaultCommands {
|
|
|
15
15
|
OPEN_BACKLINKS = "open backlinks",
|
|
16
16
|
OPEN_OUTLINE = "open outline",
|
|
17
17
|
OPEN_LOCAL_GRAPH = "open local graph",
|
|
18
|
+
LOCAL_GRAPH = "local graph",
|
|
18
19
|
TOGGLE_AST_DEBUGGER = "toggle ast debugger",
|
|
19
20
|
SEARCH = "search",
|
|
20
21
|
TOGGLE_COMMANDS = "toggle commands",
|
|
@@ -53,6 +54,8 @@ export declare enum DefaultCommands {
|
|
|
53
54
|
OPEN_NOTE_EDITOR = "edit mode",
|
|
54
55
|
OPEN_NOTE_VIEWER = "view mode",
|
|
55
56
|
OPEN_GRAPH = "graph",
|
|
57
|
+
GRAPH_SETTINGS = "graph settings",
|
|
58
|
+
OPEN_GRAPH_SETTINGS = "open graph settings",
|
|
56
59
|
SELECT_FILE_PATH = "select file path",
|
|
57
60
|
PICK_SYNC_DIR = "pick sync dir",
|
|
58
61
|
SYNC_FILES = "sync files",
|
|
@@ -23,6 +23,7 @@ export var DefaultCommands;
|
|
|
23
23
|
DefaultCommands["OPEN_BACKLINKS"] = "open backlinks";
|
|
24
24
|
DefaultCommands["OPEN_OUTLINE"] = "open outline";
|
|
25
25
|
DefaultCommands["OPEN_LOCAL_GRAPH"] = "open local graph";
|
|
26
|
+
DefaultCommands["LOCAL_GRAPH"] = "local graph";
|
|
26
27
|
DefaultCommands["TOGGLE_AST_DEBUGGER"] = "toggle ast debugger";
|
|
27
28
|
// Completion commands
|
|
28
29
|
DefaultCommands["SEARCH"] = "search";
|
|
@@ -64,6 +65,8 @@ export var DefaultCommands;
|
|
|
64
65
|
DefaultCommands["OPEN_NOTE_EDITOR"] = "edit mode";
|
|
65
66
|
DefaultCommands["OPEN_NOTE_VIEWER"] = "view mode";
|
|
66
67
|
DefaultCommands["OPEN_GRAPH"] = "graph";
|
|
68
|
+
DefaultCommands["GRAPH_SETTINGS"] = "graph settings";
|
|
69
|
+
DefaultCommands["OPEN_GRAPH_SETTINGS"] = "open graph settings";
|
|
67
70
|
// Native mobile specific
|
|
68
71
|
DefaultCommands["SELECT_FILE_PATH"] = "select file path";
|
|
69
72
|
DefaultCommands["PICK_SYNC_DIR"] = "pick sync dir";
|
|
@@ -42,6 +42,16 @@ export declare const ORG_NOTE_CONFIG_SCHEMA: import("valibot").SchemaWithPipe<re
|
|
|
42
42
|
readonly persistantPanesSaveDelay: import("valibot").NumberSchema<undefined>;
|
|
43
43
|
readonly showFileTitleBar: import("valibot").BooleanSchema<undefined>;
|
|
44
44
|
readonly dropZoneEdgeRatio: import("valibot").NumberSchema<undefined>;
|
|
45
|
+
readonly graph: import("valibot").ObjectSchema<{
|
|
46
|
+
readonly nodeRelSize: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
47
|
+
readonly linkDistance: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
48
|
+
readonly chargeStrength: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
49
|
+
readonly warmupTicks: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
50
|
+
readonly velocityDecay: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
51
|
+
readonly initialZoom: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
52
|
+
readonly labelFontSize: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
53
|
+
readonly linkWidth: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>;
|
|
45
55
|
readonly fonts: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
46
56
|
readonly main: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
47
57
|
readonly editor: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -99,6 +109,7 @@ export interface DefinedOrgNoteSettings {
|
|
|
99
109
|
export type OrgNoteSettings = DefinedOrgNoteSettings & {
|
|
100
110
|
[key: string]: unknown;
|
|
101
111
|
};
|
|
112
|
+
export type GraphUiConfig = Required<NonNullable<InferOutput<typeof ORG_NOTE_CONFIG_SCHEMA>['ui']['graph']>>;
|
|
102
113
|
export type OrgNoteConfig = InferOutput<typeof ORG_NOTE_CONFIG_SCHEMA> & {
|
|
103
114
|
[key: string]: any;
|
|
104
115
|
};
|
package/models/orgnote-config.js
CHANGED
|
@@ -44,6 +44,16 @@ export const ORG_NOTE_CONFIG_SCHEMA = pipe(objectWithRest({
|
|
|
44
44
|
persistantPanesSaveDelay: number(),
|
|
45
45
|
showFileTitleBar: boolean(),
|
|
46
46
|
dropZoneEdgeRatio: number(),
|
|
47
|
+
graph: object({
|
|
48
|
+
nodeRelSize: optional(number()),
|
|
49
|
+
linkDistance: optional(number()),
|
|
50
|
+
chargeStrength: optional(number()),
|
|
51
|
+
warmupTicks: optional(number()),
|
|
52
|
+
velocityDecay: optional(number()),
|
|
53
|
+
initialZoom: optional(number()),
|
|
54
|
+
labelFontSize: optional(number()),
|
|
55
|
+
linkWidth: optional(number()),
|
|
56
|
+
}),
|
|
47
57
|
fonts: optional(object({
|
|
48
58
|
main: optional(string()),
|
|
49
59
|
editor: optional(string()),
|