@hot-updater/console 0.33.0 → 0.33.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.
- 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 +124 -168
- 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,60 +1,89 @@
|
|
|
1
1
|
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import { E as useControllableState, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
|
|
3
2
|
import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
|
|
3
|
+
import { E as useControllableState, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
|
|
4
4
|
import { p as usePrevious } from "./@radix-ui/react-select+[...].mjs";
|
|
5
5
|
import { t as composeEventHandlers } from "./radix-ui__primitive.mjs";
|
|
6
6
|
import { o as useSize } from "./@radix-ui/react-popper+[...].mjs";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.3.0_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react_55e256c9d19c631edfd6f4015145e5fa/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
8
8
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
9
9
|
var import_jsx_runtime = require_jsx_runtime();
|
|
10
10
|
var SWITCH_NAME = "Switch";
|
|
11
11
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
12
|
-
var [
|
|
13
|
-
|
|
14
|
-
const { __scopeSwitch,
|
|
15
|
-
const [button, setButton] = import_react.useState(null);
|
|
16
|
-
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
|
17
|
-
const hasConsumerStoppedPropagationRef = import_react.useRef(false);
|
|
18
|
-
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
12
|
+
var [SwitchProviderImpl, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
13
|
+
function SwitchProvider(props) {
|
|
14
|
+
const { __scopeSwitch, checked: checkedProp, children, defaultChecked, disabled, form, name, onCheckedChange, required, value = "on", internal_do_not_use_render } = props;
|
|
19
15
|
const [checked, setChecked] = useControllableState({
|
|
20
16
|
prop: checkedProp,
|
|
21
17
|
defaultProp: defaultChecked ?? false,
|
|
22
18
|
onChange: onCheckedChange,
|
|
23
19
|
caller: SWITCH_NAME
|
|
24
20
|
});
|
|
25
|
-
|
|
21
|
+
const [control, setControl] = import_react.useState(null);
|
|
22
|
+
const [bubbleInput, setBubbleInput] = import_react.useState(null);
|
|
23
|
+
const context = {
|
|
24
|
+
checked,
|
|
25
|
+
setChecked,
|
|
26
|
+
disabled,
|
|
27
|
+
control,
|
|
28
|
+
setControl,
|
|
29
|
+
name,
|
|
30
|
+
form,
|
|
31
|
+
value,
|
|
32
|
+
hasConsumerStoppedPropagationRef: import_react.useRef(false),
|
|
33
|
+
required,
|
|
34
|
+
defaultChecked,
|
|
35
|
+
isFormControl: control ? !!form || !!control.closest("form") : true,
|
|
36
|
+
bubbleInput,
|
|
37
|
+
setBubbleInput
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchProviderImpl, {
|
|
26
40
|
scope: __scopeSwitch,
|
|
41
|
+
...context,
|
|
42
|
+
children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
var TRIGGER_NAME = "SwitchTrigger";
|
|
46
|
+
var SwitchTrigger = import_react.forwardRef(({ __scopeSwitch, onClick, ...switchProps }, forwardedRef) => {
|
|
47
|
+
const { value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, isFormControl, bubbleInput } = useSwitchContext(TRIGGER_NAME, __scopeSwitch);
|
|
48
|
+
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
50
|
+
type: "button",
|
|
51
|
+
role: "switch",
|
|
52
|
+
"aria-checked": checked,
|
|
53
|
+
"aria-required": required,
|
|
54
|
+
"data-state": getState(checked),
|
|
55
|
+
"data-disabled": disabled ? "" : void 0,
|
|
56
|
+
disabled,
|
|
57
|
+
value,
|
|
58
|
+
...switchProps,
|
|
59
|
+
ref: composedRefs,
|
|
60
|
+
onClick: composeEventHandlers(onClick, (event) => {
|
|
61
|
+
setChecked((prevChecked) => !prevChecked);
|
|
62
|
+
if (bubbleInput && isFormControl) {
|
|
63
|
+
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
64
|
+
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
SwitchTrigger.displayName = TRIGGER_NAME;
|
|
70
|
+
var Switch = import_react.forwardRef((props, forwardedRef) => {
|
|
71
|
+
const { __scopeSwitch, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...switchProps } = props;
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchProvider, {
|
|
73
|
+
__scopeSwitch,
|
|
27
74
|
checked,
|
|
75
|
+
defaultChecked,
|
|
28
76
|
disabled,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"data-disabled": disabled ? "" : void 0,
|
|
36
|
-
disabled,
|
|
37
|
-
value,
|
|
77
|
+
required,
|
|
78
|
+
onCheckedChange,
|
|
79
|
+
name,
|
|
80
|
+
form,
|
|
81
|
+
value,
|
|
82
|
+
internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchTrigger, {
|
|
38
83
|
...switchProps,
|
|
39
|
-
ref:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (isFormControl) {
|
|
43
|
-
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
44
|
-
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
}), isFormControl && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchBubbleInput, {
|
|
48
|
-
control: button,
|
|
49
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
50
|
-
name,
|
|
51
|
-
value,
|
|
52
|
-
checked,
|
|
53
|
-
required,
|
|
54
|
-
disabled,
|
|
55
|
-
form,
|
|
56
|
-
style: { transform: "translateX(-100%)" }
|
|
57
|
-
})]
|
|
84
|
+
ref: forwardedRef,
|
|
85
|
+
__scopeSwitch
|
|
86
|
+
}), isFormControl && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchBubbleInput, { __scopeSwitch })] })
|
|
58
87
|
});
|
|
59
88
|
});
|
|
60
89
|
Switch.displayName = SWITCH_NAME;
|
|
@@ -71,30 +100,38 @@ var SwitchThumb = import_react.forwardRef((props, forwardedRef) => {
|
|
|
71
100
|
});
|
|
72
101
|
SwitchThumb.displayName = THUMB_NAME;
|
|
73
102
|
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
|
74
|
-
var SwitchBubbleInput = import_react.forwardRef(({ __scopeSwitch,
|
|
75
|
-
const
|
|
76
|
-
const composedRefs = useComposedRefs(
|
|
103
|
+
var SwitchBubbleInput = import_react.forwardRef(({ __scopeSwitch, ...props }, forwardedRef) => {
|
|
104
|
+
const { control, hasConsumerStoppedPropagationRef, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useSwitchContext(BUBBLE_INPUT_NAME, __scopeSwitch);
|
|
105
|
+
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
|
77
106
|
const prevChecked = usePrevious(checked);
|
|
78
107
|
const controlSize = useSize(control);
|
|
79
108
|
import_react.useEffect(() => {
|
|
80
|
-
const input =
|
|
109
|
+
const input = bubbleInput;
|
|
81
110
|
if (!input) return;
|
|
82
111
|
const inputProto = window.HTMLInputElement.prototype;
|
|
83
112
|
const setChecked = Object.getOwnPropertyDescriptor(inputProto, "checked").set;
|
|
113
|
+
const bubbles = !hasConsumerStoppedPropagationRef.current;
|
|
84
114
|
if (prevChecked !== checked && setChecked) {
|
|
85
115
|
const event = new Event("click", { bubbles });
|
|
86
116
|
setChecked.call(input, checked);
|
|
87
117
|
input.dispatchEvent(event);
|
|
88
118
|
}
|
|
89
119
|
}, [
|
|
120
|
+
bubbleInput,
|
|
90
121
|
prevChecked,
|
|
91
122
|
checked,
|
|
92
|
-
|
|
123
|
+
hasConsumerStoppedPropagationRef
|
|
93
124
|
]);
|
|
94
|
-
|
|
125
|
+
const defaultCheckedRef = import_react.useRef(checked);
|
|
126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.input, {
|
|
95
127
|
type: "checkbox",
|
|
96
128
|
"aria-hidden": true,
|
|
97
|
-
defaultChecked:
|
|
129
|
+
defaultChecked: defaultChecked ?? defaultCheckedRef.current,
|
|
130
|
+
required,
|
|
131
|
+
disabled,
|
|
132
|
+
name,
|
|
133
|
+
value,
|
|
134
|
+
form,
|
|
98
135
|
...props,
|
|
99
136
|
tabIndex: -1,
|
|
100
137
|
ref: composedRefs,
|
|
@@ -104,15 +141,17 @@ var SwitchBubbleInput = import_react.forwardRef(({ __scopeSwitch, control, check
|
|
|
104
141
|
position: "absolute",
|
|
105
142
|
pointerEvents: "none",
|
|
106
143
|
opacity: 0,
|
|
107
|
-
margin: 0
|
|
144
|
+
margin: 0,
|
|
145
|
+
transform: "translateX(-100%)"
|
|
108
146
|
}
|
|
109
147
|
});
|
|
110
148
|
});
|
|
111
149
|
SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
150
|
+
function isFunction(value) {
|
|
151
|
+
return typeof value === "function";
|
|
152
|
+
}
|
|
112
153
|
function getState(checked) {
|
|
113
154
|
return checked ? "checked" : "unchecked";
|
|
114
155
|
}
|
|
115
|
-
var Root = Switch;
|
|
116
|
-
var Thumb = SwitchThumb;
|
|
117
156
|
//#endregion
|
|
118
|
-
export {
|
|
157
|
+
export { SwitchThumb as n, Switch as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import { E as useControllableState, M as createSlottable, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, S as DismissableLayer, T as Presence, b as Portal$1, k as Primitive, w as useId } from "./@radix-ui/react-alert-dialog+[...].mjs";
|
|
3
2
|
import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
|
|
3
|
+
import { E as useControllableState, M as createSlottable, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, S as DismissableLayer, T as Presence, b as Portal$1, k as Primitive, w as useId } from "./@radix-ui/react-alert-dialog+[...].mjs";
|
|
4
4
|
import { m as Root } from "./@radix-ui/react-select+[...].mjs";
|
|
5
5
|
import { t as composeEventHandlers } from "./radix-ui__primitive.mjs";
|
|
6
6
|
import { a as createPopperScope, i as Root2, n as Arrow, r as Content, t as Anchor } from "./@radix-ui/react-popper+[...].mjs";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+reac_5a451308c19916fd9d95f5d7ea3f72f6/node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
8
8
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
9
9
|
var import_jsx_runtime = require_jsx_runtime();
|
|
10
10
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]);
|
|
@@ -27,10 +27,12 @@ var TooltipProvider = (props) => {
|
|
|
27
27
|
isOpenDelayedRef,
|
|
28
28
|
delayDuration,
|
|
29
29
|
onOpen: import_react.useCallback(() => {
|
|
30
|
+
if (skipDelayDuration <= 0) return;
|
|
30
31
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
31
32
|
isOpenDelayedRef.current = false;
|
|
32
|
-
}, []),
|
|
33
|
+
}, [skipDelayDuration]),
|
|
33
34
|
onClose: import_react.useCallback(() => {
|
|
35
|
+
if (skipDelayDuration <= 0) return;
|
|
34
36
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
35
37
|
skipDelayTimerRef.current = window.setTimeout(() => isOpenDelayedRef.current = true, skipDelayDuration);
|
|
36
38
|
}, [skipDelayDuration]),
|
|
@@ -301,7 +303,7 @@ var TooltipContentImpl = import_react.forwardRef((props, forwardedRef) => {
|
|
|
301
303
|
import_react.useEffect(() => {
|
|
302
304
|
if (context.trigger) {
|
|
303
305
|
const handleScroll = (event) => {
|
|
304
|
-
if (event.target
|
|
306
|
+
if (event.target instanceof Node && event.target.contains(context.trigger)) onClose();
|
|
305
307
|
};
|
|
306
308
|
window.addEventListener("scroll", handleScroll, { capture: true });
|
|
307
309
|
return () => window.removeEventListener("scroll", handleScroll, { capture: true });
|