@variamosple/variamos-components 0.2.2 → 0.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/Components/ConfirmationModal/index.d.ts +1 -1
- package/dist/Context/NotificationContext.d.ts +5 -0
- package/dist/Context/NotificationContext.js +305 -295
- package/dist/Context/notificationAccessToken.d.ts +29 -0
- package/dist/Context/notificationAccessToken.js +40 -0
- package/package.json +5 -3
|
@@ -9,4 +9,4 @@ export interface ConfirmationModalProps {
|
|
|
9
9
|
cancelButtonVariant?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const confirmationModalDefaultProps: ConfirmationModalProps;
|
|
12
|
-
export default function ConfirmationModal({ show, onCancel, onConfirm, message, confirmLabel, confirmButtonVariant, cancelButtonVariant, cancelLabel, }: ConfirmationModalProps): import(
|
|
12
|
+
export default function ConfirmationModal({ show, onCancel, onConfirm, message, confirmLabel, confirmButtonVariant, cancelButtonVariant, cancelLabel, }: ConfirmationModalProps): import('react').JSX.Element;
|
|
@@ -27,6 +27,11 @@ interface NotificationContextType {
|
|
|
27
27
|
}
|
|
28
28
|
export interface NotificationProviderProps {
|
|
29
29
|
apiUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Admin API base address, e.g. https://app.variamos.com/variamos_ms_admin/.
|
|
32
|
+
* When set, requests and the socket carry a notification access token.
|
|
33
|
+
*/
|
|
34
|
+
adminApiUrl?: string;
|
|
30
35
|
children: ReactNode;
|
|
31
36
|
}
|
|
32
37
|
export declare const NotificationProvider: FC<NotificationProviderProps>;
|