@prozilla-os/core 1.3.9 → 1.3.10
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 -30
- package/dist/main.js +1748 -1742
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/dist/main.d.ts
CHANGED
|
@@ -73,10 +73,7 @@ export declare class App<AppProps extends WindowProps = WindowProps> {
|
|
|
73
73
|
/**
|
|
74
74
|
* Default options that get passed to the {@link this.windowContent} component
|
|
75
75
|
*/
|
|
76
|
-
windowOptions?:
|
|
77
|
-
size: Vector2;
|
|
78
|
-
[key: string]: unknown;
|
|
79
|
-
};
|
|
76
|
+
windowOptions?: Partial<AppProps> & WindowOptions_2;
|
|
80
77
|
/**
|
|
81
78
|
* Description of this application
|
|
82
79
|
*/
|
|
@@ -119,7 +116,7 @@ export declare class App<AppProps extends WindowProps = WindowProps> {
|
|
|
119
116
|
isActive: boolean;
|
|
120
117
|
isPinned?: boolean;
|
|
121
118
|
isInstalled: boolean;
|
|
122
|
-
constructor(name: App["name"], id: App["id"], windowContent: App<AppProps>["windowContent"], windowOptions?:
|
|
119
|
+
constructor(name: App["name"], id: App["id"], windowContent: App<AppProps>["windowContent"], windowOptions?: Partial<AppProps> & WindowOptions_2);
|
|
123
120
|
WindowContent: (props: AppProps) => JSX_2.Element | null;
|
|
124
121
|
/**
|
|
125
122
|
* Set the display name of this application
|
|
@@ -165,6 +162,10 @@ export declare class App<AppProps extends WindowProps = WindowProps> {
|
|
|
165
162
|
* Changes whether this application has a desktop icon in the default data
|
|
166
163
|
*/
|
|
167
164
|
setShowDesktopIcon(showDesktopIcon: boolean): this;
|
|
165
|
+
/**
|
|
166
|
+
* Changes the default options for the {@link this.windowContent} component
|
|
167
|
+
*/
|
|
168
|
+
setWindowOptions(windowOptions: Partial<AppProps> & WindowOptions_2): this;
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
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"];
|
|
@@ -185,7 +186,7 @@ export declare class AppsConfig {
|
|
|
185
186
|
mediaViewer: string;
|
|
186
187
|
browser: string;
|
|
187
188
|
};
|
|
188
|
-
constructor(options?:
|
|
189
|
+
constructor(options?: Partial<AppsConfigOptions>);
|
|
189
190
|
get installedApps(): App<any>[];
|
|
190
191
|
/**
|
|
191
192
|
* @param includeUninstalled Include apps that are not currently installed
|
|
@@ -246,7 +247,7 @@ export declare const Desktop: MemoExoticComponent<() => JSX_2.Element>;
|
|
|
246
247
|
export declare class DesktopConfig {
|
|
247
248
|
defaultIconSize: DesktopConfigOptions["defaultIconSize"];
|
|
248
249
|
defaultIconDirection: DesktopConfigOptions["defaultIconDirection"];
|
|
249
|
-
constructor(options?:
|
|
250
|
+
constructor(options?: Partial<DesktopConfigOptions>);
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
declare interface DesktopConfigOptions {
|
|
@@ -375,7 +376,7 @@ export declare function isValidUrl(string: string): boolean;
|
|
|
375
376
|
|
|
376
377
|
export declare class MiscConfig {
|
|
377
378
|
doubleClickDelay: MiscConfigOptions["doubleClickDelay"];
|
|
378
|
-
constructor(options?:
|
|
379
|
+
constructor(options?: Partial<MiscConfigOptions>);
|
|
379
380
|
}
|
|
380
381
|
|
|
381
382
|
declare interface MiscConfigOptions {
|
|
@@ -435,7 +436,7 @@ export declare class ModalsConfig {
|
|
|
435
436
|
static DIALOG_CONTENT_TYPES: {
|
|
436
437
|
closeButton: number;
|
|
437
438
|
};
|
|
438
|
-
constructor(options?:
|
|
439
|
+
constructor(options?: Partial<ModalsConfigOptions>);
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
declare interface ModalsConfigOptions {
|
|
@@ -492,14 +493,6 @@ declare interface OpenWindowedModalParams {
|
|
|
492
493
|
fullscreen?: WindowProps["fullscreen"];
|
|
493
494
|
}
|
|
494
495
|
|
|
495
|
-
export declare type OptionalInterface<Interface> = {
|
|
496
|
-
[Property in keyof Interface]?: Interface[Property];
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
declare type OptionalInterface_2<Interface> = {
|
|
500
|
-
[Property in keyof Interface]?: Interface[Property];
|
|
501
|
-
};
|
|
502
|
-
|
|
503
496
|
declare type OptionalStringProperty = string | null | undefined;
|
|
504
497
|
|
|
505
498
|
export declare const OutsideClickListener: MemoExoticComponent<({ onOutsideClick, children }: OutsideClickListenerProps) => JSX_2.Element>;
|
|
@@ -525,14 +518,14 @@ declare interface ProzillaOSProps {
|
|
|
525
518
|
systemName?: string;
|
|
526
519
|
tagLine?: string;
|
|
527
520
|
config?: {
|
|
528
|
-
apps?:
|
|
529
|
-
desktop?:
|
|
530
|
-
misc?:
|
|
531
|
-
modals?:
|
|
532
|
-
taskbar?:
|
|
533
|
-
tracking?:
|
|
534
|
-
windows?:
|
|
535
|
-
virtualDrive?:
|
|
521
|
+
apps?: Partial<AppsConfigOptions>;
|
|
522
|
+
desktop?: Partial<DesktopConfigOptions>;
|
|
523
|
+
misc?: Partial<MiscConfigOptions>;
|
|
524
|
+
modals?: Partial<ModalsConfigOptions>;
|
|
525
|
+
taskbar?: Partial<TaskbarConfigOptions>;
|
|
526
|
+
tracking?: Partial<TrackingConfigOptions>;
|
|
527
|
+
windows?: Partial<WindowsConfigOptions>;
|
|
528
|
+
virtualDrive?: Partial<VirtualDriveConfigOptions>;
|
|
536
529
|
};
|
|
537
530
|
skin?: Skin;
|
|
538
531
|
children?: ReactNode;
|
|
@@ -625,7 +618,7 @@ declare class Skin {
|
|
|
625
618
|
folderIcons: SkinOptions["folderIcons"];
|
|
626
619
|
loadStyleSheet: SkinOptions["loadStyleSheet"];
|
|
627
620
|
defaultTheme: SkinOptions["defaultTheme"];
|
|
628
|
-
constructor(options?:
|
|
621
|
+
constructor(options?: Partial<SkinOptions>);
|
|
629
622
|
}
|
|
630
623
|
|
|
631
624
|
declare interface SkinOptions {
|
|
@@ -738,7 +731,7 @@ export declare const Taskbar: MemoExoticComponent<() => JSX_2.Element>;
|
|
|
738
731
|
|
|
739
732
|
export declare class TaskbarConfig {
|
|
740
733
|
height: TaskbarConfigOptions["height"];
|
|
741
|
-
constructor(options?:
|
|
734
|
+
constructor(options?: Partial<TaskbarConfigOptions>);
|
|
742
735
|
}
|
|
743
736
|
|
|
744
737
|
declare interface TaskbarConfigOptions {
|
|
@@ -785,7 +778,7 @@ declare interface ToggleActionProps extends ActionProps {
|
|
|
785
778
|
export declare class TrackingConfig {
|
|
786
779
|
enabled: TrackingConfigOptions["enabled"];
|
|
787
780
|
googleAnalyticsMeasurementId: TrackingConfigOptions["GAMeasurementId"];
|
|
788
|
-
constructor(options?:
|
|
781
|
+
constructor(options?: Partial<TrackingConfigOptions>);
|
|
789
782
|
}
|
|
790
783
|
|
|
791
784
|
declare interface TrackingConfigOptions {
|
|
@@ -1004,7 +997,7 @@ declare interface VirtualBaseJson {
|
|
|
1004
997
|
export declare class VirtualDriveConfig {
|
|
1005
998
|
saveData: VirtualDriveConfigOptions["saveData"];
|
|
1006
999
|
defaultData: VirtualDriveConfigOptions["defaultData"];
|
|
1007
|
-
constructor(options?:
|
|
1000
|
+
constructor(options?: Partial<VirtualDriveConfigOptions>);
|
|
1008
1001
|
}
|
|
1009
1002
|
|
|
1010
1003
|
declare interface VirtualDriveConfigOptions {
|
|
@@ -1319,6 +1312,11 @@ declare interface WindowOptions {
|
|
|
1319
1312
|
[key: string]: unknown;
|
|
1320
1313
|
}
|
|
1321
1314
|
|
|
1315
|
+
declare interface WindowOptions_2 {
|
|
1316
|
+
size?: Vector2;
|
|
1317
|
+
[key: string]: unknown;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1322
1320
|
export declare interface WindowProps extends WindowOptions {
|
|
1323
1321
|
fullscreen?: boolean;
|
|
1324
1322
|
onInteract?: () => void;
|
|
@@ -1337,7 +1335,7 @@ export declare class WindowsConfig {
|
|
|
1337
1335
|
screenMargin: WindowsConfigOptions["screenMargin"];
|
|
1338
1336
|
titleSeparator: WindowsConfigOptions["titleSeparator"];
|
|
1339
1337
|
minScreenSize: WindowsConfigOptions["minScreenSize"];
|
|
1340
|
-
constructor(options?:
|
|
1338
|
+
constructor(options?: Partial<WindowsConfigOptions>);
|
|
1341
1339
|
}
|
|
1342
1340
|
|
|
1343
1341
|
declare interface WindowsConfigOptions {
|