@rimori/client 2.5.5-next.1 → 2.5.5-next.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.
|
@@ -38,6 +38,11 @@ export type MainPanelAction = {
|
|
|
38
38
|
plugin_id: string;
|
|
39
39
|
action_key: string;
|
|
40
40
|
} & Record<string, string>;
|
|
41
|
+
export type SidebarAction = {
|
|
42
|
+
text: string;
|
|
43
|
+
action: string;
|
|
44
|
+
args?: Record<string, unknown>;
|
|
45
|
+
};
|
|
41
46
|
export interface ContextMenuAction {
|
|
42
47
|
text: string;
|
|
43
48
|
plugin_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MainPanelAction } from '../../fromRimori/PluginTypes';
|
|
1
|
+
import { MainPanelAction, SidebarAction } from '../../fromRimori/PluginTypes';
|
|
2
2
|
import { AccomplishmentPayload } from '../../controller/AccomplishmentController';
|
|
3
3
|
import { EventBusMessage, EventHandler, EventPayload, EventListener } from '../../fromRimori/EventBus';
|
|
4
4
|
/**
|
|
@@ -95,5 +95,5 @@ export declare class EventModule {
|
|
|
95
95
|
* @param actionsToListen Optional filter to listen only to specific action keys. If empty or not provided, all actions will trigger the callback.
|
|
96
96
|
* @returns An EventListener object with an `off()` method for cleanup.
|
|
97
97
|
*/
|
|
98
|
-
onSidePanelAction(callback: (data:
|
|
98
|
+
onSidePanelAction(callback: (data: SidebarAction) => void, actionsToListen?: string | string[]): EventListener;
|
|
99
99
|
}
|