@blocklet/pages-kit 0.2.304 → 0.2.305
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.
|
@@ -99,12 +99,12 @@ function PromptView() {
|
|
|
99
99
|
const { agent } = (0, CurrentAgent_1.useCurrentAgent)();
|
|
100
100
|
const params = (0, react_2.useMemo)(() => {
|
|
101
101
|
var _a;
|
|
102
|
-
return (_a = agent.parameters) === null || _a === void 0 ? void 0 : _a.filter(agent_inputs_1.isValidInput).map((i) => { var _a; return [i.label || i.key, (
|
|
102
|
+
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]);
|
|
103
103
|
}, [agent.parameters, message.parameters]);
|
|
104
104
|
if ((params === null || params === void 0 ? void 0 : params.length) === 1) {
|
|
105
105
|
return (_a = params[0]) === null || _a === void 0 ? void 0 : _a[1];
|
|
106
106
|
}
|
|
107
|
-
return params === null || params === void 0 ? void 0 : params.map(([key, value]) => ((0, jsx_runtime_1.jsxs)(material_1.Typography, { sx: { wordWrap: 'break-word' }, children: [(0, jsx_runtime_1.
|
|
107
|
+
return params === null || params === void 0 ? void 0 : params.map(([key, value]) => ((0, jsx_runtime_1.jsxs)(material_1.Typography, { sx: { wordWrap: 'break-word' }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "span", sx: { color: 'text.secondary' }, children: key }), "\u00A0\u00A0", (0, jsx_runtime_1.jsx)("span", { children: value })] }, key)));
|
|
108
108
|
}
|
|
109
109
|
function PromptDialog(_a) {
|
|
110
110
|
var _b, _c, _d;
|
|
@@ -93,12 +93,12 @@ function PromptView() {
|
|
|
93
93
|
const { agent } = useCurrentAgent();
|
|
94
94
|
const params = useMemo(() => {
|
|
95
95
|
var _a;
|
|
96
|
-
return (_a = agent.parameters) === null || _a === void 0 ? void 0 : _a.filter(isValidInput).map((i) => { var _a; return [i.label || i.key, (
|
|
96
|
+
return (_a = agent.parameters) === null || _a === void 0 ? void 0 : _a.filter(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]);
|
|
97
97
|
}, [agent.parameters, message.parameters]);
|
|
98
98
|
if ((params === null || params === void 0 ? void 0 : params.length) === 1) {
|
|
99
99
|
return (_a = params[0]) === null || _a === void 0 ? void 0 : _a[1];
|
|
100
100
|
}
|
|
101
|
-
return params === null || params === void 0 ? void 0 : params.map(([key, value]) => (_jsxs(Typography, { sx: { wordWrap: 'break-word' }, children: [
|
|
101
|
+
return params === null || params === void 0 ? void 0 : params.map(([key, value]) => (_jsxs(Typography, { sx: { wordWrap: 'break-word' }, children: [_jsx(Box, { component: "span", sx: { color: 'text.secondary' }, children: key }), "\u00A0\u00A0", _jsx("span", { children: value })] }, key)));
|
|
102
102
|
}
|
|
103
103
|
function PromptDialog(_a) {
|
|
104
104
|
var _b, _c, _d;
|