[{"data":1,"prerenderedAt":699},["ShallowReactive",2],{"navigation":3,"\u002Fcontributing\u002Fwindows-surfaces":252,"\u002Fcontributing\u002Fwindows-surfaces-surround":694},[4,89,128,171,213,217,248],{"title":5,"path":6,"stem":7,"children":8,"icon":88},"Guide","\u002Fguide","1.guide\u002F01.index",[9,10,14,18,22,26,30,34,38,42,73],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Install","\u002Fguide\u002Finstall","1.guide\u002F02.install",{"title":15,"path":16,"stem":17},"First widget","\u002Fguide\u002Ffirst-widget","1.guide\u002F03.first-widget",{"title":19,"path":20,"stem":21},"Concepts","\u002Fguide\u002Fconcepts","1.guide\u002F05.concepts",{"title":23,"path":24,"stem":25},"Apple data transport","\u002Fguide\u002Ftransport","1.guide\u002F06.transport",{"title":27,"path":28,"stem":29},"Doctor","\u002Fguide\u002Fdoctor","1.guide\u002F07.doctor",{"title":31,"path":32,"stem":33},"CLI","\u002Fguide\u002Fcli","1.guide\u002F08.cli",{"title":35,"path":36,"stem":37},"Core vs extended","\u002Fguide\u002Ftiers","1.guide\u002F09.tiers",{"title":39,"path":40,"stem":41},"Troubleshooting","\u002Fguide\u002Ftroubleshooting","1.guide\u002F10.troubleshooting",{"title":43,"path":44,"stem":45,"children":46,"icon":72},"Platform setup","\u002Fguide\u002Fsetup","1.guide\u002F12.setup\u002F1.index",[47,48,52,56,60,64,68],{"title":43,"path":44,"stem":45},{"title":49,"path":50,"stem":51},"Android setup","\u002Fguide\u002Fsetup\u002Fandroid","1.guide\u002F12.setup\u002F2.android",{"title":53,"path":54,"stem":55},"iOS setup","\u002Fguide\u002Fsetup\u002Fios","1.guide\u002F12.setup\u002F3.ios",{"title":57,"path":58,"stem":59},"macOS setup","\u002Fguide\u002Fsetup\u002Fmacos","1.guide\u002F12.setup\u002F4.macos",{"title":61,"path":62,"stem":63},"Windows setup","\u002Fguide\u002Fsetup\u002Fwindows","1.guide\u002F12.setup\u002F5.windows",{"title":65,"path":66,"stem":67},"Linux setup","\u002Fguide\u002Fsetup\u002Flinux","1.guide\u002F12.setup\u002F6.linux",{"title":69,"path":70,"stem":71},"Desktop webview","\u002Fguide\u002Fsetup\u002Fdesktop","1.guide\u002F12.setup\u002F7.desktop","i-lucide-monitor-smartphone",{"title":74,"icon":75,"path":76,"stem":77,"children":78,"page":87},"Recipes","i-lucide-chef-hat","\u002Fguide\u002Frecipes","1.guide\u002F13.recipes",[79,83],{"title":80,"path":81,"stem":82},"Multi-widget","\u002Fguide\u002Frecipes\u002Fmulti-widget","1.guide\u002F13.recipes\u002F4.multi-widget",{"title":84,"path":85,"stem":86},"Testing your widget","\u002Fguide\u002Frecipes\u002Ftesting","1.guide\u002F13.recipes\u002F5.testing",false,"i-lucide-rocket",{"title":90,"path":91,"stem":92,"children":93,"icon":127},"Elements","\u002Felements","2.elements\u002F1.index",[94,95,99,103,107,111,115,119,123],{"title":90,"path":91,"stem":92},{"title":96,"path":97,"stem":98},"Layout elements","\u002Felements\u002Flayout","2.elements\u002F2.layout",{"title":100,"path":101,"stem":102},"Text elements","\u002Felements\u002Ftext","2.elements\u002F3.text",{"title":104,"path":105,"stem":106},"Media elements","\u002Felements\u002Fmedia","2.elements\u002F4.media",{"title":108,"path":109,"stem":110},"Data elements","\u002Felements\u002Fdata","2.elements\u002F5.data",{"title":112,"path":113,"stem":114},"Interactive elements","\u002Felements\u002Finteractive","2.elements\u002F6.interactive",{"title":116,"path":117,"stem":118},"Spacing elements","\u002Felements\u002Fspacing","2.elements\u002F7.spacing",{"title":120,"path":121,"stem":122},"Style","\u002Felements\u002Fstyle","2.elements\u002F8.style",{"title":124,"path":125,"stem":126},"Colors","\u002Felements\u002Fcolors","2.elements\u002F9.colors","i-lucide-blocks",{"title":129,"path":130,"stem":131,"children":132,"icon":170},"Features","\u002Ffeatures","2.features\u002F01.index",[133,134,138,142,146,150,154,158,162,166],{"title":129,"path":130,"stem":131},{"title":135,"path":136,"stem":137},"Dynamic Island","\u002Ffeatures\u002Fdynamic-island","2.features\u002F02.dynamic-island",{"title":139,"path":140,"stem":141},"Interactive widgets","\u002Ffeatures\u002Finteractive","2.features\u002F03.interactive",{"title":143,"path":144,"stem":145},"Live activities","\u002Ffeatures\u002Flive-activities","2.features\u002F04.live-activities",{"title":147,"path":148,"stem":149},"Timelines and transitions","\u002Ffeatures\u002Ftimelines","2.features\u002F05.timelines",{"title":151,"path":152,"stem":153},"Remote data","\u002Ffeatures\u002Fremote-data","2.features\u002F06.remote-data",{"title":155,"path":156,"stem":157},"Widget updater","\u002Ffeatures\u002Fwidget-updater","2.features\u002F07.widget-updater",{"title":159,"path":160,"stem":161},"Instances","\u002Ffeatures\u002Finstances","2.features\u002F08.instances",{"title":163,"path":164,"stem":165},"Conditions, lists and templates","\u002Ffeatures\u002Fdynamic-content","2.features\u002F09.dynamic-content",{"title":167,"path":168,"stem":169},"Images","\u002Ffeatures\u002Fimages","2.features\u002F10.images","i-lucide-sparkles",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":87},"API","i-lucide-file-code","\u002Fapi","3.api",[177,181,185,189,193,197,201,205,209],{"title":178,"path":179,"stem":180},"JavaScript API","\u002Fapi\u002Fjs","3.api\u002F1.js",{"title":182,"path":183,"stem":184},"JS reference","\u002Fapi\u002Freference","3.api\u002F2.reference",{"title":186,"path":187,"stem":188},"Rust API","\u002Fapi\u002Frust","3.api\u002F3.rust",{"title":190,"path":191,"stem":192},"Tauri commands","\u002Fapi\u002Fcommands","3.api\u002F4.commands",{"title":194,"path":195,"stem":196},"Plugin config","\u002Fapi\u002Fplugin-config","3.api\u002F5.plugin-config",{"title":198,"path":199,"stem":200},"Cargo features","\u002Fapi\u002Fcargo-features","3.api\u002F6.cargo-features",{"title":202,"path":203,"stem":204},"Environment variables","\u002Fapi\u002Fenv","3.api\u002F7.env",{"title":206,"path":207,"stem":208},"Permissions","\u002Fapi\u002Fpermissions","3.api\u002F8.permissions",{"title":210,"path":211,"stem":212},"JSON Schema","\u002Fapi\u002Fjson-schema","3.api\u002F9.json-schema",{"title":214,"path":215,"stem":216},"Showcase","\u002Fshowcase","4.showcase",{"title":218,"path":219,"stem":220,"children":221,"icon":247},"Contributing","\u002Fcontributing","5.contributing\u002F1.index",[222,223,227,231,235,239,243],{"title":218,"path":219,"stem":220},{"title":224,"path":225,"stem":226},"Development guide","\u002Fcontributing\u002Fdevelopment","5.contributing\u002F2.development",{"title":228,"path":229,"stem":230},"Render testing (config → geometry \u002F pixels)","\u002Fcontributing\u002Frender-testing","5.contributing\u002F3.render-testing",{"title":232,"path":233,"stem":234},"Visual stand (Level-2 pixels)","\u002Fcontributing\u002Fvisual-stand","5.contributing\u002F4.visual-stand",{"title":236,"path":237,"stem":238},"Linux harness (Docker)","\u002Fcontributing\u002Flinux-harness","5.contributing\u002F5.linux-harness",{"title":240,"path":241,"stem":242},"Windows surface split","\u002Fcontributing\u002Fwindows-surfaces","5.contributing\u002F6.windows-surfaces",{"title":244,"path":245,"stem":246},"Mutation testing","\u002Fcontributing\u002Fmutation-testing","5.contributing\u002F7.mutation-testing","i-lucide-git-pull-request",{"title":249,"path":250,"stem":251},"Changelog","\u002Fchangelog","6.changelog",{"id":253,"title":240,"body":254,"description":687,"extension":688,"generated":87,"links":689,"meta":690,"navigation":691,"path":241,"seo":692,"stem":242,"__hash__":693},"docs\u002F5.contributing\u002F6.windows-surfaces.md",{"type":255,"value":256,"toc":679},"minimark",[257,261,270,355,359,493,497,569,573],[258,259,240],"h1",{"id":260},"windows-surface-split",[262,263,264,265,269],"p",{},"Two independent Windows integrations. Do ",[266,267,268],"strong",{},"not"," mix them in one code path.",[271,272,273,292],"table",{},[274,275,276],"thead",{},[277,278,279,283,286,289],"tr",{},[280,281,282],"th",{},"Surface",[280,284,285],{},"Transport",[280,287,288],{},"UI",[280,290,291],{},"Package",[293,294,295,333],"tbody",{},[277,296,297,303,321,327],{},[298,299,300],"td",{},[266,301,302],{},"Widgets Board",[298,304,305,309,310,313,314,317,318],{},[306,307,308],"code",{},"widget_data.json"," keys ",[306,311,312],{},"ac:template:{id}"," \u002F ",[306,315,316],{},"ac:data:{id}"," + ",[306,319,320],{},"pending_actions",[298,322,323,324],{},"Adaptive Cards via C# ",[306,325,326],{},"IWidgetProvider",[298,328,329,330],{},"MSIX App Extension ",[306,331,332],{},"com.microsoft.windows.widgets",[277,334,335,340,346,349],{},[298,336,337],{},[266,338,339],{},"Desktop wallpaper (WorkerW)",[298,341,342,343],{},"Existing desktop webview \u002F ",[306,344,345],{},"widget.html",[298,347,348],{},"Frameless Tauri webview HWND reparented under WorkerW (or Progman on 24H2)",[298,350,351,352],{},"No MSIX widget extension; ",[306,353,354],{},"layer: \"desktop\"",[356,357,302],"h2",{"id":358},"widgets-board",[360,361,362,370,389,455,461,476,486],"ul",{},[363,364,365,366,369],"li",{},"Transpile: Rust ",[306,367,368],{},"to_adaptive_card"," (+ rasterize chart\u002Fcanvas\u002Fgauge → PNG data URI)",[363,371,372,373,376,377,380,381,384,385,388],{},"Host write: ",[306,374,375],{},"desktop::write_board_card"," on ",[306,378,379],{},"cfg(windows)"," — ",[306,382,383],{},"adaptive_card::board_card"," emits one card with a body per distinct size branch, each tagged ",[306,386,387],{},"\"$when\": \"${$host.widgetSize == \\\"small\\\" || …}\"","; a config with one branch gives a plain card",[363,390,391,392,395],{},"Provider: ",[306,393,394],{},"templates\u002Fwindows-widget\u002FWidgetProvider",[360,396,397,413,423,440,449],{},[363,398,399,317,401,404,405,408,409,412],{},[306,400,326],{},[306,402,403],{},"IWidgetProvider2"," (customization), ",[306,406,407],{},"IWidgetProviderAnalytics",", ",[306,410,411],{},"IWidgetProviderErrors"," (WinAppSDK 1.6 as referenced; the board calls the last two on Windows 11 build 26900+)",[363,414,415,416,419,420],{},"start: ",[306,417,418],{},"WidgetManager.GetWidgetInfos()"," recovers pinned widgets and their ",[306,421,422],{},"CustomState",[363,424,425,427,428,431,432,435,436,439],{},[306,426,422],{}," is sent on every ",[306,429,430],{},"UpdateWidget","; ",[306,433,434],{},"\"customizing\""," while the customize card is shown (\"Open app\" → host action ",[306,437,438],{},"customize",", \"Done\" → back to the card)",[363,441,442,443,446,447],{},"analytics \u002F error JSON is appended to ",[306,444,445],{},"provider.log"," next to ",[306,448,308],{},[363,450,451,452],{},"manifest advertises small \u002F medium \u002F large and ",[306,453,454],{},"IsCustomizable=\"true\"",[363,456,457,458],{},"Init: ",[306,459,460],{},"npx tauri-plugin-widgets-api init-windows",[363,462,463,464,467,468,471,472,475],{},"Preview \u002F goldens: ",[306,465,466],{},"templates\u002Fwindows-widget\u002FPreviewHost"," → ",[306,469,470],{},"tests\u002Fgolden\u002Fwindows\u002F"," (record on Windows VM via ",[306,473,474],{},"just record-windows \u003Ccase>",")",[363,477,478,479,482,483,475],{},"Adaptive Card JSON snapshots: ",[306,480,481],{},"tests\u002Fsnapshots\u002Fadaptive\u002F"," (",[306,484,485],{},"pnpm -C scripts cli gen-adaptive-snapshots",[363,487,488,489,492],{},"Compile check from macOS: ",[306,490,491],{},"dotnet msbuild -restore -t:Compile -p:Smoke=false -p:EnableWindowsTargeting=true -p:Platform=x64 -p:RuntimeIdentifier=win-x64"," on a copy with the CLSID placeholder filled (the PRI \u002F Appx tasks after compile need Windows)",[356,494,496],{"id":495},"desktop-layer-workerw","Desktop layer (WorkerW)",[360,498,499,515,526,534,537,544,562],{},[363,500,501,376,503,506,507,510,511,514],{},[306,502,354],{},[306,504,505],{},"createWidgetWindow","; Rust API ",[306,508,509],{},"tauri_plugin_widgets::windows::{attach_to_desktop, attach_window}"," (always built on Windows; feature ",[306,512,513],{},"workerw"," is a no-op kept for compatibility)",[363,516,517,518,521,522,525],{},"Classic: ",[306,519,520],{},"0x052C"," to Progman spawns a top-level WorkerW behind the ",[306,523,524],{},"SHELLDLL_DefView"," host → child of it",[363,527,528,529,531,532],{},"Windows 11 24H2+: no top-level WorkerW appears; ",[306,530,524],{}," and the wallpaper WorkerW are Progman children → the window becomes a Progman child z-ordered right below ",[306,533,524],{},[363,535,536],{},"Position is kept: screen rect converted to parent client coordinates (virtual screen origin may be negative)",[363,538,539,540,543],{},"Explorer restart: one hidden top-level window on a watcher thread receives the ",[306,541,542],{},"TaskbarCreated"," broadcast and re-attaches every live attached window",[363,545,546,547,550,551,554,555,558,559],{},"Compile-check: ",[306,548,549],{},"cargo check --target x86_64-pc-windows-msvc --no-default-features --features rasterize"," (default ",[306,552,553],{},"image-prefetch"," pulls ",[306,556,557],{},"ring",", which needs Windows C headers) or ",[306,560,561],{},"cargo xwin check",[363,563,564,565,568],{},"Runtime smoke only on an interactive Windows desktop session (",[306,566,567],{},"scripts\u002Fwin\u002Fworkerw-smoke.ps1"," optional)",[356,570,572],{"id":571},"utm-tooling","UTM tooling",[271,574,575,585],{},[274,576,577],{},[277,578,579,582],{},[280,580,581],{},"Command",[280,583,584],{},"Role",[293,586,587,597,607,620,633,646,659,669],{},[277,588,589,594],{},[298,590,591],{},[306,592,593],{},"just win-up",[298,595,596],{},"SSH healthcheck",[277,598,599,604],{},[298,600,601],{},[306,602,603],{},"just win-bootstrap",[298,605,606],{},"Install VS Build Tools \u002F WinAppSDK via PS",[277,608,609,614],{},[298,610,611],{},[306,612,613],{},"just win-sync",[298,615,616,617],{},"Sync repo to ",[306,618,619],{},"C:\\work\\tauri-plugin-widgets",[277,621,622,627],{},[298,623,624],{},[306,625,626],{},"just test-windows-remote",[298,628,629,632],{},[306,630,631],{},"shot.ps1"," smoke",[277,634,635,643],{},[298,636,637,313,640],{},[306,638,639],{},"just test-windows-visual",[306,641,642],{},"record-windows",[298,644,645],{},"PreviewHost PNG",[277,647,648,656],{},[298,649,650,313,653],{},[306,651,652],{},"just win-pack",[306,654,655],{},"win-sideload",[298,657,658],{},"Publish + sideload helpers",[277,660,661,666],{},[298,662,663],{},[306,664,665],{},"just check-windows-xwin",[298,667,668],{},"Cross-check plugin",[277,670,671,676],{},[298,672,673],{},[306,674,675],{},"just build-windows-example-xwin",[298,677,678],{},"Cross-build demo app",{"title":680,"searchDepth":681,"depth":682,"links":683},"",2,3,[684,685,686],{"id":358,"depth":681,"text":302},{"id":495,"depth":681,"text":496},{"id":571,"depth":681,"text":572},"Two independent Windows integrations. Do not mix them in one code path.","md",null,{},true,{"title":240,"description":687},"Uz8AIDA8fSbfIOvd7xilOnUpxpk1nBiPPBGg5Sb8utg",[695,697],{"title":236,"path":237,"stem":238,"description":696,"children":-1},"Native arm64 Ubuntu 24.04 container — do not use --platform linux\u002Famd64 on Apple Silicon (qemu is 5–10× slower).",{"title":244,"path":245,"stem":246,"description":698,"children":-1},"Unit tests pass is not proof they check anything. Mutation testing changes the code (a \u003C\ninto \u003C=, a branch into true) and expects some test to fail; a mutant that survives\nmarks code no test watches. Fix the test, not the config.",1795184347832]