@edenapp/types 0.9.0 → 0.10.1

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.
@@ -0,0 +1,10 @@
1
+ export interface AppAssociation {
2
+ appId: string;
3
+ kind: string;
4
+ label?: string;
5
+ }
6
+
7
+ export interface AppAssociationStore {
8
+ version: 1;
9
+ associations: Record<string, AppAssociation>;
10
+ }
package/AppManifest.d.ts CHANGED
@@ -77,6 +77,16 @@ export interface WindowConfig {
77
77
  /** Whether to show the title in the title bar (default: true) */
78
78
  showTitle?: boolean;
79
79
 
80
+ /** Whether to show the minimize button in the title bar (default: true) */
81
+ showMinimize?: boolean;
82
+
83
+ /**
84
+ * Stacking priority for overlay windows (default: 0).
85
+ * Higher-priority overlays are displayed above lower-priority overlays.
86
+ * Within the same priority, normal view recency controls ordering.
87
+ */
88
+ overlayPriority?: number;
89
+
80
90
  /** Controls which Eden runtime helpers are injected into the app */
81
91
  injections?: WindowInjectionOptions;
82
92
 
@@ -147,6 +157,8 @@ export interface SettingDefinition {
147
157
  description?: string | Record<string, string>;
148
158
  /** Grant key used for access control */
149
159
  grant?: string;
160
+ /** App IDs allowed to read this setting from the owner's namespace */
161
+ sharedWith?: string[];
150
162
  /** Input type */
151
163
  type: SettingType;
152
164
  /** Default value (as string, will be parsed based on type) */
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @edenapp/types
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix reflect import
8
+
9
+ ## 0.10.0
10
+
3
11
  ## 0.9.0
4
12
 
5
13
  ## 0.8.0
@@ -0,0 +1,42 @@
1
+ import type { ViewBounds } from "./index";
2
+
3
+ export type FilePickerMode = "open" | "save";
4
+
5
+ export type FilePickerSelectionMode = "file" | "directory";
6
+
7
+ export type FilePickerCloseReason = "select" | "cancel" | "close";
8
+
9
+ export interface FilePickerFilter {
10
+ name: string;
11
+ extensions?: string[];
12
+ mimeTypes?: string[];
13
+ }
14
+
15
+ export interface FilePickerOpenArgs {
16
+ mode: FilePickerMode;
17
+ selection?: FilePickerSelectionMode;
18
+ multiple?: boolean;
19
+ title?: string;
20
+ initialPath?: string;
21
+ suggestedName?: string;
22
+ filters?: FilePickerFilter[];
23
+ confirmLabel?: string;
24
+ canCreateDirectories?: boolean;
25
+ overwritePrompt?: boolean;
26
+ }
27
+
28
+ export interface FilePickerOpenEvent extends FilePickerOpenArgs {
29
+ requestId: string;
30
+ opener: {
31
+ appId: string;
32
+ viewId?: number;
33
+ bounds?: ViewBounds;
34
+ };
35
+ }
36
+
37
+ export interface FilePickerResult {
38
+ requestId: string;
39
+ reason: FilePickerCloseReason;
40
+ path?: string;
41
+ paths?: string[];
42
+ }
@@ -19,6 +19,36 @@ export interface SystemCommands {
19
19
  };
20
20
  }
21
21
 
22
+ /**
23
+ * AssociationsCommands - Commands for the "associations" namespace
24
+ */
25
+ export interface AssociationsCommands {
26
+ "associations/get": {
27
+ args: { key: string };
28
+ response: {
29
+ association: import("./index").AppAssociation | undefined;
30
+ };
31
+ };
32
+ "associations/set": {
33
+ args: {
34
+ key: string;
35
+ appId: string;
36
+ kind: string;
37
+ label?: string };
38
+ response: { success: boolean };
39
+ };
40
+ "associations/remove": {
41
+ args: { key: string };
42
+ response: { success: boolean };
43
+ };
44
+ "associations/list": {
45
+ args: { kindPrefix?: string };
46
+ response: {
47
+ associations: Record<string, import("./index").AppAssociation>;
48
+ };
49
+ };
50
+ }
51
+
22
52
  /**
23
53
  * AppbusCommands - Commands for the "appbus" namespace
24
54
  */
@@ -288,6 +318,29 @@ export interface FileCommands {
288
318
  };
289
319
  }
290
320
 
321
+ /**
322
+ * FilePickerCommands - Commands for the "file-picker" namespace
323
+ */
324
+ export interface FilePickerCommands {
325
+ "file-picker/register-display": {
326
+ args: { };
327
+ response: { success: boolean };
328
+ };
329
+ "file-picker/open": {
330
+ args: import("./index").FilePickerOpenArgs & { };
331
+ response: { requestId: string };
332
+ };
333
+ "file-picker/resolve": {
334
+ args: import("./index").FilePickerResult & { };
335
+ response: { success: boolean };
336
+ };
337
+ "file-picker/close": {
338
+ args: {
339
+ requestId?: string };
340
+ response: { success: boolean };
341
+ };
342
+ }
343
+
291
344
  /**
292
345
  * FsCommands - Commands for the "fs" namespace
293
346
  */
@@ -421,6 +474,13 @@ export interface EventCommands {
421
474
  * NotificationCommands - Commands for the "notification" namespace
422
475
  */
423
476
  export interface NotificationCommands {
477
+ /**
478
+ * Register the notification display provider.
479
+ */
480
+ "notification/register-display": {
481
+ args: { };
482
+ response: { success: boolean };
483
+ };
424
484
  /**
425
485
  * Push a new notification to subscribers.
426
486
  */
@@ -429,9 +489,27 @@ export interface NotificationCommands {
429
489
  title: string;
430
490
  message: string;
431
491
  timeout?: number;
432
- type?: import("./index").NotificationType };
492
+ type?: import("./index").NotificationType;
493
+ actions?: import("./index").NotificationAction[] };
433
494
  response: import("./index").Notification;
434
495
  };
496
+ /**
497
+ * Report a notification action click from the toaster.
498
+ */
499
+ "notification/action-clicked": {
500
+ args: {
501
+ notificationId: string;
502
+ actionId: string };
503
+ response: { success: boolean };
504
+ };
505
+ /**
506
+ * Report a notification dismissal from the toaster.
507
+ */
508
+ "notification/dismissed": {
509
+ args: {
510
+ notificationId: string };
511
+ response: { success: boolean };
512
+ };
435
513
  }
436
514
 
437
515
  /**
@@ -571,7 +649,8 @@ export interface SettingsCommands {
571
649
  */
572
650
  "settings/get": {
573
651
  args: {
574
- key: string };
652
+ key: string;
653
+ appId?: string };
575
654
  response: { value: string | undefined };
576
655
  };
577
656
  /**
@@ -925,4 +1004,4 @@ export interface ViewCommands {
925
1004
  /**
926
1005
  * Global command map - merge all command namespaces
927
1006
  */
928
- export interface CommandMap extends SystemCommands, AppbusCommands, AppearanceCommands, ContextMenuCommands, DbCommands, FileCommands, FsCommands, I18nCommands, EventCommands, NotificationCommands, PackageCommands, ProcessCommands, SettingsCommands, UserCommands, ViewCommands {}
1007
+ export interface CommandMap extends SystemCommands, AssociationsCommands, AppbusCommands, AppearanceCommands, ContextMenuCommands, DbCommands, FileCommands, FilePickerCommands, FsCommands, I18nCommands, EventCommands, NotificationCommands, PackageCommands, ProcessCommands, SettingsCommands, UserCommands, ViewCommands {}
@@ -28,6 +28,14 @@ export interface FileEvents {
28
28
  "file/opened": { path: string; isDirectory: boolean; appId: string };
29
29
  }
30
30
 
31
+ /**
32
+ * FilePickerEvents - Events for the "file-picker" namespace
33
+ */
34
+ export interface FilePickerEvents {
35
+ "file-picker/opened": { picker: import("./index").FilePickerOpenEvent };
36
+ "file-picker/closed": import("./index").FilePickerResult;
37
+ }
38
+
31
39
  /**
32
40
  * I18nEvents - Events for the "i18n" namespace
33
41
  */
@@ -41,6 +49,10 @@ export interface I18nEvents {
41
49
  export interface NotificationEvents {
42
50
  "notification/added": { notification: import("./index").Notification };
43
51
  "notification/removed": { id: string };
52
+ "notification/action-clicked": {
53
+ notificationId: string;
54
+ actionId: string;
55
+ };
44
56
  }
45
57
 
46
58
  /**
@@ -101,4 +113,4 @@ export interface ViewEvents {
101
113
  /**
102
114
  * Global event map - merge all event namespaces
103
115
  */
104
- export interface AppEvents extends AppearanceEvents, ContextMenuEvents, FileEvents, I18nEvents, NotificationEvents, PackageEvents, ProcessEvents, SettingsEvents, UserEvents, ViewEvents {}
116
+ export interface AppEvents extends AppearanceEvents, ContextMenuEvents, FileEvents, FilePickerEvents, I18nEvents, NotificationEvents, PackageEvents, ProcessEvents, SettingsEvents, UserEvents, ViewEvents {}
package/global.d.ts CHANGED
@@ -20,6 +20,8 @@ export interface EdenFrame {
20
20
  config: {
21
21
  mode?: "tiled" | "floating" | "both";
22
22
  showTitle?: boolean;
23
+ showMinimize?: boolean;
24
+ overlayPriority?: number;
23
25
  defaultSize?: { width: number; height: number };
24
26
  defaultPosition?: { x: number; y: number };
25
27
  movable?: boolean;
package/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./EdenSeedConfig";
5
5
  export * from "./User";
6
6
 
7
7
  export * from "./AppManifest";
8
+ export * from "./AppAssociation";
8
9
  export * from "./ProcessMetrics";
9
10
 
10
11
  export * from "./global";
@@ -158,6 +159,12 @@ export interface SearchResult {
158
159
  */
159
160
  export type NotificationType = "info" | "success" | "warning" | "danger";
160
161
 
162
+ export interface NotificationAction {
163
+ id: string;
164
+ label: string;
165
+ dismissOnClick?: boolean;
166
+ }
167
+
161
168
  /**
162
169
  * Notification data structure
163
170
  */
@@ -170,9 +177,11 @@ export interface Notification {
170
177
  createdAt: number;
171
178
  /** Notification type for styling (default: info) */
172
179
  type?: NotificationType;
180
+ actions?: NotificationAction[];
173
181
  }
174
182
 
175
183
  export * from "./ContextMenu";
184
+ export * from "./FilePicker";
176
185
 
177
186
  export interface WallpaperPreset {
178
187
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edenapp/types",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "TypeScript type definitions for the Eden platform",
5
5
  "types": "index.d.ts",
6
6
  "author": "Dariusz Majnert",