Skip to content

Commit

Permalink
Merge pull request #61 from reg-viz/chore/deps
Browse files Browse the repository at this point in the history
chore: update deps
  • Loading branch information
wadackel authored Apr 28, 2024
2 parents 0f50c46 + 4d29d1e commit e01acc0
Show file tree
Hide file tree
Showing 3 changed files with 540 additions and 481 deletions.
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@
"dependencies": {
"@vanilla-extract/css": "^1.14.2",
"body-scroll-lock": "^3.1.5",
"clipboard-polyfill": "^3.0.2",
"clsx": "^2.1.0",
"clsx": "^2.1.1",
"debounce": "^2.0.0",
"focus-trap": "^7.5.4",
"fuse.js": "^7.0.0",
"history": "^5.3.0",
"jotai": "^2.8.0",
"mitt": "^3.0.1",
"query-string": "^7.0.1",
"rc-slider": "^10.5.0",
"re-resizable": "^6.9.11",
"react": "18.2.0",
"react-dom": "18.2.0",
"query-string": "^9.0.0",
"rc-slider": "^10.6.2",
"re-resizable": "^6.9.16",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-md-spinner": "^1.0.0",
"react-transition-group": "^4.4.5",
"tinykeys": "^2.1.0",
Expand All @@ -70,18 +69,18 @@
"x-img-diff-js": "^0.3.5"
},
"devDependencies": {
"@storybook/addon-essentials": "^8.0.8",
"@storybook/addon-interactions": "^8.0.8",
"@storybook/blocks": "^8.0.8",
"@storybook/react": "^8.0.8",
"@storybook/react-vite": "^8.0.8",
"@storybook/test": "^8.0.8",
"@storybook/addon-essentials": "^8.0.9",
"@storybook/addon-interactions": "^8.0.9",
"@storybook/blocks": "^8.0.9",
"@storybook/react": "^8.0.9",
"@storybook/react-vite": "^8.0.9",
"@storybook/test": "^8.0.9",
"@types/body-scroll-lock": "^3.1.2",
"@types/imagesloaded": "^4.1.6",
"@types/mousetrap": "^1.6.15",
"@types/node": "^20.12.7",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@types/react-measure": "^2.0.12",
"@types/react-transition-group": "^4.4.10",
"@vanilla-extract/vite-plugin": "^4.0.7",
Expand All @@ -91,20 +90,20 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"globals": "^15.0.0",
"eslint-plugin-react-hooks": "^4.6.2",
"globals": "^15.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.4",
"prettier-plugin-packagejson": "2.4.12",
"prettier-plugin-packagejson": "2.5.0",
"rimraf": "^5.0.5",
"scaffdog": "^3.0.0",
"storybook": "^8.0.8",
"storybook": "^8.0.9",
"typescript": "^5.4.5",
"typescript-eslint": "^7.6.0",
"vite": "^5.2.8",
"vite-plugin-static-copy": "^1.0.2",
"vitest": "^1.5.0"
"typescript-eslint": "^7.7.1",
"vite": "^5.2.10",
"vite-plugin-static-copy": "^1.0.3",
"vitest": "^1.5.2"
}
}
5 changes: 3 additions & 2 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as clipboard from 'clipboard-polyfill';
import React, { useCallback, useRef, useState } from 'react';
import type { RegEntity } from '../../types/reg';
import { IconButton } from '../IconButton';
Expand Down Expand Up @@ -58,7 +57,9 @@ export const Card = ({ href, entity, menus, onCopy }: Props) => {
e.stopPropagation();
setOpen(false);
const { origin, pathname } = window.location;
await clipboard.writeText(`${origin}${pathname}?id=${entity.id}`);
await window.navigator.clipboard.writeText(
`${origin}${pathname}?id=${entity.id}`,
);
onCopy();
},
[entity.id, onCopy],
Expand Down
Loading

0 comments on commit e01acc0

Please sign in to comment.