@prozilla-os/core 1.3.3 → 1.3.4
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 +14653 -15032
- package/dist/main.js.map +1 -1
- package/package.json +3 -2
package/dist/main.d.ts
CHANGED
|
@@ -607,6 +607,7 @@ declare class Skin {
|
|
|
607
607
|
fileIcons: SkinOptions["fileIcons"];
|
|
608
608
|
folderIcons: SkinOptions["folderIcons"];
|
|
609
609
|
loadStyleSheet: SkinOptions["loadStyleSheet"];
|
|
610
|
+
defaultTheme: SkinOptions["defaultTheme"];
|
|
610
611
|
constructor(options?: OptionalInterface_2<SkinOptions>);
|
|
611
612
|
}
|
|
612
613
|
|
|
@@ -662,6 +663,10 @@ declare interface SkinOptions {
|
|
|
662
663
|
* Function that dynamically imports style sheet
|
|
663
664
|
*/
|
|
664
665
|
loadStyleSheet?: () => void;
|
|
666
|
+
/**
|
|
667
|
+
* Default theme
|
|
668
|
+
*/
|
|
669
|
+
defaultTheme?: Theme;
|
|
665
670
|
}
|
|
666
671
|
|
|
667
672
|
export declare function StandaloneRoute({ app }: StandaloneRouteProps): JSX_2.Element;
|
|
@@ -733,7 +738,14 @@ declare interface TextDisplayProps {
|
|
|
733
738
|
children: ReactNode;
|
|
734
739
|
}
|
|
735
740
|
|
|
736
|
-
|
|
741
|
+
declare enum Theme {
|
|
742
|
+
Dark = 0,
|
|
743
|
+
Light = 1,
|
|
744
|
+
Cherry = 2,
|
|
745
|
+
Mango = 3,
|
|
746
|
+
Aqua = 4,
|
|
747
|
+
Grape = 5
|
|
748
|
+
}
|
|
737
749
|
|
|
738
750
|
export declare class TimeManager {
|
|
739
751
|
static START_DATE: Date;
|
|
@@ -786,7 +798,7 @@ export declare function useAlert(): {
|
|
|
786
798
|
export declare function useAppFolder(app?: App): VirtualFolder | null;
|
|
787
799
|
|
|
788
800
|
/**
|
|
789
|
-
* Combine
|
|
801
|
+
* Combine class names and an optional static class name
|
|
790
802
|
*/
|
|
791
803
|
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string | string[]): string;
|
|
792
804
|
|
|
@@ -945,7 +957,7 @@ declare class VirtualBase extends EventEmitter<EventNamesMap> {
|
|
|
945
957
|
open(..._args: unknown[]): unknown;
|
|
946
958
|
get path(): string;
|
|
947
959
|
/**
|
|
948
|
-
* Returns path without using alias
|
|
960
|
+
* Returns path without using this item's alias
|
|
949
961
|
*/
|
|
950
962
|
get displayPath(): string;
|
|
951
963
|
/**
|
|
@@ -1120,9 +1132,9 @@ export declare class VirtualFolder extends VirtualBase {
|
|
|
1120
1132
|
*/
|
|
1121
1133
|
createFileLink(name: string, callback?: (newFileLink: VirtualFileLink | VirtualFile) => void): this;
|
|
1122
1134
|
/**
|
|
1123
|
-
* Creates
|
|
1135
|
+
* Creates file links based on an array of objects with file names and extensions
|
|
1124
1136
|
*/
|
|
1125
|
-
createFileLinks(
|
|
1137
|
+
createFileLinks(fileLinks: {
|
|
1126
1138
|
name: string;
|
|
1127
1139
|
}[]): this;
|
|
1128
1140
|
/**
|
|
@@ -1159,16 +1171,19 @@ export declare class VirtualFolder extends VirtualBase {
|
|
|
1159
1171
|
delete(): void;
|
|
1160
1172
|
/**
|
|
1161
1173
|
* Returns all files inside this folder
|
|
1174
|
+
* @param showHidden Whether to include hidden files
|
|
1162
1175
|
*/
|
|
1163
1176
|
getFiles(showHidden?: boolean): VirtualFile[];
|
|
1164
1177
|
/**
|
|
1165
1178
|
* Returns all sub-folders inside this folder
|
|
1179
|
+
* @param showHidden Whether to include hidden folders
|
|
1166
1180
|
*/
|
|
1167
1181
|
getSubFolders(showHidden?: boolean): VirtualFolder[];
|
|
1168
1182
|
/**
|
|
1169
|
-
* Returns the amount of files and
|
|
1183
|
+
* Returns the amount of files and sub-folders inside this folder
|
|
1184
|
+
* @param includeHidden Whether to include hidden files and folders in the count
|
|
1170
1185
|
*/
|
|
1171
|
-
getItemCount(
|
|
1186
|
+
getItemCount(includeHidden?: boolean): number;
|
|
1172
1187
|
isFolder(): boolean;
|
|
1173
1188
|
getIconUrl(): string;
|
|
1174
1189
|
toJSON(): VirtualFolderJson | null;
|