@linxin666/dsh-remote-web-ui 0.3.16 → 0.3.18

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/lib/client.js CHANGED
@@ -4453,7 +4453,7 @@ window.__ModuleLoader__.load({
4453
4453
  /** The building package's version, when the bundle carries it. */
4454
4454
  function bakedVersion() {
4455
4455
  try {
4456
- return "0.3.16";
4456
+ return "0.3.18";
4457
4457
  } catch {
4458
4458
  return;
4459
4459
  }
@@ -5229,11 +5229,10 @@ window.__ModuleLoader__.load({
5229
5229
  * sidebar-foot entry (phone trigger + pairing panel + update trigger), and
5230
5230
  * the pair boot flow (accept + presence heartbeats) plus the one-time
5231
5231
  * failed-pair notice. The portrait-touch adaptation of the official UI
5232
- * starts at module scope (startMobileAdapt) so its focus guard is installed
5233
- * before the app boots. Export discipline: packages/client/AGENTS.md — the
5232
+ * starts under the plugin lifecycle (startMobileAdapt inside apply) and reverts
5233
+ * on dispose, so disabled plugin entries stay inert. Export discipline: packages/client/AGENTS.md — the
5234
5234
  * /client surface carries only what cordis loading needs plus types.
5235
5235
  */
5236
- startMobileAdapt();
5237
5236
  /** Dictionary namespace owned by this plugin. */
5238
5237
  const NS = "remote";
5239
5238
  /** Settings namespace the remote-control card edits (the Host plugin registers it). */
@@ -5253,6 +5252,10 @@ window.__ModuleLoader__.load({
5253
5252
  * @param ctx - client root context.
5254
5253
  */
5255
5254
  function apply(ctx) {
5255
+ startMobileAdapt();
5256
+ ctx.effect(() => () => {
5257
+ window.__dshRemoteAdapt?.setEnabled?.(false);
5258
+ }, "remote-web-ui: mobile-adapt");
5256
5259
  reportDailyHeartbeat([{ name: "@linxin666/dsh-remote-web-ui" }]);
5257
5260
  ctx.effect(() => {
5258
5261
  try {