@redocly/openapi-docs 3.0.0-alpha.56.patch.8 → 3.0.0-alpha.57.patch.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Summary=void 0;const react_1=__importDefault(require("react")),theme_1=require("@redocly/theme"),shared_1=require("../shared"),styled_1=require("./styled"),Summary=({operation:e,expanded:t=!1,toggle:r,onToggleConsole:l,tryItOverride:a,showConsole:o})=>{const n=(null==a?void 0:a.label)||"Try it",
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Summary=void 0;const react_1=__importDefault(require("react")),theme_1=require("@redocly/theme"),shared_1=require("../shared"),styled_1=require("./styled"),Summary=({operation:e,expanded:t=!1,toggle:r,onToggleConsole:l,tryItOverride:a,showConsole:o})=>{const n=(null==a?void 0:a.label)||"Try it",u=(null==a?void 0:a.link)?styled_1.TryItButton.withComponent("a"):styled_1.TryItButton;return react_1.default.createElement(theme_1.PanelHeader,{onClick:r,expanded:t},react_1.default.createElement(styled_1.PathWrapper,null,react_1.default.createElement(shared_1.HttpVerb,{color:e.httpVerb},e.httpVerb),react_1.default.createElement(styled_1.Path,null,e.path),react_1.default.createElement(theme_1.ShelfIcon,{direction:t?"down":"right"})),!e.isWebhook&&!e.isCallback&&o&&react_1.default.createElement(u,{color:"primary",onClick:a?e=>{var t;null===(t=null==a?void 0:a.onClick)||void 0===t||t.call(a),e.stopPropagation()}:l,"data-cy":"try-it",href:null==a?void 0:a.link,icon:react_1.default.createElement(theme_1.RocketIcon,null)},n)||null)};exports.Summary=Summary;
|
|
2
2
|
//# sourceMappingURL=Summary.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from"react";import{PanelHeader,ShelfIcon}from"@redocly/theme";import{HttpVerb}from"../shared";import{Path,PathWrapper,TryItButton}from"./styled";export const Summary=({operation:e,expanded:t=!1,toggle:
|
|
1
|
+
import React from"react";import{PanelHeader,RocketIcon,ShelfIcon}from"@redocly/theme";import{HttpVerb}from"../shared";import{Path,PathWrapper,TryItButton}from"./styled";export const Summary=({operation:e,expanded:t=!1,toggle:o,onToggleConsole:r,tryItOverride:l,showConsole:n})=>{const a=(null==l?void 0:l.label)||"Try it",c=(null==l?void 0:l.link)?TryItButton.withComponent("a"):TryItButton;return React.createElement(PanelHeader,{onClick:o,expanded:t},React.createElement(PathWrapper,null,React.createElement(HttpVerb,{color:e.httpVerb},e.httpVerb),React.createElement(Path,null,e.path),React.createElement(ShelfIcon,{direction:t?"down":"right"})),!e.isWebhook&&!e.isCallback&&n&&React.createElement(c,{color:"primary",onClick:l?e=>{var t;null===(t=null==l?void 0:l.onClick)||void 0===t||t.call(l),e.stopPropagation()}:r,"data-cy":"try-it",href:null==l?void 0:l.link,icon:React.createElement(RocketIcon,null)},a)||null)};
|
|
2
2
|
//# sourceMappingURL=Summary.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.57.patch.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"openapi-docs": "bin.js"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@redocly/theme": "0.18.
|
|
18
|
+
"@redocly/theme": "0.18.4-patch.1",
|
|
19
19
|
"core-js": "^3.1.4",
|
|
20
20
|
"react": "^16.8.4 || ^17.0.0",
|
|
21
21
|
"react-dom": "^16.8.4 || ^17.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"yargs": "^17.3.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@redocly/theme": "0.18.
|
|
67
|
+
"@redocly/theme": "0.18.4-patch.1",
|
|
68
68
|
"@testing-library/jest-dom": "^5.16.5",
|
|
69
69
|
"@testing-library/react": "^12.1.4",
|
|
70
70
|
"@testing-library/react-hooks": "^8.0.1",
|