@seelen-ui/lib 2.1.3 → 2.1.8
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/handlers/commands.d.ts +2 -4
- package/esm/handlers/commands.d.ts.map +1 -1
- package/esm/handlers/commands.js +2 -4
- package/esm/handlers/events.d.ts +0 -2
- package/esm/handlers/events.d.ts.map +1 -1
- package/esm/handlers/events.js +0 -2
- package/esm/state/icon_pack.d.ts +88 -16
- package/esm/state/icon_pack.d.ts.map +1 -1
- package/esm/state/icon_pack.js +148 -36
- package/esm/state/widget.d.ts +3 -0
- package/esm/state/widget.d.ts.map +1 -1
- package/esm/state/widget.js +1 -1
- package/esm/system_state/mod.d.ts +0 -1
- package/esm/system_state/mod.d.ts.map +1 -1
- package/esm/system_state/mod.js +0 -1
- package/esm/types/IconPack.d.ts +9 -0
- package/esm/types/IconPack.d.ts.map +1 -1
- package/esm/types/PinnedWegItemData.d.ts +10 -5
- package/esm/types/PinnedWegItemData.d.ts.map +1 -1
- package/esm/types/WegItemSubtype.d.ts +2 -0
- package/esm/types/WegItemSubtype.d.ts.map +1 -0
- package/esm/types/mod.d.ts +77 -78
- package/esm/types/mod.d.ts.map +1 -1
- package/esm/types/mod.js +77 -78
- package/package.json +1 -1
- package/script/handlers/commands.d.ts +2 -4
- package/script/handlers/commands.d.ts.map +1 -1
- package/script/handlers/commands.js +2 -4
- package/script/handlers/events.d.ts +0 -2
- package/script/handlers/events.d.ts.map +1 -1
- package/script/handlers/events.js +0 -2
- package/script/state/icon_pack.d.ts +88 -16
- package/script/state/icon_pack.d.ts.map +1 -1
- package/script/state/icon_pack.js +148 -36
- package/script/state/widget.d.ts +3 -0
- package/script/state/widget.d.ts.map +1 -1
- package/script/state/widget.js +1 -1
- package/script/system_state/mod.d.ts +0 -1
- package/script/system_state/mod.d.ts.map +1 -1
- package/script/system_state/mod.js +0 -1
- package/script/types/IconPack.d.ts +9 -0
- package/script/types/IconPack.d.ts.map +1 -1
- package/script/types/PinnedWegItemData.d.ts +10 -5
- package/script/types/PinnedWegItemData.d.ts.map +1 -1
- package/script/types/WegItemSubtype.d.ts +2 -0
- package/script/types/WegItemSubtype.d.ts.map +1 -0
- package/script/types/mod.d.ts +77 -78
- package/script/types/mod.d.ts.map +1 -1
- package/script/types/mod.js +77 -78
- package/esm/system_state/application_history.d.ts +0 -32
- package/esm/system_state/application_history.d.ts.map +0 -1
- package/esm/system_state/application_history.js +0 -15
- package/esm/types/ApplicationHistoryEntry.d.ts +0 -8
- package/esm/types/ApplicationHistoryEntry.d.ts.map +0 -1
- package/esm/types/ApplicationHistoryEntry.js +0 -1
- package/esm/types/FocusedApp.d.ts +0 -8
- package/esm/types/FocusedApp.d.ts.map +0 -1
- package/script/system_state/application_history.d.ts +0 -32
- package/script/system_state/application_history.d.ts.map +0 -1
- package/script/system_state/application_history.js +0 -19
- package/script/types/ApplicationHistoryEntry.d.ts +0 -8
- package/script/types/ApplicationHistoryEntry.d.ts.map +0 -1
- package/script/types/ApplicationHistoryEntry.js +0 -2
- package/script/types/FocusedApp.d.ts +0 -8
- package/script/types/FocusedApp.d.ts.map +0 -1
- /package/esm/types/{FocusedApp.js → WegItemSubtype.js} +0 -0
- /package/script/types/{FocusedApp.js → WegItemSubtype.js} +0 -0
package/esm/types/mod.d.ts
CHANGED
|
@@ -1,99 +1,98 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './Profile.js';
|
|
1
|
+
export * from './WegItemSubtype.js';
|
|
2
|
+
export * from './WorkspaceIdentifierType.js';
|
|
3
|
+
export * from './VirtualDesktopStrategy.js';
|
|
4
|
+
export * from './User.js';
|
|
5
|
+
export * from './SeelenLauncherMonitor.js';
|
|
7
6
|
export * from './SeelenLauncherSettings.js';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
7
|
+
export * from './AhkVar.js';
|
|
8
|
+
export * from './PluginId.js';
|
|
9
|
+
export * from './WindowManagerSettingsByMonitor.js';
|
|
10
|
+
export * from './AppIdentifier.js';
|
|
11
11
|
export * from './MonitorConfiguration.js';
|
|
12
|
-
export * from './WmLeafNode.js';
|
|
13
|
-
export * from './SeelenWallWallpaper.js';
|
|
14
|
-
export * from './WegTemporalItemsVisibility.js';
|
|
15
|
-
export * from './FancyToolbarSettings.js';
|
|
16
12
|
export * from './WorkspaceConfiguration.js';
|
|
17
|
-
export * from './
|
|
13
|
+
export * from './ResourceMetadata.js';
|
|
14
|
+
export * from './SeelenWegSide.js';
|
|
18
15
|
export * from './Plugin.js';
|
|
19
|
-
export * from './WindowManagerSettingsByMonitor.js';
|
|
20
|
-
export * from './ToolbarItem.js';
|
|
21
|
-
export * from './AppExtraFlag.js';
|
|
22
16
|
export * from './WmStackNode.js';
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
17
|
+
export * from './PowerToolbarItem.js';
|
|
18
|
+
export * from './WmLeafNode.js';
|
|
19
|
+
export * from './WmNode.js';
|
|
26
20
|
export * from './NotificationsToolbarItem.js';
|
|
21
|
+
export * from './WsdItemInputNumber.js';
|
|
27
22
|
export * from './WsdItemSelectSubtype.js';
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './MatchingStrategy.js';
|
|
35
|
-
export * from './StyleValue.js';
|
|
36
|
-
export * from './WsdItemSelect.js';
|
|
37
|
-
export * from './WorkspaceIdentifierType.js';
|
|
38
|
-
export * from './WsdItemSelectOption.js';
|
|
39
|
-
export * from './HideMode.js';
|
|
40
|
-
export * from './WegItems.js';
|
|
41
|
-
export * from './ThemeId.js';
|
|
42
|
-
export * from './ResourceText.js';
|
|
43
|
-
export * from './GenericToolbarItem.js';
|
|
23
|
+
export * from './SeelenWallSettings.js';
|
|
24
|
+
export * from './WsdGroupEntry.js';
|
|
25
|
+
export * from './SeelenWegMode.js';
|
|
26
|
+
export * from './Placeholder.js';
|
|
27
|
+
export * from './DeviceToolbarItem.js';
|
|
28
|
+
export * from './ToolbarItem.js';
|
|
44
29
|
export * from './Resource.js';
|
|
45
|
-
export * from './
|
|
30
|
+
export * from './Rect.js';
|
|
31
|
+
export * from './WegAppGroupItem.js';
|
|
32
|
+
export * from './NoFallbackBehavior.js';
|
|
33
|
+
export * from './NetworkToolbarItem.js';
|
|
34
|
+
export * from './AppConfig.js';
|
|
35
|
+
export * from './PinnedWegItemData.js';
|
|
46
36
|
export * from './WmHorizontalNode.js';
|
|
47
|
-
export * from './
|
|
48
|
-
export * from './
|
|
37
|
+
export * from './IconPackId.js';
|
|
38
|
+
export * from './WorkspaceIdentifier.js';
|
|
49
39
|
export * from './WmFallbackNode.js';
|
|
50
|
-
export * from './SeelenLauncherMonitor.js';
|
|
51
40
|
export * from './MediaToolbarItem.js';
|
|
52
|
-
export * from './User.js';
|
|
53
|
-
export * from './WegItem.js';
|
|
54
|
-
export * from './DateToolbarItem.js';
|
|
55
|
-
export * from './TextToolbarItem.js';
|
|
56
|
-
export * from './NetworkToolbarItem.js';
|
|
57
|
-
export * from './WmVerticalNode.js';
|
|
58
|
-
export * from './SeelenWegSettingsByMonitor.js';
|
|
59
|
-
export * from './VirtualDesktopStrategy.js';
|
|
60
|
-
export * from './WsdItem.js';
|
|
61
|
-
export * from './UpdaterSettings.js';
|
|
62
|
-
export * from './PinnedWegItemData.js';
|
|
63
|
-
export * from './AhkVarList.js';
|
|
64
|
-
export * from './FocusedApp.js';
|
|
65
|
-
export * from './WindowManagerLayout.js';
|
|
66
41
|
export * from './ProfileSettings.js';
|
|
42
|
+
export * from './WorkspaceToolbarItemMode.js';
|
|
43
|
+
export * from './NodeSubtype.js';
|
|
67
44
|
export * from './ResourceKind.js';
|
|
45
|
+
export * from './WidgetId.js';
|
|
46
|
+
export * from './UserToolbarItem.js';
|
|
47
|
+
export * from './FolderType.js';
|
|
48
|
+
export * from './MatchingStrategy.js';
|
|
49
|
+
export * from './Profile.js';
|
|
50
|
+
export * from './File.js';
|
|
51
|
+
export * from './HideMode.js';
|
|
52
|
+
export * from './ResourceText.js';
|
|
53
|
+
export * from './StyleValue.js';
|
|
54
|
+
export * from './WsdItemSelectOption.js';
|
|
55
|
+
export * from './SettingsByWidget.js';
|
|
56
|
+
export * from './TextToolbarItem.js';
|
|
68
57
|
export * from './FolderChangedArgs.js';
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
72
|
-
export * from './
|
|
58
|
+
export * from './SeelenLauncherRunner.js';
|
|
59
|
+
export * from './Settings.js';
|
|
60
|
+
export * from './SeelenWallSettingsByMonitor.js';
|
|
61
|
+
export * from './AppExtraFlag.js';
|
|
62
|
+
export * from './WindowManagerLayout.js';
|
|
63
|
+
export * from './WsdItemSwitch.js';
|
|
64
|
+
export * from './AhkVarList.js';
|
|
65
|
+
export * from './WegPinnedItemsVisibility.js';
|
|
66
|
+
export * from './WsdItemInputText.js';
|
|
67
|
+
export * from './TrayToolbarItem.js';
|
|
68
|
+
export * from './ResourceStatus.js';
|
|
69
|
+
export * from './SeelenWegSettings.js';
|
|
70
|
+
export * from './Border.js';
|
|
71
|
+
export * from './FloatingWindowSettings.js';
|
|
72
|
+
export * from './WindowManagerSettings.js';
|
|
73
73
|
export * from './WsdGroup.js';
|
|
74
|
+
export * from './UpdaterSettings.js';
|
|
74
75
|
export * from './ResourceId.js';
|
|
75
|
-
export * from './
|
|
76
|
-
export * from './
|
|
77
|
-
export * from './WegAppGroupItem.js';
|
|
78
|
-
export * from './SeelenWegSettings.js';
|
|
76
|
+
export * from './WegTemporalItemsVisibility.js';
|
|
77
|
+
export * from './DateToolbarItem.js';
|
|
79
78
|
export * from './FancyToolbarSettingsByMonitor.js';
|
|
79
|
+
export * from './WsdItemSelect.js';
|
|
80
|
+
export * from './SeelenWegSettingsByMonitor.js';
|
|
81
|
+
export * from './AppIdentifierType.js';
|
|
80
82
|
export * from './ToolbarItem2.js';
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
85
|
-
export * from './
|
|
86
|
-
export * from './IconPackId.js';
|
|
87
|
-
export * from './FloatingWindowSettings.js';
|
|
83
|
+
export * from './GenericToolbarItem.js';
|
|
84
|
+
export * from './WegItems.js';
|
|
85
|
+
export * from './WorkspaceToolbarItem.js';
|
|
86
|
+
export * from './ThemeId.js';
|
|
87
|
+
export * from './Theme.js';
|
|
88
88
|
export * from './UpdateChannel.js';
|
|
89
|
-
export * from './
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './ApplicationHistoryEntry.js';
|
|
93
|
-
export * from './FolderType.js';
|
|
94
|
-
export * from './WorkspaceToolbarItemMode.js';
|
|
89
|
+
export * from './WsdItem.js';
|
|
90
|
+
export * from './FancyToolbarSettings.js';
|
|
91
|
+
export * from './WidgetSettingsDeclarationList.js';
|
|
95
92
|
export * from './Widget.js';
|
|
96
|
-
export * from './
|
|
97
|
-
export * from './
|
|
98
|
-
export * from './
|
|
93
|
+
export * from './IconPack.js';
|
|
94
|
+
export * from './SettingsToolbarItem.js';
|
|
95
|
+
export * from './SeelenWallWallpaper.js';
|
|
96
|
+
export * from './WmVerticalNode.js';
|
|
97
|
+
export * from './WegItem.js';
|
|
99
98
|
//# sourceMappingURL=mod.d.ts.map
|
package/esm/types/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/types/mod.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/types/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC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AAc,cAAc,CAAC"}
|
package/esm/types/mod.js
CHANGED
|
@@ -1,98 +1,97 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './Profile.js';
|
|
1
|
+
export * from './WegItemSubtype.js';
|
|
2
|
+
export * from './WorkspaceIdentifierType.js';
|
|
3
|
+
export * from './VirtualDesktopStrategy.js';
|
|
4
|
+
export * from './User.js';
|
|
5
|
+
export * from './SeelenLauncherMonitor.js';
|
|
7
6
|
export * from './SeelenLauncherSettings.js';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
7
|
+
export * from './AhkVar.js';
|
|
8
|
+
export * from './PluginId.js';
|
|
9
|
+
export * from './WindowManagerSettingsByMonitor.js';
|
|
10
|
+
export * from './AppIdentifier.js';
|
|
11
11
|
export * from './MonitorConfiguration.js';
|
|
12
|
-
export * from './WmLeafNode.js';
|
|
13
|
-
export * from './SeelenWallWallpaper.js';
|
|
14
|
-
export * from './WegTemporalItemsVisibility.js';
|
|
15
|
-
export * from './FancyToolbarSettings.js';
|
|
16
12
|
export * from './WorkspaceConfiguration.js';
|
|
17
|
-
export * from './
|
|
13
|
+
export * from './ResourceMetadata.js';
|
|
14
|
+
export * from './SeelenWegSide.js';
|
|
18
15
|
export * from './Plugin.js';
|
|
19
|
-
export * from './WindowManagerSettingsByMonitor.js';
|
|
20
|
-
export * from './ToolbarItem.js';
|
|
21
|
-
export * from './AppExtraFlag.js';
|
|
22
16
|
export * from './WmStackNode.js';
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
17
|
+
export * from './PowerToolbarItem.js';
|
|
18
|
+
export * from './WmLeafNode.js';
|
|
19
|
+
export * from './WmNode.js';
|
|
26
20
|
export * from './NotificationsToolbarItem.js';
|
|
21
|
+
export * from './WsdItemInputNumber.js';
|
|
27
22
|
export * from './WsdItemSelectSubtype.js';
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './MatchingStrategy.js';
|
|
35
|
-
export * from './StyleValue.js';
|
|
36
|
-
export * from './WsdItemSelect.js';
|
|
37
|
-
export * from './WorkspaceIdentifierType.js';
|
|
38
|
-
export * from './WsdItemSelectOption.js';
|
|
39
|
-
export * from './HideMode.js';
|
|
40
|
-
export * from './WegItems.js';
|
|
41
|
-
export * from './ThemeId.js';
|
|
42
|
-
export * from './ResourceText.js';
|
|
43
|
-
export * from './GenericToolbarItem.js';
|
|
23
|
+
export * from './SeelenWallSettings.js';
|
|
24
|
+
export * from './WsdGroupEntry.js';
|
|
25
|
+
export * from './SeelenWegMode.js';
|
|
26
|
+
export * from './Placeholder.js';
|
|
27
|
+
export * from './DeviceToolbarItem.js';
|
|
28
|
+
export * from './ToolbarItem.js';
|
|
44
29
|
export * from './Resource.js';
|
|
45
|
-
export * from './
|
|
30
|
+
export * from './Rect.js';
|
|
31
|
+
export * from './WegAppGroupItem.js';
|
|
32
|
+
export * from './NoFallbackBehavior.js';
|
|
33
|
+
export * from './NetworkToolbarItem.js';
|
|
34
|
+
export * from './AppConfig.js';
|
|
35
|
+
export * from './PinnedWegItemData.js';
|
|
46
36
|
export * from './WmHorizontalNode.js';
|
|
47
|
-
export * from './
|
|
48
|
-
export * from './
|
|
37
|
+
export * from './IconPackId.js';
|
|
38
|
+
export * from './WorkspaceIdentifier.js';
|
|
49
39
|
export * from './WmFallbackNode.js';
|
|
50
|
-
export * from './SeelenLauncherMonitor.js';
|
|
51
40
|
export * from './MediaToolbarItem.js';
|
|
52
|
-
export * from './User.js';
|
|
53
|
-
export * from './WegItem.js';
|
|
54
|
-
export * from './DateToolbarItem.js';
|
|
55
|
-
export * from './TextToolbarItem.js';
|
|
56
|
-
export * from './NetworkToolbarItem.js';
|
|
57
|
-
export * from './WmVerticalNode.js';
|
|
58
|
-
export * from './SeelenWegSettingsByMonitor.js';
|
|
59
|
-
export * from './VirtualDesktopStrategy.js';
|
|
60
|
-
export * from './WsdItem.js';
|
|
61
|
-
export * from './UpdaterSettings.js';
|
|
62
|
-
export * from './PinnedWegItemData.js';
|
|
63
|
-
export * from './AhkVarList.js';
|
|
64
|
-
export * from './FocusedApp.js';
|
|
65
|
-
export * from './WindowManagerLayout.js';
|
|
66
41
|
export * from './ProfileSettings.js';
|
|
42
|
+
export * from './WorkspaceToolbarItemMode.js';
|
|
43
|
+
export * from './NodeSubtype.js';
|
|
67
44
|
export * from './ResourceKind.js';
|
|
45
|
+
export * from './WidgetId.js';
|
|
46
|
+
export * from './UserToolbarItem.js';
|
|
47
|
+
export * from './FolderType.js';
|
|
48
|
+
export * from './MatchingStrategy.js';
|
|
49
|
+
export * from './Profile.js';
|
|
50
|
+
export * from './File.js';
|
|
51
|
+
export * from './HideMode.js';
|
|
52
|
+
export * from './ResourceText.js';
|
|
53
|
+
export * from './StyleValue.js';
|
|
54
|
+
export * from './WsdItemSelectOption.js';
|
|
55
|
+
export * from './SettingsByWidget.js';
|
|
56
|
+
export * from './TextToolbarItem.js';
|
|
68
57
|
export * from './FolderChangedArgs.js';
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
72
|
-
export * from './
|
|
58
|
+
export * from './SeelenLauncherRunner.js';
|
|
59
|
+
export * from './Settings.js';
|
|
60
|
+
export * from './SeelenWallSettingsByMonitor.js';
|
|
61
|
+
export * from './AppExtraFlag.js';
|
|
62
|
+
export * from './WindowManagerLayout.js';
|
|
63
|
+
export * from './WsdItemSwitch.js';
|
|
64
|
+
export * from './AhkVarList.js';
|
|
65
|
+
export * from './WegPinnedItemsVisibility.js';
|
|
66
|
+
export * from './WsdItemInputText.js';
|
|
67
|
+
export * from './TrayToolbarItem.js';
|
|
68
|
+
export * from './ResourceStatus.js';
|
|
69
|
+
export * from './SeelenWegSettings.js';
|
|
70
|
+
export * from './Border.js';
|
|
71
|
+
export * from './FloatingWindowSettings.js';
|
|
72
|
+
export * from './WindowManagerSettings.js';
|
|
73
73
|
export * from './WsdGroup.js';
|
|
74
|
+
export * from './UpdaterSettings.js';
|
|
74
75
|
export * from './ResourceId.js';
|
|
75
|
-
export * from './
|
|
76
|
-
export * from './
|
|
77
|
-
export * from './WegAppGroupItem.js';
|
|
78
|
-
export * from './SeelenWegSettings.js';
|
|
76
|
+
export * from './WegTemporalItemsVisibility.js';
|
|
77
|
+
export * from './DateToolbarItem.js';
|
|
79
78
|
export * from './FancyToolbarSettingsByMonitor.js';
|
|
79
|
+
export * from './WsdItemSelect.js';
|
|
80
|
+
export * from './SeelenWegSettingsByMonitor.js';
|
|
81
|
+
export * from './AppIdentifierType.js';
|
|
80
82
|
export * from './ToolbarItem2.js';
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
85
|
-
export * from './
|
|
86
|
-
export * from './IconPackId.js';
|
|
87
|
-
export * from './FloatingWindowSettings.js';
|
|
83
|
+
export * from './GenericToolbarItem.js';
|
|
84
|
+
export * from './WegItems.js';
|
|
85
|
+
export * from './WorkspaceToolbarItem.js';
|
|
86
|
+
export * from './ThemeId.js';
|
|
87
|
+
export * from './Theme.js';
|
|
88
88
|
export * from './UpdateChannel.js';
|
|
89
|
-
export * from './
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './ApplicationHistoryEntry.js';
|
|
93
|
-
export * from './FolderType.js';
|
|
94
|
-
export * from './WorkspaceToolbarItemMode.js';
|
|
89
|
+
export * from './WsdItem.js';
|
|
90
|
+
export * from './FancyToolbarSettings.js';
|
|
91
|
+
export * from './WidgetSettingsDeclarationList.js';
|
|
95
92
|
export * from './Widget.js';
|
|
96
|
-
export * from './
|
|
97
|
-
export * from './
|
|
98
|
-
export * from './
|
|
93
|
+
export * from './IconPack.js';
|
|
94
|
+
export * from './SettingsToolbarItem.js';
|
|
95
|
+
export * from './SeelenWallWallpaper.js';
|
|
96
|
+
export * from './WmVerticalNode.js';
|
|
97
|
+
export * from './WegItem.js';
|
package/package.json
CHANGED
|
@@ -21,8 +21,8 @@ export declare enum SeelenCommand {
|
|
|
21
21
|
GetAutoStartStatus = "get_auto_start_status",
|
|
22
22
|
StateGetThemes = "state_get_themes",
|
|
23
23
|
StateGetWegItems = "state_get_weg_items",
|
|
24
|
-
StateGetToolbarItems = "state_get_toolbar_items",
|
|
25
24
|
StateWriteWegItems = "state_write_weg_items",
|
|
25
|
+
StateGetToolbarItems = "state_get_toolbar_items",
|
|
26
26
|
StateGetSettings = "state_get_settings",
|
|
27
27
|
StateWriteSettings = "state_write_settings",
|
|
28
28
|
StateGetDefaultSettings = "state_get_default_settings",
|
|
@@ -35,9 +35,7 @@ export declare enum SeelenCommand {
|
|
|
35
35
|
StateGetWidgets = "state_get_widgets",
|
|
36
36
|
StateGetIconPacks = "state_get_icon_packs",
|
|
37
37
|
StateGetProfiles = "state_get_profiles",
|
|
38
|
-
|
|
39
|
-
GetApplicationHistory = "get_application_history",
|
|
40
|
-
SetApplicationHistoryLimit = "set_application_history_limit",
|
|
38
|
+
StateDeleteCachedIcons = "state_delete_cached_icons",
|
|
41
39
|
GetUser = "get_user",
|
|
42
40
|
GetUserFolderContent = "get_user_folder_content",
|
|
43
41
|
SetUserFolderLimit = "set_user_folder_limit",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/handlers/commands.ts"],"names":[],"mappings":"AACA,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,SAAS,gBAAgB;IACzB,aAAa,oBAAoB;IACjC,QAAQ,cAAc;IACtB,UAAU,iBAAiB;IAC3B,oBAAoB,4BAA4B;IAChD,yBAAyB,iCAAiC;IAC1D,WAAW,kBAAkB;IAC7B,eAAe,sBAAsB;IACrC,eAAe,qBAAqB;IACpC,QAAQ,cA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AChD,kBAAkB,0BAA0B;IAC5C,SAAS,eAAe;IACxB,oBAAoB,4BAA4B;IAChD,SAAS,eAAe;IACxB,cAAc,qBAAqB;IACnC,eAAe,sBAAsB;IACrC,qBAAqB,6BAA6B;IAClD,wBAAwB,gCAAgC;IACxD,wBAAwB,gCAAgC;IACxD,MAAM,YAAY;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,oBAAoB,6BAA6B;IACjD,WAAW,kBAAkB;IAC7B,UAAU,iBAAiB;IAC3B,oBAAoB,4BAA4B;IAChD,wBAAwB,gCAAgC;IACxD,UAAU,iBAAiB;IAC3B,iBAAiB,wBAAwB;IACzC,YAAY,kBAAkB;IAC9B,eAAe,sBAAsB;IACrC,sBAAsB,gCAAgC;IACtD,eAAe,uBAAuB;IACtC,qBAAqB,8BAA8B;IACnD,eAAe,sBAAsB;IACrC,iBAAiB,wBAAwB;IACzC,gBAAgB,uBAAuB;IACvC,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,kBAAkB,wBAAwB;IAC1C,qBAAqB,4BAA4B;CAClD"}
|
|
@@ -26,8 +26,8 @@ var SeelenCommand;
|
|
|
26
26
|
SeelenCommand["GetAutoStartStatus"] = "get_auto_start_status";
|
|
27
27
|
SeelenCommand["StateGetThemes"] = "state_get_themes";
|
|
28
28
|
SeelenCommand["StateGetWegItems"] = "state_get_weg_items";
|
|
29
|
-
SeelenCommand["StateGetToolbarItems"] = "state_get_toolbar_items";
|
|
30
29
|
SeelenCommand["StateWriteWegItems"] = "state_write_weg_items";
|
|
30
|
+
SeelenCommand["StateGetToolbarItems"] = "state_get_toolbar_items";
|
|
31
31
|
SeelenCommand["StateGetSettings"] = "state_get_settings";
|
|
32
32
|
SeelenCommand["StateWriteSettings"] = "state_write_settings";
|
|
33
33
|
SeelenCommand["StateGetDefaultSettings"] = "state_get_default_settings";
|
|
@@ -40,9 +40,7 @@ var SeelenCommand;
|
|
|
40
40
|
SeelenCommand["StateGetWidgets"] = "state_get_widgets";
|
|
41
41
|
SeelenCommand["StateGetIconPacks"] = "state_get_icon_packs";
|
|
42
42
|
SeelenCommand["StateGetProfiles"] = "state_get_profiles";
|
|
43
|
-
SeelenCommand["
|
|
44
|
-
SeelenCommand["GetApplicationHistory"] = "get_application_history";
|
|
45
|
-
SeelenCommand["SetApplicationHistoryLimit"] = "set_application_history_limit";
|
|
43
|
+
SeelenCommand["StateDeleteCachedIcons"] = "state_delete_cached_icons";
|
|
46
44
|
SeelenCommand["GetUser"] = "get_user";
|
|
47
45
|
SeelenCommand["GetUserFolderContent"] = "get_user_folder_content";
|
|
48
46
|
SeelenCommand["SetUserFolderLimit"] = "set_user_folder_limit";
|
|
@@ -2,8 +2,6 @@ export declare enum SeelenEvent {
|
|
|
2
2
|
WorkspacesChanged = "workspaces-changed",
|
|
3
3
|
ActiveWorkspaceChanged = "active-workspace-changed",
|
|
4
4
|
GlobalFocusChanged = "global-focus-changed",
|
|
5
|
-
GlobalHistoryChanged = "global-history-changed",
|
|
6
|
-
HistoryChangedOnMonitor = "global-history-changed-on-monitor",
|
|
7
5
|
GlobalMouseMove = "global-mouse-move",
|
|
8
6
|
HandleLayeredHitboxes = "handle-layered",
|
|
9
7
|
SystemMonitorsChanged = "system::monitors-changed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,iBAAiB,uBAAuB;IACxC,sBAAsB,6BAA6B;IACnD,kBAAkB,yBAAyB;IAC3C,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,iBAAiB,uBAAuB;IACxC,sBAAsB,6BAA6B;IACnD,kBAAkB,yBAAyB;IAC3C,eAAe,sBAAsB;IACrC,qBAAqB,mBAAmB;IACxC,qBAAqB,6BAA6B;IAClD,sBAAsB,8BAA8B;IACpD,WAAW,iBAAiB;IAC5B,iBAAiB,wBAAwB;IACzC,aAAa,mBAAmB;IAChC,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,qBAAqB,6BAA6B;IAClD,eAAe,qBAAqB;IACpC,yBAAyB,gCAAgC;IACzD,kBAAkB,iBAAiB;IACnC,aAAa,kBAAkB;IAC/B,WAAW,iBAAiB;IAC5B,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,QAAQ,cAAc;IACtB,gBAAgB,kBAAkB;IAClC,YAAY,kBAAkB;IAC9B,kBAAkB,0BAA0B;IAC5C,gBAAgB,oBAAoB;IACpC,cAAc,kBAAkB;IAChC,aAAa,iBAAiB;IAC9B,oBAAoB,yBAAyB;IAC7C,OAAO,UAAU;IACjB,oBAAoB,yBAAyB;IAC7C,WAAW,eAAe;IAC1B,cAAc,kBAAkB;IAChC,cAAc,kBAAkB;IAChC,eAAe,sBAAsB;IACrC,WAAW,kBAAkB;IAC7B,sBAAsB,8BAA8B;IACpD,iBAAiB,yBAAyB;IAC1C,QAAQ,cAAc;IACtB,oBAAoB,qBAAqB;IACzC,oBAAoB,cAAc;IAClC,wBAAwB,kBAAkB;IAC1C,kBAAkB,WAAW;IAC7B,yBAAyB,oBAAoB;IAC7C,mBAAmB,YAAY;IAC/B,qBAAqB,eAAe;IACpC,mBAAmB,oBAAoB;IACvC,mBAAmB,oBAAoB;IACvC,oBAAoB,qBAAqB;CAC1C"}
|
|
@@ -7,8 +7,6 @@ var SeelenEvent;
|
|
|
7
7
|
SeelenEvent["WorkspacesChanged"] = "workspaces-changed";
|
|
8
8
|
SeelenEvent["ActiveWorkspaceChanged"] = "active-workspace-changed";
|
|
9
9
|
SeelenEvent["GlobalFocusChanged"] = "global-focus-changed";
|
|
10
|
-
SeelenEvent["GlobalHistoryChanged"] = "global-history-changed";
|
|
11
|
-
SeelenEvent["HistoryChangedOnMonitor"] = "global-history-changed-on-monitor";
|
|
12
10
|
SeelenEvent["GlobalMouseMove"] = "global-mouse-move";
|
|
13
11
|
SeelenEvent["HandleLayeredHitboxes"] = "handle-layered";
|
|
14
12
|
SeelenEvent["SystemMonitorsChanged"] = "system::monitors-changed";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IconPack } from '../types/mod.js';
|
|
2
2
|
import { List } from '../utils/List.js';
|
|
3
3
|
import { SeelenCommand, SeelenEvent } from '../handlers/mod.js';
|
|
4
|
+
import type { UnlistenFn } from '@tauri-apps/api/event';
|
|
4
5
|
export interface GetIconArgs {
|
|
5
6
|
path?: string | null;
|
|
6
7
|
umid?: string | null;
|
|
@@ -9,10 +10,12 @@ declare global {
|
|
|
9
10
|
interface ArgsByCommand {
|
|
10
11
|
[SeelenCommand.StateGetIconPacks]: null;
|
|
11
12
|
[SeelenCommand.GetIcon]: GetIconArgs;
|
|
13
|
+
[SeelenCommand.StateDeleteCachedIcons]: null;
|
|
12
14
|
}
|
|
13
15
|
interface ReturnByCommand {
|
|
14
16
|
[SeelenCommand.StateGetIconPacks]: IconPack[];
|
|
15
17
|
[SeelenCommand.GetIcon]: string | null;
|
|
18
|
+
[SeelenCommand.StateDeleteCachedIcons]: void;
|
|
16
19
|
}
|
|
17
20
|
interface PayloadByEvent {
|
|
18
21
|
[SeelenEvent.StateIconPacksChanged]: IconPack[];
|
|
@@ -20,21 +23,21 @@ declare global {
|
|
|
20
23
|
}
|
|
21
24
|
export declare class IconPackList extends List<IconPack> {
|
|
22
25
|
static readonly getAsync: () => Promise<InstanceType<typeof IconPackList>>;
|
|
23
|
-
static readonly onChange: (cb: (instance: IconPackList) => void) => Promise<
|
|
26
|
+
static readonly onChange: (cb: (instance: IconPackList) => void) => Promise<UnlistenFn>;
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Class helper to allow easy use of icon packs
|
|
27
30
|
*/
|
|
28
31
|
export declare class IconPackManager {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
protected iconPackPath: string;
|
|
33
|
+
protected _iconPacks: IconPackList;
|
|
34
|
+
protected _actives: string[];
|
|
32
35
|
private callbacks;
|
|
33
|
-
private
|
|
36
|
+
private unlistenerSettings;
|
|
37
|
+
private unlistenerIcons;
|
|
38
|
+
protected constructor(iconPackPath: string, _iconPacks: IconPackList, _actives: string[]);
|
|
34
39
|
get iconPacks(): IconPackList;
|
|
35
|
-
private set iconPacks(value);
|
|
36
40
|
get actives(): string[];
|
|
37
|
-
private set actives(value);
|
|
38
41
|
/**
|
|
39
42
|
* Creates an instance of IconPackManager. This intance will be updated when
|
|
40
43
|
* the list of icon packs or the settings changes, so just having one global instance is enough.
|
|
@@ -43,31 +46,95 @@ export declare class IconPackManager {
|
|
|
43
46
|
*/
|
|
44
47
|
static create(): Promise<IconPackManager>;
|
|
45
48
|
/**
|
|
46
|
-
*
|
|
49
|
+
* Registers a callback to be invoked when the list of active icon packs changes.
|
|
50
|
+
* This method also sets up listeners to detect changes in the icon pack list and
|
|
51
|
+
* the active icon packs settings. If no callbacks are registered beforehand, the
|
|
52
|
+
* listeners are initialized. When no callbacks remain registered, the listeners are stopped.
|
|
53
|
+
*
|
|
54
|
+
* @param {() => void} cb - The callback to be invoked when the list of active icon packs changes.
|
|
55
|
+
* This callback takes no arguments and returns no value.
|
|
56
|
+
* @returns {Promise<UnlistenFn>} A promise that resolves to an `UnlistenFn` function. When invoked,
|
|
57
|
+
* this function unregisters the callback and stops listening for changes
|
|
58
|
+
* if no other callbacks are registered.
|
|
47
59
|
*
|
|
48
|
-
* @param cb The callback to be called when the list of icon packs changes
|
|
49
60
|
* @example
|
|
50
61
|
* const manager = await IconPackManager.create();
|
|
51
|
-
* manager.onChange(() => {
|
|
62
|
+
* const unlisten = await manager.onChange(() => {
|
|
52
63
|
* console.log("Icon packs changed: ", manager.actives);
|
|
53
64
|
* });
|
|
65
|
+
*
|
|
66
|
+
* // Later, to stop listening for changes:
|
|
67
|
+
* unlisten();
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* - The `this` context inside the callback refers to the `IconPackManager` instance, provided the callback
|
|
71
|
+
* is not rebound to another context (e.g., using `bind`, `call`, or `apply`).
|
|
72
|
+
* - If the callback is defined as an arrow function, `this` will be lexically bound to the surrounding context.
|
|
73
|
+
* - If the callback is a regular function, ensure it is bound correctly to avoid `this` being `undefined` (in strict mode)
|
|
74
|
+
* or the global object (in non-strict mode).
|
|
75
|
+
*
|
|
76
|
+
* @see {@link IconPackManager} for the class this method belongs to.
|
|
77
|
+
* @see {@link UnlistenFn} for the type of the function returned by this method.
|
|
78
|
+
*/
|
|
79
|
+
onChange(cb: () => void): Promise<UnlistenFn>;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the icon path for an app or file. If no icon is available, returns `null`.
|
|
82
|
+
*
|
|
83
|
+
* The search for icons follows this priority order:
|
|
84
|
+
* 1. UMID (App User Model Id)
|
|
85
|
+
* 2. Full path or filename (for executable files like .exe or .lnk)
|
|
86
|
+
* 3. File extension (for non-executable files like .png, .jpg, .txt)
|
|
87
|
+
*
|
|
88
|
+
* Icon packs are searched in the order of their priority. An icon from a higher-priority pack
|
|
89
|
+
* will override an icon from a lower-priority pack, even if the latter matches the search criteria.
|
|
90
|
+
*
|
|
91
|
+
* @param {Object} args - Arguments for retrieving the icon path.
|
|
92
|
+
* @param {string} [args.path] - The full path to the app or file.
|
|
93
|
+
* @param {string} [args.umid] - The UMID of the app.
|
|
94
|
+
* @returns {string | null} - The path to the icon, or `null` if no icon is found.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* // Example 1: Get icon by full path
|
|
98
|
+
* const iconPath = instance.getIconPath({
|
|
99
|
+
* path: "C:\\Program Files\\Steam\\steam.exe"
|
|
100
|
+
* });
|
|
101
|
+
*
|
|
102
|
+
* // Example 2: Get icon by UMID
|
|
103
|
+
* const iconPath = instance.getIconPath({
|
|
104
|
+
* umid: "Seelen.SeelenUI_p6yyn03m1894e!App"
|
|
105
|
+
* });
|
|
54
106
|
*/
|
|
55
|
-
|
|
107
|
+
getIconPath({ path, umid }: GetIconArgs): string | null;
|
|
56
108
|
/**
|
|
57
|
-
*
|
|
109
|
+
* Returns the icon Url/Src for an app or file. If no icon is available, returns `null`.
|
|
110
|
+
*
|
|
111
|
+
* The search for icons follows this priority order:
|
|
112
|
+
* 1. UMID (App User Model Id)
|
|
113
|
+
* 2. Full path or filename (for executable files like .exe or .lnk)
|
|
114
|
+
* 3. File extension (for non-executable files like .png, .jpg, .txt)
|
|
115
|
+
*
|
|
116
|
+
* Icon packs are searched in the order of their priority. An icon from a higher-priority pack
|
|
117
|
+
* will override an icon from a lower-priority pack, even if the latter matches the search criteria.
|
|
118
|
+
*
|
|
119
|
+
* @param {Object} args - Arguments for retrieving the icon path.
|
|
120
|
+
* @param {string} [args.path] - The full path to the app or file.
|
|
121
|
+
* @param {string} [args.umid] - The UMID of the app.
|
|
122
|
+
* @returns {string | null} - The path to the icon, or `null` if no icon is found.
|
|
58
123
|
*
|
|
59
|
-
* @param filePath The path to the app could be umid, full path.
|
|
60
124
|
* @example
|
|
61
|
-
*
|
|
125
|
+
* // Example 1: Get icon by full path
|
|
126
|
+
* const iconSrc = instance.getIconPath({
|
|
62
127
|
* path: "C:\\Program Files\\Steam\\steam.exe"
|
|
63
128
|
* });
|
|
64
|
-
*
|
|
129
|
+
*
|
|
130
|
+
* // Example 2: Get icon by UMID
|
|
131
|
+
* const iconSrc = instance.getIconPath({
|
|
65
132
|
* umid: "Seelen.SeelenUI_p6yyn03m1894e!App"
|
|
66
133
|
* });
|
|
67
134
|
*/
|
|
68
135
|
getIcon({ path, umid }: GetIconArgs): string | null;
|
|
69
136
|
/**
|
|
70
|
-
* Return the icon Path for an app or file, in case of no icon available will return `null
|
|
137
|
+
* Return the icon Path for an app or file, in case of no icon available will return `null`.\
|
|
71
138
|
* This method doesn't take in care icon packs, just extracts the inherited icon into system's icon pack.
|
|
72
139
|
*
|
|
73
140
|
* @param filePath The path to the app could be umid o full path
|
|
@@ -80,5 +147,10 @@ export declare class IconPackManager {
|
|
|
80
147
|
* });
|
|
81
148
|
*/
|
|
82
149
|
static extractIcon(obj: GetIconArgs): Promise<string | null>;
|
|
150
|
+
/**
|
|
151
|
+
* This will delete all stored icons on the system icon pack.\
|
|
152
|
+
* All icons should be regenerated after calling this method.
|
|
153
|
+
*/
|
|
154
|
+
static clearCachedIcons(): Promise<void>;
|
|
83
155
|
}
|
|
84
156
|
//# sourceMappingURL=icon_pack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon_pack.d.ts","sourceRoot":"","sources":["../../src/state/icon_pack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAU,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"icon_pack.d.ts","sourceRoot":"","sources":["../../src/state/icon_pack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAU,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC;QACxC,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;QACrC,CAAC,aAAa,CAAC,sBAAsB,CAAC,E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