@ethisyscore/plugin-ui 1.100.2 → 1.100.4
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/components/connectors/index.cjs +56 -10
- package/dist/components/connectors/index.cjs.map +1 -1
- package/dist/components/connectors/index.d.cts +2 -2
- package/dist/components/connectors/index.d.ts +2 -2
- package/dist/components/connectors/index.js +57 -12
- package/dist/components/connectors/index.js.map +1 -1
- package/dist/components/ui/index.cjs +4 -0
- package/dist/components/ui/index.d.cts +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/connector-mappings/index.d.cts +2 -2
- package/dist/connector-mappings/index.d.ts +2 -2
- package/dist/{mappingQueryKeys-BcbA0TGy.d.cts → mappingQueryKeys-KONuceBb.d.cts} +22 -1
- package/dist/{mappingQueryKeys-BcbA0TGy.d.ts → mappingQueryKeys-KONuceBb.d.ts} +22 -1
- package/dist/platform-react/index.cjs +70 -24
- package/dist/platform-react/index.cjs.map +1 -1
- package/dist/platform-react/index.d.cts +45 -2
- package/dist/platform-react/index.d.ts +45 -2
- package/dist/platform-react/index.js +71 -26
- package/dist/platform-react/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-
|
|
2
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, M as MappingCompletenessBanner, f as MappingCompletenessBannerProps, g as MappingCompletenessItem, h as MappingCompletenessResult, i as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, l as TestToolMappingRequest, m as TestToolMappingResult, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../../mappingQueryKeys-
|
|
1
|
+
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-KONuceBb.cjs';
|
|
2
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, M as MappingCompletenessBanner, f as MappingCompletenessBannerProps, g as MappingCompletenessItem, h as MappingCompletenessResult, i as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, l as TestToolMappingRequest, m as TestToolMappingResult, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../../mappingQueryKeys-KONuceBb.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-
|
|
2
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, M as MappingCompletenessBanner, f as MappingCompletenessBannerProps, g as MappingCompletenessItem, h as MappingCompletenessResult, i as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, l as TestToolMappingRequest, m as TestToolMappingResult, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../../mappingQueryKeys-
|
|
1
|
+
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-KONuceBb.js';
|
|
2
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, M as MappingCompletenessBanner, f as MappingCompletenessBannerProps, g as MappingCompletenessItem, h as MappingCompletenessResult, i as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, l as TestToolMappingRequest, m as TestToolMappingResult, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../../mappingQueryKeys-KONuceBb.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl, InputLabel, FilledInput, InputAdornment, IconButton, Box, Alert, AlertTitle, Typography, Stack, Skeleton, Grid, Tooltip, Button, Select, MenuItem, Card, CardContent, Chip, Autocomplete, TextField, DialogTitle, DialogContent, Divider, Collapse, DialogActions, CircularProgress, Dialog as Dialog$1 } from '@mui/material';
|
|
1
|
+
import { FormControl, InputLabel, FilledInput, InputAdornment, IconButton, Box, Alert, AlertTitle, Typography, Stack, Skeleton, Grid, Tooltip, Button, Select, MenuItem, Card, CardContent, Chip, Autocomplete, TextField, DialogTitle, DialogContent, Divider, Collapse, DialogActions, FormControlLabel, Checkbox, CircularProgress, Dialog as Dialog$1 } from '@mui/material';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { memo, useState, useId, useRef, useEffect, useCallback, createElement } from 'react';
|
|
4
4
|
|
|
@@ -1581,6 +1581,10 @@ function ConnectorMappingView({
|
|
|
1581
1581
|
] }) })
|
|
1582
1582
|
] });
|
|
1583
1583
|
}
|
|
1584
|
+
var SUPPRESS_REQUEST_FIELD_VALUE = "(suppress)";
|
|
1585
|
+
function isSuppressed(value) {
|
|
1586
|
+
return value?.trim().toLowerCase() === SUPPRESS_REQUEST_FIELD_VALUE;
|
|
1587
|
+
}
|
|
1584
1588
|
function ConnectorMappingTranslationEditorView({
|
|
1585
1589
|
open,
|
|
1586
1590
|
operationLabel,
|
|
@@ -1624,6 +1628,12 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1624
1628
|
const handleRequestChange = (canonicalName, value) => {
|
|
1625
1629
|
setRequestValues((prev) => ({ ...prev, [canonicalName]: value }));
|
|
1626
1630
|
};
|
|
1631
|
+
const handleRequestSuppressToggle = (canonicalName, suppress) => {
|
|
1632
|
+
setRequestValues((prev) => ({
|
|
1633
|
+
...prev,
|
|
1634
|
+
[canonicalName]: suppress ? SUPPRESS_REQUEST_FIELD_VALUE : ""
|
|
1635
|
+
}));
|
|
1636
|
+
};
|
|
1627
1637
|
const handleResponseChange = (canonicalName, value) => {
|
|
1628
1638
|
setResponseValues((prev) => ({ ...prev, [canonicalName]: value }));
|
|
1629
1639
|
};
|
|
@@ -1717,7 +1727,11 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1717
1727
|
children: [
|
|
1718
1728
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1719
1729
|
/* @__PURE__ */ jsx(Typography, { variant: "h6", component: "h2", className: "mb-3", children: "Request fields" }),
|
|
1720
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-text-secondary mb-2 block", children: [
|
|
1731
|
+
"Map each canonical request field to the tool's actual input field name. If the tool has no property for a field, tick ",
|
|
1732
|
+
/* @__PURE__ */ jsx("strong", { children: "Do not send this field" }),
|
|
1733
|
+
" \u2014 many tools reject a whole call for one argument they do not recognise."
|
|
1734
|
+
] }),
|
|
1721
1735
|
canonicalRequestFields.length === 0 ? /* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-text-disabled italic", children: "No request fields declared." }) : /* @__PURE__ */ jsx(Box, { className: "flex flex-col gap-3", children: canonicalRequestFields.map((field) => /* @__PURE__ */ jsx(
|
|
1722
1736
|
FieldRow,
|
|
1723
1737
|
{
|
|
@@ -1725,7 +1739,8 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1725
1739
|
value: requestValues[field.name] ?? "",
|
|
1726
1740
|
onChange: (v) => handleRequestChange(field.name, v),
|
|
1727
1741
|
placeholder: "Same as canonical",
|
|
1728
|
-
inputLabel: "Tool field name"
|
|
1742
|
+
inputLabel: "Tool field name",
|
|
1743
|
+
onSuppressToggle: (v) => handleRequestSuppressToggle(field.name, v)
|
|
1729
1744
|
},
|
|
1730
1745
|
field.name
|
|
1731
1746
|
)) })
|
|
@@ -1976,7 +1991,15 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1976
1991
|
] })
|
|
1977
1992
|
] });
|
|
1978
1993
|
}
|
|
1979
|
-
function FieldRow({
|
|
1994
|
+
function FieldRow({
|
|
1995
|
+
field,
|
|
1996
|
+
value,
|
|
1997
|
+
onChange,
|
|
1998
|
+
placeholder,
|
|
1999
|
+
inputLabel,
|
|
2000
|
+
onSuppressToggle
|
|
2001
|
+
}) {
|
|
2002
|
+
const suppressed = isSuppressed(value);
|
|
1980
2003
|
return /* @__PURE__ */ jsxs(Box, { className: "flex flex-row items-start gap-3", children: [
|
|
1981
2004
|
/* @__PURE__ */ jsxs(Box, { className: "flex flex-col gap-1", sx: { width: 200, flexShrink: 0 }, children: [
|
|
1982
2005
|
/* @__PURE__ */ jsxs(Box, { className: "flex items-center gap-1.5", children: [
|
|
@@ -1985,14 +2008,36 @@ function FieldRow({ field, value, onChange, placeholder, inputLabel }) {
|
|
|
1985
2008
|
] }),
|
|
1986
2009
|
/* @__PURE__ */ jsx(Chip, { label: field.kind, size: "small", variant: "outlined", sx: { alignSelf: "flex-start" } })
|
|
1987
2010
|
] }),
|
|
1988
|
-
/* @__PURE__ */ jsxs(
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
|
|
1991
|
-
|
|
2011
|
+
/* @__PURE__ */ jsxs(Box, { className: "flex flex-1 flex-col", children: [
|
|
2012
|
+
/* @__PURE__ */ jsxs(FormControl, { variant: "filled", size: "medium", className: "surface mb-0 flex-1", children: [
|
|
2013
|
+
/* @__PURE__ */ jsx(InputLabel, { children: inputLabel }),
|
|
2014
|
+
/* @__PURE__ */ jsx(
|
|
2015
|
+
FilledInput,
|
|
2016
|
+
{
|
|
2017
|
+
value: suppressed ? "" : value,
|
|
2018
|
+
onChange: (e) => onChange(e.target.value),
|
|
2019
|
+
placeholder: suppressed ? "Not sent" : placeholder,
|
|
2020
|
+
disabled: suppressed
|
|
2021
|
+
}
|
|
2022
|
+
)
|
|
2023
|
+
] }),
|
|
2024
|
+
onSuppressToggle && /* @__PURE__ */ jsx(
|
|
2025
|
+
FormControlLabel,
|
|
1992
2026
|
{
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2027
|
+
className: "mt-1",
|
|
2028
|
+
control: /* @__PURE__ */ jsx(
|
|
2029
|
+
Checkbox,
|
|
2030
|
+
{
|
|
2031
|
+
size: "small",
|
|
2032
|
+
checked: suppressed,
|
|
2033
|
+
onChange: (e) => onSuppressToggle(e.target.checked),
|
|
2034
|
+
inputProps: { "aria-label": `Do not send ${field.name}` }
|
|
2035
|
+
}
|
|
2036
|
+
),
|
|
2037
|
+
label: /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-text-secondary", children: [
|
|
2038
|
+
"Do not send this field",
|
|
2039
|
+
field.isRequired ? " (this operation declares it as required)" : ""
|
|
2040
|
+
] })
|
|
1996
2041
|
}
|
|
1997
2042
|
)
|
|
1998
2043
|
] })
|
|
@@ -2032,6 +2077,6 @@ function connectorMappingCompletenessQueryKey(connectorId, moduleKey) {
|
|
|
2032
2077
|
return [...connectorMappingsQueryKey(connectorId, moduleKey), "completeness"];
|
|
2033
2078
|
}
|
|
2034
2079
|
|
|
2035
|
-
export { CONNECTOR_CONTROL_LABEL, ConnectorMappingTranslationEditorView, ConnectorMappingView, MappingCompletenessBanner, PLUGIN_PROVIDER_CONTROL_LABEL, PROVIDER_CONTROL_LABEL, PROVIDER_OPTION_LABEL, connectorMappingCompletenessQueryKey, connectorMappingsQueryKey, connectorMappingsRootQueryKey, pluginTargetMappingsQueryKey, selectIncompleteOperations, selectMappingReadiness, selectOptionalIncompleteOperations, selectRequiredIncompleteOperations };
|
|
2080
|
+
export { CONNECTOR_CONTROL_LABEL, ConnectorMappingTranslationEditorView, ConnectorMappingView, MappingCompletenessBanner, PLUGIN_PROVIDER_CONTROL_LABEL, PROVIDER_CONTROL_LABEL, PROVIDER_OPTION_LABEL, SUPPRESS_REQUEST_FIELD_VALUE, connectorMappingCompletenessQueryKey, connectorMappingsQueryKey, connectorMappingsRootQueryKey, pluginTargetMappingsQueryKey, selectIncompleteOperations, selectMappingReadiness, selectOptionalIncompleteOperations, selectRequiredIncompleteOperations };
|
|
2036
2081
|
//# sourceMappingURL=index.js.map
|
|
2037
2082
|
//# sourceMappingURL=index.js.map
|