@prozilla-os/dev-tools 1.1.7 → 1.1.9

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 (4) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +40 -40
  3. package/dist/main.d.ts +14 -12
  4. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Sieben De Beule
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Sieben De Beule
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,40 +1,40 @@
1
- <div align="center">
2
- <br />
3
- <p>
4
- <a href="https://os.prozilla.dev/"><img src="https://os.prozilla.dev/assets/logo.svg?v=2" height="200" alt="ProzillaOS" /></a>
5
- </p>
6
- <p>
7
- <a href="https://github.com/prozilla-os/ProzillaOS/blob/main/LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/Prozilla/ProzillaOS?style=flat-square&color=FF4D5B&label=License"></a>
8
- <a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Stars" src="https://img.shields.io/github/stars/Prozilla/ProzillaOS?style=flat-square&color=FED24C&label=%E2%AD%90"></a>
9
- <a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Forks" src="https://img.shields.io/github/forks/Prozilla/ProzillaOS?style=flat-square&color=4D9CFF&label=Forks&logo=github"></a>
10
- <a href="https://www.npmjs.com/package/prozilla-os"><img alt="NPM Version" src="https://img.shields.io/npm/v/prozilla-os?logo=npm&style=flat-square&label=prozilla-os&color=FF4D5B"></a>
11
- </p>
12
- </div>
13
-
14
- ## About
15
-
16
- `@prozilla-os/dev-tools` is a library of tools for the development of ProzillaOS packages.
17
-
18
- ## Installation
19
-
20
- ```sh
21
- npm install @prozilla-os/dev-tools
22
- yarn add @prozilla-os/dev-tools
23
- pnpm add @prozilla-os/dev-tools
24
- ```
25
-
26
- ## Links
27
-
28
- - [Demo][demo]
29
- - [Docs][docs]
30
- - [GitHub][github]
31
- - [npm][npm]
32
- - [Discord][discord]
33
- - [Ko-fi][ko-fi]
34
-
35
- [demo]: https://os.prozilla.dev/
36
- [docs]: https://os.prozilla.dev/docs/reference/dev-tools
37
- [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/dev-tools
38
- [npm]: https://www.npmjs.com/package/@prozilla-os/dev-tools
39
- [discord]: https://discord.gg/JwbyQP4tdz
40
- [ko-fi]: https://ko-fi.com/prozilla
1
+ <div align="center">
2
+ <br />
3
+ <p>
4
+ <a href="https://os.prozilla.dev/"><img src="https://os.prozilla.dev/assets/logo.svg?v=2" height="200" alt="ProzillaOS" /></a>
5
+ </p>
6
+ <p>
7
+ <a href="https://github.com/prozilla-os/ProzillaOS/blob/main/LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/Prozilla/ProzillaOS?style=flat-square&color=FF4D5B&label=License"></a>
8
+ <a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Stars" src="https://img.shields.io/github/stars/Prozilla/ProzillaOS?style=flat-square&color=FED24C&label=%E2%AD%90"></a>
9
+ <a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Forks" src="https://img.shields.io/github/forks/Prozilla/ProzillaOS?style=flat-square&color=4D9CFF&label=Forks&logo=github"></a>
10
+ <a href="https://www.npmjs.com/package/prozilla-os"><img alt="NPM Version" src="https://img.shields.io/npm/v/prozilla-os?logo=npm&style=flat-square&label=prozilla-os&color=FF4D5B"></a>
11
+ </p>
12
+ </div>
13
+
14
+ ## About
15
+
16
+ `@prozilla-os/dev-tools` is a library of tools for the development of ProzillaOS packages.
17
+
18
+ ## Installation
19
+
20
+ ```sh
21
+ npm install @prozilla-os/dev-tools
22
+ yarn add @prozilla-os/dev-tools
23
+ pnpm add @prozilla-os/dev-tools
24
+ ```
25
+
26
+ ## Links
27
+
28
+ - [Demo][demo]
29
+ - [Docs][docs]
30
+ - [GitHub][github]
31
+ - [npm][npm]
32
+ - [Discord][discord]
33
+ - [Ko-fi][ko-fi]
34
+
35
+ [demo]: https://os.prozilla.dev/
36
+ [docs]: https://os.prozilla.dev/docs/reference/dev-tools
37
+ [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/dev-tools
38
+ [npm]: https://www.npmjs.com/package/@prozilla-os/dev-tools
39
+ [discord]: https://discord.gg/JwbyQP4tdz
40
+ [ko-fi]: https://ko-fi.com/prozilla
package/dist/main.d.ts CHANGED
@@ -24,10 +24,7 @@ declare class App<AppProps extends WindowProps = WindowProps> {
24
24
  /**
25
25
  * Default options that get passed to the {@link this.windowContent} component
26
26
  */
27
- windowOptions?: {
28
- size: Vector2;
29
- [key: string]: unknown;
30
- };
27
+ windowOptions?: Partial<AppProps> & WindowOptions_2;
31
28
  /**
32
29
  * Description of this application
33
30
  */
@@ -70,7 +67,7 @@ declare class App<AppProps extends WindowProps = WindowProps> {
70
67
  isActive: boolean;
71
68
  isPinned?: boolean;
72
69
  isInstalled: boolean;
73
- constructor(name: App["name"], id: App["id"], windowContent: App<AppProps>["windowContent"], windowOptions?: App["windowOptions"]);
70
+ constructor(name: App["name"], id: App["id"], windowContent: App<AppProps>["windowContent"], windowOptions?: Partial<AppProps> & WindowOptions_2);
74
71
  WindowContent: (props: AppProps) => JSX_2.Element | null;
75
72
  /**
76
73
  * Set the display name of this application
@@ -116,6 +113,10 @@ declare class App<AppProps extends WindowProps = WindowProps> {
116
113
  * Changes whether this application has a desktop icon in the default data
117
114
  */
118
115
  setShowDesktopIcon(showDesktopIcon: boolean): this;
116
+ /**
117
+ * Changes the default options for the {@link this.windowContent} component
118
+ */
119
+ setWindowOptions(windowOptions: Partial<AppProps> & WindowOptions_2): this;
119
120
  }
120
121
 
121
122
  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"];
@@ -142,8 +143,8 @@ declare class AppsConfig {
142
143
  mediaViewer: string;
143
144
  browser: string;
144
145
  };
145
- constructor(options?: OptionalInterface<AppsConfigOptions>);
146
- get installedApps(): App<any>[];
146
+ constructor(options?: Partial<AppsConfigOptions>);
147
+ get installedApps(): App<WindowProps>[];
147
148
  /**
148
149
  * @param includeUninstalled Include apps that are not currently installed
149
150
  */
@@ -166,7 +167,7 @@ declare interface AppsConfigOptions {
166
167
  /**
167
168
  * An array of applications
168
169
  */
169
- apps: App<any>[];
170
+ apps: App<WindowProps>[];
170
171
  }
171
172
 
172
173
  /**
@@ -178,10 +179,6 @@ declare interface AppsConfigOptions {
178
179
  */
179
180
  export declare const appViteConfig: (basePath: string, entryPath: string) => UserConfig;
180
181
 
181
- declare type OptionalInterface<Interface> = {
182
- [Property in keyof Interface]?: Interface[Property];
183
- };
184
-
185
182
  declare function print_2(message: string, status?: Status, newLine?: boolean): void;
186
183
  export { print_2 as print }
187
184
 
@@ -249,6 +246,11 @@ declare interface WindowOptions {
249
246
  [key: string]: unknown;
250
247
  }
251
248
 
249
+ declare interface WindowOptions_2 {
250
+ size?: Vector2;
251
+ [key: string]: unknown;
252
+ }
253
+
252
254
  declare interface WindowProps extends WindowOptions {
253
255
  fullscreen?: boolean;
254
256
  onInteract?: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prozilla-os/dev-tools",
3
3
  "description": "A library of tools for the development of ProzillaOS packages.",
4
- "version": "1.1.7",
4
+ "version": "1.1.9",
5
5
  "homepage": "https://os.prozilla.dev",
6
6
  "author": {
7
7
  "name": "Prozilla",
@@ -23,7 +23,7 @@
23
23
  "vite": "^5.4.8",
24
24
  "vite-plugin-css-injected-by-js": "^3.5.1",
25
25
  "vite-plugin-dts": "^3.9.1",
26
- "@prozilla-os/core": "1.3.10",
26
+ "@prozilla-os/core": "1.3.12",
27
27
  "@prozilla-os/shared": "1.2.0"
28
28
  },
29
29
  "devDependencies": {