@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.esm.js
CHANGED
|
@@ -27099,12 +27099,12 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27099
27099
|
activeStep: wizardStep,
|
|
27100
27100
|
onStepChange: handleWizardStepChange,
|
|
27101
27101
|
showNavigation: false,
|
|
27102
|
-
className: "flex-1 min-h-0 flex flex-col",
|
|
27102
|
+
className: "flex-1 min-h-0 flex flex-col px-6 pt-4",
|
|
27103
27103
|
children: [/*#__PURE__*/jsx(Stepper.Step, {
|
|
27104
27104
|
label: "Configure",
|
|
27105
27105
|
description: "Server & credentials",
|
|
27106
27106
|
children: /*#__PURE__*/jsxs("div", {
|
|
27107
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27107
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27108
27108
|
children: [/*#__PURE__*/jsxs("div", {
|
|
27109
27109
|
className: "flex flex-col gap-2",
|
|
27110
27110
|
children: [/*#__PURE__*/jsx(FormLabel, {
|
|
@@ -27471,7 +27471,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27471
27471
|
label: "Test",
|
|
27472
27472
|
description: "Verify connection",
|
|
27473
27473
|
children: /*#__PURE__*/jsxs("div", {
|
|
27474
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27474
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27475
27475
|
children: [/*#__PURE__*/jsxs("div", {
|
|
27476
27476
|
className: "flex flex-col items-center justify-center py-8 space-y-4",
|
|
27477
27477
|
children: [/*#__PURE__*/jsx("p", {
|
|
@@ -27498,7 +27498,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
27498
27498
|
label: "Tools",
|
|
27499
27499
|
description: "Select allowed tools",
|
|
27500
27500
|
children: /*#__PURE__*/jsx("div", {
|
|
27501
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27501
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27502
27502
|
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__*/jsx(ToolSelector, {
|
|
27503
27503
|
tools: testResult.tools,
|
|
27504
27504
|
selectedTools: selectedTools,
|
|
@@ -27718,9 +27718,10 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
27718
27718
|
setWizardStep(newStep);
|
|
27719
27719
|
return;
|
|
27720
27720
|
}
|
|
27721
|
-
// Step 0→1: validate the configure form
|
|
27721
|
+
// Step 0→1: validate the configure form + auth gate
|
|
27722
27722
|
if (wizardStep === 0 && newStep >= 1) {
|
|
27723
27723
|
if (!validateForm()) return;
|
|
27724
|
+
if (selectedServer !== null && selectedServer !== void 0 && selectedServer.authCommand && !(authResult !== null && authResult !== void 0 && authResult.success)) return;
|
|
27724
27725
|
}
|
|
27725
27726
|
// Step 1→2: require successful test
|
|
27726
27727
|
if (wizardStep === 1 && newStep >= 2) {
|
|
@@ -27927,12 +27928,12 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
27927
27928
|
activeStep: wizardStep,
|
|
27928
27929
|
onStepChange: handleWizardStepChange,
|
|
27929
27930
|
showNavigation: false,
|
|
27930
|
-
className: "flex-1 min-h-0 flex flex-col",
|
|
27931
|
+
className: "flex-1 min-h-0 flex flex-col px-6 pt-4",
|
|
27931
27932
|
children: [/*#__PURE__*/jsx(Stepper.Step, {
|
|
27932
27933
|
label: "Configure",
|
|
27933
27934
|
description: "Name & credentials",
|
|
27934
27935
|
children: /*#__PURE__*/jsxs("div", {
|
|
27935
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
27936
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
27936
27937
|
children: [/*#__PURE__*/jsxs("div", {
|
|
27937
27938
|
className: "bg-white/5 border border-white/10 rounded-lg p-4 space-y-3",
|
|
27938
27939
|
children: [/*#__PURE__*/jsx("p", {
|
|
@@ -28080,7 +28081,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28080
28081
|
label: "Test",
|
|
28081
28082
|
description: "Verify connection",
|
|
28082
28083
|
children: /*#__PURE__*/jsxs("div", {
|
|
28083
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
28084
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
28084
28085
|
children: [/*#__PURE__*/jsxs("div", {
|
|
28085
28086
|
className: "flex flex-col items-center justify-center py-8 space-y-4",
|
|
28086
28087
|
children: [/*#__PURE__*/jsx("p", {
|
|
@@ -28107,7 +28108,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28107
28108
|
label: "Tools",
|
|
28108
28109
|
description: "Select allowed tools",
|
|
28109
28110
|
children: /*#__PURE__*/jsx("div", {
|
|
28110
|
-
className: "flex-1 min-h-0 overflow-y-auto
|
|
28111
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-5",
|
|
28111
28112
|
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__*/jsx(ToolSelector, {
|
|
28112
28113
|
tools: testResult.tools,
|
|
28113
28114
|
selectedTools: selectedTools,
|
|
@@ -28152,6 +28153,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
28152
28153
|
onClick: function onClick() {
|
|
28153
28154
|
return handleWizardStepChange(1);
|
|
28154
28155
|
},
|
|
28156
|
+
disabled: (selectedServer === null || selectedServer === void 0 ? void 0 : selectedServer.authCommand) && !(authResult !== null && authResult !== void 0 && authResult.success),
|
|
28155
28157
|
size: "sm"
|
|
28156
28158
|
})]
|
|
28157
28159
|
}), wizardStep === 1 && /*#__PURE__*/jsxs(Fragment, {
|