@microsoft/webui 0.0.30 → 3.0.0
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/ai.md +193 -22
- package/bin/webui +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -7
- package/wasm/all/package.json +1 -1
- package/wasm/all/webui_wasm_all_bg.wasm +0 -0
- package/wasm/handler/package.json +1 -1
- package/wasm/handler/webui_wasm_handler_bg.wasm +0 -0
- package/wasm/parser/package.json +1 -1
- package/wasm/parser/webui_wasm_parser_bg.wasm +0 -0
package/ai.md
CHANGED
|
@@ -821,7 +821,7 @@ transient user activation or closed-shadow click targets.
|
|
|
821
821
|
| `<property>Changed(oldValue, newValue)` | For `@attr` and `@observable`, run once after the component mounts with `oldValue` undefined, then synchronously on each live assignment |
|
|
822
822
|
| `protected hydratedCallback()` | Run synchronously once after the first successful hydration or client mount |
|
|
823
823
|
| `static define(tagName)` | Register as a custom element |
|
|
824
|
-
|
|
|
824
|
+
| Generated component asset root | Import a stable generated `<tag>.webui.js` payload, then wrap its default export with `defineComponentAsset()` |
|
|
825
825
|
|
|
826
826
|
### Custom events
|
|
827
827
|
|
|
@@ -1020,22 +1020,28 @@ Without `@microsoft/webui-router`, prebuild the asset and mount it into a
|
|
|
1020
1020
|
```bash
|
|
1021
1021
|
webui build ./src --out ./dist --plugin=webui \
|
|
1022
1022
|
--emit-component-assets settings-dialog \
|
|
1023
|
+
--component-assets-out ./.webui \
|
|
1023
1024
|
--metafile ./dist/component-assets-meta.json
|
|
1024
1025
|
```
|
|
1025
1026
|
|
|
1026
1027
|
```typescript
|
|
1027
|
-
import {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1028
|
+
import {
|
|
1029
|
+
defineComponentAsset,
|
|
1030
|
+
preloadComponentAssetStyles,
|
|
1031
|
+
} from '@microsoft/webui-framework/component-asset-runtime.js';
|
|
1032
|
+
|
|
1033
|
+
const loadSettings = () => {
|
|
1034
|
+
preloadComponentAssetStyles('settings-dialog');
|
|
1035
|
+
return import('../.webui/settings-dialog.webui.js')
|
|
1036
|
+
.then(module => defineComponentAsset(module.default));
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
preloadSettings(): void {
|
|
1040
|
+
void loadSettings().then(asset => asset.preload()).catch(() => {});
|
|
1041
|
+
}
|
|
1035
1042
|
|
|
1036
|
-
async
|
|
1037
|
-
|
|
1038
|
-
this.panelSlot.replaceChildren(await settingsAssets.create('settings-dialog'));
|
|
1043
|
+
async openSettings(): Promise<void> {
|
|
1044
|
+
this.panelSlot.replaceChildren(await (await loadSettings()).create());
|
|
1039
1045
|
}
|
|
1040
1046
|
```
|
|
1041
1047
|
|
|
@@ -1049,14 +1055,21 @@ handler or `Protocol`, which emits `#webui-component-assets`. Using build
|
|
|
1049
1055
|
artifacts without rendering the protocol preserves the guarded native mount but
|
|
1050
1056
|
does not provide early compiler-owned style preloading.
|
|
1051
1057
|
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
WebUI emits one immutable `components/<tag>.<content-id>.webui.js` input per asset-owned
|
|
1059
|
+
component and a thin `<root>.webui.js` entry with static imports for its closure.
|
|
1060
|
+
The application bundler owns final chunks, hashes, public paths, caching, and
|
|
1061
|
+
delivery. `defineComponentAsset()` waits for graph and style registration before
|
|
1062
|
+
creating the element, returning one facade per imported payload. Failed
|
|
1063
|
+
registration can retry, but a native ESM import failure may stay cached for the
|
|
1064
|
+
document lifetime. Consume speculative failures without reloading; real open
|
|
1065
|
+
failures need visible errors and bundler-owned recovery or an explicit reload.
|
|
1066
|
+
Do not claim resetting a promise retries a native import. The versioned root
|
|
1067
|
+
imports compact template/style payloads and lists only external prerequisites.
|
|
1068
|
+
Generated dependencies stay available until older readers finish; clean the
|
|
1069
|
+
input directory only after stopping or coordinating those readers.
|
|
1070
|
+
The normal entry bundle must load first.
|
|
1071
|
+
Component assets cannot be combined with `<route>`; use the router for routed
|
|
1072
|
+
components.
|
|
1060
1073
|
|
|
1061
1074
|
## Routing
|
|
1062
1075
|
|
|
@@ -1379,6 +1392,112 @@ Installer generation and signing are not supported. The
|
|
|
1379
1392
|
runtime-only build continues to support all `DesktopRuntime::from_bundle*`
|
|
1380
1393
|
entry points. See the [desktop SDK guide](./guide/concepts/desktop.md) for
|
|
1381
1394
|
source/bundle construction, window customization, and scoped event subscriptions.
|
|
1395
|
+
An existing Rust HTTP app can instead opt into a native window for its bound
|
|
1396
|
+
loopback origin with `DesktopApp::from_local_server`; the SDK does not proxy or
|
|
1397
|
+
render that server's routes again. Local-server application IPC is a separate
|
|
1398
|
+
owned-listener grant, not enabled by the `local-server` feature alone.
|
|
1399
|
+
`webui_desktop::bind_owned_local_server(address)` needs only `local-server`.
|
|
1400
|
+
It binds an exclusive loopback listener without enabling application IPC;
|
|
1401
|
+
retain the listener until the native window closes.
|
|
1402
|
+
Incoming macOS custom-scheme URLs require the separate `native-url-activation`
|
|
1403
|
+
Cargo feature (which includes `local-server`). Hosts calling
|
|
1404
|
+
`LocalServerFrame::on_url_activation("myapp", handler)` must enable this flag;
|
|
1405
|
+
the method and activation types are absent with `local-server` alone.
|
|
1406
|
+
Delivery is bounded and host-only: it does not register the scheme with the OS,
|
|
1407
|
+
navigate the browser or prove cold/warm OS delivery. See the
|
|
1408
|
+
[desktop local-server guide](/guide/concepts/desktop#existing-http-application).
|
|
1409
|
+
|
|
1410
|
+
macOS local-server browser data stays ephemeral even with `app_id` unless
|
|
1411
|
+
the packaged Rust host calls `.app_id(bundle_id).persistent_website_data()`
|
|
1412
|
+
before `.build()`. The ID must match the running `.app` bundle, or building
|
|
1413
|
+
fails before opening a webview. The public WebKit store is shared across
|
|
1414
|
+
windows and allowed frames, not per viewer; normal cookie expiry applies.
|
|
1415
|
+
Windows keeps its existing app-ID-owned WebView2 profile. Linux rejects this
|
|
1416
|
+
request. See [desktop website data](./guide/concepts/desktop.md#existing-http-application).
|
|
1417
|
+
On macOS and Windows, a local-server host can set
|
|
1418
|
+
`WindowOptions.titlebar = TitlebarStyle::Overlay { height }` to float native
|
|
1419
|
+
controls over web content. On macOS that height also centers standard caption
|
|
1420
|
+
controls within the header band outside fullscreen. Include
|
|
1421
|
+
`window_css_block(&window, DesktopPlatform::current())` in the host-rendered
|
|
1422
|
+
document head, and use `[webui-drag]` with `[webui-no-drag]` on interactive
|
|
1423
|
+
children. No separate titlebar strip or application IPC grant is required;
|
|
1424
|
+
window controls use a fixed, main-document-only command set. Linux
|
|
1425
|
+
local-server frames require the native titlebar.
|
|
1426
|
+
For nonce-only `style-src`, pass the current response nonce to
|
|
1427
|
+
`window_css_block_with_nonce(&window, DesktopPlatform::current(), nonce)?`
|
|
1428
|
+
instead of disabling CSP or rewriting a response.
|
|
1429
|
+
For a failure **before** creating a local-server frame, a Rust host can opt
|
|
1430
|
+
into the independent `startup-failure` feature and call
|
|
1431
|
+
`StartupFailure::new(title, summary, help)` followed by
|
|
1432
|
+
`present_startup_failure(&failure)` on the macOS main thread (or a Windows
|
|
1433
|
+
host thread), before creating a frame. Supply only
|
|
1434
|
+
short checked user-safe copy, not the raw error or its chain; first persist the
|
|
1435
|
+
original failure in a durable host log, handle alert errors separately, and
|
|
1436
|
+
still return the original failure. The native alert returns only after OK
|
|
1437
|
+
acknowledgement. Linux returns `Unsupported`. No webview, renderer
|
|
1438
|
+
grant, or automatic hook is added. See
|
|
1439
|
+
[before-frame startup failures](./guide/concepts/desktop.md#before-frame-startup-failures).
|
|
1440
|
+
On macOS, ordinary local-server window close, owner revocation, and AppKit
|
|
1441
|
+
Quit return to the Rust host after `WindowClosed` and IPC retirement, so it
|
|
1442
|
+
can drain its backend off the UI thread. Quit is cancellable. See the
|
|
1443
|
+
[desktop SDK guide](./guide/concepts/desktop.md) for veto, retry, and failure
|
|
1444
|
+
behavior, including terminal window teardown before an unexpected AppKit stop
|
|
1445
|
+
returns an error.
|
|
1446
|
+
The default macOS Window menu targets this window and includes Toggle Full
|
|
1447
|
+
Screen (`Control+Command+F`); custom menus retain their explicit entries.
|
|
1448
|
+
On macOS and Windows, an exact `.localhost` preview subdomain needs an
|
|
1449
|
+
unprivileged `frame.frame_policy()` grant; it never gains native IPC or
|
|
1450
|
+
window controls. Linux currently denies preview subframe document commits.
|
|
1451
|
+
For Rust-hosted staged release bytes, `verified-update` provides a host-only
|
|
1452
|
+
SHA-256 or SHA-512/size check from independently authenticated expected metadata
|
|
1453
|
+
(`ExpectedUpdate` or `ExpectedUpdateSha512`). A digest of the download is not an
|
|
1454
|
+
authenticated expectation; neither path proves provenance, archive identity,
|
|
1455
|
+
signature, or install safety. See
|
|
1456
|
+
[staged release byte integrity](/guide/concepts/desktop#staged-release-byte-integrity).
|
|
1457
|
+
With `native-services`, a trusted macOS Rust host can await
|
|
1458
|
+
`services.set_theme(ThemeMode::Light | ThemeMode::Dark | ThemeMode::System)`
|
|
1459
|
+
and query `services.current_theme()` for the effective native appearance
|
|
1460
|
+
of newly admitted documents. Windows/Linux return `ThemeUnsupported`;
|
|
1461
|
+
the host persists preferences and owns SSR CSS. No renderer grant is added.
|
|
1462
|
+
See [desktop theme and native services](./guide/concepts/desktop.md#trusted-host-os-openers).
|
|
1463
|
+
With the separate `native-picker` feature, a trusted macOS or Windows Rust host
|
|
1464
|
+
can await `services.pick_directory(DirectoryPickerOptions::new())?.await?` for
|
|
1465
|
+
one bounded, absolute folder path or explicit cancellation. Linux returns
|
|
1466
|
+
`PickerUnsupported`. Windows uses a dedicated COM STA; the 120-second
|
|
1467
|
+
deadline can finish logically while OS work still holds Busy, without a hard
|
|
1468
|
+
dialog-teardown guarantee. No renderer grant is added; actual selection through
|
|
1469
|
+
the native panel has not yet been verified with a user. See
|
|
1470
|
+
[trusted-host OS openers](./guide/concepts/desktop.md#trusted-host-os-openers).
|
|
1471
|
+
With `native-dialogs`, a trusted local-server host can await one OS-owned
|
|
1472
|
+
error acknowledgement or confirmation without granting renderer IPC. Construct
|
|
1473
|
+
bounded `ErrorDialog` or `ConfirmDialog` copy explicitly; do not display raw
|
|
1474
|
+
error chains. Navigation/close and a finite deadline cancel delivery, and
|
|
1475
|
+
`Cancelled` is a distinct user response. See
|
|
1476
|
+
[live native dialogs](./guide/concepts/desktop.md#trusted-host-os-openers).
|
|
1477
|
+
With `native-capture`, the macOS or Windows trusted host can request a bounded,
|
|
1478
|
+
visible webview PNG (WK snapshot or WebView2 `CapturePreview` on its owning STA)
|
|
1479
|
+
after its own preview-readiness handshake, then read/release the opaque
|
|
1480
|
+
resource in paced chunks. Windows rejects oversized viewports before native
|
|
1481
|
+
capture and has no verified runtime/iframe-pixel evidence. No renderer or
|
|
1482
|
+
screen-capture permission is added.
|
|
1483
|
+
See [host-owned visible-content capture](./guide/concepts/desktop.md#host-owned-visible-content-capture-macos-and-windows).
|
|
1484
|
+
A macOS or Windows trusted host with `native-clipboard` may separately await
|
|
1485
|
+
a native PNG clipboard write for that still-retained capture before any
|
|
1486
|
+
host-controlled URL opener; no issue-opening or renderer grant is automatic.
|
|
1487
|
+
Windows uses the registered `PNG` format, not `CF_DIB`, and remains
|
|
1488
|
+
runtime-unverified. See
|
|
1489
|
+
[explicit PNG clipboard write](./guide/concepts/desktop.md#explicit-macos-and-windows-png-clipboard-write).
|
|
1490
|
+
For an already-compiled Rust host that owns its sealed WebUI assets and
|
|
1491
|
+
workers, opt into the build-only `microsoft-webui-desktop/packaging` feature
|
|
1492
|
+
and call `package_precompiled_host` with its host executable, target triple,
|
|
1493
|
+
identity, optional icon, and explicit executable/data file mappings. This
|
|
1494
|
+
creates a macOS `.app` or Windows/Linux portable directory without compiling
|
|
1495
|
+
a second render bundle or shipping Node. It refuses unsafe mappings and
|
|
1496
|
+
existing output. Mapped resources are preflight-sealed one at a time, then
|
|
1497
|
+
reopened and verified against the copied output, bounding open descriptors
|
|
1498
|
+
independently of mapping count. Distribution, signing, installers, and
|
|
1499
|
+
Windows shared runtime prerequisites remain consumer-owned. See
|
|
1500
|
+
[precompiled host layout](./guide/concepts/desktop.md#precompiled-host-layout).
|
|
1382
1501
|
Use `frame.window_handle().set_title(...)` or `set_background(Rgba { ... })`
|
|
1383
1502
|
for live presentation changes from Rust; these do not change the stable app ID
|
|
1384
1503
|
or packaged defaults. The background applies to the native surface, current
|
|
@@ -1388,6 +1507,8 @@ background, and the remaining initial window options can all be set through
|
|
|
1388
1507
|
changes use `set_size(width, height)`; titlebar style remains startup-only.
|
|
1389
1508
|
On macOS, bundle `shell.icon_path` must stay inside the bundle without `..` or
|
|
1390
1509
|
symlink escapes; source hosts can set an absolute path for Dock artwork.
|
|
1510
|
+
Without custom menus, macOS supplies native App, Edit, and Window roles;
|
|
1511
|
+
the Window actions target this app's own window.
|
|
1391
1512
|
`titlebar.height` sizes the application band; Windows caption buttons default
|
|
1392
1513
|
to 32 DIPs independently. Pass `--caption-button-size tall` for
|
|
1393
1514
|
48-DIP buttons without changing the application band height.
|
|
@@ -1428,6 +1549,14 @@ webui build ./src --out ./dist --plugin=webui
|
|
|
1428
1549
|
webui inspect ./dist/protocol.bin
|
|
1429
1550
|
```
|
|
1430
1551
|
|
|
1552
|
+
`webui serve` listens on IPv4 loopback on a nonzero `--port` (port 0 is
|
|
1553
|
+
rejected). It accepts `127.0.0.1`, `localhost`, and subdomains such as
|
|
1554
|
+
`play.xbox.localhost` on its port. For a reverse proxy that forwards a custom
|
|
1555
|
+
Host, add an exact `--allowed-host dev.example[:port]` (repeatable); only add
|
|
1556
|
+
names you control.
|
|
1557
|
+
Other Hosts are rejected before the app or API proxy handles them. See the
|
|
1558
|
+
[serve CLI reference](./guide/cli/#webui-serve) for details.
|
|
1559
|
+
|
|
1431
1560
|
`webui press` invokes the separately installed native Press sidecar.
|
|
1432
1561
|
It launches Rust directly; Press does not support `--format json`.
|
|
1433
1562
|
|
|
@@ -1438,6 +1567,10 @@ Common flags on both commands: `--entry`, `--css <link|style|module>`,
|
|
|
1438
1567
|
`--projection-manifest`, `--emit-component-assets`, `--metafile`,
|
|
1439
1568
|
`--format json`.
|
|
1440
1569
|
|
|
1570
|
+
WebUI overwrites current component roots but does not delete older generated
|
|
1571
|
+
payloads or unrelated files from a developer-owned output directory. Remove and
|
|
1572
|
+
recreate the disposable directory when a clean build is required.
|
|
1573
|
+
|
|
1441
1574
|
On `webui serve` (with or without `--watch`) and `webui press serve`, optionally
|
|
1442
1575
|
add `--shutdown-timeout 10` for a ten-second shutdown grace period. Omit it to
|
|
1443
1576
|
retain the default wait for an active rebuild with no deadline. Forced shutdown
|
|
@@ -1467,7 +1600,14 @@ Full flag tables, exit codes, and the error-code list:
|
|
|
1467
1600
|
### External component discovery
|
|
1468
1601
|
|
|
1469
1602
|
Native `--components` discovery derives names from `<component-name>.html`,
|
|
1470
|
-
scanning
|
|
1603
|
+
scanning the package's `components/` directory by default, with no package-root
|
|
1604
|
+
fallback. A package can select alternate ordinary HTML roots with
|
|
1605
|
+
`"webui": { "components": ["./src/components"] }` in its `package.json`.
|
|
1606
|
+
Only the listed directories are scanned; `[]` disables ordinary fallback.
|
|
1607
|
+
Roots must be readable package-relative directories, including their symlink
|
|
1608
|
+
targets. Invalid metadata and paths are errors. FAST CEM assets remain separately
|
|
1609
|
+
resolved. Explicit local paths and the app directory are scanned as given; do
|
|
1610
|
+
not repeat the app directory in `--components`.
|
|
1471
1611
|
Template/style exports and CEM names are not interpreted by default discovery;
|
|
1472
1612
|
FAST's special metadata-based layouts remain separate.
|
|
1473
1613
|
Npm collection spellings `@scope/*` and `@scope/package/*` are accepted.
|
|
@@ -1489,6 +1629,37 @@ reading the full site's saved manual theme. Full mode retains its persisted
|
|
|
1489
1629
|
theme control and applies that choice to native theme tokens and controls.
|
|
1490
1630
|
See [WebUI Press](/guide/webui-press) for layout and asset behavior.
|
|
1491
1631
|
|
|
1632
|
+
Keep initial example data local to its Markdown file using YAML frontmatter:
|
|
1633
|
+
|
|
1634
|
+
```markdown
|
|
1635
|
+
---
|
|
1636
|
+
title: Button examples
|
|
1637
|
+
state:
|
|
1638
|
+
example:
|
|
1639
|
+
label: Save
|
|
1640
|
+
count: 2
|
|
1641
|
+
---
|
|
1642
|
+
|
|
1643
|
+
<example-preview :example="{{example}}"></example-preview>
|
|
1644
|
+
```
|
|
1645
|
+
|
|
1646
|
+
The receiving component declares `@observable example` and binds its nested
|
|
1647
|
+
fields inside its template. Keep Markdown complex-property bindings aligned
|
|
1648
|
+
with that top-level state key; entry-level nested-to-renamed-observable mappings
|
|
1649
|
+
do not currently preserve the initial hydration value.
|
|
1650
|
+
|
|
1651
|
+
Frontmatter `state` is an inline JSON-compatible object, not a file path.
|
|
1652
|
+
Global config `state`/`stateFile` supplies defaults; local keys shallowly
|
|
1653
|
+
replace matching global keys for this page only, without deep-merging objects.
|
|
1654
|
+
The same merged state drives SSR and hydration in both display modes.
|
|
1655
|
+
Omit `state` or use `{}` for no local data. Non-object state, non-string object
|
|
1656
|
+
keys, custom YAML tags, non-finite numbers, and reserved top-level Press keys are build
|
|
1657
|
+
errors. Namespace examples to avoid reserved keys such as `page`, `site`,
|
|
1658
|
+
`label`, and `icon`; `example.label` is fine. Never store secrets in render state.
|
|
1659
|
+
`customPages` replaces Markdown rather than supplementing it, and Markdown
|
|
1660
|
+
state does not populate `pageData`. See the
|
|
1661
|
+
[full state contract and reserved-key list](/guide/webui-press#markdown-local-state).
|
|
1662
|
+
|
|
1492
1663
|
In a WebUI Press template, use paired regions for fallback markup and
|
|
1493
1664
|
self-closing regions for empty insertion points:
|
|
1494
1665
|
|
|
@@ -1620,5 +1791,5 @@ Full detail: [Integrations](/guide/integrations/).
|
|
|
1620
1791
|
| Design tokens and theming | [/guide/concepts/css-tokens](/guide/concepts/css-tokens) |
|
|
1621
1792
|
| CLI flags, diagnostics, exit codes | [/guide/cli/](/guide/cli/) |
|
|
1622
1793
|
| WebUI Press named regions | [/guide/webui-press](/guide/webui-press) |
|
|
1623
|
-
| Rust, Node, Python, WASM, FFI, Electron | [/guide/integrations/](/guide/integrations/) |
|
|
1794
|
+
| Rust, Node, Python, WASM, FFI, Electron, Tauri | [/guide/integrations/](/guide/integrations/) |
|
|
1624
1795
|
| Build a first app | [/tutorials/hello-world/](/tutorials/hello-world/) |
|
package/bin/webui
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface BuildOptions {
|
|
|
27
27
|
componentAssetRoots?: string[];
|
|
28
28
|
/** Generate and return an esbuild-compatible component asset metafile. */
|
|
29
29
|
metafile?: boolean;
|
|
30
|
-
/** Emitted
|
|
30
|
+
/** Emitted Link-mode CSS filename template. Tokens: [name], [hash], [ext]. */
|
|
31
31
|
cssFileNameTemplate?: string;
|
|
32
32
|
/** Optional base URL/path prefix for Link-mode CSS hrefs. */
|
|
33
33
|
cssPublicBase?: string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAClC,qFAAqF;IACrF,GAAG,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,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,qBAAa,gBAAgB;;IAG3B,4DAA4D;IAC5D,YAAY,MAAM,EAAE,sBAAsB,EAEzC;IAED,sEAAsE;IACtE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAExC;IAED,uEAAuE;IACvE,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,IAAI,GAAE,YAAsB,GAC3B,UAAU,CAEZ;IAED,+EAA+E;IAC/E,OAAO,IAAI,UAAU,CAEpB;IAED,0EAA0E;IAC1E,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAEzD;CACF;AAiCD,6DAA6D;AAC7D,wBAAgB,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAQpD"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microsoft/webui",
|
|
3
3
|
"description": "WebUI — high-performance server-side rendering framework. Build-time protocol compiler and streaming renderer.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0
|
|
5
|
+
"version": "3.0.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"tag": "latest"
|
|
8
8
|
},
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@microsoft/webui-darwin-arm64": "0.0
|
|
52
|
-
"@microsoft/webui-darwin-x64": "0.0
|
|
53
|
-
"@microsoft/webui-linux-arm64": "0.0
|
|
54
|
-
"@microsoft/webui-linux-x64": "0.0
|
|
55
|
-
"@microsoft/webui-win32-arm64": "0.0
|
|
56
|
-
"@microsoft/webui-win32-x64": "0.0
|
|
51
|
+
"@microsoft/webui-darwin-arm64": "3.0.0",
|
|
52
|
+
"@microsoft/webui-darwin-x64": "3.0.0",
|
|
53
|
+
"@microsoft/webui-linux-arm64": "3.0.0",
|
|
54
|
+
"@microsoft/webui-linux-x64": "3.0.0",
|
|
55
|
+
"@microsoft/webui-win32-arm64": "3.0.0",
|
|
56
|
+
"@microsoft/webui-win32-x64": "3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"esbuild": "^0.28.1",
|
package/wasm/all/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/wasm/parser/package.json
CHANGED
|
Binary file
|