@trops/dash-core 0.1.8 → 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.esm.js
CHANGED
|
@@ -4244,19 +4244,19 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
4244
4244
|
}
|
|
4245
4245
|
return null;
|
|
4246
4246
|
}
|
|
4247
|
-
function handleTextChangeCustom(
|
|
4247
|
+
function handleTextChangeCustom(key, value) {
|
|
4248
4248
|
var newItem = JSON.parse(JSON.stringify(itemSelected));
|
|
4249
4249
|
if ("userPrefs" in itemSelected === false) {
|
|
4250
4250
|
newItem["userPrefs"] = {};
|
|
4251
4251
|
}
|
|
4252
|
-
newItem["userPrefs"][
|
|
4253
|
-
handleUpdate(
|
|
4252
|
+
newItem["userPrefs"][key] = value;
|
|
4253
|
+
handleUpdate(null, newItem);
|
|
4254
4254
|
}
|
|
4255
4255
|
function renderFormItem(displayName, key, instructions, required, value, _onChange, configItem) {
|
|
4256
4256
|
return /*#__PURE__*/jsxs("div", {
|
|
4257
4257
|
className: "flex flex-col space-y-1",
|
|
4258
4258
|
children: [/*#__PURE__*/jsxs("span", {
|
|
4259
|
-
className: "text-sm font-medium opacity-70",
|
|
4259
|
+
className: "text-sm font-medium text-current opacity-70",
|
|
4260
4260
|
children: [displayName, " ", required === true && /*#__PURE__*/jsx("span", {
|
|
4261
4261
|
className: "text-red-500",
|
|
4262
4262
|
children: "*"
|
|
@@ -4268,18 +4268,18 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
4268
4268
|
type: "text",
|
|
4269
4269
|
name: key,
|
|
4270
4270
|
value: value,
|
|
4271
|
-
onChange: function onChange(
|
|
4272
|
-
return _onChange(
|
|
4271
|
+
onChange: function onChange(value) {
|
|
4272
|
+
return _onChange(key, value);
|
|
4273
4273
|
},
|
|
4274
|
-
|
|
4274
|
+
inputClassName: "text-sm"
|
|
4275
4275
|
}), configItem["type"] === "secret" && /*#__PURE__*/jsx(InputText, {
|
|
4276
4276
|
type: "password",
|
|
4277
4277
|
name: key,
|
|
4278
4278
|
value: value,
|
|
4279
|
-
onChange: function onChange(
|
|
4280
|
-
return _onChange(
|
|
4279
|
+
onChange: function onChange(value) {
|
|
4280
|
+
return _onChange(key, value);
|
|
4281
4281
|
},
|
|
4282
|
-
|
|
4282
|
+
inputClassName: "text-sm"
|
|
4283
4283
|
}), configItem["type"] === "select" && /*#__PURE__*/jsxs(SelectMenu, {
|
|
4284
4284
|
name: key,
|
|
4285
4285
|
selectedValue: value,
|
|
@@ -6087,14 +6087,14 @@ var WidgetConfigPanel = function WidgetConfigPanel(_ref) {
|
|
|
6087
6087
|
} catch (e) {
|
|
6088
6088
|
}
|
|
6089
6089
|
}
|
|
6090
|
-
function handleTextChangeCustom(
|
|
6090
|
+
function handleTextChangeCustom(key, value) {
|
|
6091
6091
|
var newItem = JSON.parse(JSON.stringify(itemSelected));
|
|
6092
6092
|
if ("userPrefs" in itemSelected === false) {
|
|
6093
6093
|
newItem["userPrefs"] = {};
|
|
6094
6094
|
}
|
|
6095
|
-
newItem["userPrefs"][
|
|
6095
|
+
newItem["userPrefs"][key] = value;
|
|
6096
6096
|
//setItemSelected(() => newItem);
|
|
6097
|
-
onChange(
|
|
6097
|
+
onChange(null, newItem);
|
|
6098
6098
|
}
|
|
6099
6099
|
|
|
6100
6100
|
/**
|
|
@@ -6141,18 +6141,18 @@ var WidgetConfigPanel = function WidgetConfigPanel(_ref) {
|
|
|
6141
6141
|
type: "text",
|
|
6142
6142
|
name: key,
|
|
6143
6143
|
value: value,
|
|
6144
|
-
onChange: function onChange(
|
|
6145
|
-
return _onChange(
|
|
6144
|
+
onChange: function onChange(value) {
|
|
6145
|
+
return _onChange(key, value);
|
|
6146
6146
|
},
|
|
6147
|
-
|
|
6147
|
+
inputClassName: "text-sm"
|
|
6148
6148
|
}), configItem["type"] === "secret" && /*#__PURE__*/jsx(InputText, {
|
|
6149
6149
|
type: "password",
|
|
6150
6150
|
name: key,
|
|
6151
6151
|
value: value,
|
|
6152
|
-
onChange: function onChange(
|
|
6153
|
-
return _onChange(
|
|
6152
|
+
onChange: function onChange(value) {
|
|
6153
|
+
return _onChange(key, value);
|
|
6154
6154
|
},
|
|
6155
|
-
|
|
6155
|
+
inputClassName: "text-sm"
|
|
6156
6156
|
}), configItem["type"] === "select" && /*#__PURE__*/jsxs(SelectMenu, {
|
|
6157
6157
|
name: key,
|
|
6158
6158
|
selectedValue: value,
|
|
@@ -9028,7 +9028,7 @@ function deriveFormFields(mcpConfig) {
|
|
|
9028
9028
|
return {
|
|
9029
9029
|
key: key,
|
|
9030
9030
|
displayName: schemaMeta.displayName || formatFieldName(key),
|
|
9031
|
-
required: schemaMeta.required
|
|
9031
|
+
required: schemaMeta.required === true,
|
|
9032
9032
|
secret: schemaMeta.secret || false,
|
|
9033
9033
|
instructions: schemaMeta.instructions || null,
|
|
9034
9034
|
type: schemaMeta.type || "text"
|
|
@@ -9039,7 +9039,7 @@ function deriveFormFields(mcpConfig) {
|
|
|
9039
9039
|
return {
|
|
9040
9040
|
key: key,
|
|
9041
9041
|
displayName: formatFieldName(key),
|
|
9042
|
-
required:
|
|
9042
|
+
required: false,
|
|
9043
9043
|
secret: isLikelySecret(key),
|
|
9044
9044
|
instructions: null,
|
|
9045
9045
|
type: "text"
|