diff --git a/examples/nextjs13/CHANGELOG.md b/examples/nextjs13/CHANGELOG.md index 5e672a1..ae293d9 100644 --- a/examples/nextjs13/CHANGELOG.md +++ b/examples/nextjs13/CHANGELOG.md @@ -1,5 +1,12 @@ # nextjs13 +## 0.3.5 + +### Patch Changes + +- Updated dependencies + - @upstash/react-databrowser@0.3.5 + ## 0.3.4 ### Patch Changes diff --git a/examples/nextjs13/package.json b/examples/nextjs13/package.json index 46d9028..13861d5 100644 --- a/examples/nextjs13/package.json +++ b/examples/nextjs13/package.json @@ -1,6 +1,6 @@ { "name": "nextjs13", - "version": "0.3.4", + "version": "0.3.5", "private": true, "scripts": { "dev": "next dev", diff --git a/packages/react-databrowser/CHANGELOG.md b/packages/react-databrowser/CHANGELOG.md index 7dd0200..bdf5f8c 100644 --- a/packages/react-databrowser/CHANGELOG.md +++ b/packages/react-databrowser/CHANGELOG.md @@ -1,5 +1,11 @@ # @upstash/react-databrowser +## 0.3.5 + +### Patch Changes + +- Added button to copy object fields + ## 0.3.4 ### Patch Changes diff --git a/packages/react-databrowser/package.json b/packages/react-databrowser/package.json index 573b70f..7350ca5 100644 --- a/packages/react-databrowser/package.json +++ b/packages/react-databrowser/package.json @@ -1,6 +1,6 @@ { "name": "@upstash/react-databrowser", - "version": "0.3.4", + "version": "0.3.5", "main": "./dist/index.js", "types": "./dist/index.d.ts", "license": "MIT", diff --git a/packages/react-databrowser/src/components/databrowser/components/data-display-container/data-table.tsx b/packages/react-databrowser/src/components/databrowser/components/data-display-container/data-table.tsx index 4855329..1e6330c 100644 --- a/packages/react-databrowser/src/components/databrowser/components/data-display-container/data-table.tsx +++ b/packages/react-databrowser/src/components/databrowser/components/data-display-container/data-table.tsx @@ -34,11 +34,24 @@ export const DataTable = ({ data, tableHeaders }: Props) => { > {item.value !== null ? ( -

{item.value}

+

{item.value}

+ {hoveredRow === idx && ( +
+ handleCopyClick(item.value !== null ? item.value.toString() : "")} + svgSize={{ h: 22, w: 22 }} + /> +
+ )}
) : null} {item.content !== null ? (