@trops/dash-core 0.1.7 → 0.1.9
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 +21 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcpServerCatalog.json +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4263,19 +4263,19 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
4263
4263
|
}
|
|
4264
4264
|
return null;
|
|
4265
4265
|
}
|
|
4266
|
-
function handleTextChangeCustom(
|
|
4266
|
+
function handleTextChangeCustom(key, value) {
|
|
4267
4267
|
var newItem = JSON.parse(JSON.stringify(itemSelected));
|
|
4268
4268
|
if ("userPrefs" in itemSelected === false) {
|
|
4269
4269
|
newItem["userPrefs"] = {};
|
|
4270
4270
|
}
|
|
4271
|
-
newItem["userPrefs"][
|
|
4272
|
-
handleUpdate(
|
|
4271
|
+
newItem["userPrefs"][key] = value;
|
|
4272
|
+
handleUpdate(null, newItem);
|
|
4273
4273
|
}
|
|
4274
4274
|
function renderFormItem(displayName, key, instructions, required, value, _onChange, configItem) {
|
|
4275
4275
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4276
4276
|
className: "flex flex-col space-y-1",
|
|
4277
4277
|
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
4278
|
-
className: "text-sm font-medium opacity-70",
|
|
4278
|
+
className: "text-sm font-medium text-current opacity-70",
|
|
4279
4279
|
children: [displayName, " ", required === true && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
4280
4280
|
className: "text-red-500",
|
|
4281
4281
|
children: "*"
|
|
@@ -4287,18 +4287,18 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
4287
4287
|
type: "text",
|
|
4288
4288
|
name: key,
|
|
4289
4289
|
value: value,
|
|
4290
|
-
onChange: function onChange(
|
|
4291
|
-
return _onChange(
|
|
4290
|
+
onChange: function onChange(value) {
|
|
4291
|
+
return _onChange(key, value);
|
|
4292
4292
|
},
|
|
4293
|
-
|
|
4293
|
+
inputClassName: "text-sm"
|
|
4294
4294
|
}), configItem["type"] === "secret" && /*#__PURE__*/jsxRuntime.jsx(DashReact.InputText, {
|
|
4295
4295
|
type: "password",
|
|
4296
4296
|
name: key,
|
|
4297
4297
|
value: value,
|
|
4298
|
-
onChange: function onChange(
|
|
4299
|
-
return _onChange(
|
|
4298
|
+
onChange: function onChange(value) {
|
|
4299
|
+
return _onChange(key, value);
|
|
4300
4300
|
},
|
|
4301
|
-
|
|
4301
|
+
inputClassName: "text-sm"
|
|
4302
4302
|
}), configItem["type"] === "select" && /*#__PURE__*/jsxRuntime.jsxs(DashReact.SelectMenu, {
|
|
4303
4303
|
name: key,
|
|
4304
4304
|
selectedValue: value,
|
|
@@ -6106,14 +6106,14 @@ var WidgetConfigPanel = function WidgetConfigPanel(_ref) {
|
|
|
6106
6106
|
} catch (e) {
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
|
-
function handleTextChangeCustom(
|
|
6109
|
+
function handleTextChangeCustom(key, value) {
|
|
6110
6110
|
var newItem = JSON.parse(JSON.stringify(itemSelected));
|
|
6111
6111
|
if ("userPrefs" in itemSelected === false) {
|
|
6112
6112
|
newItem["userPrefs"] = {};
|
|
6113
6113
|
}
|
|
6114
|
-
newItem["userPrefs"][
|
|
6114
|
+
newItem["userPrefs"][key] = value;
|
|
6115
6115
|
//setItemSelected(() => newItem);
|
|
6116
|
-
onChange(
|
|
6116
|
+
onChange(null, newItem);
|
|
6117
6117
|
}
|
|
6118
6118
|
|
|
6119
6119
|
/**
|
|
@@ -6160,18 +6160,18 @@ var WidgetConfigPanel = function WidgetConfigPanel(_ref) {
|
|
|
6160
6160
|
type: "text",
|
|
6161
6161
|
name: key,
|
|
6162
6162
|
value: value,
|
|
6163
|
-
onChange: function onChange(
|
|
6164
|
-
return _onChange(
|
|
6163
|
+
onChange: function onChange(value) {
|
|
6164
|
+
return _onChange(key, value);
|
|
6165
6165
|
},
|
|
6166
|
-
|
|
6166
|
+
inputClassName: "text-sm"
|
|
6167
6167
|
}), configItem["type"] === "secret" && /*#__PURE__*/jsxRuntime.jsx(DashReact.InputText, {
|
|
6168
6168
|
type: "password",
|
|
6169
6169
|
name: key,
|
|
6170
6170
|
value: value,
|
|
6171
|
-
onChange: function onChange(
|
|
6172
|
-
return _onChange(
|
|
6171
|
+
onChange: function onChange(value) {
|
|
6172
|
+
return _onChange(key, value);
|
|
6173
6173
|
},
|
|
6174
|
-
|
|
6174
|
+
inputClassName: "text-sm"
|
|
6175
6175
|
}), configItem["type"] === "select" && /*#__PURE__*/jsxRuntime.jsxs(DashReact.SelectMenu, {
|
|
6176
6176
|
name: key,
|
|
6177
6177
|
selectedValue: value,
|
|
@@ -9047,7 +9047,7 @@ function deriveFormFields(mcpConfig) {
|
|
|
9047
9047
|
return {
|
|
9048
9048
|
key: key,
|
|
9049
9049
|
displayName: schemaMeta.displayName || formatFieldName(key),
|
|
9050
|
-
required: schemaMeta.required
|
|
9050
|
+
required: schemaMeta.required === true,
|
|
9051
9051
|
secret: schemaMeta.secret || false,
|
|
9052
9052
|
instructions: schemaMeta.instructions || null,
|
|
9053
9053
|
type: schemaMeta.type || "text"
|
|
@@ -9058,7 +9058,7 @@ function deriveFormFields(mcpConfig) {
|
|
|
9058
9058
|
return {
|
|
9059
9059
|
key: key,
|
|
9060
9060
|
displayName: formatFieldName(key),
|
|
9061
|
-
required:
|
|
9061
|
+
required: false,
|
|
9062
9062
|
secret: isLikelySecret(key),
|
|
9063
9063
|
instructions: null,
|
|
9064
9064
|
type: "text"
|