diff --git a/package-lock.json b/package-lock.json index c05f9dec4..6b6bf6601 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@asyncapi/generator-react-sdk": "^1.1.2", "@asyncapi/parser": "^3.1.0", - "@asyncapi/react-component": "^2.5.1", + "@asyncapi/react-component": "^2.6.5", "highlight.js": "10.7.3", "puppeteer": "^24.4.0", "react": "^18.3.1", @@ -746,9 +746,9 @@ } }, "node_modules/@asyncapi/protobuf-schema-parser": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.5.1.tgz", - "integrity": "sha512-rfSHrsJm+W5I10KhQGx2VZTBObw0w5fsMCcZJVSCV1E9YhKDUQkeH+78QBzuLdHtfo9ut90Ykx02wslpZlcu1A==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.6.0.tgz", + "integrity": "sha512-z6zVRAMi2bkkgjREoCIvUg7KcacyoEh+VIwQmEni/JPuPFMOD3oPv4kwoftEeiF2+gGiioeIxpkI5x7rmHf2Nw==", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.4.0", @@ -772,15 +772,15 @@ } }, "node_modules/@asyncapi/react-component": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-2.5.1.tgz", - "integrity": "sha512-/HPIMCcrKHsyzUHlN0DG4z4USkZXKJ6hKr4gnw1pPUfSHIteV2cOUg7SP9U9hdjLusCijjbH1Oqjyg6LYiMgaQ==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-2.6.5.tgz", + "integrity": "sha512-+kQyIc337MHGTQ1ZYEuY2vfCyii2J/3o3Pm5/oJFgzWs9jWIz7/momLFl6rsS7Yd7elBam9Ukw0F3oM1AwwyHQ==", "license": "Apache-2.0", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.24", "@asyncapi/openapi-schema-parser": "^3.0.24", "@asyncapi/parser": "^3.3.0", - "@asyncapi/protobuf-schema-parser": "^3.4.0", + "@asyncapi/protobuf-schema-parser": "^3.6.0", "highlight.js": "^10.7.2", "isomorphic-dompurify": "^2.14.0", "marked": "^4.0.14", diff --git a/package.json b/package.json index 5106a65d6..b5ed6f690 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "dependencies": { "@asyncapi/generator-react-sdk": "^1.1.2", "@asyncapi/parser": "^3.1.0", - "@asyncapi/react-component": "^2.5.1", + "@asyncapi/react-component": "^2.6.5", "highlight.js": "10.7.3", "puppeteer": "^24.4.0", "react": "^18.3.1", diff --git a/test/components/__snapshots__/index.test.js.snap b/test/components/__snapshots__/index.test.js.snap index 96dd9296d..8d004f260 100644 --- a/test/components/__snapshots__/index.test.js.snap +++ b/test/components/__snapshots__/index.test.js.snap @@ -1103,69 +1103,69 @@ exports[`Index component should render AsyncAPI v2 document 1`] = `
Test broker
-Secure connection (TLS) is available through port 8883.
+Secure connection (TLS) is available through port 8883.
Provide your API key as the user and leave the password empty.
Flows to support OAuth 2.0
The topic on which measured values may be produced and consumed.
-Inform about environmental lighting conditions of a particular streetlight.
Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
+Inform about environmental lighting conditions of a particular streetlight.
Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"lumens\\": 0,
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"command\\": \\"on\\",
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"command\\": \\"on\\",
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"percentage\\": 100,
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
+Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
+Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Light intensity measured in lumens.
+Additional properties are allowed.
Additional properties are allowed.
Light intensity measured in lumens.
Date and time when the message was sent.
-Additional properties are allowed.
Whether to turn on or off the light.
+Additional properties are allowed.
Whether to turn on or off the light.
Date and time when the message was sent.
-Additional properties are allowed.
Percentage to which the light should be dimmed to.
+Additional properties are allowed.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
Additional properties are allowed.
Date and time when the message was sent.
Test broker
-Secure connection (TLS) is available through port 8883.
+Secure connection (TLS) is available through port 8883.
The topic on which measured values may be produced and consumed.
Inform about environmental lighting conditions of a particular streetlight.
This is the description with bold text.
On multiple lines.
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
-Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
+Date and time when the message was sent.
+Additional properties are allowed.
Additional properties are allowed.
{
\\"lumens\\": 0,
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
-Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Date and time when the message was sent.
+Additional properties are allowed.
Additional properties are allowed.
{
\\"command\\": \\"on\\",
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
-Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Date and time when the message was sent.
+Additional properties are allowed.
Additional properties are allowed.
{
\\"command\\": \\"on\\",
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
-Available only on servers:
The ID of the streetlight.
-Accepts the following message:
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
+Available only on servers:
The ID of the streetlight.
+Accepts the following message:
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"percentage\\": 100,
\\"sentAt\\": \\"2019-08-24T14:15:22Z\\"
}
-{
+{
\\"my-app-header\\": 100
}
this description shows in markdown
-Available only on servers:
Accepts one of the following messages:
Additional properties are allowed.
Accepts one of the following messages:
Additional properties are allowed.
{
\\"result\\": \\"success\\"
}
-Additional properties are allowed.
Additional properties are allowed.
{
+Additional properties are allowed.
Additional properties are allowed.
{
\\"error\\": {
\\"errorCode\\": 404,
\\"errorMessage\\": \\"Something messed up\\"
}
}
-Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
-Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
-Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
+Inform about environmental lighting conditions of a particular streetlight.
Light intensity measured in lumens.
+Date and time when the message was sent.
+Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to turn the lights on or off.
Whether to turn on or off the light.
+Date and time when the message was sent.
+Additional properties are allowed.
Additional properties are allowed.
Command a particular streetlight to dim the lights.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
-Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Light intensity measured in lumens.
-Date and time when the message was sent.
-Additional properties are allowed.
Whether to turn on or off the light.
-Date and time when the message was sent.
-Additional properties are allowed.
Percentage to which the light should be dimmed to.
+Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Light intensity measured in lumens.
+Date and time when the message was sent.
+Additional properties are allowed.
Whether to turn on or off the light.
+Date and time when the message was sent.
+Additional properties are allowed.
Percentage to which the light should be dimmed to.
Date and time when the message was sent.
Additional properties are allowed.
Date and time when the message was sent.