From deb108d9865e4a4526e87a4c04b128a99c3543b2 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Sun, 16 Aug 2020 15:19:40 +0200 Subject: [PATCH] Add styling (especially dark mode) for the asyncAPI display component (#1958) --- plugins/api-docs/package.json | 2 +- .../AsyncApiDefinitionWidget.tsx | 127 +- .../AsyncApiDefinitionWidget/style.css | 1273 ----------------- yarn.lock | 183 ++- 4 files changed, 280 insertions(+), 1305 deletions(-) delete mode 100644 plugins/api-docs/src/components/AsyncApiDefinitionWidget/style.css diff --git a/plugins/api-docs/package.json b/plugins/api-docs/package.json index a599e7e322..65f83a936d 100644 --- a/plugins/api-docs/package.json +++ b/plugins/api-docs/package.json @@ -25,7 +25,7 @@ "@backstage/core": "^0.1.1-alpha.18", "@backstage/plugin-catalog": "^0.1.1-alpha.18", "@backstage/theme": "^0.1.1-alpha.18", - "@kyma-project/asyncapi-react": "^0.6.1", + "@kyma-project/asyncapi-react": "^0.11.0", "@material-icons/font": "^1.0.2", "@material-ui/core": "^4.9.1", "@material-ui/icons": "^4.9.1", diff --git a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx index 2b5e697e51..ce372e3cdc 100644 --- a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx +++ b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx @@ -16,10 +16,133 @@ import AsyncApi from '@kyma-project/asyncapi-react'; import React, { FC } from 'react'; -import './style.css'; +import { makeStyles, fade } from '@material-ui/core/styles'; +import '@kyma-project/asyncapi-react/lib/styles/fiori.css'; + +const useStyles = makeStyles(theme => ({ + root: { + '& .asyncapi': { + 'font-family': 'inherit', + background: 'none', + }, + '& h2': { + ...theme.typography.h6, + }, + '& .text-teal': { + color: theme.palette.primary.main, + }, + '& button': { + ...theme.typography.button, + background: 'none', + boxSizing: 'border-box', + minWidth: 64, + borderRadius: theme.shape.borderRadius, + transition: theme.transitions.create( + ['background-color', 'box-shadow', 'border'], + { + duration: theme.transitions.duration.short, + }, + ), + padding: '5px 15px', + color: theme.palette.primary.main, + border: `1px solid ${fade(theme.palette.primary.main, 0.5)}`, + '&:hover': { + textDecoration: 'none', + '&$disabled': { + backgroundColor: 'transparent', + }, + border: `1px solid ${theme.palette.primary.main}`, + backgroundColor: fade( + theme.palette.primary.main, + theme.palette.action.hoverOpacity, + ), + // Reset on touch devices, it doesn't add specificity + '@media (hover: none)': { + backgroundColor: 'transparent', + }, + }, + '&$disabled': { + color: theme.palette.action.disabled, + }, + }, + '& .asyncapi__collapse-button:hover': { + color: theme.palette.primary.main, + }, + '& button.asyncapi__toggle-button': { + 'min-width': 'inherit', + }, + '& .asyncapi__info-list li': { + 'border-color': theme.palette.primary.main, + '&:hover': { + color: theme.palette.text.primary, + 'border-color': theme.palette.primary.main, + 'background-color': theme.palette.primary.main, + }, + }, + '& .asyncapi__info-list li a': { + color: theme.palette.primary.main, + '&:hover': { + color: theme.palette.getContrastText(theme.palette.primary.main), + }, + }, + '& .asyncapi__enum': { + color: theme.palette.secondary.main, + }, + '& .asyncapi__toggle-arrow:before': { + content: '">"', + 'font-family': 'inherit', + }, + '& .asyncapi__anchor-icon:before': { + content: '"🔗"', + 'font-family': 'inherit', + }, + '& .asyncapi__info, .asyncapi__channel, .asyncapi__channels > div, .asyncapi__schema, .asyncapi__message, .asyncapi__server, .asyncapi__servers > div, .asyncapi__messages > div, .asyncapi__schemas > div': { + 'background-color': 'inherit', + }, + '& .asyncapi__channel-parameters-header, .asyncapi__channel-operations-header': { + 'background-color': 'inherit', + color: theme.palette.text.primary, + }, + '& .asyncapi__additional-properties-notice': { + color: theme.palette.text.hint, + }, + '& .asyncapi__code, .asyncapi__code-pre': { + background: theme.palette.background.default, + }, + '& .asyncapi__schema-example-header-title': { + color: theme.palette.text.secondary, + }, + '& .asyncapi__message-headers-header, .asyncapi__message-payload-header, .asyncapi__server-variables-header, .asyncapi__server-security-header': { + 'background-color': 'inherit', + color: theme.palette.text.secondary, + }, + '& .asyncapi__table-header': { + background: theme.palette.background.default, + }, + '& .asyncapi__table-body': { + color: theme.palette.text.primary, + }, + '& .asyncapi__server-security-flow': { + background: theme.palette.background.default, + border: 'none', + }, + '& .asyncapi__server-security-flows-list a': { + color: theme.palette.primary.main, + }, + '& .asyncapi__table-row--nested': { + color: theme.palette.text.secondary, + }, + }, +})); export const AsyncApiDefinitionWidget: FC<{ definition: any; }> = ({ definition }) => { - return ; + const classes = useStyles(); + + return ( +
+ +
+ ); }; diff --git a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/style.css b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/style.css deleted file mode 100644 index 0237c24d52..0000000000 --- a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/style.css +++ /dev/null @@ -1,1273 +0,0 @@ -/* - * Copyright (c) 2018-2019 SAP SE or an SAP affiliate company. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.asyncapi { - /*font-family: '72';*/ - font-size: 14px; - line-height: 20px; - font-weight: 400; - -webkit-font-smoothing: antialiased; - font-smoothing: antialiased; - /*background: #f3f4f5;*/ -} - -.asyncapi__toggle { - cursor: pointer; -} -.asyncapi__toggle > .asyncapi__toggle-body { - display: none; -} - -.asyncapi__toggle--expanded { - cursor: default; -} -.asyncapi__toggle--expanded > .asyncapi__toggle-body { - display: block; -} - -.asyncapi__toggle--no-children { -} -.asyncapi__toggle--no-children > .asyncapi__toggle-header { - cursor: default; -} - -.asyncapi__toggle-header { - position: relative; - display: flex; - flex-flow: row wrap; - align-items: center; - justify-content: center; - cursor: pointer; -} - -.asyncapi__toggle-header-content { - flex-grow: 1; - padding: 12px; -} -.asyncapi__toggle-header-content > h1, -.asyncapi__toggle-header-content > h2, -.asyncapi__toggle-header-content > h3, -.asyncapi__toggle-header-content > h4 { - margin: 0; - padding: 0; - display: flex; -} - -.asyncapi__toggle-button { - border: none; - height: 100%; - cursor: pointer; -} - -.asyncapi__toggle-arrow { - display: inline-block; - position: relative; - transform-origin: 50% 50%; - transition: 0.35s ease; - cursor: pointer; -} -.asyncapi__toggle-arrow:before { - content: '>'; - /*font-family: 'SAP-icons';*/ - font-size: 14px; -} -.asyncapi__toggle-arrow--expanded { - transform: rotate(-90deg); -} - -.asyncapi__components { -} - -.asyncapi__anchor { -} -.asyncapi__anchor:hover > .asyncapi__anchor-content { - text-decoration: underline; -} - -.asyncapi__anchor-content { - display: inline-block; -} - -.asyncapi__anchor-icon { - display: inline-block; - margin-left: 6px; -} -.asyncapi__anchor-icon:before { - content: '🔗'; - /*font-family: 'SAP-icons';*/ -} - -.asyncapi__markdown { -} -.asyncapi__markdown > div > ul { - margin: 0; - padding-left: 16px; -} -.asyncapi__markdown > div > ul { - margin: 0; - padding-left: 16px; -} -.asyncapi__markdown > div > p { - margin: 0; -} -.asyncapi__markdown > div > p > code { - display: inline-block; - font-weight: bold; - font-size: 10px; - line-height: 14px; - border-radius: 3px; - padding: 0px 5px; - text-align: center; - /*background: #e2eaf2;*/ - color: #18873d; -} - -.asyncapi__table { - margin: 0 0 20px 0; - width: 100%; - border-spacing: 0; - font-size: 13px; -} - -.asyncapi__table--nested { - margin: 10px 10px 10px auto; - width: calc(100% - 45px); - border-spacing: 0; - font-size: 13px; - border-radius: 5px; - border: solid 1px #d4d4d4; - /*background-color: #f9fafa;*/ -} - -.asyncapi__table-header { - width: 100%; - color: #939698; - /*background: #f9fafa;*/ - text-transform: uppercase; -} - -.asyncapi__table-header--nested { - color: #939698; - border-bottom: solid 1px #d4d4d4; - font-weight: bold; - text-align: left; - padding: 6px 0; - font-size: 12px; -} - -.asyncapi__table-header-title { - line-height: 30px; -} - -.asyncapi__table-header-title--nested { - color: #939698; -} -.asyncapi__table-header-title--nested > td { - border-bottom: solid 1px #d4d4d4; - padding: 8px 20px; - font-size: 12px; - color: #818487; -} - -.asyncapi__table-header-columns { - font-weight: lighter; - font-size: 11px; -} - -.asyncapi__table-header-columns--nested { - color: #939698; -} - -.asyncapi__table-header-column { - padding: 12px; - text-align: left; -} - -.asyncapi__table-header-column--nested { - width: 20%; - padding: 8px 20px; - font-size: 12px; - border-bottom: solid 1px #d4d4d4; -} - -.asyncapi__table-body { - color: #000; -} - -.asyncapi__table-body--nested { - color: #000; -} - -.asyncapi__table-row { -} - -.asyncapi__table-row--nested { - color: #333; - border-bottom: solid 1px #d4d4d4; -} -.asyncapi__table-row--nested:last-child > td { - border-bottom: none; -} - -.asyncapi__table-row-accordion { - display: none; -} - -.asyncapi__table-row-accordion--open { - display: table-row; -} - -.asyncapi__table-cell { - padding: 12px; - vertical-align: top; - border-bottom: 1px solid #efeff0; -} -.asyncapi__table-cell > p { - margin-top: 0; -} - -.asyncapi__table-cell--nested { - padding: 8px 20px; - vertical-align: top; - font-size: 13px; - border-bottom: solid 1px #d4d4d4; -} - -.asyncapi__tree-space { - display: inline-block; - width: 20px; -} - -.asyncapi__tree-leaf { - display: inline-block; - position: relative; - width: 25px; -} - -.asyncapi__tree-leaf:before { - content: ''; - position: absolute; - top: -15px; - width: 13px; - height: 10px; - border-left: #aaa 2px solid; - border-bottom: #aaa 2px solid; - border-radius: 0 0 0 70%; -} - -.asyncapi__badge { - display: inline-block; - font-weight: bold; - font-size: 11px; - line-height: 18px; - border-radius: 3px; - padding: 0px 5px; - text-align: center; - text-transform: uppercase; - /*background: #e2eaf2;*/ -} - -.asyncapi__badge--publish { - color: #18873d; -} - -.asyncapi__badge--subscribe { - color: #107ee3; -} - -.asyncapi__badge--deprecated { - margin-left: 10px; - color: #f59702; -} - -.asyncapi__badge--required { - font-size: 9px; - line-height: 14px; - color: #f59702; - border-radius: 3px; - margin-left: 10px; -} - -.asyncapi__badge--generated { - font-size: 9px; - line-height: 14px; - color: #18873d; - border-radius: 3px; - margin-left: 10px; -} - -.asyncapi__tag { - display: inline-block; - mix-blend-mode: multiply; - border-radius: 4px; - /*background-color: #e2eaf2;*/ - font-size: 11px; - font-family: 72; - font-weight: 300; - text-transform: uppercase; - font-weight: normal; - font-style: normal; - font-stretch: normal; - line-height: normal; - letter-spacing: normal; - color: #73787d; - padding: 3px 8px; - margin: 0 5px 0 0; -} - -.asyncapi__code { - border: solid 1px rgba(137, 145, 154, 0.675); - border-radius: 5px; - /*background: #fff;*/ -} - -.asyncapi__code-header { - padding: 12px 20px; - border-bottom: 1px solid rgba(137, 145, 154, 0.675); -} - -.asyncapi__code-header > h4 { - margin: 0; - color: #32363a; - font-size: 13px; -} - -.asyncapi__code-pre { - margin: 0; - font-size: 13px; - padding: 12px; - /*background: #fafafa;*/ - border-bottom-right-radius: 5px; - border-bottom-left-radius: 5px; -} - -.asyncapi__code-body { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; - margin: 0; - font-size: 12px; -} - -.asyncapi__info { - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__info-header-main { - display: flex; - flex-flow: row wrap; - align-items: center; - justify-content: center; -} -.asyncapi__info-header-main > h1 { - flex-grow: 1; - margin-top: 10px; - margin-bottom: 10px; -} - -.asyncapi__collapse-button { - border-radius: 0.25rem; - border: 1px solid #0071d4; - display: inline-block; - color: #0b74de; - font-weight: 700; - transition: all 0.125s ease-in; - padding: 10px 12px; - font-size: 14px; - cursor: pointer; -} -.asyncapi__collapse-button:hover { - background-color: #085caf; - color: #fff; -} -.asyncapi__collapse-button:focus { - outline: none; -} - -.asyncapi__info-header-version { - display: inline-block; - margin-left: 6px; -} - -.asyncapi__info-description { -} - -.asyncapi__info-list { - margin: 0 0 20px 0; - padding: 0; - list-style-type: none; -} -.asyncapi__info-list > li { - border-radius: 0.25rem; - border: 1px solid #0071d4; - margin: 6px 6px 0 0; - display: inline-block; - color: #0b74de; - font-weight: 500; - transition: all 0.125s ease-in; -} -.asyncapi__info-list > li:hover { - background-color: #085caf; -} -.asyncapi__info-list > li a { - padding: 3px 12px; - display: inline-block; - text-decoration: none; - color: #0b74de; - transition: all 0.125s ease-in; -} -.asyncapi__info-list > li:hover, -.asyncapi__info-list > li:hover a { - color: #fff; -} -.asyncapi__info-list .asyncapi__anchor:hover > .asyncapi__anchor-content { - text-decoration: none; -} - -.asyncapi__messages { -} -.asyncapi__messages > div { - margin-top: 24px; - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__messages-toggle .asyncapi__toggle-header-content { - padding: 0; -} -.asyncapi__messages-toggle--expanded > .asyncapi__toggle-header { - padding-bottom: 12px; -} - -.asyncapi__messages-header { -} -.asyncapi__messages-header > h2 { - margin: 0 0 24px 0; -} - -.asyncapi__messages-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__messages-list-item { - margin-bottom: 16px; -} -.asyncapi__messages-list-item:last-child { - margin-bottom: 0; -} - -.asyncapi__messages-oneOf-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__messages-oneOf-list-item { -} - -.asyncapi__message { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} -.asyncapi__message:last-child { - margin-bottom: 0; -} - -.asyncapi__message-header { - padding: 12px; -} -.asyncapi__message-header > h3 { - color: #0b74de; - font-size: 14px; -} - -.asyncapi__message-header-title { - font-size: 14px; - margin-right: 10px; -} - -.asyncapi__message-header-summary { - font-size: 14px; - font-weight: 500; -} - -.asyncapi__message-header-deprecated-badge { -} - -.asyncapi__message-summary { -} - -.asyncapi__message-description { - padding: 12px; - font-size: 14px; - border-top: solid 1px rgba(151, 151, 151, 0.26); -} - -.asyncapi__message-headers { -} - -.asyncapi__message-headers-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__message-headers-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__message-headers-schema { - margin: 0; -} -.asyncapi__message-headers-schema > .asyncapi__schema { - padding: 0; - border: none; -} -.asyncapi__message-headers-schema > .asyncapi__schema:before { - content: ''; - position: relative; - border: none; -} - -.asyncapi__message-payload-oneOf { -} - -.asyncapi__message-payload-toggle > .asyncapi__message-payload-header { - padding: 12px; - border: none; -} -.asyncapi__message-payload-toggle .asyncapi__message-payload-header h4 { - padding: 0; -} -.asyncapi__message-payload-toggle .asyncapi__message-payload-header { - border: none; - background-color: inherit; -} - -.asyncapi__message-payload-oneOf-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__message-payload-oneOf-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__message-payload-oneOf-list { - margin: 0; - padding: 16px; - list-style-type: none; -} - -.asyncapi__message-payload-oneOf-list-item { - margin-bottom: 16px; -} -.asyncapi__message-payload-oneOf-list-item:last-child { - margin-bottom: 0; -} -.asyncapi__message-payload-oneOf-list-item .asyncapi__message-payload { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} -.asyncapi__message-payload-oneOf-list-item - .asyncapi__message-payload:last-child { - margin-bottom: 0; -} - -.asyncapi__message-payload-anyOf { -} - -.asyncapi__message-payload-anyOf-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__message-payload-anyOf-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__message-payload-anyOf-list { - margin: 0; - padding: 16px; - list-style-type: none; -} - -.asyncapi__message-payload-anyOf-list-item { - margin-bottom: 16px; -} -.asyncapi__message-payload-anyOf-list-item:last-child { - margin-bottom: 0; -} -.asyncapi__message-payload-anyOf-list-item .asyncapi__message-payload { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} -.asyncapi__message-payload-anyOf-list-item - .asyncapi__message-payload:last-child { - margin-bottom: 0; -} - -.asyncapi__message-payload { - margin: 0; -} - -.asyncapi__message-payload-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__message-payload-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__message-payload-schema { - margin: 0; -} -.asyncapi__message-payload-schema > .asyncapi__schema { - padding: 0; - border: none; -} -.asyncapi__message-payload-schema > .asyncapi__schema:before { - content: ''; - position: relative; - border: none; -} - -.asyncapi__message-tags { - margin: 20px 0; -} - -.asyncapi__message-tags-header { - color: #32363a; -} -.asyncapi__message-tags-header > h4 { - margin: 0 0 8px 0; -} - -.asyncapi__message-tags-list { -} - -.asyncapi__message-tags-list-item { -} - -.asyncapi__schemas { -} -.asyncapi__schemas > div { - margin-top: 24px; - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__schemas-header { -} - -.asyncapi__schemas-toggle .asyncapi__toggle-header-content { - padding: 0; -} -.asyncapi__schemas-toggle--expanded .asyncapi__toggle-header { - padding-bottom: 12px; -} - -.asyncapi__schemas-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__schemas-list-item { - margin-bottom: 16px; -} -.asyncapi__schemas-list-item:last-child { - margin-bottom: 0; -} - -.asyncapi__schema { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} -.asyncapi__schema:last-child { - margin-bottom: 0; -} - -.asyncapi__schema-header { - padding: 12px; -} - -.asyncapi__schema-header-title { - font-size: 14px; -} - -.asyncapi__schema-table { - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__schema-table > table { - margin: 0; -} - -.asyncapi__schema-example { - padding: 16px; -} - -.asyncapi__schema-example-header { -} - -.asyncapi__schema-example-header-title { -} - -.asyncapi__schema-example-header-generated-badge { - display: inline-block; -} - -.asyncapi__security { - margin-top: 24px; - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; -} - -.asyncapi__security-header { -} -.asyncapi__security-header > h2 { - margin: 0 0 24px 0; -} - -.asyncapi__security-table { - margin: 0; -} - -.asyncapi__servers { -} -.asyncapi__servers > div { - margin-top: 24px; - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__servers-toggle .asyncapi__toggle-header-content { - padding: 0; -} -.asyncapi__servers-toggle--expanded .asyncapi__toggle-header { - padding-bottom: 12px; -} - -.asyncapi__servers-header { -} -.asyncapi__servers-header > h2 { - margin: 0 0 24px 0; -} - -.asyncapi__servers-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__servers-list-item { - margin-bottom: 16px; -} -.asyncapi__servers-list-item:last-child { - margin-bottom: 0; -} - -.asyncapi__server { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} - -.asyncapi__server-header { - padding: 12px; -} - -.asyncapi__server-header-stage { - color: #107ee3; - margin-right: 6px; -} - -.asyncapi__server-header-protocol { - color: #18873d; - margin-right: 6px; -} - -.asyncapi__server-description { - border-top: solid 1px rgba(151, 151, 151, 0.26); - padding: 12px; -} - -.asyncapi__servers-table { - margin-bottom: 0; -} -.asyncapi__servers-table > .asyncapi__table { - margin: 0; -} - -.asyncapi__server-variables { -} - -.asyncapi__server-variables-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__server-variables-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__server-variables-table { - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__server-variables-table > table { - margin: 0; -} -.asyncapi__server-variables-table .asyncapi__table-body > tr:last-child td { - border-bottom: none; -} - -.asyncapi__server-variables-table-cell { - padding: 0; - border-bottom: none; -} - -.asyncapi__server-expand-icon { - display: inline-block; - position: relative; - width: 10px; - height: 10px; - margin-right: 10px; - transform-origin: 50% 50%; - transition: 0.5s ease; - cursor: pointer; -} -.asyncapi__server-expand-icon:before { - content: '>'; - /*font-family: 'SAP-icons';*/ - position: absolute; - color: #0071d4; - font-size: 12px; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} - -.asyncapi__server-expand-icon--open { - transform: rotate(90deg); -} - -.asyncapi__server-variables-enum-list { - margin: 0 0 0 15px; - padding: 0; -} - -.asyncapi__server-variables-enum-list-item { -} - -.asyncapi__server-security { -} - -.asyncapi__server-security-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__server-security-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__server-security-table { - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__server-security-table > table { - margin: 0; -} -.asyncapi__server-security-table .asyncapi__table-body > tr:last-child td { - border-bottom: none; -} - -.asyncapi__server-security-table-cell { - padding: 0; - border-bottom: none; -} - -.asyncapi__server-security-flows-list { - margin: 0; - padding: 0; - list-style-type: none; -} -.asyncapi__server-security-flows-list a { - color: #0b74de; -} - -.asyncapi__server-security-flows-list-item { - margin-top: 12px; -} -.asyncapi__server-security-flows-list-item:first-child { - margin-top: 0; -} - -.asyncapi__server-security-flow { - /*background: #fafafa;*/ - border: 1px solid #dae1e7; - padding: 12px; - border-radius: 5px; -} - -.asyncapi__server-security-flow-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__server-security-flow-list-item { - padding: 3px 0; -} -.asyncapi__server-security-flow-list-item > span { - margin-left: 12px; -} -.asyncapi__server-security-flow-list-item > a { - margin-left: 12px; -} - -.asyncapi__server-security-flows-table-cell { - border-bottom: solid 1px #d4d4d4; - padding: 12px; -} - -.asyncapi__server-security-oauth2 { - border-bottom: none; -} -.asyncapi__server-security-oauth2 > td { - border-bottom: none; -} - -.asyncapi__server-security-scopes-list { - margin: 0; - padding: 0; - list-style-type: none; - display: inline-block; - margin-left: 6px; -} - -.asyncapi__server-security-scopes-list-item { - display: inline-block; - margin-right: 6px; -} - -.asyncapi__server-security-scope { - display: inline-block; - font-weight: bold; - font-size: 11px; - line-height: 18px; - border-radius: 3px; - padding: 0px 5px; - text-align: center; - text-transform: uppercase; - /*background: #e2eaf2;*/ - color: #18873d; -} - -.asyncapi__channels { -} -.asyncapi__channels > div { - margin-top: 24px; - /*background: #fff;*/ - border-radius: 5px; - padding: 16px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__channels-toggle .asyncapi__toggle-header-content { - padding: 0; -} -.asyncapi__channels-toggle--expanded .asyncapi__toggle-header { - padding-bottom: 12px; -} - -.asyncapi__channels-header { -} -.asyncapi__channels-header > h2 { - margin: 0 0 24px 0; -} - -.asyncapi__channels-list { - padding: 0; - margin: 0; - list-style-type: none; -} - -.asyncapi__channels-list-item { - margin-bottom: 16px; -} -.asyncapi__channels-list-item:last-child { - margin-bottom: 0; -} - -.asyncapi__channel { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} - -.asyncapi__channel-header { - padding: 12px; -} -.asyncapi__channel-header > h3 { - color: #0b74de; - font-size: 15px; -} - -.asyncapi__channel-header-badges { - margin: 0; - padding: 0; - list-style-type: none; - display: inline-block; -} - -.asyncapi__channel-header-badges > li { - display: inline-block; - margin-right: 6px; -} - -.asyncapi__channel-header-badges-deprecated-badge { - display: inline-block; - margin-right: 6px; -} - -.asyncapi__channel-header-badges-publish-badge { - display: inline-block; - margin-right: 6px; -} - -.asyncapi__channel-header-badges-subscribe-badge { - display: inline-block; - margin-right: 6px; -} - -.asyncapi__channel-header-title { - font-size: 14px; -} - -.asyncapi__channel-operations { -} -.asyncapi__channel-operations .asyncapi__message { - border: none; -} - -.asyncapi__channel-operations-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__channel-operations-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__channel-operations-header-oneOf { - border-top: solid 1px rgba(151, 151, 151, 0.26); -} - -.asyncapi__channel-operations-list { - margin: 0; - padding: 0; - list-style-type: none; -} -.asyncapi__channel-operations-list .asyncapi__messages { - padding: 16px; -} -.asyncapi__channel-operations-list .asyncapi__messages-list { - margin: 0; - padding: 0; - list-style-type: none; -} -.asyncapi__channel-operations-list .asyncapi__messages-list-item { - margin-bottom: 16px; -} -.asyncapi__channel-operations-list .asyncapi__messages-list-item:last-child { - margin-bottom: 0; -} -.asyncapi__channel-operations-list - .asyncapi__messages-list-item - .asyncapi__message { - position: relative; - border-radius: 4px; - border: solid 1px rgba(151, 151, 151, 0.26); - /*background-color: #ffffff;*/ -} - -.asyncapi__channel-operations-list-item { -} - -.asyncapi__channel-operation-oneOf-subscribe-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); - border-bottom: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__channel-operation-oneOf-subscribe-header > h4 { - padding: 12px; - margin: 0; -} -.asyncapi__channel-operation-oneOf-subscribe-header > h4 > .asyncapi__badge { - margin-right: 6px; -} - -.asyncapi__channel-operation-oneOf-publish-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); - border-bottom: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__channel-operation-oneOf-publish-header > h4 { - padding: 12px; - margin: 0; -} -.asyncapi__channel-operation-oneOf-publish-header > h4 > .asyncapi__badge { - margin-right: 6px; -} - -.asyncapi__channel-operation { -} - -.asyncapi__channel-parameters { -} - -.asyncapi__channel-parameters-header { - color: #32363a; - /*background-color: #fafafa;*/ - border-top: solid 1px rgba(151, 151, 151, 0.26); -} -.asyncapi__channel-parameters-header > h4 { - padding: 12px; - margin: 0; -} - -.asyncapi__channel-parameters-list { - margin: 0; - padding: 0; - list-style-type: none; -} - -.asyncapi__channel-parameters-list-item { -} - -.asyncapi__channel-parameter { - position: relative; -} - -.asyncapi__channel-parameter-header { -} - -.asyncapi__channel-parameter-header-description { -} - -.asyncapi__channel-parameter-schema { -} -.asyncapi__channel-parameter-schema > .asyncapi__schema { - padding: 0; - border: none; -} -.asyncapi__channel-parameter-schema > .asyncapi__schema:before { - content: ''; - position: relative; - border: none; -} - -.asyncapi__error { - /*background-color: #ffffff;*/ - border-left: 6px solid #f44336; - border-radius: 4px; - color: #32363a; - font-family: '72'; - font-size: 13px; - margin-bottom: 24px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.16); -} - -.asyncapi__error-header { - padding: 16px; - box-shadow: inset 0 -1px 0 0 rgba(115, 121, 128, 0.15); - font-weight: bold; - position: relative; - display: flex; - flex-flow: row wrap; - align-items: center; - justify-content: center; -} -.asyncapi__error-header h2 { - flex-grow: 1; - padding: 0; - margin: 0; -} -.asyncapi__error-header > .asyncapi__toggle-header-content { - padding: 0; -} - -.asyncapi__error-body { - font-weight: normal; - position: relative; -} - -.asyncapi__error-body-pre { - margin: 0; - padding: 12px; - background-color: #263238; - white-space: pre-wrap; - word-break: break-word; - color: #fff; - border-bottom-right-radius: 4px; - font-size: 11px; -} - -.asyncapi__error-body-code { - font-family: monospace; - display: block; -} - -.asyncapi__enum { - line-height: 2; - border-style: solid; - border-color: #dae1e7; - border-radius: 0.25rem; - border-width: 1px; - margin-left: 0.25rem; - padding: 0 0.5rem; - color: #f6993f; -} diff --git a/yarn.lock b/yarn.lock index dae727c92f..5f2b4bb2a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,15 @@ # yarn lockfile v1 +"@apidevtools/json-schema-ref-parser@9.0.6", "@apidevtools/json-schema-ref-parser@^9.0.6": + version "9.0.6" + resolved "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz#5d9000a3ac1fd25404da886da6b266adcd99cf1c" + integrity sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg== + dependencies: + "@jsdevtools/ono" "^7.1.3" + call-me-maybe "^1.0.1" + js-yaml "^3.13.1" + "@apollo/protobufjs@^1.0.3": version "1.0.4" resolved "https://registry.npmjs.org/@apollo/protobufjs/-/protobufjs-1.0.4.tgz#cf01747a55359066341f31b5ce8db17df44244e0" @@ -40,18 +49,45 @@ resolved "https://registry.npmjs.org/@ardatan/aggregate-error/-/aggregate-error-0.0.1.tgz#1403ac5de10d8ca689fc1f65844c27179ae1d44f" integrity sha512-UQ9BequOTIavs0pTHLMwQwKQF8tTV1oezY/H2O9chA+JNPFZSua55xpU5dPSjAU9/jLJ1VwU+HJuTVN8u7S6Fg== -"@asyncapi/parser@0.16.2": - version "0.16.2" - resolved "https://registry.npmjs.org/@asyncapi/parser/-/parser-0.16.2.tgz#6e0806d0a751e999499212e52926a6dc6ec251fe" - integrity sha512-dagGD6VFAgl/zLQuoWAfi48i74wv32naV6WcvazcpvEXshW3Q//OrUyRFa6EbY0lmIMXeasc7HKm40AUJ920ug== +"@asyncapi/avro-schema-parser@^0.1.2": + version "0.1.2" + resolved "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-0.1.2.tgz#f6c340ccaa24bc36399d3a0f1a6e02790a948453" + integrity sha512-K4GlakiE42J9AWwAu3BWn3Qbf+N8C6vE4eEm5LEx7HqAhHG+FA0U7/3vvXoj31rnS/8sgPQpc2msLWQlmCtZyw== + +"@asyncapi/openapi-schema-parser@^2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-2.0.0.tgz#80e2f38e92b6635dde19aae07b92e3caa0effc58" + integrity sha512-XfDp3EIs6ptar3jARQZzi3ObmS44l6Qozc5GJmZJUQ6mHLTTqUGJ0nxcrXAW88vosjilgJVaQ63oGolA6smSHQ== dependencies: + "@openapi-contrib/openapi-schema-to-json-schema" "^3.0.0" + +"@asyncapi/parser@^1.0.0-rc.1": + version "1.0.0-rc.2" + resolved "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.0.0-rc.2.tgz#87d2e83c1d390e21d53f868e6209cbc584d35449" + integrity sha512-nZYJLnMiq48q7YHa+AI9ZaDc5UqoqKR7MDhTiIKsIJj6X5fF6hpwBrTP0bQn76Pc1oGBXRB69PcD/Y+Et1qFyw== + dependencies: + "@apidevtools/json-schema-ref-parser" "^9.0.6" + "@asyncapi/specs" "^2.7.4" + "@fmvilas/pseudo-yaml-ast" "^0.3.1" ajv "^6.10.1" - asyncapi "^2.6.1" js-yaml "^3.13.1" - json-schema-ref-parser "^7.1.0" + json-to-ast "^2.1.0" node-fetch "^2.6.0" tiny-merge-patch "^0.1.2" +"@asyncapi/raml-dt-schema-parser@^2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/@asyncapi/raml-dt-schema-parser/-/raml-dt-schema-parser-2.0.0.tgz#6e9eff89032aa7b82a963d8e72e320e493fc3835" + integrity sha512-ve41LIvbqDU8s0ZeDrWy+dyQZ/XSb7vKiJUHNgy8xcgxsz4YuttbEJbyGJvarw3qf2y+0y6cA1KUFiXoE+AIUg== + dependencies: + js-yaml "^3.13.1" + ramldt2jsonschema "^1.1.0" + +"@asyncapi/specs@^2.7.4": + version "2.7.4" + resolved "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.7.4.tgz#5db4390b68aeb40d70c1723d8f46b0a091110afc" + integrity sha512-3Np9ip1Qn5AgnxTrbI0CMW2F/WUorpiAKz+GUfEy4a6GPk0eTSI6CIcbx2/jej5P91nhEyny9+D3oIzn2MreTA== + "@babel/code-frame@7.0.0": version "7.0.0" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" @@ -1758,6 +1794,13 @@ unique-filename "^1.1.1" which "^1.3.1" +"@fmvilas/pseudo-yaml-ast@^0.3.1": + version "0.3.1" + resolved "https://registry.npmjs.org/@fmvilas/pseudo-yaml-ast/-/pseudo-yaml-ast-0.3.1.tgz#66c5df2c2d76ba8571dc5bd98fda4d7dce6121de" + integrity sha512-8OAB74W2a9M3k9bjYD8AjVXkX+qO8c0SqNT5HlgOqx7AxSw8xdksEcZp7gFtfi+4njSxT6+76ZR+1ubjAwQHOg== + dependencies: + yaml-ast-parser "0.0.43" + "@graphql-tools/delegate@6.0.15": version "6.0.15" resolved "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-6.0.15.tgz#9e060bfc31fe7735bd5b2b401e98dea3fa5d3b25" @@ -2111,6 +2154,11 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" +"@jsdevtools/ono@^7.1.3": + version "7.1.3" + resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" + integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== + "@kyleshockey/object-assign-deep@^0.4.2": version "0.4.2" resolved "https://registry.npmjs.org/@kyleshockey/object-assign-deep/-/object-assign-deep-0.4.2.tgz#84900f0eefc372798f4751b5262830b8208922ec" @@ -2123,14 +2171,18 @@ dependencies: stream "^0.0.2" -"@kyma-project/asyncapi-react@^0.6.1": - version "0.6.2" - resolved "https://registry.npmjs.org/@kyma-project/asyncapi-react/-/asyncapi-react-0.6.2.tgz#99539f630b511d4f7298805dfaf545956192141c" - integrity sha512-yGgYv0XyxI5PxNv0GzTqABsXKwFETlZwBWDqwfUtwirTOTIFyLU69lHbMtM9gn0hPFciP09uHmKt8+8gOpMKvA== +"@kyma-project/asyncapi-react@^0.11.0": + version "0.11.0" + resolved "https://registry.npmjs.org/@kyma-project/asyncapi-react/-/asyncapi-react-0.11.0.tgz#888fbe9204f120fc04fd8184664e8025d8736c92" + integrity sha512-CJu9vJ4tTjk3oRjYvZxE4CRLE/QvFsyvCnecZSXWKNiytLK/JuQxkosyFvKpCKsB+uGsPFn0sfcLPZ5jVSEFYw== dependencies: - "@asyncapi/parser" "0.16.2" + "@asyncapi/avro-schema-parser" "^0.1.2" + "@asyncapi/openapi-schema-parser" "^2.0.0" + "@asyncapi/parser" "^1.0.0-rc.1" + "@asyncapi/raml-dt-schema-parser" "^2.0.0" constate "^1.2.0" dompurify "^1.0.11" + json-schema-ref-parser "^9.0.6" markdown-it "^9.1.0" merge "^1.2.1" openapi-sampler "^1.0.0-beta.15" @@ -3148,6 +3200,14 @@ resolved "https://registry.npmjs.org/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca" integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q== +"@openapi-contrib/openapi-schema-to-json-schema@^3.0.0": + version "3.0.3" + resolved "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.0.3.tgz#c626eab186938f2751ee54ec68b345133bc0065c" + integrity sha512-/WX/Jos8n7CxvtWPmhlKl9qCAAW0I+VR+V4yXfQxCmB8wmjiz6lPLTGjNk5zD15qi2MGv58++hQLLdow89KdkA== + dependencies: + fast-deep-equal "^3.1.3" + lodash.clonedeep "^4.5.0" + "@panva/asn1.js@^1.0.0": version "1.0.0" resolved "https://registry.npmjs.org/@panva/asn1.js/-/asn1.js-1.0.0.tgz#dd55ae7b8129e02049f009408b97c61ccf9032f6" @@ -5605,6 +5665,26 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== +ajv@6.5.2: + version "6.5.2" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz#678495f9b82f7cca6be248dd92f59bff5e1f4360" + integrity sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.1" + +ajv@^5.0.0: + version "5.5.2" + resolved "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + integrity sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU= + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.5.5, ajv@^6.7.0: version "6.12.2" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz#c629c5eced17baf314437918d2da88c99d5958cd" @@ -6199,11 +6279,6 @@ async@^3.2.0: resolved "https://registry.npmjs.org/async/-/async-3.2.0.tgz#b3a2685c5ebb641d3de02d161002c60fc9f85720" integrity sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw== -asyncapi@^2.6.1: - version "2.6.1" - resolved "https://registry.npmjs.org/asyncapi/-/asyncapi-2.6.1.tgz#5e35124abfd416f050a239bf72cb8eef7ebeda66" - integrity sha512-ROszLQMYzyp/CzPyLhuT/9NpJXxI7wrjv6yW8JpA/XVMEWCqyVXr9jajJhs9d/863+ispS+ptGhg1PC17AnIzQ== - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -7713,6 +7788,11 @@ coa@^2.0.2: chalk "^2.4.1" q "^1.1.2" +code-error-fragment@0.0.230: + version "0.0.230" + resolved "https://registry.npmjs.org/code-error-fragment/-/code-error-fragment-0.0.230.tgz#d736d75c832445342eca1d1fedbf17d9618b14d7" + integrity sha512-cadkfKp6932H8UkhzE/gcUqhRMNf8jHzkAN7+5Myabswaghu4xABTgPHDCjW+dBAJxj/SpkTYokpzDqY4pCzQw== + code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" @@ -10523,6 +10603,11 @@ fast-deep-equal@2.0.1, fast-deep-equal@^2.0.1: resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= +fast-deep-equal@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" + integrity sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ= + fast-deep-equal@^3.0.0, fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -11704,6 +11789,11 @@ graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1. resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== +grapheme-splitter@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" + integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== + graphiql@^1.0.0-alpha.10: version "1.0.3" resolved "https://registry.npmjs.org/graphiql/-/graphiql-1.0.3.tgz#f6b5d5c417d8f1a28786d3228a69883426ba74ad" @@ -14089,14 +14179,24 @@ json-schema-merge-allof@^0.6.0: json-schema-compare "^0.2.2" lodash "^4.17.4" -json-schema-ref-parser@^7.1.0: - version "7.1.4" - resolved "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-7.1.4.tgz#abb3f2613911e9060dc2268477b40591753facf0" - integrity sha512-AD7bvav0vak1/63w3jH8F7eHId/4E4EPdMAEZhGxtjktteUv9dnNB/cJy6nVnMyoTPBJnLwFK6tiQPSTeleCtQ== +json-schema-migrate@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz#ba47a5b0072fc72396460e1bd60b44d52178bbc6" + integrity sha1-ukelsAcvxyOWRg4b1gtE1SF4u8Y= dependencies: - call-me-maybe "^1.0.1" - js-yaml "^3.13.1" - ono "^6.0.0" + ajv "^5.0.0" + +json-schema-ref-parser@^9.0.6: + version "9.0.6" + resolved "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz#fc89a5e6b853f2abe8c0af30d3874196526adb60" + integrity sha512-z0JGv7rRD3CnJbZY/qCpscyArdtLJhr/wRBmFUdoZ8xMjsFyNdILSprG2degqRLjBjyhZHAEBpGOxniO9rKTxA== + dependencies: + "@apidevtools/json-schema-ref-parser" "9.0.6" + +json-schema-traverse@^0.3.0: + version "0.3.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" + integrity sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A= json-schema-traverse@^0.4.1: version "0.4.1" @@ -14123,6 +14223,14 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= +json-to-ast@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/json-to-ast/-/json-to-ast-2.1.0.tgz#041a9fcd03c0845036acb670d29f425cea4faaf9" + integrity sha512-W9Lq347r8tA1DfMvAGn9QNcgYm4Wm7Yc+k8e6vezpMnRT+NHbtlxgNBXRVjXe9YM6eTn6+p/MKOlV/aABJcSnQ== + dependencies: + code-error-fragment "0.0.230" + grapheme-splitter "^1.0.4" + json3@^3.3.2: version "3.3.3" resolved "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz#7fc10e375fc5ae42c4705a5cc0aa6f62be305b81" @@ -16473,11 +16581,6 @@ onetime@^5.1.0: dependencies: mimic-fn "^2.1.0" -ono@^6.0.0: - version "6.0.1" - resolved "https://registry.npmjs.org/ono/-/ono-6.0.1.tgz#1bc14ffb8af1e5db3f7397f75b88e4a2d64bbd71" - integrity sha512-5rdYW/106kHqLeG22GE2MHKq+FlsxMERZev9DCzQX1zwkxnFwBivSn5i17a5O/rDmOJOdf4Wyt80UZljzx9+DA== - open@^6.3.0: version "6.4.0" resolved "https://registry.npmjs.org/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9" @@ -18325,6 +18428,16 @@ ramda@^0.25.0: resolved "https://registry.npmjs.org/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9" integrity sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ== +ramldt2jsonschema@^1.1.0: + version "1.2.3" + resolved "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz#8d45a7f306a1169a3bde91cab725d1d6d0ff7d55" + integrity sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug== + dependencies: + commander "^5.0.0" + js-yaml "^3.14.0" + json-schema-migrate "^0.2.0" + webapi-parser "^0.5.0" + randomatic@^3.0.0: version "3.1.1" resolved "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" @@ -22236,7 +22349,7 @@ update-notifier@^4.0.0: semver-diff "^3.1.1" xdg-basedir "^4.0.0" -uri-js@^4.2.2: +uri-js@^4.2.1, uri-js@^4.2.2: version "4.2.2" resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== @@ -22577,6 +22690,13 @@ wcwidth@^1.0.0, wcwidth@^1.0.1: dependencies: defaults "^1.0.3" +webapi-parser@^0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz#2632185c5d8f3e6addb2520857af89ea9844dc14" + integrity sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw== + dependencies: + ajv "6.5.2" + webidl-conversions@^3.0.0, webidl-conversions@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -23166,6 +23286,11 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-ast-parser@0.0.43: + version "0.0.43" + resolved "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz#e8a23e6fb4c38076ab92995c5dca33f3d3d7c9bb" + integrity sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A== + yaml@*, yaml@^1.10.0, yaml@^1.7.2, yaml@^1.9.2: version "1.10.0" resolved "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e"