[JEWEL-891] Annotate detectPressAndCancel as internal API

It was opened up by someone without our knowledge, and it risks
leaking into the public API otherwise.

APIs annotated as @ApiStatus.Internal do not show up in the API dumps,
because as far as IJP is concerned, they should not be used. However,
we also have standalone users, and for them that annotation has no
meaning.

This will need to be cherry picked onto 252 asap, too.

closes https://github.com/JetBrains/intellij-community/pull/3122

GitOrigin-RevId: dfff8dcadd39cfbdc0e6557083bfa834cc1b9f47
This commit is contained in:
Sebastiano Poggi
2025-07-14 19:45:29 +00:00
committed by intellij-monorepo-bot
parent ac13c5ce13
commit 3554a3f138
@@ -56,6 +56,7 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.window.PopupProperties
import kotlinx.coroutines.coroutineScope
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.jewel.foundation.InternalJewelApi
import org.jetbrains.jewel.foundation.Stroke
import org.jetbrains.jewel.foundation.modifier.border
import org.jetbrains.jewel.foundation.modifier.onHover
@@ -366,6 +367,7 @@ public value class ComboBoxState(public val state: ULong) : FocusableComponentSt
}
}
@InternalJewelApi
@ApiStatus.Internal
public suspend fun PointerInputScope.detectPressAndCancel(onPress: () -> Unit, onCancel: () -> Unit) {
coroutineScope {