diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4ec77a5004..d9c8ddb164 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] commonmark = "0.21.0" -composeDesktop = "1.6.0-dev1397" +composeDesktop = "1.6.0-dev1440" detekt = "1.23.4" dokka = "1.8.20" idea = "241.12662.62-EAP-SNAPSHOT" diff --git a/samples/ide-plugin/build.gradle.kts b/samples/ide-plugin/build.gradle.kts index ce2585cc33..5b2e673f80 100644 --- a/samples/ide-plugin/build.gradle.kts +++ b/samples/ide-plugin/build.gradle.kts @@ -18,6 +18,8 @@ repositories { maven("https://www.jetbrains.com/intellij-repository/releases") maven("https://cache-redirector.jetbrains.com/intellij-dependencies") mavenCentral() + google() + } dependencies { diff --git a/ui/api/ui.api b/ui/api/ui.api index 462ae6a42f..858533397b 100644 --- a/ui/api/ui.api +++ b/ui/api/ui.api @@ -737,7 +737,6 @@ public final class org/jetbrains/jewel/ui/component/TooltipPlacement : androidx/ public static final field $stable I public synthetic fun (JLandroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/ui/unit/Density;FILkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun (JLandroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/ui/unit/Density;FLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun positionProvider (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/window/PopupPositionProvider; public fun positionProvider-9KIMszo (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/ui/window/PopupPositionProvider; } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt index 5fd315955d..c7766bb3d5 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt @@ -89,13 +89,7 @@ public class TooltipPlacement( ) : TooltipPlacement { @Composable - @Suppress("OVERRIDE_DEPRECATION") - override fun positionProvider(): PopupPositionProvider { - error("Not supported") - } - - @Composable - override fun positionProvider(cursorPosition: Offset): PopupPositionProvider = + public override fun positionProvider(cursorPosition: Offset): PopupPositionProvider = rememberTooltipPositionProvider( cursorPosition = cursorPosition, contentOffset = contentOffset,