prozilla-os 1.3.3 → 1.3.5
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 -7
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/package.json +10 -10
package/dist/main.d.ts
CHANGED
|
@@ -645,6 +645,7 @@ declare class Skin {
|
|
|
645
645
|
fileIcons: SkinOptions["fileIcons"];
|
|
646
646
|
folderIcons: SkinOptions["folderIcons"];
|
|
647
647
|
loadStyleSheet: SkinOptions["loadStyleSheet"];
|
|
648
|
+
defaultTheme: SkinOptions["defaultTheme"];
|
|
648
649
|
constructor(options?: OptionalInterface_2<SkinOptions>);
|
|
649
650
|
}
|
|
650
651
|
|
|
@@ -700,6 +701,10 @@ declare interface SkinOptions {
|
|
|
700
701
|
* Function that dynamically imports style sheet
|
|
701
702
|
*/
|
|
702
703
|
loadStyleSheet?: () => void;
|
|
704
|
+
/**
|
|
705
|
+
* Default theme
|
|
706
|
+
*/
|
|
707
|
+
defaultTheme?: Theme;
|
|
703
708
|
}
|
|
704
709
|
|
|
705
710
|
export declare function StandaloneRoute({ app }: StandaloneRouteProps): JSX_2.Element;
|
|
@@ -786,7 +791,14 @@ declare interface TextEditorProps extends WindowProps {
|
|
|
786
791
|
path?: string;
|
|
787
792
|
}
|
|
788
793
|
|
|
789
|
-
|
|
794
|
+
declare enum Theme {
|
|
795
|
+
Dark = 0,
|
|
796
|
+
Light = 1,
|
|
797
|
+
Cherry = 2,
|
|
798
|
+
Mango = 3,
|
|
799
|
+
Aqua = 4,
|
|
800
|
+
Grape = 5
|
|
801
|
+
}
|
|
790
802
|
|
|
791
803
|
export declare class TimeManager {
|
|
792
804
|
static START_DATE: Date;
|
|
@@ -839,7 +851,7 @@ export declare function useAlert(): {
|
|
|
839
851
|
export declare function useAppFolder(app?: App): VirtualFolder | null;
|
|
840
852
|
|
|
841
853
|
/**
|
|
842
|
-
* Combine
|
|
854
|
+
* Combine class names and an optional static class name
|
|
843
855
|
*/
|
|
844
856
|
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string | string[]): string;
|
|
845
857
|
|
|
@@ -998,7 +1010,7 @@ declare class VirtualBase extends EventEmitter<EventNamesMap> {
|
|
|
998
1010
|
open(..._args: unknown[]): unknown;
|
|
999
1011
|
get path(): string;
|
|
1000
1012
|
/**
|
|
1001
|
-
* Returns path without using alias
|
|
1013
|
+
* Returns path without using this item's alias
|
|
1002
1014
|
*/
|
|
1003
1015
|
get displayPath(): string;
|
|
1004
1016
|
/**
|
|
@@ -1173,9 +1185,9 @@ export declare class VirtualFolder extends VirtualBase {
|
|
|
1173
1185
|
*/
|
|
1174
1186
|
createFileLink(name: string, callback?: (newFileLink: VirtualFileLink | VirtualFile) => void): this;
|
|
1175
1187
|
/**
|
|
1176
|
-
* Creates
|
|
1188
|
+
* Creates file links based on an array of objects with file names and extensions
|
|
1177
1189
|
*/
|
|
1178
|
-
createFileLinks(
|
|
1190
|
+
createFileLinks(fileLinks: {
|
|
1179
1191
|
name: string;
|
|
1180
1192
|
}[]): this;
|
|
1181
1193
|
/**
|
|
@@ -1212,16 +1224,19 @@ export declare class VirtualFolder extends VirtualBase {
|
|
|
1212
1224
|
delete(): void;
|
|
1213
1225
|
/**
|
|
1214
1226
|
* Returns all files inside this folder
|
|
1227
|
+
* @param showHidden Whether to include hidden files
|
|
1215
1228
|
*/
|
|
1216
1229
|
getFiles(showHidden?: boolean): VirtualFile[];
|
|
1217
1230
|
/**
|
|
1218
1231
|
* Returns all sub-folders inside this folder
|
|
1232
|
+
* @param showHidden Whether to include hidden folders
|
|
1219
1233
|
*/
|
|
1220
1234
|
getSubFolders(showHidden?: boolean): VirtualFolder[];
|
|
1221
1235
|
/**
|
|
1222
|
-
* Returns the amount of files and
|
|
1236
|
+
* Returns the amount of files and sub-folders inside this folder
|
|
1237
|
+
* @param includeHidden Whether to include hidden files and folders in the count
|
|
1223
1238
|
*/
|
|
1224
|
-
getItemCount(
|
|
1239
|
+
getItemCount(includeHidden?: boolean): number;
|
|
1225
1240
|
isFolder(): boolean;
|
|
1226
1241
|
getIconUrl(): string;
|
|
1227
1242
|
toJSON(): VirtualFolderJson | null;
|
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.8", 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.8", author: "Prozilla" });
|
|
3917
3917
|
export {
|
|
3918
3918
|
Oo as FileSelectorMode,
|
|
3919
3919
|
Po as fileExplorer,
|