@prozilla-os/core 1.3.6 → 1.3.8

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/dist/main.d.ts CHANGED
@@ -111,6 +111,11 @@ export declare class App<AppProps extends WindowProps = WindowProps> {
111
111
  * Metadata of the app's package
112
112
  */
113
113
  metadata: AppMetadata | null;
114
+ /**
115
+ * Determines whether a desktop icon is added to the default data
116
+ * @default false
117
+ */
118
+ showDesktopIcon: boolean;
114
119
  isActive: boolean;
115
120
  isPinned?: boolean;
116
121
  isInstalled: boolean;
@@ -152,7 +157,14 @@ export declare class App<AppProps extends WindowProps = WindowProps> {
152
157
  * Changes the category this application belongs to
153
158
  */
154
159
  setCategory(category: typeof APP_CATEGORIES[number] | null): this;
160
+ /**
161
+ * Changes the metadata for this application
162
+ */
155
163
  setMetadata(metadata: AppMetadata | null): this;
164
+ /**
165
+ * Changes whether this application has a desktop icon in the default data
166
+ */
167
+ setShowDesktopIcon(showDesktopIcon: boolean): this;
156
168
  }
157
169
 
158
170
  export declare const APP_CATEGORIES: readonly ["Business", "Developer tools", "Education", "Entertainment", "Food & dining", "Health & fitness", "Kids & family", "Lifestyle", "Media", "Medical", "Multimedia design", "Music", "Navigation & maps", "News & weather", "Personal finance", "Personalization", "Photo & video", "Productivity", "Security", "Shopping", "Social", "Sports", "Travel", "Utilities & tools"];
@@ -303,6 +315,11 @@ declare class EventEmitter<EventMap extends EventNamesMap> {
303
315
 
304
316
  declare type EventNamesMap = Record<string, string>;
305
317
 
318
+ export declare const FILE_SCHEMES: {
319
+ external: string;
320
+ app: string;
321
+ };
322
+
306
323
  export declare type FileEventHandler = (event: Event, file: VirtualFile) => void;
307
324
 
308
325
  export declare type FolderEventHandler = (event: Event, folder: VirtualFolder) => void;
@@ -943,6 +960,10 @@ declare class VirtualBase extends EventEmitter<EventNamesMap> {
943
960
  editedByUser: boolean | undefined | null;
944
961
  isRoot: boolean | undefined | null;
945
962
  root: VirtualRoot | undefined | null;
963
+ isDeleted: boolean;
964
+ static EVENT_NAMES: {
965
+ update: string;
966
+ };
946
967
  constructor(name: string);
947
968
  get id(): string;
948
969
  setName(name: string): this;
@@ -1016,6 +1037,11 @@ declare interface VirtualDriveConfigOptions {
1016
1037
  * @default true
1017
1038
  */
1018
1039
  includeSourceTree?: boolean;
1040
+ /**
1041
+ * Include apps folder in default data
1042
+ * @default true
1043
+ */
1044
+ includeAppsFolder?: boolean;
1019
1045
  loadData?: (virtualRoot: VirtualRoot) => void;
1020
1046
  };
1021
1047
  }
@@ -1029,6 +1055,7 @@ export declare class VirtualFile extends VirtualBase {
1029
1055
  content: OptionalStringProperty;
1030
1056
  static NON_TEXT_EXTENSIONS: string[];
1031
1057
  static EVENT_NAMES: {
1058
+ update: string;
1032
1059
  contentChange: string;
1033
1060
  };
1034
1061
  constructor(name: string, extension?: string);
@@ -1233,6 +1260,7 @@ export declare class VirtualRoot extends VirtualFolder {
1233
1260
  loadedDefaultData: boolean;
1234
1261
  systemManager: SystemManager;
1235
1262
  static EVENT_NAMES: {
1263
+ update: string;
1236
1264
  error: string;
1237
1265
  };
1238
1266
  constructor(systemManager: SystemManager);