diff --git a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/AsyncApiHandler.java b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/AsyncApiHandler.java index 4cf541e..be06229 100644 --- a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/AsyncApiHandler.java +++ b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/AsyncApiHandler.java @@ -93,12 +93,16 @@ String readFile(Format aFormat) { } String getHtml(RoutingContext aRoutingContext) { - String version = ConfigProvider.getConfig() + String webComponentVersion = ConfigProvider.getConfig() .getValue("quarkus.asyncapi.annotation.scanner.webcomponentversion", String.class); + String webComponentJsVersion = ConfigProvider.getConfig() + .getValue("quarkus.asyncapi.annotation.scanner.webcomponentjsversion", String.class); + String reactComponentVersion = ConfigProvider.getConfig() + .getValue("quarkus.asyncapi.annotation.scanner.reactcomponentversion", String.class); String rootPath = ConfigProvider.getConfig() .getValue("quarkus.http.root-path", String.class); //TODO logo - return String.format(HTML_PATTERN, version, version, version, rootPath, rootPath); + return String.format(HTML_PATTERN, webComponentJsVersion, webComponentVersion, reactComponentVersion, rootPath); } Format getFormat(RoutingContext aRoutingContext) { diff --git a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java index 0d67843..8d2907a 100644 --- a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java +++ b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java @@ -23,8 +23,22 @@ public class AsyncApiRuntimeConfig { * * @see https://www.npmjs.com/package/@asyncapi/react-component */ - @ConfigItem(defaultValue = "1.0.0-next.48") + @ConfigItem(defaultValue = "1.2.25") public String webcomponentversion; + /** + * Version of the ReasComponent to be used in html-view to be found at [HOST]/asyncapi.html + * + * @see https://www.npmjs.com/package/@asyncapi/react-component + */ + @ConfigItem(defaultValue = "1.2.25") + public String reactcomponentversion; + /** + * Version of the WebComponentJS to be used in html-view to be found at [HOST]/asyncapi.html + * + * @see https://www.npmjs.com/package/@webcomponents/webcomponentsjs + */ + @ConfigItem(defaultValue = "2.8.0") + public String webcomponentjsversion; /** * Full qualified name of the implementing AsyncApiFilter