prozilla-os 1.2.2 → 1.2.3
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 +11 -2
- package/package.json +9 -9
package/dist/main.d.ts
CHANGED
|
@@ -348,6 +348,9 @@ export declare function getViewportParams(): Record<string, string>;
|
|
|
348
348
|
|
|
349
349
|
export declare function HeaderMenu({ children, ...props }: ActionsProps): JSX_2.Element;
|
|
350
350
|
|
|
351
|
+
declare function Image_2({ className, src, ...props }: ImageProps): JSX_2.Element;
|
|
352
|
+
export { Image_2 as Image }
|
|
353
|
+
|
|
351
354
|
export declare const IMAGE_EXTENSIONS: string[];
|
|
352
355
|
|
|
353
356
|
export declare function ImagePreview({ source, className, onError, ...props }: ImagePreviewProps): JSX_2.Element;
|
|
@@ -358,6 +361,12 @@ declare interface ImagePreviewProps {
|
|
|
358
361
|
onError?: Function;
|
|
359
362
|
}
|
|
360
363
|
|
|
364
|
+
declare interface ImageProps {
|
|
365
|
+
className?: string;
|
|
366
|
+
src?: string;
|
|
367
|
+
[key: string]: unknown;
|
|
368
|
+
}
|
|
369
|
+
|
|
361
370
|
export declare function Interactable({ onClick, onDoubleClick, children, ...props }: InteractableProps): JSX_2.Element;
|
|
362
371
|
|
|
363
372
|
declare interface InteractableProps {
|
|
@@ -807,7 +816,7 @@ export declare function useAppFolder(app?: App): VirtualFolder | null;
|
|
|
807
816
|
/**
|
|
808
817
|
* Combine clas names and an optional static class name
|
|
809
818
|
*/
|
|
810
|
-
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string): string;
|
|
819
|
+
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string | string[]): string;
|
|
811
820
|
|
|
812
821
|
export declare function useContextMenu({ Actions }: UseContextMenuParams): {
|
|
813
822
|
onContextMenu: (event: MouseEvent_2<HTMLElement, MouseEvent_2>, params?: object) => Modal;
|
|
@@ -898,7 +907,7 @@ declare interface UseShortcutsParams {
|
|
|
898
907
|
/**
|
|
899
908
|
* Generates static class name using BEM notation
|
|
900
909
|
*/
|
|
901
|
-
export declare function useStaticClassName(block?: string, element?: string, modifier?: string): string | null;
|
|
910
|
+
export declare function useStaticClassName(block?: string, element?: string, modifier?: string | string[]): string | null;
|
|
902
911
|
|
|
903
912
|
export declare function useSystemManager(): SystemManager;
|
|
904
913
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
+
"version": "1.2.3",
|
|
5
5
|
"homepage": "https://os.prozilla.dev",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Prozilla",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
22
22
|
"react-ga4": "^2.1.0",
|
|
23
|
-
"@prozilla-os/browser": "1.1.
|
|
24
|
-
"@prozilla-os/
|
|
25
|
-
"@prozilla-os/
|
|
26
|
-
"@prozilla-os/core": "1.2.
|
|
27
|
-
"@prozilla-os/
|
|
28
|
-
"@prozilla-os/
|
|
29
|
-
"@prozilla-os/terminal": "1.1.
|
|
30
|
-
"@prozilla-os/text-editor": "1.1.
|
|
23
|
+
"@prozilla-os/browser": "1.1.2",
|
|
24
|
+
"@prozilla-os/settings": "1.1.2",
|
|
25
|
+
"@prozilla-os/calculator": "1.1.2",
|
|
26
|
+
"@prozilla-os/core": "1.2.2",
|
|
27
|
+
"@prozilla-os/file-explorer": "1.1.2",
|
|
28
|
+
"@prozilla-os/media-viewer": "1.1.2",
|
|
29
|
+
"@prozilla-os/terminal": "1.1.3",
|
|
30
|
+
"@prozilla-os/text-editor": "1.1.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.14.5",
|