prozilla-os 1.2.4 → 1.3.0

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.
Files changed (3) hide show
  1. package/README.md +26 -26
  2. package/dist/main.d.ts +2 -49
  3. package/package.json +11 -10
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  </p>
12
12
  </div>
13
13
 
14
- ## About
14
+ ## About
15
15
 
16
16
  `prozilla-os` is a React Vite component library written in TypeScript for building web-based operating systems, made by Prozilla. This package combines multiple other packages for easy access to different ProzillaOS features. You can also download these packages separately instead.
17
17
 
@@ -20,9 +20,9 @@
20
20
  ## Installation
21
21
 
22
22
  ```sh
23
- $ npm install prozilla-os
24
- $ yarn add prozilla-os
25
- $ pnpm add prozilla-os
23
+ npm install prozilla-os
24
+ yarn add prozilla-os
25
+ pnpm add prozilla-os
26
26
  ```
27
27
 
28
28
  ## Packages
@@ -74,27 +74,27 @@ interface ProzillaOSProps {
74
74
 
75
75
  appIcons: Record<number, string> | undefined,
76
76
 
77
- appNames: Record<number, string> | undefined,
77
+ appNames: Record<number, string> | undefined,
78
78
 
79
- wallpapers: string[],
79
+ wallpapers: string[],
80
80
 
81
- defaultWallpaper: string,
81
+ defaultWallpaper: string,
82
82
 
83
- fileIcons: {
84
- generic: string;
85
- info: string | undefined;
86
- text: string | undefined;
87
- code: string | undefined;
88
- },
83
+ fileIcons: {
84
+ generic: string;
85
+ info: string | undefined;
86
+ text: string | undefined;
87
+ code: string | undefined;
88
+ },
89
89
 
90
- folderIcons: {
91
- generic: string;
92
- images: string | undefined;
93
- text: string | undefined;
94
- link: string | undefined;
95
- },
90
+ folderIcons: {
91
+ generic: string;
92
+ images: string | undefined;
93
+ text: string | undefined;
94
+ link: string | undefined;
95
+ },
96
96
 
97
- loadStyleSheet: () => void | undefined
97
+ loadStyleSheet: () => void | undefined
98
98
 
99
99
  })
100
100
 
@@ -118,14 +118,14 @@ interface ProzillaOSProps {
118
118
  defaultIconDirection: 0 | 1
119
119
 
120
120
  }),
121
- misc: new MiscConfig({
121
+ misc: new MiscConfig({
122
122
 
123
123
  /**
124
- * @default 250
125
- */
126
- doubleClickDelay: number
124
+ * @default 250
125
+ */
126
+ doubleClickDelay: number
127
127
 
128
- })
128
+ })
129
129
  modals: new ModalsConfig({
130
130
 
131
131
  /**
@@ -209,4 +209,4 @@ interface ProzillaOSProps {
209
209
  [settings]: https://www.npmjs.com/package/@prozilla-os/settings
210
210
  [media-viewer]: https://www.npmjs.com/package/@prozilla-os/media-viewer
211
211
  [browser]: https://www.npmjs.com/package/@prozilla-os/browser
212
- [calculator]: https://www.npmjs.com/package/@prozilla-os/calculator
212
+ [calculator]: https://www.npmjs.com/package/@prozilla-os/calculator
package/dist/main.d.ts CHANGED
@@ -55,25 +55,6 @@ declare interface AlertParams {
55
55
  single?: boolean;
56
56
  }
57
57
 
58
- export declare const ANSI: {
59
- fg: {
60
- black: string;
61
- red: string;
62
- green: string;
63
- yellow: string;
64
- blue: string;
65
- magenta: string;
66
- cyan: string;
67
- white: string;
68
- };
69
- bg: {};
70
- decoration: {
71
- dim: string;
72
- bold: string;
73
- };
74
- reset: string;
75
- };
76
-
77
58
  /**
78
59
  * An application that can be ran by ProzillaOS
79
60
  * Applications can be installed by adding them to the `apps` array in {@link AppsConfig}
@@ -206,8 +187,6 @@ declare interface ButtonProps {
206
187
 
207
188
  export declare const calculator: App<WindowProps>;
208
189
 
209
- export declare function clamp(value: number, min: number, max: number): number;
210
-
211
190
  export declare const ClickAction: MemoExoticComponent<({ actionId, label, shortcut, disabled, onTrigger, icon }: ClickActionProps) => JSX_2.Element>;
212
191
 
213
192
  declare interface ClickActionProps extends ActionProps {
@@ -281,7 +260,7 @@ export declare function DropdownButton({ label, options, shortcuts }: {
281
260
  };
282
261
  }): JSX_2.Element;
283
262
 
284
- export declare class EventEmitter<EventMap extends EventNamesMap> {
263
+ declare class EventEmitter<EventMap extends EventNamesMap> {
285
264
  #private;
286
265
  static EVENT_NAMES: EventNamesMap;
287
266
  /**
@@ -298,7 +277,7 @@ export declare class EventEmitter<EventMap extends EventNamesMap> {
298
277
  emit<Key extends keyof EventMap>(eventName: Key, data?: unknown): void;
299
278
  }
300
279
 
301
- export declare type EventNamesMap = Record<string, string>;
280
+ declare type EventNamesMap = Record<string, string>;
302
281
 
303
282
  export declare type FileEventHandler = (event: Event, file: VirtualFile) => void;
304
283
 
@@ -320,22 +299,8 @@ export declare enum FileSelectorMode {
320
299
 
321
300
  export declare type FolderEventHandler = (event: Event, folder: VirtualFolder) => void;
322
301
 
323
- /**
324
- * Format a time relative to now
325
- * @param date - The date
326
- * @param maxLength - The maximum amount of units, e.g.: 3 => years, months, days
327
- */
328
- export declare function formatRelativeTime(date: Date, maxLength: number | undefined, allowAffixes: boolean): string;
329
-
330
302
  export declare function formatShortcut(shortcut: string[]): string;
331
303
 
332
- /**
333
- * Format a time
334
- * @param time - Time in milliseconds
335
- * @param maxLength - The maximum amount of units, e.g.: 3 => years, months, days
336
- */
337
- export declare function formatTime(time: number, maxLength: number | undefined, allowAffixes: boolean): string;
338
-
339
304
  export declare function generateUrl(options: generateUrlOptions): string;
340
305
 
341
306
  declare interface generateUrlOptions {
@@ -376,8 +341,6 @@ declare interface InteractableProps {
376
341
  [key: string]: unknown;
377
342
  }
378
343
 
379
- export declare function isValidInteger(number: number | string): number | boolean;
380
-
381
344
  export declare function isValidUrl(string: string): boolean;
382
345
 
383
346
  export declare const mediaViewer: App<MediaViewerProps>;
@@ -569,23 +532,13 @@ declare interface RadioActionProps extends ActionProps {
569
532
  initialIndex: number;
570
533
  }
571
534
 
572
- export declare function randomFromArray<Type>(array: Type[]): Type;
573
-
574
- export declare function randomRange(min: number, max: number): number;
575
-
576
535
  /**
577
536
  * Reloads the viewport
578
537
  */
579
538
  export declare function reloadViewport(): void;
580
539
 
581
- export declare function removeDuplicatesFromArray<Type>(array: Type[]): Type[];
582
-
583
- export declare function removeFromArray<Type>(item: Type, array: Type[]): void;
584
-
585
540
  export declare function removeUrlProtocol(url: string): string;
586
541
 
587
- export declare function round(value: number, precision: number): number;
588
-
589
542
  declare class Settings {
590
543
  #private;
591
544
  path: string;
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "prozilla-os",
3
3
  "description": "a React component library written in TypeScript for building web-based operating systems, made by Prozilla.",
4
- "version": "1.2.4",
4
+ "version": "1.3.0",
5
5
  "homepage": "https://os.prozilla.dev",
6
6
  "author": {
7
7
  "name": "Prozilla",
8
8
  "email": "business@prozilla.dev",
9
9
  "url": "https://prozilla.dev/"
10
10
  },
11
+ "funding": "https://ko-fi.com/prozilla",
11
12
  "type": "module",
12
13
  "main": "dist/main.js",
13
14
  "types": "dist/main.d.ts",
@@ -20,21 +21,21 @@
20
21
  "dependencies": {
21
22
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
22
23
  "react-ga4": "^2.1.0",
23
- "@prozilla-os/browser": "1.1.3",
24
- "@prozilla-os/calculator": "1.1.3",
25
- "@prozilla-os/core": "1.2.3",
26
- "@prozilla-os/file-explorer": "1.1.3",
27
- "@prozilla-os/media-viewer": "1.1.3",
28
- "@prozilla-os/settings": "1.1.3",
29
- "@prozilla-os/terminal": "1.1.4",
30
- "@prozilla-os/text-editor": "1.1.3"
24
+ "@prozilla-os/media-viewer": "1.1.5",
25
+ "@prozilla-os/browser": "1.1.5",
26
+ "@prozilla-os/core": "1.3.0",
27
+ "@prozilla-os/file-explorer": "1.1.5",
28
+ "@prozilla-os/calculator": "1.1.5",
29
+ "@prozilla-os/settings": "1.1.5",
30
+ "@prozilla-os/terminal": "1.1.6",
31
+ "@prozilla-os/text-editor": "1.1.5"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@types/node": "^20.14.5",
34
35
  "@types/react": "^18.3.3",
35
36
  "@vitejs/plugin-react-swc": "^3.7.0",
36
37
  "typescript": "^5.4.5",
37
- "vite": "^5.3.1",
38
+ "vite": "^5.4.8",
38
39
  "vite-plugin-dts": "^3.9.1",
39
40
  "vite-plugin-lib-inject-css": "^2.1.1"
40
41
  },