wails/v3/internal
Atterpac 10447e6fcd
[V3] Drag-n-Drop Zones and improvements (#4318)
* new events

* macOS dnd improvements

* wailsio adds for dropzone

* update example

* sorta working

the top 300px of the window are not dropabble for some reason i suspect it has to do with the drag enter/drag leave xy as the performOperation needed to use the ContentView for appropriate X/Y

* implement attribute detection for data-wails-dropzone

* docs

* pass x/y dnd linux

* cleanup exmample

* changelog

* pass all attributes to golang on dragdrop

* filetree example

* fix dnd build windows

* Fix windows dnd

* update docs

* remove debug log

* appease the security bot

* Fix changelog

* Fix changelog

* Revert "Fix event generation issues."

This reverts commit ae4ed4fe

* Fix events

* Fix merge conflicts. Fix events generation formatting

* Update docs

* Fix duplicate bundledassets import causing build failures

Remove duplicate import of bundledassets package that was causing
compilation errors in PR #4318. The import was declared twice in
the same import block, causing "bundledassets redeclared" errors.

Fixes build issues in GitHub Actions for drag-and-drop zones feature.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Replace fmt.Printf debug statements with globalApplication.debug

Replace all fmt.Printf debug logging statements in drag-and-drop
functionality with proper globalApplication.debug calls. This provides:

- Consistent logging with the rest of the application
- Proper key-value structured logging
- Better integration with the application's logging system
- Cleaner debug output format

Changes:
- application_darwin.go: Replace 2 fmt.Printf calls
- webview_window.go: Replace 6 fmt.Printf calls
- webview_window_windows.go: Replace 13 fmt.Printf calls
- Remove unused fmt import from application_darwin.go

All debug messages maintain the same information but now use
structured logging with key-value pairs instead of printf formatting.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add nil checks to WindowEventContext methods

Ensure all WindowEventContext methods properly handle nil c.data
by initializing the map when it's nil. This prevents panics when
methods are called on contexts that haven't been properly initialized.

Changes:
- DroppedFiles(): Add nil check and map initialization
- setCoordinates(): Add nil check and map initialization
- setDropZoneDetails(): Add nil check and map initialization
- DropZoneDetails(): Add nil check and map initialization

All methods now follow the same pattern as setDroppedFiles()
where a nil data map is automatically initialized to prevent
runtime panics during drag-and-drop operations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update v3/pkg/application/webview_window_darwin.m

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* reinstate events docs.

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-04 20:40:19 +10:00
..
assetserver [V3] Drag-n-Drop Zones and improvements (#4318) 2025-08-04 20:40:19 +10:00
buildinfo [v3] Late service registration and error handling overhaul (#4066) 2025-02-19 09:27:41 +01:00
capabilities Add Linux stubs for badge service and fix capabilities compilation 2025-06-11 23:45:34 +10:00
changelog Nightly release action 2025-07-17 06:28:19 +10:00
commands [v3] Fix: Vite server not cleaned up when build fails (#4436) 2025-08-02 17:48:01 +10:00
dbus [V3-Linux] Systray OnClick on initial icon click (#3907) 2024-11-24 07:46:14 +11:00
debug Run go mod tidy on project creation. Use better method of relative module location. 2023-08-12 14:32:52 +10:00
doctor [V3] fix: enhance doctor command to verify Windows SDK dependencies (#4392) 2025-07-15 18:43:23 +10:00
fileexplorer [v3] Fix OpenFileManager on windows (#4375) 2025-07-03 05:36:59 +10:00
flags Add goModTidy function to clean up Go module dependencies during inst… (#4286) 2025-08-02 15:51:30 +10:00
generator Refactor Manager API to use singular naming convention (#4367) 2025-06-22 12:19:14 +10:00
github Fix tests 2025-01-20 19:56:03 +11:00
go-common-file-dialog [V3] Windows: fix(application): handle error and type assertion in save file dialog (#4284) 2025-08-04 19:57:53 +10:00
hash [v3] Late service registration and error handling overhaul (#4066) 2025-02-19 09:27:41 +01:00
operatingsystem Add Linux stubs for badge service and fix capabilities compilation 2025-06-11 23:45:34 +10:00
packager [V3-Linux] Support for deb,rpm,arch linux packager packaging (#3909) 2024-11-30 13:31:56 +11:00
runtime [V3] Drag-n-Drop Zones and improvements (#4318) 2025-08-04 20:40:19 +10:00
s Support template generation 2025-01-01 20:58:49 +11:00
service Breaking Change: Service method names 2025-01-16 07:47:23 +11:00
signal # Conflicts: 2024-09-18 05:55:49 +10:00
templates Add goModTidy function to clean up Go module dependencies during inst… (#4286) 2025-08-02 15:51:30 +10:00
term [v3] Pass build flags to binding generator (#4023) 2025-01-23 10:58:35 +00:00
version v3.0.0-alpha.18 2025-08-03 02:53:39 +00:00