@upstash/react-redis-browser 0.1.11-canary → 0.1.11-canary-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/dist/index.css CHANGED
@@ -392,6 +392,9 @@
392
392
  .ups-db .bottom-0 {
393
393
  bottom: 0px;
394
394
  }
395
+ .ups-db .left-0 {
396
+ left: 0px;
397
+ }
395
398
  .ups-db .left-2 {
396
399
  left: 0.5rem;
397
400
  }
@@ -431,6 +434,9 @@
431
434
  .ups-db .top-\[50\%\] {
432
435
  top: 50%;
433
436
  }
437
+ .ups-db .-z-10 {
438
+ z-index: -10;
439
+ }
434
440
  .ups-db .z-50 {
435
441
  z-index: 50;
436
442
  }
@@ -543,6 +549,9 @@
543
549
  .ups-db .h-\[100px\] {
544
550
  height: 100px;
545
551
  }
552
+ .ups-db .h-\[1px\] {
553
+ height: 1px;
554
+ }
546
555
  .ups-db .h-\[var\(--radix-select-trigger-height\)\] {
547
556
  height: var(--radix-select-trigger-height);
548
557
  }
@@ -796,6 +805,9 @@
796
805
  .ups-db .overflow-x-hidden {
797
806
  overflow-x: hidden;
798
807
  }
808
+ .ups-db .overflow-x-scroll {
809
+ overflow-x: scroll;
810
+ }
799
811
  .ups-db .truncate {
800
812
  overflow: hidden;
801
813
  text-overflow: ellipsis;
@@ -1005,6 +1017,10 @@
1005
1017
  --tw-bg-opacity: 1;
1006
1018
  background-color: rgb(244 244 245 / var(--tw-bg-opacity));
1007
1019
  }
1020
+ .ups-db .bg-zinc-200 {
1021
+ --tw-bg-opacity: 1;
1022
+ background-color: rgb(228 228 231 / var(--tw-bg-opacity));
1023
+ }
1008
1024
  .ups-db .bg-zinc-900 {
1009
1025
  --tw-bg-opacity: 1;
1010
1026
  background-color: rgb(24 24 27 / var(--tw-bg-opacity));
@@ -1074,6 +1090,9 @@
1074
1090
  padding-top: 3px;
1075
1091
  padding-bottom: 3px;
1076
1092
  }
1093
+ .ups-db .pb-\[1px\] {
1094
+ padding-bottom: 1px;
1095
+ }
1077
1096
  .ups-db .pl-0 {
1078
1097
  padding-left: 0px;
1079
1098
  }
@@ -1967,6 +1986,9 @@
1967
1986
  font-size: 0.75rem;
1968
1987
  line-height: 1rem;
1969
1988
  }
1989
+ .ups-db .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
1990
+ display: none;
1991
+ }
1970
1992
  .ups-db .\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
1971
1993
  padding-right: 0px;
1972
1994
  }
package/dist/index.d.mts CHANGED
@@ -5,6 +5,8 @@ type RedisCredentials = {
5
5
  token?: string;
6
6
  };
7
7
 
8
- declare const RedisBrowser: ({ token, url }: RedisCredentials) => react_jsx_runtime.JSX.Element;
8
+ declare const RedisBrowser: ({ token, url, hideTabs, }: RedisCredentials & {
9
+ hideTabs?: boolean;
10
+ }) => react_jsx_runtime.JSX.Element;
9
11
 
10
12
  export { RedisBrowser };
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ type RedisCredentials = {
5
5
  token?: string;
6
6
  };
7
7
 
8
- declare const RedisBrowser: ({ token, url }: RedisCredentials) => react_jsx_runtime.JSX.Element;
8
+ declare const RedisBrowser: ({ token, url, hideTabs, }: RedisCredentials & {
9
+ hideTabs?: boolean;
10
+ }) => react_jsx_runtime.JSX.Element;
9
11
 
10
12
  export { RedisBrowser };
package/dist/index.js CHANGED
@@ -4378,7 +4378,7 @@ var ItemContextMenu = ({
4378
4378
 
4379
4379
  var _reactscrollarea = require('@radix-ui/react-scroll-area'); var ScrollAreaPrimitive = _interopRequireWildcard(_reactscrollarea);
4380
4380
 
4381
- var ScrollArea = React9.forwardRef(({ className, children, onScroll, roundedInherit = true, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4381
+ var ScrollArea = React9.forwardRef(({ className, children, onScroll, disableRoundedInherit = false, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4382
4382
  ScrollAreaPrimitive.Root,
4383
4383
  {
4384
4384
  ref,
@@ -4389,7 +4389,7 @@ var ScrollArea = React9.forwardRef(({ className, children, onScroll, roundedInhe
4389
4389
  ScrollAreaPrimitive.Viewport,
4390
4390
  {
4391
4391
  onScroll,
4392
- className: cn("h-full w-full [&>div]:!block", roundedInherit && "rounded-[inherit]"),
4392
+ className: cn("h-full w-full [&>div]:!block", !disableRoundedInherit && "rounded-[inherit]"),
4393
4393
  children
4394
4394
  }
4395
4395
  ),
@@ -4436,9 +4436,12 @@ var InfiniteScroll = ({
4436
4436
  ScrollArea,
4437
4437
  {
4438
4438
  type: "always",
4439
- className: "block h-full w-full overflow-visible rounded-lg border border-zinc-200 bg-white p-1 pr-3 transition-all",
4440
4439
  onScroll: handleScroll,
4441
4440
  ...props,
4441
+ className: cn(
4442
+ "block h-full w-full overflow-visible rounded-lg border border-zinc-200 bg-white p-1 pr-3 transition-all",
4443
+ props.className
4444
+ ),
4442
4445
  children: [
4443
4446
  children,
4444
4447
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[100px] justify-center py-2 text-zinc-300", children: query.isFetching && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconLoader2, { className: "animate-spin", size: 16 }) })
@@ -5836,7 +5839,7 @@ function Sidebar() {
5836
5839
  ] }),
5837
5840
  query.isLoading && keys.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LoadingSkeleton, {}) : keys.length > 0 ? (
5838
5841
  // Infinite scroll already has a loader at the bottom
5839
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfiniteScroll, { query, roundedInherit: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeysList, {}) })
5842
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfiniteScroll, { query, disableRoundedInherit: true, className: "min-h-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeysList, {}) })
5840
5843
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Empty, {})
5841
5844
  ] });
5842
5845
  }
@@ -5844,7 +5847,7 @@ function Sidebar() {
5844
5847
  // src/components/databrowser/components/databrowser-instance.tsx
5845
5848
 
5846
5849
  var DatabrowserInstance = ({ hidden }) => {
5847
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeysProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("h-full rounded-md bg-zinc-100", hidden && "hidden"), children: [
5850
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeysProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("min-h-0 grow rounded-md bg-zinc-100", hidden && "hidden"), children: [
5848
5851
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5849
5852
  _reactresizablepanels.PanelGroup,
5850
5853
  {
@@ -5883,14 +5886,14 @@ var Tab = ({ id }) => {
5883
5886
  {
5884
5887
  onClick: () => selectTab(id),
5885
5888
  className: cn(
5886
- "flex h-9 translate-y-[1px] cursor-pointer items-center gap-2 rounded-t-lg border border-zinc-200 px-3 text-[13px] transition-colors",
5889
+ "flex h-9 cursor-pointer items-center gap-2 rounded-t-lg border border-zinc-200 px-3 text-[13px] transition-colors",
5887
5890
  id === selectedTab ? "border-b-white bg-white text-zinc-900" : "bg-zinc-100 hover:bg-zinc-50"
5888
5891
  ),
5889
5892
  children: [
5890
5893
  tabs[id].selectedKey ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5891
5894
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabTypeIcon, { selectedKey: tabs[id].selectedKey }),
5892
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-32 truncate", children: tabs[id].selectedKey })
5893
- ] }) : "New Tab",
5895
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-32 truncate whitespace-nowrap", children: tabs[id].selectedKey })
5896
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: "New Tab" }),
5894
5897
  Object.keys(tabs).length > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5895
5898
  "button",
5896
5899
  {
@@ -5908,33 +5911,47 @@ var Tab = ({ id }) => {
5908
5911
  };
5909
5912
  var DatabrowserTabs = () => {
5910
5913
  const { tabs, addTab } = useDatabrowserStore();
5911
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-2 flex items-center gap-1 border-b border-zinc-200", children: [
5912
- Object.keys(tabs).map((id) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tab, { id }, id)),
5913
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5914
- Button,
5915
- {
5916
- variant: "secondary",
5917
- size: "icon-sm",
5918
- onClick: addTab,
5919
- className: "mr-1 flex-shrink-0",
5920
- title: "Add new tab",
5921
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconPlus, { className: "text-zinc-500", size: 16 })
5922
- }
5923
- )
5914
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-2 shrink-0", children: [
5915
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 -z-10 h-[1px] w-full bg-zinc-200" }),
5916
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "scrollbar-hide flex translate-y-[1px] items-center gap-1 overflow-x-scroll pb-[1px] [&::-webkit-scrollbar]:hidden", children: [
5917
+ Object.keys(tabs).map((id) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tab, { id }, id)),
5918
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5919
+ Button,
5920
+ {
5921
+ variant: "secondary",
5922
+ size: "icon-sm",
5923
+ onClick: addTab,
5924
+ className: "mr-1 flex-shrink-0",
5925
+ title: "Add new tab",
5926
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconPlus, { className: "text-zinc-500", size: 16 })
5927
+ }
5928
+ )
5929
+ ] })
5924
5930
  ] });
5925
5931
  };
5926
5932
 
5927
5933
  // src/components/databrowser/index.tsx
5928
5934
 
5929
- var RedisBrowser = ({ token, url }) => {
5935
+ var RedisBrowser = ({
5936
+ token,
5937
+ url,
5938
+ hideTabs
5939
+ }) => {
5930
5940
  const credentials = _react.useMemo.call(void 0, () => ({ token, url }), [token, url]);
5931
5941
  _react.useEffect.call(void 0, () => {
5932
5942
  queryClient.resetQueries();
5933
5943
  }, [credentials.url]);
5934
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacttooltip.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ups-db", style: { height: "100%" }, children: [
5935
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserTabs, {}),
5936
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserInstances, {})
5937
- ] }) }) }) }) });
5944
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacttooltip.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5945
+ "div",
5946
+ {
5947
+ className: "ups-db",
5948
+ style: { height: "100%", display: "flex", flexDirection: "column" },
5949
+ children: [
5950
+ !hideTabs && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserTabs, {}),
5951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserInstances, {})
5952
+ ]
5953
+ }
5954
+ ) }) }) }) });
5938
5955
  };
5939
5956
  var DatabrowserInstances = () => {
5940
5957
  const { tabs, selectedTab, addTab } = useDatabrowserStore();
package/dist/index.mjs CHANGED
@@ -4378,7 +4378,7 @@ import { IconLoader2 } from "@tabler/icons-react";
4378
4378
  import * as React9 from "react";
4379
4379
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
4380
4380
  import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
4381
- var ScrollArea = React9.forwardRef(({ className, children, onScroll, roundedInherit = true, ...props }, ref) => /* @__PURE__ */ jsxs12(
4381
+ var ScrollArea = React9.forwardRef(({ className, children, onScroll, disableRoundedInherit = false, ...props }, ref) => /* @__PURE__ */ jsxs12(
4382
4382
  ScrollAreaPrimitive.Root,
4383
4383
  {
4384
4384
  ref,
@@ -4389,7 +4389,7 @@ var ScrollArea = React9.forwardRef(({ className, children, onScroll, roundedInhe
4389
4389
  ScrollAreaPrimitive.Viewport,
4390
4390
  {
4391
4391
  onScroll,
4392
- className: cn("h-full w-full [&>div]:!block", roundedInherit && "rounded-[inherit]"),
4392
+ className: cn("h-full w-full [&>div]:!block", !disableRoundedInherit && "rounded-[inherit]"),
4393
4393
  children
4394
4394
  }
4395
4395
  ),
@@ -4436,9 +4436,12 @@ var InfiniteScroll = ({
4436
4436
  ScrollArea,
4437
4437
  {
4438
4438
  type: "always",
4439
- className: "block h-full w-full overflow-visible rounded-lg border border-zinc-200 bg-white p-1 pr-3 transition-all",
4440
4439
  onScroll: handleScroll,
4441
4440
  ...props,
4441
+ className: cn(
4442
+ "block h-full w-full overflow-visible rounded-lg border border-zinc-200 bg-white p-1 pr-3 transition-all",
4443
+ props.className
4444
+ ),
4442
4445
  children: [
4443
4446
  children,
4444
4447
  /* @__PURE__ */ jsx22("div", { className: "flex h-[100px] justify-center py-2 text-zinc-300", children: query.isFetching && /* @__PURE__ */ jsx22(IconLoader2, { className: "animate-spin", size: 16 }) })
@@ -5836,7 +5839,7 @@ function Sidebar() {
5836
5839
  ] }),
5837
5840
  query.isLoading && keys.length === 0 ? /* @__PURE__ */ jsx46(LoadingSkeleton, {}) : keys.length > 0 ? (
5838
5841
  // Infinite scroll already has a loader at the bottom
5839
- /* @__PURE__ */ jsx46(InfiniteScroll, { query, roundedInherit: false, children: /* @__PURE__ */ jsx46(KeysList, {}) })
5842
+ /* @__PURE__ */ jsx46(InfiniteScroll, { query, disableRoundedInherit: true, className: "min-h-0", children: /* @__PURE__ */ jsx46(KeysList, {}) })
5840
5843
  ) : /* @__PURE__ */ jsx46(Empty, {})
5841
5844
  ] });
5842
5845
  }
@@ -5844,7 +5847,7 @@ function Sidebar() {
5844
5847
  // src/components/databrowser/components/databrowser-instance.tsx
5845
5848
  import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
5846
5849
  var DatabrowserInstance = ({ hidden }) => {
5847
- return /* @__PURE__ */ jsx47(KeysProvider, { children: /* @__PURE__ */ jsxs32("div", { className: cn("h-full rounded-md bg-zinc-100", hidden && "hidden"), children: [
5850
+ return /* @__PURE__ */ jsx47(KeysProvider, { children: /* @__PURE__ */ jsxs32("div", { className: cn("min-h-0 grow rounded-md bg-zinc-100", hidden && "hidden"), children: [
5848
5851
  /* @__PURE__ */ jsxs32(
5849
5852
  PanelGroup,
5850
5853
  {
@@ -5883,14 +5886,14 @@ var Tab = ({ id }) => {
5883
5886
  {
5884
5887
  onClick: () => selectTab(id),
5885
5888
  className: cn(
5886
- "flex h-9 translate-y-[1px] cursor-pointer items-center gap-2 rounded-t-lg border border-zinc-200 px-3 text-[13px] transition-colors",
5889
+ "flex h-9 cursor-pointer items-center gap-2 rounded-t-lg border border-zinc-200 px-3 text-[13px] transition-colors",
5887
5890
  id === selectedTab ? "border-b-white bg-white text-zinc-900" : "bg-zinc-100 hover:bg-zinc-50"
5888
5891
  ),
5889
5892
  children: [
5890
5893
  tabs[id].selectedKey ? /* @__PURE__ */ jsxs33(Fragment10, { children: [
5891
5894
  /* @__PURE__ */ jsx49(TabTypeIcon, { selectedKey: tabs[id].selectedKey }),
5892
- /* @__PURE__ */ jsx49("span", { className: "max-w-32 truncate", children: tabs[id].selectedKey })
5893
- ] }) : "New Tab",
5895
+ /* @__PURE__ */ jsx49("span", { className: "max-w-32 truncate whitespace-nowrap", children: tabs[id].selectedKey })
5896
+ ] }) : /* @__PURE__ */ jsx49("span", { className: "whitespace-nowrap", children: "New Tab" }),
5894
5897
  Object.keys(tabs).length > 1 && /* @__PURE__ */ jsx49(
5895
5898
  "button",
5896
5899
  {
@@ -5908,33 +5911,47 @@ var Tab = ({ id }) => {
5908
5911
  };
5909
5912
  var DatabrowserTabs = () => {
5910
5913
  const { tabs, addTab } = useDatabrowserStore();
5911
- return /* @__PURE__ */ jsxs33("div", { className: "mb-2 flex items-center gap-1 border-b border-zinc-200", children: [
5912
- Object.keys(tabs).map((id) => /* @__PURE__ */ jsx49(Tab, { id }, id)),
5913
- /* @__PURE__ */ jsx49(
5914
- Button,
5915
- {
5916
- variant: "secondary",
5917
- size: "icon-sm",
5918
- onClick: addTab,
5919
- className: "mr-1 flex-shrink-0",
5920
- title: "Add new tab",
5921
- children: /* @__PURE__ */ jsx49(IconPlus2, { className: "text-zinc-500", size: 16 })
5922
- }
5923
- )
5914
+ return /* @__PURE__ */ jsxs33("div", { className: "relative mb-2 shrink-0", children: [
5915
+ /* @__PURE__ */ jsx49("div", { className: "absolute bottom-0 left-0 right-0 -z-10 h-[1px] w-full bg-zinc-200" }),
5916
+ /* @__PURE__ */ jsxs33("div", { className: "scrollbar-hide flex translate-y-[1px] items-center gap-1 overflow-x-scroll pb-[1px] [&::-webkit-scrollbar]:hidden", children: [
5917
+ Object.keys(tabs).map((id) => /* @__PURE__ */ jsx49(Tab, { id }, id)),
5918
+ /* @__PURE__ */ jsx49(
5919
+ Button,
5920
+ {
5921
+ variant: "secondary",
5922
+ size: "icon-sm",
5923
+ onClick: addTab,
5924
+ className: "mr-1 flex-shrink-0",
5925
+ title: "Add new tab",
5926
+ children: /* @__PURE__ */ jsx49(IconPlus2, { className: "text-zinc-500", size: 16 })
5927
+ }
5928
+ )
5929
+ ] })
5924
5930
  ] });
5925
5931
  };
5926
5932
 
5927
5933
  // src/components/databrowser/index.tsx
5928
5934
  import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
5929
- var RedisBrowser = ({ token, url }) => {
5935
+ var RedisBrowser = ({
5936
+ token,
5937
+ url,
5938
+ hideTabs
5939
+ }) => {
5930
5940
  const credentials = useMemo8(() => ({ token, url }), [token, url]);
5931
5941
  useEffect11(() => {
5932
5942
  queryClient.resetQueries();
5933
5943
  }, [credentials.url]);
5934
- return /* @__PURE__ */ jsx50(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx50(RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ jsx50(DatabrowserProvider, { children: /* @__PURE__ */ jsx50(TooltipProvider, { children: /* @__PURE__ */ jsxs34("div", { className: "ups-db", style: { height: "100%" }, children: [
5935
- /* @__PURE__ */ jsx50(DatabrowserTabs, {}),
5936
- /* @__PURE__ */ jsx50(DatabrowserInstances, {})
5937
- ] }) }) }) }) });
5944
+ return /* @__PURE__ */ jsx50(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx50(RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ jsx50(DatabrowserProvider, { children: /* @__PURE__ */ jsx50(TooltipProvider, { children: /* @__PURE__ */ jsxs34(
5945
+ "div",
5946
+ {
5947
+ className: "ups-db",
5948
+ style: { height: "100%", display: "flex", flexDirection: "column" },
5949
+ children: [
5950
+ !hideTabs && /* @__PURE__ */ jsx50(DatabrowserTabs, {}),
5951
+ /* @__PURE__ */ jsx50(DatabrowserInstances, {})
5952
+ ]
5953
+ }
5954
+ ) }) }) }) });
5938
5955
  };
5939
5956
  var DatabrowserInstances = () => {
5940
5957
  const { tabs, selectedTab, addTab } = useDatabrowserStore();
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@upstash/react-redis-browser", "version": "v0.1.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": { "@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.0.5", "@radix-ui/react-dropdown-menu": "^2.1.15", "@radix-ui/react-icons": "1.3.0", "@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.34.8", "bytes": "^3.1.2", "react-hook-form": "^7.53.0", "react-resizable-panels": "^2.1.4", "zustand": "5.0.0" }, "devDependencies": { "postcss-prefix-selector": "^2.1.0", "@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", "eslint": "9.10.0", "eslint-plugin-unicorn": "55.0.0", "postcss": "^8.4.31", "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" } }
1
+ { "name": "@upstash/react-redis-browser", "version": "v0.1.11-canary-2", "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": { "@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.0.5", "@radix-ui/react-dropdown-menu": "^2.1.15", "@radix-ui/react-icons": "1.3.0", "@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.34.8", "bytes": "^3.1.2", "react-hook-form": "^7.53.0", "react-resizable-panels": "^2.1.4", "zustand": "5.0.0" }, "devDependencies": { "postcss-prefix-selector": "^2.1.0", "@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", "eslint": "9.10.0", "eslint-plugin-unicorn": "55.0.0", "postcss": "^8.4.31", "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" } }