@cccsaurora/clue-ui 1.3.0-dev.346 → 1.3.0-dev.347

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.
@@ -4,5 +4,6 @@ import { FC } from 'react';
4
4
 
5
5
  declare const Result: FC<{
6
6
  result: WithActionData<ActionResult>;
7
+ [additionalProp: string]: any;
7
8
  }>;
8
9
  export default Result;
@@ -4,12 +4,18 @@ import { J as JSONViewer } from "../../../index-BF4c1XBg.js";
4
4
  import Markdown from "../../display/markdown/index.js";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import { u as usePluginStore, c as clueUIPluginStore } from "../../../store-Dslbt6yE.js";
7
- const Result = ({ result }) => {
7
+ const Result = ({
8
+ result,
9
+ ...additionalProps
10
+ }) => {
8
11
  const pluginStore = usePluginStore();
9
12
  const { t } = useTranslation();
10
13
  const plugin = clueUIPluginStore.getPlugin(result.format, "action", result.actionId);
11
14
  if (plugin) {
12
- const component = pluginStore.executeFunction(`${plugin}.actionResult`, { result });
15
+ const component = pluginStore.executeFunction(`${plugin}.actionResult`, {
16
+ result,
17
+ ...additionalProps
18
+ });
13
19
  if (component) {
14
20
  return component;
15
21
  }
package/package.json CHANGED
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "type": "module",
69
69
  "types": "main.d.ts",
70
- "version": "1.3.0-dev.346",
70
+ "version": "1.3.0-dev.347",
71
71
  "exports": {
72
72
  ".": "./main.js",
73
73
  "./index.css": "./index.css",