Skip to content

Commit 5fa6f92

Browse files
committed
Update go dependencies
1 parent 8ece12b commit 5fa6f92

4 files changed

Lines changed: 171 additions & 33 deletions

File tree

frontend/wailsjs/runtime/runtime.d.ts

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,85 @@ export function OnFileDropOff() :void
246246
export function CanResolveFilePaths(): boolean;
247247

248248
// Resolves file paths for an array of files
249-
export function ResolveFilePaths(files: File[]): void
249+
export function ResolveFilePaths(files: File[]): void
250+
251+
// Notification types
252+
export interface NotificationOptions {
253+
id: string;
254+
title: string;
255+
subtitle?: string; // macOS and Linux only
256+
body?: string;
257+
categoryId?: string;
258+
data?: { [key: string]: any };
259+
}
260+
261+
export interface NotificationAction {
262+
id?: string;
263+
title?: string;
264+
destructive?: boolean; // macOS-specific
265+
}
266+
267+
export interface NotificationCategory {
268+
id?: string;
269+
actions?: NotificationAction[];
270+
hasReplyField?: boolean;
271+
replyPlaceholder?: string;
272+
replyButtonTitle?: string;
273+
}
274+
275+
// [InitializeNotifications](https://wails.io/docs/reference/runtime/notification#initializenotifications)
276+
// Initializes the notification service for the application.
277+
// This must be called before sending any notifications.
278+
export function InitializeNotifications(): Promise<void>;
279+
280+
// [CleanupNotifications](https://wails.io/docs/reference/runtime/notification#cleanupnotifications)
281+
// Cleans up notification resources and releases any held connections.
282+
export function CleanupNotifications(): Promise<void>;
283+
284+
// [IsNotificationAvailable](https://wails.io/docs/reference/runtime/notification#isnotificationavailable)
285+
// Checks if notifications are available on the current platform.
286+
export function IsNotificationAvailable(): Promise<boolean>;
287+
288+
// [RequestNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#requestnotificationauthorization)
289+
// Requests notification authorization from the user (macOS only).
290+
export function RequestNotificationAuthorization(): Promise<boolean>;
291+
292+
// [CheckNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#checknotificationauthorization)
293+
// Checks the current notification authorization status (macOS only).
294+
export function CheckNotificationAuthorization(): Promise<boolean>;
295+
296+
// [SendNotification](https://wails.io/docs/reference/runtime/notification#sendnotification)
297+
// Sends a basic notification with the given options.
298+
export function SendNotification(options: NotificationOptions): Promise<void>;
299+
300+
// [SendNotificationWithActions](https://wails.io/docs/reference/runtime/notification#sendnotificationwithactions)
301+
// Sends a notification with action buttons. Requires a registered category.
302+
export function SendNotificationWithActions(options: NotificationOptions): Promise<void>;
303+
304+
// [RegisterNotificationCategory](https://wails.io/docs/reference/runtime/notification#registernotificationcategory)
305+
// Registers a notification category that can be used with SendNotificationWithActions.
306+
export function RegisterNotificationCategory(category: NotificationCategory): Promise<void>;
307+
308+
// [RemoveNotificationCategory](https://wails.io/docs/reference/runtime/notification#removenotificationcategory)
309+
// Removes a previously registered notification category.
310+
export function RemoveNotificationCategory(categoryId: string): Promise<void>;
311+
312+
// [RemoveAllPendingNotifications](https://wails.io/docs/reference/runtime/notification#removeallpendingnotifications)
313+
// Removes all pending notifications from the notification center.
314+
export function RemoveAllPendingNotifications(): Promise<void>;
315+
316+
// [RemovePendingNotification](https://wails.io/docs/reference/runtime/notification#removependingnotification)
317+
// Removes a specific pending notification by its identifier.
318+
export function RemovePendingNotification(identifier: string): Promise<void>;
319+
320+
// [RemoveAllDeliveredNotifications](https://wails.io/docs/reference/runtime/notification#removealldeliverednotifications)
321+
// Removes all delivered notifications from the notification center.
322+
export function RemoveAllDeliveredNotifications(): Promise<void>;
323+
324+
// [RemoveDeliveredNotification](https://wails.io/docs/reference/runtime/notification#removedeliverednotification)
325+
// Removes a specific delivered notification by its identifier.
326+
export function RemoveDeliveredNotification(identifier: string): Promise<void>;
327+
328+
// [RemoveNotification](https://wails.io/docs/reference/runtime/notification#removenotification)
329+
// Removes a notification by its identifier (cross-platform convenience function).
330+
export function RemoveNotification(identifier: string): Promise<void>;

frontend/wailsjs/runtime/runtime.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,60 @@ export function CanResolveFilePaths() {
239239

240240
export function ResolveFilePaths(files) {
241241
return window.runtime.ResolveFilePaths(files);
242+
}
243+
244+
export function InitializeNotifications() {
245+
return window.runtime.InitializeNotifications();
246+
}
247+
248+
export function CleanupNotifications() {
249+
return window.runtime.CleanupNotifications();
250+
}
251+
252+
export function IsNotificationAvailable() {
253+
return window.runtime.IsNotificationAvailable();
254+
}
255+
256+
export function RequestNotificationAuthorization() {
257+
return window.runtime.RequestNotificationAuthorization();
258+
}
259+
260+
export function CheckNotificationAuthorization() {
261+
return window.runtime.CheckNotificationAuthorization();
262+
}
263+
264+
export function SendNotification(options) {
265+
return window.runtime.SendNotification(options);
266+
}
267+
268+
export function SendNotificationWithActions(options) {
269+
return window.runtime.SendNotificationWithActions(options);
270+
}
271+
272+
export function RegisterNotificationCategory(category) {
273+
return window.runtime.RegisterNotificationCategory(category);
274+
}
275+
276+
export function RemoveNotificationCategory(categoryId) {
277+
return window.runtime.RemoveNotificationCategory(categoryId);
278+
}
279+
280+
export function RemoveAllPendingNotifications() {
281+
return window.runtime.RemoveAllPendingNotifications();
282+
}
283+
284+
export function RemovePendingNotification(identifier) {
285+
return window.runtime.RemovePendingNotification(identifier);
286+
}
287+
288+
export function RemoveAllDeliveredNotifications() {
289+
return window.runtime.RemoveAllDeliveredNotifications();
290+
}
291+
292+
export function RemoveDeliveredNotification(identifier) {
293+
return window.runtime.RemoveDeliveredNotification(identifier);
294+
}
295+
296+
export function RemoveNotification(identifier) {
297+
return window.runtime.RemoveNotification(identifier);
242298
}

go.mod

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
module sammy-t/gotepad
22

3-
go 1.24.0
3+
go 1.25.0
44

5-
toolchain go1.24.1
6-
7-
require github.com/wailsapp/wails/v2 v2.11.0
5+
require github.com/wailsapp/wails/v2 v2.12.0
86

97
require (
8+
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 // indirect
109
github.com/bep/debounce v1.2.1 // indirect
1110
github.com/go-ole/go-ole v1.3.0 // indirect
12-
github.com/godbus/dbus/v5 v5.1.0 // indirect
11+
github.com/godbus/dbus/v5 v5.2.2 // indirect
1312
github.com/google/uuid v1.6.0 // indirect
1413
github.com/gorilla/websocket v1.5.3 // indirect
1514
github.com/jchv/go-winloader v0.0.0-20250406163304-c1995be93bd1 // indirect
16-
github.com/labstack/echo/v4 v4.13.4 // indirect
15+
github.com/labstack/echo/v4 v4.15.1 // indirect
1716
github.com/labstack/gommon v0.4.2 // indirect
1817
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
1918
github.com/leaanthony/gosod v1.0.4 // indirect
@@ -24,16 +23,16 @@ require (
2423
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
2524
github.com/pkg/errors v0.9.1 // indirect
2625
github.com/rivo/uniseg v0.4.7 // indirect
27-
github.com/samber/lo v1.50.0 // indirect
26+
github.com/samber/lo v1.53.0 // indirect
2827
github.com/tkrajina/go-reflector v0.5.8 // indirect
2928
github.com/valyala/bytebufferpool v1.0.0 // indirect
3029
github.com/valyala/fasttemplate v1.2.2 // indirect
31-
github.com/wailsapp/go-webview2 v1.0.22 // indirect
30+
github.com/wailsapp/go-webview2 v1.0.23 // indirect
3231
github.com/wailsapp/mimetype v1.4.1 // indirect
33-
golang.org/x/crypto v0.45.0 // indirect
34-
golang.org/x/net v0.47.0 // indirect
35-
golang.org/x/sys v0.38.0 // indirect
36-
golang.org/x/text v0.31.0 // indirect
32+
golang.org/x/crypto v0.49.0 // indirect
33+
golang.org/x/net v0.52.0 // indirect
34+
golang.org/x/sys v0.42.0 // indirect
35+
golang.org/x/text v0.35.0 // indirect
3736
)
3837

3938
// replace github.com/wailsapp/wails/v2 v2.0.0 => C:\Users\Sammy\go\pkg\mod

go.sum

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 h1:N3IGoHHp9pb6mj1cbXbuaSXV/UMKwmbKLf53nQmtqMA=
2+
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3/go.mod h1:QtOLZGz8olr4qH2vWK0QH0w0O4T9fEIjMuWpKUsH7nc=
13
github.com/bep/debounce v1.2.1 h1:v67fRdBA9UQu2NhLFXrSg0Brw7CexQekrBwDMM8bzeY=
24
github.com/bep/debounce v1.2.1/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0=
35
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
46
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
57
github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=
68
github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=
7-
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
8-
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
9+
github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ=
10+
github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c=
911
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
1012
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1113
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
1214
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
1315
github.com/jchv/go-winloader v0.0.0-20250406163304-c1995be93bd1 h1:njuLRcjAuMKr7kI3D85AXWkw6/+v9PwtV6M6o11sWHQ=
1416
github.com/jchv/go-winloader v0.0.0-20250406163304-c1995be93bd1/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs=
15-
github.com/labstack/echo/v4 v4.13.4 h1:oTZZW+T3s9gAu5L8vmzihV7/lkXGZuITzTQkTEhcXEA=
16-
github.com/labstack/echo/v4 v4.13.4/go.mod h1:g63b33BZ5vZzcIUF8AtRH40DrTlXnx4UMC8rBdndmjQ=
17+
github.com/labstack/echo/v4 v4.15.1 h1:S9keusg26gZpjMmPqB5hOEvNKnmd1lNmcHrbbH2lnFs=
18+
github.com/labstack/echo/v4 v4.15.1/go.mod h1:xmw1clThob0BSVRX1CRQkGQ/vjwcpOMjQZSZa9fKA/c=
1719
github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0=
1820
github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU=
1921
github.com/leaanthony/debme v1.2.1 h1:9Tgwf+kjcrbMQ4WnPcEIUcQuIZYqdWftzZkBr+i/oOc=
@@ -42,38 +44,38 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
4244
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
4345
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
4446
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
45-
github.com/samber/lo v1.50.0 h1:XrG0xOeHs+4FQ8gJR97zDz5uOFMW7OwFWiFVzqopKgY=
46-
github.com/samber/lo v1.50.0/go.mod h1:RjZyNk6WSnUFRKK6EyOhsRJMqft3G+pg7dCWHQCWvsc=
47-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
48-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
47+
github.com/samber/lo v1.53.0 h1:t975lj2py4kJPQ6haz1QMgtId2gtmfktACxIXArw3HM=
48+
github.com/samber/lo v1.53.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
49+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
50+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
4951
github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo3DLVQQ=
5052
github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4=
5153
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
5254
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
5355
github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo=
5456
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
55-
github.com/wailsapp/go-webview2 v1.0.22 h1:YT61F5lj+GGaat5OB96Aa3b4QA+mybD0Ggq6NZijQ58=
56-
github.com/wailsapp/go-webview2 v1.0.22/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc=
57+
github.com/wailsapp/go-webview2 v1.0.23 h1:jmv8qhz1lHibCc79bMM/a/FqOnnzOGEisLav+a0b9P0=
58+
github.com/wailsapp/go-webview2 v1.0.23/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc=
5759
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
5860
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
59-
github.com/wailsapp/wails/v2 v2.11.0 h1:seLacV8pqupq32IjS4Y7V8ucab0WZwtK6VvUVxSBtqQ=
60-
github.com/wailsapp/wails/v2 v2.11.0/go.mod h1:jrf0ZaM6+GBc1wRmXsM8cIvzlg0karYin3erahI4+0k=
61-
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
62-
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
61+
github.com/wailsapp/wails/v2 v2.12.0 h1:BHO/kLNWFHYjCzucxbzAYZWUjub1Tvb4cSguQozHn5c=
62+
github.com/wailsapp/wails/v2 v2.12.0/go.mod h1:mo1bzK1DEJrobt7YrBjgxvb5Sihb1mhAY09hppbibQg=
63+
golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4=
64+
golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA=
6365
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
64-
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
65-
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
66+
golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0=
67+
golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw=
6668
golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6769
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6870
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6971
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7072
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
71-
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
72-
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
73+
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
74+
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
7375
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
7476
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
75-
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
76-
golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
77+
golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=
78+
golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=
7779
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
7880
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
7981
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)