-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 6.57 KB
/
package.json
File metadata and controls
120 lines (120 loc) · 6.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "@honeide/editor",
"version": "0.2.0",
"description": "High-performance, cross-platform code editor surface",
"main": "core/index.ts",
"types": "core/index.ts",
"exports": {
".": "./core/index.ts",
"./perry": "./perry/index.ts"
},
"scripts": {
"test": "bun test",
"test:watch": "bun test --watch",
"bench": "bun run tests/benchmarks/keystroke-latency.ts && bun run tests/benchmarks/large-file-open.ts && bun run tests/benchmarks/scroll-perf.ts"
},
"keywords": ["editor", "code-editor", "perry", "native"],
"license": "MIT",
"dependencies": {
"@lezer/common": "^1.2.3",
"@lezer/highlight": "^1.2.1",
"@lezer/javascript": "^1.4.21",
"@lezer/html": "^1.3.10",
"@lezer/css": "^1.1.9",
"@lezer/json": "^1.0.3",
"@lezer/markdown": "^1.3.2",
"@lezer/python": "^1.1.15",
"@lezer/rust": "^1.0.2",
"@lezer/cpp": "^1.1.2"
},
"devDependencies": {
"@lezer/generator": "^1.7.2",
"@types/bun": "latest",
"typescript": "^5.7.0"
},
"perry": {
"nativeLibrary": {
"module": "@honeide/editor",
"functions": [
{ "name": "hone_editor_create", "params": ["f64", "f64"], "returns": "i64" },
{ "name": "hone_editor_destroy", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_set_font", "params": ["i64", "i64", "f64"], "returns": "void" },
{ "name": "hone_editor_render_line", "params": ["i64", "f64", "i64", "i64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_cursor", "params": ["i64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_selection", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_scroll", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_measure_text", "params": ["i64", "i64"], "returns": "f64" },
{ "name": "hone_editor_invalidate", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_begin_frame", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_end_frame", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_render_ghost_text", "params": ["i64", "i64", "f64", "f64", "i64"], "returns": "void" },
{ "name": "hone_editor_render_decorations", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_set_cursors", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_attach_to_view", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_nsview", "params": ["i64"], "returns": "i64" },
{ "name": "hone_editor_set_event_callback", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_pending_event_count", "params": ["i64"], "returns": "f64" },
{ "name": "hone_editor_get_event_type", "params": ["i64", "f64"], "returns": "f64" },
{ "name": "hone_editor_get_event_char", "params": ["i64", "f64"], "returns": "f64" },
{ "name": "hone_editor_get_event_action", "params": ["i64", "f64"], "returns": "f64" },
{ "name": "hone_editor_get_event_x", "params": ["i64", "f64"], "returns": "f64" },
{ "name": "hone_editor_get_event_y", "params": ["i64", "f64"], "returns": "f64" },
{ "name": "hone_editor_clear_events", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_set_ts_mode", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_is_ios", "params": [], "returns": "f64" },
{ "name": "hone_editor_set_gutter_width", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_read_only", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_line_background", "params": ["i64", "f64", "f64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_clear_line_backgrounds", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_get_scroll_delta", "params": ["i64"], "returns": "f64" },
{ "name": "hone_editor_get_view_width", "params": ["i64"], "returns": "f64" },
{ "name": "hone_editor_get_view_height", "params": ["i64"], "returns": "f64" },
{ "name": "hone_editor_clear_scroll_delta", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_needs_lines", "params": ["i64"], "returns": "f64" },
{ "name": "hone_editor_clear_line_cache", "params": ["i64"], "returns": "void" },
{ "name": "hone_editor_cache_line", "params": ["i64", "f64", "i64", "i64"], "returns": "void" },
{ "name": "hone_editor_invalidate_line", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_viewport", "params": ["i64", "f64", "f64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_begin_selections", "params": ["i64", "f64"], "returns": "void" },
{ "name": "hone_editor_add_selection_rect", "params": ["i64", "f64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_bg_color", "params": ["i64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_fg_color", "params": ["i64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_gutter_fg_color", "params": ["i64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_selection_color", "params": ["i64", "f64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_set_cursor_color", "params": ["i64", "f64", "f64", "f64"], "returns": "void" },
{ "name": "hone_editor_copy_to_clipboard", "params": ["i64", "i64"], "returns": "void" },
{ "name": "hone_editor_paste_from_clipboard", "params": ["i64"], "returns": "void" }
],
"targets": {
"macos": {
"crate": "native/macos/",
"lib": "libhone_editor_macos.a",
"frameworks": ["CoreText", "CoreGraphics", "CoreFoundation", "Metal", "QuartzCore"]
},
"ios": {
"crate": "native/ios/",
"lib": "libhone_editor_ios.a",
"frameworks": ["CoreText", "CoreGraphics", "CoreFoundation", "UIKit"]
},
"windows": {
"crate": "native/windows/",
"lib": "hone_editor_windows.lib",
"libs": ["dwrite", "d2d1", "dcomp"]
},
"linux": {
"crate": "native/linux/",
"lib": "libhone_editor_linux.a",
"pkgConfig": ["pango", "pangocairo", "cairo"]
},
"android": {
"crate": "native/android/",
"lib": "libhone_editor_android.so"
},
"web": {
"crate": "native/web/",
"lib": "hone_editor_web.wasm"
}
}
}
}
}