wails/v2/pkg
NarciLee 4e8b705cda
fix: add missing EventsOffAll export to runtime templates (#4883)
* fix: add missing EventsOffAll export to runtime templates

The EventsOffAll function was implemented in the internal runtime
(desktop/events.js) and exported in the wrapper runtime files, but was
missing from the public runtime templates that are generated in user
projects. This caused a type mismatch where EventsOffAll was declared
in the TypeScript definition but the implementation was missing.

This commit adds the EventsOffAll export and type declaration to all
frontend framework templates:
- Common templates (generate/assets/common)
- React / React-TS
- Vue / Vue-TS
- Svelte / Svelte-TS
- Preact / Preact-TS
- Lit / Lit-TS
- Vanilla / Vanilla-TS

Fixes #4703

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

* docs: add EventsOffAll to runtime events documentation

Added EventsOffAll function documentation to both English and Chinese
versions of the runtime events reference.

The function was already implemented in Go (pkg/runtime/events.go) and
JavaScript (internal/frontend/runtime/desktop/events.js), but was missing
from the public documentation.

Related to #4703

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

* chore: add EventsOffAll fix to changelog

Added entry for the EventsOffAll fix to the Unreleased section
of the changelog.

Related to #4703

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

* docs: translate EventsOffAll description to Chinese

Improved consistency in Chinese documentation by translating the
EventsOffAll description from English to Chinese, matching the
style of other event method descriptions.

Related to #4703

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

---------

Co-authored-by: cc <Zhuanz@MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-01-25 13:10:24 +11:00
..
application [chore] lint fixes 2023-11-12 12:30:49 +11:00
assetserver FIX: Address Mac CGO Crash (#3590) 2024-08-20 18:12:56 +10:00
buildassets Fix for webview2 detection 2025-04-12 13:21:37 +10:00
clilogger Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
commands fix: cross compiling on linux for windows (#4263) 2025-05-19 21:16:10 +10:00
git Fixed an error that occurred when an author name contains a string that is not suitable for JSON (#3638) 2024-07-29 21:34:19 +10:00
logger fix dev mode logging bug (#3972) 2025-01-23 11:12:18 +00:00
mac chore: fix function names in comment (#3383) 2024-04-09 17:19:06 -05:00
menu chore: fix some comments (#3932) 2024-12-06 14:35:46 +11:00
options Update windows.go 2025-11-04 08:41:29 +11:00
runtime Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
templates fix: add missing EventsOffAll export to runtime templates (#4883) 2026-01-25 13:10:24 +11:00