@seelen-ui/lib 2.5.9 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/gen/types/AppBarEdge.d.ts +7 -0
- package/esm/gen/types/AppBarEdge.d.ts.map +1 -0
- package/esm/gen/types/AppBarEdge.js +8 -0
- package/esm/gen/types/AudioWaveform.d.ts +11 -0
- package/esm/gen/types/AudioWaveform.d.ts.map +1 -0
- package/esm/gen/types/AudioWaveform.js +2 -0
- package/esm/gen/types/Comparator.d.ts +9 -0
- package/esm/gen/types/Comparator.d.ts.map +1 -0
- package/esm/gen/types/Comparator.js +10 -0
- package/esm/gen/types/ContextMenu.d.ts +8 -0
- package/esm/gen/types/ContextMenu.d.ts.map +1 -1
- package/esm/gen/types/ContextMenuCallbackPayload.d.ts +20 -0
- package/esm/gen/types/ContextMenuCallbackPayload.d.ts.map +1 -0
- package/esm/gen/types/ContextMenuItem.d.ts +4 -2
- package/esm/gen/types/ContextMenuItem.d.ts.map +1 -1
- package/esm/gen/types/FocusedApp.d.ts +1 -1
- package/esm/gen/types/FocusedApp.d.ts.map +1 -1
- package/esm/gen/types/KnownPlugin.d.ts +2 -2
- package/esm/gen/types/KnownPlugin.d.ts.map +1 -1
- package/esm/gen/types/Operand.d.ts +5 -0
- package/esm/gen/types/Operand.d.ts.map +1 -0
- package/esm/gen/types/Operand.js +6 -0
- package/esm/gen/types/SeelenCommandArgument.d.ts +15 -0
- package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts +6 -0
- package/esm/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandRegisterAppBarArgs.d.ts +7 -0
- package/esm/gen/types/SeelenCommandRegisterAppBarArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandReturn.d.ts +15 -2
- package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.js +1 -0
- package/esm/gen/types/SeelenEventPayload.d.ts +10 -6
- package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/esm/gen/types/SeelenWallSettings.d.ts +8 -0
- package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -1
- package/esm/gen/types/Settings.d.ts +8 -0
- package/esm/gen/types/Settings.d.ts.map +1 -1
- package/esm/gen/types/ToolbarItem.d.ts +2 -0
- package/esm/gen/types/ToolbarItem.d.ts.map +1 -1
- package/esm/gen/types/TwmCondition.d.ts +17 -0
- package/esm/gen/types/TwmCondition.d.ts.map +1 -0
- package/esm/gen/types/TwmCondition.js +1 -0
- package/esm/gen/types/TwmGlobalRuntimeTree.d.ts +8 -0
- package/esm/gen/types/TwmGlobalRuntimeTree.d.ts.map +1 -0
- package/esm/gen/types/TwmGlobalRuntimeTree.js +1 -0
- package/esm/gen/types/{WmNodeKind.d.ts → TwmNodeKind.d.ts} +2 -2
- package/esm/gen/types/TwmNodeKind.d.ts.map +1 -0
- package/esm/gen/types/TwmNodeKind.js +8 -0
- package/esm/gen/types/TwmNodeLifetime.d.ts +5 -0
- package/esm/gen/types/TwmNodeLifetime.d.ts.map +1 -0
- package/esm/gen/types/TwmNodeLifetime.js +6 -0
- package/esm/gen/types/TwmPlugin.d.ts +8 -0
- package/esm/gen/types/TwmPlugin.d.ts.map +1 -0
- package/esm/gen/types/TwmPlugin.js +1 -0
- package/{script/gen/types/WmNode.d.ts → esm/gen/types/TwmPluginNode.d.ts} +15 -17
- package/esm/gen/types/TwmPluginNode.d.ts.map +1 -0
- package/esm/gen/types/TwmPluginNode.js +1 -0
- package/esm/gen/types/TwmReservation.d.ts +9 -0
- package/esm/gen/types/TwmReservation.d.ts.map +1 -0
- package/esm/gen/types/TwmReservation.js +10 -0
- package/esm/gen/types/TwmRuntimeNode.d.ts +22 -0
- package/esm/gen/types/TwmRuntimeNode.d.ts.map +1 -0
- package/esm/gen/types/TwmRuntimeNode.js +1 -0
- package/esm/gen/types/TwmRuntimeTree.d.ts +8 -0
- package/esm/gen/types/TwmRuntimeTree.d.ts.map +1 -0
- package/esm/gen/types/TwmRuntimeTree.js +1 -0
- package/esm/gen/types/TwmStackPolicy.d.ts +6 -0
- package/esm/gen/types/TwmStackPolicy.d.ts.map +1 -0
- package/esm/gen/types/TwmStackPolicy.js +7 -0
- package/esm/gen/types/UIColors.d.ts +9 -10
- package/esm/gen/types/UIColors.d.ts.map +1 -1
- package/esm/gen/types/UIColors.js +0 -1
- package/esm/gen/types/UserAppWindow.d.ts +5 -0
- package/esm/gen/types/UserAppWindow.d.ts.map +1 -1
- package/esm/gen/types/UserAppWindowPreview.d.ts +1 -1
- package/esm/gen/types/Wallpaper.d.ts +1 -1
- package/esm/gen/types/WallpaperKind.d.ts +1 -0
- package/esm/gen/types/WallpaperKind.d.ts.map +1 -1
- package/esm/gen/types/WallpaperKind.js +1 -0
- package/esm/gen/types/Widget.d.ts +4 -0
- package/esm/gen/types/Widget.d.ts.map +1 -1
- package/esm/gen/types/WidgetStatus.d.ts +2 -1
- package/esm/gen/types/WidgetStatus.d.ts.map +1 -1
- package/esm/gen/types/WidgetStatus.js +1 -0
- package/esm/gen/types/mod.d.ts +277 -264
- package/esm/gen/types/mod.d.ts.map +1 -1
- package/esm/gen/types/mod.js +277 -264
- package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/esm/gen/types/serde_json/JsonValue.js +2 -0
- package/esm/src/handlers/commands.d.ts +6 -0
- package/esm/src/handlers/commands.d.ts.map +1 -1
- package/esm/src/handlers/commands.js +6 -0
- package/esm/src/handlers/events.d.ts +3 -2
- package/esm/src/handlers/events.d.ts.map +1 -1
- package/esm/src/handlers/events.js +2 -1
- package/esm/src/state/widget/interfaces.d.ts +40 -10
- package/esm/src/state/widget/interfaces.d.ts.map +1 -1
- package/esm/src/state/widget/mod.d.ts +3 -1
- package/esm/src/state/widget/mod.d.ts.map +1 -1
- package/esm/src/state/widget/mod.js +28 -20
- package/esm/src/system_state/ui_colors.d.ts +0 -1
- package/esm/src/system_state/ui_colors.d.ts.map +1 -1
- package/esm/src/system_state/ui_colors.js +5 -22
- package/esm/src/utils/mod.d.ts +1 -0
- package/esm/src/utils/mod.d.ts.map +1 -1
- package/esm/src/utils/mod.js +1 -0
- package/package.json +4 -4
- package/script/gen/types/AppBarEdge.d.ts +7 -0
- package/script/gen/types/AppBarEdge.d.ts.map +1 -0
- package/script/gen/types/AppBarEdge.js +11 -0
- package/script/gen/types/AudioWaveform.d.ts +11 -0
- package/script/gen/types/AudioWaveform.d.ts.map +1 -0
- package/script/gen/types/AudioWaveform.js +3 -0
- package/script/gen/types/Comparator.d.ts +9 -0
- package/script/gen/types/Comparator.d.ts.map +1 -0
- package/script/gen/types/Comparator.js +13 -0
- package/script/gen/types/ContextMenu.d.ts +8 -0
- package/script/gen/types/ContextMenu.d.ts.map +1 -1
- package/script/gen/types/ContextMenuCallbackPayload.d.ts +20 -0
- package/script/gen/types/ContextMenuCallbackPayload.d.ts.map +1 -0
- package/script/gen/types/ContextMenuItem.d.ts +4 -2
- package/script/gen/types/ContextMenuItem.d.ts.map +1 -1
- package/script/gen/types/FocusedApp.d.ts +1 -1
- package/script/gen/types/FocusedApp.d.ts.map +1 -1
- package/script/gen/types/KnownPlugin.d.ts +2 -2
- package/script/gen/types/KnownPlugin.d.ts.map +1 -1
- package/script/gen/types/Operand.d.ts +5 -0
- package/script/gen/types/Operand.d.ts.map +1 -0
- package/script/gen/types/Operand.js +9 -0
- package/script/gen/types/SeelenCommandArgument.d.ts +15 -0
- package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts +6 -0
- package/script/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandRegisterAppBarArgs.d.ts +7 -0
- package/script/gen/types/SeelenCommandRegisterAppBarArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandReturn.d.ts +15 -2
- package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.js +2 -0
- package/script/gen/types/SeelenEventPayload.d.ts +10 -6
- package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/script/gen/types/SeelenWallSettings.d.ts +8 -0
- package/script/gen/types/SeelenWallSettings.d.ts.map +1 -1
- package/script/gen/types/Settings.d.ts +8 -0
- package/script/gen/types/Settings.d.ts.map +1 -1
- package/script/gen/types/ToolbarItem.d.ts +2 -0
- package/script/gen/types/ToolbarItem.d.ts.map +1 -1
- package/script/gen/types/TwmCondition.d.ts +17 -0
- package/script/gen/types/TwmCondition.d.ts.map +1 -0
- package/script/gen/types/TwmCondition.js +2 -0
- package/script/gen/types/TwmGlobalRuntimeTree.d.ts +8 -0
- package/script/gen/types/TwmGlobalRuntimeTree.d.ts.map +1 -0
- package/script/gen/types/TwmGlobalRuntimeTree.js +2 -0
- package/script/gen/types/{WmNodeKind.d.ts → TwmNodeKind.d.ts} +2 -2
- package/script/gen/types/TwmNodeKind.d.ts.map +1 -0
- package/script/gen/types/TwmNodeKind.js +11 -0
- package/script/gen/types/TwmNodeLifetime.d.ts +5 -0
- package/script/gen/types/TwmNodeLifetime.d.ts.map +1 -0
- package/script/gen/types/TwmNodeLifetime.js +9 -0
- package/script/gen/types/TwmPlugin.d.ts +8 -0
- package/script/gen/types/TwmPlugin.d.ts.map +1 -0
- package/script/gen/types/TwmPlugin.js +2 -0
- package/{esm/gen/types/WmNode.d.ts → script/gen/types/TwmPluginNode.d.ts} +15 -17
- package/script/gen/types/TwmPluginNode.d.ts.map +1 -0
- package/script/gen/types/TwmPluginNode.js +2 -0
- package/script/gen/types/TwmReservation.d.ts +9 -0
- package/script/gen/types/TwmReservation.d.ts.map +1 -0
- package/script/gen/types/TwmReservation.js +13 -0
- package/script/gen/types/TwmRuntimeNode.d.ts +22 -0
- package/script/gen/types/TwmRuntimeNode.d.ts.map +1 -0
- package/script/gen/types/TwmRuntimeNode.js +2 -0
- package/script/gen/types/TwmRuntimeTree.d.ts +8 -0
- package/script/gen/types/TwmRuntimeTree.d.ts.map +1 -0
- package/script/gen/types/TwmRuntimeTree.js +2 -0
- package/script/gen/types/TwmStackPolicy.d.ts +6 -0
- package/script/gen/types/TwmStackPolicy.d.ts.map +1 -0
- package/script/gen/types/TwmStackPolicy.js +10 -0
- package/script/gen/types/UIColors.d.ts +9 -10
- package/script/gen/types/UIColors.d.ts.map +1 -1
- package/script/gen/types/UIColors.js +0 -1
- package/script/gen/types/UserAppWindow.d.ts +5 -0
- package/script/gen/types/UserAppWindow.d.ts.map +1 -1
- package/script/gen/types/UserAppWindowPreview.d.ts +1 -1
- package/script/gen/types/Wallpaper.d.ts +1 -1
- package/script/gen/types/WallpaperKind.d.ts +1 -0
- package/script/gen/types/WallpaperKind.d.ts.map +1 -1
- package/script/gen/types/WallpaperKind.js +1 -0
- package/script/gen/types/Widget.d.ts +4 -0
- package/script/gen/types/Widget.d.ts.map +1 -1
- package/script/gen/types/WidgetStatus.d.ts +2 -1
- package/script/gen/types/WidgetStatus.d.ts.map +1 -1
- package/script/gen/types/WidgetStatus.js +1 -0
- package/script/gen/types/mod.d.ts +277 -264
- package/script/gen/types/mod.d.ts.map +1 -1
- package/script/gen/types/mod.js +277 -264
- package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/script/gen/types/serde_json/JsonValue.js +3 -0
- package/script/src/handlers/commands.d.ts +6 -0
- package/script/src/handlers/commands.d.ts.map +1 -1
- package/script/src/handlers/commands.js +6 -0
- package/script/src/handlers/events.d.ts +3 -2
- package/script/src/handlers/events.d.ts.map +1 -1
- package/script/src/handlers/events.js +2 -1
- package/script/src/state/widget/interfaces.d.ts +40 -10
- package/script/src/state/widget/interfaces.d.ts.map +1 -1
- package/script/src/state/widget/mod.d.ts +3 -1
- package/script/src/state/widget/mod.d.ts.map +1 -1
- package/script/src/state/widget/mod.js +28 -20
- package/script/src/system_state/ui_colors.d.ts +0 -1
- package/script/src/system_state/ui_colors.d.ts.map +1 -1
- package/script/src/system_state/ui_colors.js +5 -22
- package/script/src/utils/mod.d.ts +1 -0
- package/script/src/utils/mod.d.ts.map +1 -1
- package/script/src/utils/mod.js +3 -1
- package/styles/colors.css +155 -155
- package/styles/shadows.css +7 -0
- package/esm/gen/types/WindowManagerLayout.d.ts +0 -6
- package/esm/gen/types/WindowManagerLayout.d.ts.map +0 -1
- package/esm/gen/types/WmNode.d.ts.map +0 -1
- package/esm/gen/types/WmNodeKind.d.ts.map +0 -1
- package/esm/gen/types/WmNodeKind.js +0 -8
- package/esm/gen/types/WmNodeLifetime.d.ts +0 -5
- package/esm/gen/types/WmNodeLifetime.d.ts.map +0 -1
- package/esm/gen/types/WmNodeLifetime.js +0 -6
- package/esm/gen/types/WmRenderTree.d.ts +0 -6
- package/esm/gen/types/WmRenderTree.d.ts.map +0 -1
- package/script/gen/types/WindowManagerLayout.d.ts +0 -6
- package/script/gen/types/WindowManagerLayout.d.ts.map +0 -1
- package/script/gen/types/WmNode.d.ts.map +0 -1
- package/script/gen/types/WmNodeKind.d.ts.map +0 -1
- package/script/gen/types/WmNodeKind.js +0 -11
- package/script/gen/types/WmNodeLifetime.d.ts +0 -5
- package/script/gen/types/WmNodeLifetime.d.ts.map +0 -1
- package/script/gen/types/WmNodeLifetime.js +0 -9
- package/script/gen/types/WmRenderTree.d.ts +0 -6
- package/script/gen/types/WmRenderTree.d.ts.map +0 -1
- /package/esm/gen/types/{WindowManagerLayout.js → ContextMenuCallbackPayload.js} +0 -0
- /package/esm/gen/types/{WmNode.js → SeelenCommandMoveWindowToWorkspaceArgs.js} +0 -0
- /package/esm/gen/types/{WmRenderTree.js → SeelenCommandRegisterAppBarArgs.js} +0 -0
- /package/script/gen/types/{WindowManagerLayout.js → ContextMenuCallbackPayload.js} +0 -0
- /package/script/gen/types/{WmNode.js → SeelenCommandMoveWindowToWorkspaceArgs.js} +0 -0
- /package/script/gen/types/{WmRenderTree.js → SeelenCommandRegisterAppBarArgs.js} +0 -0
|
@@ -6,9 +6,11 @@ export var SeelenCommand;
|
|
|
6
6
|
SeelenCommand["CreateWorkspace"] = "create_workspace";
|
|
7
7
|
SeelenCommand["DestroyWorkspace"] = "destroy_workspace";
|
|
8
8
|
SeelenCommand["RenameWorkspace"] = "rename_workspace";
|
|
9
|
+
SeelenCommand["MoveWindowToWorkspace"] = "move_window_to_workspace";
|
|
9
10
|
SeelenCommand["WallpaperNext"] = "wallpaper_next";
|
|
10
11
|
SeelenCommand["WallpaperPrev"] = "wallpaper_prev";
|
|
11
12
|
SeelenCommand["WallpaperSaveThumbnail"] = "wallpaper_save_thumbnail";
|
|
13
|
+
SeelenCommand["SetAsWallpaper"] = "set_as_wallpaper";
|
|
12
14
|
SeelenCommand["LogFromWebview"] = "log_from_webview";
|
|
13
15
|
SeelenCommand["OpenFile"] = "open_file";
|
|
14
16
|
SeelenCommand["SelectFileOnExplorer"] = "select_file_on_explorer";
|
|
@@ -30,8 +32,11 @@ export var SeelenCommand;
|
|
|
30
32
|
SeelenCommand["SystemGetForegroundWindowColor"] = "get_foreground_window_color";
|
|
31
33
|
SeelenCommand["SystemGetMonitors"] = "get_connected_monitors";
|
|
32
34
|
SeelenCommand["SystemGetColors"] = "get_system_colors";
|
|
35
|
+
SeelenCommand["SystemSetAccentColor"] = "set_system_accent_color";
|
|
33
36
|
SeelenCommand["SystemGetLanguages"] = "get_system_languages";
|
|
34
37
|
SeelenCommand["SystemSetKeyboardLayout"] = "set_system_keyboard_layout";
|
|
38
|
+
SeelenCommand["RegisterAppBar"] = "register_app_bar";
|
|
39
|
+
SeelenCommand["UnregisterAppBar"] = "unregister_app_bar";
|
|
35
40
|
SeelenCommand["StateGetDefaultSettings"] = "state_get_default_settings";
|
|
36
41
|
SeelenCommand["StateGetDefaultMonitorSettings"] = "state_get_default_monitor_settings";
|
|
37
42
|
SeelenCommand["StateGetDefaultWallpaperSettings"] = "state_get_default_wallpaper_settings";
|
|
@@ -77,6 +82,7 @@ export var SeelenCommand;
|
|
|
77
82
|
SeelenCommand["SetVolumeLevel"] = "set_volume_level";
|
|
78
83
|
SeelenCommand["MediaToggleMute"] = "media_toggle_mute";
|
|
79
84
|
SeelenCommand["MediaSetDefaultDevice"] = "media_set_default_device";
|
|
85
|
+
SeelenCommand["GetMediaWaveform"] = "get_media_waveform";
|
|
80
86
|
SeelenCommand["GetAllMonitorsBrightness"] = "get_all_monitors_brightness";
|
|
81
87
|
SeelenCommand["SetMonitorBrightness"] = "set_monitor_brightness";
|
|
82
88
|
SeelenCommand["GetPowerStatus"] = "get_power_status";
|
|
@@ -14,6 +14,7 @@ export declare enum SeelenEvent {
|
|
|
14
14
|
MediaDevices = "media::devices",
|
|
15
15
|
MediaInputs = "media-inputs",
|
|
16
16
|
MediaOutputs = "media-outputs",
|
|
17
|
+
MediaWaveform = "media::waveform",
|
|
17
18
|
NetworkDefaultLocalIp = "network-default-local-ip",
|
|
18
19
|
NetworkAdapters = "network-adapters",
|
|
19
20
|
NetworkInternetConnection = "network-internet-connection",
|
|
@@ -28,7 +29,6 @@ export declare enum SeelenEvent {
|
|
|
28
29
|
WMTreeChanged = "wm::tree-changed",
|
|
29
30
|
PopupContentChanged = "popup-content-changed",
|
|
30
31
|
StateSettingsChanged = "settings-changed",
|
|
31
|
-
StateSettingsByAppChanged = "settings-by-app",
|
|
32
32
|
StateThemesChanged = "themes",
|
|
33
33
|
StateIconPacksChanged = "icon-packs",
|
|
34
34
|
StatePluginsChanged = "plugins-changed",
|
|
@@ -51,6 +51,7 @@ export declare enum SeelenEvent {
|
|
|
51
51
|
ClipboardDataChanged = "clipboard::data-changed",
|
|
52
52
|
FocusAssistChanged = "focus-assist::changed",
|
|
53
53
|
NotificationsModeChanged = "notifications::mode-changed",
|
|
54
|
-
Notifications = "notifications"
|
|
54
|
+
Notifications = "notifications",
|
|
55
|
+
PluginEnabled = "plugin::enabled"
|
|
55
56
|
}
|
|
56
57
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,sBAAsB,8BAA8B;IACpD,kBAAkB,yBAAyB;IAC3C,eAAe,sBAAsB;IACrC,qBAAqB,mBAAmB;IACxC,qBAAqB,6BAA6B;IAClD,sBAAsB,8BAA8B;IACpD,+BAA+B,wCAAwC;IACvE,WAAW,iBAAiB;IAC5B,iBAAiB,+BAA+B;IAChD,qBAAqB,0BAA0B;IAC/C,6BAA6B,mCAAmC;IAChE,aAAa,mBAAmB;IAChC,YAAY,mBAAmB;IAC/B,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,qBAAqB,6BAA6B;IAClD,eAAe,qBAAqB;IACpC,yBAAyB,gCAAgC;IACzD,kBAAkB,iBAAiB;IACnC,WAAW,iBAAiB;IAC5B,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,kBAAkB,0BAA0B;IAC5C,gBAAgB,wBAAwB;IACxC,eAAe,uBAAuB;IACtC,aAAa,qBAAqB;IAClC,mBAAmB,0BAA0B;IAC7C,oBAAoB,qBAAqB;IACzC,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,sBAAsB,8BAA8B;IACpD,kBAAkB,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ent["MediaDevices"] = "media::devices";
|
|
17
17
|
SeelenEvent["MediaInputs"] = "media-inputs";
|
|
18
18
|
SeelenEvent["MediaOutputs"] = "media-outputs";
|
|
19
|
+
SeelenEvent["MediaWaveform"] = "media::waveform";
|
|
19
20
|
SeelenEvent["NetworkDefaultLocalIp"] = "network-default-local-ip";
|
|
20
21
|
SeelenEvent["NetworkAdapters"] = "network-adapters";
|
|
21
22
|
SeelenEvent["NetworkInternetConnection"] = "network-internet-connection";
|
|
@@ -30,7 +31,6 @@ export var SeelenEvent;
|
|
|
30
31
|
SeelenEvent["WMTreeChanged"] = "wm::tree-changed";
|
|
31
32
|
SeelenEvent["PopupContentChanged"] = "popup-content-changed";
|
|
32
33
|
SeelenEvent["StateSettingsChanged"] = "settings-changed";
|
|
33
|
-
SeelenEvent["StateSettingsByAppChanged"] = "settings-by-app";
|
|
34
34
|
SeelenEvent["StateThemesChanged"] = "themes";
|
|
35
35
|
SeelenEvent["StateIconPacksChanged"] = "icon-packs";
|
|
36
36
|
SeelenEvent["StatePluginsChanged"] = "plugins-changed";
|
|
@@ -54,4 +54,5 @@ export var SeelenEvent;
|
|
|
54
54
|
SeelenEvent["FocusAssistChanged"] = "focus-assist::changed";
|
|
55
55
|
SeelenEvent["NotificationsModeChanged"] = "notifications::mode-changed";
|
|
56
56
|
SeelenEvent["Notifications"] = "notifications";
|
|
57
|
+
SeelenEvent["PluginEnabled"] = "plugin::enabled";
|
|
57
58
|
})(SeelenEvent || (SeelenEvent = {}));
|
|
@@ -12,34 +12,64 @@ export interface WidgetInformation {
|
|
|
12
12
|
}
|
|
13
13
|
export interface InitWidgetOptions {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Automatically resizes the widget to match the content size of a given element.
|
|
16
|
+
*
|
|
16
17
|
* @example
|
|
17
|
-
* autoSizeByContent: document.body
|
|
18
|
-
* autoSizeByContent: document.getElementById("root")
|
|
18
|
+
* autoSizeByContent: document.body
|
|
19
|
+
* autoSizeByContent: document.getElementById("root")
|
|
20
|
+
*
|
|
19
21
|
* @default undefined
|
|
20
22
|
*/
|
|
21
23
|
autoSizeByContent?: HTMLElement | null;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
+
* When `autoSizeByContent` is enabled, ensures the widget stays fully visible
|
|
26
|
+
* by adjusting its position to fit within the screen bounds.
|
|
27
|
+
*
|
|
25
28
|
* @default true
|
|
26
29
|
*/
|
|
27
30
|
autoSizeFitOnScreen?: boolean;
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Forces the WebView to use a 1:1 device pixel ratio (disables DPI scaling).
|
|
33
|
+
*
|
|
34
|
+
* ⚠️ Not intended for typical widgets. Use only when exact pixel alignment
|
|
35
|
+
* with the physical display is required (e.g. multi-monitor widgets like
|
|
36
|
+
* power menu, workspace viewer, wallpaper manager).
|
|
37
|
+
*
|
|
38
|
+
* Widgets using this must handle per-monitor DPI scaling manually.
|
|
39
|
+
*
|
|
30
40
|
* @default false
|
|
31
41
|
*/
|
|
32
42
|
normalizeDevicePixelRatio?: boolean;
|
|
33
43
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
44
|
+
* Persists and restores the widget's last known position and size.
|
|
45
|
+
*
|
|
46
|
+
* Intended for widgets that users can move or resize (e.g. desktop widgets).
|
|
37
47
|
*
|
|
38
48
|
* @default widget.preset === "Desktop"
|
|
39
49
|
*/
|
|
40
50
|
saveAndRestoreLastRect?: boolean;
|
|
41
51
|
/**
|
|
42
|
-
*
|
|
52
|
+
* Hides the widget when it loses focus.
|
|
53
|
+
*
|
|
54
|
+
* Commonly used for popup-style widgets.
|
|
55
|
+
*
|
|
56
|
+
* @default widget.preset === "Popup"
|
|
57
|
+
*/
|
|
58
|
+
hideOnFocusLoss?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Closes the widget after being hidden for a period of time,
|
|
61
|
+
* instead of keeping it in memory.
|
|
62
|
+
*
|
|
63
|
+
* Useful for infrequently used popup widgets to reduce resource usage.
|
|
64
|
+
* The widget will be recreated when opened again.
|
|
65
|
+
*
|
|
66
|
+
* @default widget.lazy === true
|
|
67
|
+
*/
|
|
68
|
+
closeOnHide?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Disables CSS animations when performance mode is set to "Extreme".
|
|
71
|
+
*
|
|
72
|
+
* Helps reduce rendering overhead on low-end systems or heavy workloads.
|
|
43
73
|
*
|
|
44
74
|
* @default true
|
|
45
75
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE;QAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE;QAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAEvC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
|
|
@@ -24,6 +24,7 @@ export declare class Widget {
|
|
|
24
24
|
/** current window where the widget is running */
|
|
25
25
|
readonly window: Window;
|
|
26
26
|
private autoSizer?;
|
|
27
|
+
private destroyOnHide;
|
|
27
28
|
private runtimeState;
|
|
28
29
|
private constructor();
|
|
29
30
|
/** Returns the current window id of the widget */
|
|
@@ -36,6 +37,7 @@ export declare class Widget {
|
|
|
36
37
|
private applyOverlayPreset;
|
|
37
38
|
/** Will apply the recommended settings for a popup widget */
|
|
38
39
|
private applyPopupPreset;
|
|
40
|
+
private hideOnFocusLoss;
|
|
39
41
|
/**
|
|
40
42
|
* Will restore the saved position and size of the widget on start,
|
|
41
43
|
* after that will store the position and size of the widget on change.
|
|
@@ -66,7 +68,7 @@ export declare class Widget {
|
|
|
66
68
|
show(): Promise<void>;
|
|
67
69
|
/** Will force foreground the widget */
|
|
68
70
|
focus(): Promise<void>;
|
|
69
|
-
hide(
|
|
71
|
+
hide(): void;
|
|
70
72
|
}
|
|
71
73
|
export declare const SeelenSettingsWidgetId: WidgetId;
|
|
72
74
|
export declare const SeelenPopupWidgetId: WidgetId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/mod.ts"],"names":[],"mappings":"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;AAC/E,eAAO,MAAM,mBAAmB,EAAE,QAAsC,CAAC;AACzE,eAAO,MAAM,iBAAiB,EAAE,QAAoC,CAAC;AACrE,eAAO,MAAM,qBAAqB,EAAE,QAA8C,CAAC;AACnF,eAAO,MAAM,2BAA2B,EAAE,QAA+C,CAAC;AAC1F,eAAO,MAAM,kBAAkB,EAAE,QAAkD,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { startThemingTool } from "../theme/theming.js";
|
|
|
9
9
|
import { disableAnimationsOnPerformanceMode } from "./performance.js";
|
|
10
10
|
import { getCurrentWebview } from "@tauri-apps/api/webview";
|
|
11
11
|
import { getCurrentWindow } from "@tauri-apps/api/window";
|
|
12
|
+
import { subscribe } from "../../handlers/mod.js";
|
|
12
13
|
/**
|
|
13
14
|
* Represents the widget instance running in the current webview
|
|
14
15
|
*/
|
|
@@ -39,6 +40,7 @@ export class Widget {
|
|
|
39
40
|
/** current window where the widget is running */
|
|
40
41
|
window;
|
|
41
42
|
autoSizer;
|
|
43
|
+
destroyOnHide = false;
|
|
42
44
|
runtimeState = {
|
|
43
45
|
hwnd: 0,
|
|
44
46
|
initialized: false,
|
|
@@ -78,20 +80,7 @@ export class Widget {
|
|
|
78
80
|
applyOverlayPreset() { }
|
|
79
81
|
/** Will apply the recommended settings for a popup widget */
|
|
80
82
|
applyPopupPreset() {
|
|
81
|
-
const hideWidget = debounce(() => {
|
|
82
|
-
this.hide(true);
|
|
83
|
-
}, 100);
|
|
84
|
-
this.window.onFocusChanged(({ payload: focused }) => {
|
|
85
|
-
if (focused) {
|
|
86
|
-
hideWidget.cancel();
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
hideWidget();
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
83
|
this.onTrigger(async ({ desiredPosition, alignX, alignY }) => {
|
|
93
|
-
// avoid flickering when clicking a button that triggers the widget
|
|
94
|
-
hideWidget.cancel();
|
|
95
84
|
if (desiredPosition) {
|
|
96
85
|
await this.adjustAndSetPosition(desiredPosition.x, desiredPosition.y, alignX, alignY);
|
|
97
86
|
}
|
|
@@ -99,6 +88,23 @@ export class Widget {
|
|
|
99
88
|
await this.focus();
|
|
100
89
|
});
|
|
101
90
|
}
|
|
91
|
+
hideOnFocusLoss() {
|
|
92
|
+
let wasFocused = false;
|
|
93
|
+
const hideDelayed = debounce(() => {
|
|
94
|
+
this.hide();
|
|
95
|
+
}, 100);
|
|
96
|
+
subscribe(SeelenEvent.GlobalFocusChanged, ({ payload: focused }) => {
|
|
97
|
+
if (focused.hwnd !== this.runtimeState.hwnd && focused.ownerHwnd !== this.runtimeState.hwnd) {
|
|
98
|
+
if (wasFocused) {
|
|
99
|
+
hideDelayed();
|
|
100
|
+
}
|
|
101
|
+
wasFocused = false;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
wasFocused = true;
|
|
105
|
+
hideDelayed.cancel();
|
|
106
|
+
});
|
|
107
|
+
}
|
|
102
108
|
/**
|
|
103
109
|
* Will restore the saved position and size of the widget on start,
|
|
104
110
|
* after that will store the position and size of the widget on change.
|
|
@@ -158,15 +164,19 @@ export class Widget {
|
|
|
158
164
|
}
|
|
159
165
|
this.runtimeState.hwnd = await invoke(SeelenCommand.GetSelfWindowId);
|
|
160
166
|
this.runtimeState.initialized = true;
|
|
167
|
+
this.destroyOnHide = options.closeOnHide ?? this.def.lazy;
|
|
161
168
|
if (options.normalizeDevicePixelRatio) {
|
|
162
169
|
await this.normalizeDevicePixelRatio();
|
|
163
170
|
}
|
|
164
171
|
if (options.autoSizeByContent) {
|
|
165
172
|
this.autoSizer = new WidgetAutoSizer(this, options.autoSizeByContent, options.autoSizeFitOnScreen ?? true);
|
|
166
173
|
}
|
|
167
|
-
|
|
174
|
+
if (options.saveAndRestoreLastRect ?? this.def.preset === WidgetPreset.Desktop) {
|
|
168
175
|
await this.persistPositionAndSize();
|
|
169
176
|
}
|
|
177
|
+
if (options.hideOnFocusLoss ?? this.def.preset === WidgetPreset.Popup) {
|
|
178
|
+
this.hideOnFocusLoss();
|
|
179
|
+
}
|
|
170
180
|
switch (this.def.preset) {
|
|
171
181
|
case WidgetPreset.None:
|
|
172
182
|
break;
|
|
@@ -211,7 +221,7 @@ export class Widget {
|
|
|
211
221
|
await this.autoSizer?.execute();
|
|
212
222
|
if (show && !(await this.window.isVisible())) {
|
|
213
223
|
await this.show();
|
|
214
|
-
await this.focus();
|
|
224
|
+
// await this.focus();
|
|
215
225
|
}
|
|
216
226
|
// this will mark the widget as ready, and send pending trigger event if exists
|
|
217
227
|
await invoke(SeelenCommand.SetCurrentWidgetStatus, { status: WidgetStatus.Ready });
|
|
@@ -275,13 +285,11 @@ export class Widget {
|
|
|
275
285
|
await getCurrentWebview().setFocus();
|
|
276
286
|
this.runtimeState.firstFocus = false;
|
|
277
287
|
}
|
|
278
|
-
await invoke(SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => {
|
|
279
|
-
console.warn(`Failed to focus widget: ${this.decoded.label}`);
|
|
280
|
-
});
|
|
288
|
+
await invoke(SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => { });
|
|
281
289
|
}
|
|
282
|
-
hide(
|
|
290
|
+
hide() {
|
|
283
291
|
this.window.hide();
|
|
284
|
-
if (
|
|
292
|
+
if (this.destroyOnHide) {
|
|
285
293
|
debouncedClose();
|
|
286
294
|
}
|
|
287
295
|
}
|
|
@@ -5,7 +5,6 @@ export declare class UIColors {
|
|
|
5
5
|
constructor(inner: IUIColors);
|
|
6
6
|
static getAsync(): Promise<UIColors>;
|
|
7
7
|
static onChange(cb: (payload: UIColors) => void): Promise<UnSubscriber>;
|
|
8
|
-
static default(): UIColors;
|
|
9
8
|
setAsCssVariables(): void;
|
|
10
9
|
}
|
|
11
10
|
export interface Color extends IColor {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui_colors.d.ts","sourceRoot":"","sources":["../../../src/src/system_state/ui_colors.ts"],"names":[],"mappings":"AAAA,OAAO,E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EAAE,MAAM,GAAG,IAAI;IAWpC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM;IAYzC,aAAa,IAAI,KAAK;CAQvB"}
|
|
@@ -12,36 +12,19 @@ export class UIColors {
|
|
|
12
12
|
static onChange(cb) {
|
|
13
13
|
return newOnEvent(cb, this, SeelenEvent.ColorsChanged);
|
|
14
14
|
}
|
|
15
|
-
static default() {
|
|
16
|
-
return new this({
|
|
17
|
-
background: "#ffffff",
|
|
18
|
-
foreground: "#000000",
|
|
19
|
-
accent_darkest: "#990000",
|
|
20
|
-
accent_darker: "#aa0000",
|
|
21
|
-
accent_dark: "#bb0000",
|
|
22
|
-
accent: "#cc0000",
|
|
23
|
-
accent_light: "#dd0000",
|
|
24
|
-
accent_lighter: "#ee0000",
|
|
25
|
-
accent_lightest: "#ff0000",
|
|
26
|
-
complement: null,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
15
|
setAsCssVariables() {
|
|
30
16
|
const oldStyles = new RuntimeStyleSheet("@deprecated/system-colors");
|
|
31
17
|
const newStyles = new RuntimeStyleSheet("@runtime/system-colors");
|
|
32
|
-
for (const [key,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
const color = Color.fromHex(value);
|
|
37
|
-
const { r, g, b } = color;
|
|
18
|
+
for (const [key, _color] of Object.entries(this.inner)) {
|
|
19
|
+
const color = new Color(_color);
|
|
20
|
+
const { r, g, b } = _color;
|
|
38
21
|
// replace rust snake case with kebab case
|
|
39
22
|
const name = key.replace("_", "-");
|
|
40
23
|
// @deprecated old names
|
|
41
|
-
oldStyles.addVariable(`--config-${name}-color`,
|
|
24
|
+
oldStyles.addVariable(`--config-${name}-color`, color.toHexString());
|
|
42
25
|
oldStyles.addVariable(`--config-${name}-color-rgb`, `${r}, ${g}, ${b}`);
|
|
43
26
|
if (name.startsWith("accent")) {
|
|
44
|
-
newStyles.addVariable(`--system-${name}-color`,
|
|
27
|
+
newStyles.addVariable(`--system-${name}-color`, color.toHexString());
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
30
|
oldStyles.applyToDocument();
|
package/esm/src/utils/mod.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/utils/mod.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;IACf,IAAI,SAAK;IACT,GAAG,SAAK;IACR,KAAK,SAAK;IACV,MAAM,SAAK;CACZ;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAG3C"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/utils/mod.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;IACf,IAAI,SAAK;IACT,GAAG,SAAK;IACR,KAAK,SAAK;IACV,MAAM,SAAK;CACZ;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAG3C;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
|
package/esm/src/utils/mod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seelen-ui/lib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.6",
|
|
4
4
|
"description": "Seelen UI Library for Widgets",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tauri-apps/api": "^2.
|
|
33
|
-
"@tauri-apps/plugin-dialog": "^2.
|
|
34
|
-
"@tauri-apps/plugin-fs": "^2.
|
|
32
|
+
"@tauri-apps/api": "^2.11.0",
|
|
33
|
+
"@tauri-apps/plugin-dialog": "^2.7.1",
|
|
34
|
+
"@tauri-apps/plugin-fs": "^2.5.1",
|
|
35
35
|
"@tauri-apps/plugin-log": "^2.8.0",
|
|
36
36
|
"@tauri-apps/plugin-process": "^2.3.1"
|
|
37
37
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppBarEdge.d.ts","sourceRoot":"","sources":["../../../src/gen/types/AppBarEdge.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IAAG,KAAK,QAAQ;IAAE,MAAM,SAAS;IAAE,QAAQ,WAAW;IAAE,OAAO,UAAU;CAAE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AppBarEdge = void 0;
|
|
5
|
+
var AppBarEdge;
|
|
6
|
+
(function (AppBarEdge) {
|
|
7
|
+
AppBarEdge["Top"] = "Top";
|
|
8
|
+
AppBarEdge["Left"] = "Left";
|
|
9
|
+
AppBarEdge["Bottom"] = "Bottom";
|
|
10
|
+
AppBarEdge["Right"] = "Right";
|
|
11
|
+
})(AppBarEdge || (exports.AppBarEdge = AppBarEdge = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type AudioWaveform = {
|
|
2
|
+
/**
|
|
3
|
+
* Mono PCM samples from the ring buffer (2048 values), each in [-1.0, 1.0].
|
|
4
|
+
*/
|
|
5
|
+
samples: Array<number>;
|
|
6
|
+
/**
|
|
7
|
+
* FFT magnitude bins (128 values) in dBFS. Typical range: [-120.0, 0.0].
|
|
8
|
+
*/
|
|
9
|
+
frequencies: Array<number>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=AudioWaveform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioWaveform.d.ts","sourceRoot":"","sources":["../../../src/gen/types/AudioWaveform.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Comparator.d.ts","sourceRoot":"","sources":["../../../src/gen/types/Comparator.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IAAG,IAAI,OAAO;IAAE,IAAI,OAAO;IAAE,IAAI,OAAO;IAAE,IAAI,OAAO;IAAE,IAAI,OAAO;IAAE,IAAI,OAAO;CAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Comparator = void 0;
|
|
5
|
+
var Comparator;
|
|
6
|
+
(function (Comparator) {
|
|
7
|
+
Comparator["eq"] = "eq";
|
|
8
|
+
Comparator["ne"] = "ne";
|
|
9
|
+
Comparator["lt"] = "lt";
|
|
10
|
+
Comparator["le"] = "le";
|
|
11
|
+
Comparator["gt"] = "gt";
|
|
12
|
+
Comparator["ge"] = "ge";
|
|
13
|
+
})(Comparator || (exports.Comparator = Comparator = {}));
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { Alignment } from "./Alignment.js";
|
|
2
2
|
import type { ContextMenuItem } from "./ContextMenuItem.js";
|
|
3
|
+
import type { TsUnknown } from "./TsUnknown.js";
|
|
3
4
|
export type ContextMenu = {
|
|
4
5
|
identifier: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional metadata that will be sent back in the callback payload when an item is clicked.
|
|
8
|
+
*/
|
|
9
|
+
meta?: TsUnknown | null;
|
|
10
|
+
/**
|
|
11
|
+
* Items of the context menu
|
|
12
|
+
*/
|
|
5
13
|
items: Array<ContextMenuItem>;
|
|
6
14
|
/**
|
|
7
15
|
* Alignment of the context menu on the X axis relative to the trigger point.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TsUnknown } from "./TsUnknown.js";
|
|
2
|
+
export type ContextMenuCallbackPayload = {
|
|
3
|
+
/**
|
|
4
|
+
* The key of the clicked item
|
|
5
|
+
*/
|
|
6
|
+
key: string;
|
|
7
|
+
/**
|
|
8
|
+
* The value of the clicked item, if any
|
|
9
|
+
*/
|
|
10
|
+
value?: TsUnknown | null;
|
|
11
|
+
/**
|
|
12
|
+
* The checked state of the clicked item, if it has a checkbox
|
|
13
|
+
*/
|
|
14
|
+
checked?: boolean | null;
|
|
15
|
+
/**
|
|
16
|
+
* The meta of the context menu
|
|
17
|
+
*/
|
|
18
|
+
meta?: TsUnknown | null;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ContextMenuCallbackPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenuCallbackPayload.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenuCallbackPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ResourceText } from "./ResourceText.js";
|
|
2
|
+
import type { TsUnknown } from "./TsUnknown.js";
|
|
2
3
|
export type ContextMenuItem = {
|
|
3
4
|
"type": "Separator";
|
|
4
5
|
} | {
|
|
5
6
|
"type": "Item";
|
|
6
7
|
key: string;
|
|
7
|
-
|
|
8
|
+
value?: TsUnknown | null;
|
|
9
|
+
icon?: string | null;
|
|
8
10
|
label: string;
|
|
9
11
|
/**
|
|
10
12
|
* event name to be emitted on click, `key` will be sent as payload
|
|
@@ -19,7 +21,7 @@ export type ContextMenuItem = {
|
|
|
19
21
|
} | {
|
|
20
22
|
"type": "Submenu";
|
|
21
23
|
identifier: string;
|
|
22
|
-
icon
|
|
24
|
+
icon?: string | null;
|
|
23
25
|
label: ResourceText;
|
|
24
26
|
items: Array<ContextMenuItem>;
|
|
25
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenuItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenuItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IACrJ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { MonitorId } from "./MonitorId.js";
|
|
|
2
2
|
import type { Rect } from "./Rect.js";
|
|
3
3
|
export type FocusedApp = {
|
|
4
4
|
hwnd: number;
|
|
5
|
+
ownerHwnd: number;
|
|
5
6
|
monitor: MonitorId;
|
|
6
7
|
title: string;
|
|
7
8
|
class: string;
|
|
@@ -10,7 +11,6 @@ export type FocusedApp = {
|
|
|
10
11
|
umid: string | null;
|
|
11
12
|
isMaximized: boolean;
|
|
12
13
|
isFullscreened: boolean;
|
|
13
|
-
isSeelenOverlay: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* this is the rect of the window, without the shadow.
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusedApp.d.ts","sourceRoot":"","sources":["../../../src/gen/types/FocusedApp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusedApp.d.ts","sourceRoot":"","sources":["../../../src/gen/types/FocusedApp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IACnN;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ToolbarItem } from "./ToolbarItem.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TwmPlugin } from "./TwmPlugin.js";
|
|
3
3
|
export type KnownPlugin = {
|
|
4
4
|
"target": "@seelen/fancy-toolbar";
|
|
5
5
|
"plugin": ToolbarItem;
|
|
6
6
|
} | {
|
|
7
7
|
"target": "@seelen/window-manager";
|
|
8
|
-
"plugin":
|
|
8
|
+
"plugin": TwmPlugin;
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=KnownPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnownPlugin.d.ts","sourceRoot":"","sources":["../../../src/gen/types/KnownPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"KnownPlugin.d.ts","sourceRoot":"","sources":["../../../src/gen/types/KnownPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG;IAAE,QAAQ,EAAE,uBAAuB,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,wBAAwB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Operand.d.ts","sourceRoot":"","sources":["../../../src/gen/types/Operand.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO;IAAG,gBAAgB,mBAAmB;IAAE,eAAe,kBAAkB;CAAE"}
|