@prozilla-os/text-editor 1.1.16 → 1.1.18

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/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,92 +1,92 @@
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/text-editor` is a text editor application for ProzillaOS.
17
-
18
- ## Installation
19
-
20
- `@prozilla-os/core` is required to run this application.
21
-
22
- ```sh
23
- npm install @prozilla-os/core @prozilla-os/text-editor
24
- yarn add @prozilla-os/core @prozilla-os/text-editor
25
- pnpm add @prozilla-os/core @prozilla-os/text-editor
26
- ```
27
-
28
- ## Usage
29
-
30
- ### Basic setup
31
-
32
- ```tsx
33
- import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } from "@prozilla-os/core";
34
- import { textEditor } from "@prozilla-os/text-editor";
35
-
36
- function App() {
37
- return (
38
- <ProzillaOS
39
- systemName="Example"
40
- tagLine="Powered by ProzillaOS"
41
- config={{
42
- apps: new AppsConfig({
43
- apps: [ textEditor ]
44
- })
45
- }}
46
- >
47
- <Taskbar/>
48
- <WindowsView/>
49
- <ModalsView/>
50
- <Desktop/>
51
- </ProzillaOS>
52
- );
53
- }
54
- ```
55
-
56
- ### Window options
57
-
58
- ```tsx
59
- /**
60
- * Initial path that the app will open
61
- * @default "~" - Home directory
62
- */
63
- path: string;
64
-
65
- /**
66
- * Virtual file to open the app with
67
- */
68
- file: VirtualFile;
69
-
70
- /**
71
- * Mode in which to run the app
72
- * "view" - Renders markdown files and renders syntax highlighting of other file formats, disables text editing
73
- * "edit" - Raw text editor
74
- */
75
- mode: "view" | "edit";
76
- ```
77
-
78
- ## Links
79
-
80
- - [Demo][demo]
81
- - [Docs][docs]
82
- - [GitHub][github]
83
- - [npm][npm]
84
- - [Discord][discord]
85
- - [Ko-fi][ko-fi]
86
-
87
- [demo]: https://os.prozilla.dev/text-editor
88
- [docs]: https://os.prozilla.dev/docs/reference/apps/text-editor
89
- [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/apps/text-editor
90
- [npm]: https://www.npmjs.com/package/@prozilla-os/text-editor
91
- [discord]: https://discord.gg/JwbyQP4tdz
92
- [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/text-editor` is a text editor application for ProzillaOS.
17
+
18
+ ## Installation
19
+
20
+ `@prozilla-os/core` is required to run this application.
21
+
22
+ ```sh
23
+ npm install @prozilla-os/core @prozilla-os/text-editor
24
+ yarn add @prozilla-os/core @prozilla-os/text-editor
25
+ pnpm add @prozilla-os/core @prozilla-os/text-editor
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ### Basic setup
31
+
32
+ ```tsx
33
+ import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } from "@prozilla-os/core";
34
+ import { textEditor } from "@prozilla-os/text-editor";
35
+
36
+ function App() {
37
+ return (
38
+ <ProzillaOS
39
+ systemName="Example"
40
+ tagLine="Powered by ProzillaOS"
41
+ config={{
42
+ apps: new AppsConfig({
43
+ apps: [ textEditor ]
44
+ })
45
+ }}
46
+ >
47
+ <Taskbar/>
48
+ <WindowsView/>
49
+ <ModalsView/>
50
+ <Desktop/>
51
+ </ProzillaOS>
52
+ );
53
+ }
54
+ ```
55
+
56
+ ### Window options
57
+
58
+ ```tsx
59
+ /**
60
+ * Initial path that the app will open
61
+ * @default "~" - Home directory
62
+ */
63
+ path: string;
64
+
65
+ /**
66
+ * Virtual file to open the app with
67
+ */
68
+ file: VirtualFile;
69
+
70
+ /**
71
+ * Mode in which to run the app
72
+ * "view" - Renders markdown files and renders syntax highlighting of other file formats, disables text editing
73
+ * "edit" - Raw text editor
74
+ */
75
+ mode: "view" | "edit";
76
+ ```
77
+
78
+ ## Links
79
+
80
+ - [Demo][demo]
81
+ - [Docs][docs]
82
+ - [GitHub][github]
83
+ - [npm][npm]
84
+ - [Discord][discord]
85
+ - [Ko-fi][ko-fi]
86
+
87
+ [demo]: https://os.prozilla.dev/text-editor
88
+ [docs]: https://os.prozilla.dev/docs/reference/apps/text-editor
89
+ [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/apps/text-editor
90
+ [npm]: https://www.npmjs.com/package/@prozilla-os/text-editor
91
+ [discord]: https://discord.gg/JwbyQP4tdz
92
+ [ko-fi]: https://ko-fi.com/prozilla