@upstash/react-redis-browser 0.1.1 → 0.1.2-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.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3574,8 +3574,10 @@ var _reactcontextmenu = require('@radix-ui/react-context-menu'); var ContextMenu
|
|
|
3574
3574
|
// src/lib/portal-root.ts
|
|
3575
3575
|
var root;
|
|
3576
3576
|
if (typeof document !== "undefined") {
|
|
3577
|
-
|
|
3577
|
+
const id = "react-redis-browser-portal-root";
|
|
3578
|
+
root = _nullishCoalesce(document.querySelector(`#${id}`), () => ( document.createElement("div")));
|
|
3578
3579
|
root.classList.add("ups-db");
|
|
3580
|
+
root.id = "react-redis-browser-portal-root";
|
|
3579
3581
|
document.body.append(root);
|
|
3580
3582
|
}
|
|
3581
3583
|
var portalRoot = root;
|
|
@@ -5443,7 +5445,7 @@ function Sidebar() {
|
|
|
5443
5445
|
var RedisBrowser = ({ token, url }) => {
|
|
5444
5446
|
const credentials = _react.useMemo.call(void 0, () => ({ token, url }), [token, url]);
|
|
5445
5447
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacttooltip.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserProvider, { redisCredentials: credentials, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, KeysProvider, { children: [
|
|
5446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ups-db", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5448
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ups-db h-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5447
5449
|
_reactresizablepanels.PanelGroup,
|
|
5448
5450
|
{
|
|
5449
5451
|
autoSaveId: "persistence",
|
|
@@ -5451,7 +5453,7 @@ var RedisBrowser = ({ token, url }) => {
|
|
|
5451
5453
|
className: "h-full w-full gap-0.5 text-sm antialiased",
|
|
5452
5454
|
children: [
|
|
5453
5455
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactresizablepanels.Panel, { defaultSize: 30, minSize: 30, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sidebar, {}) }),
|
|
5454
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactresizablepanels.PanelResizeHandle, { className: "h-
|
|
5456
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactresizablepanels.PanelResizeHandle, { className: "h-full flex w-1.5 items-center justify-center rounded-full hover:bg-zinc-300/20", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5455
5457
|
_iconsreact.IconDotsVertical,
|
|
5456
5458
|
{
|
|
5457
5459
|
size: 16,
|
package/dist/index.mjs
CHANGED
|
@@ -3574,8 +3574,10 @@ import { CheckIcon, ChevronRightIcon, DotFilledIcon } from "@radix-ui/react-icon
|
|
|
3574
3574
|
// src/lib/portal-root.ts
|
|
3575
3575
|
var root;
|
|
3576
3576
|
if (typeof document !== "undefined") {
|
|
3577
|
-
|
|
3577
|
+
const id = "react-redis-browser-portal-root";
|
|
3578
|
+
root = document.querySelector(`#${id}`) ?? document.createElement("div");
|
|
3578
3579
|
root.classList.add("ups-db");
|
|
3580
|
+
root.id = "react-redis-browser-portal-root";
|
|
3579
3581
|
document.body.append(root);
|
|
3580
3582
|
}
|
|
3581
3583
|
var portalRoot = root;
|
|
@@ -5443,7 +5445,7 @@ import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
|
5443
5445
|
var RedisBrowser = ({ token, url }) => {
|
|
5444
5446
|
const credentials = useMemo6(() => ({ token, url }), [token, url]);
|
|
5445
5447
|
return /* @__PURE__ */ jsx42(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx42(TooltipProvider, { children: /* @__PURE__ */ jsx42(DatabrowserProvider, { redisCredentials: credentials, children: /* @__PURE__ */ jsxs31(KeysProvider, { children: [
|
|
5446
|
-
/* @__PURE__ */ jsx42("div", { className: "ups-db", children: /* @__PURE__ */ jsxs31(
|
|
5448
|
+
/* @__PURE__ */ jsx42("div", { className: "ups-db h-full", children: /* @__PURE__ */ jsxs31(
|
|
5447
5449
|
PanelGroup,
|
|
5448
5450
|
{
|
|
5449
5451
|
autoSaveId: "persistence",
|
|
@@ -5451,7 +5453,7 @@ var RedisBrowser = ({ token, url }) => {
|
|
|
5451
5453
|
className: "h-full w-full gap-0.5 text-sm antialiased",
|
|
5452
5454
|
children: [
|
|
5453
5455
|
/* @__PURE__ */ jsx42(Panel, { defaultSize: 30, minSize: 30, children: /* @__PURE__ */ jsx42(Sidebar, {}) }),
|
|
5454
|
-
/* @__PURE__ */ jsx42(PanelResizeHandle, { className: "h-
|
|
5456
|
+
/* @__PURE__ */ jsx42(PanelResizeHandle, { className: "h-full flex w-1.5 items-center justify-center rounded-full hover:bg-zinc-300/20", children: /* @__PURE__ */ jsx42(
|
|
5455
5457
|
IconDotsVertical2,
|
|
5456
5458
|
{
|
|
5457
5459
|
size: 16,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "@upstash/react-redis-browser", "version": "v0.1.
|
|
1
|
+
{ "name": "@upstash/react-redis-browser", "version": "v0.1.2-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 ." }, "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.2", "@radix-ui/react-icons": "1.3.0", "@radix-ui/react-popover": "^1.0.7", "@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.31.6", "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" } }
|