Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Jun 29, 2021
1 parent 2f7da39 commit 751f882
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 76 deletions.
11 changes: 5 additions & 6 deletions components/Message.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Text } from "@asyncapi/generator-react-sdk";
import { generateExample } from "@asyncapi/generator-filters";
import { generateExample, getPayloadExamples, getHeadersExamples } from "@asyncapi/generator-filters";

import { Header, CodeBlock, BlockQuote, Tags } from "./common";
import { getPayloadExamples, getHeadersExamples } from "./helpers";
import { Schema } from "./Schema";

export function Message({ message, title = 'Message' }) {
Expand Down Expand Up @@ -55,8 +54,8 @@ function Example({ type = 'headers', message }) {
<BlockQuote>Examples of headers</BlockQuote>
{examples.map(ex => (
<Text newLines={2}>
{ex.name && <Text>{ex.name}</Text>}
{ex.summary && <Text>{ex.summary}</Text>}
{ex.name && <Text newLines={2}>**{ex.name}**</Text>}
{ex.summary && <Text newLines={2}>{ex.summary}</Text>}
<CodeBlock language='json'>{JSON.stringify(ex, null, 2)}</CodeBlock>
</Text>
))}
Expand All @@ -80,8 +79,8 @@ function Example({ type = 'headers', message }) {
<BlockQuote>Examples of payload</BlockQuote>
{examples.map(ex => (
<Text newLines={2}>
{ex.name && <Text>{ex.name}</Text>}
{ex.summary && <Text>{ex.summary}</Text>}
{ex.name && <Text newLines={2}>**{ex.name}**</Text>}
{ex.summary && <Text newLines={2}>{ex.summary}</Text>}
<CodeBlock language='json'>{JSON.stringify(ex.example, null, 2)}</CodeBlock>
</Text>
))}
Expand Down
1 change: 0 additions & 1 deletion helpers/index.js

This file was deleted.

53 changes: 0 additions & 53 deletions helpers/schema-examples.js

This file was deleted.

46 changes: 32 additions & 14 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"access": "public"
},
"dependencies": {
"@asyncapi/generator-filters": "^1.1.0",
"@asyncapi/generator-filters": "^2.0.0",
"@asyncapi/generator-react-sdk": "^0.2.11",
"yaml": "^1.10.0"
},
"devDependencies": {
"@asyncapi/generator": "^1.7.4",
"@asyncapi/generator": "^1.8.0",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/github": "^7.0.4",
"@semantic-release/npm": "^7.0.3",
Expand Down

0 comments on commit 751f882

Please sign in to comment.