@edenapp/types 0.6.5 → 0.7.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/AppManifest.d.ts +14 -4
- package/CHANGELOG.md +14 -0
- package/EdenConfig.d.ts +24 -4
- package/commands.generated.d.ts +8 -8
- package/package.json +1 -1
package/AppManifest.d.ts
CHANGED
|
@@ -38,6 +38,12 @@ export interface WindowConfig {
|
|
|
38
38
|
/** Window display modes supported by the app */
|
|
39
39
|
mode: WindowMode;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Preferred initial mode when the app supports both floating and tiled.
|
|
43
|
+
* If omitted, Eden prefers tiled when tiling is enabled, otherwise floating.
|
|
44
|
+
*/
|
|
45
|
+
defaultMode?: Exclude<WindowMode, "both">;
|
|
46
|
+
|
|
41
47
|
/** Default window size for floating mode */
|
|
42
48
|
defaultSize?: {
|
|
43
49
|
width: number;
|
|
@@ -90,13 +96,17 @@ export interface FileHandlerConfig {
|
|
|
90
96
|
name: string;
|
|
91
97
|
|
|
92
98
|
/** File extensions this handler supports (without dot, e.g., ["txt", "md"]) */
|
|
93
|
-
extensions
|
|
99
|
+
extensions?: string[];
|
|
94
100
|
|
|
95
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* MIME types this handler supports.
|
|
103
|
+
* Supports exact matches (e.g. "application/json") and type wildcards
|
|
104
|
+
* (e.g. "text/*").
|
|
105
|
+
*/
|
|
96
106
|
mimeTypes?: string[];
|
|
97
107
|
|
|
98
|
-
/**
|
|
99
|
-
|
|
108
|
+
/** Whether this handler can open directories */
|
|
109
|
+
directories?: boolean;
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
/**
|
package/CHANGELOG.md
CHANGED
package/EdenConfig.d.ts
CHANGED
|
@@ -3,18 +3,38 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Defines how the workspace should be divided for apps
|
|
5
5
|
*/
|
|
6
|
-
export type TilingMode = "none" | "horizontal" | "vertical" | "grid";
|
|
6
|
+
export type TilingMode = "none" | "horizontal" | "vertical" | "grid" | "smart";
|
|
7
7
|
|
|
8
8
|
export interface TilingConfig {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Tiling mode.
|
|
11
|
+
* - "grid" uses the configured row/column count.
|
|
12
|
+
* - "smart" derives the grid from minimum tile constraints.
|
|
13
|
+
*
|
|
14
|
+
* When a grid is only partially filled, Eden may compact the layout either
|
|
15
|
+
* by row or by column and chooses the variant whose tile shapes best match
|
|
16
|
+
* the configured target aspect ratio.
|
|
17
|
+
*/
|
|
10
18
|
mode: TilingMode;
|
|
11
19
|
|
|
12
|
-
/** Number of columns
|
|
20
|
+
/** Number of columns for fixed grid mode. */
|
|
13
21
|
columns?: number;
|
|
14
22
|
|
|
15
|
-
/** Number of rows
|
|
23
|
+
/** Number of rows for fixed grid mode. */
|
|
16
24
|
rows?: number;
|
|
17
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Minimum tile width in pixels for smart mode.
|
|
28
|
+
* Also contributes to the target aspect ratio used when a grid has empty cells.
|
|
29
|
+
*/
|
|
30
|
+
minTileWidth?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Minimum tile height in pixels for smart mode.
|
|
34
|
+
* Also contributes to the target aspect ratio used when a grid has empty cells.
|
|
35
|
+
*/
|
|
36
|
+
minTileHeight?: number;
|
|
37
|
+
|
|
18
38
|
/** Gap between tiles in pixels */
|
|
19
39
|
gap?: number;
|
|
20
40
|
|
package/commands.generated.d.ts
CHANGED
|
@@ -245,35 +245,35 @@ export interface FileCommands {
|
|
|
245
245
|
response: import("./index").FileOpenResult;
|
|
246
246
|
};
|
|
247
247
|
/**
|
|
248
|
-
* Get the default handler app for a file
|
|
248
|
+
* Get the default handler app for a file path
|
|
249
249
|
*/
|
|
250
250
|
"file/get-handler": {
|
|
251
251
|
args: {
|
|
252
|
-
|
|
252
|
+
path: string };
|
|
253
253
|
response: { appId: string | undefined };
|
|
254
254
|
};
|
|
255
255
|
/**
|
|
256
|
-
* Set user preference for a file
|
|
256
|
+
* Set user preference for a file path's default handler
|
|
257
257
|
*/
|
|
258
258
|
"file/set-default-handler": {
|
|
259
259
|
args: {
|
|
260
|
-
|
|
260
|
+
path: string;
|
|
261
261
|
appId: string };
|
|
262
262
|
response: void;
|
|
263
263
|
};
|
|
264
264
|
/**
|
|
265
|
-
* Remove user preference for a file
|
|
265
|
+
* Remove user preference for a file path (revert to default)
|
|
266
266
|
*/
|
|
267
267
|
"file/remove-default-handler": {
|
|
268
|
-
args: {
|
|
268
|
+
args: { path: string };
|
|
269
269
|
response: void;
|
|
270
270
|
};
|
|
271
271
|
/**
|
|
272
|
-
* Get all apps that can handle a specific file
|
|
272
|
+
* Get all apps that can handle a specific file path
|
|
273
273
|
*/
|
|
274
274
|
"file/get-supported-handlers": {
|
|
275
275
|
args: {
|
|
276
|
-
|
|
276
|
+
path: string };
|
|
277
277
|
response: import("./index").FileHandlerInfo[];
|
|
278
278
|
};
|
|
279
279
|
/**
|