@prozilla-os/core 1.3.5 → 1.3.7
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 +22 -0
- package/dist/main.js +462 -440
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
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;
|
|
@@ -1016,6 +1033,11 @@ declare interface VirtualDriveConfigOptions {
|
|
|
1016
1033
|
* @default true
|
|
1017
1034
|
*/
|
|
1018
1035
|
includeSourceTree?: boolean;
|
|
1036
|
+
/**
|
|
1037
|
+
* Include apps folder in default data
|
|
1038
|
+
* @default true
|
|
1039
|
+
*/
|
|
1040
|
+
includeAppsFolder?: boolean;
|
|
1019
1041
|
loadData?: (virtualRoot: VirtualRoot) => void;
|
|
1020
1042
|
};
|
|
1021
1043
|
}
|