@hot-updater/console 0.30.12 → 0.31.1

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 (34) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +486 -0
  3. package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +1 -0
  4. package/.output/public/assets/clsx-CbprLf2V.js +1 -0
  5. package/.output/public/assets/dist-B5egZOkC.js +9 -0
  6. package/.output/public/assets/main-DrVuFR7r.js +10 -0
  7. package/.output/public/assets/preload-helper-C5ST2IKa.js +1 -0
  8. package/.output/public/assets/routes-C_bgs7kg.js +54 -0
  9. package/.output/public/assets/styles-DZ0tCVA1.css +2 -0
  10. package/.output/server/{__tanstack-start-server-fn-resolver-rXMsqALt.mjs → __tanstack-start-server-fn-resolver-5wPQ8bZ3.mjs} +19 -11
  11. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  12. package/.output/server/_libs/@tanstack/react-form+[...].mjs +5 -5
  13. package/.output/server/_libs/lucide-react.mjs +8 -1
  14. package/.output/server/_libs/unctx.mjs +1 -1
  15. package/.output/server/_ssr/{api-rpc-DYKuUgOh.mjs → api-rpc-BhBKhZqY.mjs} +61 -18
  16. package/.output/server/_ssr/{config.server-8YQWTTc0.mjs → config.server-xu3W-WAK.mjs} +3 -1
  17. package/.output/server/_ssr/deleteBundle-D4jF5HeY.mjs +96 -0
  18. package/.output/server/_ssr/dist-CRiLZLfa.mjs +120 -0
  19. package/.output/server/_ssr/getBundleChildren-DFqZ6XMp.mjs +58 -0
  20. package/.output/server/_ssr/{router-D-WWsYjv.mjs → router-SkApCyud.mjs} +57 -15
  21. package/.output/server/_ssr/{routes-DyUhibF4.mjs → routes-BSs-dv4D.mjs} +1120 -472
  22. package/.output/server/_ssr/{sidebar-DXng0IOP.mjs → sidebar-CgbtXkE2.mjs} +65 -85
  23. package/.output/server/_ssr/ssr.mjs +4 -4
  24. package/.output/server/_ssr/start-D0X4LIsd.mjs +4 -0
  25. package/.output/server/_ssr/storageProfile-wICk5nZZ.mjs +9 -0
  26. package/.output/server/{_tanstack-start-manifest_v-xpdCj2Ct.mjs → _tanstack-start-manifest_v-D2MqgD3d.mjs} +9 -4
  27. package/.output/server/index.mjs +70 -42
  28. package/package.json +10 -6
  29. package/.output/public/assets/dist-BKho179_.js +0 -53
  30. package/.output/public/assets/main-5MdOCmsM.js +0 -10
  31. package/.output/public/assets/routes-BmbL4goz.js +0 -10
  32. package/.output/public/assets/styles-M2W42JQb.css +0 -2
  33. package/.output/server/_ssr/deleteBundle-BiJvjt0k.mjs +0 -22
  34. package/.output/server/_ssr/start-DsRb6TkZ.mjs +0 -4
@@ -1,12 +1,12 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { A as Slot, P as require_jsx_runtime, d as Description, f as Overlay, h as Title, l as Close, m as Root, p as Portal, u as Content } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
2
+ import { A as Slot, P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
3
3
  import { u as require_react } from "../_libs/@floating-ui/react-dom+[...].mjs";
4
- import { a as PanelLeft, t as X } from "../_libs/lucide-react.mjs";
4
+ import { a as PanelLeft } from "../_libs/lucide-react.mjs";
5
5
  import { n as clsx, t as cva } from "../_libs/class-variance-authority+clsx.mjs";
6
- import { t as Root$1 } from "../_libs/radix-ui__react-separator.mjs";
7
- import { a as Root3, i as Provider, n as Content2, o as Trigger, r as Portal$1, t as Arrow2 } from "../_libs/radix-ui__react-tooltip.mjs";
6
+ import { t as Root } from "../_libs/radix-ui__react-separator.mjs";
7
+ import { a as Root3, i as Provider, n as Content2, o as Trigger, r as Portal, t as Arrow2 } from "../_libs/radix-ui__react-tooltip.mjs";
8
8
  import { t as twMerge } from "../_libs/tailwind-merge.mjs";
9
- //#region node_modules/.nitro/vite/services/ssr/assets/sidebar-DXng0IOP.js
9
+ //#region node_modules/.nitro/vite/services/ssr/assets/sidebar-CgbtXkE2.js
10
10
  var import_jsx_runtime = require_jsx_runtime();
11
11
  var import_react = /* @__PURE__ */ __toESM(require_react());
12
12
  function cn(...inputs) {
@@ -60,7 +60,7 @@ function Input({ className, type, ...props }) {
60
60
  });
61
61
  }
62
62
  function Separator$1({ className, orientation = "horizontal", decorative = true, ...props }) {
63
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root$1, {
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
64
64
  "data-slot": "separator",
65
65
  decorative,
66
66
  orientation,
@@ -68,67 +68,6 @@ function Separator$1({ className, orientation = "horizontal", decorative = true,
68
68
  ...props
69
69
  });
70
70
  }
71
- function Sheet({ ...props }) {
72
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
73
- "data-slot": "sheet",
74
- ...props
75
- });
76
- }
77
- function SheetPortal({ ...props }) {
78
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, {
79
- "data-slot": "sheet-portal",
80
- ...props
81
- });
82
- }
83
- function SheetOverlay({ className, ...props }) {
84
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay, {
85
- "data-slot": "sheet-overlay",
86
- className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
87
- ...props
88
- });
89
- }
90
- function SheetContent({ className, children, side = "right", showCloseButton = true, ...props }) {
91
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPortal, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetOverlay, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, {
92
- "data-slot": "sheet-content",
93
- "data-side": side,
94
- className: cn("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
95
- ...props,
96
- children: [children, showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Close, {
97
- "data-slot": "sheet-close",
98
- asChild: true,
99
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
100
- variant: "ghost",
101
- className: "absolute top-4 right-4",
102
- size: "icon-sm",
103
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
104
- className: "sr-only",
105
- children: "Close"
106
- })]
107
- })
108
- })]
109
- })] });
110
- }
111
- function SheetHeader({ className, ...props }) {
112
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
113
- "data-slot": "sheet-header",
114
- className: cn("gap-1.5 p-6 flex flex-col", className),
115
- ...props
116
- });
117
- }
118
- function SheetTitle({ className, ...props }) {
119
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title, {
120
- "data-slot": "sheet-title",
121
- className: cn("text-foreground text-sm font-medium", className),
122
- ...props
123
- });
124
- }
125
- function SheetDescription({ className, ...props }) {
126
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
127
- "data-slot": "sheet-description",
128
- className: cn("text-muted-foreground text-xs/relaxed", className),
129
- ...props
130
- });
131
- }
132
71
  function Skeleton({ className, ...props }) {
133
72
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
134
73
  "data-slot": "skeleton",
@@ -156,7 +95,7 @@ function TooltipTrigger({ ...props }) {
156
95
  });
157
96
  }
158
97
  function TooltipContent({ className, sideOffset = 0, children, ...props }) {
159
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal$1, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content2, {
98
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content2, {
160
99
  "data-slot": "tooltip-content",
161
100
  sideOffset,
162
101
  className: cn("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin)", className),
@@ -168,6 +107,11 @@ var MOBILE_BREAKPOINT = 768;
168
107
  function useIsMobile() {
169
108
  const [isMobile, setIsMobile] = import_react.useState(void 0);
170
109
  import_react.useEffect(() => {
110
+ if (typeof window === "undefined") return;
111
+ if (typeof window.matchMedia !== "function") {
112
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
113
+ return;
114
+ }
171
115
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
172
116
  const onChange = () => {
173
117
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -218,6 +162,36 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
218
162
  window.addEventListener("keydown", handleKeyDown);
219
163
  return () => window.removeEventListener("keydown", handleKeyDown);
220
164
  }, [toggleSidebar]);
165
+ import_react.useEffect(() => {
166
+ if (typeof window === "undefined" || !isMobile) return;
167
+ const root = window.document.documentElement;
168
+ const body = window.document.body;
169
+ const themeColorMeta = window.document.querySelector("meta[name=\"theme-color\"]");
170
+ const sidebarColor = getComputedStyle(root).getPropertyValue("--sidebar");
171
+ const previousBodyBackground = body.style.backgroundColor;
172
+ const previousThemeColor = themeColorMeta?.getAttribute("content");
173
+ if (openMobile) {
174
+ body.style.backgroundColor = sidebarColor;
175
+ themeColorMeta?.setAttribute("content", sidebarColor);
176
+ }
177
+ const refreshThemeChrome = () => {
178
+ window.dispatchEvent(new Event("hot-updater:refresh-theme-chrome"));
179
+ };
180
+ const timeoutId = window.setTimeout(() => {
181
+ if (openMobile) {
182
+ body.style.backgroundColor = sidebarColor;
183
+ themeColorMeta?.setAttribute("content", sidebarColor);
184
+ return;
185
+ }
186
+ refreshThemeChrome();
187
+ }, 180);
188
+ return () => {
189
+ window.clearTimeout(timeoutId);
190
+ body.style.backgroundColor = previousBodyBackground;
191
+ if (previousThemeColor) themeColorMeta?.setAttribute("content", previousThemeColor);
192
+ if (!openMobile) refreshThemeChrome();
193
+ };
194
+ }, [isMobile, openMobile]);
221
195
  const state = open ? "expanded" : "collapsed";
222
196
  const contextValue = import_react.useMemo(() => ({
223
197
  state,
@@ -259,26 +233,32 @@ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offExample
259
233
  ...props,
260
234
  children
261
235
  });
262
- if (isMobile) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sheet, {
263
- open: openMobile,
264
- onOpenChange: setOpenMobile,
265
- ...props,
266
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetContent, {
236
+ if (isMobile) {
237
+ if (!openMobile) return null;
238
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
267
239
  "data-sidebar": "sidebar",
268
240
  "data-slot": "sidebar",
269
241
  "data-mobile": "true",
270
- className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
271
- style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
272
- side,
273
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetHeader, {
274
- className: "sr-only",
275
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetTitle, { children: "Sidebar" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })]
276
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
277
- className: "flex h-full w-full flex-col",
278
- children
242
+ className: "fixed inset-0 z-50 md:hidden",
243
+ ...props,
244
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
245
+ type: "button",
246
+ "aria-label": "Close sidebar",
247
+ className: "absolute inset-0 bg-sidebar/55 supports-backdrop-filter:backdrop-blur-sm",
248
+ onClick: () => setOpenMobile(false)
249
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
250
+ role: "dialog",
251
+ "aria-modal": "true",
252
+ "aria-label": "Sidebar",
253
+ className: cn("bg-sidebar text-sidebar-foreground absolute inset-y-0 z-10 flex w-(--sidebar-width) flex-col shadow-lg", side === "left" ? "left-0" : "right-0"),
254
+ style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
255
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute inset-x-0 top-full h-32 bg-sidebar" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
256
+ className: "flex h-full w-full flex-col overflow-y-auto bg-sidebar",
257
+ children
258
+ })]
279
259
  })]
280
- })
281
- });
260
+ });
261
+ }
282
262
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
283
263
  className: "group peer text-sidebar-foreground hidden md:block",
284
264
  "data-state": state,
@@ -436,4 +416,4 @@ function SidebarMenuButton({ asChild = false, isActive = false, variant = "defau
436
416
  })] });
437
417
  }
438
418
  //#endregion
439
- export { Tooltip$1 as C, cn as D, TooltipTrigger as E, Skeleton as S, TooltipProvider as T, SidebarMenu as _, SheetContent as a, SidebarProvider as b, SheetTitle as c, SidebarFooter as d, SidebarGroup as f, SidebarInset as g, SidebarHeader as h, Sheet as i, Sidebar as l, SidebarGroupLabel as m, Input as n, SheetDescription as o, SidebarGroupContent as p, Separator$1 as r, SheetHeader as s, Button as t, SidebarContent as u, SidebarMenuButton as v, TooltipContent as w, SidebarTrigger as x, SidebarMenuItem as y };
419
+ export { useIsMobile as C, cn as S, Skeleton as _, SidebarContent as a, TooltipProvider as b, SidebarGroupContent as c, SidebarInset as d, SidebarMenu as f, SidebarTrigger as g, SidebarProvider as h, Sidebar as i, SidebarGroupLabel as l, SidebarMenuItem as m, Input as n, SidebarFooter as o, SidebarMenuButton as p, Separator$1 as r, SidebarGroup as s, Button as t, SidebarHeader as u, Tooltip$1 as v, TooltipTrigger as x, TooltipContent as y };
@@ -1,7 +1,7 @@
1
1
  import { a as X_TSS_RAW_RESPONSE, d as isRedirect, f as isResolvedRedirect, h as safeObjectMerge, i as TSS_SERVER_FUNCTION, l as flattenMiddlewares, m as runWithStartContext, n as TSS_CONTENT_TYPE_FRAMED_VERSIONED, o as X_TSS_SERIALIZED, p as mergeHeaders, r as TSS_FORMDATA_CONTEXT, s as createNullProtoObject, t as FrameType, u as getStartOptions } from "./createServerFn-CdeRXnVy.mjs";
2
2
  import { P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
3
3
  import { i as RouterProvider, t as renderRouterToStream } from "../_libs/@tanstack/react-router+[...].mjs";
4
- import { t as getServerFnById } from "../__tanstack-start-server-fn-resolver-rXMsqALt.mjs";
4
+ import { t as getServerFnById } from "../__tanstack-start-server-fn-resolver-5wPQ8bZ3.mjs";
5
5
  import { t as defineHandlerCallback } from "../_libs/tanstack__router-core.mjs";
6
6
  import { PassThrough, Readable } from "node:stream";
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -3955,7 +3955,7 @@ function getResponse() {
3955
3955
  return getH3Event().res;
3956
3956
  }
3957
3957
  async function getStartManifest(matchedRoutes) {
3958
- const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-xpdCj2Ct.mjs");
3958
+ const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-D2MqgD3d.mjs");
3959
3959
  const startManifest = tsrStartManifest();
3960
3960
  const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes["__root__"] || {};
3961
3961
  rootRoute.assets = rootRoute.assets || [];
@@ -4375,9 +4375,9 @@ var entriesPromise;
4375
4375
  var baseManifestPromise;
4376
4376
  var cachedFinalManifestPromise;
4377
4377
  async function loadEntries() {
4378
- const routerEntry = await import("./router-D-WWsYjv.mjs");
4378
+ const routerEntry = await import("./router-SkApCyud.mjs");
4379
4379
  return {
4380
- startEntry: await import("./start-DsRb6TkZ.mjs"),
4380
+ startEntry: await import("./start-D0X4LIsd.mjs"),
4381
4381
  routerEntry
4382
4382
  };
4383
4383
  }
@@ -0,0 +1,4 @@
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/start-D0X4LIsd.js
2
+ var startInstance = void 0;
3
+ //#endregion
4
+ export { startInstance };
@@ -0,0 +1,9 @@
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/storageProfile-wICk5nZZ.js
2
+ var createMissingProfileError = (plugin, profile) => /* @__PURE__ */ new Error(`${plugin.name} does not implement the ${profile} storage profile for protocol "${plugin.supportedProtocol}".`);
3
+ var isNodeStoragePlugin = (plugin) => Boolean(plugin.profiles.node);
4
+ var isRuntimeStoragePlugin = (plugin) => Boolean(plugin.profiles.runtime);
5
+ function assertNodeStoragePlugin(plugin) {
6
+ if (!isNodeStoragePlugin(plugin)) throw createMissingProfileError(plugin, "node");
7
+ }
8
+ //#endregion
9
+ export { isRuntimeStoragePlugin as n, assertNodeStoragePlugin as t };
@@ -1,17 +1,22 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-xpdCj2Ct.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-D2MqgD3d.js
2
2
  var tsrStartManifest = () => ({
3
3
  "routes": {
4
4
  "__root__": {
5
5
  "filePath": "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
6
6
  "children": ["/"],
7
- "preloads": ["/assets/main-5MdOCmsM.js", "/assets/dist-BKho179_.js"]
7
+ "preloads": [
8
+ "/assets/main-DrVuFR7r.js",
9
+ "/assets/dist-B5egZOkC.js",
10
+ "/assets/preload-helper-C5ST2IKa.js",
11
+ "/assets/clsx-CbprLf2V.js"
12
+ ]
8
13
  },
9
14
  "/": {
10
15
  "filePath": "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
11
- "preloads": ["/assets/routes-BmbL4goz.js"]
16
+ "preloads": ["/assets/routes-C_bgs7kg.js"]
12
17
  }
13
18
  },
14
- "clientEntry": "/assets/main-5MdOCmsM.js"
19
+ "clientEntry": "/assets/main-DrVuFR7r.js"
15
20
  });
16
21
  //#endregion
17
22
  export { tsrStartManifest };
@@ -23,7 +23,7 @@ getContext("nitro-app", {
23
23
  AsyncLocalStorage: void 0
24
24
  });
25
25
  //#endregion
26
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/runtime/internal/error/prod.mjs
26
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/runtime/internal/error/prod.mjs
27
27
  var errorHandler = (error, event) => {
28
28
  const res = defaultHandler(error, event);
29
29
  return new NodeResponse(typeof res.body === "string" ? res.body : JSON.stringify(res.body, null, 2), res);
@@ -70,7 +70,7 @@ async function error_handler_default(error, event) {
70
70
  }
71
71
  }
72
72
  //#endregion
73
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/runtime/internal/route-rules.mjs
73
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/runtime/internal/route-rules.mjs
74
74
  var headers = ((m) => function headersRouteRule(event) {
75
75
  for (const [key, value] of Object.entries(m.options || {})) event.res.headers.set(key, value);
76
76
  });
@@ -80,128 +80,156 @@ var public_assets_data_default = {
80
80
  "/apple-touch-icon.png": {
81
81
  "type": "image/png",
82
82
  "etag": "\"329e-uyxOmLQHjRnOIdaE3FE7O/uZ9l4\"",
83
- "mtime": "2026-05-15T15:32:06.877Z",
83
+ "mtime": "2026-05-16T10:12:46.351Z",
84
84
  "size": 12958,
85
85
  "path": "../public/apple-touch-icon.png"
86
86
  },
87
87
  "/favicon-16x16.png": {
88
88
  "type": "image/png",
89
89
  "etag": "\"240-h6ktCVLfjIcsDJuLwUXP4nCJxlI\"",
90
- "mtime": "2026-05-15T15:32:06.877Z",
90
+ "mtime": "2026-05-16T10:12:46.351Z",
91
91
  "size": 576,
92
92
  "path": "../public/favicon-16x16.png"
93
93
  },
94
94
  "/favicon-32x32.png": {
95
95
  "type": "image/png",
96
96
  "etag": "\"4f0-0qQrV3Eq3PzIigrp+8htf8vFCYA\"",
97
- "mtime": "2026-05-15T15:32:06.877Z",
97
+ "mtime": "2026-05-16T10:12:46.351Z",
98
98
  "size": 1264,
99
99
  "path": "../public/favicon-32x32.png"
100
100
  },
101
101
  "/favicon.ico": {
102
102
  "type": "image/vnd.microsoft.icon",
103
103
  "etag": "\"3c2e-eMwmbJNNg6G+Uu+rqWtuvtI2Om4\"",
104
- "mtime": "2026-05-15T15:32:06.877Z",
104
+ "mtime": "2026-05-16T10:12:46.351Z",
105
105
  "size": 15406,
106
106
  "path": "../public/favicon.ico"
107
107
  },
108
108
  "/logo.svg": {
109
109
  "type": "image/svg+xml",
110
110
  "etag": "\"478-zKvD9Jp5dDLCBmng0McewYMBxfs\"",
111
- "mtime": "2026-05-15T15:32:06.877Z",
111
+ "mtime": "2026-05-16T10:12:46.351Z",
112
112
  "size": 1144,
113
113
  "path": "../public/logo.svg"
114
114
  },
115
115
  "/manifest.json": {
116
116
  "type": "application/json",
117
117
  "etag": "\"258-CQdbkGDhbZhU+yrcSXanXKWFEpw\"",
118
- "mtime": "2026-05-15T15:32:06.877Z",
118
+ "mtime": "2026-05-16T10:12:46.351Z",
119
119
  "size": 600,
120
120
  "path": "../public/manifest.json"
121
121
  },
122
122
  "/robots.txt": {
123
123
  "type": "text/plain; charset=utf-8",
124
124
  "etag": "\"43-BEzmj4PuhUNHX+oW9uOnPSihxtU\"",
125
- "mtime": "2026-05-15T15:32:06.877Z",
125
+ "mtime": "2026-05-16T10:12:46.351Z",
126
126
  "size": 67,
127
127
  "path": "../public/robots.txt"
128
128
  },
129
- "/assets/dist-BKho179_.js": {
129
+ "/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js": {
130
130
  "type": "text/javascript; charset=utf-8",
131
- "etag": "\"35235-u/sDKSWfxLQCuHBIXR8IYoldgSQ\"",
132
- "mtime": "2026-05-15T15:32:06.047Z",
133
- "size": 217653,
134
- "path": "../public/assets/dist-BKho179_.js"
131
+ "etag": "\"e0f6-a8McVbKGoUMHUHcinm7UQV1ZHz0\"",
132
+ "mtime": "2026-05-16T10:12:45.633Z",
133
+ "size": 57590,
134
+ "path": "../public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js"
135
+ },
136
+ "/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js": {
137
+ "type": "text/javascript; charset=utf-8",
138
+ "etag": "\"4b3d-BtMjRPf5ZlxlX5hvQqO7pJq0uNg\"",
139
+ "mtime": "2026-05-16T10:12:45.633Z",
140
+ "size": 19261,
141
+ "path": "../public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js"
142
+ },
143
+ "/assets/clsx-CbprLf2V.js": {
144
+ "type": "text/javascript; charset=utf-8",
145
+ "etag": "\"eb9-vbCEoMOvBnjtqk8JVa6gMmktwiE\"",
146
+ "mtime": "2026-05-16T10:12:45.634Z",
147
+ "size": 3769,
148
+ "path": "../public/assets/clsx-CbprLf2V.js"
135
149
  },
136
150
  "/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2": {
137
151
  "type": "font/woff2",
138
152
  "etag": "\"6568-cF1iUGbboMFZ8TfnP5HiMgl9II0\"",
139
- "mtime": "2026-05-15T15:32:06.047Z",
153
+ "mtime": "2026-05-16T10:12:45.634Z",
140
154
  "size": 25960,
141
155
  "path": "../public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2"
142
156
  },
143
157
  "/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2": {
144
158
  "type": "font/woff2",
145
159
  "etag": "\"493c-n3Oy9D6jvzfMjpClqox+Zo7ERQQ\"",
146
- "mtime": "2026-05-15T15:32:06.047Z",
160
+ "mtime": "2026-05-16T10:12:45.634Z",
147
161
  "size": 18748,
148
162
  "path": "../public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2"
149
163
  },
150
164
  "/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
151
165
  "type": "font/woff2",
152
166
  "etag": "\"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8\"",
153
- "mtime": "2026-05-15T15:32:06.047Z",
167
+ "mtime": "2026-05-16T10:12:45.634Z",
154
168
  "size": 11232,
155
169
  "path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
156
170
  },
157
171
  "/assets/inter-greek-wght-normal-CkhJZR-_.woff2": {
158
172
  "type": "font/woff2",
159
173
  "etag": "\"4a34-xor/hj4YNqI52zFecXnUbzQ4Xs4\"",
160
- "mtime": "2026-05-15T15:32:06.047Z",
174
+ "mtime": "2026-05-16T10:12:45.634Z",
161
175
  "size": 18996,
162
176
  "path": "../public/assets/inter-greek-wght-normal-CkhJZR-_.woff2"
163
177
  },
164
178
  "/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": {
165
179
  "type": "font/woff2",
166
180
  "etag": "\"14c4c-zz61D7IQFMB9QxHvTAOk/Vh4ibQ\"",
167
- "mtime": "2026-05-15T15:32:06.047Z",
181
+ "mtime": "2026-05-16T10:12:45.634Z",
168
182
  "size": 85068,
169
183
  "path": "../public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2"
170
184
  },
171
185
  "/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
172
186
  "type": "font/woff2",
173
187
  "etag": "\"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg\"",
174
- "mtime": "2026-05-15T15:32:06.047Z",
188
+ "mtime": "2026-05-16T10:12:45.634Z",
175
189
  "size": 48256,
176
190
  "path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
177
191
  },
178
192
  "/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
179
193
  "type": "font/woff2",
180
194
  "etag": "\"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M\"",
181
- "mtime": "2026-05-15T15:32:06.047Z",
195
+ "mtime": "2026-05-16T10:12:45.634Z",
182
196
  "size": 10252,
183
197
  "path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
184
198
  },
185
- "/assets/main-5MdOCmsM.js": {
199
+ "/assets/main-DrVuFR7r.js": {
186
200
  "type": "text/javascript; charset=utf-8",
187
- "etag": "\"439bb-FgeNTu4/ahv5yeqyOp0U8vweFm4\"",
188
- "mtime": "2026-05-15T15:32:06.046Z",
189
- "size": 276923,
190
- "path": "../public/assets/main-5MdOCmsM.js"
201
+ "etag": "\"40502-mmslSq5e2ha3DL/jiAzfIKnkScQ\"",
202
+ "mtime": "2026-05-16T10:12:45.633Z",
203
+ "size": 263426,
204
+ "path": "../public/assets/main-DrVuFR7r.js"
191
205
  },
192
- "/assets/routes-BmbL4goz.js": {
206
+ "/assets/preload-helper-C5ST2IKa.js": {
193
207
  "type": "text/javascript; charset=utf-8",
194
- "etag": "\"34b05-9Vhnbv8DForMLWH+sVIYv/OBY6Q\"",
195
- "mtime": "2026-05-15T15:32:06.047Z",
196
- "size": 215813,
197
- "path": "../public/assets/routes-BmbL4goz.js"
208
+ "etag": "\"39a6-So6a7ilxqf2crO/bXrqlnWIxahg\"",
209
+ "mtime": "2026-05-16T10:12:45.634Z",
210
+ "size": 14758,
211
+ "path": "../public/assets/preload-helper-C5ST2IKa.js"
198
212
  },
199
- "/assets/styles-M2W42JQb.css": {
213
+ "/assets/routes-C_bgs7kg.js": {
214
+ "type": "text/javascript; charset=utf-8",
215
+ "etag": "\"3e867-50WbGqGae7ON7jHvDxnfzA9nVWw\"",
216
+ "mtime": "2026-05-16T10:12:45.634Z",
217
+ "size": 256103,
218
+ "path": "../public/assets/routes-C_bgs7kg.js"
219
+ },
220
+ "/assets/styles-DZ0tCVA1.css": {
200
221
  "type": "text/css; charset=utf-8",
201
- "etag": "\"16c09-0PgJUH0UJ7vffHYoje/awxCquoI\"",
202
- "mtime": "2026-05-15T15:32:06.047Z",
203
- "size": 93193,
204
- "path": "../public/assets/styles-M2W42JQb.css"
222
+ "etag": "\"187ab-XluZK2IoG5C8NUCKbxnhjLrEdF8\"",
223
+ "mtime": "2026-05-16T10:12:45.634Z",
224
+ "size": 100267,
225
+ "path": "../public/assets/styles-DZ0tCVA1.css"
226
+ },
227
+ "/assets/dist-B5egZOkC.js": {
228
+ "type": "text/javascript; charset=utf-8",
229
+ "etag": "\"2ea60-zq3243Va+SBgWnS/KzvqKTWL8jI\"",
230
+ "mtime": "2026-05-16T10:12:45.634Z",
231
+ "size": 191072,
232
+ "path": "../public/assets/dist-B5egZOkC.js"
205
233
  }
206
234
  };
207
235
  //#endregion
@@ -222,7 +250,7 @@ function getAsset(id) {
222
250
  return public_assets_data_default[id];
223
251
  }
224
252
  //#endregion
225
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/runtime/internal/static.mjs
253
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/runtime/internal/static.mjs
226
254
  var METHODS = new Set(["HEAD", "GET"]);
227
255
  var EncodingMap = {
228
256
  gzip: ".gz",
@@ -291,11 +319,11 @@ var findRouteRules = /* @__PURE__ */ (() => {
291
319
  return r;
292
320
  };
293
321
  })();
294
- var _lazy_HjP54o = defineLazyEventHandler(() => import("./_chunks/ssr-renderer.mjs"));
322
+ var _lazy_yw7lrd = defineLazyEventHandler(() => import("./_chunks/ssr-renderer.mjs"));
295
323
  var findRoute = /* @__PURE__ */ (() => {
296
324
  const data = {
297
325
  route: "/**",
298
- handler: _lazy_HjP54o
326
+ handler: _lazy_yw7lrd
299
327
  };
300
328
  return ((_m, p) => {
301
329
  return {
@@ -306,7 +334,7 @@ var findRoute = /* @__PURE__ */ (() => {
306
334
  })();
307
335
  var globalMiddleware = [toEventHandler(static_default)].filter(Boolean);
308
336
  //#endregion
309
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/runtime/internal/app.mjs
337
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/runtime/internal/app.mjs
310
338
  var APP_ID = "default";
311
339
  function useNitroApp() {
312
340
  let instance = useNitroApp._instance;
@@ -399,7 +427,7 @@ function getRouteRules(method, pathname) {
399
427
  };
400
428
  }
401
429
  //#endregion
402
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/runtime/internal/error/hooks.mjs
430
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/runtime/internal/error/hooks.mjs
403
431
  function _captureError(error, type) {
404
432
  console.error(`[${type}]`, error);
405
433
  useNitroApp().captureError?.(error, { tags: [type] });
@@ -412,7 +440,7 @@ function trapUnhandledErrors() {
412
440
  //#region #nitro/virtual/tracing
413
441
  var tracingSrvxPlugins = [];
414
442
  //#endregion
415
- //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_5b73c6b95f7d9a006cb3b526e6a5b16f/node_modules/nitro/dist/presets/node/runtime/node-server.mjs
443
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fa05c65a92a8bc85132303597718488c/node_modules/nitro/dist/presets/node/runtime/node-server.mjs
416
444
  var _parsedPort = Number.parseInt(process.env.NITRO_PORT ?? process.env.PORT ?? "");
417
445
  var port = Number.isNaN(_parsedPort) ? 3e3 : _parsedPort;
418
446
  var host = process.env.NITRO_HOST || process.env.HOST;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
3
  "type": "module",
4
- "version": "0.30.12",
4
+ "version": "0.31.1",
5
5
  "files": [
6
6
  ".output",
7
7
  "package.json"
@@ -10,7 +10,11 @@
10
10
  "./package.json": "./package.json"
11
11
  },
12
12
  "peerDependencies": {
13
- "@hot-updater/cli-tools": "0.30.12"
13
+ "@hot-updater/cli-tools": "*"
14
+ },
15
+ "dependencies": {
16
+ "@hot-updater/bsdiff": "0.31.1",
17
+ "@hot-updater/server": "0.31.1"
14
18
  },
15
19
  "devDependencies": {
16
20
  "@base-ui/react": "^1.3.0",
@@ -58,10 +62,10 @@
58
62
  "vite-tsconfig-paths": "^6.1.1",
59
63
  "vitest": "4.1.4",
60
64
  "web-vitals": "^5.1.0",
61
- "@hot-updater/core": "0.30.12",
62
- "@hot-updater/cli-tools": "0.30.12",
63
- "@hot-updater/mock": "0.30.12",
64
- "@hot-updater/plugin-core": "0.30.12"
65
+ "@hot-updater/cli-tools": "0.31.1",
66
+ "@hot-updater/core": "0.31.1",
67
+ "@hot-updater/mock": "0.31.1",
68
+ "@hot-updater/plugin-core": "0.31.1"
65
69
  },
66
70
  "description": "React Native OTA solution for self-hosted",
67
71
  "license": "MIT",