prozilla-os 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 +28 -0
- package/dist/main.js +524 -524
- package/dist/main.js.map +1 -1
- package/package.json +10 -10
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"];
|
|
@@ -313,6 +325,11 @@ declare class EventEmitter<EventMap extends EventNamesMap> {
|
|
|
313
325
|
|
|
314
326
|
declare type EventNamesMap = Record<string, string>;
|
|
315
327
|
|
|
328
|
+
export declare const FILE_SCHEMES: {
|
|
329
|
+
external: string;
|
|
330
|
+
app: string;
|
|
331
|
+
};
|
|
332
|
+
|
|
316
333
|
export declare type FileEventHandler = (event: Event, file: VirtualFile) => void;
|
|
317
334
|
|
|
318
335
|
export declare const fileExplorer: App<FileExplorerProps>;
|
|
@@ -996,6 +1013,10 @@ declare class VirtualBase extends EventEmitter<EventNamesMap> {
|
|
|
996
1013
|
editedByUser: boolean | undefined | null;
|
|
997
1014
|
isRoot: boolean | undefined | null;
|
|
998
1015
|
root: VirtualRoot | undefined | null;
|
|
1016
|
+
isDeleted: boolean;
|
|
1017
|
+
static EVENT_NAMES: {
|
|
1018
|
+
update: string;
|
|
1019
|
+
};
|
|
999
1020
|
constructor(name: string);
|
|
1000
1021
|
get id(): string;
|
|
1001
1022
|
setName(name: string): this;
|
|
@@ -1069,6 +1090,11 @@ declare interface VirtualDriveConfigOptions {
|
|
|
1069
1090
|
* @default true
|
|
1070
1091
|
*/
|
|
1071
1092
|
includeSourceTree?: boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* Include apps folder in default data
|
|
1095
|
+
* @default true
|
|
1096
|
+
*/
|
|
1097
|
+
includeAppsFolder?: boolean;
|
|
1072
1098
|
loadData?: (virtualRoot: VirtualRoot) => void;
|
|
1073
1099
|
};
|
|
1074
1100
|
}
|
|
@@ -1082,6 +1108,7 @@ export declare class VirtualFile extends VirtualBase {
|
|
|
1082
1108
|
content: OptionalStringProperty;
|
|
1083
1109
|
static NON_TEXT_EXTENSIONS: string[];
|
|
1084
1110
|
static EVENT_NAMES: {
|
|
1111
|
+
update: string;
|
|
1085
1112
|
contentChange: string;
|
|
1086
1113
|
};
|
|
1087
1114
|
constructor(name: string, extension?: string);
|
|
@@ -1286,6 +1313,7 @@ export declare class VirtualRoot extends VirtualFolder {
|
|
|
1286
1313
|
loadedDefaultData: boolean;
|
|
1287
1314
|
systemManager: SystemManager;
|
|
1288
1315
|
static EVENT_NAMES: {
|
|
1316
|
+
update: string;
|
|
1289
1317
|
error: string;
|
|
1290
1318
|
};
|
|
1291
1319
|
constructor(systemManager: SystemManager);
|