winui-svelte 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/API.md +120 -6
  2. package/README.md +70 -90
  3. package/dist/bindings/.dynwinrt-managed +1 -1
  4. package/dist/components/convert.d.ts +3 -3
  5. package/dist/components/convert.d.ts.map +1 -1
  6. package/dist/components/fluent-glyph.d.ts +4 -0
  7. package/dist/components/fluent-glyph.d.ts.map +1 -1
  8. package/dist/components/generated/controls/FontIcon.svelte.d.ts +1 -1
  9. package/dist/components/generated/controls/FontIconSource.svelte.d.ts +1 -1
  10. package/dist/components/generated/controls/UIElement.svelte.d.ts +1 -1
  11. package/dist/components/index.d.ts +4 -2
  12. package/dist/components/index.d.ts.map +1 -1
  13. package/dist/components/index.js.map +1 -1
  14. package/dist/css/runtime/resources.d.ts +1 -1
  15. package/dist/dev/dev-window.d.ts +23 -0
  16. package/dist/dev/dev-window.d.ts.map +1 -0
  17. package/dist/dev/dev-window.js +42 -0
  18. package/dist/dev/dev-window.js.map +1 -0
  19. package/dist/dev/index.d.ts +3 -0
  20. package/dist/dev/index.d.ts.map +1 -0
  21. package/dist/dev/index.js +2 -0
  22. package/dist/dev/index.js.map +1 -0
  23. package/dist/dev/start-dev.d.ts +47 -0
  24. package/dist/dev/start-dev.d.ts.map +1 -0
  25. package/dist/dev/start-dev.js +81 -0
  26. package/dist/dev/start-dev.js.map +1 -0
  27. package/dist/enums.d.ts +2 -0
  28. package/dist/enums.d.ts.map +1 -1
  29. package/dist/enums.js +2 -0
  30. package/dist/enums.js.map +1 -1
  31. package/dist/media/media-player.d.ts +8 -0
  32. package/dist/media/media-player.d.ts.map +1 -1
  33. package/dist/media/media-player.js +15 -0
  34. package/dist/media/media-player.js.map +1 -1
  35. package/dist/web-apis/window-geometry.d.ts +39 -0
  36. package/dist/web-apis/window-geometry.d.ts.map +1 -0
  37. package/dist/web-apis/window-geometry.js +95 -0
  38. package/dist/web-apis/window-geometry.js.map +1 -0
  39. package/dist/win2d/Canvas.svelte +1 -0
  40. package/dist/window/anchor.d.ts +92 -0
  41. package/dist/window/anchor.d.ts.map +1 -0
  42. package/dist/window/anchor.js +100 -0
  43. package/dist/window/anchor.js.map +1 -0
  44. package/dist/window/backdrop.d.ts +4 -1
  45. package/dist/window/backdrop.d.ts.map +1 -1
  46. package/dist/window/backdrop.js +10 -2
  47. package/dist/window/backdrop.js.map +1 -1
  48. package/dist/window/create-window.d.ts +1 -1
  49. package/dist/window/create-window.d.ts.map +1 -1
  50. package/dist/window/create-window.js +3 -1
  51. package/dist/window/create-window.js.map +1 -1
  52. package/dist/window/css-pixels.d.ts +14 -0
  53. package/dist/window/css-pixels.d.ts.map +1 -0
  54. package/dist/window/css-pixels.js +12 -0
  55. package/dist/window/css-pixels.js.map +1 -0
  56. package/dist/window/dock.d.ts +51 -0
  57. package/dist/window/dock.d.ts.map +1 -0
  58. package/dist/window/dock.js +69 -0
  59. package/dist/window/dock.js.map +1 -0
  60. package/dist/window/index.d.ts +4 -0
  61. package/dist/window/index.d.ts.map +1 -1
  62. package/dist/window/index.js +2 -0
  63. package/dist/window/index.js.map +1 -1
  64. package/dist/window/native.d.ts +2 -0
  65. package/dist/window/native.d.ts.map +1 -1
  66. package/dist/window/native.js +10 -0
  67. package/dist/window/native.js.map +1 -1
  68. package/dist/window/transparent-backdrop.d.ts +11 -0
  69. package/dist/window/transparent-backdrop.d.ts.map +1 -0
  70. package/dist/window/transparent-backdrop.js +35 -0
  71. package/dist/window/transparent-backdrop.js.map +1 -0
  72. package/dist/window/window-handle.d.ts +17 -0
  73. package/dist/window/window-handle.d.ts.map +1 -1
  74. package/dist/window/window-handle.js +23 -0
  75. package/dist/window/window-handle.js.map +1 -1
  76. package/dist/window/window-host.svelte.d.ts +17 -12
  77. package/dist/window/window-host.svelte.d.ts.map +1 -1
  78. package/dist/window/window-host.svelte.js +208 -23
  79. package/dist/window/window-host.svelte.js.map +1 -1
  80. package/dist/winui.d.ts +5 -0
  81. package/dist/winui.d.ts.map +1 -1
  82. package/dist/winui.js +5 -0
  83. package/dist/winui.js.map +1 -1
  84. package/package.json +25 -7
  85. package/src/components/convert.ts +3 -3
  86. package/src/components/fluent-glyph.ts +6 -0
  87. package/src/components/generated/controls/FontIcon.svelte.ts +1 -1
  88. package/src/components/generated/controls/FontIconSource.svelte.ts +1 -1
  89. package/src/components/generated/controls/UIElement.svelte.ts +1 -1
  90. package/src/components/index.ts +13 -2
  91. package/src/dev/dev-window.ts +63 -0
  92. package/src/dev/index.ts +2 -0
  93. package/src/dev/start-dev.ts +120 -0
  94. package/src/enums.ts +2 -0
  95. package/src/media/media-player.ts +17 -0
  96. package/src/web-apis/window-geometry.ts +106 -0
  97. package/src/window/anchor.ts +156 -0
  98. package/src/window/backdrop.ts +11 -2
  99. package/src/window/create-window.ts +5 -1
  100. package/src/window/css-pixels.ts +18 -0
  101. package/src/window/dock.ts +99 -0
  102. package/src/window/index.ts +4 -0
  103. package/src/window/native.ts +12 -0
  104. package/src/window/transparent-backdrop.ts +38 -0
  105. package/src/window/window-handle.ts +26 -0
  106. package/src/window/window-host.svelte.ts +256 -36
  107. package/src/winui.ts +5 -0
  108. package/web-types.json +3203 -1507
package/API.md CHANGED
@@ -23,6 +23,7 @@ monorepo needs no build step (the repository is a pnpm workspace, see
23
23
  | `winui-svelte/state` | `src/state/index.ts` | `createHostChannel()`, `hostState()`, the transports (see `src/state/README.md`) |
24
24
  | `winui-svelte/messaging` | `src/messaging/index.ts` | `defineMessaging(transport)`: typed `sendMessage` / `onMessage` over a ProtocolMap, as @webext-core/messaging; the state channel is built on it |
25
25
  | `winui-svelte/vite` | `src/vite/index.ts` | `winuiSvelte()` Vite plugin, `startModuleServer()`, `buildApp()` (the production bundle), compile-error formatting |
26
+ | `winui-svelte/dev` | `src/dev/index.ts` | `startDev()`, the dev loop in one call: Windows App SDK, dev server and the window's thread |
26
27
  | `winui-svelte/runner` | `src/vite/runner.ts` | `createWindowModuleRunner()`, the window thread's side of the module server |
27
28
  | `winui-svelte/compile` | `src/vite/compile.ts` | `compileSvelte()` for bundlers (esbuild) and tests, `WINUI_COMPILE_OPTIONS`, `withElementAnimation()` |
28
29
  | `winui-svelte/testing` | `src/vite/loader.ts` | `svelteHooks()`: Node module hooks that run `.svelte` files, with Svelte's runtime read through the package's edits (pure tests) |
@@ -326,6 +327,35 @@ function flush(): void;
326
327
  function onFlush(listener: () => void): () => void;
327
328
  ```
328
329
 
330
+ ## Dev loop (`winui-svelte/dev`)
331
+
332
+ ```ts
333
+ interface DevOptions {
334
+ root: string; // the folder of the app's sources
335
+ component: string; // the root component, a path under root ("/App.svelte")
336
+ props?: Record<string, Json>;
337
+ host?: "stdio" | Transport; // the link to the Tauri core, Electron main process or script that started this process
338
+ window?: object; // title, size, backdrop and the rest of createWindow's chrome
339
+ configFile?: string;
340
+ isNative?: (file: string) => boolean;
341
+ }
342
+
343
+ // Opens the component in a window and keeps it live: a saved .svelte or .ts
344
+ // file updates the open window without a restart. Resolves to the exit code
345
+ // once the window has closed and the server stopped.
346
+ function startDev(options: DevOptions): Promise<number>;
347
+ ```
348
+
349
+ With `host`, a Tauri core (a sidecar on `"stdio"`) or an Electron main process
350
+ (a `utilityProcess` and a transport of its own) owns the state: the component
351
+ gets a `channel` prop (`hostState`, `channel.send`) and the window closes when
352
+ the link ends, so the dev loop runs under the real framework and a saved file
353
+ still updates the open window
354
+
355
+ `startDev` joins `initWindowsAppSdk`, `startModuleServer` and a worker whose
356
+ `runOnUiThread` creates the module runner and the window; a host that needs its
357
+ own (a second window, a message link) uses those pieces directly
358
+
329
359
  ## Vite (`winui-svelte/vite`)
330
360
 
331
361
  ```ts
@@ -444,7 +474,7 @@ function createWindow<Props extends object>(options: WindowOptions<Props>): AppW
444
474
  type WindowOptions<Props> = {
445
475
  title?: string;
446
476
  size?: { width: number; height: number }; // device pixels
447
- backdrop?: Backdrop; // "acrylic" | "acrylicBase" | "acrylicThin" | "mica" | "micaAlt" | "none"
477
+ backdrop?: Backdrop; // "acrylic" | "acrylicBase" | "acrylicThin" | "mica" | "micaAlt" | "none" | "transparent"
448
478
  extendsIntoTitleBar?: boolean;
449
479
  isBackground?: boolean; // shown without activating (tests, captures)
450
480
  } & ({ component: Component<Props>; props: Props } | { control: FrameworkElement });
@@ -1056,7 +1086,9 @@ const vertical: Orientation = 1;
1056
1086
  | A flag enum WinUI marks `[Flags]` (`FlagsInput`) | the same, or a list of names it combines | `modifiers={["Control", "Shift"]}` |
1057
1087
  | A color (`ColorInput`) | hex text (`HexColor`), a `ColorKeyword`, or WinUI's own value | `"#0078d4"`, `"transparent"` |
1058
1088
  | A brush (`BrushInput`) | a color, a `ThemeBrush`, a key of `AppBrushes`, or a `Brush` | `"AcrylicBackgroundFillColorDefaultBrush"` |
1059
- | An icon glyph (`GlyphInput`, on `FontIcon` and `FontIconSource`) | a name of Segoe Fluent Icons, the code point of one, code points to compose, or the character (`fontFamily` takes a family name such as `"Segoe Fluent Icons"` or a `FontFamily`; `FluentGlyph` from `winui-svelte/components` holds the code point of each icon by name) | `glyph="Save"`, `glyph={FluentGlyph.Save}`, `glyph={[0xE700, 0xE701]}`, `glyph=""` |
1089
+ | An icon glyph (`GlyphInput`, on `FontIcon` and `FontIconSource`) | a name of Segoe Fluent Icons, the code point of one (only a `FluentGlyph` value, no other number), code points to compose, or the character (`fontFamily` takes a family name such as `"Segoe Fluent Icons"` or a `FontFamily`; `FluentGlyph` from `winui-svelte/components` holds the code point of each icon by name; the types `FluentGlyphName`, `FluentGlyphCode` and `FluentGlyphValue` (a name or a code point) name its parts) | `glyph="Save"`, `glyph={FluentGlyph.Save}`, `glyph={[FluentGlyph.GlobalNavButton, FluentGlyph.Save]}`, `glyph=""` |
1090
+ | A path geometry (`GeometryInput`, on `PathIcon` and `Path`) | Path Markup Syntax text or a `Geometry` | `data="M0,0 L10,10"` |
1091
+ | A font family (`FontFamilyInput`) | a family name or a `FontFamily` | `"Segoe UI Variable"` |
1060
1092
  | A grid length (`GridLengthInput`) | pixels, or `GridLengthText` as XAML writes it | `"Auto"`, `"2*"`, `"120"` |
1061
1093
  | The package's own | `Backdrop`, `WindowTheme`, `TitleBarHeight`, `WindowPresentation`, `PickerLocation`, `NavigationCacheMode`, `NavigationMode`, `MoveDirection`, `XamlKind`, `FocusKind`, `TrayGesture`, `TrayBalloonIcon` | `backdrop={Backdrop.mica}` |
1062
1094
 
@@ -1488,7 +1520,7 @@ the control's own nodes, and binding it undoes the key selection
1488
1520
  Mount it as the app's root (`mountControl({ component: App, props })` inside `runWindow`'s
1489
1521
  `onStart`): the component is the window
1490
1522
  `backdrop` is `"acrylic"`, `"acrylicBase"`,
1491
- `"acrylicThin"`, `"mica"`, `"micaAlt"` or `"none"` (`Backdrop`, also taken by `createWindow`); it can
1523
+ `"acrylicThin"`, `"mica"`, `"micaAlt"`, `"none"` or `"transparent"` (`Backdrop`, also taken by `createWindow`); it can
1492
1524
  change while the window is open
1493
1525
  WinUI itself shows the theme's solid color
1494
1526
  in place of the material while the window is inactive, and restores it on
@@ -1498,6 +1530,28 @@ the other two acrylic variants: XAML's `DesktopAcrylicBackdrop` has no kind, so
1498
1530
  the window takes `DesktopAcrylicController` as a target instead
1499
1531
  (`window.systemBackdrop` reads null; the controller is closed when the backdrop
1500
1532
  changes or the window closes)
1533
+ `"transparent"` shows the desktop through every pixel the content leaves clear,
1534
+ with per-pixel alpha: the window gets a fully clear composition brush behind
1535
+ its content (`ICompositionSupportsSystemBackdrop`; the Windows App SDK's
1536
+ `TransparentTintBackdrop` is not in the metadata of the releases restored, 2.2
1537
+ and 2.3, so it cannot be generated)
1538
+ `window.systemBackdrop` reads null for it
1539
+ Pair it with `isBorderless` and content that sets no background of its own
1540
+ A floating card over a transparent window:
1541
+
1542
+ ```svelte
1543
+ <Window backdrop="transparent" isBorderless isShownInSwitchers={false}>
1544
+ <border
1545
+ background="#e61f1f1f"
1546
+ corner-radius="12"
1547
+ padding="16"
1548
+ horizontal-alignment="center"
1549
+ vertical-alignment="center">
1550
+ <text-block foreground="white">Everything around the card is the desktop</text-block>
1551
+ </border>
1552
+ </Window>
1553
+ ```
1554
+
1501
1555
  A `titleBar` snippet is shown above the content
1502
1556
  and set as the window's title bar (`setTitleBar`, so it is the drag region and
1503
1557
  the controls in it still click); it makes `extendsIntoTitleBar` true unless
@@ -1548,14 +1602,74 @@ of the frame props: `isBorderless` (no frame, no title bar),
1548
1602
  `isActivatable={false}` (a click never takes focus), `isClickThrough`,
1549
1603
  `isExcludedFromCapture` (black in screenshots and screen sharing),
1550
1604
  `isHidden` (opens hidden, hides and shows later) and `cornerRadius` (clips the
1551
- window to a rounded rectangle; the edge is not anti-aliased)
1605
+ window to a rounded rectangle; the edge is not anti-aliased, so on a
1606
+ transparent window round the card's own `corner-radius` instead, which is)
1552
1607
  A prop left out leaves the window as it is, and dropped again it puts the
1553
1608
  window back
1554
1609
  `createWindow` takes them too
1555
1610
  `handle.setShownInSwitchers(isShown)` does not throw for a window that has no
1556
1611
  taskbar button (WinUI answers 0x80004001 there); `hideToTray` uses it
1557
- A window with a transparent background (per-pixel alpha) is not offered:
1558
- WinUI 3 has no transparent backdrop in the bindings
1612
+ A window with a transparent background (per-pixel alpha) is
1613
+ `backdrop="transparent"`; no web API makes a window transparent (Tauri and
1614
+ Electron take `transparent: true` when they create theirs), so the value is
1615
+ WinUI's alone
1616
+ `isActivatable` is read again whenever it changes, so an overlay can take focus
1617
+ while text is selected and give it up afterwards: `isActivatable={false}` sets
1618
+ `WS_EX_NOACTIVATE`, `true` or a dropped prop clears it (call `handle.activate()`
1619
+ to take focus once it is set)
1620
+
1621
+ `sizeToContent` (`"none"`, the default, `"width"`, `"height"` or `"both"`; the
1622
+ `SizeToContent` set) makes the window follow its content: after every layout
1623
+ pass the root's desired size, plus the frame, is clamped to `minWidth`,
1624
+ `minHeight`, `maxWidth` and `maxHeight` and applied with one
1625
+ `AppWindow.MoveAndResize`, so the size and the position never show half done
1626
+ `anchor` (`"topLeft"`, the default, `"topRight"`, `"bottomLeft"` or
1627
+ `"bottomRight"`; the `WindowAnchor` set) is the corner that stays where it is:
1628
+ anchored bottom-right, a window whose content grows taller grows upward
1629
+ A side the content sets ignores the `width` or `height` prop
1630
+ The scale is applied (the desired size is in device-independent pixels), so a
1631
+ move to a display with another scale refits
1632
+ The root is measured with `FrameworkElement.DesiredSize` on `LayoutUpdated`:
1633
+ a `ResizeObserver` reports the laid-out size, which a stretched root keeps
1634
+ while its content grows
1635
+ `createWindow` takes both props
1636
+
1637
+ ```svelte
1638
+ <Window
1639
+ isBorderless
1640
+ isActivatable={false}
1641
+ sizeToContent="height"
1642
+ anchor="bottomRight"
1643
+ width={504}
1644
+ bind:handle
1645
+ >
1646
+ <Card />
1647
+ </Window>
1648
+ ```
1649
+
1650
+ ```ts
1651
+ // device pixels, from the work area of the display the user is on
1652
+ handle.dock({ anchor: "bottomRight", inset: 6 })
1653
+ ```
1654
+
1655
+ `handle.dock({ anchor, inset, display })` moves the window against a corner of
1656
+ a display's work area (`DisplayArea.WorkArea`: the display without the
1657
+ taskbar) with one `MoveAndResize`; `inset` is in device pixels (0 by default)
1658
+ `display` is `"active"` (the default: the display of the foreground window),
1659
+ `"current"` (the one the window is on) or `"primary"` (the `DockDisplay` set)
1660
+ A window moved to a display with another scale goes there first and is docked
1661
+ at the size it has after Windows rescaled it
1662
+ `dockWindow({ appWindow, ... })` and `displayAreaOf({ appWindow, display })`
1663
+ (`winui-svelte/window`) do the same for a bare `AppWindow`
1664
+ The arithmetic is plain functions (`anchoredBounds`, `dockedBounds`,
1665
+ `fittedBounds` in `src/window/anchor.ts`) over device pixels
1666
+
1667
+ `handle.geometry` is the window's own `window.outerWidth`, `outerHeight`,
1668
+ `screenX`, `screenY`, `devicePixelRatio`, `resizeTo(width, height)`,
1669
+ `resizeBy`, `moveTo(x, y)` and `moveBy`, in CSS pixels (WinUI's
1670
+ device-independent pixels at the window's scale), over `AppWindow.Resize` and
1671
+ `AppWindow.Move`
1672
+ A process has many windows, so there is no `window` global for them
1559
1673
 
1560
1674
  `owner` (another window's `WindowHandle`) and `isModal`
1561
1675
  (blocks the owner until this window closes) are read once, before the window
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # winui-svelte
2
2
 
3
+ ![The winui-svelte logo](https://raw.githubusercontent.com/avi12/winui-svelte/main/ide/icon.svg)
4
+
3
5
  [![npm version](https://img.shields.io/npm/v/winui-svelte)](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,12 @@ 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))
45
71
  - **Errors** thrown in an event handler or a prop are caught on the UI thread,
46
72
  written to stderr with their stack and handed to `runWindow({ onerror })`;
47
73
  the app goes on ([API.md](https://github.com/avi12/winui-svelte/blob/main/API.md))
@@ -126,14 +152,22 @@ written with it
126
152
  | 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
153
  | Vite | 8 (for the dev server and hot reload) |
128
154
 
129
- ## Install
155
+ ## Editor support
130
156
 
131
- ```sh
132
- pnpm add winui-svelte
133
- ```
157
+ Two optional add-ons for `.svelte` files, one for each editor:
134
158
 
135
- The WinUI bindings, the Windows App SDK bootstrapper and the Vite plugin come
136
- with it
159
+ - previews and completions for icon names, colours and installed fonts
160
+ - Alt+Enter on a component's prop converts it to the CSS that sets the same
161
+ value
162
+
163
+ | Editor | Download | Install |
164
+ | --- | --- | --- |
165
+ | VS Code | `winui-svelte-vscode-<version>.vsix` | `code --install-extension winui-svelte-vscode-0.0.1.vsix`, or the Extensions view, the `...` menu, Install from VSIX |
166
+ | WebStorm | `winui-svelte-webstorm-<version>.zip` | Settings, Plugins, the gear, Install Plugin from Disk |
167
+
168
+ Both files are assets of the `editors-v*` releases, on their own tags apart
169
+ from the package's: [open the editors releases](https://github.com/avi12/winui-svelte/releases?q=editors-v)
170
+ and take the newest
137
171
 
138
172
  ## Quick start
139
173
 
@@ -195,104 +229,45 @@ any Svelte binding:
195
229
 
196
230
  <!-- hello/App.svelte:end -->
197
231
 
198
- `window.ts` runs on the UI thread
199
- `runOnUiThread` (the package's `/thread` entry) is a worker's first call: it
200
- enters the apartment before anything creates a WinRT object
201
- The
202
- window's modules come from the host's dev server through the module runner, and
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:
232
+ `main.ts` is the host: `startDev` (the package's `/dev` entry) starts the Windows
233
+ App SDK, the dev server and the window on its own thread, so that a saved file
234
+ updates the open window; the pieces it joins (`startModuleServer`,
235
+ `createWindowModuleRunner`, `runOnUiThread`) stay available for a host that
236
+ needs its own:
256
237
 
257
238
  <!-- hello/main.ts:start -->
258
239
 
259
240
  ```ts
260
- import path from "node:path";
261
- import { MessageChannel, Worker } from "node:worker_threads";
262
- import { initWindowsAppSdk } from "winui-svelte/bootstrap";
263
- import { startModuleServer } from "winui-svelte/vite";
241
+ import { startDev } from "winui-svelte/dev";
264
242
 
265
- // The host: it starts the Windows App SDK, serves the window's modules from a
266
- // Vite dev server (so a saved .svelte file updates the open window) and starts
267
- // the window, which runs on a worker because WinUI keeps its thread.
243
+ // The host: it opens App.svelte in a window and keeps it live, so a saved
244
+ // file updates the open window.
268
245
  //
269
246
  // node main.ts
270
247
 
271
- initWindowsAppSdk();
272
-
273
- const modules = new MessageChannel();
274
- await startModuleServer({
248
+ process.exitCode = await startDev({
275
249
  root: import.meta.dirname,
276
- configFile: path.join(import.meta.dirname, "vite.config.ts"),
277
- port: modules.port1
278
- });
279
- const worker = new Worker(new URL("./window.ts", import.meta.url), {
280
- workerData: {
281
- modules: modules.port2
282
- },
283
- transferList: [modules.port2]
284
- });
285
- worker.on("error", error => {
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);
250
+ configFile: `${import.meta.dirname}/vite.config.ts`,
251
+ component: "/App.svelte",
252
+ window: {
253
+ title: "Hello",
254
+ size: {
255
+ width: 480,
256
+ height: 320
257
+ },
258
+ isBackground: process.env["WINUI_SVELTE_BACKGROUND"] === "1"
259
+ }
291
260
  });
292
261
  ```
293
262
 
294
263
  <!-- hello/main.ts:end -->
295
264
 
265
+ A Tauri or Electron app starts a file like this as its sidecar (a Node process the
266
+ framework owns), with `host: "stdio"` or a transport of its own; the component
267
+ then receives the framework's state as a `channel` prop (see the [dev loop in
268
+ API.md](https://github.com/avi12/winui-svelte/blob/main/API.md#dev-loop-winui-sveltedev) and the
269
+ [hosts section](https://github.com/avi12/winui-svelte/blob/main/API.md#hosts-tauri-electron-and-node))
270
+
296
271
  ```sh
297
272
  node main.ts
298
273
  ```
@@ -803,6 +778,7 @@ conditions on `exports`), which your Vite compiles (`winuiSvelte()`)
803
778
  | `winui-svelte/state/host` | a JavaScript host's side: `diff`, transports, message types |
804
779
  | `winui-svelte/messaging` | `defineMessaging`: typed request and response messages over a transport, loadable in plain Node |
805
780
  | `winui-svelte/vite` | `winuiSvelte()` for `vite.config.ts`; `startModuleServer()` for hot reload; `buildApp()` for the production bundle |
781
+ | `winui-svelte/dev` | `startDev()`, one call that opens a component in a window and keeps it live as the files are saved |
806
782
  | `winui-svelte/runner` | `createWindowModuleRunner()`, the window thread's side of the module server |
807
783
  | `winui-svelte/window` | `runWindow`, `createWindow`, `startTimer`, `exitApplication`, `systemSettings` |
808
784
  | `winui-svelte/thread` | `runOnUiThread`, the first call of the UI thread's worker |
@@ -904,6 +880,10 @@ Stated plainly, so nobody finds them by surprise:
904
880
  `acrylicThin` put WinUI's `DesktopAcrylicController` behind the window, so
905
881
  `window.systemBackdrop` reads null for them (the controller holds the
906
882
  material)
883
+ - **Transparent windows are a composition brush.** `backdrop="transparent"`
884
+ puts a fully clear brush behind the content, since the Windows App SDK's
885
+ `TransparentTintBackdrop` is not in the metadata of the releases restored;
886
+ `window.systemBackdrop` reads null for it, and the window wants `isBorderless`
907
887
  - **Svelte is held to the releases checked.** The package reads a few spots of
908
888
  Svelte's runtime with edits, so the peer range is the span of releases the
909
889
  matrix (`pnpm check:svelte-matrix`) runs the tests against, and it widens
@@ -1,3 +1,3 @@
1
1
  # Generated by winapp dynwinrt-codegen integration. Do not edit.
2
2
  # Presence of this file authorises winapp to wipe the directory on the next run.
3
- generated_at: 2026-11-02T22:58:38.042Z
3
+ generated_at: 2026-11-05T15:11:33.595Z
@@ -1,4 +1,4 @@
1
- import type { FluentGlyphName } from "./fluent-glyph.js";
1
+ import type { FluentGlyphCode, FluentGlyphValue } from "./fluent-glyph.js";
2
2
  import type { FontFamilyName } from "./font-family-name.js";
3
3
  import { BitmapImage, Brush, DoubleCollection, FontFamily, GridUnitType, InputScope, InputScopeNameValue, IReference_Boolean, IReference_DateTime, IReference_Double, IReference_Point, IReference_Rect, IReference_TimeSpan, PathGeometry, PointCollection, SolidColorBrush, Style, SvgImageSource, Uri } from "./generated/bindings.js";
4
4
  import type { ControlTemplate, DataTemplate, Geometry, ImageSource, ItemsPanelTemplate, ResourceDictionary, UIElement } from "./generated/bindings.js";
@@ -72,8 +72,8 @@ export type MediaPlaybackSourceInput = string | IMediaPlaybackSource;
72
72
  export type GeometryInput = string | Geometry;
73
73
  /** A font family name or a font family. */
74
74
  export type FontFamilyInput = FontFamilyName | (string & Record<never, never>) | FontFamily;
75
- /** An icon glyph: a name of Segoe Fluent Icons ("Save"), a code point (`0xE74E`), code points to compose, or text. */
76
- export type GlyphInput = FluentGlyphName | (string & Record<never, never>) | number | readonly number[];
75
+ /** An icon glyph: a Fluent name ("Save"), its code point (`FluentGlyph.Save`), code points to compose, or text. */
76
+ export type GlyphInput = FluentGlyphValue | (string & Record<never, never>) | readonly FluentGlyphCode[];
77
77
  /** A URI string or a URI. */
78
78
  export type UriInput = string | Uri;
79
79
  /** XAML text (see `xamlOf`) or a ControlTemplate. */
@@ -1 +1 @@
1
- {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../src/components/convert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAEL,WAAW,EACX,KAAK,EACL,gBAAgB,EAEhB,UAAU,EACV,YAAY,EACZ,UAAU,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EAGnB,YAAY,EACZ,eAAe,EAIf,eAAe,EACf,KAAK,EACL,cAAc,EACd,GAAG,EAEJ,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB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,oBAAoB,mBAG5D;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,KAAK,EAAE,iBAAiB,gBAGtD;AAED,8GAA8G;AAC9G,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,uBAAuB,sBAGlE;AAMD;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAClD,KAAK,EAAE,UAAU,GAAG,gBAAgB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,OAoBA;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,sBAEhD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,iBAG1C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,6CAQ9C;AAED,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC;CACtB,QAUA"}
@@ -1539,4 +1539,8 @@ export declare const FluentGlyph: {
1539
1539
  };
1540
1540
  /** The name of an icon of Segoe Fluent Icons. */
1541
1541
  export type FluentGlyphName = keyof typeof FluentGlyph;
1542
+ /** The code point of an icon of Segoe Fluent Icons: the only numbers a `glyph` takes. */
1543
+ export type FluentGlyphCode = (typeof FluentGlyph)[FluentGlyphName];
1544
+ /** An icon of Segoe Fluent Icons by its name or its code point. */
1545
+ export type FluentGlyphValue = FluentGlyphName | FluentGlyphCode;
1542
1546
  //# sourceMappingURL=fluent-glyph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fluent-glyph.d.ts","sourceRoot":"","sources":["../../src/components/fluent-glyph.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8/Cd,CAAC;AAEX,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC;AAEpE,mEAAmE;AACnE,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG,eAAe,CAAC"}
@@ -48,7 +48,7 @@ export interface FontIconProps extends IconElementProps {
48
48
  /**
49
49
  * Gets or sets the character code that identifies the icon glyph. The hexadecimal character code for the icon glyph.
50
50
  *
51
- * Accepts an icon glyph: a name of Segoe Fluent Icons ("Save"), a code point (`0xE74E`), code points to compose, or text.
51
+ * Accepts an icon glyph: a Fluent name ("Save"), its code point (`FluentGlyph.Save`), code points to compose, or text.
52
52
  *
53
53
  * @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.glyph
54
54
  */
@@ -48,7 +48,7 @@ export interface FontIconSourceProps extends IconSourceProps {
48
48
  /**
49
49
  * Gets or sets the character code that identifies the icon glyph. The hexadecimal character code for the icon glyph.
50
50
  *
51
- * Accepts an icon glyph: a name of Segoe Fluent Icons ("Save"), a code point (`0xE74E`), code points to compose, or text.
51
+ * Accepts an icon glyph: a Fluent name ("Save"), its code point (`FluentGlyph.Save`), code points to compose, or text.
52
52
  *
53
53
  * @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.glyph
54
54
  */
@@ -711,7 +711,7 @@ export interface UIElementProps {
711
711
  /**
712
712
  * Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout. A value of the enumeration. The default value is Visible.
713
713
  *
714
- * Also settable in CSS as `visibility`
714
+ * Also settable in CSS as `display`
715
715
  *
716
716
  * @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.visibility
717
717
  */
@@ -11,17 +11,19 @@ export type { NavigatedEvent, NavigateOptions, NavigationEntry, NavigationPage,
11
11
  export { NavigationCacheMode, NavigationMode } from "./hand-written/navigation/navigation-stack.js";
12
12
  export { MoveDirection } from "./hand-written/items/reorder.js";
13
13
  export { FluentGlyph } from "./fluent-glyph.js";
14
- export type { FluentGlyphName } from "./fluent-glyph.js";
14
+ export type { FluentGlyphCode, FluentGlyphName, FluentGlyphValue } from "./fluent-glyph.js";
15
15
  export type { FontFamilyName } from "./font-family-name.js";
16
16
  export { isColorText, ticksDate, ticksMilliseconds } from "./values.js";
17
17
  export type { ColorInput, ColorKeyword, ColorText, GridLengthText, HexColor } from "./values.js";
18
- export type { AppBrushes, BrushInput, EnumInput, FlagsInput, GlyphInput, GridLengthInput } from "./convert.js";
18
+ export type { AppBrushes, BrushInput, EnumInput, FlagsInput, FontFamilyInput, GeometryInput, GlyphInput, GridLengthInput } from "./convert.js";
19
19
  export type { ResourceRecordInput, ResourceValueInput } from "./resource-record.js";
20
20
  export { installMedia } from "./media.js";
21
21
  export { goToState, installXaml, resourceDictionaryOf, xamlOf } from "./xaml.js";
22
22
  export type { XamlSource } from "./xaml-source.js";
23
23
  export { XamlKind } from "./xaml-source.js";
24
24
  export type { CaptionButtonColors, TitleBarHeight, WindowPresentation, WindowRegion, WindowTheme } from "../window/chrome.js";
25
+ export type { DockDisplay, DockOptions } from "../window/dock.js";
26
+ export type { SizeToContent, WindowAnchor } from "../window/anchor.js";
25
27
  export type { WindowHandle } from "../window/window-handle.js";
26
28
  export type { WindowBounds, WindowPlacement } from "../window/window-host.svelte.js";
27
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names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AAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC"}
@@ -79,7 +79,7 @@ export declare function resolveVariable({ catalogue, name, kind }: {
79
79
  readonly reason?: never;
80
80
  } | {
81
81
  readonly isFound: false;
82
- readonly reason: `${string} is a WinUI Brush resource (${string}), and a Brush is needed here` | `${string} is a WinUI Brush resource (${string}), and a Color is needed here` | `${string} is a WinUI Brush resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Brush resource (${string}), and a Double is needed here` | `${string} is a WinUI Brush resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Brush resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Brush resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Brush resource (${string}), and a String is needed here` | `${string} is a WinUI Brush resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Brush resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Brush resource (${string}), and a Alias is needed here` | `${string} is a WinUI Brush resource (${string}), and a Style is needed here` | `${string} is a WinUI Color resource (${string}), and a Brush is needed here` | `${string} is a WinUI Color resource (${string}), and a Color is needed here` | `${string} is a WinUI Color resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Color resource (${string}), and a Double is needed here` | `${string} is a WinUI Color resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Color resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Color resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Color resource (${string}), and a String is needed here` | `${string} is a WinUI Color resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Color resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Color resource (${string}), and a Alias is needed here` | `${string} is a WinUI Color resource (${string}), and a Style is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Brush is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Color is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Double is needed here` | `${string} is a WinUI Thickness resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Thickness resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Thickness resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Thickness resource (${string}), and a String is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Thickness resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Alias is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Style is needed here` | `${string} is a WinUI Double resource (${string}), and a Brush is needed here` | `${string} is a WinUI Double resource (${string}), and a Color is needed here` | `${string} is a WinUI Double resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Double resource (${string}), and a Double is needed here` | `${string} is a WinUI Double resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Double resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Double resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Double resource (${string}), and a String is needed here` | `${string} is a WinUI Double resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Double resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Double resource (${string}), and a Alias is needed here` | `${string} is a WinUI Double resource (${string}), and a Style is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Brush is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Color is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Thickness is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Double is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a String is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Boolean is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a GridLength is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Alias is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Style is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Brush is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Color is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Thickness is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Double is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a String is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Boolean is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a GridLength is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Alias is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Style is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Brush is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Color is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Thickness is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Double is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a String is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Boolean is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a GridLength is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Alias is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Style is needed here` | `${string} is a WinUI String resource (${string}), and a Brush is needed here` | `${string} is a WinUI String resource (${string}), and a Color is needed here` | `${string} is a WinUI String resource (${string}), and a Thickness is needed here` | `${string} is a WinUI String resource (${string}), and a Double is needed here` | `${string} is a WinUI String resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI String resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI String resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI String resource (${string}), and a String is needed here` | `${string} is a WinUI String resource (${string}), and a Boolean is needed here` | `${string} is a WinUI String resource (${string}), and a GridLength is needed here` | `${string} is a WinUI String resource (${string}), and a Alias is needed here` | `${string} is a WinUI String resource (${string}), and a Style is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Brush is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Color is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Double is needed here` | `${string} is a WinUI Boolean resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Boolean resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Boolean resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Boolean resource (${string}), and a String is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Boolean resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Alias is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Style is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Brush is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Color is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Thickness is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Double is needed here` | `${string} is a WinUI GridLength resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI GridLength resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI GridLength resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI GridLength resource (${string}), and a String is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Boolean is needed here` | `${string} is a WinUI GridLength resource (${string}), and a GridLength is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Alias is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Style is needed here` | `${string} is a WinUI Alias resource (${string}), and a Brush is needed here` | `${string} is a WinUI Alias resource (${string}), and a Color is needed here` | `${string} is a WinUI Alias resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Alias resource (${string}), and a Double is needed here` | `${string} is a WinUI Alias resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Alias resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Alias resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Alias resource (${string}), and a String is needed here` | `${string} is a WinUI Alias resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Alias resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Alias resource (${string}), and a Alias is needed here` | `${string} is a WinUI Alias resource (${string}), and a Style is needed here` | `${string} is a WinUI Style resource (${string}), and a Brush is needed here` | `${string} is a WinUI Style resource (${string}), and a Color is needed here` | `${string} is a WinUI Style resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Style resource (${string}), and a Double is needed here` | `${string} is a WinUI Style resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Style resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Style resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Style resource (${string}), and a String is needed here` | `${string} is a WinUI Style resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Style resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Style resource (${string}), and a Alias is needed here` | `${string} is a WinUI Style resource (${string}), and a Style is needed here`;
82
+ readonly reason: `${string} is a WinUI Color resource (${string}), and a Color is needed here` | `${string} is a WinUI Color resource (${string}), and a Brush is needed here` | `${string} is a WinUI Color resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Color resource (${string}), and a Double is needed here` | `${string} is a WinUI Color resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Color resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Color resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Color resource (${string}), and a String is needed here` | `${string} is a WinUI Color resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Color resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Color resource (${string}), and a Alias is needed here` | `${string} is a WinUI Color resource (${string}), and a Style is needed here` | `${string} is a WinUI Brush resource (${string}), and a Color is needed here` | `${string} is a WinUI Brush resource (${string}), and a Brush is needed here` | `${string} is a WinUI Brush resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Brush resource (${string}), and a Double is needed here` | `${string} is a WinUI Brush resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Brush resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Brush resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Brush resource (${string}), and a String is needed here` | `${string} is a WinUI Brush resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Brush resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Brush resource (${string}), and a Alias is needed here` | `${string} is a WinUI Brush resource (${string}), and a Style is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Color is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Brush is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Double is needed here` | `${string} is a WinUI Thickness resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Thickness resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Thickness resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Thickness resource (${string}), and a String is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Thickness resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Alias is needed here` | `${string} is a WinUI Thickness resource (${string}), and a Style is needed here` | `${string} is a WinUI Double resource (${string}), and a Color is needed here` | `${string} is a WinUI Double resource (${string}), and a Brush is needed here` | `${string} is a WinUI Double resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Double resource (${string}), and a Double is needed here` | `${string} is a WinUI Double resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Double resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Double resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Double resource (${string}), and a String is needed here` | `${string} is a WinUI Double resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Double resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Double resource (${string}), and a Alias is needed here` | `${string} is a WinUI Double resource (${string}), and a Style is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Color is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Brush is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Thickness is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Double is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a String is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Boolean is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a GridLength is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Alias is needed here` | `${string} is a WinUI CornerRadius resource (${string}), and a Style is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Color is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Brush is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Thickness is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Double is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a String is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Boolean is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a GridLength is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Alias is needed here` | `${string} is a WinUI FontWeight resource (${string}), and a Style is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Color is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Brush is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Thickness is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Double is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a String is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Boolean is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a GridLength is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Alias is needed here` | `${string} is a WinUI FontFamily resource (${string}), and a Style is needed here` | `${string} is a WinUI String resource (${string}), and a Color is needed here` | `${string} is a WinUI String resource (${string}), and a Brush is needed here` | `${string} is a WinUI String resource (${string}), and a Thickness is needed here` | `${string} is a WinUI String resource (${string}), and a Double is needed here` | `${string} is a WinUI String resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI String resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI String resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI String resource (${string}), and a String is needed here` | `${string} is a WinUI String resource (${string}), and a Boolean is needed here` | `${string} is a WinUI String resource (${string}), and a GridLength is needed here` | `${string} is a WinUI String resource (${string}), and a Alias is needed here` | `${string} is a WinUI String resource (${string}), and a Style is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Color is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Brush is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Double is needed here` | `${string} is a WinUI Boolean resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Boolean resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Boolean resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Boolean resource (${string}), and a String is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Boolean resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Alias is needed here` | `${string} is a WinUI Boolean resource (${string}), and a Style is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Color is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Brush is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Thickness is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Double is needed here` | `${string} is a WinUI GridLength resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI GridLength resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI GridLength resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI GridLength resource (${string}), and a String is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Boolean is needed here` | `${string} is a WinUI GridLength resource (${string}), and a GridLength is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Alias is needed here` | `${string} is a WinUI GridLength resource (${string}), and a Style is needed here` | `${string} is a WinUI Alias resource (${string}), and a Color is needed here` | `${string} is a WinUI Alias resource (${string}), and a Brush is needed here` | `${string} is a WinUI Alias resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Alias resource (${string}), and a Double is needed here` | `${string} is a WinUI Alias resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Alias resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Alias resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Alias resource (${string}), and a String is needed here` | `${string} is a WinUI Alias resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Alias resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Alias resource (${string}), and a Alias is needed here` | `${string} is a WinUI Alias resource (${string}), and a Style is needed here` | `${string} is a WinUI Style resource (${string}), and a Color is needed here` | `${string} is a WinUI Style resource (${string}), and a Brush is needed here` | `${string} is a WinUI Style resource (${string}), and a Thickness is needed here` | `${string} is a WinUI Style resource (${string}), and a Double is needed here` | `${string} is a WinUI Style resource (${string}), and a CornerRadius is needed here` | `${string} is a WinUI Style resource (${string}), and a FontWeight is needed here` | `${string} is a WinUI Style resource (${string}), and a FontFamily is needed here` | `${string} is a WinUI Style resource (${string}), and a String is needed here` | `${string} is a WinUI Style resource (${string}), and a Boolean is needed here` | `${string} is a WinUI Style resource (${string}), and a GridLength is needed here` | `${string} is a WinUI Style resource (${string}), and a Alias is needed here` | `${string} is a WinUI Style resource (${string}), and a Style is needed here`;
83
83
  readonly key?: never;
84
84
  } | {
85
85
  readonly isFound: false;