From 2e8f5e0f348ed745f01791120e7bb9eab760f351 Mon Sep 17 00:00:00 2001 From: Vladyslav Lubenskyi Date: Thu, 4 Dec 2025 12:15:55 +0100 Subject: [PATCH 1/2] Update JxBrowser version to 8.14.1 --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 162c6e78..01e8fb64 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlin.plugin.compose") version "2.0.0" } -val jxBrowserVersion by extra { "8.14.0" } // The version of JxBrowser used in the examples. +val jxBrowserVersion by extra { "8.14.1" } // The version of JxBrowser used in the examples. val guavaVersion by extra { "29.0-jre" } // Some of the examples use Guava. repositories { From 30e32601e6674990421a47e3de982e509dd307d7 Mon Sep 17 00:00:00 2001 From: Danil-Didkovskiy Date: Thu, 4 Dec 2025 14:44:43 +0200 Subject: [PATCH 2/2] Add drag and drop options to `PopupWindowState` --- .../jxbrowser/examples/compose/OpenExtensionPopupCallback.kt | 2 ++ .../com/teamdev/jxbrowser/examples/compose/OpenPopupCallback.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenExtensionPopupCallback.kt b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenExtensionPopupCallback.kt index c858a40d..fa89c935 100644 --- a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenExtensionPopupCallback.kt +++ b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenExtensionPopupCallback.kt @@ -39,6 +39,7 @@ import com.teamdev.jxbrowser.extensions.callback.InstallExtensionCallback import com.teamdev.jxbrowser.extensions.callback.OpenExtensionPopupCallback import com.teamdev.jxbrowser.extensions.event.ExtensionInstalled import com.teamdev.jxbrowser.view.compose.BrowserView +import com.teamdev.jxbrowser.view.compose.dnd.DragAndDropOptions import com.teamdev.jxbrowser.view.compose.popup.PopupWindow import com.teamdev.jxbrowser.view.compose.popup.PopupWindowState import kotlinx.coroutines.CoroutineScope @@ -134,6 +135,7 @@ fun SnapshotStateList.addNewPopup( ) = add( PopupWindowState( browser = params.popupBrowser(), + dragAndDropOptions = mutableStateOf(DragAndDropOptions()), scope = scope, onClose = { remove(it) } ) diff --git a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenPopupCallback.kt b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenPopupCallback.kt index 1c6dc6fa..0649c3bc 100644 --- a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenPopupCallback.kt +++ b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/compose/OpenPopupCallback.kt @@ -31,6 +31,7 @@ import com.teamdev.jxbrowser.dsl.register import com.teamdev.jxbrowser.dsl.removeCallback import com.teamdev.jxbrowser.engine.RenderingMode import com.teamdev.jxbrowser.view.compose.BrowserView +import com.teamdev.jxbrowser.view.compose.dnd.DragAndDropOptions import com.teamdev.jxbrowser.view.compose.popup.PopupWindow import com.teamdev.jxbrowser.view.compose.popup.PopupWindowState import kotlinx.coroutines.CoroutineScope @@ -111,6 +112,7 @@ fun SnapshotStateList.addNewPopup( PopupWindowState( browser = params.popupBrowser(), bounds = params.initialBounds(), + dragAndDropOptions = mutableStateOf(DragAndDropOptions()), scope = scope, onClose = { remove(it) } )