From d7a32698fd65cac4e4956b62f93078c1cae9582f Mon Sep 17 00:00:00 2001 From: Aryan Raj <116114086+Aryan4884@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:11:10 +0530 Subject: [PATCH 1/3] fix: added background color for sub-operation (#1095) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/containers/Sidebar/Sidebar.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/library/src/containers/Sidebar/Sidebar.tsx b/library/src/containers/Sidebar/Sidebar.tsx index fe313624e..2cf45b6f5 100644 --- a/library/src/containers/Sidebar/Sidebar.tsx +++ b/library/src/containers/Sidebar/Sidebar.tsx @@ -348,7 +348,13 @@ const OperationItem: React.FunctionComponent = ({ config, isAsyncAPIv2, }); - const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600']; + const bgColors = [ + 'bg-red-600', + 'bg-orange-600', + 'bg-green-600', + 'bg-blue-600', + ]; + return (
  • Date: Wed, 23 Oct 2024 10:55:50 +0200 Subject: [PATCH 2/3] chore(release): v2.4.1 (#1103) --- library/package.json | 2 +- package-lock.json | 6 +++--- web-component/package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/package.json b/library/package.json index ff6f9f992..97855912b 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/react-component", - "version": "2.4.0", + "version": "2.4.1", "private": false, "description": "A React component for AsyncAPI specification.", "repository": { diff --git a/package-lock.json b/package-lock.json index f8f5e6f37..b6cf939a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ }, "library": { "name": "@asyncapi/react-component", - "version": "2.4.0", + "version": "2.4.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.24", @@ -27671,10 +27671,10 @@ }, "web-component": { "name": "@asyncapi/web-component", - "version": "2.4.0", + "version": "2.4.1", "license": "Apache-2.0", "dependencies": { - "@asyncapi/react-component": "^2.4.0", + "@asyncapi/react-component": "^2.4.1", "react": "^18.2.0", "react-dom": "^18.2.0", "web-react-components": "^1.4.2" diff --git a/web-component/package.json b/web-component/package.json index 6d7b908a0..62b457387 100644 --- a/web-component/package.json +++ b/web-component/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/web-component", - "version": "2.4.0", + "version": "2.4.1", "private": false, "description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.", "repository": { @@ -44,7 +44,7 @@ "install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh" }, "dependencies": { - "@asyncapi/react-component": "^2.4.0", + "@asyncapi/react-component": "^2.4.1", "react": "^18.2.0", "react-dom": "^18.2.0", "web-react-components": "^1.4.2" From fb01be6080db3e3863600f5693699d22c4e7d0b0 Mon Sep 17 00:00:00 2001 From: Mohammed Mehdi <96487647+catosaurusrex2003@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:07:32 +0530 Subject: [PATCH 3/3] fix: breakpoint changed from 1280 to 1536 (#1091) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/containers/AsyncApi/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/containers/AsyncApi/Layout.tsx b/library/src/containers/AsyncApi/Layout.tsx index 5bf6bac38..3a6a6702f 100644 --- a/library/src/containers/AsyncApi/Layout.tsx +++ b/library/src/containers/AsyncApi/Layout.tsx @@ -35,7 +35,7 @@ const AsyncApiLayout: React.FunctionComponent = ({ } const possibleClassName = - width <= 1280 ? 'container:xl' : 'container:base'; + width <= 1536 ? 'container:xl' : 'container:base'; if (possibleClassName !== observerClassName) { setObserverClassName(possibleClassName); }