@seelen-ui/lib 2.5.9 → 2.6.6-next.2605170835

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.
Files changed (247) hide show
  1. package/esm/gen/types/AppBarEdge.d.ts +7 -0
  2. package/esm/gen/types/AppBarEdge.d.ts.map +1 -0
  3. package/esm/gen/types/AppBarEdge.js +8 -0
  4. package/esm/gen/types/AudioWaveform.d.ts +11 -0
  5. package/esm/gen/types/AudioWaveform.d.ts.map +1 -0
  6. package/esm/gen/types/AudioWaveform.js +2 -0
  7. package/esm/gen/types/Comparator.d.ts +9 -0
  8. package/esm/gen/types/Comparator.d.ts.map +1 -0
  9. package/esm/gen/types/Comparator.js +10 -0
  10. package/esm/gen/types/ContextMenu.d.ts +8 -0
  11. package/esm/gen/types/ContextMenu.d.ts.map +1 -1
  12. package/esm/gen/types/ContextMenuCallbackPayload.d.ts +20 -0
  13. package/esm/gen/types/ContextMenuCallbackPayload.d.ts.map +1 -0
  14. package/esm/gen/types/ContextMenuItem.d.ts +4 -2
  15. package/esm/gen/types/ContextMenuItem.d.ts.map +1 -1
  16. package/esm/gen/types/FocusedApp.d.ts +1 -1
  17. package/esm/gen/types/FocusedApp.d.ts.map +1 -1
  18. package/esm/gen/types/KnownPlugin.d.ts +2 -2
  19. package/esm/gen/types/KnownPlugin.d.ts.map +1 -1
  20. package/esm/gen/types/Operand.d.ts +5 -0
  21. package/esm/gen/types/Operand.d.ts.map +1 -0
  22. package/esm/gen/types/Operand.js +6 -0
  23. package/esm/gen/types/SeelenCommandArgument.d.ts +15 -0
  24. package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
  25. package/esm/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts +6 -0
  26. package/esm/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts.map +1 -0
  27. package/esm/gen/types/SeelenCommandRegisterAppBarArgs.d.ts +7 -0
  28. package/esm/gen/types/SeelenCommandRegisterAppBarArgs.d.ts.map +1 -0
  29. package/esm/gen/types/SeelenCommandReturn.d.ts +15 -2
  30. package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
  31. package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts +5 -0
  32. package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts.map +1 -0
  33. package/esm/gen/types/SeelenCommandSystemSetAccentColorArgs.js +1 -0
  34. package/esm/gen/types/SeelenEventPayload.d.ts +10 -6
  35. package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
  36. package/esm/gen/types/SeelenWallSettings.d.ts +8 -0
  37. package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -1
  38. package/esm/gen/types/Settings.d.ts +8 -0
  39. package/esm/gen/types/Settings.d.ts.map +1 -1
  40. package/esm/gen/types/ToolbarItem.d.ts +2 -0
  41. package/esm/gen/types/ToolbarItem.d.ts.map +1 -1
  42. package/esm/gen/types/TwmCondition.d.ts +17 -0
  43. package/esm/gen/types/TwmCondition.d.ts.map +1 -0
  44. package/esm/gen/types/TwmCondition.js +1 -0
  45. package/esm/gen/types/TwmGlobalRuntimeTree.d.ts +8 -0
  46. package/esm/gen/types/TwmGlobalRuntimeTree.d.ts.map +1 -0
  47. package/esm/gen/types/TwmGlobalRuntimeTree.js +1 -0
  48. package/esm/gen/types/{WmNodeKind.d.ts → TwmNodeKind.d.ts} +2 -2
  49. package/esm/gen/types/TwmNodeKind.d.ts.map +1 -0
  50. package/esm/gen/types/TwmNodeKind.js +8 -0
  51. package/esm/gen/types/TwmNodeLifetime.d.ts +5 -0
  52. package/esm/gen/types/TwmNodeLifetime.d.ts.map +1 -0
  53. package/esm/gen/types/TwmNodeLifetime.js +6 -0
  54. package/esm/gen/types/TwmPlugin.d.ts +8 -0
  55. package/esm/gen/types/TwmPlugin.d.ts.map +1 -0
  56. package/esm/gen/types/TwmPlugin.js +1 -0
  57. package/{script/gen/types/WmNode.d.ts → esm/gen/types/TwmPluginNode.d.ts} +15 -17
  58. package/esm/gen/types/TwmPluginNode.d.ts.map +1 -0
  59. package/esm/gen/types/TwmPluginNode.js +1 -0
  60. package/esm/gen/types/TwmReservation.d.ts +9 -0
  61. package/esm/gen/types/TwmReservation.d.ts.map +1 -0
  62. package/esm/gen/types/TwmReservation.js +10 -0
  63. package/esm/gen/types/TwmRuntimeNode.d.ts +22 -0
  64. package/esm/gen/types/TwmRuntimeNode.d.ts.map +1 -0
  65. package/esm/gen/types/TwmRuntimeNode.js +1 -0
  66. package/esm/gen/types/TwmRuntimeTree.d.ts +8 -0
  67. package/esm/gen/types/TwmRuntimeTree.d.ts.map +1 -0
  68. package/esm/gen/types/TwmRuntimeTree.js +1 -0
  69. package/esm/gen/types/TwmStackPolicy.d.ts +6 -0
  70. package/esm/gen/types/TwmStackPolicy.d.ts.map +1 -0
  71. package/esm/gen/types/TwmStackPolicy.js +7 -0
  72. package/esm/gen/types/UIColors.d.ts +9 -10
  73. package/esm/gen/types/UIColors.d.ts.map +1 -1
  74. package/esm/gen/types/UIColors.js +0 -1
  75. package/esm/gen/types/UserAppWindow.d.ts +5 -0
  76. package/esm/gen/types/UserAppWindow.d.ts.map +1 -1
  77. package/esm/gen/types/UserAppWindowPreview.d.ts +1 -1
  78. package/esm/gen/types/Wallpaper.d.ts +1 -1
  79. package/esm/gen/types/WallpaperKind.d.ts +1 -0
  80. package/esm/gen/types/WallpaperKind.d.ts.map +1 -1
  81. package/esm/gen/types/WallpaperKind.js +1 -0
  82. package/esm/gen/types/Widget.d.ts +4 -0
  83. package/esm/gen/types/Widget.d.ts.map +1 -1
  84. package/esm/gen/types/WidgetStatus.d.ts +2 -1
  85. package/esm/gen/types/WidgetStatus.d.ts.map +1 -1
  86. package/esm/gen/types/WidgetStatus.js +1 -0
  87. package/esm/gen/types/mod.d.ts +277 -264
  88. package/esm/gen/types/mod.d.ts.map +1 -1
  89. package/esm/gen/types/mod.js +277 -264
  90. package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
  91. package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  92. package/esm/gen/types/serde_json/JsonValue.js +2 -0
  93. package/esm/src/handlers/commands.d.ts +6 -0
  94. package/esm/src/handlers/commands.d.ts.map +1 -1
  95. package/esm/src/handlers/commands.js +6 -0
  96. package/esm/src/handlers/events.d.ts +3 -2
  97. package/esm/src/handlers/events.d.ts.map +1 -1
  98. package/esm/src/handlers/events.js +2 -1
  99. package/esm/src/state/widget/interfaces.d.ts +40 -10
  100. package/esm/src/state/widget/interfaces.d.ts.map +1 -1
  101. package/esm/src/state/widget/mod.d.ts +3 -1
  102. package/esm/src/state/widget/mod.d.ts.map +1 -1
  103. package/esm/src/state/widget/mod.js +28 -20
  104. package/esm/src/system_state/ui_colors.d.ts +0 -1
  105. package/esm/src/system_state/ui_colors.d.ts.map +1 -1
  106. package/esm/src/system_state/ui_colors.js +5 -22
  107. package/esm/src/utils/mod.d.ts +1 -0
  108. package/esm/src/utils/mod.d.ts.map +1 -1
  109. package/esm/src/utils/mod.js +1 -0
  110. package/package.json +4 -4
  111. package/script/gen/types/AppBarEdge.d.ts +7 -0
  112. package/script/gen/types/AppBarEdge.d.ts.map +1 -0
  113. package/script/gen/types/AppBarEdge.js +11 -0
  114. package/script/gen/types/AudioWaveform.d.ts +11 -0
  115. package/script/gen/types/AudioWaveform.d.ts.map +1 -0
  116. package/script/gen/types/AudioWaveform.js +3 -0
  117. package/script/gen/types/Comparator.d.ts +9 -0
  118. package/script/gen/types/Comparator.d.ts.map +1 -0
  119. package/script/gen/types/Comparator.js +13 -0
  120. package/script/gen/types/ContextMenu.d.ts +8 -0
  121. package/script/gen/types/ContextMenu.d.ts.map +1 -1
  122. package/script/gen/types/ContextMenuCallbackPayload.d.ts +20 -0
  123. package/script/gen/types/ContextMenuCallbackPayload.d.ts.map +1 -0
  124. package/script/gen/types/ContextMenuItem.d.ts +4 -2
  125. package/script/gen/types/ContextMenuItem.d.ts.map +1 -1
  126. package/script/gen/types/FocusedApp.d.ts +1 -1
  127. package/script/gen/types/FocusedApp.d.ts.map +1 -1
  128. package/script/gen/types/KnownPlugin.d.ts +2 -2
  129. package/script/gen/types/KnownPlugin.d.ts.map +1 -1
  130. package/script/gen/types/Operand.d.ts +5 -0
  131. package/script/gen/types/Operand.d.ts.map +1 -0
  132. package/script/gen/types/Operand.js +9 -0
  133. package/script/gen/types/SeelenCommandArgument.d.ts +15 -0
  134. package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
  135. package/script/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts +6 -0
  136. package/script/gen/types/SeelenCommandMoveWindowToWorkspaceArgs.d.ts.map +1 -0
  137. package/script/gen/types/SeelenCommandRegisterAppBarArgs.d.ts +7 -0
  138. package/script/gen/types/SeelenCommandRegisterAppBarArgs.d.ts.map +1 -0
  139. package/script/gen/types/SeelenCommandReturn.d.ts +15 -2
  140. package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
  141. package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts +5 -0
  142. package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.d.ts.map +1 -0
  143. package/script/gen/types/SeelenCommandSystemSetAccentColorArgs.js +2 -0
  144. package/script/gen/types/SeelenEventPayload.d.ts +10 -6
  145. package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
  146. package/script/gen/types/SeelenWallSettings.d.ts +8 -0
  147. package/script/gen/types/SeelenWallSettings.d.ts.map +1 -1
  148. package/script/gen/types/Settings.d.ts +8 -0
  149. package/script/gen/types/Settings.d.ts.map +1 -1
  150. package/script/gen/types/ToolbarItem.d.ts +2 -0
  151. package/script/gen/types/ToolbarItem.d.ts.map +1 -1
  152. package/script/gen/types/TwmCondition.d.ts +17 -0
  153. package/script/gen/types/TwmCondition.d.ts.map +1 -0
  154. package/script/gen/types/TwmCondition.js +2 -0
  155. package/script/gen/types/TwmGlobalRuntimeTree.d.ts +8 -0
  156. package/script/gen/types/TwmGlobalRuntimeTree.d.ts.map +1 -0
  157. package/script/gen/types/TwmGlobalRuntimeTree.js +2 -0
  158. package/script/gen/types/{WmNodeKind.d.ts → TwmNodeKind.d.ts} +2 -2
  159. package/script/gen/types/TwmNodeKind.d.ts.map +1 -0
  160. package/script/gen/types/TwmNodeKind.js +11 -0
  161. package/script/gen/types/TwmNodeLifetime.d.ts +5 -0
  162. package/script/gen/types/TwmNodeLifetime.d.ts.map +1 -0
  163. package/script/gen/types/TwmNodeLifetime.js +9 -0
  164. package/script/gen/types/TwmPlugin.d.ts +8 -0
  165. package/script/gen/types/TwmPlugin.d.ts.map +1 -0
  166. package/script/gen/types/TwmPlugin.js +2 -0
  167. package/{esm/gen/types/WmNode.d.ts → script/gen/types/TwmPluginNode.d.ts} +15 -17
  168. package/script/gen/types/TwmPluginNode.d.ts.map +1 -0
  169. package/script/gen/types/TwmPluginNode.js +2 -0
  170. package/script/gen/types/TwmReservation.d.ts +9 -0
  171. package/script/gen/types/TwmReservation.d.ts.map +1 -0
  172. package/script/gen/types/TwmReservation.js +13 -0
  173. package/script/gen/types/TwmRuntimeNode.d.ts +22 -0
  174. package/script/gen/types/TwmRuntimeNode.d.ts.map +1 -0
  175. package/script/gen/types/TwmRuntimeNode.js +2 -0
  176. package/script/gen/types/TwmRuntimeTree.d.ts +8 -0
  177. package/script/gen/types/TwmRuntimeTree.d.ts.map +1 -0
  178. package/script/gen/types/TwmRuntimeTree.js +2 -0
  179. package/script/gen/types/TwmStackPolicy.d.ts +6 -0
  180. package/script/gen/types/TwmStackPolicy.d.ts.map +1 -0
  181. package/script/gen/types/TwmStackPolicy.js +10 -0
  182. package/script/gen/types/UIColors.d.ts +9 -10
  183. package/script/gen/types/UIColors.d.ts.map +1 -1
  184. package/script/gen/types/UIColors.js +0 -1
  185. package/script/gen/types/UserAppWindow.d.ts +5 -0
  186. package/script/gen/types/UserAppWindow.d.ts.map +1 -1
  187. package/script/gen/types/UserAppWindowPreview.d.ts +1 -1
  188. package/script/gen/types/Wallpaper.d.ts +1 -1
  189. package/script/gen/types/WallpaperKind.d.ts +1 -0
  190. package/script/gen/types/WallpaperKind.d.ts.map +1 -1
  191. package/script/gen/types/WallpaperKind.js +1 -0
  192. package/script/gen/types/Widget.d.ts +4 -0
  193. package/script/gen/types/Widget.d.ts.map +1 -1
  194. package/script/gen/types/WidgetStatus.d.ts +2 -1
  195. package/script/gen/types/WidgetStatus.d.ts.map +1 -1
  196. package/script/gen/types/WidgetStatus.js +1 -0
  197. package/script/gen/types/mod.d.ts +277 -264
  198. package/script/gen/types/mod.d.ts.map +1 -1
  199. package/script/gen/types/mod.js +277 -264
  200. package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
  201. package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  202. package/script/gen/types/serde_json/JsonValue.js +3 -0
  203. package/script/src/handlers/commands.d.ts +6 -0
  204. package/script/src/handlers/commands.d.ts.map +1 -1
  205. package/script/src/handlers/commands.js +6 -0
  206. package/script/src/handlers/events.d.ts +3 -2
  207. package/script/src/handlers/events.d.ts.map +1 -1
  208. package/script/src/handlers/events.js +2 -1
  209. package/script/src/state/widget/interfaces.d.ts +40 -10
  210. package/script/src/state/widget/interfaces.d.ts.map +1 -1
  211. package/script/src/state/widget/mod.d.ts +3 -1
  212. package/script/src/state/widget/mod.d.ts.map +1 -1
  213. package/script/src/state/widget/mod.js +28 -20
  214. package/script/src/system_state/ui_colors.d.ts +0 -1
  215. package/script/src/system_state/ui_colors.d.ts.map +1 -1
  216. package/script/src/system_state/ui_colors.js +5 -22
  217. package/script/src/utils/mod.d.ts +1 -0
  218. package/script/src/utils/mod.d.ts.map +1 -1
  219. package/script/src/utils/mod.js +3 -1
  220. package/styles/colors.css +155 -155
  221. package/styles/shadows.css +7 -0
  222. package/esm/gen/types/WindowManagerLayout.d.ts +0 -6
  223. package/esm/gen/types/WindowManagerLayout.d.ts.map +0 -1
  224. package/esm/gen/types/WmNode.d.ts.map +0 -1
  225. package/esm/gen/types/WmNodeKind.d.ts.map +0 -1
  226. package/esm/gen/types/WmNodeKind.js +0 -8
  227. package/esm/gen/types/WmNodeLifetime.d.ts +0 -5
  228. package/esm/gen/types/WmNodeLifetime.d.ts.map +0 -1
  229. package/esm/gen/types/WmNodeLifetime.js +0 -6
  230. package/esm/gen/types/WmRenderTree.d.ts +0 -6
  231. package/esm/gen/types/WmRenderTree.d.ts.map +0 -1
  232. package/script/gen/types/WindowManagerLayout.d.ts +0 -6
  233. package/script/gen/types/WindowManagerLayout.d.ts.map +0 -1
  234. package/script/gen/types/WmNode.d.ts.map +0 -1
  235. package/script/gen/types/WmNodeKind.d.ts.map +0 -1
  236. package/script/gen/types/WmNodeKind.js +0 -11
  237. package/script/gen/types/WmNodeLifetime.d.ts +0 -5
  238. package/script/gen/types/WmNodeLifetime.d.ts.map +0 -1
  239. package/script/gen/types/WmNodeLifetime.js +0 -9
  240. package/script/gen/types/WmRenderTree.d.ts +0 -6
  241. package/script/gen/types/WmRenderTree.d.ts.map +0 -1
  242. /package/esm/gen/types/{WindowManagerLayout.js → ContextMenuCallbackPayload.js} +0 -0
  243. /package/esm/gen/types/{WmNode.js → SeelenCommandMoveWindowToWorkspaceArgs.js} +0 -0
  244. /package/esm/gen/types/{WmRenderTree.js → SeelenCommandRegisterAppBarArgs.js} +0 -0
  245. /package/script/gen/types/{WindowManagerLayout.js → ContextMenuCallbackPayload.js} +0 -0
  246. /package/script/gen/types/{WmNode.js → SeelenCommandMoveWindowToWorkspaceArgs.js} +0 -0
  247. /package/script/gen/types/{WmRenderTree.js → SeelenCommandRegisterAppBarArgs.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/commands.ts"],"names":[],"mappings":"AACA,oBAAY,aAAa;IACvB,uBAAuB,yBAAyB;IAChD,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,gBAAgB,sBAAsB;IACtC,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IACh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A0B,kCAAkC;IAC5D,6BAA6B,qCAAqC;IAClE,yBAAyB,gCAAgC;IACzD,sBAAsB,6BAA6B;IACnD,qBAAqB,4BAA4B;IACjD,iBAAiB,yBAAyB;IAC1C,kBAAkB,0BAA0B;IAC5C,eAAe,uBAAuB;IACtC,aAAa,oBAAoB;IACjC,gBAAgB,uBAAuB;IACvC,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,eAAe,sBAAsB;IACrC,gBAAgB,uBAAuB;IACvC,oBAAoB,2BAA2B;IAC/C,qBAAqB,4BAA4B;IACjD,mBAAmB,0BAA0B;IAC7C,cAAc,oBAAoB;IAClC,QAAQ,cAAc;IACtB,cAAc,qBAAqB;IACnC,cAAc,qBAAqB;IACnC,oBAAoB,2BAA2B;IAC/C,oBAAoB,2BAA2B;CAChD"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/commands.ts"],"names":[],"mappings":"AACA,oBAAY,aAAa;IACvB,uBAAuB,yBAAyB;IAChD,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,gBAAgB,sBAAsB;IACtC,eAAe,qBAAqB;IACpC,qBAAqB,6BAA6B;IAClD,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAChC,sBAAsB,6BAA6B;IACnD,cAAc,qBAAqB;IACnC,cAAc,qBAAqB;IACnC,QAAQ,cAAc;IACtB,oBAAoB,4BAA4B;IAChD,GAAG,QAAQ;IACX,YAAY,kBAAkB;IAC9B,SAAS,gBAAgB;IACzB,aAAa,oBAAoB;IACjC,eAAe,sBAAsB;IACrC,aAAa,oBAAoB;IACjC,gBAAgB,uBAAuB;IACvC,WAAW,kBAAkB;IAC7B,WAAW,kBAAkB;IAC7B,aAAa,oBAAoB;IACjC,OAAO,aAAa;IACpB,WAAW,iBAAiB;IAC5B,0BAA0B,mCAAmC;IAC7D,eAAe,sBAAsB;IACrC,0BAA0B,kCAAkC;IAC5D,8BAA8B,gCAAgC;IAC9D,iB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,4BAA4B;IACjD,mBAAmB,0BAA0B;IAC7C,cAAc,oBAAoB;IAClC,QAAQ,cAAc;IACtB,cAAc,qBAAqB;IACnC,cAAc,qBAAqB;IACnC,oBAAoB,2BAA2B;IAC/C,oBAAoB,2BAA2B;CAChD"}
@@ -9,9 +9,11 @@ var SeelenCommand;
9
9
  SeelenCommand["CreateWorkspace"] = "create_workspace";
10
10
  SeelenCommand["DestroyWorkspace"] = "destroy_workspace";
11
11
  SeelenCommand["RenameWorkspace"] = "rename_workspace";
12
+ SeelenCommand["MoveWindowToWorkspace"] = "move_window_to_workspace";
12
13
  SeelenCommand["WallpaperNext"] = "wallpaper_next";
13
14
  SeelenCommand["WallpaperPrev"] = "wallpaper_prev";
14
15
  SeelenCommand["WallpaperSaveThumbnail"] = "wallpaper_save_thumbnail";
16
+ SeelenCommand["SetAsWallpaper"] = "set_as_wallpaper";
15
17
  SeelenCommand["LogFromWebview"] = "log_from_webview";
16
18
  SeelenCommand["OpenFile"] = "open_file";
17
19
  SeelenCommand["SelectFileOnExplorer"] = "select_file_on_explorer";
@@ -33,8 +35,11 @@ var SeelenCommand;
33
35
  SeelenCommand["SystemGetForegroundWindowColor"] = "get_foreground_window_color";
34
36
  SeelenCommand["SystemGetMonitors"] = "get_connected_monitors";
35
37
  SeelenCommand["SystemGetColors"] = "get_system_colors";
38
+ SeelenCommand["SystemSetAccentColor"] = "set_system_accent_color";
36
39
  SeelenCommand["SystemGetLanguages"] = "get_system_languages";
37
40
  SeelenCommand["SystemSetKeyboardLayout"] = "set_system_keyboard_layout";
41
+ SeelenCommand["RegisterAppBar"] = "register_app_bar";
42
+ SeelenCommand["UnregisterAppBar"] = "unregister_app_bar";
38
43
  SeelenCommand["StateGetDefaultSettings"] = "state_get_default_settings";
39
44
  SeelenCommand["StateGetDefaultMonitorSettings"] = "state_get_default_monitor_settings";
40
45
  SeelenCommand["StateGetDefaultWallpaperSettings"] = "state_get_default_wallpaper_settings";
@@ -80,6 +85,7 @@ var SeelenCommand;
80
85
  SeelenCommand["SetVolumeLevel"] = "set_volume_level";
81
86
  SeelenCommand["MediaToggleMute"] = "media_toggle_mute";
82
87
  SeelenCommand["MediaSetDefaultDevice"] = "media_set_default_device";
88
+ SeelenCommand["GetMediaWaveform"] = "get_media_waveform";
83
89
  SeelenCommand["GetAllMonitorsBrightness"] = "get_all_monitors_brightness";
84
90
  SeelenCommand["SetMonitorBrightness"] = "set_monitor_brightness";
85
91
  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,sB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] = "media-inputs";
21
21
  SeelenEvent["MediaOutputs"] = "media-outputs";
22
+ SeelenEvent["MediaWaveform"] = "media::waveform";
22
23
  SeelenEvent["NetworkDefaultLocalIp"] = "network-default-local-ip";
23
24
  SeelenEvent["NetworkAdapters"] = "network-adapters";
24
25
  SeelenEvent["NetworkInternetConnection"] = "network-internet-connection";
@@ -33,7 +34,6 @@ var SeelenEvent;
33
34
  SeelenEvent["WMTreeChanged"] = "wm::tree-changed";
34
35
  SeelenEvent["PopupContentChanged"] = "popup-content-changed";
35
36
  SeelenEvent["StateSettingsChanged"] = "settings-changed";
36
- SeelenEvent["StateSettingsByAppChanged"] = "settings-by-app";
37
37
  SeelenEvent["StateThemesChanged"] = "themes";
38
38
  SeelenEvent["StateIconPacksChanged"] = "icon-packs";
39
39
  SeelenEvent["StatePluginsChanged"] = "plugins-changed";
@@ -57,4 +57,5 @@ var SeelenEvent;
57
57
  SeelenEvent["FocusAssistChanged"] = "focus-assist::changed";
58
58
  SeelenEvent["NotificationsModeChanged"] = "notifications::mode-changed";
59
59
  SeelenEvent["Notifications"] = "notifications";
60
+ SeelenEvent["PluginEnabled"] = "plugin::enabled";
60
61
  })(SeelenEvent || (exports.SeelenEvent = SeelenEvent = {}));
@@ -12,34 +12,64 @@ export interface WidgetInformation {
12
12
  }
13
13
  export interface InitWidgetOptions {
14
14
  /**
15
- * Will auto size the widget to the content size of the element
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
- * If autoSizeByContent is set, and this is true, will auto size the widget and
24
- * adjusts the position to fit on screen
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
- * Will normalize the device pixel ratio to 1:1
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
- * Will save the position and size of the widget on change.
35
- * This is intedeed to be used when the size and position of the widget is
36
- * allowed to be changed by the user, Normally used on desktop widgets.
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
- * Will disable the css animations on the widget when performace mode is set to Extreme
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,GA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AAC;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(closeAfterInactivity?: boolean): void;
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":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,wBAAwB,EAC7B,KAAK,MAAM,IAAI,OAAO,EAEtB,KAAK,QAAQ,EAIb,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CA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yBH,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC,uCAAuC;IAC1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B,IAAI,IAAI,IAAI;CAMpB;AAWD,eAAO,MAAM,sBAAsB,EAAE,QAAyC,CAAC;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"}
@@ -45,6 +45,7 @@ const theming_js_1 = require("../theme/theming.js");
45
45
  const performance_js_1 = require("./performance.js");
46
46
  const webview_1 = require("@tauri-apps/api/webview");
47
47
  const window_1 = require("@tauri-apps/api/window");
48
+ const mod_js_4 = require("../../handlers/mod.js");
48
49
  /**
49
50
  * Represents the widget instance running in the current webview
50
51
  */
@@ -75,6 +76,7 @@ class Widget {
75
76
  /** current window where the widget is running */
76
77
  window;
77
78
  autoSizer;
79
+ destroyOnHide = false;
78
80
  runtimeState = {
79
81
  hwnd: 0,
80
82
  initialized: false,
@@ -114,20 +116,7 @@ class Widget {
114
116
  applyOverlayPreset() { }
115
117
  /** Will apply the recommended settings for a popup widget */
116
118
  applyPopupPreset() {
117
- const hideWidget = (0, async_js_1.debounce)(() => {
118
- this.hide(true);
119
- }, 100);
120
- this.window.onFocusChanged(({ payload: focused }) => {
121
- if (focused) {
122
- hideWidget.cancel();
123
- }
124
- else {
125
- hideWidget();
126
- }
127
- });
128
119
  this.onTrigger(async ({ desiredPosition, alignX, alignY }) => {
129
- // avoid flickering when clicking a button that triggers the widget
130
- hideWidget.cancel();
131
120
  if (desiredPosition) {
132
121
  await this.adjustAndSetPosition(desiredPosition.x, desiredPosition.y, alignX, alignY);
133
122
  }
@@ -135,6 +124,23 @@ class Widget {
135
124
  await this.focus();
136
125
  });
137
126
  }
127
+ hideOnFocusLoss() {
128
+ let wasFocused = false;
129
+ const hideDelayed = (0, async_js_1.debounce)(() => {
130
+ this.hide();
131
+ }, 100);
132
+ (0, mod_js_4.subscribe)(mod_js_2.SeelenEvent.GlobalFocusChanged, ({ payload: focused }) => {
133
+ if (focused.hwnd !== this.runtimeState.hwnd && focused.ownerHwnd !== this.runtimeState.hwnd) {
134
+ if (wasFocused) {
135
+ hideDelayed();
136
+ }
137
+ wasFocused = false;
138
+ return;
139
+ }
140
+ wasFocused = true;
141
+ hideDelayed.cancel();
142
+ });
143
+ }
138
144
  /**
139
145
  * Will restore the saved position and size of the widget on start,
140
146
  * after that will store the position and size of the widget on change.
@@ -194,15 +200,19 @@ class Widget {
194
200
  }
195
201
  this.runtimeState.hwnd = await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.GetSelfWindowId);
196
202
  this.runtimeState.initialized = true;
203
+ this.destroyOnHide = options.closeOnHide ?? this.def.lazy;
197
204
  if (options.normalizeDevicePixelRatio) {
198
205
  await this.normalizeDevicePixelRatio();
199
206
  }
200
207
  if (options.autoSizeByContent) {
201
208
  this.autoSizer = new sizing_js_1.WidgetAutoSizer(this, options.autoSizeByContent, options.autoSizeFitOnScreen ?? true);
202
209
  }
203
- else if (options.saveAndRestoreLastRect ?? this.def.preset === mod_js_1.WidgetPreset.Desktop) {
210
+ if (options.saveAndRestoreLastRect ?? this.def.preset === mod_js_1.WidgetPreset.Desktop) {
204
211
  await this.persistPositionAndSize();
205
212
  }
213
+ if (options.hideOnFocusLoss ?? this.def.preset === mod_js_1.WidgetPreset.Popup) {
214
+ this.hideOnFocusLoss();
215
+ }
206
216
  switch (this.def.preset) {
207
217
  case mod_js_1.WidgetPreset.None:
208
218
  break;
@@ -247,7 +257,7 @@ class Widget {
247
257
  await this.autoSizer?.execute();
248
258
  if (show && !(await this.window.isVisible())) {
249
259
  await this.show();
250
- await this.focus();
260
+ // await this.focus();
251
261
  }
252
262
  // this will mark the widget as ready, and send pending trigger event if exists
253
263
  await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.SetCurrentWidgetStatus, { status: mod_js_1.WidgetStatus.Ready });
@@ -311,13 +321,11 @@ class Widget {
311
321
  await (0, webview_1.getCurrentWebview)().setFocus();
312
322
  this.runtimeState.firstFocus = false;
313
323
  }
314
- await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => {
315
- console.warn(`Failed to focus widget: ${this.decoded.label}`);
316
- });
324
+ await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => { });
317
325
  }
318
- hide(closeAfterInactivity) {
326
+ hide() {
319
327
  this.window.hide();
320
- if (closeAfterInactivity) {
328
+ if (this.destroyOnHide) {
321
329
  debouncedClose();
322
330
  }
323
331
  }
@@ -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,EAA8B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGnF,OAAO,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAErF,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,O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AI,KAAK;IAStB,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK;IAyBlC,WAAW,IAAI,MAAM;IAUrB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,oBAAoB;IAkB5B;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAWpC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM;IAYzC,aAAa,IAAI,KAAK;CAQvB"}
@@ -15,36 +15,19 @@ class UIColors {
15
15
  static onChange(cb) {
16
16
  return (0, State_js_1.newOnEvent)(cb, this, mod_js_1.SeelenEvent.ColorsChanged);
17
17
  }
18
- static default() {
19
- return new this({
20
- background: "#ffffff",
21
- foreground: "#000000",
22
- accent_darkest: "#990000",
23
- accent_darker: "#aa0000",
24
- accent_dark: "#bb0000",
25
- accent: "#cc0000",
26
- accent_light: "#dd0000",
27
- accent_lighter: "#ee0000",
28
- accent_lightest: "#ff0000",
29
- complement: null,
30
- });
31
- }
32
18
  setAsCssVariables() {
33
19
  const oldStyles = new DOM_js_1.RuntimeStyleSheet("@deprecated/system-colors");
34
20
  const newStyles = new DOM_js_1.RuntimeStyleSheet("@runtime/system-colors");
35
- for (const [key, value] of Object.entries(this.inner)) {
36
- if (typeof value !== "string") {
37
- continue;
38
- }
39
- const color = Color.fromHex(value);
40
- const { r, g, b } = color;
21
+ for (const [key, _color] of Object.entries(this.inner)) {
22
+ const color = new Color(_color);
23
+ const { r, g, b } = _color;
41
24
  // replace rust snake case with kebab case
42
25
  const name = key.replace("_", "-");
43
26
  // @deprecated old names
44
- oldStyles.addVariable(`--config-${name}-color`, value.slice(0, 7));
27
+ oldStyles.addVariable(`--config-${name}-color`, color.toHexString());
45
28
  oldStyles.addVariable(`--config-${name}-color-rgb`, `${r}, ${g}, ${b}`);
46
29
  if (name.startsWith("accent")) {
47
- newStyles.addVariable(`--system-${name}-color`, value.slice(0, 7));
30
+ newStyles.addVariable(`--system-${name}-color`, color.toHexString());
48
31
  }
49
32
  }
50
33
  oldStyles.applyToDocument();
@@ -5,4 +5,5 @@ export declare class Rect {
5
5
  bottom: number;
6
6
  }
7
7
  export declare function isSeelenUIRuntime(): boolean;
8
+ export { RuntimeStyleSheet } from "./DOM.js";
8
9
  //# sourceMappingURL=mod.d.ts.map
@@ -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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Rect = void 0;
3
+ exports.RuntimeStyleSheet = exports.Rect = void 0;
4
4
  exports.isSeelenUIRuntime = isSeelenUIRuntime;
5
5
  class Rect {
6
6
  left = 0;
@@ -13,3 +13,5 @@ function isSeelenUIRuntime() {
13
13
  // deno-lint-ignore no-explicit-any
14
14
  return !!globalThis.window.__SLU_WIDGET;
15
15
  }
16
+ var DOM_js_1 = require("./DOM.js");
17
+ Object.defineProperty(exports, "RuntimeStyleSheet", { enumerable: true, get: function () { return DOM_js_1.RuntimeStyleSheet; } });