Skip to content

Commit

Permalink
Update JS dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed May 14, 2024
1 parent a18d7f5 commit cd932fe
Show file tree
Hide file tree
Showing 6 changed files with 1,558 additions and 1,674 deletions.
2 changes: 1 addition & 1 deletion app/assets/builds/pages_core/admin-dist.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app/assets/builds/pages_core/admin-dist.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/javascript/components/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface Props {
export default function Toast(props: Props) {
const [fadeout, setFadeout] = useState(false);
const { toasts, error, notice, next } = useToastStore((state) => state);
const timerRef = useRef<number | null>(null);
const timerRef = useRef<ReturnType<typeof setTimeout>>(null);

const toast = toasts[0];

Expand Down
4 changes: 2 additions & 2 deletions app/javascript/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { start as startRails } from "@rails/ujs";
import Rails from "@rails/ujs";
import "react_ujs";
import { FC } from "react";

Expand All @@ -12,7 +12,7 @@ export function registerComponent(name: string, component: FC) {
}

export default function startPages() {
startRails();
Rails.start();
for (const name in Components) {
registerComponent(name, Components[name] as FC);
}
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": ["/dist/**/*"],
"files": [
"/dist/**/*"
],
"dependencies": {
"@fortawesome/fontawesome-free": "^6.2.1",
"@rails/ujs": "^6.1.4-1",
"@types/lodash": "^4.14.194",
"@types/rails__ujs": "^6.0.1",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.2.0",
"@rails/ujs": "7.1.3-2",
"@types/lodash": "^4.17.1",
"@types/rails__ujs": "^6.0.4",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.18",
"cssnano": "^6.1.0",
"lodash": "^4.17.21",
Expand All @@ -29,18 +31,19 @@
"postcss-preset-env": "^9.5.0",
"postcss-url": "^10.1.3",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-image-crop": "^5.0.0",
"react_ujs": "^2.6.2",
"react_ujs": "^3.2.0",
"typescript": "^5.4.5",
"zustand": "^4.5.2"
},
"devDependencies": {
"@types/prop-types": "^15",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"dependency-cruiser": "^16.2.3",
"esbuild": "^0.20.1",
"esbuild": "^0.21.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.0",
Expand Down
Loading

0 comments on commit cd932fe

Please sign in to comment.