@rimori/client 2.5.25 → 2.5.26-next.1

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.
@@ -69,6 +69,13 @@ export declare class EventModule {
69
69
  * @param text Optional text to be used for the action like for example text that the translator would look up.
70
70
  */
71
71
  emitSidebarAction(pluginId: string, actionKey: string, text?: string, args?: Record<string, unknown>): void;
72
+ /**
73
+ * Trigger an action that opens a plugin in the main panel and triggers an action.
74
+ * @param pluginId The id of the plugin to trigger the action for.
75
+ * @param actionKey The key of the action to trigger.
76
+ * @param params Optional additional parameters to pass to the action.
77
+ */
78
+ emitMainPanelAction(pluginId: string, actionKey: string, params?: Record<string, string>): void;
72
79
  /**
73
80
  * Subscribe to main panel actions triggered by the user from the dashboard.
74
81
  * @param callback Handler function that receives the action data when a matching action is triggered.
@@ -167,6 +167,15 @@ export class EventModule {
167
167
  emitSidebarAction(pluginId, actionKey, text, args) {
168
168
  this.emit('global.sidebar.triggerAction', { plugin_id: pluginId, action_key: actionKey, text, args });
169
169
  }
170
+ /**
171
+ * Trigger an action that opens a plugin in the main panel and triggers an action.
172
+ * @param pluginId The id of the plugin to trigger the action for.
173
+ * @param actionKey The key of the action to trigger.
174
+ * @param params Optional additional parameters to pass to the action.
175
+ */
176
+ emitMainPanelAction(pluginId, actionKey, params) {
177
+ this.emit('global.mainPanel.triggerAction', Object.assign({ plugin_id: pluginId, action_key: actionKey }, params));
178
+ }
170
179
  /**
171
180
  * Subscribe to main panel actions triggered by the user from the dashboard.
172
181
  * @param callback Handler function that receives the action data when a matching action is triggered.
@@ -135,7 +135,6 @@ export interface UserInfo {
135
135
  skill_level_listening: LanguageLevel;
136
136
  skill_level_understanding: LanguageLevel;
137
137
  study_buddy: Buddy;
138
- study_duration: number;
139
138
  /**
140
139
  * The language the user speaks natively.
141
140
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.5.25",
3
+ "version": "2.5.26-next.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {