@prozilla-os/core 1.2.1 → 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/LICENSE +21 -674
- package/dist/assets/main.css +1 -1
- package/dist/main.d.ts +11 -2
- package/dist/main.js +6404 -6374
- package/dist/main.js.map +1 -1
- package/package.json +3 -3
package/dist/main.d.ts
CHANGED
|
@@ -324,6 +324,9 @@ export declare function getViewportParams(): Record<string, string>;
|
|
|
324
324
|
|
|
325
325
|
export declare function HeaderMenu({ children, ...props }: ActionsProps): JSX_2.Element;
|
|
326
326
|
|
|
327
|
+
declare function Image_2({ className, src, ...props }: ImageProps): JSX_2.Element;
|
|
328
|
+
export { Image_2 as Image }
|
|
329
|
+
|
|
327
330
|
export declare const IMAGE_EXTENSIONS: string[];
|
|
328
331
|
|
|
329
332
|
export declare function ImagePreview({ source, className, onError, ...props }: ImagePreviewProps): JSX_2.Element;
|
|
@@ -334,6 +337,12 @@ declare interface ImagePreviewProps {
|
|
|
334
337
|
onError?: Function;
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
declare interface ImageProps {
|
|
341
|
+
className?: string;
|
|
342
|
+
src?: string;
|
|
343
|
+
[key: string]: unknown;
|
|
344
|
+
}
|
|
345
|
+
|
|
337
346
|
export declare function Interactable({ onClick, onDoubleClick, children, ...props }: InteractableProps): JSX_2.Element;
|
|
338
347
|
|
|
339
348
|
declare interface InteractableProps {
|
|
@@ -756,7 +765,7 @@ export declare function useAppFolder(app?: App): VirtualFolder | null;
|
|
|
756
765
|
/**
|
|
757
766
|
* Combine clas names and an optional static class name
|
|
758
767
|
*/
|
|
759
|
-
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string): string;
|
|
768
|
+
export declare function useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string | string[]): string;
|
|
760
769
|
|
|
761
770
|
export declare function useContextMenu({ Actions }: UseContextMenuParams): {
|
|
762
771
|
onContextMenu: (event: MouseEvent_2<HTMLElement, MouseEvent_2>, params?: object) => Modal;
|
|
@@ -847,7 +856,7 @@ declare interface UseShortcutsParams {
|
|
|
847
856
|
/**
|
|
848
857
|
* Generates static class name using BEM notation
|
|
849
858
|
*/
|
|
850
|
-
export declare function useStaticClassName(block?: string, element?: string, modifier?: string): string | null;
|
|
859
|
+
export declare function useStaticClassName(block?: string, element?: string, modifier?: string | string[]): string | null;
|
|
851
860
|
|
|
852
861
|
export declare function useSystemManager(): SystemManager;
|
|
853
862
|
|