import LitUtils from "./lit-utils.js";

export default class NotificationUtils {

    // Notification types
    static NOTIFY = "notify";
    static NOTIFY_INFO = "notifyInfo";
    static NOTIFY_SUCCESS = "notifySuccess";
    static NOTIFY_WARNING = "notifyWarning";
    static NOTIFY_ERROR = "notifyError";
    static NOTIFY_RESPONSE = "notifyResponse";

    // Dispatch a notification event
    static dispatch(self, type, value) {
        return LitUtils.dispatchCustomEvent(self, type, null, value, null, {
            bubbles: true,
            composed: true,
        });
    }

}

@@ -1,43 +1,31 @@
-import LitUtils from %22./lit-utils.js%22;%0A
+// Notification utils class
 %0Aexp
@@ -427,76 +427,77 @@
     
-return LitUtils.dispatchCustomEvent(self, type, null, value, null, %7B
+self.dispatchEvent(new CustomEvent(type, %7B%0A            detail: value,
 %0A   
@@ -540,32 +540,32 @@
 composed: true,%0A
-
         %7D);%0A    
@@ -558,16 +558,17 @@
       %7D)
+)
 ;%0A    %7D%0A

fix bug notifying a response in notification utils (#299)