@edenapp/types 0.6.4 → 0.7.0

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 CHANGED
@@ -90,13 +90,17 @@ export interface FileHandlerConfig {
90
90
  name: string;
91
91
 
92
92
  /** File extensions this handler supports (without dot, e.g., ["txt", "md"]) */
93
- extensions: string[];
93
+ extensions?: string[];
94
94
 
95
- /** MIME types this handler supports (optional) */
95
+ /**
96
+ * MIME types this handler supports.
97
+ * Supports exact matches (e.g. "application/json") and type wildcards
98
+ * (e.g. "text/*").
99
+ */
96
100
  mimeTypes?: string[];
97
101
 
98
- /** Icon for this handler (optional) */
99
- icon?: string;
102
+ /** Whether this handler can open directories */
103
+ directories?: boolean;
100
104
  }
101
105
 
102
106
  /**
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @edenapp/types
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fileopen using mimetypes, open with, smart layout grid
8
+
9
+ ## 0.6.5
10
+
3
11
  ## 0.6.4
4
12
 
5
13
  ## 0.6.3
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
- /** Tiling mode */
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 (for grid mode) */
20
+ /** Number of columns for fixed grid mode. */
13
21
  columns?: number;
14
22
 
15
- /** Number of rows (for grid mode) */
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
 
@@ -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 extension
248
+ * Get the default handler app for a file path
249
249
  */
250
250
  "file/get-handler": {
251
251
  args: {
252
- extension: string };
252
+ path: string };
253
253
  response: { appId: string | undefined };
254
254
  };
255
255
  /**
256
- * Set user preference for a file extension's default handler
256
+ * Set user preference for a file path's default handler
257
257
  */
258
258
  "file/set-default-handler": {
259
259
  args: {
260
- extension: string;
260
+ path: string;
261
261
  appId: string };
262
262
  response: void;
263
263
  };
264
264
  /**
265
- * Remove user preference for a file extension (revert to default)
265
+ * Remove user preference for a file path (revert to default)
266
266
  */
267
267
  "file/remove-default-handler": {
268
- args: { extension: string };
268
+ args: { path: string };
269
269
  response: void;
270
270
  };
271
271
  /**
272
- * Get all apps that can handle a specific file extension
272
+ * Get all apps that can handle a specific file path
273
273
  */
274
274
  "file/get-supported-handlers": {
275
275
  args: {
276
- extension: string };
276
+ path: string };
277
277
  response: import("./index").FileHandlerInfo[];
278
278
  };
279
279
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edenapp/types",
3
- "version": "0.6.4",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript type definitions for the Eden platform",
5
5
  "types": "index.d.ts",
6
6
  "author": "Dariusz Majnert",