prozilla-os 1.3.6 → 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 +2 -2
- 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>;
|
|
@@ -1069,6 +1086,11 @@ declare interface VirtualDriveConfigOptions {
|
|
|
1069
1086
|
* @default true
|
|
1070
1087
|
*/
|
|
1071
1088
|
includeSourceTree?: boolean;
|
|
1089
|
+
/**
|
|
1090
|
+
* Include apps folder in default data
|
|
1091
|
+
* @default true
|
|
1092
|
+
*/
|
|
1093
|
+
includeAppsFolder?: boolean;
|
|
1072
1094
|
loadData?: (virtualRoot: VirtualRoot) => void;
|
|
1073
1095
|
};
|
|
1074
1096
|
}
|
package/dist/main.js
CHANGED
|
@@ -3885,7 +3885,7 @@ function So({ app: e, path: t, selectorMode: n, Footer: r, onSelectionChange: a,
|
|
|
3885
3885
|
}
|
|
3886
3886
|
var Oo = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Oo || {});
|
|
3887
3887
|
const Po = new $n("File Explorer", "file-explorer", So).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(Rt.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
|
|
3888
|
-
Po.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.
|
|
3888
|
+
Po.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.11", author: "Prozilla" });
|
|
3889
3889
|
(function() {
|
|
3890
3890
|
try {
|
|
3891
3891
|
if (typeof document < "u") {
|
|
@@ -3913,7 +3913,7 @@ function Co({ file: e, close: t, setTitle: n }) {
|
|
|
3913
3913
|
return e.extension == null || !Wn.includes(e.extension) ? /* @__PURE__ */ b("p", { children: "Invalid file format." }) : e.source == null ? /* @__PURE__ */ b("p", { children: "File failed to load." }) : /* @__PURE__ */ b("div", { className: ko.MediaViewer, children: /* @__PURE__ */ b("img", { src: e.source, alt: e.id, draggable: "false" }) });
|
|
3914
3914
|
}
|
|
3915
3915
|
const Io = new $n("Media Viewer", "media-viewer", Co).setIconUrl("https://os.prozilla.dev/assets/apps/icons/media-viewer.svg").setRole(Rt.APP_ROLES.mediaViewer).setAssociatedExtensions(Wn).setCategory("Photo & video");
|
|
3916
|
-
Io.setMetadata({ name: "@prozilla-os/media-viewer", version: "1.1.
|
|
3916
|
+
Io.setMetadata({ name: "@prozilla-os/media-viewer", version: "1.1.11", author: "Prozilla" });
|
|
3917
3917
|
export {
|
|
3918
3918
|
Oo as FileSelectorMode,
|
|
3919
3919
|
Po as fileExplorer,
|