winui-svelte 0.0.3 → 0.0.5
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/API.md +1267 -21
- package/README.md +178 -101
- package/dist/accessibility/announce.d.ts +22 -0
- package/dist/accessibility/announce.d.ts.map +1 -0
- package/dist/accessibility/announce.js +52 -0
- package/dist/accessibility/announce.js.map +1 -0
- package/dist/accessibility/audit/accessibility-rules.json +100 -0
- package/dist/accessibility/audit/audit-tree.d.ts +48 -0
- package/dist/accessibility/audit/audit-tree.d.ts.map +1 -0
- package/dist/accessibility/audit/audit-tree.js +125 -0
- package/dist/accessibility/audit/audit-tree.js.map +1 -0
- package/dist/accessibility/audit/contrast.d.ts +65 -0
- package/dist/accessibility/audit/contrast.d.ts.map +1 -0
- package/dist/accessibility/audit/contrast.js +120 -0
- package/dist/accessibility/audit/contrast.js.map +1 -0
- package/dist/accessibility/audit/index.d.ts +19 -0
- package/dist/accessibility/audit/index.d.ts.map +1 -0
- package/dist/accessibility/audit/index.js +22 -0
- package/dist/accessibility/audit/index.js.map +1 -0
- package/dist/accessibility/audit/rules.d.ts +87 -0
- package/dist/accessibility/audit/rules.d.ts.map +1 -0
- package/dist/accessibility/audit/rules.js +67 -0
- package/dist/accessibility/audit/rules.js.map +1 -0
- package/dist/accessibility/audit/visual-tree-host.d.ts +5 -0
- package/dist/accessibility/audit/visual-tree-host.d.ts.map +1 -0
- package/dist/accessibility/audit/visual-tree-host.js +139 -0
- package/dist/accessibility/audit/visual-tree-host.js.map +1 -0
- package/dist/accessibility/index.d.ts +6 -0
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/index.js +6 -0
- package/dist/accessibility/index.js.map +1 -0
- package/dist/accessibility/live-priority.d.ts +22 -0
- package/dist/accessibility/live-priority.d.ts.map +1 -0
- package/dist/accessibility/live-priority.js +27 -0
- package/dist/accessibility/live-priority.js.map +1 -0
- package/dist/accessibility/live-region.d.ts +16 -0
- package/dist/accessibility/live-region.d.ts.map +1 -0
- package/dist/accessibility/live-region.js +20 -0
- package/dist/accessibility/live-region.js.map +1 -0
- package/dist/accessibility/notification.d.ts +15 -0
- package/dist/accessibility/notification.d.ts.map +1 -0
- package/dist/accessibility/notification.js +28 -0
- package/dist/accessibility/notification.js.map +1 -0
- package/dist/app/activate.d.ts +44 -0
- package/dist/app/activate.d.ts.map +1 -0
- package/dist/app/activate.js +64 -0
- package/dist/app/activate.js.map +1 -0
- package/dist/app/activation/classify.d.ts +41 -0
- package/dist/app/activation/classify.d.ts.map +1 -0
- package/dist/app/activation/classify.js +108 -0
- package/dist/app/activation/classify.js.map +1 -0
- package/dist/app/activation/command.d.ts +41 -0
- package/dist/app/activation/command.d.ts.map +1 -0
- package/dist/app/activation/command.js +63 -0
- package/dist/app/activation/command.js.map +1 -0
- package/dist/app/activation/context.d.ts +23 -0
- package/dist/app/activation/context.d.ts.map +1 -0
- package/dist/app/activation/context.js +15 -0
- package/dist/app/activation/context.js.map +1 -0
- package/dist/app/activation/index.d.ts +11 -0
- package/dist/app/activation/index.d.ts.map +1 -0
- package/dist/app/activation/index.js +5 -0
- package/dist/app/activation/index.js.map +1 -0
- package/dist/app/activation/kinds.d.ts +48 -0
- package/dist/app/activation/kinds.d.ts.map +1 -0
- package/dist/app/activation/kinds.js +9 -0
- package/dist/app/activation/kinds.js.map +1 -0
- package/dist/app/activation/login.d.ts +55 -0
- package/dist/app/activation/login.d.ts.map +1 -0
- package/dist/app/activation/login.js +68 -0
- package/dist/app/activation/login.js.map +1 -0
- package/dist/app/activation/native.d.ts +16 -0
- package/dist/app/activation/native.d.ts.map +1 -0
- package/dist/app/activation/native.js +260 -0
- package/dist/app/activation/native.js.map +1 -0
- package/dist/app/activation/protocol-handlers.d.ts +29 -0
- package/dist/app/activation/protocol-handlers.d.ts.map +1 -0
- package/dist/app/activation/protocol-handlers.js +64 -0
- package/dist/app/activation/protocol-handlers.js.map +1 -0
- package/dist/app/activation/receive.d.ts +44 -0
- package/dist/app/activation/receive.d.ts.map +1 -0
- package/dist/app/activation/receive.js +60 -0
- package/dist/app/activation/receive.js.map +1 -0
- package/dist/app/activation/registration.d.ts +104 -0
- package/dist/app/activation/registration.d.ts.map +1 -0
- package/dist/app/activation/registration.js +240 -0
- package/dist/app/activation/registration.js.map +1 -0
- package/dist/app/activation/registry.d.ts +23 -0
- package/dist/app/activation/registry.d.ts.map +1 -0
- package/dist/app/activation/registry.js +2 -0
- package/dist/app/activation/registry.js.map +1 -0
- package/dist/app/activation/scheme.d.ts +36 -0
- package/dist/app/activation/scheme.d.ts.map +1 -0
- package/dist/app/activation/scheme.js +103 -0
- package/dist/app/activation/scheme.js.map +1 -0
- package/dist/app/hotkeys/errors.d.ts +22 -0
- package/dist/app/hotkeys/errors.d.ts.map +1 -0
- package/dist/app/hotkeys/errors.js +23 -0
- package/dist/app/hotkeys/errors.js.map +1 -0
- package/dist/app/hotkeys/index.d.ts +30 -0
- package/dist/app/hotkeys/index.d.ts.map +1 -0
- package/dist/app/hotkeys/index.js +59 -0
- package/dist/app/hotkeys/index.js.map +1 -0
- package/dist/app/hotkeys/keys.d.ts +43 -0
- package/dist/app/hotkeys/keys.d.ts.map +1 -0
- package/dist/app/hotkeys/keys.js +135 -0
- package/dist/app/hotkeys/keys.js.map +1 -0
- package/dist/app/hotkeys/native.d.ts +10 -0
- package/dist/app/hotkeys/native.d.ts.map +1 -0
- package/dist/app/hotkeys/native.js +35 -0
- package/dist/app/hotkeys/native.js.map +1 -0
- package/dist/app/hotkeys/registry.d.ts +67 -0
- package/dist/app/hotkeys/registry.d.ts.map +1 -0
- package/dist/app/hotkeys/registry.js +85 -0
- package/dist/app/hotkeys/registry.js.map +1 -0
- package/dist/app/index.d.ts +6 -0
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +3 -0
- package/dist/app/index.js.map +1 -1
- package/dist/app/launch-command.d.ts +46 -0
- package/dist/app/launch-command.d.ts.map +1 -0
- package/dist/app/launch-command.js +61 -0
- package/dist/app/launch-command.js.map +1 -0
- package/dist/app/native.d.ts +16 -0
- package/dist/app/native.d.ts.map +1 -0
- package/dist/app/native.js +48 -0
- package/dist/app/native.js.map +1 -0
- package/dist/app/notification-schedule.d.ts +16 -0
- package/dist/app/notification-schedule.d.ts.map +1 -0
- package/dist/app/notification-schedule.js +20 -0
- package/dist/app/notification-schedule.js.map +1 -0
- package/dist/app/notification-source.d.ts +13 -0
- package/dist/app/notification-source.d.ts.map +1 -1
- package/dist/app/notification-source.js +22 -7
- package/dist/app/notification-source.js.map +1 -1
- package/dist/app/notify.d.ts +37 -1
- package/dist/app/notify.d.ts.map +1 -1
- package/dist/app/notify.js +30 -10
- package/dist/app/notify.js.map +1 -1
- package/dist/app/relaunch.d.ts +46 -0
- package/dist/app/relaunch.d.ts.map +1 -0
- package/dist/app/relaunch.js +45 -0
- package/dist/app/relaunch.js.map +1 -0
- package/dist/app/restart-after-crash.d.ts +57 -0
- package/dist/app/restart-after-crash.d.ts.map +1 -0
- package/dist/app/restart-after-crash.js +81 -0
- package/dist/app/restart-after-crash.js.map +1 -0
- package/dist/app/schedule-bindings.d.ts +4 -0
- package/dist/app/schedule-bindings.d.ts.map +1 -0
- package/dist/app/schedule-bindings.js +4 -0
- package/dist/app/schedule-bindings.js.map +1 -0
- package/dist/app/windows-time.d.ts +10 -0
- package/dist/app/windows-time.d.ts.map +1 -0
- package/dist/app/windows-time.js +13 -0
- package/dist/app/windows-time.js.map +1 -0
- package/dist/bindings/.dynwinrt-managed +1 -1
- package/dist/bindings/microsoft/ui/input/CharacterReceivedEventArgs.d.ts +40 -0
- package/dist/bindings/microsoft/ui/input/CharacterReceivedEventArgs.js +89 -0
- package/dist/bindings/microsoft/ui/input/ContextMenuKeyEventArgs.d.ts +16 -0
- package/dist/bindings/microsoft/ui/input/ContextMenuKeyEventArgs.js +51 -0
- package/dist/bindings/microsoft/ui/input/IInputKeyboardSource2.d.ts +133 -0
- package/dist/bindings/microsoft/ui/input/IInputKeyboardSource2.js +494 -0
- package/dist/bindings/microsoft/ui/input/InputKeyboardSource.d.ts +102 -0
- package/dist/bindings/microsoft/ui/input/InputKeyboardSource.js +346 -0
- package/dist/bindings/microsoft/ui/input/KeyEventArgs.d.ts +46 -0
- package/dist/bindings/microsoft/ui/input/KeyEventArgs.js +100 -0
- package/dist/bindings/microsoft/ui/input/VirtualKeyStates.d.ts +19 -0
- package/dist/bindings/microsoft/ui/input/VirtualKeyStates.js +20 -0
- package/dist/bindings/microsoft/ui/xaml/automation/AutomationProperty.d.ts +10 -0
- package/dist/bindings/microsoft/ui/xaml/automation/AutomationProperty.js +39 -0
- package/dist/bindings/microsoft/ui/xaml/automation/AutomationTextEditChangeType.d.ts +23 -0
- package/dist/bindings/microsoft/ui/xaml/automation/AutomationTextEditChangeType.js +24 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationEvents.d.ts +127 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationEvents.js +128 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNavigationDirection.d.ts +27 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNavigationDirection.js +28 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNotificationKind.d.ts +27 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNotificationKind.js +28 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNotificationProcessing.d.ts +27 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationNotificationProcessing.js +28 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationOrientation.d.ts +19 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationOrientation.js +20 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationPeer.d.ts +373 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationPeer.js +741 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationPeerAnnotation.d.ts +57 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationPeerAnnotation.js +216 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationStructureChangeType.d.ts +31 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/AutomationStructureChangeType.js +32 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/FrameworkElementAutomationPeer.d.ts +142 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/FrameworkElementAutomationPeer.js +531 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/IAutomationPeer.d.ts +448 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/IAutomationPeer.js +1073 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/IAutomationPeerProtected.d.ts +32 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/IAutomationPeerProtected.js +138 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/PatternInterface.d.ts +143 -0
- package/dist/bindings/microsoft/ui/xaml/automation/peers/PatternInterface.js +144 -0
- package/dist/bindings/microsoft/ui/xaml/automation/provider/IRawElementProviderSimple.d.ts +25 -0
- package/dist/bindings/microsoft/ui/xaml/automation/provider/IRawElementProviderSimple.js +110 -0
- package/dist/bindings/microsoft/ui/xaml/input/FindNextElementOptions.d.ts +52 -0
- package/dist/bindings/microsoft/ui/xaml/input/FindNextElementOptions.js +133 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManager.d.ts +159 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManager.js +360 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManagerGotFocusEventArgs.d.ts +21 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManagerGotFocusEventArgs.js +58 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManagerLostFocusEventArgs.d.ts +21 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusManagerLostFocusEventArgs.js +58 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusMovementResult.d.ts +15 -0
- package/dist/bindings/microsoft/ui/xaml/input/FocusMovementResult.js +47 -0
- package/dist/bindings/microsoft/ui/xaml/input/XYFocusNavigationStrategyOverride.d.ts +27 -0
- package/dist/bindings/microsoft/ui/xaml/input/XYFocusNavigationStrategyOverride.js +28 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/BasicConnectedAnimationConfiguration.d.ts +11 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/BasicConnectedAnimationConfiguration.js +62 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/DirectConnectedAnimationConfiguration.d.ts +11 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/DirectConnectedAnimationConfiguration.js +62 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/GravityConnectedAnimationConfiguration.d.ts +17 -0
- package/dist/bindings/microsoft/ui/xaml/media/animation/GravityConnectedAnimationConfiguration.js +74 -0
- package/dist/bindings/windows/application-model/AddResourcePackageOptions.d.ts +7 -0
- package/dist/bindings/windows/application-model/AddResourcePackageOptions.js +8 -0
- package/dist/bindings/windows/application-model/IPackageCatalog2.d.ts +50 -0
- package/dist/bindings/windows/application-model/IPackageCatalog2.js +211 -0
- package/dist/bindings/windows/application-model/IPackageCatalog3.d.ts +29 -0
- package/dist/bindings/windows/application-model/IPackageCatalog3.js +136 -0
- package/dist/bindings/windows/application-model/IPackageCatalog4.d.ts +60 -0
- package/dist/bindings/windows/application-model/IPackageCatalog4.js +199 -0
- package/dist/bindings/windows/application-model/PackageCatalog.d.ts +100 -0
- package/dist/bindings/windows/application-model/PackageCatalog.js +440 -0
- package/dist/bindings/windows/application-model/PackageCatalogAddOptionalPackageResult.d.ts +10 -0
- package/dist/bindings/windows/application-model/PackageCatalogAddOptionalPackageResult.js +47 -0
- package/dist/bindings/windows/application-model/PackageCatalogAddResourcePackageResult.d.ts +11 -0
- package/dist/bindings/windows/application-model/PackageCatalogAddResourcePackageResult.js +51 -0
- package/dist/bindings/windows/application-model/PackageCatalogRemoveOptionalPackagesResult.d.ts +10 -0
- package/dist/bindings/windows/application-model/PackageCatalogRemoveOptionalPackagesResult.js +50 -0
- package/dist/bindings/windows/application-model/PackageCatalogRemoveResourcePackagesResult.d.ts +10 -0
- package/dist/bindings/windows/application-model/PackageCatalogRemoveResourcePackagesResult.js +50 -0
- package/dist/bindings/windows/application-model/PackageContentGroupStagingEventArgs.d.ts +15 -0
- package/dist/bindings/windows/application-model/PackageContentGroupStagingEventArgs.js +67 -0
- package/dist/bindings/windows/application-model/PackageInstallingEventArgs.d.ts +13 -0
- package/dist/bindings/windows/application-model/PackageInstallingEventArgs.js +59 -0
- package/dist/bindings/windows/application-model/PackageStagingEventArgs.d.ts +13 -0
- package/dist/bindings/windows/application-model/PackageStagingEventArgs.js +59 -0
- package/dist/bindings/windows/application-model/PackageStatusChangedEventArgs.d.ts +9 -0
- package/dist/bindings/windows/application-model/PackageStatusChangedEventArgs.js +43 -0
- package/dist/bindings/windows/application-model/PackageUninstallingEventArgs.d.ts +13 -0
- package/dist/bindings/windows/application-model/PackageUninstallingEventArgs.js +59 -0
- package/dist/bindings/windows/application-model/PackageUpdatingEventArgs.d.ts +14 -0
- package/dist/bindings/windows/application-model/PackageUpdatingEventArgs.js +63 -0
- package/dist/bindings/windows/application-model/StartupTask.d.ts +15 -0
- package/dist/bindings/windows/application-model/StartupTask.js +115 -0
- package/dist/bindings/windows/application-model/StartupTaskState.d.ts +5 -0
- package/dist/bindings/windows/application-model/StartupTaskState.js +6 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputFocusManagerGotFocusEventArgs_g9744aab498e22ee2.d.ts +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputFocusManagerGotFocusEventArgs_g9744aab498e22ee2.js +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputFocusManagerLostFocusEventArgs_g1708c8c6742d9f14.d.ts +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputFocusManagerLostFocusEventArgs_g1708c8c6742d9f14.js +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputGettingFocusEventArgs_gcf469412ccadc527.d.ts +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputGettingFocusEventArgs_gcf469412ccadc527.js +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputLosingFocusEventArgs_g01067b38dcf7cb15.d.ts +7 -0
- package/dist/bindings/windows/foundation/EventHandler_MicrosoftUIXamlInputLosingFocusEventArgs_g01067b38dcf7cb15.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputCharacterReceivedEventArgs_g949756a8af790124.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputCharacterReceivedEventArgs_g949756a8af790124.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputContextMenuKeyEventArgs_gfaa54200cb240b39.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputContextMenuKeyEventArgs_gfaa54200cb240b39.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputKeyEventArgs_gead6188cb3dd043f.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_MicrosoftUIInputInputKeyboardSource_MicrosoftUIInputKeyEventArgs_gead6188cb3dd043f.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageContentGroupStag_g9de03bf71c8249f6.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageContentGroupStag_g9de03bf71c8249f6.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageInstallingEventA_g5da5beb9a0e17bc6.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageInstallingEventA_g5da5beb9a0e17bc6.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageStagingEventArgs_ga7c7c75d178b56a6.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageStagingEventArgs_ga7c7c75d178b56a6.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageStatusChangedEve_ge8daadde37a07d11.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageStatusChangedEve_ge8daadde37a07d11.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageUninstallingEven_gb8f6a82edaf89485.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageUninstallingEven_gb8f6a82edaf89485.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageUpdatingEventArg_gb2c74bce54d9728d.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelPackageCatalog_WindowsApplicationModelPackageUpdatingEventArg_gb2c74bce54d9728d.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreContext_Object_ga48d68d009829e64.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreContext_Object_ga48d68d009829e64.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStorePackageLicense_Object_gc978b769c354e904.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStorePackageLicense_Object_gc978b769c354e904.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreQueueItem_Object_g088e531e702509cf.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreQueueItem_Object_g088e531e702509cf.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreQueueItem_WindowsServicesStoreStoreQueueItemCompletedEventA_g34ce9111d212b7b3.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsServicesStoreStoreQueueItem_WindowsServicesStoreStoreQueueItemCompletedEventA_g34ce9111d212b7b3.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsUINotificationsToastNotificationManagerForUser_Object_gf9f98c6574495e8c.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsUINotificationsToastNotificationManagerForUser_Object_gf9f98c6574495e8c.js +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsUINotificationsToastNotifier_WindowsUINotificationsScheduledToastNotification_g001c9266a166b291.d.ts +8 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsUINotificationsToastNotifier_WindowsUINotificationsScheduledToastNotification_g001c9266a166b291.js +7 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsApplicationModelPackage_g6cb7c58670977615.d.ts +23 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsApplicationModelPackage_g6cb7c58670977615.js +45 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsServicesStoreStorePackageUpdate_g2b3af8b1803050c9.d.ts +23 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsServicesStoreStorePackageUpdate_g2b3af8b1803050c9.js +45 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsServicesStoreStoreQueueItem_gefa6c894c870ec86.d.ts +23 -0
- package/dist/bindings/windows/foundation/collections/IIterable_WindowsServicesStoreStoreQueueItem_gefa6c894c870ec86.js +45 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsApplicationModelPackage_gfb85903b74efaccc.d.ts +31 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsApplicationModelPackage_gfb85903b74efaccc.js +67 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsServicesStoreStorePackageUpdate_gd49c43fc9590df8e.d.ts +31 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsServicesStoreStorePackageUpdate_gd49c43fc9590df8e.js +67 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsServicesStoreStoreQueueItem_gb618559796af22f1.d.ts +31 -0
- package/dist/bindings/windows/foundation/collections/IIterator_WindowsServicesStoreStoreQueueItem_gb618559796af22f1.js +67 -0
- package/dist/bindings/windows/foundation/collections/IMapView_String_WindowsServicesStoreStoreLicense_g162ecf9ec8342f7c.d.ts +36 -0
- package/dist/bindings/windows/foundation/collections/IMapView_String_WindowsServicesStoreStoreLicense_g162ecf9ec8342f7c.js +71 -0
- package/dist/bindings/windows/foundation/collections/IMapView_String_WindowsServicesStoreStoreProduct_g8ea2e65832c6f5a4.d.ts +36 -0
- package/dist/bindings/windows/foundation/collections/IMapView_String_WindowsServicesStoreStoreProduct_g8ea2e65832c6f5a4.js +71 -0
- package/dist/bindings/windows/foundation/collections/IMap_String_WindowsServicesStoreStoreLicense_gf681f328cc2e3874.d.ts +60 -0
- package/dist/bindings/windows/foundation/collections/IMap_String_WindowsServicesStoreStoreLicense_gf681f328cc2e3874.js +114 -0
- package/dist/bindings/windows/foundation/collections/IMap_String_WindowsServicesStoreStoreProduct_g4d742845f441491c.d.ts +60 -0
- package/dist/bindings/windows/foundation/collections/IMap_String_WindowsServicesStoreStoreProduct_g4d742845f441491c.js +114 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_MicrosoftUIXamlAutomationPeersAutomationPeerAnnotation_g1291d190459cae2b.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_MicrosoftUIXamlAutomationPeersAutomationPeerAnnotation_g1291d190459cae2b.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_MicrosoftUIXamlAutomationPeersAutomationPeer_gcf17e6c70dae9df8.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_MicrosoftUIXamlAutomationPeersAutomationPeer_gcf17e6c70dae9df8.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsApplicationModelStartupTask_g213762a6fd9a9707.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsApplicationModelStartupTask_g213762a6fd9a9707.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreAvailability_geb0561a0f0dd0005.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreAvailability_geb0561a0f0dd0005.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreImage_g3308691eac26400f.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreImage_g3308691eac26400f.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStorePackageUpdateStatus_g48777acdbcb2a5c8.d.ts +54 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStorePackageUpdateStatus_g48777acdbcb2a5c8.js +109 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStorePackageUpdate_gc7d2f3857622cec3.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStorePackageUpdate_gc7d2f3857622cec3.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreQueueItem_g866c0e5377ca52ec.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreQueueItem_g866c0e5377ca52ec.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreSku_g915fbb9b0e903e7f.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreSku_g915fbb9b0e903e7f.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreVideo_gcff017d5106c30d1.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsServicesStoreStoreVideo_gcff017d5106c30d1.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsScheduledToastNotification_gafec5ba714dc8e71.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsScheduledToastNotification_gafec5ba714dc8e71.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsToastCollection_g3093026941314e4f.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsToastCollection_g3093026941314e4f.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsToastNotification_g8c913fdb725fef16.d.ts +40 -0
- package/dist/bindings/windows/foundation/collections/IVectorView_WindowsUINotificationsToastNotification_g8c913fdb725fef16.js +85 -0
- package/dist/bindings/windows/foundation/collections/IVector_MicrosoftUIXamlAutomationPeersAutomationPeerAnnotation_g0be2a565a8b48fdc.d.ts +62 -0
- package/dist/bindings/windows/foundation/collections/IVector_MicrosoftUIXamlAutomationPeersAutomationPeerAnnotation_g0be2a565a8b48fdc.js +135 -0
- package/dist/bindings/windows/foundation/collections/IVector_MicrosoftUIXamlAutomationPeersAutomationPeer_gfdcbe941c5dbe60f.d.ts +62 -0
- package/dist/bindings/windows/foundation/collections/IVector_MicrosoftUIXamlAutomationPeersAutomationPeer_gfdcbe941c5dbe60f.js +135 -0
- package/dist/bindings/windows/services/store/IStoreAppLicense2.d.ts +27 -0
- package/dist/bindings/windows/services/store/IStoreAppLicense2.js +116 -0
- package/dist/bindings/windows/services/store/IStoreContext2.d.ts +30 -0
- package/dist/bindings/windows/services/store/IStoreContext2.js +140 -0
- package/dist/bindings/windows/services/store/IStoreContext3.d.ts +107 -0
- package/dist/bindings/windows/services/store/IStoreContext3.js +519 -0
- package/dist/bindings/windows/services/store/IStoreContext4.d.ts +34 -0
- package/dist/bindings/windows/services/store/IStoreContext4.js +167 -0
- package/dist/bindings/windows/services/store/IStoreContext5.d.ts +36 -0
- package/dist/bindings/windows/services/store/IStoreContext5.js +187 -0
- package/dist/bindings/windows/services/store/IStorePackageUpdateResult2.d.ts +28 -0
- package/dist/bindings/windows/services/store/IStorePackageUpdateResult2.js +122 -0
- package/dist/bindings/windows/services/store/IStorePrice2.d.ts +33 -0
- package/dist/bindings/windows/services/store/IStorePrice2.js +140 -0
- package/dist/bindings/windows/services/store/IStoreQueueItem2.d.ts +33 -0
- package/dist/bindings/windows/services/store/IStoreQueueItem2.js +176 -0
- package/dist/bindings/windows/services/store/StoreAcquireLicenseResult.d.ts +10 -0
- package/dist/bindings/windows/services/store/StoreAcquireLicenseResult.js +47 -0
- package/dist/bindings/windows/services/store/StoreAppLicense.d.ts +38 -0
- package/dist/bindings/windows/services/store/StoreAppLicense.js +136 -0
- package/dist/bindings/windows/services/store/StoreAvailability.d.ts +26 -0
- package/dist/bindings/windows/services/store/StoreAvailability.js +134 -0
- package/dist/bindings/windows/services/store/StoreCanAcquireLicenseResult.d.ts +11 -0
- package/dist/bindings/windows/services/store/StoreCanAcquireLicenseResult.js +51 -0
- package/dist/bindings/windows/services/store/StoreCanLicenseStatus.d.ts +9 -0
- package/dist/bindings/windows/services/store/StoreCanLicenseStatus.js +10 -0
- package/dist/bindings/windows/services/store/StoreCollectionData.d.ts +33 -0
- package/dist/bindings/windows/services/store/StoreCollectionData.js +102 -0
- package/dist/bindings/windows/services/store/StoreConsumableResult.d.ts +12 -0
- package/dist/bindings/windows/services/store/StoreConsumableResult.js +55 -0
- package/dist/bindings/windows/services/store/StoreConsumableStatus.d.ts +8 -0
- package/dist/bindings/windows/services/store/StoreConsumableStatus.js +9 -0
- package/dist/bindings/windows/services/store/StoreContext.d.ts +121 -0
- package/dist/bindings/windows/services/store/StoreContext.js +975 -0
- package/dist/bindings/windows/services/store/StoreDurationUnit.d.ts +10 -0
- package/dist/bindings/windows/services/store/StoreDurationUnit.js +11 -0
- package/dist/bindings/windows/services/store/StoreImage.d.ts +13 -0
- package/dist/bindings/windows/services/store/StoreImage.js +59 -0
- package/dist/bindings/windows/services/store/StoreLicense.d.ts +21 -0
- package/dist/bindings/windows/services/store/StoreLicense.js +73 -0
- package/dist/bindings/windows/services/store/StorePackageInstallOptions.d.ts +13 -0
- package/dist/bindings/windows/services/store/StorePackageInstallOptions.js +61 -0
- package/dist/bindings/windows/services/store/StorePackageLicense.d.ts +31 -0
- package/dist/bindings/windows/services/store/StorePackageLicense.js +117 -0
- package/dist/bindings/windows/services/store/StorePackageUpdate.d.ts +10 -0
- package/dist/bindings/windows/services/store/StorePackageUpdate.js +47 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateResult.d.ts +29 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateResult.js +99 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateState.d.ts +5 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateState.js +6 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateStatus.d.ts +5 -0
- package/dist/bindings/windows/services/store/StorePackageUpdateStatus.js +6 -0
- package/dist/bindings/windows/services/store/StorePrice.d.ts +27 -0
- package/dist/bindings/windows/services/store/StorePrice.js +106 -0
- package/dist/bindings/windows/services/store/StoreProduct.d.ts +34 -0
- package/dist/bindings/windows/services/store/StoreProduct.js +201 -0
- package/dist/bindings/windows/services/store/StoreProductOptions.d.ts +13 -0
- package/dist/bindings/windows/services/store/StoreProductOptions.js +60 -0
- package/dist/bindings/windows/services/store/StoreProductPagedQueryResult.d.ts +12 -0
- package/dist/bindings/windows/services/store/StoreProductPagedQueryResult.js +73 -0
- package/dist/bindings/windows/services/store/StoreProductQueryResult.d.ts +10 -0
- package/dist/bindings/windows/services/store/StoreProductQueryResult.js +53 -0
- package/dist/bindings/windows/services/store/StoreProductResult.d.ts +10 -0
- package/dist/bindings/windows/services/store/StoreProductResult.js +47 -0
- package/dist/bindings/windows/services/store/StorePurchaseProperties.d.ts +17 -0
- package/dist/bindings/windows/services/store/StorePurchaseProperties.js +90 -0
- package/dist/bindings/windows/services/store/StorePurchaseResult.d.ts +10 -0
- package/dist/bindings/windows/services/store/StorePurchaseResult.js +47 -0
- package/dist/bindings/windows/services/store/StorePurchaseStatus.d.ts +9 -0
- package/dist/bindings/windows/services/store/StorePurchaseStatus.js +10 -0
- package/dist/bindings/windows/services/store/StoreQueueItem.d.ts +40 -0
- package/dist/bindings/windows/services/store/StoreQueueItem.js +199 -0
- package/dist/bindings/windows/services/store/StoreQueueItemCompletedEventArgs.d.ts +9 -0
- package/dist/bindings/windows/services/store/StoreQueueItemCompletedEventArgs.js +43 -0
- package/dist/bindings/windows/services/store/StoreQueueItemExtendedState.d.ts +19 -0
- package/dist/bindings/windows/services/store/StoreQueueItemExtendedState.js +20 -0
- package/dist/bindings/windows/services/store/StoreQueueItemKind.d.ts +7 -0
- package/dist/bindings/windows/services/store/StoreQueueItemKind.js +8 -0
- package/dist/bindings/windows/services/store/StoreQueueItemState.d.ts +9 -0
- package/dist/bindings/windows/services/store/StoreQueueItemState.js +10 -0
- package/dist/bindings/windows/services/store/StoreQueueItemStatus.d.ts +27 -0
- package/dist/bindings/windows/services/store/StoreQueueItemStatus.js +83 -0
- package/dist/bindings/windows/services/store/StoreRateAndReviewResult.d.ts +12 -0
- package/dist/bindings/windows/services/store/StoreRateAndReviewResult.js +55 -0
- package/dist/bindings/windows/services/store/StoreRateAndReviewStatus.d.ts +8 -0
- package/dist/bindings/windows/services/store/StoreRateAndReviewStatus.js +9 -0
- package/dist/bindings/windows/services/store/StoreSku.d.ts +36 -0
- package/dist/bindings/windows/services/store/StoreSku.js +208 -0
- package/dist/bindings/windows/services/store/StoreSubscriptionInfo.d.ts +13 -0
- package/dist/bindings/windows/services/store/StoreSubscriptionInfo.js +59 -0
- package/dist/bindings/windows/services/store/StoreUninstallStorePackageResult.d.ts +10 -0
- package/dist/bindings/windows/services/store/StoreUninstallStorePackageResult.js +47 -0
- package/dist/bindings/windows/services/store/StoreUninstallStorePackageStatus.d.ts +9 -0
- package/dist/bindings/windows/services/store/StoreUninstallStorePackageStatus.js +10 -0
- package/dist/bindings/windows/services/store/StoreVideo.d.ts +15 -0
- package/dist/bindings/windows/services/store/StoreVideo.js +66 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification2.d.ts +39 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification2.js +173 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification3.d.ts +35 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification3.js +153 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification4.d.ts +39 -0
- package/dist/bindings/windows/ui/notifications/IScheduledToastNotification4.js +147 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationHistory2.d.ts +31 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationHistory2.js +134 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationManagerForUser2.d.ts +39 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationManagerForUser2.js +185 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationManagerForUser3.d.ts +49 -0
- package/dist/bindings/windows/ui/notifications/IToastNotificationManagerForUser3.js +195 -0
- package/dist/bindings/windows/ui/notifications/IToastNotifier2.d.ts +32 -0
- package/dist/bindings/windows/ui/notifications/IToastNotifier2.js +137 -0
- package/dist/bindings/windows/ui/notifications/IToastNotifier3.d.ts +46 -0
- package/dist/bindings/windows/ui/notifications/IToastNotifier3.js +184 -0
- package/dist/bindings/windows/ui/notifications/NotificationSetting.d.ts +9 -0
- package/dist/bindings/windows/ui/notifications/NotificationSetting.js +10 -0
- package/dist/bindings/windows/ui/notifications/NotificationUpdateResult.d.ts +7 -0
- package/dist/bindings/windows/ui/notifications/NotificationUpdateResult.js +8 -0
- package/dist/bindings/windows/ui/notifications/ScheduledToastNotification.d.ts +51 -0
- package/dist/bindings/windows/ui/notifications/ScheduledToastNotification.js +231 -0
- package/dist/bindings/windows/ui/notifications/ScheduledToastNotificationShowingEventArgs.d.ts +13 -0
- package/dist/bindings/windows/ui/notifications/ScheduledToastNotificationShowingEventArgs.js +58 -0
- package/dist/bindings/windows/ui/notifications/ToastCollection.d.ts +16 -0
- package/dist/bindings/windows/ui/notifications/ToastCollection.js +91 -0
- package/dist/bindings/windows/ui/notifications/ToastCollectionManager.d.ts +17 -0
- package/dist/bindings/windows/ui/notifications/ToastCollectionManager.js +136 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationHistory.d.ts +24 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationHistory.js +137 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationManager.d.ts +19 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationManager.js +133 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationManagerForUser.d.ts +40 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationManagerForUser.js +205 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationMode.d.ts +7 -0
- package/dist/bindings/windows/ui/notifications/ToastNotificationMode.js +8 -0
- package/dist/bindings/windows/ui/notifications/ToastNotifier.d.ts +41 -0
- package/dist/bindings/windows/ui/notifications/ToastNotifier.js +183 -0
- package/dist/bindings/windows/ui/notifications/ToastTemplateType.d.ts +12 -0
- package/dist/bindings/windows/ui/notifications/ToastTemplateType.js +13 -0
- package/dist/components/convert.d.ts +4 -4
- package/dist/components/convert.d.ts.map +1 -1
- package/dist/components/convert.js +3 -2
- package/dist/components/convert.js.map +1 -1
- package/dist/components/fluent-glyph.d.ts +4 -0
- package/dist/components/fluent-glyph.d.ts.map +1 -1
- package/dist/components/generated/bindings.d.ts +1 -0
- package/dist/components/generated/bindings.d.ts.map +1 -1
- package/dist/components/generated/bindings.js +1 -0
- package/dist/components/generated/bindings.js.map +1 -1
- package/dist/components/generated/controls/FontIcon.svelte.d.ts +1 -1
- package/dist/components/generated/controls/FontIconSource.svelte.d.ts +1 -1
- package/dist/components/generated/controls/UIElement.svelte.d.ts +1 -1
- package/dist/components/generated/enums.d.ts +3 -0
- package/dist/components/generated/enums.d.ts.map +1 -1
- package/dist/components/generated/enums.js +1 -0
- package/dist/components/generated/enums.js.map +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/runtime.svelte.d.ts +1 -0
- package/dist/components/runtime.svelte.d.ts.map +1 -1
- package/dist/components/runtime.svelte.js +17 -6
- package/dist/components/runtime.svelte.js.map +1 -1
- package/dist/composition/animate.d.ts +78 -0
- package/dist/composition/animate.d.ts.map +1 -0
- package/dist/composition/animate.js +184 -0
- package/dist/composition/animate.js.map +1 -0
- package/dist/composition/expression.d.ts +177 -0
- package/dist/composition/expression.d.ts.map +1 -0
- package/dist/composition/expression.js +330 -0
- package/dist/composition/expression.js.map +1 -0
- package/dist/composition/index.d.ts +11 -0
- package/dist/composition/index.d.ts.map +1 -0
- package/dist/composition/index.js +9 -0
- package/dist/composition/index.js.map +1 -0
- package/dist/composition/property-set.d.ts +36 -0
- package/dist/composition/property-set.d.ts.map +1 -0
- package/dist/composition/property-set.js +81 -0
- package/dist/composition/property-set.js.map +1 -0
- package/dist/composition/spring.d.ts +43 -0
- package/dist/composition/spring.d.ts.map +1 -0
- package/dist/composition/spring.js +23 -0
- package/dist/composition/spring.js.map +1 -0
- package/dist/composition/targets.d.ts +48 -0
- package/dist/composition/targets.d.ts.map +1 -0
- package/dist/composition/targets.js +34 -0
- package/dist/composition/targets.js.map +1 -0
- package/dist/css/index.d.ts +2 -0
- package/dist/css/index.d.ts.map +1 -1
- package/dist/css/index.js +2 -0
- package/dist/css/index.js.map +1 -1
- package/dist/css/parse/box-shadow.d.ts +46 -0
- package/dist/css/parse/box-shadow.d.ts.map +1 -0
- package/dist/css/parse/box-shadow.js +65 -0
- package/dist/css/parse/box-shadow.js.map +1 -0
- package/dist/css/parse/filters.d.ts.map +1 -1
- package/dist/css/parse/filters.js +1 -1
- package/dist/css/parse/filters.js.map +1 -1
- package/dist/css/parse/parser.js +1 -1
- package/dist/css/parse/parser.js.map +1 -1
- package/dist/css/parse/scroll-timeline.d.ts +181 -0
- package/dist/css/parse/scroll-timeline.d.ts.map +1 -0
- package/dist/css/parse/scroll-timeline.js +278 -0
- package/dist/css/parse/scroll-timeline.js.map +1 -0
- package/dist/css/runtime/resources.d.ts +3 -1
- package/dist/css/runtime/resources.d.ts.map +1 -1
- package/dist/css/runtime/resources.js +2 -2
- package/dist/css/runtime/resources.js.map +1 -1
- package/dist/css/runtime/runtime.d.ts +37 -3
- package/dist/css/runtime/runtime.d.ts.map +1 -1
- package/dist/css/runtime/runtime.js +27 -13
- package/dist/css/runtime/runtime.js.map +1 -1
- package/dist/css/runtime/sheet-module.d.ts +3 -1
- package/dist/css/runtime/sheet-module.d.ts.map +1 -1
- package/dist/css/runtime/sheet-module.js +24 -10
- package/dist/css/runtime/sheet-module.js.map +1 -1
- package/dist/css/runtime/visual-state-native.d.ts +10 -0
- package/dist/css/runtime/visual-state-native.d.ts.map +1 -0
- package/dist/css/runtime/visual-state-native.js +112 -0
- package/dist/css/runtime/visual-state-native.js.map +1 -0
- package/dist/css/runtime/visual-states.d.ts +27 -0
- package/dist/css/runtime/visual-states.d.ts.map +1 -0
- package/dist/css/runtime/visual-states.js +83 -0
- package/dist/css/runtime/visual-states.js.map +1 -0
- package/dist/css/scroll-timeline.d.ts +21 -0
- package/dist/css/scroll-timeline.d.ts.map +1 -0
- package/dist/css/scroll-timeline.js +11 -0
- package/dist/css/scroll-timeline.js.map +1 -0
- package/dist/css/shadow.d.ts +23 -0
- package/dist/css/shadow.d.ts.map +1 -0
- package/dist/css/shadow.js +11 -0
- package/dist/css/shadow.js.map +1 -0
- package/dist/css/translate/animation-properties.d.ts +8 -2
- package/dist/css/translate/animation-properties.d.ts.map +1 -1
- package/dist/css/translate/animation-properties.js +202 -15
- package/dist/css/translate/animation-properties.js.map +1 -1
- package/dist/css/translate/build-shorthands.d.ts +3 -2
- package/dist/css/translate/build-shorthands.d.ts.map +1 -1
- package/dist/css/translate/build-shorthands.js +5 -3
- package/dist/css/translate/build-shorthands.js.map +1 -1
- package/dist/css/translate/cascade.d.ts.map +1 -1
- package/dist/css/translate/cascade.js +4 -1
- package/dist/css/translate/cascade.js.map +1 -1
- package/dist/css/translate/easing.d.ts +2 -0
- package/dist/css/translate/easing.d.ts.map +1 -1
- package/dist/css/translate/easing.js +4 -0
- package/dist/css/translate/easing.js.map +1 -1
- package/dist/css/translate/font-face.d.ts +22 -0
- package/dist/css/translate/font-face.d.ts.map +1 -0
- package/dist/css/translate/font-face.js +76 -0
- package/dist/css/translate/font-face.js.map +1 -0
- package/dist/css/translate/handled-members.d.ts +7 -0
- package/dist/css/translate/handled-members.d.ts.map +1 -0
- package/dist/css/translate/handled-members.js +16 -0
- package/dist/css/translate/handled-members.js.map +1 -0
- package/dist/css/translate/lazy-groups.d.ts.map +1 -1
- package/dist/css/translate/lazy-groups.js +41 -1
- package/dist/css/translate/lazy-groups.js.map +1 -1
- package/dist/css/translate/linked-tracks.d.ts +13 -0
- package/dist/css/translate/linked-tracks.d.ts.map +1 -0
- package/dist/css/translate/linked-tracks.js +48 -0
- package/dist/css/translate/linked-tracks.js.map +1 -0
- package/dist/css/translate/scroll-link.d.ts +106 -0
- package/dist/css/translate/scroll-link.d.ts.map +1 -0
- package/dist/css/translate/scroll-link.js +222 -0
- package/dist/css/translate/scroll-link.js.map +1 -0
- package/dist/css/translate/scroll-timeline-properties.d.ts +46 -0
- package/dist/css/translate/scroll-timeline-properties.d.ts.map +1 -0
- package/dist/css/translate/scroll-timeline-properties.js +167 -0
- package/dist/css/translate/scroll-timeline-properties.js.map +1 -0
- package/dist/css/translate/shadow-mode.d.ts +24 -0
- package/dist/css/translate/shadow-mode.d.ts.map +1 -0
- package/dist/css/translate/shadow-mode.js +20 -0
- package/dist/css/translate/shadow-mode.js.map +1 -0
- package/dist/css/translate/shadow-properties.d.ts +50 -0
- package/dist/css/translate/shadow-properties.d.ts.map +1 -0
- package/dist/css/translate/shadow-properties.js +155 -0
- package/dist/css/translate/shadow-properties.js.map +1 -0
- package/dist/css/translate/shorthands.d.ts +4 -2
- package/dist/css/translate/shorthands.d.ts.map +1 -1
- package/dist/css/translate/shorthands.js +3 -2
- package/dist/css/translate/shorthands.js.map +1 -1
- package/dist/css/translate/state-properties.d.ts +52 -0
- package/dist/css/translate/state-properties.d.ts.map +1 -0
- package/dist/css/translate/state-properties.js +115 -0
- package/dist/css/translate/state-properties.js.map +1 -0
- package/dist/css/translate/surface-properties.d.ts +3 -1
- package/dist/css/translate/surface-properties.d.ts.map +1 -1
- package/dist/css/translate/surface-properties.js +21 -17
- package/dist/css/translate/surface-properties.js.map +1 -1
- package/dist/css/translate/translate.d.ts +3 -2
- package/dist/css/translate/translate.d.ts.map +1 -1
- package/dist/css/translate/translate.js +47 -13
- package/dist/css/translate/translate.js.map +1 -1
- package/dist/css/translate/type-ramp.d.ts +8 -0
- package/dist/css/translate/type-ramp.d.ts.map +1 -0
- package/dist/css/translate/type-ramp.js +59 -0
- package/dist/css/translate/type-ramp.js.map +1 -0
- package/dist/css/translate/types.d.ts +7 -0
- package/dist/css/translate/types.d.ts.map +1 -1
- package/dist/css/translate/typography-properties.d.ts +52 -0
- package/dist/css/translate/typography-properties.d.ts.map +1 -0
- package/dist/css/translate/typography-properties.js +430 -0
- package/dist/css/translate/typography-properties.js.map +1 -0
- package/dist/css/translate/unsupported-properties.d.ts +2 -0
- package/dist/css/translate/unsupported-properties.d.ts.map +1 -1
- package/dist/css/translate/unsupported-properties.js +7 -1
- package/dist/css/translate/unsupported-properties.js.map +1 -1
- package/dist/css/translate/view-transition-properties.d.ts +29 -0
- package/dist/css/translate/view-transition-properties.d.ts.map +1 -0
- package/dist/css/translate/view-transition-properties.js +53 -0
- package/dist/css/translate/view-transition-properties.js.map +1 -0
- package/dist/css/translate/winui-only-properties.d.ts.map +1 -1
- package/dist/css/translate/winui-only-properties.js +16 -1
- package/dist/css/translate/winui-only-properties.js.map +1 -1
- package/dist/css/typography.d.ts +2 -0
- package/dist/css/typography.d.ts.map +1 -0
- package/dist/css/typography.js +6 -0
- package/dist/css/typography.js.map +1 -0
- package/dist/css/validate/vscode-css-data.json +262 -1
- package/dist/css/validate/vscode-data.d.ts +5 -0
- package/dist/css/validate/vscode-data.d.ts.map +1 -1
- package/dist/css/validate/vscode-data.js +37 -0
- package/dist/css/validate/vscode-data.js.map +1 -1
- package/dist/css/view-transition.d.ts +13 -0
- package/dist/css/view-transition.d.ts.map +1 -0
- package/dist/css/view-transition.js +12 -0
- package/dist/css/view-transition.js.map +1 -0
- package/dist/css/visual-states.d.ts +7 -0
- package/dist/css/visual-states.d.ts.map +1 -0
- package/dist/css/visual-states.js +16 -0
- package/dist/css/visual-states.js.map +1 -0
- package/dist/dev/dev-window.d.ts +23 -0
- package/dist/dev/dev-window.d.ts.map +1 -0
- package/dist/dev/dev-window.js +42 -0
- package/dist/dev/dev-window.js.map +1 -0
- package/dist/dev/index.d.ts +3 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +2 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/start-dev.d.ts +47 -0
- package/dist/dev/start-dev.d.ts.map +1 -0
- package/dist/dev/start-dev.js +81 -0
- package/dist/dev/start-dev.js.map +1 -0
- package/dist/devices/bindings.d.ts +4 -1
- package/dist/devices/bindings.d.ts.map +1 -1
- package/dist/devices/bindings.js +4 -1
- package/dist/devices/bindings.js.map +1 -1
- package/dist/devices/displays.svelte.d.ts.map +1 -1
- package/dist/devices/displays.svelte.js +2 -1
- package/dist/devices/displays.svelte.js.map +1 -1
- package/dist/devices/live.svelte.d.ts +3 -24
- package/dist/devices/live.svelte.d.ts.map +1 -1
- package/dist/devices/live.svelte.js +2 -40
- package/dist/devices/live.svelte.js.map +1 -1
- package/dist/devices/power.d.ts +5 -3
- package/dist/devices/power.d.ts.map +1 -1
- package/dist/devices/power.js +3 -2
- package/dist/devices/power.js.map +1 -1
- package/dist/devices/power.svelte.d.ts +27 -0
- package/dist/devices/power.svelte.d.ts.map +1 -1
- package/dist/devices/power.svelte.js +40 -0
- package/dist/devices/power.svelte.js.map +1 -1
- package/dist/devices/subscription.d.ts +35 -0
- package/dist/devices/subscription.d.ts.map +1 -0
- package/dist/devices/subscription.js +47 -0
- package/dist/devices/subscription.js.map +1 -0
- package/dist/devices/system-power.d.ts +54 -0
- package/dist/devices/system-power.d.ts.map +1 -0
- package/dist/devices/system-power.js +66 -0
- package/dist/devices/system-power.js.map +1 -0
- package/dist/enums.d.ts +13 -1
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +13 -1
- package/dist/enums.js.map +1 -1
- package/dist/font-files.d.ts +19 -0
- package/dist/font-files.d.ts.map +1 -0
- package/dist/font-files.js +55 -0
- package/dist/font-files.js.map +1 -0
- package/dist/font-registry.d.ts +24 -0
- package/dist/font-registry.d.ts.map +1 -0
- package/dist/font-registry.js +67 -0
- package/dist/font-registry.js.map +1 -0
- package/dist/font-spelling.d.ts +15 -0
- package/dist/font-spelling.d.ts.map +1 -0
- package/dist/font-spelling.js +27 -0
- package/dist/font-spelling.js.map +1 -0
- package/dist/forms/FormField.svelte +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/input/active-element.svelte.d.ts +22 -0
- package/dist/input/active-element.svelte.d.ts.map +1 -0
- package/dist/input/active-element.svelte.js +32 -0
- package/dist/input/active-element.svelte.js.map +1 -0
- package/dist/input/dom-event.d.ts +93 -0
- package/dist/input/dom-event.d.ts.map +1 -0
- package/dist/input/dom-event.js +39 -0
- package/dist/input/dom-event.js.map +1 -0
- package/dist/input/events.d.ts +13 -0
- package/dist/input/events.d.ts.map +1 -0
- package/dist/input/events.js +187 -0
- package/dist/input/events.js.map +1 -0
- package/dist/input/focused-element.d.ts +18 -0
- package/dist/input/focused-element.d.ts.map +1 -0
- package/dist/input/focused-element.js +32 -0
- package/dist/input/focused-element.js.map +1 -0
- package/dist/input/index.d.ts +13 -0
- package/dist/input/index.d.ts.map +1 -0
- package/dist/input/index.js +7 -0
- package/dist/input/index.js.map +1 -0
- package/dist/input/key-names.d.ts +18 -0
- package/dist/input/key-names.d.ts.map +1 -0
- package/dist/input/key-names.js +182 -0
- package/dist/input/key-names.js.map +1 -0
- package/dist/input/keyboard-fields.d.ts +38 -0
- package/dist/input/keyboard-fields.d.ts.map +1 -0
- package/dist/input/keyboard-fields.js +43 -0
- package/dist/input/keyboard-fields.js.map +1 -0
- package/dist/input/move-focus.d.ts +19 -0
- package/dist/input/move-focus.d.ts.map +1 -0
- package/dist/input/move-focus.js +29 -0
- package/dist/input/move-focus.js.map +1 -0
- package/dist/input/pointer-capture.d.ts +47 -0
- package/dist/input/pointer-capture.d.ts.map +1 -0
- package/dist/input/pointer-capture.js +59 -0
- package/dist/input/pointer-capture.js.map +1 -0
- package/dist/input/pointer-fields.d.ts +118 -0
- package/dist/input/pointer-fields.d.ts.map +1 -0
- package/dist/input/pointer-fields.js +141 -0
- package/dist/input/pointer-fields.js.map +1 -0
- package/dist/input/pointer-routes.d.ts +13 -0
- package/dist/input/pointer-routes.d.ts.map +1 -0
- package/dist/input/pointer-routes.js +13 -0
- package/dist/input/pointer-routes.js.map +1 -0
- package/dist/input/trap-focus.d.ts +18 -0
- package/dist/input/trap-focus.d.ts.map +1 -0
- package/dist/input/trap-focus.js +45 -0
- package/dist/input/trap-focus.js.map +1 -0
- package/dist/key-code.d.ts +131 -0
- package/dist/key-code.d.ts.map +1 -0
- package/dist/key-code.js +134 -0
- package/dist/key-code.js.map +1 -0
- package/dist/messaging/page.d.ts +25 -0
- package/dist/messaging/page.d.ts.map +1 -0
- package/dist/messaging/page.js +43 -0
- package/dist/messaging/page.js.map +1 -0
- package/dist/messaging/web-view2/cookies.d.ts +53 -0
- package/dist/messaging/web-view2/cookies.d.ts.map +1 -0
- package/dist/messaging/web-view2/cookies.js +54 -0
- package/dist/messaging/web-view2/cookies.js.map +1 -0
- package/dist/messaging/web-view2/core.d.ts +101 -0
- package/dist/messaging/web-view2/core.d.ts.map +1 -0
- package/dist/messaging/web-view2/core.js +37 -0
- package/dist/messaging/web-view2/core.js.map +1 -0
- package/dist/messaging/web-view2/index.d.ts +9 -0
- package/dist/messaging/web-view2/index.d.ts.map +1 -0
- package/dist/messaging/web-view2/index.js +7 -0
- package/dist/messaging/web-view2/index.js.map +1 -0
- package/dist/messaging/web-view2/policy.d.ts +64 -0
- package/dist/messaging/web-view2/policy.d.ts.map +1 -0
- package/dist/messaging/web-view2/policy.js +96 -0
- package/dist/messaging/web-view2/policy.js.map +1 -0
- package/dist/messaging/web-view2/transport.d.ts +34 -0
- package/dist/messaging/web-view2/transport.d.ts.map +1 -0
- package/dist/messaging/web-view2/transport.js +109 -0
- package/dist/messaging/web-view2/transport.js.map +1 -0
- package/dist/notice/index.d.ts +4 -0
- package/dist/notice/index.d.ts.map +1 -0
- package/dist/notice/index.js +2 -0
- package/dist/notice/index.js.map +1 -0
- package/dist/notice/native.d.ts +18 -0
- package/dist/notice/native.d.ts.map +1 -0
- package/dist/notice/native.js +32 -0
- package/dist/notice/native.js.map +1 -0
- package/dist/notice/notice.d.ts +70 -0
- package/dist/notice/notice.d.ts.map +1 -0
- package/dist/notice/notice.js +95 -0
- package/dist/notice/notice.js.map +1 -0
- package/dist/renderer/host/connected-configuration.d.ts +23 -0
- package/dist/renderer/host/connected-configuration.d.ts.map +1 -0
- package/dist/renderer/host/connected-configuration.js +36 -0
- package/dist/renderer/host/connected-configuration.js.map +1 -0
- package/dist/renderer/host/control.d.ts +8 -0
- package/dist/renderer/host/control.d.ts.map +1 -1
- package/dist/renderer/host/control.js +7 -2
- package/dist/renderer/host/control.js.map +1 -1
- package/dist/renderer/host/element-animation.d.ts.map +1 -1
- package/dist/renderer/host/element-animation.js +2 -15
- package/dist/renderer/host/element-animation.js.map +1 -1
- package/dist/renderer/host/glide-height.d.ts +27 -0
- package/dist/renderer/host/glide-height.d.ts.map +1 -0
- package/dist/renderer/host/glide-height.js +106 -0
- package/dist/renderer/host/glide-height.js.map +1 -0
- package/dist/renderer/host/implicit-layout-animation.d.ts +50 -0
- package/dist/renderer/host/implicit-layout-animation.d.ts.map +1 -0
- package/dist/renderer/host/implicit-layout-animation.js +121 -0
- package/dist/renderer/host/implicit-layout-animation.js.map +1 -0
- package/dist/renderer/host/motion-preference.d.ts +19 -0
- package/dist/renderer/host/motion-preference.d.ts.map +1 -0
- package/dist/renderer/host/motion-preference.js +26 -0
- package/dist/renderer/host/motion-preference.js.map +1 -0
- package/dist/renderer/host/values.d.ts +1 -1
- package/dist/renderer/host/view-transition-names.d.ts +13 -0
- package/dist/renderer/host/view-transition-names.d.ts.map +1 -0
- package/dist/renderer/host/view-transition-names.js +25 -0
- package/dist/renderer/host/view-transition-names.js.map +1 -0
- package/dist/settings/SettingsCard.d.svelte.ts +12 -0
- package/dist/settings/SettingsCard.svelte +80 -0
- package/dist/settings/SettingsExpander.d.svelte.ts +12 -0
- package/dist/settings/SettingsExpander.svelte +46 -0
- package/dist/settings/SettingsRow.svelte +79 -0
- package/dist/settings/index.d.ts +5 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +7 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/settings-context.d.ts +7 -0
- package/dist/settings/settings-context.d.ts.map +1 -0
- package/dist/settings/settings-context.js +11 -0
- package/dist/settings/settings-context.js.map +1 -0
- package/dist/settings/settings-props.d.ts +40 -0
- package/dist/settings/settings-props.d.ts.map +1 -0
- package/dist/settings/settings-props.js +3 -0
- package/dist/settings/settings-props.js.map +1 -0
- package/dist/store/bindings.d.ts +7 -0
- package/dist/store/bindings.d.ts.map +1 -0
- package/dist/store/bindings.js +10 -0
- package/dist/store/bindings.js.map +1 -0
- package/dist/store/identity.d.ts +24 -0
- package/dist/store/identity.d.ts.map +1 -0
- package/dist/store/identity.js +27 -0
- package/dist/store/identity.js.map +1 -0
- package/dist/store/index.d.ts +10 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +8 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/license.d.ts +63 -0
- package/dist/store/license.d.ts.map +1 -0
- package/dist/store/license.js +95 -0
- package/dist/store/license.js.map +1 -0
- package/dist/store/packages.d.ts +45 -0
- package/dist/store/packages.d.ts.map +1 -0
- package/dist/store/packages.js +80 -0
- package/dist/store/packages.js.map +1 -0
- package/dist/store/reply.d.ts +26 -0
- package/dist/store/reply.d.ts.map +1 -0
- package/dist/store/reply.js +15 -0
- package/dist/store/reply.js.map +1 -0
- package/dist/store/startup.d.ts +23 -0
- package/dist/store/startup.d.ts.map +1 -0
- package/dist/store/startup.js +18 -0
- package/dist/store/startup.js.map +1 -0
- package/dist/store/states.d.ts +50 -0
- package/dist/store/states.d.ts.map +1 -0
- package/dist/store/states.js +56 -0
- package/dist/store/states.js.map +1 -0
- package/dist/store/types.d.ts +102 -0
- package/dist/store/types.d.ts.map +1 -0
- package/dist/store/types.js +2 -0
- package/dist/store/types.js.map +1 -0
- package/dist/store/updates.d.ts +23 -0
- package/dist/store/updates.d.ts.map +1 -0
- package/dist/store/updates.js +18 -0
- package/dist/store/updates.js.map +1 -0
- package/dist/store/window-interop.d.ts +10 -0
- package/dist/store/window-interop.d.ts.map +1 -0
- package/dist/store/window-interop.js +35 -0
- package/dist/store/window-interop.js.map +1 -0
- package/dist/store/windows-backend.d.ts +23 -0
- package/dist/store/windows-backend.d.ts.map +1 -0
- package/dist/store/windows-backend.js +26 -0
- package/dist/store/windows-backend.js.map +1 -0
- package/dist/store/windows-identity.d.ts +22 -0
- package/dist/store/windows-identity.d.ts.map +1 -0
- package/dist/store/windows-identity.js +51 -0
- package/dist/store/windows-identity.js.map +1 -0
- package/dist/store/windows-packages.d.ts +26 -0
- package/dist/store/windows-packages.d.ts.map +1 -0
- package/dist/store/windows-packages.js +70 -0
- package/dist/store/windows-packages.js.map +1 -0
- package/dist/store/windows-store.d.ts +47 -0
- package/dist/store/windows-store.d.ts.map +1 -0
- package/dist/store/windows-store.js +107 -0
- package/dist/store/windows-store.js.map +1 -0
- package/dist/tray/exit-hook.d.ts +3 -0
- package/dist/tray/exit-hook.d.ts.map +1 -0
- package/dist/tray/exit-hook.js +11 -0
- package/dist/tray/exit-hook.js.map +1 -0
- package/dist/tray/native.d.ts.map +1 -1
- package/dist/tray/native.js +5 -41
- package/dist/tray/native.js.map +1 -1
- package/dist/tray/standalone/index.d.ts +11 -0
- package/dist/tray/standalone/index.d.ts.map +1 -0
- package/dist/tray/standalone/index.js +6 -0
- package/dist/tray/standalone/index.js.map +1 -0
- package/dist/tray/standalone/native.d.ts +40 -0
- package/dist/tray/standalone/native.d.ts.map +1 -0
- package/dist/tray/standalone/native.js +96 -0
- package/dist/tray/standalone/native.js.map +1 -0
- package/dist/tray/standalone/standalone-tray.d.ts +44 -0
- package/dist/tray/standalone/standalone-tray.d.ts.map +1 -0
- package/dist/tray/standalone/standalone-tray.js +75 -0
- package/dist/tray/standalone/standalone-tray.js.map +1 -0
- package/dist/tray/tray-icon.d.ts.map +1 -1
- package/dist/tray/tray-icon.js +3 -6
- package/dist/tray/tray-icon.js.map +1 -1
- package/dist/web-apis/animations.d.ts +2 -5
- package/dist/web-apis/animations.d.ts.map +1 -1
- package/dist/web-apis/animations.js +1 -20
- package/dist/web-apis/animations.js.map +1 -1
- package/dist/web-apis/atomic-file.d.ts +19 -0
- package/dist/web-apis/atomic-file.d.ts.map +1 -0
- package/dist/web-apis/atomic-file.js +28 -0
- package/dist/web-apis/atomic-file.js.map +1 -0
- package/dist/web-apis/badge-glyph.d.ts +19 -0
- package/dist/web-apis/badge-glyph.d.ts.map +1 -0
- package/dist/web-apis/badge-glyph.js +17 -0
- package/dist/web-apis/badge-glyph.js.map +1 -0
- package/dist/web-apis/badging.d.ts +8 -18
- package/dist/web-apis/badging.d.ts.map +1 -1
- package/dist/web-apis/badging.js +25 -17
- package/dist/web-apis/badging.js.map +1 -1
- package/dist/web-apis/contacts.d.ts +1 -1
- package/dist/web-apis/fonts.d.ts +113 -0
- package/dist/web-apis/fonts.d.ts.map +1 -0
- package/dist/web-apis/fonts.js +237 -0
- package/dist/web-apis/fonts.js.map +1 -0
- package/dist/web-apis/geolocation.d.ts +1 -1
- package/dist/web-apis/keyframe-input.d.ts +15 -0
- package/dist/web-apis/keyframe-input.d.ts.map +1 -0
- package/dist/web-apis/keyframe-input.js +30 -0
- package/dist/web-apis/keyframe-input.js.map +1 -0
- package/dist/web-apis/notification.d.ts +48 -1
- package/dist/web-apis/notification.d.ts.map +1 -1
- package/dist/web-apis/notification.js +98 -4
- package/dist/web-apis/notification.js.map +1 -1
- package/dist/web-apis/page.d.ts +20 -4
- package/dist/web-apis/page.d.ts.map +1 -1
- package/dist/web-apis/page.js +54 -8
- package/dist/web-apis/page.js.map +1 -1
- package/dist/web-apis/scroll-timeline.d.ts +127 -0
- package/dist/web-apis/scroll-timeline.d.ts.map +1 -0
- package/dist/web-apis/scroll-timeline.js +415 -0
- package/dist/web-apis/scroll-timeline.js.map +1 -0
- package/dist/web-apis/view-transitions.d.ts +80 -0
- package/dist/web-apis/view-transitions.d.ts.map +1 -0
- package/dist/web-apis/view-transitions.js +299 -0
- package/dist/web-apis/view-transitions.js.map +1 -0
- package/dist/web-apis/web-storage.d.ts +1 -18
- package/dist/web-apis/web-storage.d.ts.map +1 -1
- package/dist/web-apis/web-storage.js +1 -26
- package/dist/web-apis/web-storage.js.map +1 -1
- package/dist/web-apis/window-controls-overlay.d.ts +105 -0
- package/dist/web-apis/window-controls-overlay.d.ts.map +1 -0
- package/dist/web-apis/window-controls-overlay.js +147 -0
- package/dist/web-apis/window-controls-overlay.js.map +1 -0
- package/dist/web-apis/window-geometry.d.ts +39 -0
- package/dist/web-apis/window-geometry.d.ts.map +1 -0
- package/dist/web-apis/window-geometry.js +95 -0
- package/dist/web-apis/window-geometry.js.map +1 -0
- package/dist/win2d/Canvas.svelte +1 -0
- package/dist/win2d/child-slot.d.ts +13 -0
- package/dist/win2d/child-slot.d.ts.map +1 -0
- package/dist/win2d/child-slot.js +29 -0
- package/dist/win2d/child-slot.js.map +1 -0
- package/dist/win2d/context-2d/pointer-events.d.ts +1 -2
- package/dist/win2d/context-2d/pointer-events.d.ts.map +1 -1
- package/dist/win2d/context-2d/pointer-events.js +13 -102
- package/dist/win2d/context-2d/pointer-events.js.map +1 -1
- package/dist/win2d/element-lifecycle.d.ts +37 -0
- package/dist/win2d/element-lifecycle.d.ts.map +1 -0
- package/dist/win2d/element-lifecycle.js +73 -0
- package/dist/win2d/element-lifecycle.js.map +1 -0
- package/dist/win2d/element-shadow.d.ts +26 -0
- package/dist/win2d/element-shadow.d.ts.map +1 -0
- package/dist/win2d/element-shadow.js +128 -0
- package/dist/win2d/element-shadow.js.map +1 -0
- package/dist/win2d/element-visual.d.ts +1 -3
- package/dist/win2d/element-visual.d.ts.map +1 -1
- package/dist/win2d/element-visual.js +18 -72
- package/dist/win2d/element-visual.js.map +1 -1
- package/dist/win2d/scroll-host.d.ts +27 -0
- package/dist/win2d/scroll-host.d.ts.map +1 -0
- package/dist/win2d/scroll-host.js +293 -0
- package/dist/win2d/scroll-host.js.map +1 -0
- package/dist/win2d/scroll-link.d.ts +57 -0
- package/dist/win2d/scroll-link.d.ts.map +1 -0
- package/dist/win2d/scroll-link.js +165 -0
- package/dist/win2d/scroll-link.js.map +1 -0
- package/dist/win2d/shadow-geometry.d.ts +46 -0
- package/dist/win2d/shadow-geometry.d.ts.map +1 -0
- package/dist/win2d/shadow-geometry.js +82 -0
- package/dist/win2d/shadow-geometry.js.map +1 -0
- package/dist/win2d/shadow-host.d.ts +13 -0
- package/dist/win2d/shadow-host.d.ts.map +1 -0
- package/dist/win2d/shadow-host.js +23 -0
- package/dist/win2d/shadow-host.js.map +1 -0
- package/dist/win2d/shadow-receivers.d.ts +13 -0
- package/dist/win2d/shadow-receivers.d.ts.map +1 -0
- package/dist/win2d/shadow-receivers.js +56 -0
- package/dist/win2d/shadow-receivers.js.map +1 -0
- package/dist/win32-calls.d.ts +3 -1
- package/dist/win32-calls.d.ts.map +1 -1
- package/dist/win32-calls.js +3 -2
- package/dist/win32-calls.js.map +1 -1
- package/dist/win32-icons.d.ts +36 -0
- package/dist/win32-icons.d.ts.map +1 -0
- package/dist/win32-icons.js +143 -0
- package/dist/win32-icons.js.map +1 -0
- package/dist/window/anchor.d.ts +92 -0
- package/dist/window/anchor.d.ts.map +1 -0
- package/dist/window/anchor.js +100 -0
- package/dist/window/anchor.js.map +1 -0
- package/dist/window/apply-chrome.d.ts +8 -1
- package/dist/window/apply-chrome.d.ts.map +1 -1
- package/dist/window/apply-chrome.js +16 -2
- package/dist/window/apply-chrome.js.map +1 -1
- package/dist/window/backdrop.d.ts +4 -1
- package/dist/window/backdrop.d.ts.map +1 -1
- package/dist/window/backdrop.js +10 -2
- package/dist/window/backdrop.js.map +1 -1
- package/dist/window/badge-icon.d.ts +37 -0
- package/dist/window/badge-icon.d.ts.map +1 -0
- package/dist/window/badge-icon.js +196 -0
- package/dist/window/badge-icon.js.map +1 -0
- package/dist/window/chrome.d.ts +10 -0
- package/dist/window/chrome.d.ts.map +1 -1
- package/dist/window/chrome.js +8 -0
- package/dist/window/chrome.js.map +1 -1
- package/dist/window/create-window.d.ts +1 -1
- package/dist/window/create-window.d.ts.map +1 -1
- package/dist/window/create-window.js +3 -1
- package/dist/window/create-window.js.map +1 -1
- package/dist/window/css-pixels.d.ts +14 -0
- package/dist/window/css-pixels.d.ts.map +1 -0
- package/dist/window/css-pixels.js +12 -0
- package/dist/window/css-pixels.js.map +1 -0
- package/dist/window/dock.d.ts +51 -0
- package/dist/window/dock.d.ts.map +1 -0
- package/dist/window/dock.js +69 -0
- package/dist/window/dock.js.map +1 -0
- package/dist/window/index.d.ts +5 -1
- package/dist/window/index.d.ts.map +1 -1
- package/dist/window/index.js +3 -1
- package/dist/window/index.js.map +1 -1
- package/dist/window/message-hooks.d.ts +26 -0
- package/dist/window/message-hooks.d.ts.map +1 -0
- package/dist/window/message-hooks.js +46 -0
- package/dist/window/message-hooks.js.map +1 -0
- package/dist/window/message-pump.d.ts +3 -1
- package/dist/window/message-pump.d.ts.map +1 -1
- package/dist/window/message-pump.js +4 -1
- package/dist/window/message-pump.js.map +1 -1
- package/dist/window/native.d.ts +40 -0
- package/dist/window/native.d.ts.map +1 -1
- package/dist/window/native.js +144 -6
- package/dist/window/native.js.map +1 -1
- package/dist/window/reduced-motion.d.ts +7 -0
- package/dist/window/reduced-motion.d.ts.map +1 -0
- package/dist/window/reduced-motion.js +15 -0
- package/dist/window/reduced-motion.js.map +1 -0
- package/dist/window/system-dispatcher-queue.d.ts +7 -0
- package/dist/window/system-dispatcher-queue.d.ts.map +1 -0
- package/dist/window/system-dispatcher-queue.js +56 -0
- package/dist/window/system-dispatcher-queue.js.map +1 -0
- package/dist/window/taskbar-calls.d.ts +58 -0
- package/dist/window/taskbar-calls.d.ts.map +1 -0
- package/dist/window/taskbar-calls.js +77 -0
- package/dist/window/taskbar-calls.js.map +1 -0
- package/dist/window/taskbar-native.d.ts +9 -0
- package/dist/window/taskbar-native.d.ts.map +1 -0
- package/dist/window/taskbar-native.js +119 -0
- package/dist/window/taskbar-native.js.map +1 -0
- package/dist/window/taskbar.d.ts +104 -0
- package/dist/window/taskbar.d.ts.map +1 -0
- package/dist/window/taskbar.js +117 -0
- package/dist/window/taskbar.js.map +1 -0
- package/dist/window/transparent-backdrop.d.ts +18 -0
- package/dist/window/transparent-backdrop.d.ts.map +1 -0
- package/dist/window/transparent-backdrop.js +71 -0
- package/dist/window/transparent-backdrop.js.map +1 -0
- package/dist/window/window-handle.d.ts +34 -0
- package/dist/window/window-handle.d.ts.map +1 -1
- package/dist/window/window-handle.js +55 -0
- package/dist/window/window-handle.js.map +1 -1
- package/dist/window/window-host.svelte.d.ts +34 -13
- package/dist/window/window-host.svelte.d.ts.map +1 -1
- package/dist/window/window-host.svelte.js +220 -18
- package/dist/window/window-host.svelte.js.map +1 -1
- package/dist/window/window-state-keeper.d.ts +49 -0
- package/dist/window/window-state-keeper.d.ts.map +1 -0
- package/dist/window/window-state-keeper.js +164 -0
- package/dist/window/window-state-keeper.js.map +1 -0
- package/dist/window/window-state.d.ts +83 -0
- package/dist/window/window-state.d.ts.map +1 -0
- package/dist/window/window-state.js +155 -0
- package/dist/window/window-state.js.map +1 -0
- package/dist/winui.d.ts +7 -0
- package/dist/winui.d.ts.map +1 -1
- package/dist/winui.js +7 -0
- package/dist/winui.js.map +1 -1
- package/package.json +123 -7
- package/src/accessibility/announce.ts +67 -0
- package/src/accessibility/audit/audit-tree.ts +199 -0
- package/src/accessibility/audit/contrast.ts +149 -0
- package/src/accessibility/audit/index.ts +27 -0
- package/src/accessibility/audit/rules.ts +110 -0
- package/src/accessibility/audit/visual-tree-host.ts +179 -0
- package/src/accessibility/index.ts +8 -0
- package/src/accessibility/live-priority.ts +32 -0
- package/src/accessibility/live-region.ts +27 -0
- package/src/accessibility/notification.ts +35 -0
- package/src/app/activate.ts +88 -0
- package/src/app/activation/classify.ts +130 -0
- package/src/app/activation/command.ts +83 -0
- package/src/app/activation/context.ts +29 -0
- package/src/app/activation/index.ts +10 -0
- package/src/app/activation/kinds.ts +63 -0
- package/src/app/activation/login.ts +90 -0
- package/src/app/activation/native.ts +301 -0
- package/src/app/activation/protocol-handlers.ts +83 -0
- package/src/app/activation/receive.ts +106 -0
- package/src/app/activation/registration.ts +305 -0
- package/src/app/activation/registry.ts +26 -0
- package/src/app/activation/scheme.ts +115 -0
- package/src/app/hotkeys/errors.ts +30 -0
- package/src/app/hotkeys/index.ts +76 -0
- package/src/app/hotkeys/keys.ts +194 -0
- package/src/app/hotkeys/native.ts +36 -0
- package/src/app/hotkeys/registry.ts +153 -0
- package/src/app/index.ts +6 -0
- package/src/app/launch-command.ts +80 -0
- package/src/app/native.ts +58 -0
- package/src/app/notification-schedule.ts +25 -0
- package/src/app/notification-source.ts +23 -8
- package/src/app/notify.ts +65 -10
- package/src/app/relaunch.ts +79 -0
- package/src/app/restart-after-crash.ts +111 -0
- package/src/app/schedule-bindings.ts +3 -0
- package/src/app/windows-time.ts +13 -0
- package/src/components/convert.ts +6 -5
- package/src/components/fluent-glyph.ts +6 -0
- package/src/components/generated/bindings.ts +1 -0
- package/src/components/generated/controls/FontIcon.svelte.ts +1 -1
- package/src/components/generated/controls/FontIconSource.svelte.ts +1 -1
- package/src/components/generated/controls/UIElement.svelte.ts +1 -1
- package/src/components/generated/enums.ts +3 -0
- package/src/components/index.ts +4 -2
- package/src/components/runtime.svelte.ts +18 -6
- package/src/composition/animate.ts +263 -0
- package/src/composition/expression.ts +492 -0
- package/src/composition/index.ts +36 -0
- package/src/composition/property-set.ts +104 -0
- package/src/composition/spring.ts +57 -0
- package/src/composition/targets.ts +74 -0
- package/src/css/API.md +321 -2
- package/src/css/index.ts +2 -0
- package/src/css/parse/box-shadow.ts +90 -0
- package/src/css/parse/filters.ts +1 -1
- package/src/css/parse/parser.ts +1 -1
- package/src/css/parse/scroll-timeline.ts +373 -0
- package/src/css/runtime/resources.ts +2 -2
- package/src/css/runtime/runtime.ts +52 -16
- package/src/css/runtime/sheet-module.ts +31 -11
- package/src/css/runtime/visual-state-native.ts +161 -0
- package/src/css/runtime/visual-states.ts +117 -0
- package/src/css/scroll-timeline.ts +12 -0
- package/src/css/shadow.ts +12 -0
- package/src/css/translate/animation-properties.ts +240 -15
- package/src/css/translate/build-shorthands.ts +5 -3
- package/src/css/translate/cascade.ts +5 -1
- package/src/css/translate/easing.ts +5 -0
- package/src/css/translate/font-face.ts +97 -0
- package/src/css/translate/handled-members.ts +16 -0
- package/src/css/translate/lazy-groups.ts +43 -1
- package/src/css/translate/linked-tracks.ts +56 -0
- package/src/css/translate/scroll-link.ts +317 -0
- package/src/css/translate/scroll-timeline-properties.ts +222 -0
- package/src/css/translate/shadow-mode.ts +29 -0
- package/src/css/translate/shadow-properties.ts +199 -0
- package/src/css/translate/shorthands.ts +4 -3
- package/src/css/translate/state-properties.ts +151 -0
- package/src/css/translate/surface-properties.ts +22 -17
- package/src/css/translate/translate.ts +69 -17
- package/src/css/translate/type-ramp.ts +65 -0
- package/src/css/translate/types.ts +8 -0
- package/src/css/translate/typography-properties.ts +533 -0
- package/src/css/translate/unsupported-properties.ts +8 -1
- package/src/css/translate/view-transition-properties.ts +70 -0
- package/src/css/translate/winui-only-properties.ts +16 -1
- package/src/css/typography.ts +6 -0
- package/src/css/validate/vscode-data.ts +44 -0
- package/src/css/view-transition.ts +13 -0
- package/src/css/visual-states.ts +17 -0
- package/src/dev/dev-window.ts +63 -0
- package/src/dev/index.ts +2 -0
- package/src/dev/start-dev.ts +120 -0
- package/src/devices/bindings.ts +4 -1
- package/src/devices/displays.svelte.ts +2 -1
- package/src/devices/live.svelte.ts +4 -54
- package/src/devices/power.svelte.ts +51 -0
- package/src/devices/power.ts +12 -3
- package/src/devices/subscription.ts +60 -0
- package/src/devices/system-power.ts +95 -0
- package/src/enums.ts +13 -1
- package/src/font-files.ts +68 -0
- package/src/font-registry.ts +79 -0
- package/src/font-spelling.ts +29 -0
- package/src/index.ts +2 -0
- package/src/input/active-element.svelte.ts +44 -0
- package/src/input/dom-event.ts +121 -0
- package/src/input/events.ts +272 -0
- package/src/input/focused-element.ts +34 -0
- package/src/input/index.ts +12 -0
- package/src/input/key-names.ts +231 -0
- package/src/input/keyboard-fields.ts +71 -0
- package/src/input/move-focus.ts +35 -0
- package/src/input/pointer-capture.ts +92 -0
- package/src/input/pointer-fields.ts +212 -0
- package/src/input/pointer-routes.ts +16 -0
- package/src/input/trap-focus.ts +56 -0
- package/src/key-code.ts +139 -0
- package/src/messaging/page.ts +61 -0
- package/src/messaging/web-view2/cookies.ts +109 -0
- package/src/messaging/web-view2/core.ts +126 -0
- package/src/messaging/web-view2/index.ts +14 -0
- package/src/messaging/web-view2/policy.ts +127 -0
- package/src/messaging/web-view2/transport.ts +137 -0
- package/src/notice/index.ts +3 -0
- package/src/notice/native.ts +48 -0
- package/src/notice/notice.ts +148 -0
- package/src/renderer/host/connected-configuration.ts +49 -0
- package/src/renderer/host/control.ts +7 -2
- package/src/renderer/host/element-animation.ts +2 -16
- package/src/renderer/host/glide-height.ts +147 -0
- package/src/renderer/host/implicit-layout-animation.ts +190 -0
- package/src/renderer/host/motion-preference.ts +31 -0
- package/src/renderer/host/view-transition-names.ts +30 -0
- package/src/settings/SettingsCard.d.svelte.ts +12 -0
- package/src/settings/SettingsExpander.d.svelte.ts +12 -0
- package/src/settings/index.ts +9 -0
- package/src/settings/settings-context.ts +13 -0
- package/src/settings/settings-props.ts +57 -0
- package/src/store/bindings.ts +11 -0
- package/src/store/identity.ts +36 -0
- package/src/store/index.ts +21 -0
- package/src/store/license.ts +136 -0
- package/src/store/packages.ts +94 -0
- package/src/store/reply.ts +29 -0
- package/src/store/startup.ts +29 -0
- package/src/store/states.ts +72 -0
- package/src/store/types.ts +122 -0
- package/src/store/updates.ts +29 -0
- package/src/store/window-interop.ts +40 -0
- package/src/store/windows-backend.ts +27 -0
- package/src/store/windows-identity.ts +58 -0
- package/src/store/windows-packages.ts +91 -0
- package/src/store/windows-store.ts +126 -0
- package/src/tray/exit-hook.ts +13 -0
- package/src/tray/native.ts +5 -41
- package/src/tray/standalone/index.ts +16 -0
- package/src/tray/standalone/native.ts +144 -0
- package/src/tray/standalone/standalone-tray.ts +124 -0
- package/src/tray/tray-icon.ts +3 -8
- package/src/web-apis/animations.ts +4 -31
- package/src/web-apis/atomic-file.ts +36 -0
- package/src/web-apis/badge-glyph.ts +18 -0
- package/src/web-apis/badging.ts +37 -19
- package/src/web-apis/fonts.ts +277 -0
- package/src/web-apis/keyframe-input.ts +43 -0
- package/src/web-apis/notification.ts +114 -4
- package/src/web-apis/page.ts +70 -8
- package/src/web-apis/scroll-timeline.ts +544 -0
- package/src/web-apis/view-transitions.ts +409 -0
- package/src/web-apis/web-storage.ts +2 -35
- package/src/web-apis/window-controls-overlay.ts +213 -0
- package/src/web-apis/window-geometry.ts +106 -0
- package/src/win2d/child-slot.ts +43 -0
- package/src/win2d/context-2d/pointer-events.ts +14 -119
- package/src/win2d/element-lifecycle.ts +97 -0
- package/src/win2d/element-shadow.ts +167 -0
- package/src/win2d/element-visual.ts +19 -84
- package/src/win2d/scroll-host.ts +364 -0
- package/src/win2d/scroll-link.ts +227 -0
- package/src/win2d/shadow-geometry.ts +98 -0
- package/src/win2d/shadow-host.ts +26 -0
- package/src/win2d/shadow-receivers.ts +82 -0
- package/src/win32-calls.ts +6 -2
- package/src/win32-icons.ts +162 -0
- package/src/window/anchor.ts +156 -0
- package/src/window/apply-chrome.ts +22 -0
- package/src/window/backdrop.ts +11 -2
- package/src/window/badge-icon.ts +234 -0
- package/src/window/chrome.ts +12 -0
- package/src/window/create-window.ts +5 -1
- package/src/window/css-pixels.ts +18 -0
- package/src/window/dock.ts +99 -0
- package/src/window/index.ts +5 -1
- package/src/window/message-hooks.ts +63 -0
- package/src/window/message-pump.ts +8 -1
- package/src/window/native.ts +174 -6
- package/src/window/reduced-motion.ts +14 -0
- package/src/window/system-dispatcher-queue.ts +61 -0
- package/src/window/taskbar-calls.ts +111 -0
- package/src/window/taskbar-native.ts +140 -0
- package/src/window/taskbar.ts +174 -0
- package/src/window/transparent-backdrop.ts +75 -0
- package/src/window/window-handle.ts +62 -0
- package/src/window/window-host.svelte.ts +300 -31
- package/src/window/window-state-keeper.ts +205 -0
- package/src/window/window-state.ts +207 -0
- package/src/winui.ts +7 -0
- package/web-types.json +10625 -1484
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# winui-svelte
|
|
2
2
|
|
|
3
|
+
<img src="https://raw.githubusercontent.com/avi12/winui-svelte/main/ide/icon.svg" alt="The winui-svelte logo" width="96" height="96">
|
|
4
|
+
|
|
3
5
|
[](https://www.npmjs.com/package/winui-svelte)
|
|
4
6
|
|
|
5
7
|
WinUI 3 controls as Svelte components: native Windows apps written in Svelte,
|
|
@@ -10,6 +12,24 @@ controls animate and are accessible as WinUI makes them, and acrylic is a real
|
|
|
10
12
|
backdrop
|
|
11
13
|
No browser engine is involved; there is no DOM
|
|
12
14
|
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
# pnpm
|
|
19
|
+
pnpm add winui-svelte
|
|
20
|
+
|
|
21
|
+
# npm
|
|
22
|
+
npm install winui-svelte
|
|
23
|
+
|
|
24
|
+
# bun
|
|
25
|
+
bun add winui-svelte
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The WinUI bindings, the Windows App SDK bootstrapper and the Vite plugin come
|
|
29
|
+
with it
|
|
30
|
+
The package installs with any of the three; an app runs on Node 24 or newer
|
|
31
|
+
(`node main.ts`), as the [Requirements](#requirements) say
|
|
32
|
+
|
|
13
33
|
## Using it, at a glance
|
|
14
34
|
|
|
15
35
|
Everything an app needs, in the order a new project hits it
|
|
@@ -42,6 +62,16 @@ signature
|
|
|
42
62
|
- **Web APIs** (`Notification`, `navigator.geolocation`, the clipboard and the
|
|
43
63
|
rest) are the browser's own, backed by Windows; call them as on the web
|
|
44
64
|
([Web APIs](#web-apis))
|
|
65
|
+
- **Overlays:** `sizeToContent` and `anchor` on `<Window>` size a window to its
|
|
66
|
+
content with one corner pinned (a bottom-right pill grows upward),
|
|
67
|
+
`isActivatable` can change while the window is open, and `handle.dock()`
|
|
68
|
+
puts a window against a corner of the active display's work area; the window's
|
|
69
|
+
own `outerWidth`, `screenX`, `resizeTo` and `moveBy` are on `handle.geometry`
|
|
70
|
+
([API.md](https://github.com/avi12/winui-svelte/blob/main/API.md))
|
|
71
|
+
- **Window place:** `stateKey` on `<Window>` saves its bounds, maximized state
|
|
72
|
+
and presentation under that name and restores them on the next run, inside
|
|
73
|
+
the nearest display so a disconnected monitor never strands it
|
|
74
|
+
([API.md](https://github.com/avi12/winui-svelte/blob/main/API.md))
|
|
45
75
|
- **Errors** thrown in an event handler or a prop are caught on the UI thread,
|
|
46
76
|
written to stderr with their stack and handed to `runWindow({ onerror })`;
|
|
47
77
|
the app goes on ([API.md](https://github.com/avi12/winui-svelte/blob/main/API.md))
|
|
@@ -126,14 +156,22 @@ written with it
|
|
|
126
156
|
| Svelte | 5.51.1 to 5.57.3 (the peer range `5.51.1 - 5.57.3` is what `pnpm check:svelte-matrix` proves; the package edits a few spots of Svelte's runtime and says so, naming the file and the release, when one no longer matches) |
|
|
127
157
|
| Vite | 8 (for the dev server and hot reload) |
|
|
128
158
|
|
|
129
|
-
##
|
|
159
|
+
## Editor support
|
|
130
160
|
|
|
131
|
-
|
|
132
|
-
pnpm add winui-svelte
|
|
133
|
-
```
|
|
161
|
+
Two optional add-ons for `.svelte` files, one for each editor:
|
|
134
162
|
|
|
135
|
-
|
|
136
|
-
|
|
163
|
+
- previews and completions for icon names, colours and installed fonts
|
|
164
|
+
- Alt+Enter on a component's prop converts it to the CSS that sets the same
|
|
165
|
+
value
|
|
166
|
+
|
|
167
|
+
| Editor | Download | Install |
|
|
168
|
+
| --- | --- | --- |
|
|
169
|
+
| VS Code | `winui-svelte-vscode-<version>.vsix`, or [the Visual Studio Marketplace page](https://marketplace.visualstudio.com/items?itemName=Avi.winui-svelte-vscode) | `code --install-extension winui-svelte-vscode-0.0.1.vsix`, or the Extensions view, the `...` menu, Install from VSIX |
|
|
170
|
+
| WebStorm | `winui-svelte-webstorm-<version>.zip`, or [the JetBrains Marketplace page](https://plugins.jetbrains.com/plugin/35835-winui-svelte) | Settings, Plugins, the gear, Install Plugin from Disk |
|
|
171
|
+
|
|
172
|
+
Both files are assets of the `editors-v*` releases, on their own tags apart
|
|
173
|
+
from the package's: [open the editors releases](https://github.com/avi12/winui-svelte/releases?q=editors-v)
|
|
174
|
+
and take the newest
|
|
137
175
|
|
|
138
176
|
## Quick start
|
|
139
177
|
|
|
@@ -195,104 +233,45 @@ any Svelte binding:
|
|
|
195
233
|
|
|
196
234
|
<!-- hello/App.svelte:end -->
|
|
197
235
|
|
|
198
|
-
`
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
a timer takes the server's hot updates in (the thread's libuv turns between
|
|
204
|
-
WinUI's messages, so `fs`, sockets, `fetch`, `WebSocket` and worker messages
|
|
205
|
-
all complete there too; see [Timers and I/O](https://github.com/avi12/winui-svelte/blob/main/API.md#timers-and-io)):
|
|
206
|
-
|
|
207
|
-
<!-- hello/window.ts:start -->
|
|
208
|
-
|
|
209
|
-
```ts
|
|
210
|
-
import { MessagePort, workerData } from "node:worker_threads";
|
|
211
|
-
import { createWindowModuleRunner } from "winui-svelte/runner";
|
|
212
|
-
import { runOnUiThread } from "winui-svelte/thread";
|
|
213
|
-
import type * as WindowModule from "winui-svelte/window";
|
|
214
|
-
import { z } from "zod";
|
|
215
|
-
|
|
216
|
-
// The window: WinUI's thread. Its modules come from the host's dev server, and
|
|
217
|
-
// the server's hot updates arrive as messages the window's loop delivers.
|
|
218
|
-
|
|
219
|
-
const windowSize = {
|
|
220
|
-
width: 480,
|
|
221
|
-
height: 320
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
const workerDataSchema = z.object({ modules: z.instanceof(MessagePort) });
|
|
225
|
-
|
|
226
|
-
await runOnUiThread(async () => {
|
|
227
|
-
const parsedData = workerDataSchema.safeParse(workerData);
|
|
228
|
-
if (!parsedData.success) {
|
|
229
|
-
throw new Error("the host passed no port to its dev server");
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// Everything goes through the runner, so the window and the components
|
|
233
|
-
// share one renderer.
|
|
234
|
-
const { runner } = createWindowModuleRunner(parsedData.data.modules);
|
|
235
|
-
const { createWindow, runWindow } = await runner.import<typeof WindowModule>("winui-svelte/window");
|
|
236
|
-
const { default: appComponent } = await runner.import("/App.svelte");
|
|
237
|
-
await runWindow({
|
|
238
|
-
onStart() {
|
|
239
|
-
createWindow({
|
|
240
|
-
component: appComponent,
|
|
241
|
-
props: {},
|
|
242
|
-
title: "Hello",
|
|
243
|
-
size: windowSize,
|
|
244
|
-
// Set for an unattended run: the window opens without taking focus.
|
|
245
|
-
isBackground: process.env["WINUI_SVELTE_BACKGROUND"] === "1"
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
<!-- hello/window.ts:end -->
|
|
253
|
-
|
|
254
|
-
`main.ts` is the host: it starts the Windows App SDK, the dev server and the
|
|
255
|
-
window:
|
|
236
|
+
`main.ts` is the host: `startDev` (the package's `/dev` entry) starts the Windows
|
|
237
|
+
App SDK, the dev server and the window on its own thread, so that a saved file
|
|
238
|
+
updates the open window; the pieces it joins (`startModuleServer`,
|
|
239
|
+
`createWindowModuleRunner`, `runOnUiThread`) stay available for a host that
|
|
240
|
+
needs its own:
|
|
256
241
|
|
|
257
242
|
<!-- hello/main.ts:start -->
|
|
258
243
|
|
|
259
244
|
```ts
|
|
260
|
-
import
|
|
261
|
-
import { MessageChannel, Worker } from "node:worker_threads";
|
|
262
|
-
import { initWindowsAppSdk } from "winui-svelte/bootstrap";
|
|
263
|
-
import { startModuleServer } from "winui-svelte/vite";
|
|
245
|
+
import { startDev } from "winui-svelte/dev";
|
|
264
246
|
|
|
265
|
-
// The host: it
|
|
266
|
-
//
|
|
267
|
-
// the window, which runs on a worker because WinUI keeps its thread.
|
|
247
|
+
// The host: it opens App.svelte in a window and keeps it live, so a saved
|
|
248
|
+
// file updates the open window.
|
|
268
249
|
//
|
|
269
250
|
// node main.ts
|
|
270
251
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const modules = new MessageChannel();
|
|
274
|
-
await startModuleServer({
|
|
252
|
+
process.exitCode = await startDev({
|
|
275
253
|
root: import.meta.dirname,
|
|
276
|
-
configFile:
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
process.stderr.write(`${error.stack ?? String(error)}\n`);
|
|
287
|
-
process.exitCode = 1;
|
|
288
|
-
});
|
|
289
|
-
worker.on("exit", code => {
|
|
290
|
-
process.exit(process.exitCode ?? code);
|
|
254
|
+
configFile: `${import.meta.dirname}/vite.config.ts`,
|
|
255
|
+
component: "/App.svelte",
|
|
256
|
+
window: {
|
|
257
|
+
title: "Hello",
|
|
258
|
+
size: {
|
|
259
|
+
width: 480,
|
|
260
|
+
height: 320
|
|
261
|
+
},
|
|
262
|
+
isBackground: process.env["WINUI_SVELTE_BACKGROUND"] === "1"
|
|
263
|
+
}
|
|
291
264
|
});
|
|
292
265
|
```
|
|
293
266
|
|
|
294
267
|
<!-- hello/main.ts:end -->
|
|
295
268
|
|
|
269
|
+
A Tauri or Electron app starts a file like this as its sidecar (a Node process the
|
|
270
|
+
framework owns), with `host: "stdio"` or a transport of its own; the component
|
|
271
|
+
then receives the framework's state as a `channel` prop (see the [dev loop in
|
|
272
|
+
API.md](https://github.com/avi12/winui-svelte/blob/main/API.md#dev-loop-winui-sveltedev) and the
|
|
273
|
+
[hosts section](https://github.com/avi12/winui-svelte/blob/main/API.md#hosts-tauri-electron-and-node))
|
|
274
|
+
|
|
296
275
|
```sh
|
|
297
276
|
node main.ts
|
|
298
277
|
```
|
|
@@ -548,6 +527,7 @@ build error with its file and line; nothing is silently ignored
|
|
|
548
527
|
| `background-image` or `background` with `linear-gradient()` or `radial-gradient()` | a `LinearGradientBrush` or `RadialGradientBrush` Background (a sheet that uses one carries the parser; one that does not, does not) |
|
|
549
528
|
| `width`, `height`, `min-*`, `max-*` | `Width`, `Height`, `MinWidth`... |
|
|
550
529
|
| `font-size`, `font-weight`, `font-family`, `font-style`, `line-height`, `letter-spacing`, `text-align`, `text-wrap`, `text-overflow`, `text-decoration` | the `TextBlock` and `Control` font and text properties |
|
|
530
|
+
| `font-variant-*`, `font-kerning`, `font-feature-settings`, `font: var(--type-body)` | the `Typography` attached properties of a TextBlock (small caps, numerals, ligatures, stylistic sets), and a step of WinUI's type ramp as the font size resource and weight of its style (`font-variation-settings` has no WinUI counterpart; see [`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md#typography-opentype-features-and-the-type-ramp)) |
|
|
551
531
|
| `font-stretch`, `direction`, `background-clip`, `tab-index` | `FontStretch` (`ultra-condensed` to `ultra-expanded`), `FlowDirection` (`ltr`, `rtl`), `BackgroundSizing` (`border-box` is `OuterBorderEdge`, `padding-box` is `InnerBorderEdge`), `TabIndex` (a negative value sets `IsTabStop` to false) |
|
|
552
532
|
| `gap`, `row-gap`, `column-gap` | `Spacing` (a stack), `RowSpacing` and `ColumnSpacing` (a grid) |
|
|
553
533
|
| `flex-direction`, `display: flex` on a stack, `align-self`, `justify-self` | `Orientation`, `VerticalAlignment`, `HorizontalAlignment` |
|
|
@@ -555,14 +535,16 @@ build error with its file and line; nothing is silently ignored
|
|
|
555
535
|
| `display: none`, `visibility`, `pointer-events`, `z-index`, `overflow` | `Visibility`, `IsHitTestVisible`, `Canvas.ZIndex`, the scroll bar visibilities |
|
|
556
536
|
| `outline`, `outline-offset` | the focus visual: `FocusVisualPrimaryBrush`, `FocusVisualPrimaryThickness`, `FocusVisualMargin` |
|
|
557
537
|
| `animation`, `@keyframes` | `Storyboard`s of key frames (opacity, size, colors, translate, scale, rotate, transform, and every keyword property such as `font-style` or `text-align`, which steps at the middle of an interval; `display` and `visibility` hold the visible value instead: a hide lands at the end of the animation and a show at its start), begun with the class |
|
|
538
|
+
| `animation-timeline` (`scroll()`, `view()`, a name), `animation-range`, `scroll-timeline`, `view-timeline` | an `ExpressionAnimation` over the scroll viewer's manipulation property set that drives opacity, translate, scale and rotate on the compositor, so a header that collapses or a parallax runs while the UI thread is idle |
|
|
558
539
|
| `box-shadow`, `aspect-ratio`, `user-select`, `object-fit`, `line-clamp`, `word-break` | a `ThemeShadow` of the blur's depth, a Height that follows the Width, `IsTextSelectionEnabled`, `Stretch`, `MaxLines`, `TextWrapping` |
|
|
559
540
|
| `-winui-elevation` | a `ThemeShadow` lifted by its depth |
|
|
541
|
+
| `-winui-shadow: composition`, `-winui-shadow-receiver`, `-winui-shadow-cast-on` | `box-shadow` drawn by a Composition `DropShadow` that keeps its colour, offset, blur and spread, and the Receivers of a `ThemeShadow` named by a group |
|
|
560
542
|
| `filter`, `backdrop-filter`, `mix-blend-mode`, `mask-image` | an effect graph of Win2D effects (Gaussian blur, colour matrix, blend, alpha mask) that the element's Composition visual is drawn through; `backdrop-filter` samples a real backdrop brush |
|
|
561
543
|
| `clip-path`: `inset()` (with `round`), `circle()`, `ellipse()`, `polygon()`, `path()` | a `CompositionGeometricClip` on the element's visual |
|
|
562
544
|
| `translate`, `scale`, `rotate`, `transform-origin`, `transition`; `transform` (translate, scale, rotate, skew, matrix) | the UIElement transforms, their pivot (`CenterPoint`, 50% 50% as in CSS) and their implicit transitions; `transition` also runs a Storyboard for `width`, `height`, `min-` and `max-` sizes, `font-size`, `color` and `border-color` between values written out, and `allow-discrete` steps any keyword property: `display 200ms allow-discrete` keeps a hidden element shown until the transition ends, `text-align 200ms allow-discrete` changes it at the middle |
|
|
563
545
|
| `var(--card-background-fill-color-default)` | `{ThemeResource CardBackgroundFillColorDefault}`: WinUI's own resources, so light and dark follow Windows |
|
|
564
546
|
| `--name: value` on `:root`, or on a class | an app-wide resource, or one only the elements with that class (and their templates) see: `.danger { --button-background-pointer-over: red }` |
|
|
565
|
-
| `.class`, `type`, `:hover`, `:focus`, `:active`, `:root`, `:where()` | class and type matching, the control's events, custom properties |
|
|
547
|
+
| `.class`, `type`, `:hover`, `:focus`, `:active`, `:root`, `:where()` | class and type matching, the control's events (a Button's `:hover`, `:active` and `:disabled` brushes as the visual states of its template, see [`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md#pseudo-classes-on-a-templated-control-visual-states)), custom properties |
|
|
566
548
|
|
|
567
549
|
</details>
|
|
568
550
|
|
|
@@ -577,6 +559,44 @@ is an error too, in the build and the editor, at the rule and naming the element
|
|
|
577
559
|
that uses it, instead of a failure when the window opens
|
|
578
560
|
The table of every unit is in [`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md#length-units)
|
|
579
561
|
|
|
562
|
+
### Fonts
|
|
563
|
+
|
|
564
|
+
A font file of the app is used by its family name: an `@font-face` whose `src`
|
|
565
|
+
is a `url()` of the file, then the family in `font-family`
|
|
566
|
+
|
|
567
|
+
```svelte
|
|
568
|
+
<style>
|
|
569
|
+
@font-face {
|
|
570
|
+
font-family: "Material Symbols Rounded";
|
|
571
|
+
src: url("./fonts/MaterialSymbolsRounded.ttf");
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.icon {
|
|
575
|
+
font-family: "Material Symbols Rounded";
|
|
576
|
+
}
|
|
577
|
+
</style>
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
- The family must be the name written inside the font file; WinUI finds the
|
|
581
|
+
file by that name, and a different name falls back to the default font
|
|
582
|
+
without an error
|
|
583
|
+
- A relative `url()` is relative to the stylesheet; in a built app the sheet is
|
|
584
|
+
part of the bundle, so the file is also looked for by its name beside the
|
|
585
|
+
bundle (copy the fonts there); a file that is not found is an error naming the
|
|
586
|
+
places looked
|
|
587
|
+
- Only `font-family` and `src` mean something: WinUI takes the weight, style and
|
|
588
|
+
width from the font file itself, so `font-weight`, `font-style`,
|
|
589
|
+
`font-stretch` and `unicode-range` are a warning; the first `url()` of `src`
|
|
590
|
+
is used, and a web address is an error (a font is a file next to the app)
|
|
591
|
+
- One file per family name; registering a name again replaces its file
|
|
592
|
+
- It works in a plain Node process, the case that is tested (a packaged app is
|
|
593
|
+
not): the file is handed to WinUI as `ms-appx:///` and its absolute path, with
|
|
594
|
+
the family name after a `#`; nothing is installed on the machine
|
|
595
|
+
- The same from code: `registerFont({ family, source })` from
|
|
596
|
+
`winui-svelte/css`, or the web `FontFace` and `document.fonts.add(face)` once
|
|
597
|
+
`installFontFaces()` from `winui-svelte/web-apis/fonts` has run; a family
|
|
598
|
+
added later is used by the controls created after it
|
|
599
|
+
|
|
580
600
|
### Scoping
|
|
581
601
|
|
|
582
602
|
A rule in a component's `<style>` reaches only the elements and the component
|
|
@@ -716,6 +736,37 @@ The animation moves the control's `Opacity`, `Translation`, `Scale`,
|
|
|
716
736
|
See
|
|
717
737
|
[API.md](https://github.com/avi12/winui-svelte/blob/main/API.md) for the details and what WinUI cannot do
|
|
718
738
|
|
|
739
|
+
A card whose content grows or shrinks glides to its new height with
|
|
740
|
+
`@attach glideHeight()` (WinUI cannot animate `Height="Auto"`; this is a
|
|
741
|
+
`ResizeObserver` plus `element.animate({ height })` in one attachment, and
|
|
742
|
+
needs `enableElementAnimation()` once)
|
|
743
|
+
|
|
744
|
+
</details>
|
|
745
|
+
|
|
746
|
+
## Wrapping chips
|
|
747
|
+
|
|
748
|
+
<details>
|
|
749
|
+
<summary>A row that wraps onto further lines</summary>
|
|
750
|
+
|
|
751
|
+
WinUI has no `flex-wrap`; a `RichTextBlock` wraps its inline children like
|
|
752
|
+
words, and an `InlineUIContainer` makes a chip one of them, so chips of any width
|
|
753
|
+
wrap (`VariableSizedWrapGrid` wraps too, with one cell size for all):
|
|
754
|
+
|
|
755
|
+
```svelte
|
|
756
|
+
<RichTextBlock>
|
|
757
|
+
<Paragraph>
|
|
758
|
+
{#each links as link (link.href)}
|
|
759
|
+
<InlineUIContainer>
|
|
760
|
+
<HyperlinkButton navigateUri={link.href}>{link.label}</HyperlinkButton>
|
|
761
|
+
</InlineUIContainer>
|
|
762
|
+
{/each}
|
|
763
|
+
</Paragraph>
|
|
764
|
+
</RichTextBlock>
|
|
765
|
+
```
|
|
766
|
+
|
|
767
|
+
See
|
|
768
|
+
[API.md](https://github.com/avi12/winui-svelte/blob/main/API.md) for the measured comparison
|
|
769
|
+
|
|
719
770
|
</details>
|
|
720
771
|
|
|
721
772
|
## Accessibility and theming
|
|
@@ -802,7 +853,10 @@ conditions on `exports`), which your Vite compiles (`winuiSvelte()`)
|
|
|
802
853
|
| `winui-svelte/state` | the window's side of host state |
|
|
803
854
|
| `winui-svelte/state/host` | a JavaScript host's side: `diff`, transports, message types |
|
|
804
855
|
| `winui-svelte/messaging` | `defineMessaging`: typed request and response messages over a transport, loadable in plain Node |
|
|
856
|
+
| `winui-svelte/messaging/web-view2`, `/messaging/page` | `webView2Transport` and the `WebView2` helpers (scripts, cookies, downloads, permissions); the web page's end of the link, free of WinUI (both opt-in) |
|
|
857
|
+
| `winui-svelte/messaging/web-view2`, `/messaging/page` | `webView2Transport` and the `WebView2` helpers (scripts, cookies, downloads, permissions); the web page's end of the link, free of WinUI (both opt-in) |
|
|
805
858
|
| `winui-svelte/vite` | `winuiSvelte()` for `vite.config.ts`; `startModuleServer()` for hot reload; `buildApp()` for the production bundle |
|
|
859
|
+
| `winui-svelte/dev` | `startDev()`, one call that opens a component in a window and keeps it live as the files are saved |
|
|
806
860
|
| `winui-svelte/runner` | `createWindowModuleRunner()`, the window thread's side of the module server |
|
|
807
861
|
| `winui-svelte/window` | `runWindow`, `createWindow`, `startTimer`, `exitApplication`, `systemSettings` |
|
|
808
862
|
| `winui-svelte/thread` | `runOnUiThread`, the first call of the UI thread's worker |
|
|
@@ -812,16 +866,29 @@ conditions on `exports`), which your Vite compiles (`winuiSvelte()`)
|
|
|
812
866
|
| `winui-svelte/element-animation` | `enableElementAnimation` (the Vite plugin calls it for you; Svelte's `transition:` and `animate:` run on WinUI) |
|
|
813
867
|
| `winui-svelte/attached-owners` | `preloadAttachedOwners` (the Vite plugin calls it for a component that names `canvasLeft`, `gridRow` and the like, so a placed control has its place at its first layout; a prop named nowhere needs the call by hand) |
|
|
814
868
|
| `winui-svelte/element-effects` | `enableElementEffects` (the Vite plugin calls it from a component that imports `blur` or `draw`): the blur transition blurs for real and `draw` measures a `path`, with Composition and Win2D |
|
|
815
|
-
| `winui-svelte/app` | single-instance handling over a named pipe,
|
|
869
|
+
| `winui-svelte/app` | single-instance handling over a named pipe, app notifications, `activateOrLaunch` to signal or start the app from another process, `relaunch` and restart after a crash |
|
|
870
|
+
| `winui-svelte/app/activation` | `navigator.registerProtocolHandler`, `registerFileTypes`, `launchAtLogin` for the current user, and every start (link, file, sign-in, a later copy) as one typed `ActivationEvent` (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#activation-winui-svelteappactivation)) |
|
|
816
871
|
| `winui-svelte/bindings/*` | Every bound WinRT and Windows App SDK class as it is named there, for the as-is kind (`winui-svelte/bindings/windows/storage/StorageFolder`) |
|
|
817
872
|
| `winui-svelte/web-apis`, `/web-apis/notification`, `/web-apis/media-devices`, `/web-apis/speech`, `/web-apis/media-session` | `installWebApis`, `installPermissions` and the Web APIs as opt-in installers: `Notification` over app notifications, media devices, speech and the media session (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#web-apis-winui-svelteweb-apis)) |
|
|
818
873
|
| `winui-svelte/data-transfer` | web-shaped drag and drop, `NativeFile`, pickers, the clipboard and the launcher (opt-in) |
|
|
874
|
+
| `winui-svelte/input` | the web's pointer, wheel, key and focus events on any element (`enableInputEvents`), pointer capture, `activeElement`, `moveFocus`, `trapFocus` (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#input-events-and-focus-winui-svelteinput)) |
|
|
819
875
|
| `winui-svelte/media` | `bitmapImageOf`, `svgImageSourceOf`, `createMediaPlayer`: image sources and a windowless `MediaPlayer` (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#media-winui-sveltemedia)) |
|
|
876
|
+
| `winui-svelte/app/hotkeys` | `registerHotkey`: a system-wide key combination, heard in any app (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#global-hotkeys-winui-svelteapphotkeys)) |
|
|
820
877
|
| `winui-svelte/tray` | `TrayIcon`, `createTrayIcon`, `hideToTray`: a notification-area icon (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#system-tray-winui-sveltetray)) |
|
|
878
|
+
| `winui-svelte/tray/standalone` | `createStandaloneTray`: a notification-area icon and a native popup menu in a plain Node process, with no window, no WinUI and no components, that starts or signals the full app (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#tray-with-no-window-winui-sveltetraystandalone)) |
|
|
879
|
+
| `winui-svelte/notice` | `showNotice`: a message box with no window or app, for a check that ends a run before it starts (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#notice-with-no-app-winui-sveltenotice)) |
|
|
880
|
+
| `winui-svelte/window/taskbar` | `handle.taskbar`: a progress bar, an overlay icon or badge and flashing on the window's taskbar button, and the unpackaged `setAppBadge` fallback (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#taskbar-button-winui-sveltewindowtaskbar)) |
|
|
821
881
|
| `winui-svelte/forms` | `Form`, `FormField` and the attachments that join a control to a form by name, with HTML's constraint validation and zod (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#forms-winui-svelteforms)) |
|
|
882
|
+
| `winui-svelte/store` | `getAppLicense`, `watchLicense`, `checkForUpdates`, `watchPackages`, `getStartupTask`: the Store licence, updates, package events and startup task, answering `hasPackage: false` outside a package (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#store-and-package-winui-sveltestore)) |
|
|
883
|
+
| `winui-svelte/accessibility`, `/accessibility/audit` | `announce` and `liveRegion` say a change to a screen reader (`aria-live`, `role="alert"`) over UI Automation notifications; `auditAccessibility` checks a window for unnamed buttons, unlabeled inputs, duplicate access keys and low contrast (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#accessibility-winui-svelteaccessibility)) |
|
|
822
884
|
| `winui-svelte/devices`, `/devices/enumeration`, `/devices/input`, `/devices/bluetooth`, `/devices/printers`, `/devices/power`, `/devices/network`, `/devices/audio`, `/devices/display`, `/devices/gamepad`, `/devices/sensors` | device enumeration, input devices, Bluetooth, printers, power, network, displays, audio, gamepads, sensors: Windows' own device APIs as runes (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#windows-devices-winui-sveltedevices)) |
|
|
885
|
+
| `winui-svelte/implicit-layout-animation` | `implicitLayoutAnimation`, `LayoutEasing`: the children of a panel slide to their new places when the layout moves them |
|
|
886
|
+
| `winui-svelte/settings` | `SettingsCard`, `SettingsExpander`: Fluent settings cards after the Community Toolkit's |
|
|
887
|
+
| `winui-svelte/scroll-timeline` | `installScrollTimeline`: `ScrollTimeline`, `ViewTimeline` and `element.animate(keyframes, { timeline })` over Composition (opt-in) |
|
|
888
|
+
| `winui-svelte/view-transitions` | `installViewTransitions`: `document.startViewTransition` over WinUI's connected animations, paired by `view-transition-name` (opt-in) |
|
|
823
889
|
| `winui-svelte/connected-animation` | `connectElement` and `startConnected`, WinUI's connected animation between pages |
|
|
824
|
-
| `winui-svelte/
|
|
890
|
+
| `winui-svelte/composition` | `animateOnCompositor`, `compositorAnimation`, `visualReference`, `createPropertySet` and springs: typed expression and spring animations the compositor runs off the UI thread (opt-in; [`API.md`](https://github.com/avi12/winui-svelte/blob/main/API.md#composition-animations-winui-sveltecomposition)) |
|
|
891
|
+
| `winui-svelte/css/transform`, `/css/animation`, `/css/scroll-timeline`, `/css/typography`, `/css/visual-states`, `/css/effects`, `/css/filter`, `/css/clip`, `/css/focus`, `/css/surface`, `/css/shadow`, `/css/position`, `/css/container`, `/css/queries`, `/css/environment`, `/css/compat`, `/css/resources`, `/css/view-transition` | the opt-in CSS groups: 2D transform, animations, OpenType typography, the state brushes of a Button, aspect ratio, filters and masks, clip shapes, focus visuals, surfaces and Composition shadows, position and inset, media and container queries, media preferences and display features, browser-stylesheet properties, theme resources, view transition names ([`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md)) |
|
|
825
892
|
| `winui-svelte/css`, `/css/vite`, `/css/sheet-module`, `/css/gradients`, `/css/shape`, `/css/control`, `/css/stylesheet` | the CSS runtime, its Vite plugin, the sheet module compiler, the gradient parser a sheet with a gradient imports and the type declaration for a `.css` import ([`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md)) |
|
|
826
893
|
| `winui-svelte/preprocess`, `winui-svelte/stylelint`, `winui-svelte/vscode-css-data.json` | the editor side of the CSS: a Svelte preprocessor, a stylelint rule and VS Code custom data, all from the same validator and tables, so the editor, the linter and the build say the same thing ([`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md#diagnostics-in-the-editor-the-linter-and-the-build)) |
|
|
827
894
|
|
|
@@ -904,6 +971,13 @@ Stated plainly, so nobody finds them by surprise:
|
|
|
904
971
|
`acrylicThin` put WinUI's `DesktopAcrylicController` behind the window, so
|
|
905
972
|
`window.systemBackdrop` reads null for them (the controller holds the
|
|
906
973
|
material)
|
|
974
|
+
- **Transparent windows are a composition brush and a window frame.**
|
|
975
|
+
`backdrop="transparent"` puts a fully clear brush behind the content, since
|
|
976
|
+
the Windows App SDK's `TransparentTintBackdrop` is in no runtime from 2.3 to
|
|
977
|
+
2.6.5 and not in the metadata restored, and makes the whole window the window
|
|
978
|
+
manager's frame with square corners, which is what makes the clear pixels
|
|
979
|
+
show the desktop; `window.systemBackdrop` reads null for it, and the window
|
|
980
|
+
wants `isBorderless`
|
|
907
981
|
- **Svelte is held to the releases checked.** The package reads a few spots of
|
|
908
982
|
Svelte's runtime with edits, so the peer range is the span of releases the
|
|
909
983
|
matrix (`pnpm check:svelte-matrix`) runs the tests against, and it widens
|
|
@@ -918,13 +992,16 @@ Stated plainly, so nobody finds them by surprise:
|
|
|
918
992
|
- **A property whose name starts with "on"** (`ToggleSwitch.OnContent`) is a
|
|
919
993
|
prop on components, but on a raw element Svelte takes the attribute for an
|
|
920
994
|
event: write it as `On-content="On"` or `on-content={() => "On"}`
|
|
921
|
-
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
995
|
+
- **`:hover`, `:active` and `:disabled` reach a templated control as visual
|
|
996
|
+
states for a Button, not for every control.** On a `button`,
|
|
997
|
+
`repeat-button`, `hyperlink-button` and `drop-down-button` a rule's
|
|
998
|
+
`background-color`, `background-image`, `color` and `border-color` become
|
|
999
|
+
the `PointerOver`, `Pressed` and `Disabled` states of its template, so
|
|
1000
|
+
`:active` works where the control handles the pointer itself
|
|
1001
|
+
Any other control, any other property, `:checked` and a Button's `:focus`
|
|
1002
|
+
stay a Style when the control reports the event, which WinUI's template
|
|
1003
|
+
states take over from while they are active; override the control's theme
|
|
1004
|
+
resources there ([`src/css/API.md`](https://github.com/avi12/winui-svelte/blob/main/src/css/API.md#pseudo-classes-on-a-templated-control-visual-states))
|
|
928
1005
|
- **Transitions on a raw element.** `blur` and `draw` need
|
|
929
1006
|
`winui-svelte/element-effects` (the Vite plugin turns it on for a component
|
|
930
1007
|
that imports either), and without it `blur` only fades; a directive goes on a
|
|
@@ -961,7 +1038,7 @@ Stated plainly, so nobody finds them by surprise:
|
|
|
961
1038
|
against the component's markup at build time
|
|
962
1039
|
A Style cannot reach an element's parent, children or siblings, so these are
|
|
963
1040
|
build errors that say what to write instead: `float`, `position: sticky`,
|
|
964
|
-
`right` and `bottom`, `flex-wrap` (WinUI has no wrapping panel), a % size other than
|
|
1041
|
+
`right` and `bottom`, `flex-wrap` (WinUI has no wrapping panel; see "Wrapping chips"), a % size other than
|
|
965
1042
|
100%, `calc()` with a % or a variable, any unit but px, deg, s, ms, fr, auto and unitless numbers (the compiler and
|
|
966
1043
|
stylelint both refuse it), container style queries, `:has()`, `:focus-within`,
|
|
967
1044
|
`clip-path` as
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LivePriority } from "./live-priority.js";
|
|
2
|
+
import { UIElement } from "#winui/microsoft/ui/xaml/UIElement";
|
|
3
|
+
/** What `announce` takes. */
|
|
4
|
+
export interface AnnounceOptions {
|
|
5
|
+
/** The text a screen reader speaks. */
|
|
6
|
+
readonly message: string;
|
|
7
|
+
/** An element of the window the message is raised from (an `elementRef`'s `current`). */
|
|
8
|
+
readonly element: UIElement;
|
|
9
|
+
/** `POLITE` queues behind speech; `ASSERTIVE` interrupts; `OFF` says nothing. Polite by default. */
|
|
10
|
+
readonly priority?: LivePriority | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Says something to a screen reader without moving focus: a UI Automation
|
|
14
|
+
* notification (`AutomationPeer.RaiseNotificationEvent`), as writing to an
|
|
15
|
+
* `aria-live` region, `role="status"` (polite) or `role="alert"` (assertive).
|
|
16
|
+
* A layout panel has no automation peer, so the notification is raised from
|
|
17
|
+
* the nearest element above it that has one.
|
|
18
|
+
*
|
|
19
|
+
* @param options - The message, the element to raise it from and the priority.
|
|
20
|
+
*/
|
|
21
|
+
export declare function announce({ message, element, priority }: AnnounceOptions): void;
|
|
22
|
+
//# sourceMappingURL=announce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announce.d.ts","sourceRoot":"","sources":["../../src/accessibility/announce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOlD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,6BAA6B;AAC7B,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yFAAyF;IACzF,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,oGAAoG;IACpG,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CAC9C;AAkCD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAA8B,EAAE,EAAE,eAAe,QAM7F"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { LivePriority } from "./live-priority.js";
|
|
2
|
+
import { raiseAnnouncement } from "./notification.js";
|
|
3
|
+
import { projectAs, releaseProjected } from "#winui/lifetime";
|
|
4
|
+
import { FrameworkElementAutomationPeer } from "#winui/microsoft/ui/xaml/automation/peers/FrameworkElementAutomationPeer";
|
|
5
|
+
import { VisualTreeHelper } from "#winui/microsoft/ui/xaml/media/VisualTreeHelper";
|
|
6
|
+
import { UIElement } from "#winui/microsoft/ui/xaml/UIElement";
|
|
7
|
+
function peerOf(element) {
|
|
8
|
+
const existing = FrameworkElementAutomationPeer.fromElement(element);
|
|
9
|
+
return existing ?? FrameworkElementAutomationPeer.createPeerForElement(element);
|
|
10
|
+
}
|
|
11
|
+
// A layout panel has no automation peer; the notification is raised from the
|
|
12
|
+
// nearest element above it that has one.
|
|
13
|
+
function nearestPeer(element) {
|
|
14
|
+
const projected = [];
|
|
15
|
+
try {
|
|
16
|
+
for (let current = element;; current = projected[projected.length - 1] ?? current) {
|
|
17
|
+
const peer = peerOf(current);
|
|
18
|
+
const isFound = peer != null;
|
|
19
|
+
if (isFound) {
|
|
20
|
+
return peer;
|
|
21
|
+
}
|
|
22
|
+
const parent = VisualTreeHelper.getParent(current);
|
|
23
|
+
const isRoot = parent == null;
|
|
24
|
+
if (isRoot) {
|
|
25
|
+
throw new Error("announce needs an element in a window, with an automation peer or under one");
|
|
26
|
+
}
|
|
27
|
+
projected.push(projectAs(parent, UIElement));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
finally {
|
|
31
|
+
for (const parent of projected) {
|
|
32
|
+
releaseProjected(parent);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Says something to a screen reader without moving focus: a UI Automation
|
|
38
|
+
* notification (`AutomationPeer.RaiseNotificationEvent`), as writing to an
|
|
39
|
+
* `aria-live` region, `role="status"` (polite) or `role="alert"` (assertive).
|
|
40
|
+
* A layout panel has no automation peer, so the notification is raised from
|
|
41
|
+
* the nearest element above it that has one.
|
|
42
|
+
*
|
|
43
|
+
* @param options - The message, the element to raise it from and the priority.
|
|
44
|
+
*/
|
|
45
|
+
export function announce({ message, element, priority = LivePriority.POLITE }) {
|
|
46
|
+
raiseAnnouncement({
|
|
47
|
+
peer: nearestPeer(element),
|
|
48
|
+
message,
|
|
49
|
+
priority
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=announce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announce.js","sourceRoot":"","sources":["../../src/accessibility/announce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EACL,8BAA8B,EAC/B,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAY/D,SAAS,MAAM,CAAC,OAAkB;IAChC,MAAM,QAAQ,GAAG,8BAA8B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,OAAO,QAAQ,IAAI,8BAA8B,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAClF,CAAC;AAED,6EAA6E;AAC7E,yCAAyC;AACzC,SAAS,WAAW,CAAC,OAAkB;IACrC,MAAM,SAAS,GAAgB,EAAE,CAAC;IAClC,IAAI,CAAC;QACH,KAAK,IAAI,OAAO,GAAG,OAAO,GAAI,OAAO,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;YACnF,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;YAC7B,MAAM,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC;YAC7B,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC;YAC9B,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAC;YACjG,CAAC;YAED,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;YAAS,CAAC;QACT,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE,CAAC;YAC/B,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,YAAY,CAAC,MAAM,EAAmB;IAC5F,iBAAiB,CAAC;QAChB,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC;QAC1B,OAAO;QACP,QAAQ;KACT,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "unnamed-button",
|
|
4
|
+
"appliesTo": [
|
|
5
|
+
"Button",
|
|
6
|
+
"SplitButton"
|
|
7
|
+
],
|
|
8
|
+
"message": "The button has no accessible name: a screen reader says only \"button\" (an icon-only button has no text to fall back on)",
|
|
9
|
+
"suggestion": "Set automationName, or give the button text or a label"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "unlabeled-input",
|
|
13
|
+
"appliesTo": [
|
|
14
|
+
"Edit",
|
|
15
|
+
"ComboBox",
|
|
16
|
+
"Slider",
|
|
17
|
+
"Spinner",
|
|
18
|
+
"CheckBox",
|
|
19
|
+
"RadioButton"
|
|
20
|
+
],
|
|
21
|
+
"message": "The input has no label: a screen reader cannot say what to enter",
|
|
22
|
+
"suggestion": "Set a header, automationName or automationLabeledBy (an elementRef of the label)"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "duplicate-access-key",
|
|
26
|
+
"appliesTo": [
|
|
27
|
+
"Button",
|
|
28
|
+
"SplitButton",
|
|
29
|
+
"Edit",
|
|
30
|
+
"ComboBox",
|
|
31
|
+
"Slider",
|
|
32
|
+
"Spinner",
|
|
33
|
+
"CheckBox",
|
|
34
|
+
"RadioButton",
|
|
35
|
+
"Hyperlink",
|
|
36
|
+
"MenuItem",
|
|
37
|
+
"TabItem",
|
|
38
|
+
"ListItem",
|
|
39
|
+
"TreeItem"
|
|
40
|
+
],
|
|
41
|
+
"message": "Another element has the same access key: Alt shortcuts reach only one of them",
|
|
42
|
+
"suggestion": "Give each element in the window its own accessKey"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "zero-size-focusable",
|
|
46
|
+
"appliesTo": [
|
|
47
|
+
"Button",
|
|
48
|
+
"SplitButton",
|
|
49
|
+
"Edit",
|
|
50
|
+
"ComboBox",
|
|
51
|
+
"Slider",
|
|
52
|
+
"Spinner",
|
|
53
|
+
"CheckBox",
|
|
54
|
+
"RadioButton",
|
|
55
|
+
"Hyperlink",
|
|
56
|
+
"MenuItem",
|
|
57
|
+
"TabItem",
|
|
58
|
+
"ListItem",
|
|
59
|
+
"TreeItem"
|
|
60
|
+
],
|
|
61
|
+
"message": "The element takes focus but has no size: keyboard focus lands on nothing visible",
|
|
62
|
+
"suggestion": "Give it a width and height, collapse it, or set isTabStop to false"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "unreachable-by-keyboard",
|
|
66
|
+
"appliesTo": [
|
|
67
|
+
"Button",
|
|
68
|
+
"SplitButton",
|
|
69
|
+
"Edit",
|
|
70
|
+
"ComboBox",
|
|
71
|
+
"Slider",
|
|
72
|
+
"Spinner",
|
|
73
|
+
"CheckBox",
|
|
74
|
+
"RadioButton",
|
|
75
|
+
"Hyperlink",
|
|
76
|
+
"MenuItem",
|
|
77
|
+
"TabItem",
|
|
78
|
+
"ListItem",
|
|
79
|
+
"TreeItem"
|
|
80
|
+
],
|
|
81
|
+
"message": "The control is no tab stop and has no access key or keyboard accelerator: a keyboard user cannot reach it",
|
|
82
|
+
"suggestion": "Set isTabStop to true, or give it an accessKey or a keyboardAccelerator"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "low-contrast-text",
|
|
86
|
+
"appliesTo": [
|
|
87
|
+
"Text",
|
|
88
|
+
"Button",
|
|
89
|
+
"SplitButton",
|
|
90
|
+
"Edit",
|
|
91
|
+
"ComboBox",
|
|
92
|
+
"Slider",
|
|
93
|
+
"Spinner",
|
|
94
|
+
"CheckBox",
|
|
95
|
+
"RadioButton"
|
|
96
|
+
],
|
|
97
|
+
"message": "The text is below the WCAG AA contrast (4.5 to 1, or 3 to 1 for large text) against its background",
|
|
98
|
+
"suggestion": "Use a darker or lighter foreground, or a theme brush"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Rgba } from "./contrast.js";
|
|
2
|
+
import type { AccessibilityRuleId } from "./rules.js";
|
|
3
|
+
/** What a host (the real visual tree, or a test's stand-in) tells the audit of one element. */
|
|
4
|
+
export interface ElementFacts {
|
|
5
|
+
readonly className: string;
|
|
6
|
+
readonly controlType: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly automationId: string;
|
|
9
|
+
readonly hasLabeledBy: boolean;
|
|
10
|
+
readonly accessKey: string;
|
|
11
|
+
readonly isEnabled: boolean;
|
|
12
|
+
readonly isTabStop: boolean;
|
|
13
|
+
readonly isKeyboardFocusable: boolean;
|
|
14
|
+
readonly hasAccelerator: boolean;
|
|
15
|
+
readonly width: number;
|
|
16
|
+
readonly height: number;
|
|
17
|
+
readonly foreground: Rgba | null;
|
|
18
|
+
readonly background: Rgba | null;
|
|
19
|
+
readonly fontSize: number;
|
|
20
|
+
readonly fontWeight: number;
|
|
21
|
+
}
|
|
22
|
+
/** A visual tree the audit can walk; `null` from `describe` skips the element and what is under it. */
|
|
23
|
+
export interface AuditHost<Element extends object> {
|
|
24
|
+
childrenOf(element: Element): readonly Element[];
|
|
25
|
+
describe(element: Element): ElementFacts | null;
|
|
26
|
+
}
|
|
27
|
+
/** One problem the audit found, with where it is and what to do. */
|
|
28
|
+
export interface AccessibilityFinding {
|
|
29
|
+
readonly ruleId: AccessibilityRuleId;
|
|
30
|
+
readonly message: string;
|
|
31
|
+
readonly suggestion: string;
|
|
32
|
+
/** The classes from the root, each with its index among its siblings: `Grid[0]/Button[1]`. */
|
|
33
|
+
readonly path: string;
|
|
34
|
+
readonly className: string;
|
|
35
|
+
readonly automationId: string;
|
|
36
|
+
readonly name: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Checks a visual tree against the table of rules.
|
|
40
|
+
*
|
|
41
|
+
* @param options - The tree's root and the host that reads it.
|
|
42
|
+
* @returns The findings, in tree order.
|
|
43
|
+
*/
|
|
44
|
+
export declare function auditTree<Element extends object>({ root, host }: {
|
|
45
|
+
root: Element;
|
|
46
|
+
host: AuditHost<Element>;
|
|
47
|
+
}): AccessibilityFinding[];
|
|
48
|
+
//# sourceMappingURL=audit-tree.d.ts.map
|