gitxp 0.0.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 +17 -0
- package/.output/public/assets/index-BGHvBNtP.js +11 -0
- package/.output/public/assets/routes-DuE8S6pX.js +60 -0
- package/.output/public/assets/styles-D5xbQNYu.css +1 -0
- package/.output/server/_chunks/ssr-renderer.mjs +26 -0
- package/.output/server/_libs/@floating-ui/core+[...].mjs +671 -0
- package/.output/server/_libs/@floating-ui/dom+[...].mjs +649 -0
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +856 -0
- package/.output/server/_libs/@radix-ui/react-arrow+[...].mjs +258 -0
- package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +1862 -0
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +320 -0
- package/.output/server/_libs/@radix-ui/react-tooltip+[...].mjs +534 -0
- package/.output/server/_libs/@tanstack/db+[...].mjs +14680 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +14563 -0
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +126 -0
- package/.output/server/_libs/@tanstack/router-core+[...].mjs +3636 -0
- package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/.output/server/_libs/cmdk.mjs +504 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +1361 -0
- package/.output/server/_libs/h3-v2.mjs +285 -0
- package/.output/server/_libs/lucide-react.mjs +158 -0
- package/.output/server/_libs/radix-ui__primitive.mjs +44 -0
- package/.output/server/_libs/radix-ui__react-context.mjs +108 -0
- package/.output/server/_libs/tailwind-merge.mjs +3380 -0
- package/.output/server/_libs/tanstack__history.mjs +384 -0
- package/.output/server/_libs/tanstack__query-core.mjs +2225 -0
- package/.output/server/_libs/tanstack__react-db.mjs +242 -0
- package/.output/server/_libs/tanstack__react-query.mjs +140 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_runtime.mjs +35 -0
- package/.output/server/_ssr/empty-plugin-adapters-D9UWiqvJ.mjs +5 -0
- package/.output/server/_ssr/events-BNrmOvgU.mjs +13 -0
- package/.output/server/_ssr/notifications-DUoENv6E.mjs +514 -0
- package/.output/server/_ssr/router-DsUHD4bT.mjs +179 -0
- package/.output/server/_ssr/routes-DIFfr242.mjs +982 -0
- package/.output/server/_ssr/ssr.mjs +1854 -0
- package/.output/server/_ssr/start-5Z2QO8AU.mjs +4 -0
- package/.output/server/_tanstack-start-manifest_v-CrD0YpZr.mjs +20 -0
- package/.output/server/index.mjs +310 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/package.json +9 -0
- package/LICENSE +21 -0
- package/README.md +325 -0
- package/bin/gitxp.js +85 -0
- package/package.json +92 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { i as __toESM } from "../../_runtime.mjs";
|
|
2
|
+
import { a as offset, c as useFloating, i as limitShift, n as flip, o as shift, r as hide, s as size, t as arrow, u as require_react } from "../@floating-ui/react-dom+[...].mjs";
|
|
3
|
+
import { c as useComposedRefs, l as require_jsx_runtime, n as Primitive, t as Root } from "./react-arrow+[...].mjs";
|
|
4
|
+
import { t as createContextScope } from "../radix-ui__react-context.mjs";
|
|
5
|
+
import { m as useLayoutEffect2, u as useCallbackRef } from "./react-dialog+[...].mjs";
|
|
6
|
+
import { n as autoUpdate } from "../@floating-ui/dom+[...].mjs";
|
|
7
|
+
//#region node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
8
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
9
|
+
var __defProp$1 = Object.defineProperty;
|
|
10
|
+
var __name$1 = (target, value) => __defProp$1(target, "name", {
|
|
11
|
+
value,
|
|
12
|
+
configurable: true
|
|
13
|
+
});
|
|
14
|
+
function useSize(element) {
|
|
15
|
+
const [size, setSize] = import_react.useState(void 0);
|
|
16
|
+
useLayoutEffect2(() => {
|
|
17
|
+
if (element) {
|
|
18
|
+
setSize({
|
|
19
|
+
width: element.offsetWidth,
|
|
20
|
+
height: element.offsetHeight
|
|
21
|
+
});
|
|
22
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
23
|
+
if (!Array.isArray(entries)) return;
|
|
24
|
+
if (!entries.length) return;
|
|
25
|
+
const entry = entries[0];
|
|
26
|
+
let width;
|
|
27
|
+
let height;
|
|
28
|
+
if ("borderBoxSize" in entry) {
|
|
29
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
30
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
31
|
+
width = borderSize["inlineSize"];
|
|
32
|
+
height = borderSize["blockSize"];
|
|
33
|
+
} else {
|
|
34
|
+
width = element.offsetWidth;
|
|
35
|
+
height = element.offsetHeight;
|
|
36
|
+
}
|
|
37
|
+
setSize({
|
|
38
|
+
width,
|
|
39
|
+
height
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
43
|
+
return () => resizeObserver.unobserve(element);
|
|
44
|
+
} else setSize(void 0);
|
|
45
|
+
}, [element]);
|
|
46
|
+
return size;
|
|
47
|
+
}
|
|
48
|
+
__name$1(useSize, "useSize");
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
51
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
52
|
+
var __defProp = Object.defineProperty;
|
|
53
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
54
|
+
value,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
var POPPER_NAME = "Popper";
|
|
58
|
+
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
59
|
+
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
60
|
+
var Popper = /* @__PURE__ */ __name((props) => {
|
|
61
|
+
const { __scopePopper, children } = props;
|
|
62
|
+
const [anchor, setAnchor] = import_react.useState(null);
|
|
63
|
+
const [placementState, setPlacementState] = import_react.useState(void 0);
|
|
64
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {
|
|
65
|
+
scope: __scopePopper,
|
|
66
|
+
anchor,
|
|
67
|
+
onAnchorChange: setAnchor,
|
|
68
|
+
placementState,
|
|
69
|
+
setPlacementState,
|
|
70
|
+
children
|
|
71
|
+
});
|
|
72
|
+
}, "Popper");
|
|
73
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
74
|
+
var PopperAnchor = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopperAnchor2(props, forwardedRef) {
|
|
75
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
76
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
77
|
+
const ref = import_react.useRef(null);
|
|
78
|
+
const onAnchorChange = context.onAnchorChange;
|
|
79
|
+
const callbackRef = import_react.useCallback((node) => {
|
|
80
|
+
ref.current = node;
|
|
81
|
+
if (node) onAnchorChange(node);
|
|
82
|
+
}, [onAnchorChange]);
|
|
83
|
+
const composedRefs = useComposedRefs(forwardedRef, callbackRef);
|
|
84
|
+
const anchorRef = import_react.useRef(null);
|
|
85
|
+
import_react.useEffect(() => {
|
|
86
|
+
if (!virtualRef) return;
|
|
87
|
+
const previousAnchor = anchorRef.current;
|
|
88
|
+
anchorRef.current = virtualRef.current;
|
|
89
|
+
if (previousAnchor !== anchorRef.current) onAnchorChange(anchorRef.current);
|
|
90
|
+
});
|
|
91
|
+
const sideAndAlign = context.placementState && getSideAndAlignFromPlacement(context.placementState);
|
|
92
|
+
const placedSide = sideAndAlign?.[0];
|
|
93
|
+
const placedAlign = sideAndAlign?.[1];
|
|
94
|
+
return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
95
|
+
"data-radix-popper-side": placedSide,
|
|
96
|
+
"data-radix-popper-align": placedAlign,
|
|
97
|
+
...anchorProps,
|
|
98
|
+
ref: composedRefs
|
|
99
|
+
});
|
|
100
|
+
}, "PopperAnchor"));
|
|
101
|
+
var CONTENT_NAME = "PopperContent";
|
|
102
|
+
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
|
|
103
|
+
var PopperContent = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopperContent2(props, forwardedRef) {
|
|
104
|
+
const { __scopePopper, side = "bottom", sideOffset = 0, align = "center", alignOffset = 0, arrowPadding = 0, avoidCollisions = true, collisionBoundary = [], collisionPadding: collisionPaddingProp = 0, sticky = "partial", hideWhenDetached = false, updatePositionStrategy = "optimized", onPlaced, ...contentProps } = props;
|
|
105
|
+
const context = usePopperContext(CONTENT_NAME, __scopePopper);
|
|
106
|
+
const [content, setContent] = import_react.useState(null);
|
|
107
|
+
const composedRefs = useComposedRefs(forwardedRef, setContent);
|
|
108
|
+
const [arrow$1, setArrow] = import_react.useState(null);
|
|
109
|
+
const arrowSize = useSize(arrow$1);
|
|
110
|
+
const arrowWidth = arrowSize?.width ?? 0;
|
|
111
|
+
const arrowHeight = arrowSize?.height ?? 0;
|
|
112
|
+
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
113
|
+
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : {
|
|
114
|
+
top: 0,
|
|
115
|
+
right: 0,
|
|
116
|
+
bottom: 0,
|
|
117
|
+
left: 0,
|
|
118
|
+
...collisionPaddingProp
|
|
119
|
+
};
|
|
120
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
121
|
+
const hasExplicitBoundaries = boundary.length > 0;
|
|
122
|
+
const detectOverflowOptions = {
|
|
123
|
+
padding: collisionPadding,
|
|
124
|
+
boundary: boundary.filter(isNotNull),
|
|
125
|
+
altBoundary: hasExplicitBoundaries
|
|
126
|
+
};
|
|
127
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
128
|
+
strategy: "fixed",
|
|
129
|
+
placement: desiredPlacement,
|
|
130
|
+
whileElementsMounted: /* @__PURE__ */ __name((...args) => {
|
|
131
|
+
return autoUpdate(...args, { animationFrame: updatePositionStrategy === "always" });
|
|
132
|
+
}, "whileElementsMounted"),
|
|
133
|
+
elements: { reference: context.anchor },
|
|
134
|
+
middleware: [
|
|
135
|
+
offset({
|
|
136
|
+
mainAxis: sideOffset + arrowHeight,
|
|
137
|
+
alignmentAxis: alignOffset
|
|
138
|
+
}),
|
|
139
|
+
avoidCollisions && shift({
|
|
140
|
+
mainAxis: true,
|
|
141
|
+
crossAxis: false,
|
|
142
|
+
limiter: sticky === "partial" ? limitShift() : void 0,
|
|
143
|
+
...detectOverflowOptions
|
|
144
|
+
}),
|
|
145
|
+
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
146
|
+
size({
|
|
147
|
+
...detectOverflowOptions,
|
|
148
|
+
apply: /* @__PURE__ */ __name(({ elements, rects, availableWidth, availableHeight }) => {
|
|
149
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
150
|
+
const contentStyle = elements.floating.style;
|
|
151
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
152
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
153
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
154
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
155
|
+
}, "apply")
|
|
156
|
+
}),
|
|
157
|
+
arrow$1 && arrow({
|
|
158
|
+
element: arrow$1,
|
|
159
|
+
padding: arrowPadding
|
|
160
|
+
}),
|
|
161
|
+
transformOrigin({
|
|
162
|
+
arrowWidth,
|
|
163
|
+
arrowHeight
|
|
164
|
+
}),
|
|
165
|
+
hideWhenDetached && hide({
|
|
166
|
+
strategy: "referenceHidden",
|
|
167
|
+
...detectOverflowOptions,
|
|
168
|
+
boundary: hasExplicitBoundaries ? detectOverflowOptions.boundary : void 0
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
});
|
|
172
|
+
const setPlacementState = context.setPlacementState;
|
|
173
|
+
useLayoutEffect2(() => {
|
|
174
|
+
setPlacementState(placement);
|
|
175
|
+
return () => {
|
|
176
|
+
setPlacementState(void 0);
|
|
177
|
+
};
|
|
178
|
+
}, [placement, setPlacementState]);
|
|
179
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
180
|
+
const handlePlaced = useCallbackRef(onPlaced);
|
|
181
|
+
useLayoutEffect2(() => {
|
|
182
|
+
if (isPositioned) handlePlaced?.();
|
|
183
|
+
}, [isPositioned, handlePlaced]);
|
|
184
|
+
const arrowX = middlewareData.arrow?.x;
|
|
185
|
+
const arrowY = middlewareData.arrow?.y;
|
|
186
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
187
|
+
const [contentZIndex, setContentZIndex] = import_react.useState();
|
|
188
|
+
useLayoutEffect2(() => {
|
|
189
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
190
|
+
}, [content]);
|
|
191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
192
|
+
ref: refs.setFloating,
|
|
193
|
+
"data-radix-popper-content-wrapper": "",
|
|
194
|
+
style: {
|
|
195
|
+
...floatingStyles,
|
|
196
|
+
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
197
|
+
minWidth: "max-content",
|
|
198
|
+
zIndex: contentZIndex,
|
|
199
|
+
"--radix-popper-transform-origin": [middlewareData.transformOrigin?.x, middlewareData.transformOrigin?.y].join(" "),
|
|
200
|
+
...middlewareData.hide?.referenceHidden && {
|
|
201
|
+
visibility: "hidden",
|
|
202
|
+
pointerEvents: "none"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
dir: props.dir,
|
|
206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentProvider, {
|
|
207
|
+
scope: __scopePopper,
|
|
208
|
+
placedSide,
|
|
209
|
+
placedAlign,
|
|
210
|
+
onArrowChange: setArrow,
|
|
211
|
+
arrowX,
|
|
212
|
+
arrowY,
|
|
213
|
+
shouldHideArrow: cannotCenterArrow,
|
|
214
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
215
|
+
"data-side": placedSide,
|
|
216
|
+
"data-align": placedAlign,
|
|
217
|
+
...contentProps,
|
|
218
|
+
ref: composedRefs,
|
|
219
|
+
style: {
|
|
220
|
+
...contentProps.style,
|
|
221
|
+
animation: !isPositioned ? "none" : contentProps.style?.animation
|
|
222
|
+
}
|
|
223
|
+
})
|
|
224
|
+
})
|
|
225
|
+
});
|
|
226
|
+
}, "PopperContent"));
|
|
227
|
+
var ARROW_NAME = "PopperArrow";
|
|
228
|
+
var OPPOSITE_SIDE = {
|
|
229
|
+
top: "bottom",
|
|
230
|
+
right: "left",
|
|
231
|
+
bottom: "top",
|
|
232
|
+
left: "right"
|
|
233
|
+
};
|
|
234
|
+
var PopperArrow = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopperArrow2(props, forwardedRef) {
|
|
235
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
236
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
237
|
+
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
239
|
+
ref: contentContext.onArrowChange,
|
|
240
|
+
style: {
|
|
241
|
+
position: "absolute",
|
|
242
|
+
left: contentContext.arrowX,
|
|
243
|
+
top: contentContext.arrowY,
|
|
244
|
+
[baseSide]: 0,
|
|
245
|
+
transformOrigin: {
|
|
246
|
+
top: "",
|
|
247
|
+
right: "0 0",
|
|
248
|
+
bottom: "center 0",
|
|
249
|
+
left: "100% 0"
|
|
250
|
+
}[contentContext.placedSide],
|
|
251
|
+
transform: {
|
|
252
|
+
top: "translateY(100%)",
|
|
253
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
254
|
+
bottom: `rotate(180deg)`,
|
|
255
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
256
|
+
}[contentContext.placedSide],
|
|
257
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
258
|
+
},
|
|
259
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
|
|
260
|
+
...arrowProps,
|
|
261
|
+
ref: forwardedRef,
|
|
262
|
+
style: {
|
|
263
|
+
...arrowProps.style,
|
|
264
|
+
display: "block"
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
});
|
|
268
|
+
}, "PopperArrow"));
|
|
269
|
+
function isNotNull(value) {
|
|
270
|
+
return value !== null;
|
|
271
|
+
}
|
|
272
|
+
__name(isNotNull, "isNotNull");
|
|
273
|
+
var transformOrigin = /* @__PURE__ */ __name((options) => ({
|
|
274
|
+
name: "transformOrigin",
|
|
275
|
+
options,
|
|
276
|
+
fn(data) {
|
|
277
|
+
const { placement, rects, middlewareData } = data;
|
|
278
|
+
const isArrowHidden = middlewareData.arrow?.centerOffset !== 0;
|
|
279
|
+
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
280
|
+
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
281
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
282
|
+
const noArrowAlign = {
|
|
283
|
+
start: "0%",
|
|
284
|
+
center: "50%",
|
|
285
|
+
end: "100%"
|
|
286
|
+
}[placedAlign];
|
|
287
|
+
const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
|
|
288
|
+
const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
|
|
289
|
+
let x = "";
|
|
290
|
+
let y = "";
|
|
291
|
+
if (placedSide === "bottom") {
|
|
292
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
293
|
+
y = `${-arrowHeight}px`;
|
|
294
|
+
} else if (placedSide === "top") {
|
|
295
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
296
|
+
y = `${rects.floating.height + arrowHeight}px`;
|
|
297
|
+
} else if (placedSide === "right") {
|
|
298
|
+
x = `${-arrowHeight}px`;
|
|
299
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
300
|
+
} else if (placedSide === "left") {
|
|
301
|
+
x = `${rects.floating.width + arrowHeight}px`;
|
|
302
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
303
|
+
}
|
|
304
|
+
return { data: {
|
|
305
|
+
x,
|
|
306
|
+
y
|
|
307
|
+
} };
|
|
308
|
+
}
|
|
309
|
+
}), "transformOrigin");
|
|
310
|
+
function getSideAndAlignFromPlacement(placement) {
|
|
311
|
+
const [side, align = "center"] = placement.split("-");
|
|
312
|
+
return [side, align];
|
|
313
|
+
}
|
|
314
|
+
__name(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
|
|
315
|
+
var Root2 = Popper;
|
|
316
|
+
var Anchor = PopperAnchor;
|
|
317
|
+
var Content = PopperContent;
|
|
318
|
+
var Arrow = PopperArrow;
|
|
319
|
+
//#endregion
|
|
320
|
+
export { createPopperScope as a, Root2 as i, Arrow as n, Content as r, Anchor as t };
|