From c5e04e0b82ff34cc30ac968fa071f09ce500b3da Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Sep 2024 18:08:58 +0600 Subject: [PATCH] fill changelog, fix build --- CHANGELOG.md | 5 +++++ gradle/libs.versions.toml | 2 -- .../src/commonMain/kotlin/NavigationMermaidBuilder.kt | 10 +++++----- sample/src/jsMain/kotlin/CurrentTreeView.kt | 1 + 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9011933..72f97b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## 0.5.5 +* `Compose`: + * Fixes in handling of non-`ComposeView` +* `Sample`: + * Add opportunity to see + ## 0.5.4 * `Versions`: diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index df04a76..04670fb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -28,8 +28,6 @@ android-appcompat = "1.7.0" android-material = "1.12.0" android-compose-activity = "1.9.2" -mermaid = "10.9.1" - github-release = "2.5.2" versions = "0.51.0" diff --git a/mermaid/src/commonMain/kotlin/NavigationMermaidBuilder.kt b/mermaid/src/commonMain/kotlin/NavigationMermaidBuilder.kt index 0ed9c93..6c5a356 100644 --- a/mermaid/src/commonMain/kotlin/NavigationMermaidBuilder.kt +++ b/mermaid/src/commonMain/kotlin/NavigationMermaidBuilder.kt @@ -5,11 +5,11 @@ import dev.inmo.micro_utils.common.either import dev.inmo.navigation.core.* object NavigationMermaidBuilder { - internal const val newClassName = "navigation_mermaid_new" - internal const val createdClassName = "navigation_mermaid_created" - internal const val resumedClassName = "navigation_mermaid_resumed" - internal const val startedClassName = "navigation_mermaid_started" - internal val NavigationNodeState.className + const val newClassName = "navigation_mermaid_new" + const val createdClassName = "navigation_mermaid_created" + const val resumedClassName = "navigation_mermaid_resumed" + const val startedClassName = "navigation_mermaid_started" + val NavigationNodeState.className get() = when (this) { NavigationNodeState.NEW -> NavigationMermaidBuilder.newClassName NavigationNodeState.CREATED -> NavigationMermaidBuilder.createdClassName diff --git a/sample/src/jsMain/kotlin/CurrentTreeView.kt b/sample/src/jsMain/kotlin/CurrentTreeView.kt index 3958c82..e438ad4 100644 --- a/sample/src/jsMain/kotlin/CurrentTreeView.kt +++ b/sample/src/jsMain/kotlin/CurrentTreeView.kt @@ -4,6 +4,7 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.key import dev.inmo.navigation.core.NavigationChain import dev.inmo.navigation.core.configs.NavigationNodeDefaultConfig +import dev.inmo.navigation.mermaid.NavigationMermaidBuilder import dev.inmo.navigation.mvvm.compose.ComposeView import dev.inmo.navigation.sample.ui.tree.CurrentTreeViewConfig import dev.inmo.navigation.sample.ui.tree.CurrentTreeViewViewModel