winui-svelte 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +565 -19
- package/README.md +21 -5
- package/dist/app/activate.d.ts.map +1 -1
- package/dist/app/activate.js +3 -0
- package/dist/app/activate.js.map +1 -1
- package/dist/app/activation/index.d.ts +3 -0
- package/dist/app/activation/index.d.ts.map +1 -1
- package/dist/app/activation/index.js +2 -0
- package/dist/app/activation/index.js.map +1 -1
- package/dist/app/activation/login.d.ts +2 -1
- package/dist/app/activation/login.d.ts.map +1 -1
- package/dist/app/activation/login.js +2 -1
- package/dist/app/activation/login.js.map +1 -1
- package/dist/app/activation/native.js +1 -2
- package/dist/app/activation/native.js.map +1 -1
- package/dist/app/activation/packaged.d.ts +49 -0
- package/dist/app/activation/packaged.d.ts.map +1 -0
- package/dist/app/activation/packaged.js +90 -0
- package/dist/app/activation/packaged.js.map +1 -0
- package/dist/app/activation/receive.d.ts +11 -2
- package/dist/app/activation/receive.d.ts.map +1 -1
- package/dist/app/activation/receive.js +11 -4
- package/dist/app/activation/receive.js.map +1 -1
- package/dist/app/activation/registration.d.ts +3 -3
- package/dist/app/activation/registration.js +7 -7
- package/dist/app/activation/registration.js.map +1 -1
- package/dist/app/activation/scheme.d.ts +10 -0
- package/dist/app/activation/scheme.d.ts.map +1 -1
- package/dist/app/activation/scheme.js +17 -0
- package/dist/app/activation/scheme.js.map +1 -1
- package/dist/app/index.d.ts +4 -2
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +3 -1
- package/dist/app/index.js.map +1 -1
- package/dist/app/instance-running.d.ts +15 -0
- package/dist/app/instance-running.d.ts.map +1 -0
- package/dist/app/instance-running.js +20 -0
- package/dist/app/instance-running.js.map +1 -0
- package/dist/app/jump-list/native.d.ts.map +1 -1
- package/dist/app/jump-list/native.js +1 -2
- package/dist/app/jump-list/native.js.map +1 -1
- package/dist/app/native-messaging/browsers.d.ts +19 -0
- package/dist/app/native-messaging/browsers.d.ts.map +1 -0
- package/dist/app/native-messaging/browsers.js +17 -0
- package/dist/app/native-messaging/browsers.js.map +1 -0
- package/dist/app/native-messaging/index.d.ts +41 -0
- package/dist/app/native-messaging/index.d.ts.map +1 -0
- package/dist/app/native-messaging/index.js +84 -0
- package/dist/app/native-messaging/index.js.map +1 -0
- package/dist/app/native.d.ts +0 -6
- package/dist/app/native.d.ts.map +1 -1
- package/dist/app/native.js +1 -24
- package/dist/app/native.js.map +1 -1
- package/dist/app/notification-source.d.ts.map +1 -1
- package/dist/app/notification-source.js +1 -2
- package/dist/app/notification-source.js.map +1 -1
- package/dist/app/shell/native.js +1 -2
- package/dist/app/shell/native.js.map +1 -1
- package/dist/app/single-instance.d.ts +27 -1
- package/dist/app/single-instance.d.ts.map +1 -1
- package/dist/app/single-instance.js +32 -10
- package/dist/app/single-instance.js.map +1 -1
- package/dist/automation/native.d.ts.map +1 -1
- package/dist/automation/native.js +1 -2
- package/dist/automation/native.js.map +1 -1
- package/dist/bindings/.dynwinrt-js-types +198 -0
- package/dist/bindings/.dynwinrt-managed +1 -1
- package/dist/bindings/index.d.ts +15 -0
- package/dist/bindings/index.js +20 -0
- package/dist/bindings/index.mjs +2902 -2882
- package/dist/bindings/index.proxy.js +10 -0
- package/dist/bindings/windows/application-model/activation/ActivationKind.d.ts +49 -0
- package/dist/bindings/windows/application-model/activation/ActivationKind.js +50 -0
- package/dist/bindings/windows/application-model/activation/ApplicationExecutionState.d.ts +9 -0
- package/dist/bindings/windows/application-model/activation/ApplicationExecutionState.js +10 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgs.d.ts +36 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgs.js +149 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgsWithUser.d.ts +28 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgsWithUser.js +119 -0
- package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.d.ts +27 -0
- package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.js +116 -0
- package/dist/bindings/windows/application-model/activation/IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.d.ts +31 -0
- package/dist/bindings/windows/application-model/activation/IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.js +131 -0
- package/dist/bindings/windows/application-model/activation/IViewSwitcherProvider.d.ts +28 -0
- package/dist/bindings/windows/application-model/activation/IViewSwitcherProvider.js +119 -0
- package/dist/bindings/windows/application-model/activation/ProtocolActivatedEventArgs.d.ts +25 -0
- package/dist/bindings/windows/application-model/activation/ProtocolActivatedEventArgs.js +166 -0
- package/dist/bindings/windows/application-model/activation/SplashScreen.d.ts +35 -0
- package/dist/bindings/windows/application-model/activation/SplashScreen.js +105 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelActivationSplashScreen_Object_g7a7dbfa699cd28ff.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelActivationSplashScreen_Object_g7a7dbfa699cd28ff.js +7 -0
- package/dist/bindings/windows/ui/view-management/ActivationViewSwitcher.d.ts +12 -0
- package/dist/bindings/windows/ui/view-management/ActivationViewSwitcher.js +96 -0
- package/dist/chrome/context-menus/context-menu-schema.d.ts.map +1 -1
- package/dist/chrome/context-menus/context-menu-schema.js +1 -7
- package/dist/chrome/context-menus/context-menu-schema.js.map +1 -1
- package/dist/chrome/parse-or-throw.d.ts +7 -0
- package/dist/chrome/parse-or-throw.d.ts.map +1 -0
- package/dist/chrome/parse-or-throw.js +9 -0
- package/dist/chrome/parse-or-throw.js.map +1 -0
- package/dist/chrome/permissions/permission-schema.d.ts.map +1 -1
- package/dist/chrome/permissions/permission-schema.js +1 -7
- package/dist/chrome/permissions/permission-schema.js.map +1 -1
- package/dist/chrome/windows/chrome-windows.d.ts.map +1 -1
- package/dist/chrome/windows/chrome-windows.js +1 -7
- package/dist/chrome/windows/chrome-windows.js.map +1 -1
- package/dist/components/hand-written/items/keyed-rows.svelte.d.ts.map +1 -1
- package/dist/components/hand-written/items/keyed-rows.svelte.js +6 -0
- package/dist/components/hand-written/items/keyed-rows.svelte.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/runtime.svelte.d.ts.map +1 -1
- package/dist/components/runtime.svelte.js +7 -0
- package/dist/components/runtime.svelte.js.map +1 -1
- package/dist/composition/expression.d.ts +1 -1
- package/dist/css/runtime/containers.d.ts.map +1 -1
- package/dist/css/runtime/containers.js +1 -17
- package/dist/css/runtime/containers.js.map +1 -1
- package/dist/css/runtime/native.d.ts.map +1 -1
- package/dist/css/runtime/native.js +40 -20
- package/dist/css/runtime/native.js.map +1 -1
- package/dist/css/translate/property-kit.d.ts +9 -0
- package/dist/css/translate/property-kit.d.ts.map +1 -1
- package/dist/css/translate/property-kit.js.map +1 -1
- package/dist/css/translate/transition-properties.d.ts +1 -1
- package/dist/css/translate/transition-properties.d.ts.map +1 -1
- package/dist/css/translate/transition-properties.js +32 -5
- package/dist/css/translate/transition-properties.js.map +1 -1
- package/dist/data-transfer/data-transfer.d.ts +3 -3
- package/dist/data-transfer/data-transfer.d.ts.map +1 -1
- package/dist/data-transfer/data-transfer.js.map +1 -1
- package/dist/data-transfer/drag-effects.d.ts +25 -2
- package/dist/data-transfer/drag-effects.d.ts.map +1 -1
- package/dist/data-transfer/drag-effects.js +27 -2
- package/dist/data-transfer/drag-effects.js.map +1 -1
- package/dist/data-transfer/drag-helper.d.ts +50 -0
- package/dist/data-transfer/drag-helper.d.ts.map +1 -0
- package/dist/data-transfer/drag-helper.js +156 -0
- package/dist/data-transfer/drag-helper.js.map +1 -0
- package/dist/data-transfer/drop-target.d.ts +6 -5
- package/dist/data-transfer/drop-target.d.ts.map +1 -1
- package/dist/data-transfer/drop-target.js +68 -20
- package/dist/data-transfer/drop-target.js.map +1 -1
- package/dist/data-transfer/index.d.ts +1 -0
- package/dist/data-transfer/index.d.ts.map +1 -1
- package/dist/data-transfer/index.js.map +1 -1
- package/dist/data-transfer/launcher.d.ts +4 -3
- package/dist/data-transfer/launcher.d.ts.map +1 -1
- package/dist/data-transfer/launcher.js +58 -9
- package/dist/data-transfer/launcher.js.map +1 -1
- package/dist/data-transfer/native.d.ts +66 -0
- package/dist/data-transfer/native.d.ts.map +1 -0
- package/dist/data-transfer/native.js +148 -0
- package/dist/data-transfer/native.js.map +1 -0
- package/dist/data-transfer/ole-data-object.d.ts +62 -0
- package/dist/data-transfer/ole-data-object.d.ts.map +1 -0
- package/dist/data-transfer/ole-data-object.js +162 -0
- package/dist/data-transfer/ole-data-object.js.map +1 -0
- package/dist/data-transfer/ole-drop-target.d.ts +54 -0
- package/dist/data-transfer/ole-drop-target.d.ts.map +1 -0
- package/dist/data-transfer/ole-drop-target.js +192 -0
- package/dist/data-transfer/ole-drop-target.js.map +1 -0
- package/dist/data-transfer/share-interop.d.ts.map +1 -1
- package/dist/data-transfer/share-interop.js +1 -1
- package/dist/data-transfer/share-interop.js.map +1 -1
- package/dist/data-transfer/shell-items.d.ts +10 -0
- package/dist/data-transfer/shell-items.d.ts.map +1 -0
- package/dist/data-transfer/shell-items.js +67 -0
- package/dist/data-transfer/shell-items.js.map +1 -0
- package/dist/data-transfer/window-drop.d.ts +35 -0
- package/dist/data-transfer/window-drop.d.ts.map +1 -0
- package/dist/data-transfer/window-drop.js +311 -0
- package/dist/data-transfer/window-drop.js.map +1 -0
- package/dist/devices/native.js +1 -2
- package/dist/devices/native.js.map +1 -1
- package/dist/enums.d.ts +3 -0
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +3 -0
- package/dist/enums.js.map +1 -1
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/input/index.js +1 -0
- package/dist/input/index.js.map +1 -1
- package/dist/input/modifier-keys.d.ts +24 -0
- package/dist/input/modifier-keys.d.ts.map +1 -0
- package/dist/input/modifier-keys.js +20 -0
- package/dist/input/modifier-keys.js.map +1 -0
- package/dist/media/pixel-buffer.d.ts.map +1 -1
- package/dist/media/pixel-buffer.js +1 -1
- package/dist/media/pixel-buffer.js.map +1 -1
- package/dist/messaging/web-view2/core.d.ts +56 -0
- package/dist/messaging/web-view2/core.d.ts.map +1 -1
- package/dist/messaging/web-view2/core.js +6 -0
- package/dist/messaging/web-view2/core.js.map +1 -1
- package/dist/messaging/web-view2/environment.d.ts +41 -0
- package/dist/messaging/web-view2/environment.d.ts.map +1 -0
- package/dist/messaging/web-view2/environment.js +91 -0
- package/dist/messaging/web-view2/environment.js.map +1 -0
- package/dist/messaging/web-view2/index.d.ts +9 -1
- package/dist/messaging/web-view2/index.d.ts.map +1 -1
- package/dist/messaging/web-view2/index.js +5 -0
- package/dist/messaging/web-view2/index.js.map +1 -1
- package/dist/messaging/web-view2/input.d.ts +68 -0
- package/dist/messaging/web-view2/input.d.ts.map +1 -0
- package/dist/messaging/web-view2/input.js +108 -0
- package/dist/messaging/web-view2/input.js.map +1 -0
- package/dist/messaging/web-view2/protocol.d.ts +24 -0
- package/dist/messaging/web-view2/protocol.d.ts.map +1 -0
- package/dist/messaging/web-view2/protocol.js +31 -0
- package/dist/messaging/web-view2/protocol.js.map +1 -0
- package/dist/messaging/web-view2/recovery.d.ts +65 -0
- package/dist/messaging/web-view2/recovery.d.ts.map +1 -0
- package/dist/messaging/web-view2/recovery.js +138 -0
- package/dist/messaging/web-view2/recovery.js.map +1 -0
- package/dist/messaging/web-view2/requests.d.ts +88 -0
- package/dist/messaging/web-view2/requests.d.ts.map +1 -0
- package/dist/messaging/web-view2/requests.js +169 -0
- package/dist/messaging/web-view2/requests.js.map +1 -0
- package/dist/messaging/web-view2/transport.d.ts.map +1 -1
- package/dist/messaging/web-view2/transport.js +1 -4
- package/dist/messaging/web-view2/transport.js.map +1 -1
- package/dist/native-identity.d.ts +10 -0
- package/dist/native-identity.d.ts.map +1 -0
- package/dist/native-identity.js +20 -0
- package/dist/native-identity.js.map +1 -0
- package/dist/renderer/host/host.d.ts.map +1 -1
- package/dist/renderer/host/host.js +33 -16
- package/dist/renderer/host/host.js.map +1 -1
- package/dist/renderer/host/structure-sync.d.ts +9 -0
- package/dist/renderer/host/structure-sync.d.ts.map +1 -0
- package/dist/renderer/host/structure-sync.js +24 -0
- package/dist/renderer/host/structure-sync.js.map +1 -0
- package/dist/security/data-protection-error.d.ts +14 -0
- package/dist/security/data-protection-error.d.ts.map +1 -0
- package/dist/security/data-protection-error.js +15 -0
- package/dist/security/data-protection-error.js.map +1 -0
- package/dist/security/index.d.ts +48 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +32 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/native.d.ts +43 -0
- package/dist/security/native.d.ts.map +1 -0
- package/dist/security/native.js +170 -0
- package/dist/security/native.js.map +1 -0
- package/dist/security/protection-scope.d.ts +13 -0
- package/dist/security/protection-scope.d.ts.map +1 -0
- package/dist/security/protection-scope.js +11 -0
- package/dist/security/protection-scope.js.map +1 -0
- package/dist/store/states.d.ts +2 -2
- package/dist/store/windows-identity.d.ts +2 -6
- package/dist/store/windows-identity.d.ts.map +1 -1
- package/dist/store/windows-identity.js +2 -29
- package/dist/store/windows-identity.js.map +1 -1
- package/dist/store/windows-packages.d.ts +2 -2
- package/dist/store/windows-store.d.ts +2 -2
- package/dist/tray/click-detector.d.ts.map +1 -1
- package/dist/tray/click-detector.js.map +1 -1
- package/dist/tray/flyout-model.d.ts +4 -3
- package/dist/tray/flyout-model.d.ts.map +1 -1
- package/dist/tray/flyout-model.js +12 -2
- package/dist/tray/flyout-model.js.map +1 -1
- package/dist/tray/menu/icon.d.ts +17 -0
- package/dist/tray/menu/icon.d.ts.map +1 -0
- package/dist/tray/menu/icon.js +31 -0
- package/dist/tray/menu/icon.js.map +1 -0
- package/dist/tray/menu/index.d.ts +1 -1
- package/dist/tray/menu/index.d.ts.map +1 -1
- package/dist/tray/menu/index.js.map +1 -1
- package/dist/tray/menu/types.d.ts +23 -6
- package/dist/tray/menu/types.d.ts.map +1 -1
- package/dist/tray/menu/types.js.map +1 -1
- package/dist/tray/menu-svelte/menu-node.d.ts +4 -4
- package/dist/tray/native.d.ts +9 -4
- package/dist/tray/native.d.ts.map +1 -1
- package/dist/tray/native.js +10 -18
- package/dist/tray/native.js.map +1 -1
- package/dist/tray/personalize.d.ts +18 -0
- package/dist/tray/personalize.d.ts.map +1 -0
- package/dist/tray/personalize.js +42 -0
- package/dist/tray/personalize.js.map +1 -0
- package/dist/tray/standalone/icon-raster.d.ts +72 -0
- package/dist/tray/standalone/icon-raster.d.ts.map +1 -0
- package/dist/tray/standalone/icon-raster.js +161 -0
- package/dist/tray/standalone/icon-raster.js.map +1 -0
- package/dist/tray/standalone/index.d.ts +3 -2
- package/dist/tray/standalone/index.d.ts.map +1 -1
- package/dist/tray/standalone/index.js +1 -0
- package/dist/tray/standalone/index.js.map +1 -1
- package/dist/tray/standalone/menu-icons.d.ts +9 -0
- package/dist/tray/standalone/menu-icons.d.ts.map +1 -0
- package/dist/tray/standalone/menu-icons.js +280 -0
- package/dist/tray/standalone/menu-icons.js.map +1 -0
- package/dist/tray/standalone/native.d.ts +19 -6
- package/dist/tray/standalone/native.d.ts.map +1 -1
- package/dist/tray/standalone/native.js +58 -15
- package/dist/tray/standalone/native.js.map +1 -1
- package/dist/tray/standalone/standalone-tray.d.ts +4 -2
- package/dist/tray/standalone/standalone-tray.d.ts.map +1 -1
- package/dist/tray/standalone/standalone-tray.js +12 -2
- package/dist/tray/standalone/standalone-tray.js.map +1 -1
- package/dist/tray/themed-icon.d.ts.map +1 -1
- package/dist/tray/themed-icon.js +4 -28
- package/dist/tray/themed-icon.js.map +1 -1
- package/dist/tray/tray-core.d.ts.map +1 -1
- package/dist/tray/tray-core.js +5 -1
- package/dist/tray/tray-core.js.map +1 -1
- package/dist/tray/tray-extras.d.ts +26 -2
- package/dist/tray/tray-extras.d.ts.map +1 -1
- package/dist/web-apis/eye-dropper.d.ts.map +1 -1
- package/dist/web-apis/eye-dropper.js +8 -5
- package/dist/web-apis/eye-dropper.js.map +1 -1
- package/dist/web-apis/media-devices-source.d.ts +1 -1
- package/dist/web-apis/native.d.ts +0 -7
- package/dist/web-apis/native.d.ts.map +1 -1
- package/dist/web-apis/native.js +0 -19
- package/dist/web-apis/native.js.map +1 -1
- package/dist/win2d/activation-failure.d.ts +10 -0
- package/dist/win2d/activation-failure.d.ts.map +1 -0
- package/dist/win2d/activation-failure.js +30 -0
- package/dist/win2d/activation-failure.js.map +1 -0
- package/dist/win2d/element-lifecycle.d.ts.map +1 -1
- package/dist/win2d/element-lifecycle.js +6 -1
- package/dist/win2d/element-lifecycle.js.map +1 -1
- package/dist/win2d/manifest.d.ts +29 -0
- package/dist/win2d/manifest.d.ts.map +1 -0
- package/dist/win2d/manifest.js +67 -0
- package/dist/win2d/manifest.js.map +1 -0
- package/dist/win32/index.d.ts +3 -0
- package/dist/win32/index.d.ts.map +1 -0
- package/dist/win32/index.js +11 -0
- package/dist/win32/index.js.map +1 -0
- package/dist/win32-calls.d.ts +6 -0
- package/dist/win32-calls.d.ts.map +1 -1
- package/dist/win32-calls.js +6 -1
- package/dist/win32-calls.js.map +1 -1
- package/dist/win32-foreground.d.ts +20 -0
- package/dist/win32-foreground.d.ts.map +1 -1
- package/dist/win32-foreground.js +24 -4
- package/dist/win32-foreground.js.map +1 -1
- package/dist/win32-icons.d.ts.map +1 -1
- package/dist/win32-icons.js +1 -2
- package/dist/win32-icons.js.map +1 -1
- package/dist/win32-key-state.d.ts +31 -0
- package/dist/win32-key-state.d.ts.map +1 -0
- package/dist/win32-key-state.js +41 -0
- package/dist/win32-key-state.js.map +1 -0
- package/dist/window/anchor.d.ts +15 -0
- package/dist/window/anchor.d.ts.map +1 -1
- package/dist/window/anchor.js +23 -0
- package/dist/window/anchor.js.map +1 -1
- package/dist/window/apply-frame.d.ts +4 -2
- package/dist/window/apply-frame.d.ts.map +1 -1
- package/dist/window/apply-frame.js +2 -3
- package/dist/window/apply-frame.js.map +1 -1
- package/dist/window/bootstrap-core.d.ts +69 -0
- package/dist/window/bootstrap-core.d.ts.map +1 -0
- package/dist/window/bootstrap-core.js +93 -0
- package/dist/window/bootstrap-core.js.map +1 -0
- package/dist/window/bootstrap-mode.d.ts +21 -0
- package/dist/window/bootstrap-mode.d.ts.map +1 -0
- package/dist/window/bootstrap-mode.js +17 -0
- package/dist/window/bootstrap-mode.js.map +1 -0
- package/dist/window/bootstrap.d.ts +12 -28
- package/dist/window/bootstrap.d.ts.map +1 -1
- package/dist/window/bootstrap.js +18 -66
- package/dist/window/bootstrap.js.map +1 -1
- package/dist/window/cover.d.ts +43 -0
- package/dist/window/cover.d.ts.map +1 -0
- package/dist/window/cover.js +64 -0
- package/dist/window/cover.js.map +1 -0
- 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 +1 -0
- package/dist/window/create-window.js.map +1 -1
- package/dist/window/dpi-awareness.d.ts +71 -0
- package/dist/window/dpi-awareness.d.ts.map +1 -0
- package/dist/window/dpi-awareness.js +127 -0
- package/dist/window/dpi-awareness.js.map +1 -0
- package/dist/window/foreground-native.d.ts.map +1 -1
- package/dist/window/foreground-native.js +3 -5
- package/dist/window/foreground-native.js.map +1 -1
- package/dist/window/index.d.ts +2 -0
- package/dist/window/index.d.ts.map +1 -1
- package/dist/window/index.js +1 -0
- package/dist/window/index.js.map +1 -1
- package/dist/window/native.d.ts.map +1 -1
- package/dist/window/native.js +1 -2
- package/dist/window/native.js.map +1 -1
- package/dist/window/package-identity.d.ts +17 -0
- package/dist/window/package-identity.d.ts.map +1 -0
- package/dist/window/package-identity.js +97 -0
- package/dist/window/package-identity.js.map +1 -0
- package/dist/window/system-dispatcher-queue.d.ts.map +1 -1
- package/dist/window/system-dispatcher-queue.js +1 -2
- package/dist/window/system-dispatcher-queue.js.map +1 -1
- package/dist/window/taskbar-calls.d.ts +1 -1
- package/dist/window/taskbar-native.d.ts.map +1 -1
- package/dist/window/taskbar-native.js +1 -2
- package/dist/window/taskbar-native.js.map +1 -1
- package/dist/window/window-handle.d.ts +25 -1
- package/dist/window/window-handle.d.ts.map +1 -1
- package/dist/window/window-handle.js +27 -1
- package/dist/window/window-handle.js.map +1 -1
- package/dist/window/window-host.svelte.d.ts +10 -1
- package/dist/window/window-host.svelte.d.ts.map +1 -1
- package/dist/window/window-host.svelte.js +38 -4
- package/dist/window/window-host.svelte.js.map +1 -1
- package/package.json +26 -4
- package/src/app/activate.ts +3 -0
- package/src/app/activation/index.ts +3 -0
- package/src/app/activation/login.ts +2 -1
- package/src/app/activation/native.ts +1 -1
- package/src/app/activation/packaged.ts +118 -0
- package/src/app/activation/receive.ts +24 -4
- package/src/app/activation/registration.ts +7 -7
- package/src/app/activation/scheme.ts +19 -0
- package/src/app/index.ts +4 -2
- package/src/app/instance-running.ts +22 -0
- package/src/app/jump-list/native.ts +1 -2
- package/src/app/native-messaging/browsers.ts +21 -0
- package/src/app/native-messaging/index.ts +124 -0
- package/src/app/native.ts +1 -32
- package/src/app/notification-source.ts +1 -3
- package/src/app/shell/native.ts +1 -1
- package/src/app/single-instance.ts +34 -10
- package/src/automation/native.ts +1 -2
- package/src/chrome/context-menus/context-menu-schema.ts +1 -12
- package/src/chrome/parse-or-throw.ts +14 -0
- package/src/chrome/permissions/permission-schema.ts +1 -12
- package/src/chrome/windows/chrome-windows.ts +1 -13
- package/src/components/hand-written/items/keyed-rows.svelte.ts +6 -0
- package/src/components/index.ts +1 -0
- package/src/components/runtime.svelte.ts +8 -0
- package/src/css/runtime/containers.ts +1 -20
- package/src/css/runtime/native.ts +46 -21
- package/src/css/translate/property-kit.ts +9 -0
- package/src/css/translate/transition-properties.ts +44 -10
- package/src/data-transfer/data-transfer.ts +3 -3
- package/src/data-transfer/drag-effects.ts +48 -4
- package/src/data-transfer/drag-helper.ts +216 -0
- package/src/data-transfer/drop-target.ts +90 -26
- package/src/data-transfer/index.ts +1 -0
- package/src/data-transfer/launcher.ts +65 -9
- package/src/data-transfer/native.ts +184 -0
- package/src/data-transfer/ole-data-object.ts +200 -0
- package/src/data-transfer/ole-drop-target.ts +263 -0
- package/src/data-transfer/share-interop.ts +1 -1
- package/src/data-transfer/shell-items.ts +81 -0
- package/src/data-transfer/window-drop.ts +411 -0
- package/src/devices/native.ts +1 -1
- package/src/enums.ts +3 -0
- package/src/input/index.ts +2 -0
- package/src/input/modifier-keys.ts +30 -0
- package/src/media/pixel-buffer.ts +1 -1
- package/src/messaging/web-view2/core.ts +64 -0
- package/src/messaging/web-view2/environment.ts +131 -0
- package/src/messaging/web-view2/index.ts +11 -0
- package/src/messaging/web-view2/input.ts +154 -0
- package/src/messaging/web-view2/protocol.ts +41 -0
- package/src/messaging/web-view2/recovery.ts +177 -0
- package/src/messaging/web-view2/requests.ts +238 -0
- package/src/messaging/web-view2/transport.ts +1 -5
- package/src/native-identity.ts +22 -0
- package/src/renderer/host/host.ts +39 -17
- package/src/renderer/host/structure-sync.ts +25 -0
- package/src/security/data-protection-error.ts +18 -0
- package/src/security/index.ts +57 -0
- package/src/security/native.ts +234 -0
- package/src/security/protection-scope.ts +13 -0
- package/src/store/windows-identity.ts +3 -35
- package/src/tray/click-detector.ts +6 -7
- package/src/tray/flyout-model.ts +14 -3
- package/src/tray/menu/icon.ts +40 -0
- package/src/tray/menu/index.ts +3 -0
- package/src/tray/menu/types.ts +27 -6
- package/src/tray/native.ts +20 -21
- package/src/tray/personalize.ts +57 -0
- package/src/tray/pointer-share.ts +3 -3
- package/src/tray/standalone/icon-raster.ts +208 -0
- package/src/tray/standalone/index.ts +4 -1
- package/src/tray/standalone/menu-icons.ts +317 -0
- package/src/tray/standalone/native.ts +78 -15
- package/src/tray/standalone/standalone-tray.ts +26 -5
- package/src/tray/themed-icon.ts +4 -36
- package/src/tray/tray-core.ts +6 -1
- package/src/tray/tray-extras.ts +31 -2
- package/src/web-apis/eye-dropper.ts +9 -5
- package/src/web-apis/native.ts +0 -20
- package/src/win2d/activation-failure.ts +35 -0
- package/src/win2d/element-lifecycle.ts +6 -1
- package/src/win2d/manifest.ts +78 -0
- package/src/win32/index.ts +19 -0
- package/src/win32-calls.ts +8 -1
- package/src/win32-foreground.ts +28 -4
- package/src/win32-icons.ts +7 -2
- package/src/win32-key-state.ts +48 -0
- package/src/window/anchor.ts +28 -0
- package/src/window/apply-frame.ts +6 -4
- package/src/window/bootstrap-core.ts +165 -0
- package/src/window/bootstrap-mode.ts +23 -0
- package/src/window/bootstrap.ts +20 -103
- package/src/window/cover.ts +100 -0
- package/src/window/create-window.ts +2 -0
- package/src/window/dpi-awareness.ts +162 -0
- package/src/window/foreground-native.ts +3 -5
- package/src/window/index.ts +2 -0
- package/src/window/native.ts +1 -1
- package/src/window/package-identity.ts +112 -0
- package/src/window/system-dispatcher-queue.ts +7 -2
- package/src/window/taskbar-native.ts +1 -2
- package/src/window/window-handle.ts +29 -1
- package/src/window/window-host.svelte.ts +58 -5
- package/web-types.json +11 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid, DynWinRtImplementation, DynWinRtImplementationHandle } from '@microsoft/dynwinrt';
|
|
3
|
+
import { ValueSet } from '../../foundation/collections/ValueSet.js';
|
|
4
|
+
import { DynWinRtImplementationDescriptor, DynWinRtImplementationOptions, DynWinRtImplementationType } from '@microsoft/dynwinrt';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** Synchronous owner-thread handlers. Out parameters precede the logical result; FillArray inputs are capacities. */
|
|
8
|
+
export interface IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataHandlers {
|
|
9
|
+
getCallerPackageFamilyName(): string;
|
|
10
|
+
getData(): ValueSet | null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare const IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData: WinGuid;
|
|
14
|
+
|
|
15
|
+
export declare class IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData {
|
|
16
|
+
private constructor();
|
|
17
|
+
/** Validate synchronous handlers and create an independent interface descriptor. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
18
|
+
static implementation(handlers: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataHandlers): DynWinRtImplementationDescriptor;
|
|
19
|
+
/** Create an instance with a stable typed value and explicit lifetime management. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
20
|
+
static implement<const T extends readonly DynWinRtImplementationType[]>(handlers: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataHandlers, options: DynWinRtImplementationOptions<T>): DynWinRtImplementationHandle<IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData>;
|
|
21
|
+
static implement(handlers: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataHandlers, ...additional: DynWinRtImplementationDescriptor[]): DynWinRtImplementationHandle<IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData>;
|
|
22
|
+
/** Query an independent view, without consuming the handle's primary value. */
|
|
23
|
+
static fromImplementation(owner: DynWinRtImplementation | DynWinRtImplementationHandle<unknown>): IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
24
|
+
|
|
25
|
+
/** @internal Cast a raw WinRT object to this interface. */
|
|
26
|
+
static from(obj: any): IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
27
|
+
|
|
28
|
+
get callerPackageFamilyName(): string;
|
|
29
|
+
|
|
30
|
+
get data(): ValueSet;
|
|
31
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid, DynWinRtInterfacePlan, DynWinRtImplementation, DynWinRtImplementationHandle } = require('@microsoft/dynwinrt');
|
|
3
|
+
let __m_______foundation_collections_ValueSet_fdfdec0e;
|
|
4
|
+
const __load_______foundation_collections_ValueSet_fdfdec0e = () => (__m_______foundation_collections_ValueSet_fdfdec0e ??= require('./../../foundation/collections/ValueSet.js'));
|
|
5
|
+
const __get_ValueSet = () => __load_______foundation_collections_ValueSet_fdfdec0e().ValueSet;
|
|
6
|
+
|
|
7
|
+
const IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = WinGuid.parse('d84a0c12-5c8f-438c-83cb-c28fcc0b2fdb');
|
|
8
|
+
|
|
9
|
+
let _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache;
|
|
10
|
+
const _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = new Proxy({}, {
|
|
11
|
+
get(_target, prop) {
|
|
12
|
+
_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache ??= DynWinRtType.registerInterface(
|
|
13
|
+
"IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData", IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData)
|
|
14
|
+
.addMethod("get_CallerPackageFamilyName", new DynWinRtMethodSig().addOut(DynWinRtType.hstring()))
|
|
15
|
+
.addMethod("get_Data", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.Foundation.Collections.ValueSet', DynWinRtType.interface(WinGuid.parse('8a43ed9f-f4e6-4421-acf9-1dab2986820c')))));
|
|
16
|
+
const value = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache[prop];
|
|
17
|
+
return typeof value === 'function' ? value.bind(_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache) : value;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
function __implementationCheck(value, valid, label) {
|
|
23
|
+
if (!valid) throw new TypeError(`${label}: invalid implementation result`);
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
function __implementationField(value, name, label) {
|
|
27
|
+
if (value === null || typeof value !== 'object') throw new TypeError(`${label}: expected a named result object`);
|
|
28
|
+
const field = Object.getOwnPropertyDescriptor(value, name);
|
|
29
|
+
if (!field || !Object.hasOwn(field, 'value')) throw new TypeError(`${label}: missing data field ${name}`);
|
|
30
|
+
return field.value;
|
|
31
|
+
}
|
|
32
|
+
function __implementationArray(value, label, bytes = false, capacity = undefined) {
|
|
33
|
+
if (!Array.isArray(value) && !(bytes && value instanceof Uint8Array)) throw new TypeError(`${label}: expected an array`);
|
|
34
|
+
if (capacity !== undefined && value.length !== capacity) throw new RangeError(`${label}: FillArray result must match capacity ${capacity}`);
|
|
35
|
+
return Array.from(value);
|
|
36
|
+
}
|
|
37
|
+
function __implementationReference(value, iid, label) {
|
|
38
|
+
if (value === null) return DynWinRtValue.nullValue();
|
|
39
|
+
const raw = value instanceof DynWinRtValue ? value : value?._obj;
|
|
40
|
+
if (!(raw instanceof DynWinRtValue)) throw new TypeError(`${label}: expected a managed WinRT value or null`);
|
|
41
|
+
return raw.isNull() ? DynWinRtValue.nullValue() : raw.cast(iid);
|
|
42
|
+
}
|
|
43
|
+
function __implementationSync(value, label) {
|
|
44
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function') {
|
|
45
|
+
throw new TypeError(`${label}: implementation callbacks must return synchronously, not a Promise or thenable`);
|
|
46
|
+
}
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function __implementationHandler(handlers, name, label) {
|
|
50
|
+
if (handlers === null || (typeof handlers !== 'object' && typeof handlers !== 'function')) throw new TypeError(`${label}: expected a handler object`);
|
|
51
|
+
let owner = handlers;
|
|
52
|
+
while (owner && owner !== Object.prototype && owner !== Function.prototype) {
|
|
53
|
+
const property = Object.getOwnPropertyDescriptor(owner, name);
|
|
54
|
+
if (property) {
|
|
55
|
+
const callback = property.value;
|
|
56
|
+
if (typeof callback !== 'function') throw new TypeError(`${label}: missing synchronous handler ${name} (accessors are not handlers)`);
|
|
57
|
+
if (Object.prototype.toString.call(callback) === '[object AsyncFunction]' || Object.prototype.toString.call(callback) === '[object AsyncGeneratorFunction]') {
|
|
58
|
+
throw new TypeError(`${label}.${name}: async handlers are not supported`);
|
|
59
|
+
}
|
|
60
|
+
return callback.bind(handlers);
|
|
61
|
+
}
|
|
62
|
+
owner = Object.getPrototypeOf(owner);
|
|
63
|
+
}
|
|
64
|
+
throw new TypeError(`${label}: missing synchronous handler ${name}`);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let __implementationPlan;
|
|
68
|
+
function __getImplementationPlan() {
|
|
69
|
+
return (__implementationPlan ??= DynWinRtInterfacePlan.create("Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData", DynWinRtType.interface(WinGuid.parse("d84a0c12-5c8f-438c-83cb-c28fcc0b2fdb")), [
|
|
70
|
+
{ name: "get_CallerPackageFamilyName", vtableIndex: 6, signature: new DynWinRtMethodSig().addOut(DynWinRtType.hstring()) },
|
|
71
|
+
{ name: "get_Data", vtableIndex: 7, signature: new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass("Windows.Foundation.Collections.ValueSet", DynWinRtType.interface(WinGuid.parse("8a43ed9f-f4e6-4421-acf9-1dab2986820c")))) }
|
|
72
|
+
], [DynWinRtType.interface(WinGuid.parse("cf651713-cd08-4fd8-b697-a281b6544e2e")).iid()]));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
class IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData {
|
|
76
|
+
_obj;
|
|
77
|
+
|
|
78
|
+
constructor(obj) {
|
|
79
|
+
this._obj = obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static from(obj) {
|
|
83
|
+
return new IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData(obj.cast(IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static implementation(handlers) {
|
|
87
|
+
const h6 = __implementationHandler(handlers, "getCallerPackageFamilyName", "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData");
|
|
88
|
+
const h7 = __implementationHandler(handlers, "getData", "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData");
|
|
89
|
+
const plan = __getImplementationPlan();
|
|
90
|
+
return Object.freeze({ plan, dispatch(vtableIndex, args) {
|
|
91
|
+
if (!Array.isArray(args)) throw new TypeError('implementation arguments must be an array');
|
|
92
|
+
switch (vtableIndex) {
|
|
93
|
+
case 6: {
|
|
94
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
95
|
+
const result = __implementationSync(h6(), "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.getCallerPackageFamilyName");
|
|
96
|
+
return [DynWinRtValue.hstring(((v) => __implementationCheck(v, typeof v === 'string', "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.getCallerPackageFamilyName.result"))(result))];
|
|
97
|
+
}
|
|
98
|
+
case 7: {
|
|
99
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
100
|
+
const result = __implementationSync(h7(), "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.getData");
|
|
101
|
+
return [__implementationReference(result, DynWinRtType.runtimeClass("Windows.Foundation.Collections.ValueSet", DynWinRtType.interface(WinGuid.parse("8a43ed9f-f4e6-4421-acf9-1dab2986820c"))).iid(), "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.getData.result")];
|
|
102
|
+
}
|
|
103
|
+
default: throw new RangeError('unknown implementation vtable slot');
|
|
104
|
+
}
|
|
105
|
+
} });
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static implement(handlers, ...additional) {
|
|
109
|
+
return DynWinRtImplementationHandle.create(this, handlers, additional, view => view._obj.release());
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
static fromImplementation(owner) {
|
|
113
|
+
if (!(owner instanceof DynWinRtImplementation) && !(owner instanceof DynWinRtImplementationHandle)) throw new TypeError('fromImplementation requires a DynWinRtImplementation controller or handle');
|
|
114
|
+
const value = owner.toValue();
|
|
115
|
+
try {
|
|
116
|
+
return this.from(value);
|
|
117
|
+
} finally {
|
|
118
|
+
value.release();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
get callerPackageFamilyName() {
|
|
123
|
+
return (() => { const _m = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(6); return typeof _m.getString === 'function' ? _m.getString(this._obj) : _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(6).invoke(this._obj, []).toString(); })();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
get data() {
|
|
127
|
+
return ((v) => v.isNull() ? null : (__get_ValueSet())._fromNative(v))((() => { const _m = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(7); return typeof _m.getObj === 'function' ? _m.getObj(this._obj) : _m.invoke(this._obj, []); })());
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
131
|
+
exports.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid, DynWinRtImplementation, DynWinRtImplementationHandle } from '@microsoft/dynwinrt';
|
|
3
|
+
import { ActivationViewSwitcher } from '../../ui/view-management/ActivationViewSwitcher.js';
|
|
4
|
+
import { DynWinRtImplementationDescriptor, DynWinRtImplementationOptions, DynWinRtImplementationType } from '@microsoft/dynwinrt';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** Synchronous owner-thread handlers. Out parameters precede the logical result; FillArray inputs are capacities. */
|
|
8
|
+
export interface IViewSwitcherProviderHandlers {
|
|
9
|
+
getViewSwitcher(): ActivationViewSwitcher | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const IID_IViewSwitcherProvider: WinGuid;
|
|
13
|
+
|
|
14
|
+
export declare class IViewSwitcherProvider {
|
|
15
|
+
private constructor();
|
|
16
|
+
/** Validate synchronous handlers and create an independent interface descriptor. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
17
|
+
static implementation(handlers: IViewSwitcherProviderHandlers): DynWinRtImplementationDescriptor;
|
|
18
|
+
/** Create an instance with a stable typed value and explicit lifetime management. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
19
|
+
static implement<const T extends readonly DynWinRtImplementationType[]>(handlers: IViewSwitcherProviderHandlers, options: DynWinRtImplementationOptions<T>): DynWinRtImplementationHandle<IViewSwitcherProvider>;
|
|
20
|
+
static implement(handlers: IViewSwitcherProviderHandlers, ...additional: DynWinRtImplementationDescriptor[]): DynWinRtImplementationHandle<IViewSwitcherProvider>;
|
|
21
|
+
/** Query an independent view, without consuming the handle's primary value. */
|
|
22
|
+
static fromImplementation(owner: DynWinRtImplementation | DynWinRtImplementationHandle<unknown>): IViewSwitcherProvider;
|
|
23
|
+
|
|
24
|
+
/** @internal Cast a raw WinRT object to this interface. */
|
|
25
|
+
static from(obj: any): IViewSwitcherProvider;
|
|
26
|
+
|
|
27
|
+
get viewSwitcher(): ActivationViewSwitcher;
|
|
28
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid, DynWinRtInterfacePlan, DynWinRtImplementation, DynWinRtImplementationHandle } = require('@microsoft/dynwinrt');
|
|
3
|
+
let __m_______ui_view_management_ActivationViewSwitcher_7fd5c04c;
|
|
4
|
+
const __load_______ui_view_management_ActivationViewSwitcher_7fd5c04c = () => (__m_______ui_view_management_ActivationViewSwitcher_7fd5c04c ??= require('./../../ui/view-management/ActivationViewSwitcher.js'));
|
|
5
|
+
const __get_ActivationViewSwitcher = () => __load_______ui_view_management_ActivationViewSwitcher_7fd5c04c().ActivationViewSwitcher;
|
|
6
|
+
|
|
7
|
+
const IID_IViewSwitcherProvider = WinGuid.parse('33f288a6-5c2c-4d27-bac7-7536088f1219');
|
|
8
|
+
|
|
9
|
+
let _IViewSwitcherProviderCache;
|
|
10
|
+
const _IViewSwitcherProvider = new Proxy({}, {
|
|
11
|
+
get(_target, prop) {
|
|
12
|
+
_IViewSwitcherProviderCache ??= DynWinRtType.registerInterface(
|
|
13
|
+
"IViewSwitcherProvider", IID_IViewSwitcherProvider)
|
|
14
|
+
.addMethod("get_ViewSwitcher", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.UI.ViewManagement.ActivationViewSwitcher', DynWinRtType.interface(WinGuid.parse('dca71bb6-7350-492b-aac7-c8a13d7224ad')))));
|
|
15
|
+
const value = _IViewSwitcherProviderCache[prop];
|
|
16
|
+
return typeof value === 'function' ? value.bind(_IViewSwitcherProviderCache) : value;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
function __implementationCheck(value, valid, label) {
|
|
22
|
+
if (!valid) throw new TypeError(`${label}: invalid implementation result`);
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function __implementationField(value, name, label) {
|
|
26
|
+
if (value === null || typeof value !== 'object') throw new TypeError(`${label}: expected a named result object`);
|
|
27
|
+
const field = Object.getOwnPropertyDescriptor(value, name);
|
|
28
|
+
if (!field || !Object.hasOwn(field, 'value')) throw new TypeError(`${label}: missing data field ${name}`);
|
|
29
|
+
return field.value;
|
|
30
|
+
}
|
|
31
|
+
function __implementationArray(value, label, bytes = false, capacity = undefined) {
|
|
32
|
+
if (!Array.isArray(value) && !(bytes && value instanceof Uint8Array)) throw new TypeError(`${label}: expected an array`);
|
|
33
|
+
if (capacity !== undefined && value.length !== capacity) throw new RangeError(`${label}: FillArray result must match capacity ${capacity}`);
|
|
34
|
+
return Array.from(value);
|
|
35
|
+
}
|
|
36
|
+
function __implementationReference(value, iid, label) {
|
|
37
|
+
if (value === null) return DynWinRtValue.nullValue();
|
|
38
|
+
const raw = value instanceof DynWinRtValue ? value : value?._obj;
|
|
39
|
+
if (!(raw instanceof DynWinRtValue)) throw new TypeError(`${label}: expected a managed WinRT value or null`);
|
|
40
|
+
return raw.isNull() ? DynWinRtValue.nullValue() : raw.cast(iid);
|
|
41
|
+
}
|
|
42
|
+
function __implementationSync(value, label) {
|
|
43
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function') {
|
|
44
|
+
throw new TypeError(`${label}: implementation callbacks must return synchronously, not a Promise or thenable`);
|
|
45
|
+
}
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function __implementationHandler(handlers, name, label) {
|
|
49
|
+
if (handlers === null || (typeof handlers !== 'object' && typeof handlers !== 'function')) throw new TypeError(`${label}: expected a handler object`);
|
|
50
|
+
let owner = handlers;
|
|
51
|
+
while (owner && owner !== Object.prototype && owner !== Function.prototype) {
|
|
52
|
+
const property = Object.getOwnPropertyDescriptor(owner, name);
|
|
53
|
+
if (property) {
|
|
54
|
+
const callback = property.value;
|
|
55
|
+
if (typeof callback !== 'function') throw new TypeError(`${label}: missing synchronous handler ${name} (accessors are not handlers)`);
|
|
56
|
+
if (Object.prototype.toString.call(callback) === '[object AsyncFunction]' || Object.prototype.toString.call(callback) === '[object AsyncGeneratorFunction]') {
|
|
57
|
+
throw new TypeError(`${label}.${name}: async handlers are not supported`);
|
|
58
|
+
}
|
|
59
|
+
return callback.bind(handlers);
|
|
60
|
+
}
|
|
61
|
+
owner = Object.getPrototypeOf(owner);
|
|
62
|
+
}
|
|
63
|
+
throw new TypeError(`${label}: missing synchronous handler ${name}`);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let __implementationPlan;
|
|
67
|
+
function __getImplementationPlan() {
|
|
68
|
+
return (__implementationPlan ??= DynWinRtInterfacePlan.create("Windows.ApplicationModel.Activation.IViewSwitcherProvider", DynWinRtType.interface(WinGuid.parse("33f288a6-5c2c-4d27-bac7-7536088f1219")), [
|
|
69
|
+
{ name: "get_ViewSwitcher", vtableIndex: 6, signature: new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass("Windows.UI.ViewManagement.ActivationViewSwitcher", DynWinRtType.interface(WinGuid.parse("dca71bb6-7350-492b-aac7-c8a13d7224ad")))) }
|
|
70
|
+
], [DynWinRtType.interface(WinGuid.parse("cf651713-cd08-4fd8-b697-a281b6544e2e")).iid()]));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class IViewSwitcherProvider {
|
|
74
|
+
_obj;
|
|
75
|
+
|
|
76
|
+
constructor(obj) {
|
|
77
|
+
this._obj = obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static from(obj) {
|
|
81
|
+
return new IViewSwitcherProvider(obj.cast(IID_IViewSwitcherProvider));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static implementation(handlers) {
|
|
85
|
+
const h6 = __implementationHandler(handlers, "getViewSwitcher", "Windows.ApplicationModel.Activation.IViewSwitcherProvider");
|
|
86
|
+
const plan = __getImplementationPlan();
|
|
87
|
+
return Object.freeze({ plan, dispatch(vtableIndex, args) {
|
|
88
|
+
if (!Array.isArray(args)) throw new TypeError('implementation arguments must be an array');
|
|
89
|
+
switch (vtableIndex) {
|
|
90
|
+
case 6: {
|
|
91
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
92
|
+
const result = __implementationSync(h6(), "Windows.ApplicationModel.Activation.IViewSwitcherProvider.getViewSwitcher");
|
|
93
|
+
return [__implementationReference(result, DynWinRtType.runtimeClass("Windows.UI.ViewManagement.ActivationViewSwitcher", DynWinRtType.interface(WinGuid.parse("dca71bb6-7350-492b-aac7-c8a13d7224ad"))).iid(), "Windows.ApplicationModel.Activation.IViewSwitcherProvider.getViewSwitcher.result")];
|
|
94
|
+
}
|
|
95
|
+
default: throw new RangeError('unknown implementation vtable slot');
|
|
96
|
+
}
|
|
97
|
+
} });
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static implement(handlers, ...additional) {
|
|
101
|
+
return DynWinRtImplementationHandle.create(this, handlers, additional, view => view._obj.release());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static fromImplementation(owner) {
|
|
105
|
+
if (!(owner instanceof DynWinRtImplementation) && !(owner instanceof DynWinRtImplementationHandle)) throw new TypeError('fromImplementation requires a DynWinRtImplementation controller or handle');
|
|
106
|
+
const value = owner.toValue();
|
|
107
|
+
try {
|
|
108
|
+
return this.from(value);
|
|
109
|
+
} finally {
|
|
110
|
+
value.release();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
get viewSwitcher() {
|
|
115
|
+
return ((v) => v.isNull() ? null : (__get_ActivationViewSwitcher())._fromNative(v))((() => { const _m = _IViewSwitcherProvider.method(6); return typeof _m.getObj === 'function' ? _m.getObj(this._obj) : _m.invoke(this._obj, []); })());
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.IID_IViewSwitcherProvider = IID_IViewSwitcherProvider;
|
|
119
|
+
exports.IViewSwitcherProvider = IViewSwitcherProvider;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid } from '@microsoft/dynwinrt';
|
|
3
|
+
import { ActivationKind } from './ActivationKind.js';
|
|
4
|
+
import { ApplicationExecutionState } from './ApplicationExecutionState.js';
|
|
5
|
+
import { SplashScreen } from './SplashScreen.js';
|
|
6
|
+
import { Uri } from '../../foundation/Uri.js';
|
|
7
|
+
import { ValueSet } from '../../foundation/collections/ValueSet.js';
|
|
8
|
+
import { User } from '../../system/User.js';
|
|
9
|
+
import { ActivationViewSwitcher } from '../../ui/view-management/ActivationViewSwitcher.js';
|
|
10
|
+
|
|
11
|
+
export declare const IID_ProtocolActivatedEventArgs: WinGuid;
|
|
12
|
+
export declare class ProtocolActivatedEventArgs {
|
|
13
|
+
private constructor();
|
|
14
|
+
get uri(): Uri;
|
|
15
|
+
/** Cast this object to another WinRT interface. */
|
|
16
|
+
as<T>(InterfaceClass: { from(obj: any): T }): T;
|
|
17
|
+
get kind(): ActivationKind;
|
|
18
|
+
get previousExecutionState(): ApplicationExecutionState;
|
|
19
|
+
get splashScreen(): SplashScreen;
|
|
20
|
+
get callerPackageFamilyName(): string;
|
|
21
|
+
get data(): ValueSet;
|
|
22
|
+
get currentlyShownApplicationViewId(): number;
|
|
23
|
+
get viewSwitcher(): ActivationViewSwitcher;
|
|
24
|
+
get user(): User;
|
|
25
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid } = require('@microsoft/dynwinrt');
|
|
3
|
+
let __m_ActivationKind;
|
|
4
|
+
const __load_ActivationKind = () => (__m_ActivationKind ??= require('./ActivationKind.js'));
|
|
5
|
+
const __get_ActivationKind = () => __load_ActivationKind().ActivationKind;
|
|
6
|
+
let __m_ApplicationExecutionState;
|
|
7
|
+
const __load_ApplicationExecutionState = () => (__m_ApplicationExecutionState ??= require('./ApplicationExecutionState.js'));
|
|
8
|
+
const __get_ApplicationExecutionState = () => __load_ApplicationExecutionState().ApplicationExecutionState;
|
|
9
|
+
let __m_SplashScreen;
|
|
10
|
+
const __load_SplashScreen = () => (__m_SplashScreen ??= require('./SplashScreen.js'));
|
|
11
|
+
const __get_SplashScreen = () => __load_SplashScreen().SplashScreen;
|
|
12
|
+
let __m_______foundation_Uri_31d4527f;
|
|
13
|
+
const __load_______foundation_Uri_31d4527f = () => (__m_______foundation_Uri_31d4527f ??= require('./../../foundation/Uri.js'));
|
|
14
|
+
const __get_Uri = () => __load_______foundation_Uri_31d4527f().Uri;
|
|
15
|
+
let __m_______foundation_collections_ValueSet_fdfdec0e;
|
|
16
|
+
const __load_______foundation_collections_ValueSet_fdfdec0e = () => (__m_______foundation_collections_ValueSet_fdfdec0e ??= require('./../../foundation/collections/ValueSet.js'));
|
|
17
|
+
const __get_ValueSet = () => __load_______foundation_collections_ValueSet_fdfdec0e().ValueSet;
|
|
18
|
+
let __m_______system_User_0023d9d8;
|
|
19
|
+
const __load_______system_User_0023d9d8 = () => (__m_______system_User_0023d9d8 ??= require('./../../system/User.js'));
|
|
20
|
+
const __get_User = () => __load_______system_User_0023d9d8().User;
|
|
21
|
+
let __m_______ui_view_management_ActivationViewSwitcher_7fd5c04c;
|
|
22
|
+
const __load_______ui_view_management_ActivationViewSwitcher_7fd5c04c = () => (__m_______ui_view_management_ActivationViewSwitcher_7fd5c04c ??= require('./../../ui/view-management/ActivationViewSwitcher.js'));
|
|
23
|
+
const __get_ActivationViewSwitcher = () => __load_______ui_view_management_ActivationViewSwitcher_7fd5c04c().ActivationViewSwitcher;
|
|
24
|
+
const { IID_IActivatedEventArgs } = require('./IActivatedEventArgs.js');
|
|
25
|
+
let __m_IActivatedEventArgs;
|
|
26
|
+
const __load_IActivatedEventArgs = () => (__m_IActivatedEventArgs ??= require('./IActivatedEventArgs.js'));
|
|
27
|
+
const __get_IActivatedEventArgs = () => __load_IActivatedEventArgs().IActivatedEventArgs;
|
|
28
|
+
const { IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData } = require('./IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.js');
|
|
29
|
+
let __m_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
30
|
+
const __load_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = () => (__m_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData ??= require('./IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.js'));
|
|
31
|
+
const __get_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = () => __load_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData().IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData;
|
|
32
|
+
const { IID_IApplicationViewActivatedEventArgs } = require('./IApplicationViewActivatedEventArgs.js');
|
|
33
|
+
let __m_IApplicationViewActivatedEventArgs;
|
|
34
|
+
const __load_IApplicationViewActivatedEventArgs = () => (__m_IApplicationViewActivatedEventArgs ??= require('./IApplicationViewActivatedEventArgs.js'));
|
|
35
|
+
const __get_IApplicationViewActivatedEventArgs = () => __load_IApplicationViewActivatedEventArgs().IApplicationViewActivatedEventArgs;
|
|
36
|
+
const { IID_IViewSwitcherProvider } = require('./IViewSwitcherProvider.js');
|
|
37
|
+
let __m_IViewSwitcherProvider;
|
|
38
|
+
const __load_IViewSwitcherProvider = () => (__m_IViewSwitcherProvider ??= require('./IViewSwitcherProvider.js'));
|
|
39
|
+
const __get_IViewSwitcherProvider = () => __load_IViewSwitcherProvider().IViewSwitcherProvider;
|
|
40
|
+
const { IID_IActivatedEventArgsWithUser } = require('./IActivatedEventArgsWithUser.js');
|
|
41
|
+
let __m_IActivatedEventArgsWithUser;
|
|
42
|
+
const __load_IActivatedEventArgsWithUser = () => (__m_IActivatedEventArgsWithUser ??= require('./IActivatedEventArgsWithUser.js'));
|
|
43
|
+
const __get_IActivatedEventArgsWithUser = () => __load_IActivatedEventArgsWithUser().IActivatedEventArgsWithUser;
|
|
44
|
+
let __m_lifetime;
|
|
45
|
+
const __load_lifetime = () => (__m_lifetime ??= require('../../../lifetime.js'));
|
|
46
|
+
const __get_castProjectedValueBorrowed = () => __load_lifetime().castProjectedValueBorrowed;
|
|
47
|
+
const __get_castProjectedValueOwned = () => __load_lifetime().castProjectedValueOwned;
|
|
48
|
+
const __get_trackProjectedValue = () => __load_lifetime().trackProjectedValue;
|
|
49
|
+
|
|
50
|
+
const IID_IProtocolActivatedEventArgs = WinGuid.parse('6095f4dd-b7c0-46ab-81fe-d90f36d00d24');
|
|
51
|
+
const IID_ProtocolActivatedEventArgs = WinGuid.parse('6095f4dd-b7c0-46ab-81fe-d90f36d00d24');
|
|
52
|
+
|
|
53
|
+
let _IProtocolActivatedEventArgsCache;
|
|
54
|
+
const _IProtocolActivatedEventArgs = new Proxy({}, {
|
|
55
|
+
get(_target, prop) {
|
|
56
|
+
_IProtocolActivatedEventArgsCache ??= DynWinRtType.registerInterface(
|
|
57
|
+
"IProtocolActivatedEventArgs", IID_IProtocolActivatedEventArgs)
|
|
58
|
+
.addMethod("get_Uri", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.Foundation.Uri', DynWinRtType.interface(WinGuid.parse('9e365e57-48b2-4160-956f-c7385120bbfc')))));
|
|
59
|
+
const value = _IProtocolActivatedEventArgsCache[prop];
|
|
60
|
+
return typeof value === 'function' ? value.bind(_IProtocolActivatedEventArgsCache) : value;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
let _IActivatedEventArgsCache;
|
|
65
|
+
const _IActivatedEventArgs = new Proxy({}, {
|
|
66
|
+
get(_target, prop) {
|
|
67
|
+
_IActivatedEventArgsCache ??= DynWinRtType.registerInterface(
|
|
68
|
+
"IActivatedEventArgs", IID_IActivatedEventArgs)
|
|
69
|
+
.addMethod("get_Kind", new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ActivationKind', ['Launch', 'Search', 'ShareTarget', 'File', 'Protocol', 'FileOpenPicker', 'FileSavePicker', 'CachedFileUpdater', 'ContactPicker', 'Device', 'PrintTaskSettings', 'CameraSettings', 'RestrictedLaunch', 'AppointmentsProvider', 'Contact', 'LockScreenCall', 'VoiceCommand', 'LockScreen', 'PickerReturned', 'WalletAction', 'PickFileContinuation', 'PickSaveFileContinuation', 'PickFolderContinuation', 'WebAuthenticationBrokerContinuation', 'WebAccountProvider', 'ComponentUI', 'ProtocolForResults', 'ToastNotification', 'Print3DWorkflow', 'DialReceiver', 'DevicePairing', 'UserDataAccountsProvider', 'FilePickerExperience', 'LockScreenComponent', 'ContactPanel', 'PrintWorkflowForegroundTask', 'GameUIProvider', 'StartupTask', 'CommandLineLaunch', 'BarcodeScannerProvider', 'PrintSupportJobUI', 'PrintSupportSettingsUI', 'PhoneCallActivation', 'VpnForeground', 'PrintSupportEnterpriseManagementUI'], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027])))
|
|
70
|
+
.addMethod("get_PreviousExecutionState", new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ApplicationExecutionState', ['NotRunning', 'Running', 'Suspended', 'Terminated', 'ClosedByUser'], [0, 1, 2, 3, 4])))
|
|
71
|
+
.addMethod("get_SplashScreen", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.ApplicationModel.Activation.SplashScreen', DynWinRtType.interface(WinGuid.parse('ca4d975c-d4d6-43f0-97c0-0833c6391c24')))));
|
|
72
|
+
const value = _IActivatedEventArgsCache[prop];
|
|
73
|
+
return typeof value === 'function' ? value.bind(_IActivatedEventArgsCache) : value;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
let _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache;
|
|
78
|
+
const _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = new Proxy({}, {
|
|
79
|
+
get(_target, prop) {
|
|
80
|
+
_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache ??= DynWinRtType.registerInterface(
|
|
81
|
+
"IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData", IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData)
|
|
82
|
+
.addMethod("get_CallerPackageFamilyName", new DynWinRtMethodSig().addOut(DynWinRtType.hstring()))
|
|
83
|
+
.addMethod("get_Data", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.Foundation.Collections.ValueSet', DynWinRtType.interface(WinGuid.parse('8a43ed9f-f4e6-4421-acf9-1dab2986820c')))));
|
|
84
|
+
const value = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache[prop];
|
|
85
|
+
return typeof value === 'function' ? value.bind(_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndDataCache) : value;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
let _IApplicationViewActivatedEventArgsCache;
|
|
90
|
+
const _IApplicationViewActivatedEventArgs = new Proxy({}, {
|
|
91
|
+
get(_target, prop) {
|
|
92
|
+
_IApplicationViewActivatedEventArgsCache ??= DynWinRtType.registerInterface(
|
|
93
|
+
"IApplicationViewActivatedEventArgs", IID_IApplicationViewActivatedEventArgs)
|
|
94
|
+
.addMethod("get_CurrentlyShownApplicationViewId", new DynWinRtMethodSig().addOut(DynWinRtType.i32()));
|
|
95
|
+
const value = _IApplicationViewActivatedEventArgsCache[prop];
|
|
96
|
+
return typeof value === 'function' ? value.bind(_IApplicationViewActivatedEventArgsCache) : value;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
let _IViewSwitcherProviderCache;
|
|
101
|
+
const _IViewSwitcherProvider = new Proxy({}, {
|
|
102
|
+
get(_target, prop) {
|
|
103
|
+
_IViewSwitcherProviderCache ??= DynWinRtType.registerInterface(
|
|
104
|
+
"IViewSwitcherProvider", IID_IViewSwitcherProvider)
|
|
105
|
+
.addMethod("get_ViewSwitcher", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.UI.ViewManagement.ActivationViewSwitcher', DynWinRtType.interface(WinGuid.parse('dca71bb6-7350-492b-aac7-c8a13d7224ad')))));
|
|
106
|
+
const value = _IViewSwitcherProviderCache[prop];
|
|
107
|
+
return typeof value === 'function' ? value.bind(_IViewSwitcherProviderCache) : value;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
let _IActivatedEventArgsWithUserCache;
|
|
112
|
+
const _IActivatedEventArgsWithUser = new Proxy({}, {
|
|
113
|
+
get(_target, prop) {
|
|
114
|
+
_IActivatedEventArgsWithUserCache ??= DynWinRtType.registerInterface(
|
|
115
|
+
"IActivatedEventArgsWithUser", IID_IActivatedEventArgsWithUser)
|
|
116
|
+
.addMethod("get_User", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.System.User', DynWinRtType.interface(WinGuid.parse('df9a26c6-e746-4bcd-b5d4-120103c4209b')))));
|
|
117
|
+
const value = _IActivatedEventArgsWithUserCache[prop];
|
|
118
|
+
return typeof value === 'function' ? value.bind(_IActivatedEventArgsWithUserCache) : value;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
class ProtocolActivatedEventArgs {
|
|
123
|
+
_obj;
|
|
124
|
+
|
|
125
|
+
constructor() {
|
|
126
|
+
throw new TypeError('ProtocolActivatedEventArgs cannot be constructed directly.');
|
|
127
|
+
}
|
|
128
|
+
static _fromNative(obj) {
|
|
129
|
+
return Object.assign(Object.create(ProtocolActivatedEventArgs.prototype), { _obj: (__get_castProjectedValueOwned())(obj, IID_IProtocolActivatedEventArgs, 'ProtocolActivatedEventArgs') });
|
|
130
|
+
}
|
|
131
|
+
static _fromNativeBorrowed(obj) {
|
|
132
|
+
return Object.assign(Object.create(ProtocolActivatedEventArgs.prototype), { _obj: (__get_castProjectedValueBorrowed())(obj, IID_IProtocolActivatedEventArgs, 'ProtocolActivatedEventArgs') });
|
|
133
|
+
}
|
|
134
|
+
get uri() {
|
|
135
|
+
return ((v) => v.isNull() ? null : (__get_Uri())._fromNative(v))((() => { const _m = _IProtocolActivatedEventArgs.method(6); return typeof _m.getObj === 'function' ? _m.getObj(this._obj) : _m.invoke(this._obj, []); })());
|
|
136
|
+
}
|
|
137
|
+
as(InterfaceClass) {
|
|
138
|
+
return InterfaceClass.from(this._obj);
|
|
139
|
+
}
|
|
140
|
+
get kind() {
|
|
141
|
+
return (() => { const _m = _IActivatedEventArgs.method(6); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj.cast(IID_IActivatedEventArgs)) : _IActivatedEventArgs.method(6).invoke(this._obj.cast(IID_IActivatedEventArgs), []).toNumber(); })();
|
|
142
|
+
}
|
|
143
|
+
get previousExecutionState() {
|
|
144
|
+
return (() => { const _m = _IActivatedEventArgs.method(7); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj.cast(IID_IActivatedEventArgs)) : _IActivatedEventArgs.method(7).invoke(this._obj.cast(IID_IActivatedEventArgs), []).toNumber(); })();
|
|
145
|
+
}
|
|
146
|
+
get splashScreen() {
|
|
147
|
+
return ((v) => v.isNull() ? null : (__get_SplashScreen())._fromNative(v))((() => { const _m = _IActivatedEventArgs.method(8); return typeof _m.getObj === 'function' ? _m.getObj(this._obj.cast(IID_IActivatedEventArgs)) : _m.invoke(this._obj.cast(IID_IActivatedEventArgs), []); })());
|
|
148
|
+
}
|
|
149
|
+
get callerPackageFamilyName() {
|
|
150
|
+
return (() => { const _m = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(6); return typeof _m.getString === 'function' ? _m.getString(this._obj.cast(IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData)) : _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(6).invoke(this._obj.cast(IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData), []).toString(); })();
|
|
151
|
+
}
|
|
152
|
+
get data() {
|
|
153
|
+
return ((v) => v.isNull() ? null : (__get_ValueSet())._fromNative(v))((() => { const _m = _IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.method(7); return typeof _m.getObj === 'function' ? _m.getObj(this._obj.cast(IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData)) : _m.invoke(this._obj.cast(IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData), []); })());
|
|
154
|
+
}
|
|
155
|
+
get currentlyShownApplicationViewId() {
|
|
156
|
+
return (() => { const _m = _IApplicationViewActivatedEventArgs.method(6); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj.cast(IID_IApplicationViewActivatedEventArgs)) : _IApplicationViewActivatedEventArgs.method(6).invoke(this._obj.cast(IID_IApplicationViewActivatedEventArgs), []).toNumber(); })();
|
|
157
|
+
}
|
|
158
|
+
get viewSwitcher() {
|
|
159
|
+
return ((v) => v.isNull() ? null : (__get_ActivationViewSwitcher())._fromNative(v))((() => { const _m = _IViewSwitcherProvider.method(6); return typeof _m.getObj === 'function' ? _m.getObj(this._obj.cast(IID_IViewSwitcherProvider)) : _m.invoke(this._obj.cast(IID_IViewSwitcherProvider), []); })());
|
|
160
|
+
}
|
|
161
|
+
get user() {
|
|
162
|
+
return ((v) => v.isNull() ? null : (__get_User())._fromNative(v))((() => { const _m = _IActivatedEventArgsWithUser.method(6); return typeof _m.getObj === 'function' ? _m.getObj(this._obj.cast(IID_IActivatedEventArgsWithUser)) : _m.invoke(this._obj.cast(IID_IActivatedEventArgsWithUser), []); })());
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.IID_ProtocolActivatedEventArgs = IID_ProtocolActivatedEventArgs;
|
|
166
|
+
exports.ProtocolActivatedEventArgs = ProtocolActivatedEventArgs;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { DynWinRtType, DynWinRtValue, DynWinRtStruct, WinGuid } from '@microsoft/dynwinrt';
|
|
3
|
+
|
|
4
|
+
export interface Rect {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
/** Convert a WinRT struct value into a `Rect` object. */
|
|
11
|
+
export declare function unpackRect(v: DynWinRtValue): Rect;
|
|
12
|
+
export declare const Rect_Type: DynWinRtType;
|
|
13
|
+
/** Convert a `Rect` object into a WinRT struct value. */
|
|
14
|
+
export declare function packRect(v: Rect): DynWinRtStruct;
|
|
15
|
+
|
|
16
|
+
export interface EventRegistrationToken {
|
|
17
|
+
value: bigint;
|
|
18
|
+
}
|
|
19
|
+
/** Convert a WinRT struct value into a `EventRegistrationToken` object. */
|
|
20
|
+
export declare function unpackEventRegistrationToken(v: DynWinRtValue): EventRegistrationToken;
|
|
21
|
+
export declare const EventRegistrationToken_Type: DynWinRtType;
|
|
22
|
+
/** Convert a `EventRegistrationToken` object into a WinRT struct value. */
|
|
23
|
+
export declare function packEventRegistrationToken(v: EventRegistrationToken): DynWinRtStruct;
|
|
24
|
+
|
|
25
|
+
export declare const IID_SplashScreen: WinGuid;
|
|
26
|
+
export declare class SplashScreen {
|
|
27
|
+
private constructor();
|
|
28
|
+
get imageLocation(): Rect;
|
|
29
|
+
/** Register a handler for the `Dismissed` event. Call the returned function to unsubscribe. */
|
|
30
|
+
onDismissed(callback: (sender: SplashScreen, args: unknown) => void): () => void;
|
|
31
|
+
/** Like `onDismissed` but automatically unsubscribes after the first invocation. */
|
|
32
|
+
onceDismissed(callback: (sender: SplashScreen, args: unknown) => void): () => void;
|
|
33
|
+
/** Unsubscribe from the `Dismissed` event using a raw registration token. */
|
|
34
|
+
offDismissed(token: unknown): void;
|
|
35
|
+
}
|