@hot-updater/console 0.33.0 → 0.33.2
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/.output/nitro.json +3 -3
- package/.output/public/assets/dist-DJX53faP.js +3 -0
- package/.output/public/assets/index-CCUspZZV.js +10 -0
- package/.output/public/assets/routes-D0t6y5Fr.js +54 -0
- package/.output/public/assets/styles-C0q26dS-.css +2 -0
- package/.output/server/{__tanstack-start-server-fn-resolver-ySzPUDlM.mjs → __23tanstack-start-server-fn-resolver-B12pVvhf.mjs} +32 -39
- package/.output/server/_chunks/ssr-renderer.mjs +14 -3
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +7 -7
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +142 -93
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +32 -11
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +130 -95
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +1138 -306
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +156 -24
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +2658 -1395
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +1 -1
- package/.output/server/_libs/dayjs.mjs +6 -6
- package/.output/server/_libs/h3+rou3+srvx.mjs +30 -42
- package/.output/server/_libs/lucide-react.mjs +8 -8
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/radix-ui__number.mjs +1 -1
- package/.output/server/_libs/radix-ui__react-arrow.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-collection.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-direction.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-label.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-separator.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-slider.mjs +103 -44
- package/.output/server/_libs/radix-ui__react-switch.mjs +88 -49
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -4
- package/.output/server/_libs/semver.mjs +97 -52
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tailwind-merge.mjs +51 -3
- package/.output/server/_libs/tanstack__history.mjs +28 -8
- package/.output/server/_libs/tanstack__query-core.mjs +200 -174
- package/.output/server/_libs/tanstack__react-query.mjs +14 -13
- package/.output/server/_ssr/{api-rpc-Bwustks9.mjs → api-rpc-ORImfBFu.mjs} +18 -18
- package/.output/server/_ssr/{config.server-xu3W-WAK.mjs → config.server-BSS366KT.mjs} +2 -2
- package/.output/server/_ssr/{createServerFn-CdeRXnVy.mjs → createServerFn-DzU0k62V.mjs} +129 -90
- package/.output/server/_ssr/{deleteBundle-CXxwjwEZ.mjs → deleteBundle-CuujBAH8.mjs} +2 -2
- package/.output/server/_ssr/{dist-CRiLZLfa.mjs → dist-KboydRVk.mjs} +1 -1
- package/.output/server/_ssr/empty-plugin-adapters-B4HCzgmM.mjs +5 -0
- package/.output/server/_ssr/{getBundleChildren-DFqZ6XMp.mjs → getBundleChildren-CVtSiH5t.mjs} +2 -2
- package/.output/server/_ssr/{router-1tw3jh6y.mjs → router-DmdnzGpe.mjs} +7 -8
- package/.output/server/_ssr/{routes-D5CmWxI7.mjs → routes-Be7gDfJS.mjs} +36 -39
- package/.output/server/_ssr/{sidebar-CgbtXkE2.mjs → sidebar-Cv_H0_Jv.mjs} +5 -5
- package/.output/server/_ssr/ssr.mjs +4222 -3153
- package/.output/server/_ssr/start-D4SBEASt.mjs +4 -0
- package/.output/server/_ssr/{storageProfile-wICk5nZZ.mjs → storageProfile-FVkjPoGb.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-BroBMdSR.mjs +20 -0
- package/.output/server/index.mjs +128 -172
- package/package.json +12 -9
- package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +0 -486
- package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +0 -1
- package/.output/public/assets/clsx-CbprLf2V.js +0 -1
- package/.output/public/assets/dist-BzU1qUss.js +0 -9
- package/.output/public/assets/main-CmNeAg9B.js +0 -10
- package/.output/public/assets/preload-helper-C5ST2IKa.js +0 -1
- package/.output/public/assets/routes-wJZuGodi.js +0 -54
- package/.output/public/assets/styles-DEbMLh52.css +0 -2
- package/.output/server/_libs/hookable.mjs +0 -41
- package/.output/server/_libs/tanstack__router-core.mjs +0 -6
- package/.output/server/_libs/unctx.mjs +0 -82
- package/.output/server/_ssr/start-CoRKunFF.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-AftZl081.mjs +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@tanstack+history@1.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@tanstack+history@1.162.0/node_modules/@tanstack/history/dist/esm/index.js
|
|
2
2
|
var stateIndexKey = "__TSR_index";
|
|
3
3
|
var popStateEvent = "popstate";
|
|
4
4
|
var beforeUnloadEvent = "beforeunload";
|
|
@@ -118,8 +118,8 @@ function createHistory(opts) {
|
|
|
118
118
|
const blockers = opts.getBlockers?.() ?? [];
|
|
119
119
|
opts.setBlockers([...blockers, blocker]);
|
|
120
120
|
return () => {
|
|
121
|
-
const
|
|
122
|
-
opts.setBlockers?.(
|
|
121
|
+
const blockers = opts.getBlockers?.() ?? [];
|
|
122
|
+
opts.setBlockers?.(blockers.filter((b) => b !== blocker));
|
|
123
123
|
};
|
|
124
124
|
},
|
|
125
125
|
flush: () => opts.flush?.(),
|
|
@@ -137,6 +137,22 @@ function assignKeyAndIndex(index, state) {
|
|
|
137
137
|
[stateIndexKey]: index
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Creates a history object that can be used to interact with the browser's
|
|
142
|
+
* navigation. This is a lightweight API wrapping the browser's native methods.
|
|
143
|
+
* It is designed to work with TanStack Router, but could be used as a standalone API as well.
|
|
144
|
+
* IMPORTANT: This API implements history throttling via a microtask to prevent
|
|
145
|
+
* excessive calls to the history API. In some browsers, calling history.pushState or
|
|
146
|
+
* history.replaceState in quick succession can cause the browser to ignore subsequent
|
|
147
|
+
* calls. This API smooths out those differences and ensures that your application
|
|
148
|
+
* state will *eventually* match the browser state. In most cases, this is not a problem,
|
|
149
|
+
* but if you need to ensure that the browser state is up to date, you can use the
|
|
150
|
+
* `history.flush` method to immediately flush all pending state changes to the browser URL.
|
|
151
|
+
* @param opts
|
|
152
|
+
* @param opts.getHref A function that returns the current href (path + search + hash)
|
|
153
|
+
* @param opts.createHref A function that takes a path and returns a href (path + search + hash)
|
|
154
|
+
* @returns A history instance
|
|
155
|
+
*/
|
|
140
156
|
function createBrowserHistory(opts) {
|
|
141
157
|
const win = opts?.window ?? (typeof document !== "undefined" ? window : void 0);
|
|
142
158
|
const originalPushState = win.history.pushState;
|
|
@@ -205,9 +221,9 @@ function createBrowserHistory(opts) {
|
|
|
205
221
|
} : { type: isBack ? "BACK" : "FORWARD" };
|
|
206
222
|
if (skipBlockerNextPop) skipBlockerNextPop = false;
|
|
207
223
|
else {
|
|
208
|
-
const
|
|
209
|
-
if (typeof document !== "undefined" &&
|
|
210
|
-
for (const blocker of
|
|
224
|
+
const blockers = _getBlockers();
|
|
225
|
+
if (typeof document !== "undefined" && blockers.length) {
|
|
226
|
+
for (const blocker of blockers) if (await blocker.blockerFn({
|
|
211
227
|
currentLocation,
|
|
212
228
|
nextLocation,
|
|
213
229
|
action
|
|
@@ -228,8 +244,8 @@ function createBrowserHistory(opts) {
|
|
|
228
244
|
return;
|
|
229
245
|
}
|
|
230
246
|
let shouldBlock = false;
|
|
231
|
-
const
|
|
232
|
-
if (typeof document !== "undefined" &&
|
|
247
|
+
const blockers = _getBlockers();
|
|
248
|
+
if (typeof document !== "undefined" && blockers.length) for (const blocker of blockers) {
|
|
233
249
|
const shouldHaveBeforeUnload = blocker.enableBeforeUnload ?? true;
|
|
234
250
|
if (shouldHaveBeforeUnload === true) {
|
|
235
251
|
shouldBlock = true;
|
|
@@ -293,6 +309,10 @@ function createBrowserHistory(opts) {
|
|
|
293
309
|
};
|
|
294
310
|
return history;
|
|
295
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* Sanitize a path to prevent open redirect vulnerabilities.
|
|
314
|
+
* Removes control characters and collapses leading double slashes.
|
|
315
|
+
*/
|
|
296
316
|
function sanitizePath(path) {
|
|
297
317
|
let sanitized = path.replace(/[\x00-\x1f\x7f]/g, "");
|
|
298
318
|
if (sanitized.startsWith("//")) sanitized = "/" + sanitized.replace(/^\/+/, "");
|