@prismatic-io/spectral 10.5.3 → 10.5.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.
@@ -392,7 +392,8 @@ const convertConfigVar = (key, configVar, referenceKey, componentRegistry) => {
392
392
  component: codeNativeIntegrationComponentReference(referenceKey),
393
393
  },
394
394
  inputs: Object.entries(configVar.inputs).reduce((result, [key, input]) => {
395
- if (input.shown === false) {
395
+ // Connection template inputs are never shown in the resulting YAML.
396
+ if (input.shown === false || "templateValue" in input) {
396
397
  return result;
397
398
  }
398
399
  const meta = convertInputPermissionAndVisibility((0, pick_1.default)(input, ["permissionAndVisibilityType", "visibleToOrgDeployer"]));
@@ -666,7 +667,12 @@ const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [
666
667
  if (!(0, types_1.isConnectionDefinitionConfigVar)(configVar)) {
667
668
  return result;
668
669
  }
669
- const convertedInputs = Object.entries(configVar.inputs).map(([key, value]) => (0, convertComponent_1.convertInput)(key, value));
670
+ const convertedInputs = Object.entries(configVar.inputs).map(([key, value]) => {
671
+ if ("templateValue" in value) {
672
+ return (0, convertComponent_1.convertTemplateInput)(key, value, configVar.inputs);
673
+ }
674
+ return (0, convertComponent_1.convertInput)(key, value);
675
+ });
670
676
  const connection = (0, pick_1.default)(configVar, ["oauth2Type", "oauth2PkceMethod"]);
671
677
  const { avatarPath: avatarIconPath, oauth2ConnectionIconPath: iconPath } = (_a = configVar.icons) !== null && _a !== void 0 ? _a : {};
672
678
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.5.3",
3
+ "version": "10.5.4",
4
4
  "description": "Utility library for building Prismatic connectors and code-native integrations",
5
5
  "keywords": ["prismatic"],
6
6
  "main": "dist/index.js",