@trops/dash-core 0.1.66 → 0.1.67
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/dist/index.esm.js +11 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27118,12 +27118,12 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27118
27118
|
activeStep: wizardStep,
|
|
27119
27119
|
onStepChange: handleWizardStepChange,
|
|
27120
27120
|
showNavigation: false,
|
|
27121
|
-
className: "flex-1 min-h-0 flex flex-col",
|
|
27121
|
+
className: "flex-1 min-h-0 flex flex-col px-6 pt-4",
|
|
27122
27122
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
27123
27123
|
label: "Configure",
|
|
27124
27124
|
description: "Server & credentials",
|
|
27125
27125
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27126
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27126
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27127
27127
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27128
27128
|
className: "flex flex-col gap-2",
|
|
27129
27129
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FormLabel, {
|
|
@@ -27490,7 +27490,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27490
27490
|
label: "Test",
|
|
27491
27491
|
description: "Verify connection",
|
|
27492
27492
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27493
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27493
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27494
27494
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27495
27495
|
className: "flex flex-col items-center justify-center py-8 space-y-4",
|
|
27496
27496
|
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
@@ -27517,7 +27517,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27517
27517
|
label: "Tools",
|
|
27518
27518
|
description: "Select allowed tools",
|
|
27519
27519
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
27520
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27520
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27521
27521
|
children: testResult !== null && testResult !== void 0 && testResult.success && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools ? /*#__PURE__*/jsxRuntime.jsx(ToolSelector, {
|
|
27522
27522
|
tools: testResult.tools,
|
|
27523
27523
|
selectedTools: selectedTools,
|
|
@@ -27737,9 +27737,10 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
27737
27737
|
setWizardStep(newStep);
|
|
27738
27738
|
return;
|
|
27739
27739
|
}
|
|
27740
|
-
// Step 0→1: validate the configure form
|
|
27740
|
+
// Step 0→1: validate the configure form + auth gate
|
|
27741
27741
|
if (wizardStep === 0 && newStep >= 1) {
|
|
27742
27742
|
if (!validateForm()) return;
|
|
27743
|
+
if (selectedServer !== null && selectedServer !== void 0 && selectedServer.authCommand && !(authResult !== null && authResult !== void 0 && authResult.success)) return;
|
|
27743
27744
|
}
|
|
27744
27745
|
// Step 1→2: require successful test
|
|
27745
27746
|
if (wizardStep === 1 && newStep >= 2) {
|
|
@@ -27946,12 +27947,12 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
27946
27947
|
activeStep: wizardStep,
|
|
27947
27948
|
onStepChange: handleWizardStepChange,
|
|
27948
27949
|
showNavigation: false,
|
|
27949
|
-
className: "flex-1 min-h-0 flex flex-col",
|
|
27950
|
+
className: "flex-1 min-h-0 flex flex-col px-6 pt-4",
|
|
27950
27951
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
27951
27952
|
label: "Configure",
|
|
27952
27953
|
description: "Name & credentials",
|
|
27953
27954
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27954
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27955
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27955
27956
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27956
27957
|
className: "bg-white/5 border border-white/10 rounded-lg p-4 space-y-3",
|
|
27957
27958
|
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
@@ -28099,7 +28100,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28099
28100
|
label: "Test",
|
|
28100
28101
|
description: "Verify connection",
|
|
28101
28102
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
28102
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
28103
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
28103
28104
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
28104
28105
|
className: "flex flex-col items-center justify-center py-8 space-y-4",
|
|
28105
28106
|
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
@@ -28126,7 +28127,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28126
28127
|
label: "Tools",
|
|
28127
28128
|
description: "Select allowed tools",
|
|
28128
28129
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
28129
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
28130
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
28130
28131
|
children: testResult !== null && testResult !== void 0 && testResult.success && ((_testResult$tools = testResult.tools) === null || _testResult$tools === void 0 ? void 0 : _testResult$tools.length) > 0 && selectedTools ? /*#__PURE__*/jsxRuntime.jsx(ToolSelector, {
|
|
28131
28132
|
tools: testResult.tools,
|
|
28132
28133
|
selectedTools: selectedTools,
|
|
@@ -28171,6 +28172,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28171
28172
|
onClick: function onClick() {
|
|
28172
28173
|
return handleWizardStepChange(1);
|
|
28173
28174
|
},
|
|
28175
|
+
disabled: (selectedServer === null || selectedServer === void 0 ? void 0 : selectedServer.authCommand) && !(authResult !== null && authResult !== void 0 && authResult.success),
|
|
28174
28176
|
size: "sm"
|
|
28175
28177
|
})]
|
|
28176
28178
|
}), wizardStep === 1 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|