@ethisyscore/plugin-ui 1.133.0 → 1.134.1
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 +20 -8
- 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 +20 -8
- package/dist/components/connectors/index.js.map +1 -1
- package/dist/connector-mappings/index.d.cts +2 -2
- package/dist/connector-mappings/index.d.ts +2 -2
- package/dist/{mappingQueryKeys-_hEc0heh.d.cts → mappingQueryKeys-DWvjXQq9.d.cts} +11 -0
- package/dist/{mappingQueryKeys-_hEc0heh.d.ts → mappingQueryKeys-DWvjXQq9.d.ts} +11 -0
- package/package.json +1 -1
|
@@ -1868,6 +1868,11 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1868
1868
|
const [rawJsonExpanded, setRawJsonExpanded] = react.useState(false);
|
|
1869
1869
|
const [suggestionError, setSuggestionError] = react.useState(null);
|
|
1870
1870
|
const [isSuggesting, setIsSuggesting] = react.useState(false);
|
|
1871
|
+
const isUnmappedOptional = (ef) => {
|
|
1872
|
+
if (ef.pathSource !== null) return false;
|
|
1873
|
+
const declared = canonicalResponseFields.find((field) => field.name === ef.canonicalField);
|
|
1874
|
+
return declared !== void 0 && !declared.isRequired;
|
|
1875
|
+
};
|
|
1871
1876
|
const showTemplates = requestTemplates !== void 0;
|
|
1872
1877
|
const objectResponseFields = canonicalResponseFields.filter((field) => field.kind === "Object");
|
|
1873
1878
|
const showRowFields = responseItemFieldPaths !== void 0 && objectResponseFields.length > 0;
|
|
@@ -2263,16 +2268,23 @@ function ConnectorMappingTranslationEditorView({
|
|
|
2263
2268
|
variant: "outlined"
|
|
2264
2269
|
}
|
|
2265
2270
|
),
|
|
2266
|
-
!ef.present && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2267
|
-
material.
|
|
2271
|
+
!ef.present && !isUnmappedOptional(ef) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2272
|
+
material.Tooltip,
|
|
2268
2273
|
{
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
+
title: ef.pathSource === "default" && ef.path ? `Default path ${ef.path} found no value` : "",
|
|
2275
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2276
|
+
material.Chip,
|
|
2277
|
+
{
|
|
2278
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(NiExclamationHexagon, { size: "small" }),
|
|
2279
|
+
label: "no value \u2014 adjust the JSON path",
|
|
2280
|
+
size: "small",
|
|
2281
|
+
color: "warning",
|
|
2282
|
+
variant: "outlined"
|
|
2283
|
+
}
|
|
2284
|
+
)
|
|
2274
2285
|
}
|
|
2275
|
-
)
|
|
2286
|
+
),
|
|
2287
|
+
!ef.present && isUnmappedOptional(ef) && /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: "This optional field has no JSON path in this mapping, so nothing is read for it.", children: /* @__PURE__ */ jsxRuntime.jsx(material.Chip, { label: "not mapped", size: "small", variant: "outlined" }) })
|
|
2276
2288
|
]
|
|
2277
2289
|
},
|
|
2278
2290
|
ef.canonicalField
|