@stoplight/elements-core 7.16.2 → 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 +2 -2
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -2131,7 +2131,7 @@ const TryIt = ({ httpOperation, mockUrl, onRequestChange, requestBodyIndex, embe
|
|
|
2131
2131
|
if (!exists) {
|
|
2132
2132
|
setChosenServer(firstServer);
|
|
2133
2133
|
}
|
|
2134
|
-
else if (exists !== chosenServer) {
|
|
2134
|
+
else if (exists.id !== chosenServer.id) {
|
|
2135
2135
|
setChosenServer(exists);
|
|
2136
2136
|
}
|
|
2137
2137
|
}, [servers, firstServer, chosenServer, setChosenServer]);
|
|
@@ -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)
|
|
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
|
@@ -2188,7 +2188,7 @@ const TryIt = ({ httpOperation, mockUrl, onRequestChange, requestBodyIndex, embe
|
|
|
2188
2188
|
if (!exists) {
|
|
2189
2189
|
setChosenServer(firstServer);
|
|
2190
2190
|
}
|
|
2191
|
-
else if (exists !== chosenServer) {
|
|
2191
|
+
else if (exists.id !== chosenServer.id) {
|
|
2192
2192
|
setChosenServer(exists);
|
|
2193
2193
|
}
|
|
2194
2194
|
}, [servers, firstServer, chosenServer, setChosenServer]);
|
|
@@ -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)
|
|
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
|
@@ -2131,7 +2131,7 @@ const TryIt = ({ httpOperation, mockUrl, onRequestChange, requestBodyIndex, embe
|
|
|
2131
2131
|
if (!exists) {
|
|
2132
2132
|
setChosenServer(firstServer);
|
|
2133
2133
|
}
|
|
2134
|
-
else if (exists !== chosenServer) {
|
|
2134
|
+
else if (exists.id !== chosenServer.id) {
|
|
2135
2135
|
setChosenServer(exists);
|
|
2136
2136
|
}
|
|
2137
2137
|
}, [servers, firstServer, chosenServer, setChosenServer]);
|
|
@@ -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)
|
|
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
|
});
|