@seelen-ui/lib 0.1.2 → 0.1.3-next.20241218174913
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/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +183 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +26 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +152 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +69 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +131 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +163 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +81 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +109 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +207 -0
- package/esm/gen/types/AhkVar.d.ts +6 -0
- package/esm/gen/types/AhkVar.d.ts.map +1 -0
- package/esm/gen/types/AhkVar.js +2 -0
- package/esm/gen/types/AhkVarList.d.ts +54 -0
- package/esm/gen/types/AhkVarList.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.d.ts +33 -0
- package/esm/gen/types/AppConfig.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.js +1 -0
- package/esm/gen/types/AppExtraFlag.d.ts +2 -0
- package/esm/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/esm/gen/types/AppExtraFlag.js +2 -0
- package/esm/gen/types/AppIdentifier.d.ts +11 -0
- package/esm/gen/types/AppIdentifier.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifier.js +1 -0
- package/esm/gen/types/AppIdentifierType.d.ts +2 -0
- package/esm/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifierType.js +2 -0
- package/esm/gen/types/Border.d.ts +6 -0
- package/esm/gen/types/Border.d.ts.map +1 -0
- package/esm/gen/types/Border.js +2 -0
- package/esm/gen/types/DateToolbarItem.d.ts +71 -0
- package/esm/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DateToolbarItem.js +1 -0
- package/esm/gen/types/DateUpdateInterval.d.ts +2 -0
- package/esm/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/esm/gen/types/DateUpdateInterval.js +2 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DeviceToolbarItem.js +1 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettings.js +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.js +2 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/esm/gen/types/FloatingWindowSettings.js +2 -0
- package/esm/gen/types/GenericToolbarItem.d.ts +82 -0
- package/esm/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/GenericToolbarItem.js +1 -0
- package/esm/gen/types/HideMode.d.ts +2 -0
- package/esm/gen/types/HideMode.d.ts.map +1 -0
- package/esm/gen/types/HideMode.js +2 -0
- package/esm/gen/types/IconPack.d.ts +13 -0
- package/esm/gen/types/IconPack.d.ts.map +1 -0
- package/esm/gen/types/IconPack.js +1 -0
- package/esm/gen/types/MatchingStrategy.d.ts +2 -0
- package/esm/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/esm/gen/types/MatchingStrategy.js +2 -0
- package/esm/gen/types/MediaToolbarItem.d.ts +138 -0
- package/esm/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/MediaToolbarItem.js +1 -0
- package/esm/gen/types/MonitorConfiguration.d.ts +16 -0
- package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/esm/gen/types/MonitorConfiguration.js +1 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NetworkToolbarItem.js +1 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/esm/gen/types/NoFallbackBehavior.js +2 -0
- package/esm/gen/types/NodeSubtype.d.ts +2 -0
- package/esm/gen/types/NodeSubtype.d.ts.map +1 -0
- package/esm/gen/types/NodeSubtype.js +2 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NotificationsToolbarItem.js +1 -0
- package/esm/gen/types/PinnedWegItemData.d.ts +29 -0
- package/esm/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/esm/gen/types/PinnedWegItemData.js +2 -0
- package/esm/gen/types/Placeholder.d.ts +21 -0
- package/esm/gen/types/Placeholder.d.ts.map +1 -0
- package/esm/gen/types/Placeholder.js +1 -0
- package/esm/gen/types/PlaceholderInfo.d.ts +19 -0
- package/esm/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/esm/gen/types/PlaceholderInfo.js +2 -0
- package/esm/gen/types/Plugin.d.ts +11 -0
- package/esm/gen/types/Plugin.d.ts.map +1 -0
- package/esm/gen/types/Plugin.js +1 -0
- package/esm/gen/types/PluginId.d.ts +3 -0
- package/esm/gen/types/PluginId.d.ts.map +1 -0
- package/esm/gen/types/PluginId.js +1 -0
- package/esm/gen/types/PowerToolbarItem.d.ts +214 -0
- package/esm/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/PowerToolbarItem.js +1 -0
- package/esm/gen/types/Profile.d.ts +8 -0
- package/esm/gen/types/Profile.d.ts.map +1 -0
- package/esm/gen/types/Profile.js +1 -0
- package/esm/gen/types/ProfileSettings.d.ts +4 -0
- package/esm/gen/types/ProfileSettings.d.ts.map +1 -0
- package/esm/gen/types/ProfileSettings.js +2 -0
- package/esm/gen/types/Rect.d.ts +7 -0
- package/esm/gen/types/Rect.d.ts.map +1 -0
- package/esm/gen/types/Rect.js +2 -0
- package/esm/gen/types/ResourceId.d.ts +2 -0
- package/esm/gen/types/ResourceId.d.ts.map +1 -0
- package/esm/gen/types/ResourceId.js +2 -0
- package/esm/gen/types/ResourceMetadata.d.ts +8 -0
- package/esm/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/esm/gen/types/ResourceMetadata.js +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherMonitor.js +2 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherRunner.js +2 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettings.d.ts +11 -0
- package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.js +1 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallWallpaper.js +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegMode.js +2 -0
- package/esm/gen/types/SeelenWegSettings.d.ts +58 -0
- package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettings.js +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.js +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSide.js +2 -0
- package/esm/gen/types/Settings.d.ts +84 -0
- package/esm/gen/types/Settings.d.ts.map +1 -0
- package/esm/gen/types/Settings.js +1 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/SettingsToolbarItem.js +1 -0
- package/esm/gen/types/StyleValue.d.ts +2 -0
- package/esm/gen/types/StyleValue.d.ts.map +1 -0
- package/esm/gen/types/StyleValue.js +2 -0
- package/esm/gen/types/TextToolbarItem.d.ts +114 -0
- package/esm/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TextToolbarItem.js +1 -0
- package/esm/gen/types/Theme.d.ts +15 -0
- package/esm/gen/types/Theme.d.ts.map +1 -0
- package/esm/gen/types/Theme.js +1 -0
- package/esm/gen/types/ThemeInfo.d.ts +23 -0
- package/esm/gen/types/ThemeInfo.d.ts.map +1 -0
- package/esm/gen/types/ThemeInfo.js +2 -0
- package/esm/gen/types/ToolbarItem.d.ts +35 -0
- package/esm/gen/types/ToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem.js +1 -0
- package/esm/gen/types/ToolbarItem2.d.ts +3 -0
- package/esm/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem2.js +1 -0
- package/esm/gen/types/TrayToolbarItem.d.ts +54 -0
- package/esm/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TrayToolbarItem.js +1 -0
- package/esm/gen/types/UpdateChannel.d.ts +2 -0
- package/esm/gen/types/UpdateChannel.d.ts.map +1 -0
- package/esm/gen/types/UpdateChannel.js +2 -0
- package/esm/gen/types/UpdaterSettings.d.ts +5 -0
- package/esm/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/esm/gen/types/UpdaterSettings.js +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.js +2 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/esm/gen/types/WManagerLayoutInfo.js +2 -0
- package/esm/gen/types/WegItem.d.ts +14 -0
- package/esm/gen/types/WegItem.d.ts.map +1 -0
- package/esm/gen/types/WegItem.js +1 -0
- package/esm/gen/types/WegItems.d.ts +7 -0
- package/esm/gen/types/WegItems.d.ts.map +1 -0
- package/esm/gen/types/WegItems.js +1 -0
- package/esm/gen/types/Widget.d.ts +8 -0
- package/esm/gen/types/Widget.d.ts.map +1 -0
- package/esm/gen/types/Widget.js +1 -0
- package/esm/gen/types/WidgetId.d.ts +3 -0
- package/esm/gen/types/WidgetId.d.ts.map +1 -0
- package/esm/gen/types/WidgetId.js +1 -0
- package/esm/gen/types/WindowManagerLayout.d.ts +9 -0
- package/esm/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerLayout.js +1 -0
- package/esm/gen/types/WindowManagerSettings.d.ts +42 -0
- package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettings.js +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.js +1 -0
- package/esm/gen/types/WmFallbackNode.d.ts +25 -0
- package/esm/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/esm/gen/types/WmFallbackNode.js +1 -0
- package/esm/gen/types/WmHorizontalNode.d.ts +19 -0
- package/esm/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/esm/gen/types/WmHorizontalNode.js +1 -0
- package/esm/gen/types/WmLeafNode.d.ts +21 -0
- package/esm/gen/types/WmLeafNode.d.ts.map +1 -0
- package/esm/gen/types/WmLeafNode.js +1 -0
- package/esm/gen/types/WmNode.d.ts +17 -0
- package/esm/gen/types/WmNode.d.ts.map +1 -0
- package/esm/gen/types/WmNode.js +1 -0
- package/esm/gen/types/WmStackNode.d.ts +25 -0
- package/esm/gen/types/WmStackNode.d.ts.map +1 -0
- package/esm/gen/types/WmStackNode.js +1 -0
- package/esm/gen/types/WmVerticalNode.d.ts +19 -0
- package/esm/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/esm/gen/types/WmVerticalNode.js +1 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceConfiguration.js +1 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifier.js +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.js +2 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItem.js +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.js +2 -0
- package/esm/gen/types/mod.d.ts +76 -0
- package/esm/gen/types/mod.d.ts.map +1 -0
- package/esm/gen/types/mod.js +75 -0
- 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/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/esm/src/handlers/commands.d.ts.map +1 -0
- package/esm/{handlers/invokers.js → src/handlers/commands.js} +6 -6
- package/{script → esm/src}/handlers/events.d.ts +2 -1
- package/esm/src/handlers/events.d.ts.map +1 -0
- package/esm/{handlers → src/handlers}/events.js +2 -1
- package/esm/src/handlers/invokers.d.ts +26 -0
- package/esm/src/handlers/invokers.d.ts.map +1 -0
- package/esm/src/handlers/invokers.js +13 -0
- package/esm/src/handlers/mod.d.ts +4 -0
- package/esm/src/handlers/mod.d.ts.map +1 -0
- package/esm/src/handlers/mod.js +3 -0
- package/esm/src/lib.d.ts +5 -0
- package/esm/src/lib.d.ts.map +1 -0
- package/esm/src/lib.js +4 -0
- package/esm/{state → src/state}/icon_pack.d.ts +1 -1
- package/esm/src/state/icon_pack.d.ts.map +1 -0
- package/esm/{state → src/state}/icon_pack.js +1 -1
- package/esm/src/state/mod.d.ts +40 -0
- package/esm/src/state/mod.d.ts.map +1 -0
- package/esm/{state/index.js → src/state/mod.js} +7 -7
- package/esm/src/state/placeholder.d.ts.map +1 -0
- package/esm/src/state/plugin.d.ts +26 -0
- package/esm/src/state/plugin.d.ts.map +1 -0
- package/esm/src/state/plugin.js +12 -0
- package/esm/src/state/profile.d.ts +23 -0
- package/esm/src/state/profile.d.ts.map +1 -0
- package/esm/src/state/profile.js +6 -0
- package/esm/src/state/settings.d.ts +51 -0
- package/esm/src/state/settings.d.ts.map +1 -0
- package/esm/src/state/settings.js +42 -0
- package/esm/src/state/settings_by_app.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.d.ts +20 -0
- package/esm/src/state/settings_by_monitor.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.js +16 -0
- package/esm/src/state/theme.d.ts +37 -0
- package/esm/src/state/theme.d.ts.map +1 -0
- package/esm/src/state/theme.js +7 -0
- package/esm/src/state/weg_items.d.ts +27 -0
- package/esm/src/state/weg_items.d.ts.map +1 -0
- package/esm/src/state/weg_items.js +17 -0
- package/esm/src/state/widget.d.ts +27 -0
- package/esm/src/state/widget.d.ts.map +1 -0
- package/esm/src/state/widget.js +7 -0
- package/esm/src/state/wm_layout.d.ts.map +1 -0
- package/esm/src/system_state/mod.d.ts +3 -0
- package/esm/src/system_state/mod.d.ts.map +1 -0
- package/esm/src/system_state/mod.js +2 -0
- package/esm/src/system_state/monitors.d.ts +25 -0
- package/esm/src/system_state/monitors.d.ts.map +1 -0
- package/esm/src/system_state/monitors.js +7 -0
- package/esm/src/system_state/uiColors.d.ts +33 -0
- package/esm/src/system_state/uiColors.d.ts.map +1 -0
- package/esm/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/esm/src/utils/List.d.ts +25 -0
- package/esm/src/utils/List.d.ts.map +1 -0
- package/esm/src/utils/List.js +36 -0
- package/esm/src/utils/State.d.ts +11 -0
- package/esm/src/utils/State.d.ts.map +1 -0
- package/esm/src/utils/State.js +13 -0
- package/esm/src/utils/layered_hitbox.d.ts.map +1 -0
- package/esm/{utils → src/utils}/layered_hitbox.js +1 -1
- package/{script/utils/index.d.ts → esm/src/utils/mod.d.ts} +8 -5
- package/esm/src/utils/mod.d.ts.map +1 -0
- package/esm/{utils/index.js → src/utils/mod.js} +8 -7
- package/package.json +9 -7
- package/readme.md +1 -1
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +187 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +29 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +156 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.js +73 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.js +135 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.js +167 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.js +108 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +113 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.js +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.js +213 -0
- package/script/gen/types/AhkVar.d.ts +6 -0
- package/script/gen/types/AhkVar.d.ts.map +1 -0
- package/script/gen/types/AhkVar.js +3 -0
- package/script/gen/types/AhkVarList.d.ts +54 -0
- package/script/gen/types/AhkVarList.d.ts.map +1 -0
- package/script/gen/types/AppConfig.d.ts +33 -0
- package/script/gen/types/AppConfig.d.ts.map +1 -0
- package/script/gen/types/AppConfig.js +2 -0
- package/script/gen/types/AppExtraFlag.d.ts +2 -0
- package/script/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/script/gen/types/AppExtraFlag.js +3 -0
- package/script/gen/types/AppIdentifier.d.ts +11 -0
- package/script/gen/types/AppIdentifier.d.ts.map +1 -0
- package/script/gen/types/AppIdentifier.js +2 -0
- package/script/gen/types/AppIdentifierType.d.ts +2 -0
- package/script/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/script/gen/types/AppIdentifierType.js +3 -0
- package/script/gen/types/Border.d.ts +6 -0
- package/script/gen/types/Border.d.ts.map +1 -0
- package/script/gen/types/Border.js +3 -0
- package/script/gen/types/DateToolbarItem.d.ts +71 -0
- package/script/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DateToolbarItem.js +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/script/gen/types/DateUpdateInterval.js +3 -0
- package/script/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/script/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DeviceToolbarItem.js +2 -0
- package/script/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettings.js +2 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.js +3 -0
- package/script/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/script/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/script/gen/types/FloatingWindowSettings.js +3 -0
- package/script/gen/types/GenericToolbarItem.d.ts +82 -0
- package/script/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/script/gen/types/GenericToolbarItem.js +2 -0
- package/script/gen/types/HideMode.d.ts +2 -0
- package/script/gen/types/HideMode.d.ts.map +1 -0
- package/script/gen/types/HideMode.js +3 -0
- package/script/gen/types/IconPack.d.ts +13 -0
- package/script/gen/types/IconPack.d.ts.map +1 -0
- package/script/gen/types/IconPack.js +2 -0
- package/script/gen/types/MatchingStrategy.d.ts +2 -0
- package/script/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/script/gen/types/MatchingStrategy.js +3 -0
- package/script/gen/types/MediaToolbarItem.d.ts +138 -0
- package/script/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/script/gen/types/MediaToolbarItem.js +2 -0
- package/script/gen/types/MonitorConfiguration.d.ts +16 -0
- package/script/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/script/gen/types/MonitorConfiguration.js +2 -0
- package/script/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/script/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NetworkToolbarItem.js +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/script/gen/types/NoFallbackBehavior.js +3 -0
- package/script/gen/types/NodeSubtype.d.ts +2 -0
- package/script/gen/types/NodeSubtype.d.ts.map +1 -0
- package/script/gen/types/NodeSubtype.js +3 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NotificationsToolbarItem.js +2 -0
- package/script/gen/types/PinnedWegItemData.d.ts +29 -0
- package/script/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/script/gen/types/PinnedWegItemData.js +3 -0
- package/script/gen/types/Placeholder.d.ts +21 -0
- package/script/gen/types/Placeholder.d.ts.map +1 -0
- package/script/gen/types/Placeholder.js +2 -0
- package/script/gen/types/PlaceholderInfo.d.ts +19 -0
- package/script/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/script/gen/types/PlaceholderInfo.js +3 -0
- package/script/gen/types/Plugin.d.ts +11 -0
- package/script/gen/types/Plugin.d.ts.map +1 -0
- package/script/gen/types/Plugin.js +2 -0
- package/script/gen/types/PluginId.d.ts +3 -0
- package/script/gen/types/PluginId.d.ts.map +1 -0
- package/script/gen/types/PluginId.js +2 -0
- package/script/gen/types/PowerToolbarItem.d.ts +214 -0
- package/script/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/script/gen/types/PowerToolbarItem.js +2 -0
- package/script/gen/types/Profile.d.ts +8 -0
- package/script/gen/types/Profile.d.ts.map +1 -0
- package/script/gen/types/Profile.js +2 -0
- package/script/gen/types/ProfileSettings.d.ts +4 -0
- package/script/gen/types/ProfileSettings.d.ts.map +1 -0
- package/script/gen/types/ProfileSettings.js +3 -0
- package/script/gen/types/Rect.d.ts +7 -0
- package/script/gen/types/Rect.d.ts.map +1 -0
- package/script/gen/types/Rect.js +3 -0
- package/script/gen/types/ResourceId.d.ts +2 -0
- package/script/gen/types/ResourceId.d.ts.map +1 -0
- package/script/gen/types/ResourceId.js +3 -0
- package/script/gen/types/ResourceMetadata.d.ts +8 -0
- package/script/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/script/gen/types/ResourceMetadata.js +3 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherMonitor.js +3 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherRunner.js +3 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherSettings.js +2 -0
- package/script/gen/types/SeelenWallSettings.d.ts +11 -0
- package/script/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettings.js +2 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.js +2 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/script/gen/types/SeelenWallWallpaper.js +3 -0
- package/script/gen/types/SeelenWegMode.d.ts +2 -0
- package/script/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/script/gen/types/SeelenWegMode.js +3 -0
- package/script/gen/types/SeelenWegSettings.d.ts +58 -0
- package/script/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettings.js +2 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.js +3 -0
- package/script/gen/types/SeelenWegSide.d.ts +2 -0
- package/script/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSide.js +3 -0
- package/script/gen/types/Settings.d.ts +84 -0
- package/script/gen/types/Settings.d.ts.map +1 -0
- package/script/gen/types/Settings.js +2 -0
- package/script/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/script/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/SettingsToolbarItem.js +2 -0
- package/script/gen/types/StyleValue.d.ts +2 -0
- package/script/gen/types/StyleValue.d.ts.map +1 -0
- package/script/gen/types/StyleValue.js +3 -0
- package/script/gen/types/TextToolbarItem.d.ts +114 -0
- package/script/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TextToolbarItem.js +2 -0
- package/script/gen/types/Theme.d.ts +15 -0
- package/script/gen/types/Theme.d.ts.map +1 -0
- package/script/gen/types/Theme.js +2 -0
- package/script/gen/types/ThemeInfo.d.ts +23 -0
- package/script/gen/types/ThemeInfo.d.ts.map +1 -0
- package/script/gen/types/ThemeInfo.js +3 -0
- package/script/gen/types/ToolbarItem.d.ts +35 -0
- package/script/gen/types/ToolbarItem.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem.js +2 -0
- package/script/gen/types/ToolbarItem2.d.ts +3 -0
- package/script/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem2.js +2 -0
- package/script/gen/types/TrayToolbarItem.d.ts +54 -0
- package/script/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TrayToolbarItem.js +2 -0
- package/script/gen/types/UpdateChannel.d.ts +2 -0
- package/script/gen/types/UpdateChannel.d.ts.map +1 -0
- package/script/gen/types/UpdateChannel.js +3 -0
- package/script/gen/types/UpdaterSettings.d.ts +5 -0
- package/script/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/script/gen/types/UpdaterSettings.js +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/script/gen/types/VirtualDesktopStrategy.js +3 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/script/gen/types/WManagerLayoutInfo.js +3 -0
- package/script/gen/types/WegItem.d.ts +14 -0
- package/script/gen/types/WegItem.d.ts.map +1 -0
- package/script/gen/types/WegItem.js +2 -0
- package/script/gen/types/WegItems.d.ts +7 -0
- package/script/gen/types/WegItems.d.ts.map +1 -0
- package/script/gen/types/WegItems.js +2 -0
- package/script/gen/types/Widget.d.ts +8 -0
- package/script/gen/types/Widget.d.ts.map +1 -0
- package/script/gen/types/Widget.js +2 -0
- package/script/gen/types/WidgetId.d.ts +3 -0
- package/script/gen/types/WidgetId.d.ts.map +1 -0
- package/script/gen/types/WidgetId.js +2 -0
- package/script/gen/types/WindowManagerLayout.d.ts +9 -0
- package/script/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/script/gen/types/WindowManagerLayout.js +2 -0
- package/script/gen/types/WindowManagerSettings.d.ts +42 -0
- package/script/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettings.js +2 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.js +2 -0
- package/script/gen/types/WmFallbackNode.d.ts +25 -0
- package/script/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/script/gen/types/WmFallbackNode.js +2 -0
- package/script/gen/types/WmHorizontalNode.d.ts +19 -0
- package/script/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/script/gen/types/WmHorizontalNode.js +2 -0
- package/script/gen/types/WmLeafNode.d.ts +21 -0
- package/script/gen/types/WmLeafNode.d.ts.map +1 -0
- package/script/gen/types/WmLeafNode.js +2 -0
- package/script/gen/types/WmNode.d.ts +17 -0
- package/script/gen/types/WmNode.d.ts.map +1 -0
- package/script/gen/types/WmNode.js +2 -0
- package/script/gen/types/WmStackNode.d.ts +25 -0
- package/script/gen/types/WmStackNode.d.ts.map +1 -0
- package/script/gen/types/WmStackNode.js +2 -0
- package/script/gen/types/WmVerticalNode.d.ts +19 -0
- package/script/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/script/gen/types/WmVerticalNode.js +2 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/script/gen/types/WorkspaceConfiguration.js +2 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifier.js +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifierType.js +3 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItem.js +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItemMode.js +3 -0
- package/script/gen/types/mod.d.ts +76 -0
- package/script/gen/types/mod.d.ts.map +1 -0
- package/script/gen/types/mod.js +91 -0
- 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/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/script/src/handlers/commands.d.ts.map +1 -0
- package/script/{handlers/invokers.js → src/handlers/commands.js} +6 -7
- package/{esm → script/src}/handlers/events.d.ts +2 -1
- package/script/src/handlers/events.d.ts.map +1 -0
- package/script/{handlers → src/handlers}/events.js +2 -1
- package/script/src/handlers/invokers.d.ts +26 -0
- package/script/src/handlers/invokers.d.ts.map +1 -0
- package/script/{handlers/index.js → src/handlers/invokers.js} +12 -14
- package/script/src/handlers/mod.d.ts +4 -0
- package/script/src/handlers/mod.d.ts.map +1 -0
- package/script/src/handlers/mod.js +19 -0
- package/script/src/lib.d.ts +5 -0
- package/script/src/lib.d.ts.map +1 -0
- package/script/{lib.js → src/lib.js} +4 -4
- package/script/{state → src/state}/icon_pack.d.ts +1 -1
- package/script/src/state/icon_pack.d.ts.map +1 -0
- package/script/{state → src/state}/icon_pack.js +2 -2
- package/script/src/state/mod.d.ts +40 -0
- package/script/src/state/mod.d.ts.map +1 -0
- package/script/{state/index.js → src/state/mod.js} +7 -7
- package/script/src/state/placeholder.d.ts.map +1 -0
- package/script/src/state/plugin.d.ts +26 -0
- package/script/src/state/plugin.d.ts.map +1 -0
- package/script/src/state/plugin.js +16 -0
- package/script/src/state/profile.d.ts +23 -0
- package/script/src/state/profile.d.ts.map +1 -0
- package/script/src/state/profile.js +10 -0
- package/script/src/state/settings.d.ts +51 -0
- package/script/src/state/settings.d.ts.map +1 -0
- package/script/src/state/settings.js +46 -0
- package/script/src/state/settings_by_app.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.d.ts +20 -0
- package/script/src/state/settings_by_monitor.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.js +20 -0
- package/script/src/state/theme.d.ts +37 -0
- package/script/src/state/theme.d.ts.map +1 -0
- package/script/src/state/theme.js +11 -0
- package/script/src/state/weg_items.d.ts +27 -0
- package/script/src/state/weg_items.d.ts.map +1 -0
- package/script/src/state/weg_items.js +21 -0
- package/script/src/state/widget.d.ts +27 -0
- package/script/src/state/widget.d.ts.map +1 -0
- package/script/src/state/widget.js +11 -0
- package/script/src/state/wm_layout.d.ts.map +1 -0
- package/script/src/system_state/mod.d.ts +3 -0
- package/script/src/system_state/mod.d.ts.map +1 -0
- package/script/src/system_state/mod.js +18 -0
- package/script/src/system_state/monitors.d.ts +25 -0
- package/script/src/system_state/monitors.d.ts.map +1 -0
- package/script/src/system_state/monitors.js +11 -0
- package/script/src/system_state/uiColors.d.ts +33 -0
- package/script/src/system_state/uiColors.d.ts.map +1 -0
- package/script/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/script/src/utils/List.d.ts +25 -0
- package/script/src/utils/List.d.ts.map +1 -0
- package/script/src/utils/List.js +40 -0
- package/script/src/utils/State.d.ts +11 -0
- package/script/src/utils/State.d.ts.map +1 -0
- package/script/src/utils/State.js +17 -0
- package/script/src/utils/layered_hitbox.d.ts.map +1 -0
- package/script/{utils → src/utils}/layered_hitbox.js +3 -3
- package/{esm/utils/index.d.ts → script/src/utils/mod.d.ts} +8 -5
- package/script/src/utils/mod.d.ts.map +1 -0
- package/script/{utils/index.js → src/utils/mod.js} +8 -7
- package/esm/_dnt.shims.d.ts +0 -5
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -61
- package/esm/handlers/events.d.ts.map +0 -1
- package/esm/handlers/index.d.ts +0 -11
- package/esm/handlers/index.d.ts.map +0 -1
- package/esm/handlers/index.js +0 -16
- package/esm/handlers/invokers.d.ts.map +0 -1
- package/esm/lib.d.ts +0 -5
- package/esm/lib.d.ts.map +0 -1
- package/esm/lib.js +0 -4
- package/esm/state/icon_pack.d.ts.map +0 -1
- package/esm/state/index.d.ts +0 -24
- package/esm/state/index.d.ts.map +0 -1
- package/esm/state/placeholder.d.ts.map +0 -1
- package/esm/state/plugin.d.ts +0 -17
- package/esm/state/plugin.d.ts.map +0 -1
- package/esm/state/plugin.js +0 -31
- package/esm/state/profile.d.ts +0 -16
- package/esm/state/profile.d.ts.map +0 -1
- package/esm/state/profile.js +0 -13
- package/esm/state/settings.d.ts +0 -175
- package/esm/state/settings.d.ts.map +0 -1
- package/esm/state/settings.js +0 -195
- package/esm/state/settings_by_app.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.d.ts +0 -43
- package/esm/state/settings_by_monitor.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.js +0 -46
- package/esm/state/theme.d.ts +0 -31
- package/esm/state/theme.d.ts.map +0 -1
- package/esm/state/weg_items.d.ts +0 -36
- package/esm/state/weg_items.d.ts.map +0 -1
- package/esm/state/weg_items.js +0 -8
- package/esm/state/widget.d.ts +0 -4
- package/esm/state/widget.d.ts.map +0 -1
- package/esm/state/widget.js +0 -3
- package/esm/state/wm_layout.d.ts.map +0 -1
- package/esm/system_state/index.d.ts +0 -19
- package/esm/system_state/index.d.ts.map +0 -1
- package/esm/utils/hooks.d.ts +0 -2
- package/esm/utils/hooks.d.ts.map +0 -1
- package/esm/utils/hooks.js +0 -43
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/layered_hitbox.d.ts.map +0 -1
- package/script/_dnt.shims.d.ts +0 -5
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -65
- package/script/handlers/events.d.ts.map +0 -1
- package/script/handlers/index.d.ts +0 -11
- package/script/handlers/index.d.ts.map +0 -1
- package/script/handlers/invokers.d.ts.map +0 -1
- package/script/lib.d.ts +0 -5
- package/script/lib.d.ts.map +0 -1
- package/script/state/icon_pack.d.ts.map +0 -1
- package/script/state/index.d.ts +0 -24
- package/script/state/index.d.ts.map +0 -1
- package/script/state/placeholder.d.ts.map +0 -1
- package/script/state/plugin.d.ts +0 -17
- package/script/state/plugin.d.ts.map +0 -1
- package/script/state/plugin.js +0 -36
- package/script/state/profile.d.ts +0 -16
- package/script/state/profile.d.ts.map +0 -1
- package/script/state/profile.js +0 -17
- package/script/state/settings.d.ts +0 -175
- package/script/state/settings.d.ts.map +0 -1
- package/script/state/settings.js +0 -234
- package/script/state/settings_by_app.d.ts.map +0 -1
- package/script/state/settings_by_monitor.d.ts +0 -43
- package/script/state/settings_by_monitor.d.ts.map +0 -1
- package/script/state/settings_by_monitor.js +0 -56
- package/script/state/theme.d.ts +0 -31
- package/script/state/theme.d.ts.map +0 -1
- package/script/state/weg_items.d.ts +0 -36
- package/script/state/weg_items.d.ts.map +0 -1
- package/script/state/weg_items.js +0 -11
- package/script/state/widget.d.ts +0 -4
- package/script/state/widget.d.ts.map +0 -1
- package/script/state/widget.js +0 -7
- package/script/state/wm_layout.d.ts.map +0 -1
- package/script/system_state/index.d.ts +0 -19
- package/script/system_state/index.d.ts.map +0 -1
- package/script/utils/hooks.d.ts +0 -2
- package/script/utils/hooks.d.ts.map +0 -1
- package/script/utils/hooks.js +0 -44
- package/script/utils/index.d.ts.map +0 -1
- package/script/utils/layered_hitbox.d.ts.map +0 -1
- /package/esm/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/esm/{state → src/state}/placeholder.d.ts +0 -0
- /package/esm/{state → src/state}/placeholder.js +0 -0
- /package/esm/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/esm/{state → src/state}/settings_by_app.js +0 -0
- /package/esm/{state → src/state}/wm_layout.d.ts +0 -0
- /package/esm/{state → src/state}/wm_layout.js +0 -0
- /package/esm/{utils → src/utils}/layered_hitbox.d.ts +0 -0
- /package/script/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/script/{state → src/state}/placeholder.d.ts +0 -0
- /package/script/{state → src/state}/placeholder.js +0 -0
- /package/script/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/script/{state → src/state}/settings_by_app.js +0 -0
- /package/script/{state → src/state}/wm_layout.d.ts +0 -0
- /package/script/{state → src/state}/wm_layout.js +0 -0
- /package/script/{utils → src/utils}/layered_hitbox.d.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A generic, abstract class for managing an array-like collection of items.
|
|
3
|
+
* @template T The type of elements stored in the list.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class List<T = unknown> {
|
|
6
|
+
protected inner: T[];
|
|
7
|
+
/**
|
|
8
|
+
* Constructor for the List class.
|
|
9
|
+
* @param inner The internal array that stores the elements.
|
|
10
|
+
* @throws Error if the provided array is not
|
|
11
|
+
*/
|
|
12
|
+
constructor(inner: T[]);
|
|
13
|
+
/**
|
|
14
|
+
* Provides direct access to the internal array of items.
|
|
15
|
+
* @returns A reference to the internal array of items.
|
|
16
|
+
*/
|
|
17
|
+
asArray(): T[];
|
|
18
|
+
/**
|
|
19
|
+
* Returns a copy of the internal array of items.
|
|
20
|
+
* This ensures the internal array remains immutable when accessed via this method.
|
|
21
|
+
* @returns A new array containing the elements of the internal array.
|
|
22
|
+
*/
|
|
23
|
+
all(): T[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/src/utils/List.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,8BAAsB,IAAI,CAAC,CAAC,GAAG,OAAO;IAMxB,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE;IALhC;;;;OAIG;gBACmB,KAAK,EAAE,CAAC,EAAE;IAShC;;;OAGG;IACI,OAAO,IAAI,CAAC,EAAE;IAIrB;;;;OAIG;IACI,GAAG,IAAI,CAAC,EAAE;CAGlB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A generic, abstract class for managing an array-like collection of items.
|
|
3
|
+
* @template T The type of elements stored in the list.
|
|
4
|
+
*/
|
|
5
|
+
export class List {
|
|
6
|
+
inner;
|
|
7
|
+
/**
|
|
8
|
+
* Constructor for the List class.
|
|
9
|
+
* @param inner The internal array that stores the elements.
|
|
10
|
+
* @throws Error if the provided array is not
|
|
11
|
+
*/
|
|
12
|
+
constructor(inner) {
|
|
13
|
+
this.inner = inner;
|
|
14
|
+
if (!inner) {
|
|
15
|
+
throw new Error('The inner array cannot be null or undefined.');
|
|
16
|
+
}
|
|
17
|
+
if (!Array.isArray(inner)) {
|
|
18
|
+
throw new Error('The inner array must be an array.');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Provides direct access to the internal array of items.
|
|
23
|
+
* @returns A reference to the internal array of items.
|
|
24
|
+
*/
|
|
25
|
+
asArray() {
|
|
26
|
+
return this.inner;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns a copy of the internal array of items.
|
|
30
|
+
* This ensures the internal array remains immutable when accessed via this method.
|
|
31
|
+
* @returns A new array containing the elements of the internal array.
|
|
32
|
+
*/
|
|
33
|
+
all() {
|
|
34
|
+
return [...this.inner];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UnlistenFn } from '@tauri-apps/api/event';
|
|
2
|
+
import { type SeelenCommand, type SeelenEvent } from '../lib.js';
|
|
3
|
+
interface ConstructorWithSingleArg {
|
|
4
|
+
new (inner: any): any;
|
|
5
|
+
}
|
|
6
|
+
type InstanceInvoker<Instance> = () => Promise<Instance>;
|
|
7
|
+
export declare function createInstanceInvoker<This extends ConstructorWithSingleArg>(Class: This, command: SeelenCommand): InstanceInvoker<InstanceType<This>>;
|
|
8
|
+
type InstanceOnEvent<Instance> = (cb: (instance: Instance) => void) => Promise<UnlistenFn>;
|
|
9
|
+
export declare function createInstanceOnEvent<This extends ConstructorWithSingleArg>(Class: This, event: SeelenEvent): InstanceOnEvent<InstanceType<This>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/src/utils/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAEpF,UAAU,wBAAwB;IAEhC,KAAK,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;CACvB;AAED,KAAK,eAAe,CAAC,QAAQ,IAAI,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEzD,wBAAgB,qBAAqB,CAAC,IAAI,SAAS,wBAAwB,EACzE,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,aAAa,GACrB,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAIrC;AAED,KAAK,eAAe,CAAC,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3F,wBAAgB,qBAAqB,CAAC,IAAI,SAAS,wBAAwB,EACzE,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,WAAW,GACjB,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAMrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { invoke, subscribe } from '../lib.js';
|
|
2
|
+
export function createInstanceInvoker(Class, command) {
|
|
3
|
+
return async () => {
|
|
4
|
+
return new Class(await invoke(command));
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export function createInstanceOnEvent(Class, event) {
|
|
8
|
+
return (cb) => {
|
|
9
|
+
return subscribe(event, (eventData) => {
|
|
10
|
+
cb(new Class(eventData.payload));
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layered_hitbox.d.ts","sourceRoot":"","sources":["../../../src/src/utils/layered_hitbox.ts"],"names":[],"mappings":"AAIA,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC,CAwEpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow';
|
|
2
|
-
import { SeelenEvent } from '../handlers/
|
|
2
|
+
import { SeelenEvent } from '../handlers/mod.js';
|
|
3
3
|
export async function declareDocumentAsLayeredHitbox() {
|
|
4
4
|
const webview = getCurrentWebviewWindow();
|
|
5
5
|
const { x, y } = await webview.outerPosition();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WidgetId } from '../lib.js';
|
|
2
2
|
export * from './layered_hitbox.js';
|
|
3
|
-
export declare function getRootElement(): HTMLElement
|
|
3
|
+
export declare function getRootElement(): HTMLElement;
|
|
4
4
|
export declare class Rect {
|
|
5
5
|
left: number;
|
|
6
6
|
top: number;
|
|
@@ -9,9 +9,12 @@ export declare class Rect {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function disableWebviewShortcutsAndContextMenu(): void;
|
|
11
11
|
interface WidgetInformation {
|
|
12
|
-
id:
|
|
12
|
+
id: WidgetId;
|
|
13
|
+
/** decoded webview label */
|
|
13
14
|
label: string;
|
|
14
|
-
|
|
15
|
+
/** base64 url encoded label (used as identifier of the webview) */
|
|
16
|
+
rawLabel: string;
|
|
17
|
+
params: Record<string, string>;
|
|
15
18
|
}
|
|
16
19
|
export declare function getCurrentWidget(): WidgetInformation;
|
|
17
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/utils/mod.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,cAAc,qBAAqB,CAAC;AAEpC,wBAAgB,cAAc,IAAI,WAAW,CAM5C;AAED,qBAAa,IAAI;IACf,IAAI,SAAK;IACT,GAAG,SAAK;IACR,KAAK,SAAK;IACV,MAAM,SAAK;CACZ;AAED,wBAAgB,qCAAqC,IAAI,IAAI,CA+B5D;AAED,UAAU,iBAAiB;IACzB,EAAE,EAAE,QAAQ,CAAC;IACb,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,gBAAgB,IAAI,iBAAiB,CAWpD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { decodeBase64Url } from '../../deps/jsr.io/@std/encoding/1.0.6/mod.js';
|
|
1
2
|
import { getCurrentWindow } from '@tauri-apps/api/window';
|
|
2
|
-
export * from './hooks.js';
|
|
3
3
|
export * from './layered_hitbox.js';
|
|
4
4
|
export function getRootElement() {
|
|
5
5
|
const element = document.getElementById('root');
|
|
@@ -44,14 +44,15 @@ export function disableWebviewShortcutsAndContextMenu() {
|
|
|
44
44
|
globalThis.addEventListener('drop', (e) => e.preventDefault());
|
|
45
45
|
globalThis.addEventListener('dragover', (e) => e.preventDefault());
|
|
46
46
|
}
|
|
47
|
-
// label schema: user/resource__query__monitor:display5
|
|
48
47
|
export function getCurrentWidget() {
|
|
49
|
-
const { label } = getCurrentWindow();
|
|
50
|
-
const
|
|
51
|
-
const query =
|
|
48
|
+
const { label: base64url } = getCurrentWindow();
|
|
49
|
+
const label = new TextDecoder().decode(decodeBase64Url(base64url));
|
|
50
|
+
const [id, query] = label.split('?');
|
|
51
|
+
const params = new URLSearchParams(query);
|
|
52
52
|
return {
|
|
53
|
-
id:
|
|
53
|
+
id: id,
|
|
54
54
|
label,
|
|
55
|
-
|
|
55
|
+
rawLabel: base64url,
|
|
56
|
+
params: Object.fromEntries(params),
|
|
56
57
|
};
|
|
57
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seelen-ui/lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-next.20241218174913",
|
|
4
4
|
"description": "Seelen UI Library for Widgets",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,17 +10,19 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/Seelen-Inc/slu-lib/issues"
|
|
12
12
|
},
|
|
13
|
-
"main": "./script/
|
|
14
|
-
"module": "./esm/
|
|
13
|
+
"main": "./script/gen/types/mod.js",
|
|
14
|
+
"module": "./esm/gen/types/mod.js",
|
|
15
15
|
"exports": {
|
|
16
|
+
"./types": {
|
|
17
|
+
"import": "./esm/gen/types/mod.js",
|
|
18
|
+
"require": "./script/gen/types/mod.js"
|
|
19
|
+
},
|
|
16
20
|
".": {
|
|
17
|
-
"import": "./esm/lib.js",
|
|
18
|
-
"require": "./script/lib.js"
|
|
21
|
+
"import": "./esm/src/lib.js",
|
|
22
|
+
"require": "./script/src/lib.js"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
"private": false,
|
|
22
25
|
"dependencies": {
|
|
23
|
-
"@deno/shim-crypto": "~0.3.1",
|
|
24
26
|
"@tauri-apps/api": "^2.1.1"
|
|
25
27
|
},
|
|
26
28
|
"_generatedBy": "dnt@dev"
|
package/readme.md
CHANGED
|
@@ -3,5 +3,5 @@ This library is to create Widgets for the [Seelen UI](https://github.com/eythaan
|
|
|
3
3
|
|
|
4
4
|
## Links
|
|
5
5
|
- [Github](https://github.com/Seelen-Inc/slu-lib)
|
|
6
|
-
- [NPM](https://
|
|
6
|
+
- [NPM](https://npmjs.com/package/@seelen-ui/lib)
|
|
7
7
|
- [JSR](https://jsr.io/@seelen-ui/lib)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decodes an encoded string with the given lookup table.
|
|
3
|
+
*
|
|
4
|
+
* @param b32 The string to encode.
|
|
5
|
+
* @param lookup The lookup table
|
|
6
|
+
* @returns The encoded string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function decode(b32: string, lookup: ReadonlyArray<string>): Uint8Array;
|
|
9
|
+
/**
|
|
10
|
+
* Encodes the given data using the lookup table.
|
|
11
|
+
*
|
|
12
|
+
* @param data The data to encode.
|
|
13
|
+
* @param lookup The lookup table.
|
|
14
|
+
* @returns The encoded string.
|
|
15
|
+
*/
|
|
16
|
+
export declare function encode(data: ArrayBuffer | Uint8Array | string, lookup: ReadonlyArray<string>): string;
|
|
17
|
+
//# sourceMappingURL=_base32_common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_base32_common.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/_base32_common.ts"],"names":[],"mappings":"AAyCA;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,CAqE7E;AA6BD;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,EACvC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAC5B,MAAM,CA6DR"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// Copyright (c) 2014 Jameson Little. MIT License.
|
|
4
|
+
// This module is browser compatible.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.decode = decode;
|
|
7
|
+
exports.encode = encode;
|
|
8
|
+
/**
|
|
9
|
+
* common code for base32 and base32hex encodings.
|
|
10
|
+
*/
|
|
11
|
+
const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
|
|
12
|
+
const placeHolderPadLookup = [0, 1, , 2, 3, , 4];
|
|
13
|
+
function getPadLength(placeHoldersLen) {
|
|
14
|
+
const maybeLen = placeHolderPadLookup[placeHoldersLen];
|
|
15
|
+
if (typeof maybeLen !== "number") {
|
|
16
|
+
throw new Error("Invalid pad length");
|
|
17
|
+
}
|
|
18
|
+
return maybeLen;
|
|
19
|
+
}
|
|
20
|
+
function getLens(b32) {
|
|
21
|
+
const len = b32.length;
|
|
22
|
+
if (len % 8 > 0) {
|
|
23
|
+
throw new Error(`Cannot decode base32 string as the length must be a multiple of 8: received length ${len}`);
|
|
24
|
+
}
|
|
25
|
+
let validLen = b32.indexOf("=");
|
|
26
|
+
if (validLen === -1)
|
|
27
|
+
validLen = len;
|
|
28
|
+
const placeHoldersLen = validLen === len ? 0 : 8 - (validLen % 8);
|
|
29
|
+
return [validLen, placeHoldersLen];
|
|
30
|
+
}
|
|
31
|
+
function getByteLength(validLen, placeHoldersLen) {
|
|
32
|
+
return ((validLen + placeHoldersLen) * 5) / 8 - getPadLength(placeHoldersLen);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Decodes an encoded string with the given lookup table.
|
|
36
|
+
*
|
|
37
|
+
* @param b32 The string to encode.
|
|
38
|
+
* @param lookup The lookup table
|
|
39
|
+
* @returns The encoded string.
|
|
40
|
+
*/
|
|
41
|
+
function decode(b32, lookup) {
|
|
42
|
+
const revLookup = [];
|
|
43
|
+
lookup.forEach((c, i) => (revLookup[c.charCodeAt(0)] = i));
|
|
44
|
+
let tmp;
|
|
45
|
+
const [validLen, placeHoldersLen] = getLens(b32);
|
|
46
|
+
const arr = new Uint8Array(getByteLength(validLen, placeHoldersLen));
|
|
47
|
+
let curByte = 0;
|
|
48
|
+
// if there are placeholders, only get up to the last complete 8 chars
|
|
49
|
+
const len = placeHoldersLen > 0 ? validLen - 8 : validLen;
|
|
50
|
+
let i;
|
|
51
|
+
for (i = 0; i < len; i += 8) {
|
|
52
|
+
tmp = (revLookup[b32.charCodeAt(i)] << 20) |
|
|
53
|
+
(revLookup[b32.charCodeAt(i + 1)] << 15) |
|
|
54
|
+
(revLookup[b32.charCodeAt(i + 2)] << 10) |
|
|
55
|
+
(revLookup[b32.charCodeAt(i + 3)] << 5) |
|
|
56
|
+
revLookup[b32.charCodeAt(i + 4)];
|
|
57
|
+
arr[curByte++] = (tmp >> 17) & 0xff;
|
|
58
|
+
arr[curByte++] = (tmp >> 9) & 0xff;
|
|
59
|
+
arr[curByte++] = (tmp >> 1) & 0xff;
|
|
60
|
+
tmp = ((tmp & 1) << 15) |
|
|
61
|
+
(revLookup[b32.charCodeAt(i + 5)] << 10) |
|
|
62
|
+
(revLookup[b32.charCodeAt(i + 6)] << 5) |
|
|
63
|
+
revLookup[b32.charCodeAt(i + 7)];
|
|
64
|
+
arr[curByte++] = (tmp >> 8) & 0xff;
|
|
65
|
+
arr[curByte++] = tmp & 0xff;
|
|
66
|
+
}
|
|
67
|
+
if (placeHoldersLen === 1) {
|
|
68
|
+
tmp = (revLookup[b32.charCodeAt(i)] << 20) |
|
|
69
|
+
(revLookup[b32.charCodeAt(i + 1)] << 15) |
|
|
70
|
+
(revLookup[b32.charCodeAt(i + 2)] << 10) |
|
|
71
|
+
(revLookup[b32.charCodeAt(i + 3)] << 5) |
|
|
72
|
+
revLookup[b32.charCodeAt(i + 4)];
|
|
73
|
+
arr[curByte++] = (tmp >> 17) & 0xff;
|
|
74
|
+
arr[curByte++] = (tmp >> 9) & 0xff;
|
|
75
|
+
arr[curByte++] = (tmp >> 1) & 0xff;
|
|
76
|
+
tmp = ((tmp & 1) << 7) |
|
|
77
|
+
(revLookup[b32.charCodeAt(i + 5)] << 2) |
|
|
78
|
+
(revLookup[b32.charCodeAt(i + 6)] >> 3);
|
|
79
|
+
arr[curByte++] = tmp & 0xff;
|
|
80
|
+
}
|
|
81
|
+
else if (placeHoldersLen === 3) {
|
|
82
|
+
tmp = (revLookup[b32.charCodeAt(i)] << 19) |
|
|
83
|
+
(revLookup[b32.charCodeAt(i + 1)] << 14) |
|
|
84
|
+
(revLookup[b32.charCodeAt(i + 2)] << 9) |
|
|
85
|
+
(revLookup[b32.charCodeAt(i + 3)] << 4) |
|
|
86
|
+
(revLookup[b32.charCodeAt(i + 4)] >> 1);
|
|
87
|
+
arr[curByte++] = (tmp >> 16) & 0xff;
|
|
88
|
+
arr[curByte++] = (tmp >> 8) & 0xff;
|
|
89
|
+
arr[curByte++] = tmp & 0xff;
|
|
90
|
+
}
|
|
91
|
+
else if (placeHoldersLen === 4) {
|
|
92
|
+
tmp = (revLookup[b32.charCodeAt(i)] << 11) |
|
|
93
|
+
(revLookup[b32.charCodeAt(i + 1)] << 6) |
|
|
94
|
+
(revLookup[b32.charCodeAt(i + 2)] << 1) |
|
|
95
|
+
(revLookup[b32.charCodeAt(i + 3)] >> 4);
|
|
96
|
+
arr[curByte++] = (tmp >> 8) & 0xff;
|
|
97
|
+
arr[curByte++] = tmp & 0xff;
|
|
98
|
+
}
|
|
99
|
+
else if (placeHoldersLen === 6) {
|
|
100
|
+
tmp = (revLookup[b32.charCodeAt(i)] << 3) |
|
|
101
|
+
(revLookup[b32.charCodeAt(i + 1)] >> 2);
|
|
102
|
+
arr[curByte++] = tmp & 0xff;
|
|
103
|
+
}
|
|
104
|
+
return arr;
|
|
105
|
+
}
|
|
106
|
+
function encodeChunk(uint8, start, end, lookup) {
|
|
107
|
+
let tmp;
|
|
108
|
+
const output = [];
|
|
109
|
+
for (let i = start; i < end; i += 5) {
|
|
110
|
+
tmp = ((uint8[i] << 16) & 0xff0000) |
|
|
111
|
+
((uint8[i + 1] << 8) & 0xff00) |
|
|
112
|
+
(uint8[i + 2] & 0xff);
|
|
113
|
+
output.push(lookup[(tmp >> 19) & 0x1f]);
|
|
114
|
+
output.push(lookup[(tmp >> 14) & 0x1f]);
|
|
115
|
+
output.push(lookup[(tmp >> 9) & 0x1f]);
|
|
116
|
+
output.push(lookup[(tmp >> 4) & 0x1f]);
|
|
117
|
+
tmp = ((tmp & 0xf) << 16) |
|
|
118
|
+
((uint8[i + 3] << 8) & 0xff00) |
|
|
119
|
+
(uint8[i + 4] & 0xff);
|
|
120
|
+
output.push(lookup[(tmp >> 15) & 0x1f]);
|
|
121
|
+
output.push(lookup[(tmp >> 10) & 0x1f]);
|
|
122
|
+
output.push(lookup[(tmp >> 5) & 0x1f]);
|
|
123
|
+
output.push(lookup[tmp & 0x1f]);
|
|
124
|
+
}
|
|
125
|
+
return output.join("");
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Encodes the given data using the lookup table.
|
|
129
|
+
*
|
|
130
|
+
* @param data The data to encode.
|
|
131
|
+
* @param lookup The lookup table.
|
|
132
|
+
* @returns The encoded string.
|
|
133
|
+
*/
|
|
134
|
+
function encode(data, lookup) {
|
|
135
|
+
const uint8 = (0, _validate_binary_like_js_1.validateBinaryLike)(data);
|
|
136
|
+
let tmp;
|
|
137
|
+
const len = uint8.length;
|
|
138
|
+
const extraBytes = len % 5;
|
|
139
|
+
const parts = [];
|
|
140
|
+
const maxChunkLength = 16385; // must be multiple of 5
|
|
141
|
+
const len2 = len - extraBytes;
|
|
142
|
+
// go through the array every 5 bytes, we'll deal with trailing stuff later
|
|
143
|
+
for (let i = 0; i < len2; i += maxChunkLength) {
|
|
144
|
+
parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength, lookup));
|
|
145
|
+
}
|
|
146
|
+
// pad the end with zeros, but make sure to not forget the extra bytes
|
|
147
|
+
if (extraBytes === 4) {
|
|
148
|
+
tmp = ((uint8[len2] & 0xff) << 16) |
|
|
149
|
+
((uint8[len2 + 1] & 0xff) << 8) |
|
|
150
|
+
(uint8[len2 + 2] & 0xff);
|
|
151
|
+
parts.push(lookup[(tmp >> 19) & 0x1f]);
|
|
152
|
+
parts.push(lookup[(tmp >> 14) & 0x1f]);
|
|
153
|
+
parts.push(lookup[(tmp >> 9) & 0x1f]);
|
|
154
|
+
parts.push(lookup[(tmp >> 4) & 0x1f]);
|
|
155
|
+
tmp = ((tmp & 0xf) << 11) | (uint8[len2 + 3] << 3);
|
|
156
|
+
parts.push(lookup[(tmp >> 10) & 0x1f]);
|
|
157
|
+
parts.push(lookup[(tmp >> 5) & 0x1f]);
|
|
158
|
+
parts.push(lookup[tmp & 0x1f]);
|
|
159
|
+
parts.push("=");
|
|
160
|
+
}
|
|
161
|
+
else if (extraBytes === 3) {
|
|
162
|
+
tmp = ((uint8[len2] & 0xff) << 17) |
|
|
163
|
+
((uint8[len2 + 1] & 0xff) << 9) |
|
|
164
|
+
((uint8[len2 + 2] & 0xff) << 1);
|
|
165
|
+
parts.push(lookup[(tmp >> 20) & 0x1f]);
|
|
166
|
+
parts.push(lookup[(tmp >> 15) & 0x1f]);
|
|
167
|
+
parts.push(lookup[(tmp >> 10) & 0x1f]);
|
|
168
|
+
parts.push(lookup[(tmp >> 5) & 0x1f]);
|
|
169
|
+
parts.push(lookup[tmp & 0x1f]);
|
|
170
|
+
parts.push("===");
|
|
171
|
+
}
|
|
172
|
+
else if (extraBytes === 2) {
|
|
173
|
+
tmp = ((uint8[len2] & 0xff) << 12) | ((uint8[len2 + 1] & 0xff) << 4);
|
|
174
|
+
parts.push(lookup[(tmp >> 15) & 0x1f]);
|
|
175
|
+
parts.push(lookup[(tmp >> 10) & 0x1f]);
|
|
176
|
+
parts.push(lookup[(tmp >> 5) & 0x1f]);
|
|
177
|
+
parts.push(lookup[tmp & 0x1f]);
|
|
178
|
+
parts.push("====");
|
|
179
|
+
}
|
|
180
|
+
else if (extraBytes === 1) {
|
|
181
|
+
tmp = (uint8[len2] & 0xff) << 2;
|
|
182
|
+
parts.push(lookup[(tmp >> 5) & 0x1f]);
|
|
183
|
+
parts.push(lookup[tmp & 0x1f]);
|
|
184
|
+
parts.push("======");
|
|
185
|
+
}
|
|
186
|
+
return parts.join("");
|
|
187
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.validateBinaryLike = validateBinaryLike;
|
|
5
|
+
const encoder = new TextEncoder();
|
|
6
|
+
function getTypeName(value) {
|
|
7
|
+
const type = typeof value;
|
|
8
|
+
if (type !== "object") {
|
|
9
|
+
return type;
|
|
10
|
+
}
|
|
11
|
+
else if (value === null) {
|
|
12
|
+
return "null";
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return value?.constructor?.name ?? "object";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function validateBinaryLike(source) {
|
|
19
|
+
if (typeof source === "string") {
|
|
20
|
+
return encoder.encode(source);
|
|
21
|
+
}
|
|
22
|
+
else if (source instanceof Uint8Array) {
|
|
23
|
+
return source;
|
|
24
|
+
}
|
|
25
|
+
else if (source instanceof ArrayBuffer) {
|
|
26
|
+
return new Uint8Array(source);
|
|
27
|
+
}
|
|
28
|
+
throw new TypeError(`Cannot validate the input as it must be a Uint8Array, a string, or an ArrayBuffer: received a value of the type ${getTypeName(source)}`);
|
|
29
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported ascii85 standards for {@linkcode EncodeAscii85Options} and
|
|
3
|
+
* {@linkcode DecodeAscii85Options}.
|
|
4
|
+
*/
|
|
5
|
+
export type Ascii85Standard = "Adobe" | "btoa" | "RFC 1924" | "Z85";
|
|
6
|
+
/** Options for {@linkcode encodeAscii85}. */
|
|
7
|
+
export interface EncodeAscii85Options {
|
|
8
|
+
/**
|
|
9
|
+
* Character set and delimiter (if supported and used).
|
|
10
|
+
*
|
|
11
|
+
* @default {"Adobe"}
|
|
12
|
+
*/
|
|
13
|
+
standard?: Ascii85Standard;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to use a delimiter (if supported).
|
|
16
|
+
*
|
|
17
|
+
* @default {false}
|
|
18
|
+
*/
|
|
19
|
+
delimiter?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Converts data into an ascii85-encoded string.
|
|
23
|
+
*
|
|
24
|
+
* @param data The data to encode.
|
|
25
|
+
* @param options Options for encoding.
|
|
26
|
+
*
|
|
27
|
+
* @returns The ascii85-encoded string.
|
|
28
|
+
*
|
|
29
|
+
* @example Usage
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { encodeAscii85 } from "@std/encoding/ascii85";
|
|
32
|
+
* import { assertEquals } from "@std/assert";
|
|
33
|
+
*
|
|
34
|
+
* assertEquals(encodeAscii85("Hello world!"), "87cURD]j7BEbo80");
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function encodeAscii85(data: ArrayBuffer | Uint8Array | string, options?: EncodeAscii85Options): string;
|
|
38
|
+
/** Options for {@linkcode decodeAscii85}. */
|
|
39
|
+
export type DecodeAscii85Options = Omit<EncodeAscii85Options, "delimiter">;
|
|
40
|
+
/**
|
|
41
|
+
* Decodes a ascii85-encoded string.
|
|
42
|
+
*
|
|
43
|
+
* @param ascii85 The ascii85-encoded string to decode.
|
|
44
|
+
* @param options Options for decoding.
|
|
45
|
+
* @returns The decoded data.
|
|
46
|
+
*
|
|
47
|
+
* @example Usage
|
|
48
|
+
* ```ts
|
|
49
|
+
* import { decodeAscii85 } from "@std/encoding/ascii85";
|
|
50
|
+
* import { assertEquals } from "@std/assert";
|
|
51
|
+
*
|
|
52
|
+
* assertEquals(
|
|
53
|
+
* decodeAscii85("87cURD]j7BEbo80"),
|
|
54
|
+
* new TextEncoder().encode("Hello world!"),
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function decodeAscii85(ascii85: string, options?: DecodeAscii85Options): Uint8Array;
|
|
59
|
+
//# sourceMappingURL=ascii85.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ascii85.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/ascii85.ts"],"names":[],"mappings":"AAyBA;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;AAEpE,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAOD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,EACvC,OAAO,GAAE,oBAAyB,GACjC,MAAM,CA6DR;AAED,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oBAAyB,GACjC,UAAU,CA4CZ"}
|