UNPKG

@grafana/runtime

Version:
25 lines (22 loc) 739 B
import { BusEventBase, BusEventWithPayload } from '@grafana/data'; class RefreshEvent extends BusEventBase { } RefreshEvent.type = "refresh"; class ThemeChangedEvent extends BusEventWithPayload { } ThemeChangedEvent.type = "theme-changed"; class TimeRangeUpdatedEvent extends BusEventWithPayload { } TimeRangeUpdatedEvent.type = "time-range-updated"; class CopyPanelEvent extends BusEventWithPayload { } CopyPanelEvent.type = "copy-panel"; let singletonInstance; function setAppEvents(instance) { singletonInstance = instance; } function getAppEvents() { return singletonInstance; } export { CopyPanelEvent, RefreshEvent, ThemeChangedEvent, TimeRangeUpdatedEvent, getAppEvents, setAppEvents }; //# sourceMappingURL=appEvents.mjs.map