Skip to content

Commit

Permalink
Merge branch 'master' into bug/sub-operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan4884 authored Oct 16, 2024
2 parents 41832c1 + 4253f29 commit bace40e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 29 deletions.
2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
"version": "2.3.3",
"version": "2.3.4",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library/src/components/Href.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Href: React.FunctionComponent<Props> = ({
}) => (
<a
href={href}
title={title}
title={title ? `${title} (Opens in new window)` : 'Opens in new window'}
className={className}
target="_blank"
rel="nofollow noopener noreferrer"
Expand Down
14 changes: 2 additions & 12 deletions library/src/helpers/__tests__/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,21 +896,11 @@ describe('SchemaHelpers', () => {

test('should not render title because title is undefined', () => {
expect(
SchemaHelpers.applicatorSchemaName(
0,
FIRST_CASE,
OTHER_CASES,
undefined,
),
SchemaHelpers.applicatorSchemaName(0, FIRST_CASE, OTHER_CASES),
).toMatchSnapshot();

expect(
SchemaHelpers.applicatorSchemaName(
1,
FIRST_CASE,
OTHER_CASES,
undefined,
),
SchemaHelpers.applicatorSchemaName(1, FIRST_CASE, OTHER_CASES),
).toMatchSnapshot();
});

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions playground/specs/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ channels:
Still dummy though.
operationId: receiveNewDummyInfo
tags:
- name: oparation-tag1
- name: operation-tag1
externalDocs:
description: External docs description 1
url: https://www.asyncapi.com/
- name: oparation-tag2
- name: operation-tag2
description: Description 2
externalDocs:
url: "https://www.asyncapi.com/"
- name: oparation-tag3
- name: oparation-tag4
- name: operation-tag3
- name: operation-tag4
description: Description 4
- name: oparation-tag5
- name: operation-tag5
externalDocs:
url: "https://www.asyncapi.com/"
traits:
Expand Down
10 changes: 5 additions & 5 deletions playground/specs/streetlights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,18 +286,18 @@ components:
externalDocs:
url: "https://www.asyncapi.com/"
tags:
- name: oparation-tag1
- name: operation-tag1
externalDocs:
description: External docs description 1
url: https://www.asyncapi.com/
- name: oparation-tag2
- name: operation-tag2
description: Description 2
externalDocs:
url: "https://www.asyncapi.com/"
- name: oparation-tag3
- name: oparation-tag4
- name: operation-tag3
- name: operation-tag4
description: Description 4
- name: oparation-tag5
- name: operation-tag5
externalDocs:
url: "https://www.asyncapi.com/"
traits:
Expand Down
4 changes: 2 additions & 2 deletions web-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
"version": "2.3.3",
"version": "2.3.4",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
"@asyncapi/react-component": "^2.3.3",
"@asyncapi/react-component": "^2.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
Expand Down

0 comments on commit bace40e

Please sign in to comment.