@blocklet/pages-kit 0.2.367 → 0.2.368
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.
- package/lib/cjs/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +1 -1
- package/lib/cjs/builtin/async/ai-runtime/locales/index.js +2 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +2 -2
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +2 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +2 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -76,5 +76,5 @@ function AgentSettingsDialog(_a) {
|
|
|
76
76
|
throw error;
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ fullWidth: true, maxWidth: "md" }, props, { open: isOpen, onClose: onClose, component: "form", onSubmit: form.handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('settings') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.Stack, { gap: 1, children: agent.config.secrets.map(({ targetInput, hasValue }, index) => ((0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: 0.5, children: [(0, jsx_runtime_1.
|
|
79
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ fullWidth: true, maxWidth: "md" }, props, { open: isOpen, onClose: onClose, component: "form", onSubmit: form.handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('settings') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.Stack, { gap: 1, children: agent.config.secrets.map(({ targetInput, hasValue }, index) => ((0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: 0.5, children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "caption", children: [targetInput.label || targetInput.key, ' ', targetInput.docLink && ((0, jsx_runtime_1.jsx)(material_1.Link, { href: targetInput.docLink, target: "_blank", children: t('docLink') }))] }), (0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({ autoFocus: index === 0, type: "password", fullWidth: true, hiddenLabel: true, size: "small", inputProps: { maxLength: 100 }, placeholder: hasValue ? '******' : targetInput.placeholder }, form.register(`secrets.${index}.secret`, { required: true })))] }, targetInput.id))) }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: onClose, children: t('cancel') }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { type: "submit", variant: "contained", loading: form.formState.isSubmitting, children: t('save') })] })] })));
|
|
80
80
|
}
|
|
@@ -116,6 +116,7 @@ exports.translations = {
|
|
|
116
116
|
},
|
|
117
117
|
settings: 'Settings',
|
|
118
118
|
setup: 'Setup',
|
|
119
|
+
docLink: 'Document Link',
|
|
119
120
|
},
|
|
120
121
|
zh: {
|
|
121
122
|
by: '作者',
|
|
@@ -231,5 +232,6 @@ exports.translations = {
|
|
|
231
232
|
},
|
|
232
233
|
settings: '设置',
|
|
233
234
|
setup: '设置',
|
|
235
|
+
docLink: '文档链接',
|
|
234
236
|
},
|
|
235
237
|
};
|