@vuu-ui/vuu-notifications 3.3.17 → 4.0.0-alpha.10
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/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "4.0.0-alpha.10",
|
|
3
3
|
"description": "VUU notifications - Toast, WorkspaceNotification etc",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"author": "heswell",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"build:dev": "node ../../scripts/run-build.mjs",
|
|
9
10
|
"build": "node ../../scripts/run-build-rslib.ts",
|
|
10
11
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
|
-
"@salt-ds/core": "1.
|
|
14
|
+
"@salt-ds/core": "1.67.0",
|
|
14
15
|
"@salt-ds/styles": "0.2.1",
|
|
15
16
|
"@salt-ds/window": "0.1.1",
|
|
16
|
-
"@vuu-ui/vuu-ui-controls": "
|
|
17
|
-
"@vuu-ui/vuu-utils": "
|
|
17
|
+
"@vuu-ui/vuu-ui-controls": "4.0.0-alpha.10",
|
|
18
|
+
"@vuu-ui/vuu-utils": "4.0.0-alpha.10"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"clsx": "^2.0.0",
|
|
@@ -36,6 +37,5 @@
|
|
|
36
37
|
},
|
|
37
38
|
"module": "./src/index.js",
|
|
38
39
|
"name": "@vuu-ui/vuu-notifications",
|
|
39
|
-
"type": "module",
|
|
40
40
|
"types": "types/index.d.ts"
|
|
41
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NotificationsContextProps, ToastNotificationDescriptor } from "./NotificationsContext";
|
|
1
|
+
import { type NotificationsContextProps, type ToastNotificationDescriptor } from "./NotificationsContext";
|
|
2
2
|
export interface NotificationsCenterProps {
|
|
3
3
|
notificationsContext: NotificationsContextProps;
|
|
4
4
|
startupToastNotification?: ToastNotificationDescriptor;
|
|
5
5
|
}
|
|
6
|
-
export declare const NotificationsCenter: ({ notificationsContext, startupToastNotification, }: NotificationsCenterProps) => import("react
|
|
6
|
+
export declare const NotificationsCenter: ({ notificationsContext, startupToastNotification, }: NotificationsCenterProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
1
|
+
import React, { type ReactElement } from "react";
|
|
2
2
|
import type { DispatchHideNotification, DispatchShowNotification } from "./NotificationsContext";
|
|
3
3
|
export declare const NotificationsProvider: (props: {
|
|
4
4
|
children: ReactElement | ReactElement[];
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export declare const useNotifications: () => {
|
|
7
7
|
hideNotification: DispatchHideNotification;
|
|
8
8
|
showNotification: DispatchShowNotification;
|
|
@@ -12,4 +12,4 @@ export type ToastNotificationProps = {
|
|
|
12
12
|
opacity?: number;
|
|
13
13
|
top?: number;
|
|
14
14
|
};
|
|
15
|
-
export declare const ToastNotification: ({ hidden, id, left, onDismiss, onMeasured, top, notification, onHoverEntry, onHoverExit, opacity, }: ToastNotificationProps) => import("react
|
|
15
|
+
export declare const ToastNotification: ({ hidden, id, left, onDismiss, onMeasured, top, notification, onHoverEntry, onHoverExit, opacity, }: ToastNotificationProps) => import("react").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { HTMLAttributes, ReactNode } from "react";
|
|
|
2
2
|
export interface WorkspaceNotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const WorkspaceNotification: ({ children, className, style: styleProp, ...htmlAttributes }: WorkspaceNotificationProps) => import("react
|
|
5
|
+
export declare const WorkspaceNotification: ({ children, className, style: styleProp, ...htmlAttributes }: WorkspaceNotificationProps) => import("react").JSX.Element;
|