@upstash/react-redis-browser 0.2.10 → 0.2.11-canary
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/dist/index.css +0 -3
- package/dist/index.js +18 -19
- package/dist/index.mjs +32 -33
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var useTheme = () => {
|
|
|
24
24
|
|
|
25
25
|
// src/lib/clients.ts
|
|
26
26
|
var _reactquery = require('@tanstack/react-query');
|
|
27
|
-
var
|
|
27
|
+
var _redis = require('@upstash/redis');
|
|
28
28
|
|
|
29
29
|
// src/components/ui/use-toast.ts
|
|
30
30
|
|
|
@@ -162,7 +162,7 @@ var redisClient = ({
|
|
|
162
162
|
if (!token) {
|
|
163
163
|
throw new Error("Redis TOKEN is missing!");
|
|
164
164
|
}
|
|
165
|
-
const redis = new (0,
|
|
165
|
+
const redis = new (0, _redis.Redis)({
|
|
166
166
|
url,
|
|
167
167
|
token,
|
|
168
168
|
enableAutoPipelining: pipelining,
|
|
@@ -3058,7 +3058,7 @@ var _reactportal = require('@radix-ui/react-portal');
|
|
|
3058
3058
|
|
|
3059
3059
|
// src/components/ui/toast.tsx
|
|
3060
3060
|
|
|
3061
|
-
var
|
|
3061
|
+
var _iconsreact = require('@tabler/icons-react');
|
|
3062
3062
|
var _reacttoast = require('@radix-ui/react-toast'); var ToastPrimitives = _interopRequireWildcard(_reacttoast);
|
|
3063
3063
|
|
|
3064
3064
|
// node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs
|
|
@@ -3180,7 +3180,7 @@ var ToastClose = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3180
3180
|
),
|
|
3181
3181
|
"toast-close": "",
|
|
3182
3182
|
...props,
|
|
3183
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3183
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconX, { className: "size-4" })
|
|
3184
3184
|
}
|
|
3185
3185
|
));
|
|
3186
3186
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
@@ -3339,7 +3339,7 @@ var useKeyType = (key) => {
|
|
|
3339
3339
|
|
|
3340
3340
|
// src/components/databrowser/components/display/display-list.tsx
|
|
3341
3341
|
|
|
3342
|
-
|
|
3342
|
+
|
|
3343
3343
|
|
|
3344
3344
|
// src/components/ui/button.tsx
|
|
3345
3345
|
|
|
@@ -4270,7 +4270,7 @@ var ContextMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...
|
|
|
4270
4270
|
...props,
|
|
4271
4271
|
children: [
|
|
4272
4272
|
children,
|
|
4273
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconChevronRight, { className: "ml-auto h-4 w-4" })
|
|
4274
4274
|
]
|
|
4275
4275
|
}
|
|
4276
4276
|
));
|
|
@@ -4323,7 +4323,7 @@ var ContextMenuCheckboxItem = React7.forwardRef(({ className, children, checked,
|
|
|
4323
4323
|
checked,
|
|
4324
4324
|
...props,
|
|
4325
4325
|
children: [
|
|
4326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCheck, { className: "h-4 w-4" }) }) }),
|
|
4327
4327
|
children
|
|
4328
4328
|
]
|
|
4329
4329
|
}
|
|
@@ -4339,7 +4339,7 @@ var ContextMenuRadioItem = React7.forwardRef(({ className, children, ...props },
|
|
|
4339
4339
|
),
|
|
4340
4340
|
...props,
|
|
4341
4341
|
children: [
|
|
4342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCircleFilled, { className: "h-4 w-4" }) }) }),
|
|
4343
4343
|
children
|
|
4344
4344
|
]
|
|
4345
4345
|
}
|
|
@@ -4734,7 +4734,7 @@ var SimpleTooltip = ({
|
|
|
4734
4734
|
}) => {
|
|
4735
4735
|
if (!content) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children });
|
|
4736
4736
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { delayDuration: 400, children: [
|
|
4737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children
|
|
4737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children }),
|
|
4738
4738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { side: "top", children: content })
|
|
4739
4739
|
] });
|
|
4740
4740
|
};
|
|
@@ -4817,7 +4817,7 @@ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, .
|
|
|
4817
4817
|
...props,
|
|
4818
4818
|
children: [
|
|
4819
4819
|
children,
|
|
4820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconChevronRight, { className: "ml-auto" })
|
|
4821
4821
|
]
|
|
4822
4822
|
}
|
|
4823
4823
|
));
|
|
@@ -4872,7 +4872,7 @@ var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checke
|
|
|
4872
4872
|
checked,
|
|
4873
4873
|
...props,
|
|
4874
4874
|
children: [
|
|
4875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4875
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCheck, { className: "h-4 w-4" }) }) }),
|
|
4876
4876
|
children
|
|
4877
4877
|
]
|
|
4878
4878
|
}
|
|
@@ -4888,7 +4888,7 @@ var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props
|
|
|
4888
4888
|
),
|
|
4889
4889
|
...props,
|
|
4890
4890
|
children: [
|
|
4891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4891
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCircleFilled, { className: "h-2 w-2" }) }) }),
|
|
4892
4892
|
children
|
|
4893
4893
|
]
|
|
4894
4894
|
}
|
|
@@ -5614,7 +5614,6 @@ var DataDisplay = () => {
|
|
|
5614
5614
|
var _reactdialog = require('@radix-ui/react-dialog'); var DialogPrimitive = _interopRequireWildcard(_reactdialog);
|
|
5615
5615
|
|
|
5616
5616
|
|
|
5617
|
-
|
|
5618
5617
|
// src/components/ui/dialog.tsx
|
|
5619
5618
|
|
|
5620
5619
|
|
|
@@ -5718,6 +5717,7 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
|
5718
5717
|
|
|
5719
5718
|
// src/components/databrowser/components/add-key-modal.tsx
|
|
5720
5719
|
|
|
5720
|
+
|
|
5721
5721
|
function AddKeyModal() {
|
|
5722
5722
|
const { setSelectedKey } = useTab();
|
|
5723
5723
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
@@ -5749,7 +5749,7 @@ function AddKeyModal() {
|
|
|
5749
5749
|
setOpen(open2);
|
|
5750
5750
|
},
|
|
5751
5751
|
children: [
|
|
5752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleTooltip, { content: "Add key", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "primary", size: "icon-sm", "data-testid": "add-key-button", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconPlus, { className: "size-4" }) }) }) }),
|
|
5753
5753
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogContent, { className: "max-w-[400px]", children: [
|
|
5754
5754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: "Create new key" }) }),
|
|
5755
5755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sr-only", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactdialog.DialogDescription, { children: "Create new key" }) }),
|
|
@@ -5915,7 +5915,7 @@ var KeysList = () => {
|
|
|
5915
5915
|
const lastClickedIndexRef = _react.useRef.call(void 0, null);
|
|
5916
5916
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarContextMenu, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5917
5917
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-px" }),
|
|
5918
|
-
keys.map((data, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5918
|
+
keys.map((data, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
5919
5919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5920
5920
|
KeyItem,
|
|
5921
5921
|
{
|
|
@@ -5923,11 +5923,10 @@ var KeysList = () => {
|
|
|
5923
5923
|
data,
|
|
5924
5924
|
allKeys: keys,
|
|
5925
5925
|
lastClickedIndexRef
|
|
5926
|
-
}
|
|
5927
|
-
data[0]
|
|
5926
|
+
}
|
|
5928
5927
|
),
|
|
5929
5928
|
i !== keys.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "-z-10 mx-2 h-px bg-zinc-100 dark:bg-zinc-200" })
|
|
5930
|
-
] }))
|
|
5929
|
+
] }, data[0]))
|
|
5931
5930
|
] }) });
|
|
5932
5931
|
};
|
|
5933
5932
|
var keyStyles = {
|
|
@@ -6274,7 +6273,7 @@ var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
6274
6273
|
));
|
|
6275
6274
|
Command.displayName = _cmdk.Command.displayName;
|
|
6276
6275
|
var CommandInput = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
6277
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6276
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconSearch, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
6278
6277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6279
6278
|
_cmdk.Command.Input,
|
|
6280
6279
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import { createContext as createContext2, useContext as useContext2, useMemo } f
|
|
|
24
24
|
|
|
25
25
|
// src/lib/clients.ts
|
|
26
26
|
import { MutationCache, QueryCache, QueryClient } from "@tanstack/react-query";
|
|
27
|
-
import { Redis } from "@upstash/redis
|
|
27
|
+
import { Redis } from "@upstash/redis";
|
|
28
28
|
|
|
29
29
|
// src/components/ui/use-toast.ts
|
|
30
30
|
import * as React from "react";
|
|
@@ -3058,7 +3058,7 @@ import { Portal } from "@radix-ui/react-portal";
|
|
|
3058
3058
|
|
|
3059
3059
|
// src/components/ui/toast.tsx
|
|
3060
3060
|
import * as React2 from "react";
|
|
3061
|
-
import {
|
|
3061
|
+
import { IconX } from "@tabler/icons-react";
|
|
3062
3062
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
3063
3063
|
|
|
3064
3064
|
// node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs
|
|
@@ -3180,7 +3180,7 @@ var ToastClose = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3180
3180
|
),
|
|
3181
3181
|
"toast-close": "",
|
|
3182
3182
|
...props,
|
|
3183
|
-
children: /* @__PURE__ */ jsx5(
|
|
3183
|
+
children: /* @__PURE__ */ jsx5(IconX, { className: "size-4" })
|
|
3184
3184
|
}
|
|
3185
3185
|
));
|
|
3186
3186
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
@@ -4254,7 +4254,7 @@ import { ContextMenuSeparator as ContextMenuSeparator2 } from "@radix-ui/react-c
|
|
|
4254
4254
|
// src/components/ui/context-menu.tsx
|
|
4255
4255
|
import * as React7 from "react";
|
|
4256
4256
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4257
|
-
import {
|
|
4257
|
+
import { IconCheck, IconChevronRight, IconCircleFilled } from "@tabler/icons-react";
|
|
4258
4258
|
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4259
4259
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
4260
4260
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
@@ -4270,7 +4270,7 @@ var ContextMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...
|
|
|
4270
4270
|
...props,
|
|
4271
4271
|
children: [
|
|
4272
4272
|
children,
|
|
4273
|
-
/* @__PURE__ */ jsx18(
|
|
4273
|
+
/* @__PURE__ */ jsx18(IconChevronRight, { className: "ml-auto h-4 w-4" })
|
|
4274
4274
|
]
|
|
4275
4275
|
}
|
|
4276
4276
|
));
|
|
@@ -4323,7 +4323,7 @@ var ContextMenuCheckboxItem = React7.forwardRef(({ className, children, checked,
|
|
|
4323
4323
|
checked,
|
|
4324
4324
|
...props,
|
|
4325
4325
|
children: [
|
|
4326
|
-
/* @__PURE__ */ jsx18("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(
|
|
4326
|
+
/* @__PURE__ */ jsx18("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(IconCheck, { className: "h-4 w-4" }) }) }),
|
|
4327
4327
|
children
|
|
4328
4328
|
]
|
|
4329
4329
|
}
|
|
@@ -4339,7 +4339,7 @@ var ContextMenuRadioItem = React7.forwardRef(({ className, children, ...props },
|
|
|
4339
4339
|
),
|
|
4340
4340
|
...props,
|
|
4341
4341
|
children: [
|
|
4342
|
-
/* @__PURE__ */ jsx18("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(
|
|
4342
|
+
/* @__PURE__ */ jsx18("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(IconCircleFilled, { className: "h-4 w-4" }) }) }),
|
|
4343
4343
|
children
|
|
4344
4344
|
]
|
|
4345
4345
|
}
|
|
@@ -4734,7 +4734,7 @@ var SimpleTooltip = ({
|
|
|
4734
4734
|
}) => {
|
|
4735
4735
|
if (!content) return /* @__PURE__ */ jsx24(Fragment3, { children });
|
|
4736
4736
|
return /* @__PURE__ */ jsxs14(Tooltip, { delayDuration: 400, children: [
|
|
4737
|
-
/* @__PURE__ */ jsx24(TooltipTrigger, { asChild: true, children
|
|
4737
|
+
/* @__PURE__ */ jsx24(TooltipTrigger, { asChild: true, children }),
|
|
4738
4738
|
/* @__PURE__ */ jsx24(TooltipContent, { side: "top", children: content })
|
|
4739
4739
|
] });
|
|
4740
4740
|
};
|
|
@@ -4801,7 +4801,7 @@ import { IconDotsVertical } from "@tabler/icons-react";
|
|
|
4801
4801
|
// src/components/ui/dropdown-menu.tsx
|
|
4802
4802
|
import * as React11 from "react";
|
|
4803
4803
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4804
|
-
import {
|
|
4804
|
+
import { IconCheck as IconCheck2, IconChevronRight as IconChevronRight2, IconCircleFilled as IconCircleFilled2 } from "@tabler/icons-react";
|
|
4805
4805
|
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4806
4806
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
4807
4807
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
@@ -4817,7 +4817,7 @@ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, .
|
|
|
4817
4817
|
...props,
|
|
4818
4818
|
children: [
|
|
4819
4819
|
children,
|
|
4820
|
-
/* @__PURE__ */ jsx26(
|
|
4820
|
+
/* @__PURE__ */ jsx26(IconChevronRight2, { className: "ml-auto" })
|
|
4821
4821
|
]
|
|
4822
4822
|
}
|
|
4823
4823
|
));
|
|
@@ -4872,7 +4872,7 @@ var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checke
|
|
|
4872
4872
|
checked,
|
|
4873
4873
|
...props,
|
|
4874
4874
|
children: [
|
|
4875
|
-
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(
|
|
4875
|
+
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(IconCheck2, { className: "h-4 w-4" }) }) }),
|
|
4876
4876
|
children
|
|
4877
4877
|
]
|
|
4878
4878
|
}
|
|
@@ -4888,7 +4888,7 @@ var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props
|
|
|
4888
4888
|
),
|
|
4889
4889
|
...props,
|
|
4890
4890
|
children: [
|
|
4891
|
-
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(
|
|
4891
|
+
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(IconCircleFilled2, { className: "h-2 w-2" }) }) }),
|
|
4892
4892
|
children
|
|
4893
4893
|
]
|
|
4894
4894
|
}
|
|
@@ -5095,7 +5095,7 @@ import { Editor, useMonaco } from "@monaco-editor/react";
|
|
|
5095
5095
|
|
|
5096
5096
|
// src/components/databrowser/copy-button.tsx
|
|
5097
5097
|
import { useState as useState6 } from "react";
|
|
5098
|
-
import { IconCheck, IconCopy as IconCopy2 } from "@tabler/icons-react";
|
|
5098
|
+
import { IconCheck as IconCheck3, IconCopy as IconCopy2 } from "@tabler/icons-react";
|
|
5099
5099
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
5100
5100
|
function CopyButton({ value, ...props }) {
|
|
5101
5101
|
const [copied, setCopied] = useState6(false);
|
|
@@ -5116,7 +5116,7 @@ function CopyButton({ value, ...props }) {
|
|
|
5116
5116
|
variant: "secondary",
|
|
5117
5117
|
size: "icon-sm",
|
|
5118
5118
|
...props,
|
|
5119
|
-
children: copied ? /* @__PURE__ */ jsx31(
|
|
5119
|
+
children: copied ? /* @__PURE__ */ jsx31(IconCheck3, { className: "size-4 text-green-500" }) : /* @__PURE__ */ jsx31(IconCopy2, { className: "size-4 text-zinc-500" })
|
|
5120
5120
|
}
|
|
5121
5121
|
);
|
|
5122
5122
|
}
|
|
@@ -5612,7 +5612,6 @@ var DataDisplay = () => {
|
|
|
5612
5612
|
// src/components/databrowser/components/add-key-modal.tsx
|
|
5613
5613
|
import { useState as useState9 } from "react";
|
|
5614
5614
|
import { DialogDescription as DialogDescription2 } from "@radix-ui/react-dialog";
|
|
5615
|
-
import { PlusIcon } from "@radix-ui/react-icons";
|
|
5616
5615
|
import { Controller as Controller3, useForm as useForm4 } from "react-hook-form";
|
|
5617
5616
|
|
|
5618
5617
|
// src/components/ui/dialog.tsx
|
|
@@ -5717,6 +5716,7 @@ var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5717
5716
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
5718
5717
|
|
|
5719
5718
|
// src/components/databrowser/components/add-key-modal.tsx
|
|
5719
|
+
import { IconPlus as IconPlus2 } from "@tabler/icons-react";
|
|
5720
5720
|
import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5721
5721
|
function AddKeyModal() {
|
|
5722
5722
|
const { setSelectedKey } = useTab();
|
|
@@ -5749,7 +5749,7 @@ function AddKeyModal() {
|
|
|
5749
5749
|
setOpen(open2);
|
|
5750
5750
|
},
|
|
5751
5751
|
children: [
|
|
5752
|
-
/* @__PURE__ */ jsx40(
|
|
5752
|
+
/* @__PURE__ */ jsx40(SimpleTooltip, { content: "Add key", children: /* @__PURE__ */ jsx40(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx40(Button, { variant: "primary", size: "icon-sm", "data-testid": "add-key-button", children: /* @__PURE__ */ jsx40(IconPlus2, { className: "size-4" }) }) }) }),
|
|
5753
5753
|
/* @__PURE__ */ jsxs24(DialogContent, { className: "max-w-[400px]", children: [
|
|
5754
5754
|
/* @__PURE__ */ jsx40(DialogHeader, { children: /* @__PURE__ */ jsx40(DialogTitle, { children: "Create new key" }) }),
|
|
5755
5755
|
/* @__PURE__ */ jsx40("div", { className: "sr-only", children: /* @__PURE__ */ jsx40(DialogDescription2, { children: "Create new key" }) }),
|
|
@@ -5811,7 +5811,7 @@ var Empty = () => {
|
|
|
5811
5811
|
};
|
|
5812
5812
|
|
|
5813
5813
|
// src/components/databrowser/components/sidebar/keys-list.tsx
|
|
5814
|
-
import { useRef as useRef3 } from "react";
|
|
5814
|
+
import { Fragment as Fragment9, useRef as useRef3 } from "react";
|
|
5815
5815
|
|
|
5816
5816
|
// src/components/databrowser/components/sidebar-context-menu.tsx
|
|
5817
5817
|
import { useState as useState10 } from "react";
|
|
@@ -5909,11 +5909,11 @@ var SidebarContextMenu = ({ children }) => {
|
|
|
5909
5909
|
};
|
|
5910
5910
|
|
|
5911
5911
|
// src/components/databrowser/components/sidebar/keys-list.tsx
|
|
5912
|
-
import { Fragment as
|
|
5912
|
+
import { Fragment as Fragment10, jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5913
5913
|
var KeysList = () => {
|
|
5914
5914
|
const { keys } = useKeys();
|
|
5915
5915
|
const lastClickedIndexRef = useRef3(null);
|
|
5916
|
-
return /* @__PURE__ */ jsx43(SidebarContextMenu, { children: /* @__PURE__ */ jsxs27(
|
|
5916
|
+
return /* @__PURE__ */ jsx43(SidebarContextMenu, { children: /* @__PURE__ */ jsxs27(Fragment10, { children: [
|
|
5917
5917
|
/* @__PURE__ */ jsx43("div", { className: "h-px" }),
|
|
5918
5918
|
keys.map((data, i) => /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
5919
5919
|
/* @__PURE__ */ jsx43(
|
|
@@ -5923,11 +5923,10 @@ var KeysList = () => {
|
|
|
5923
5923
|
data,
|
|
5924
5924
|
allKeys: keys,
|
|
5925
5925
|
lastClickedIndexRef
|
|
5926
|
-
}
|
|
5927
|
-
data[0]
|
|
5926
|
+
}
|
|
5928
5927
|
),
|
|
5929
5928
|
i !== keys.length - 1 && /* @__PURE__ */ jsx43("div", { className: "-z-10 mx-2 h-px bg-zinc-100 dark:bg-zinc-200" })
|
|
5930
|
-
] }))
|
|
5929
|
+
] }, data[0]))
|
|
5931
5930
|
] }) });
|
|
5932
5931
|
};
|
|
5933
5932
|
var keyStyles = {
|
|
@@ -6016,7 +6015,7 @@ var ReloadButton = ({
|
|
|
6016
6015
|
|
|
6017
6016
|
// src/components/databrowser/components/sidebar/search-input.tsx
|
|
6018
6017
|
import { useEffect as useEffect11, useRef as useRef4, useState as useState12 } from "react";
|
|
6019
|
-
import { IconX } from "@tabler/icons-react";
|
|
6018
|
+
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
6020
6019
|
import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6021
6020
|
var dedupeSearchHistory = (history) => {
|
|
6022
6021
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -6130,7 +6129,7 @@ var SearchInput = () => {
|
|
|
6130
6129
|
setState("");
|
|
6131
6130
|
},
|
|
6132
6131
|
children: [
|
|
6133
|
-
/* @__PURE__ */ jsx45(
|
|
6132
|
+
/* @__PURE__ */ jsx45(IconX2, { size: 16 }),
|
|
6134
6133
|
/* @__PURE__ */ jsx45("span", { className: "sr-only", children: "Clear" })
|
|
6135
6134
|
]
|
|
6136
6135
|
}
|
|
@@ -6254,12 +6253,12 @@ import {
|
|
|
6254
6253
|
import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";
|
|
6255
6254
|
import { horizontalListSortingStrategy, SortableContext, useSortable } from "@dnd-kit/sortable";
|
|
6256
6255
|
import { CSS } from "@dnd-kit/utilities";
|
|
6257
|
-
import { IconChevronDown as IconChevronDown2, IconMaximize, IconPlus as
|
|
6256
|
+
import { IconChevronDown as IconChevronDown2, IconMaximize, IconPlus as IconPlus3 } from "@tabler/icons-react";
|
|
6258
6257
|
|
|
6259
6258
|
// src/components/ui/command.tsx
|
|
6260
6259
|
import * as React13 from "react";
|
|
6261
6260
|
import { Command as CommandPrimitive } from "cmdk";
|
|
6262
|
-
import {
|
|
6261
|
+
import { IconSearch } from "@tabler/icons-react";
|
|
6263
6262
|
import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6264
6263
|
var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
6265
6264
|
CommandPrimitive,
|
|
@@ -6274,7 +6273,7 @@ var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
6274
6273
|
));
|
|
6275
6274
|
Command.displayName = CommandPrimitive.displayName;
|
|
6276
6275
|
var CommandInput = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs33("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
6277
|
-
/* @__PURE__ */ jsx50(
|
|
6276
|
+
/* @__PURE__ */ jsx50(IconSearch, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
6278
6277
|
/* @__PURE__ */ jsx50(
|
|
6279
6278
|
CommandPrimitive.Input,
|
|
6280
6279
|
{
|
|
@@ -6342,9 +6341,9 @@ import {
|
|
|
6342
6341
|
IconArrowsMinimize,
|
|
6343
6342
|
IconCopyPlus,
|
|
6344
6343
|
IconPin,
|
|
6345
|
-
IconSearch,
|
|
6344
|
+
IconSearch as IconSearch2,
|
|
6346
6345
|
IconSquareX,
|
|
6347
|
-
IconX as
|
|
6346
|
+
IconX as IconX3
|
|
6348
6347
|
} from "@tabler/icons-react";
|
|
6349
6348
|
|
|
6350
6349
|
// src/components/databrowser/components/tab-type-icon.tsx
|
|
@@ -6399,7 +6398,7 @@ var Tab = ({ id, isList }) => {
|
|
|
6399
6398
|
const hasPinnedTabs = tabs.some(([, data]) => data.pinned);
|
|
6400
6399
|
const { ref, isOverflow } = useOverflow();
|
|
6401
6400
|
const label = search.key || selectedKey;
|
|
6402
|
-
const iconNode = search.key ? /* @__PURE__ */ jsx52(
|
|
6401
|
+
const iconNode = search.key ? /* @__PURE__ */ jsx52(IconSearch2, { size: 15 }) : selectedKey ? /* @__PURE__ */ jsx52(TabTypeIcon, { selectedKey }) : void 0;
|
|
6403
6402
|
const tabNode = /* @__PURE__ */ jsxs34(
|
|
6404
6403
|
"div",
|
|
6405
6404
|
{
|
|
@@ -6430,7 +6429,7 @@ var Tab = ({ id, isList }) => {
|
|
|
6430
6429
|
removeTab(id);
|
|
6431
6430
|
},
|
|
6432
6431
|
className: "p-1 text-zinc-300 transition-colors hover:text-zinc-500 dark:text-zinc-400",
|
|
6433
|
-
children: /* @__PURE__ */ jsx52(
|
|
6432
|
+
children: /* @__PURE__ */ jsx52(IconX3, { size: 16 })
|
|
6434
6433
|
}
|
|
6435
6434
|
)
|
|
6436
6435
|
]
|
|
@@ -6455,7 +6454,7 @@ var Tab = ({ id, isList }) => {
|
|
|
6455
6454
|
] }),
|
|
6456
6455
|
/* @__PURE__ */ jsx52(ContextMenuSeparator, {}),
|
|
6457
6456
|
/* @__PURE__ */ jsxs34(ContextMenuItem, { onSelect: () => forceRemoveTab(id), className: "gap-2", children: [
|
|
6458
|
-
/* @__PURE__ */ jsx52(
|
|
6457
|
+
/* @__PURE__ */ jsx52(IconX3, { size: 16 }),
|
|
6459
6458
|
"Close Tab"
|
|
6460
6459
|
] }),
|
|
6461
6460
|
/* @__PURE__ */ jsxs34(ContextMenuItem, { onSelect: () => closeOtherTabs(id), className: "gap-2", children: [
|
|
@@ -6720,7 +6719,7 @@ function AddTabButton() {
|
|
|
6720
6719
|
size: "icon-sm",
|
|
6721
6720
|
onClick: handleAddTab,
|
|
6722
6721
|
className: "flex-shrink-0 dark:bg-zinc-200",
|
|
6723
|
-
children: /* @__PURE__ */ jsx53(
|
|
6722
|
+
children: /* @__PURE__ */ jsx53(IconPlus3, { className: "text-zinc-500 dark:text-zinc-600", size: 16 })
|
|
6724
6723
|
}
|
|
6725
6724
|
);
|
|
6726
6725
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "@upstash/react-redis-browser", "version": "v0.2.
|
|
1
|
+
{ "name": "@upstash/react-redis-browser", "version": "v0.2.11-canary", "main": "./dist/index.js", "types": "./dist/index.d.ts", "license": "MIT", "private": false, "publishConfig": { "access": "public" }, "bugs": { "url": "https://github.com/upstash/react-redis-browser/issues" }, "homepage": "https://github.com/upstash/react-redis-browser", "files": [ "./dist/**" ], "scripts": { "build": "tsup", "dev": "vite", "lint": "tsc && eslint", "fmt": "prettier --write ./src" }, "lint-staged": { "**/*.{js,ts,tsx}": [ "prettier --write", "eslint --fix" ] }, "dependencies": { "@dnd-kit/core": "^6.3.1", "@dnd-kit/modifiers": "^9.0.0", "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", "@ianvs/prettier-plugin-sort-imports": "^4.4.0", "@monaco-editor/react": "^4.6.0", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-context-menu": "^2.2.2", "@radix-ui/react-dialog": "^1.1.14", "@radix-ui/react-dropdown-menu": "^2.1.15", "@radix-ui/react-label": "^2.1.7", "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-portal": "^1.1.2", "@radix-ui/react-scroll-area": "^1.0.3", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-tooltip": "^1.0.7", "@tabler/icons-react": "^3.19.0", "@tanstack/react-query": "^5.32.0", "@types/bytes": "^3.1.4", "@upstash/redis": "^1.35.7", "bytes": "^3.1.2", "cmdk": "^1.1.1", "react-hook-form": "^7.53.0", "react-resizable-panels": "^2.1.4", "zustand": "5.0.0" }, "devDependencies": { "@playwright/test": "^1.56.1", "@types/node": "^22.8.4", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "8.4.0", "@typescript-eslint/parser": "8.4.0", "@vitejs/plugin-react": "^4.1.0", "autoprefixer": "^10.4.14", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "dotenv": "^16.5.0", "eslint": "9.10.0", "eslint-plugin-unicorn": "55.0.0", "postcss": "^8.4.31", "postcss-prefix-selector": "^2.1.0", "prettier": "^3.0.3", "prettier-plugin-tailwindcss": "^0.5.5", "react": "^18.3.1", "react-dom": "^18.3.1", "tailwind-merge": "^2.5.4", "tailwindcss": "^3.4.14", "tailwindcss-animate": "^1.0.7", "tsup": "^8.3.5", "typescript": "^5.0.4", "vite": "^5.4.10", "vite-tsconfig-paths": "^5.0.1" }, "peerDependencies": { "react": "^18.2.0 || ^19", "react-dom": "^18.2.0 || ^19" } }
|