Comparing version 1.16.4 to 1.16.5
@@ -19,2 +19,3 @@ import { ToastCallHandler, ToastInstance, ToastSettings } from './ToastManager/ToastManager'; | ||
success: (message: string, settings?: Pick<ToastSettings, "id" | "durationInSeconds" | "isClosable"> | undefined) => void | undefined; | ||
warning: (message: string, settings?: Pick<ToastSettings, "id" | "durationInSeconds" | "isClosable"> | undefined) => void | undefined; | ||
error: (message: string, settings?: Pick<ToastSettings, "id" | "durationInSeconds" | "isClosable"> | undefined) => void | undefined; | ||
@@ -21,0 +22,0 @@ remove: (id: string) => void | undefined; |
@@ -51,5 +51,5 @@ "use strict"; | ||
}; | ||
// warning = (message: string, settings?: Omit<ToastSettings, 'intent'>) => { | ||
// return this.notifyHandler(message, { ...settings, intent: 'warning' }); | ||
// }; | ||
this.warning = function (message, settings) { | ||
return _this.notifyHandler && _this.notifyHandler(message, __assign(__assign({}, settings), { intent: 'warning' })); | ||
}; | ||
this.error = function (message, settings) { | ||
@@ -56,0 +56,0 @@ return _this.notifyHandler && _this.notifyHandler(message, __assign(__assign({}, settings), { intent: 'error' })); |
{ | ||
"name": "ventura", | ||
"version": "1.16.4", | ||
"version": "1.16.5", | ||
"repository": "git@github.com:kodiak-packages/ventura.git", | ||
@@ -5,0 +5,0 @@ "author": "Kodiak", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
150926
2279