@stoplight/elements-core 7.16.3 → 7.16.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/index.esm.js CHANGED
@@ -2721,7 +2721,7 @@ const HttpOperationComponent = React.memo(({ className, data: unresolvedData, la
2721
2721
  React.createElement(NodeAnnotation, { change: descriptionChanged }))),
2722
2722
  React.createElement(Request, { onChange: setTextRequestBodyIndex, operation: data }),
2723
2723
  data.responses && (React.createElement(Responses, { responses: data.responses, onMediaTypeChange: setResponseMediaType, onStatusCodeChange: setResponseStatusCode, isCompact: isCompact })),
2724
- ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) && React.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }),
2724
+ ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) ? React.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }) : null,
2725
2725
  isCompact && tryItPanel));
2726
2726
  return (React.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('HttpOperation', className), header: header, left: description, right: !isCompact && tryItPanel }));
2727
2727
  });
package/index.js CHANGED
@@ -2778,7 +2778,7 @@ const HttpOperationComponent = React__namespace.memo(({ className, data: unresol
2778
2778
  React__namespace.createElement(mosaic.NodeAnnotation, { change: descriptionChanged }))),
2779
2779
  React__namespace.createElement(Request, { onChange: setTextRequestBodyIndex, operation: data }),
2780
2780
  data.responses && (React__namespace.createElement(Responses, { responses: data.responses, onMediaTypeChange: setResponseMediaType, onStatusCodeChange: setResponseStatusCode, isCompact: isCompact })),
2781
- ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) && React__namespace.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }),
2781
+ ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) ? React__namespace.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }) : null,
2782
2782
  isCompact && tryItPanel));
2783
2783
  return (React__namespace.createElement(TwoColumnLayout, { ref: layoutRef, className: cn__default["default"]('HttpOperation', className), header: header, left: description, right: !isCompact && tryItPanel }));
2784
2784
  });
package/index.mjs CHANGED
@@ -2721,7 +2721,7 @@ const HttpOperationComponent = React.memo(({ className, data: unresolvedData, la
2721
2721
  React.createElement(NodeAnnotation, { change: descriptionChanged }))),
2722
2722
  React.createElement(Request, { onChange: setTextRequestBodyIndex, operation: data }),
2723
2723
  data.responses && (React.createElement(Responses, { responses: data.responses, onMediaTypeChange: setResponseMediaType, onStatusCodeChange: setResponseStatusCode, isCompact: isCompact })),
2724
- ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) && React.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }),
2724
+ ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) ? React.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }) : null,
2725
2725
  isCompact && tryItPanel));
2726
2726
  return (React.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('HttpOperation', className), header: header, left: description, right: !isCompact && tryItPanel }));
2727
2727
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements-core",
3
- "version": "7.16.3",
3
+ "version": "7.16.4",
4
4
  "main": "./index.js",
5
5
  "sideEffects": [
6
6
  "web-components.min.js",