@hot-updater/console 1.0.0-rc.33 → 1.0.0-rc.35

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 (78) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/EventDetails-DkYtmL2k.js +1 -0
  3. package/.output/public/assets/{index-BX1o4EEw.js → index-DLywK4wD.js} +2 -2
  4. package/.output/public/assets/insights-BHVhJLZs.js +42 -0
  5. package/.output/public/assets/{insights-DR5lizi7.js → insights-CwSFpdR7.js} +2 -2
  6. package/.output/public/assets/{insights_.distribution-BKOhL2-k.js → insights_.distribution-Bggs1UiO.js} +2 -2
  7. package/.output/public/assets/insights_.distribution-DNls5vGb.js +1 -0
  8. package/.output/public/assets/{installations-DKMg-0wU.js → installations-C5o3yQUx.js} +2 -2
  9. package/.output/public/assets/{installations-_UEoKAn_.js → installations-DVsP_8Sx.js} +1 -1
  10. package/.output/public/assets/{routes-7mydtMXm.js → routes-BR7N_DAZ.js} +1 -1
  11. package/.output/public/assets/routes-D7JFd6Ld.js +2 -0
  12. package/.output/public/assets/styles-SFFk8Ipe.css +2 -0
  13. package/.output/server/{__23tanstack-start-server-fn-resolver-C_Pq0nkQ.mjs → __23tanstack-start-server-fn-resolver-DAzLrMhP.mjs} +36 -36
  14. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  15. package/.output/server/_ssr/{ConsoleFeatureUnavailable-HTfUJTNU.mjs → ConsoleFeatureUnavailable-7uUMRt3h.mjs} +6 -6
  16. package/.output/server/_ssr/{EventDetails-CRmZkIik.mjs → EventDetails-BYeVTKpq.mjs} +6 -7
  17. package/.output/server/_ssr/{InsightsInfo-DqLk7F08.mjs → InsightsInfo-B7rb9vj1.mjs} +2 -2
  18. package/.output/server/_ssr/{InsightsPageHeader-C6bxQkPf.mjs → InsightsPageHeader-DKkiNgry.mjs} +5 -5
  19. package/.output/server/_ssr/{NotFoundPage-_0iuEwqq.mjs → NotFoundPage-B3OhQ-N_.mjs} +2 -2
  20. package/.output/server/_ssr/{alert-dialog-eL4kn0XO.mjs → alert-dialog-DOmfwmP4.mjs} +1 -1
  21. package/.output/server/_ssr/{api-BZjLzDll.mjs → api-BhTVH65V.mjs} +3 -3
  22. package/.output/server/_ssr/{api-keys-Ibc352mx.mjs → api-keys-CC62Yk75.mjs} +2 -2
  23. package/.output/server/_ssr/{api-keys-CP2cBDJn.mjs → api-keys-CIxfIBHh.mjs} +8 -8
  24. package/.output/server/_ssr/{api-keys-rpc-BYCV6ZG6.mjs → api-keys-rpc-BXsMLx7c.mjs} +3 -3
  25. package/.output/server/_ssr/{api-rpc-DhjFMV_j.mjs → api-rpc-DLvfpxNO.mjs} +4 -4
  26. package/.output/server/_ssr/{auth-rpc-BvGGnOap.mjs → auth-rpc-BqYBLl4s.mjs} +4 -4
  27. package/.output/server/_ssr/{auth.server-BQWaNDJR.mjs → auth.server-jF8dC6Yc.mjs} +2 -2
  28. package/.output/server/_ssr/{card-CQpOisc-.mjs → card-UYQ1cBHO.mjs} +1 -1
  29. package/.output/server/_ssr/{config.server-C5wLSY-u.mjs → config.server-DW00oqkP.mjs} +4 -4
  30. package/.output/server/_ssr/{console-access-NVL4ifIe.mjs → console-access-HEQ735_N.mjs} +2 -2
  31. package/.output/server/_ssr/{console-features-api-v704CJ3a.mjs → console-features-api-Q0EbfMiO.mjs} +5 -5
  32. package/.output/server/_ssr/{console-features-rpc-BThzFc57.mjs → console-features-rpc-CwDJXPAd.mjs} +3 -3
  33. package/.output/server/_ssr/{dialog-DQO5BKiD.mjs → dialog-BVua56Ah.mjs} +1 -1
  34. package/.output/server/_ssr/{empty-2njD_dOX.mjs → empty-DNHkm0S9.mjs} +2 -2
  35. package/.output/server/_ssr/{field-BmjYvvBk.mjs → field-C1qwI-eP.mjs} +2 -2
  36. package/.output/server/_ssr/{input-group-DASDHEPj.mjs → input-group-Co7eO8Cg.mjs} +1 -1
  37. package/.output/server/_ssr/{insights-D6hEm1eb.mjs → insights-1w6PeNii.mjs} +5 -6
  38. package/.output/server/_ssr/{insights-bOF-aa3n.mjs → insights-D-tH_sSx.mjs} +42 -108
  39. package/.output/server/_ssr/{insights-yO3wHbkK.mjs → insights-VWERfT0m.mjs} +2 -3
  40. package/.output/server/_ssr/{insights-api-C75ecYk6.mjs → insights-api-RJ4TvUkm.mjs} +3 -3
  41. package/.output/server/_ssr/{insights-failures-rpc-wBwqn7dp.mjs → insights-failures-rpc-DiixSQGS.mjs} +6 -6
  42. package/.output/server/_ssr/{insights-recovery-rpc-CsBUTpp_.mjs → insights-recovery-rpc-Dwrr9-RU.mjs} +4 -4
  43. package/.output/server/_ssr/{insights-rpc-Hrh5Zu4H.mjs → insights-rpc-CAn1DWh7.mjs} +3 -3
  44. package/.output/server/_ssr/{insights-usage-rpc-cajvzqKr.mjs → insights-usage-rpc-Br3L5ePL.mjs} +4 -4
  45. package/.output/server/_ssr/{insights-usage-rpc-Db0MkccH.mjs → insights-usage-rpc-DxJS_zJ8.mjs} +3 -3
  46. package/.output/server/_ssr/{insights_.distribution-BNVdzzw7.mjs → insights_.distribution-Br8QlgS9.mjs} +5 -5
  47. package/.output/server/_ssr/{insights_.distribution-CoGJOk__.mjs → insights_.distribution-CKMSlA2b.mjs} +14 -14
  48. package/.output/server/_ssr/{insights_.distribution-BroTxnqI.mjs → insights_.distribution-DH8ZOjPG.mjs} +2 -2
  49. package/.output/server/_ssr/{installations-yKS6qrBU.mjs → installations-DE-IT_EJ.mjs} +2 -2
  50. package/.output/server/_ssr/{installations-B-rlh3H3.mjs → installations-DPSR7diL.mjs} +10 -10
  51. package/.output/server/_ssr/{installations-Ctln7l_j.mjs → installations-MOJuIeKm.mjs} +4 -4
  52. package/.output/server/_ssr/{release-adoption-rpc-B9JASpBW.mjs → release-adoption-rpc-CcmmAJnw.mjs} +6 -6
  53. package/.output/server/_ssr/{router-WIdc6l6m.mjs → router-D312Prhz.mjs} +14 -14
  54. package/.output/server/_ssr/{routes-BeRJhOw4.mjs → routes-DtqmWsZw.mjs} +14 -14
  55. package/.output/server/_ssr/{routes-BgxCs91x.mjs → routes-KFCEXs5M.mjs} +12 -12
  56. package/.output/server/_ssr/{runtime.server-DuRWzwyk.mjs → runtime.server-CjFHKMDC.mjs} +19 -47
  57. package/.output/server/_ssr/{select-DO3cT9E4.mjs → select-CXT2QQUy.mjs} +1 -1
  58. package/.output/server/_ssr/{server-CgpYEaPN.mjs → server-DERPzU-I.mjs} +18 -14
  59. package/.output/server/_ssr/{sidebar-DvyJtu1a.mjs → sidebar-ovKUZy4y.mjs} +2 -2
  60. package/.output/server/_ssr/ssr.mjs +1 -1
  61. package/.output/server/_ssr/{table-B98YMDH_.mjs → table-BMDoPxPa.mjs} +1 -1
  62. package/.output/server/{_tanstack-start-manifest_v-CGqFPLo9.mjs → _tanstack-start-manifest_v-CVNbCkls.mjs} +16 -16
  63. package/.output/server/index.mjs +117 -117
  64. package/package.json +7 -7
  65. package/src/components/features/insights/AppUsage.tsx +3 -7
  66. package/src/components/features/insights/EventDetails.tsx +2 -10
  67. package/src/components/features/insights/InsightsOverview.tsx +7 -25
  68. package/src/components/features/insights/ReleaseActivity.tsx +5 -8
  69. package/src/components/features/insights/ReportingDevicesSummary.tsx +3 -20
  70. package/src/components/features/insights/UpdateFailures.tsx +6 -74
  71. package/src/routes/index.tsx +2 -2
  72. package/src/routes/insights.tsx +0 -22
  73. package/src/routes/insights_.distribution.tsx +3 -5
  74. package/.output/public/assets/EventDetails-DZby1OQH.js +0 -1
  75. package/.output/public/assets/insights-B2MdOSO4.js +0 -42
  76. package/.output/public/assets/insights_.distribution-Qq4cisRR.js +0 -1
  77. package/.output/public/assets/routes-BDRS5RCD.js +0 -2
  78. package/.output/public/assets/styles-DfBp3xzM.css +0 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-10-06T01:54:20.750Z",
2
+ "date": "2026-10-06T16:17:10.386Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -0,0 +1 @@
1
+ import{$r as e,Fn as t,Hr as n,_ as r,ar as i,b as a,g as o,ni as s,v as c,x as l,y as u}from"./sidebar-RBvHzq8e.js";import{p as d}from"./preload-helper-DuV6lz46.js";import{a as f,i as p,r as m,t as h}from"./empty-DtangHOp.js";import{f as g,s as _}from"./field-bPoDrs6K.js";import{o as v}from"./useCompositeListItem-BxJspDxS.js";import{l as y,s as b,u as x}from"./input-group-_PD0i7wZ.js";import{n as S}from"./dist-BzWwzt98.js";var C=i(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),w=i(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),T=i(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),E=s(e(),1),D=n(),O={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Download complete. Waiting for the app to restart and apply it.`,variant:`default`,icon:x},UPDATE_APPLIED:{label:`Update applied`,description:`The app started using the downloaded update.`,variant:`success`,icon:g},RECOVERED:{label:`Recovered`,description:`Recovered from a crashed bundle.`,variant:`warning`,icon:y},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:w},UNCHANGED:{label:`No change`,description:`No download or apply was reported at this point.`,variant:`secondary`,icon:C}};function k(){let[e,t]=(0,E.useState)(`UTC`);return(0,E.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function A(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function j({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=A(e,t);return(0,D.jsxs)(`details`,{className:`group/time`,children:[(0,D.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,D.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,D.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,D.jsx)(v,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,D.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var M={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},N=e=>{if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=M[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function P({response:e}){let n=async()=>{try{await navigator.clipboard.writeText(e.body),S.success(`Response body copied`)}catch{S.error(`Could not copy the response body`)}};return(0,D.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,D.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,D.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,D.jsxs)(t,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void n(),children:[(0,D.jsx)(T,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,D.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,D.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,D.jsx)(h,{children:(0,D.jsxs)(p,{children:[(0,D.jsx)(f,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,D.jsx)(m,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function F({event:e}){let n=e.httpResponse,i=k(),s=n.status===304?`Not modified`:n.status>=500?`Server error`:n.status>=400?`Request error`:n.status>=300?`Redirect`:`Success`,d=n.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,D.jsxs)(o,{children:[(0,D.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${n.status}`,render:(0,D.jsx)(t,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,D.jsxs)(_,{variant:n.status>=400?`destructive`:`secondary`,children:[`HTTP `,n.status]}),(0,D.jsxs)(`span`,{children:[d,` response`]})]}),(0,D.jsxs)(r,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,D.jsxs)(u,{className:`border-b pr-14`,children:[(0,D.jsx)(a,{children:`HTTP response`}),(0,D.jsxs)(c,{children:[d,` · HTTP `,n.status,` · `,s,`. Most recent response available when this report was created.`]})]}),(0,D.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,D.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,D.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,D.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,n.path]}),n.receivedAtMs==null?null:(0,D.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,D.jsx)(j,{value:n.receivedAtMs,formatter:i})]})]}),(0,D.jsx)(P,{response:n}),f.length?(0,D.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,D.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,D.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,D.jsxs)(`div`,{className:`min-w-0`,children:[(0,D.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,D.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function I({event:e}){let t=O[e.type],n=t.icon,r=N(e);return(0,D.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,D.jsxs)(_,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,D.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,D.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,D.jsx)(F,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,D.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,D.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,D.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,D.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function L({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=n||r||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,D.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[e.fromBundleId&&a?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(b,{value:e.fromBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]}):null,i?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:a?`To`:`Current`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(b,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]}):null]})}export{F as a,P as i,j as n,k as o,I as r,T as s,L as t};