@blocklet/pages-kit 0.2.336 → 0.2.337

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.
@@ -16,7 +16,9 @@ function UserMessageView() {
16
16
  const { agent } = (0, CurrentAgent_1.useCurrentAgent)();
17
17
  const params = (0, react_1.useMemo)(() => {
18
18
  var _a;
19
- return (_a = agent.parameters) === null || _a === void 0 ? void 0 : _a.filter(agent_inputs_1.isValidInput).map((i) => { var _a, _b; return [((_a = i.label) === null || _a === void 0 ? void 0 : _a.trim()) || i.key, (_b = message.parameters) === null || _b === void 0 ? void 0 : _b[i.key]]; }).filter((i) => i[1]);
19
+ const inputs = (_a = agent.parameters) === null || _a === void 0 ? void 0 : _a.filter(agent_inputs_1.isValidInput).map((i) => { var _a, _b; return [((_a = i.label) === null || _a === void 0 ? void 0 : _a.trim()) || i.key, (_b = message.parameters) === null || _b === void 0 ? void 0 : _b[i.key]]; }).filter((i) => i[1]);
20
+ const q = inputs === null || inputs === void 0 ? void 0 : inputs.find((i) => i[0] === 'question');
21
+ return q ? [q] : inputs;
20
22
  }, [agent.parameters, message.parameters]);
21
23
  if ((params === null || params === void 0 ? void 0 : params.length) === 1) {
22
24
  return (0, jsx_runtime_1.jsx)(MarkdownRenderer_1.default, { children: (_a = params[0]) === null || _a === void 0 ? void 0 : _a[1] });