Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependency): next, framer-motion 의존성 업데이트 #91

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 78 additions & 76 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
"dependencies": {
"clsx": "2.1.1",
"dayjs": "1.11.11",
"framer-motion": "11.2.0",
"next": "14.2.3",
"framer-motion": "11.2.10",
"next": "14.2.4",
"pdfjs-dist": "3.11.174",
"qs": "6.12.1",
"react": "18.3.1",
"react-countup": "6.5.3",
Expand All @@ -51,7 +52,7 @@
"devDependencies": {
"@commitlint/cli": "18.4.4",
"@commitlint/config-conventional": "18.4.4",
"@next/eslint-plugin-next": "14.2.3",
"@next/eslint-plugin-next": "14.2.4",
"@storybook/addon-essentials": "7.6.8",
"@storybook/addon-interactions": "7.6.8",
"@storybook/addon-links": "7.6.8",
Expand Down
12 changes: 8 additions & 4 deletions src/components/molecules/PDFViewer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client';

import { useState } from 'react';
import { Document, Page, pdfjs } from 'react-pdf';
import { DocumentCallback } from 'react-pdf/dist/cjs/shared/types';
import {
Document, DocumentProps, Page, pdfjs,
} from 'react-pdf';

import clsx from 'clsx';
import useResizeObserver from 'use-resize-observer';
Expand All @@ -14,7 +15,10 @@ import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';
import styles from './index.module.scss';

pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
'pdfjs-dist/build/pdf.worker.min.js',
import.meta.url,
).toString();

type Props = {
url: string | null;
Expand All @@ -28,7 +32,7 @@ function PDFViewer({ url }: Props) {
box: 'border-box',
});

const onDocumentLoadSuccess = (data: DocumentCallback) => {
const onDocumentLoadSuccess: DocumentProps['onLoadSuccess'] = (data) => {
setNumPages(data.numPages);
};

Expand Down
113 changes: 57 additions & 56 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2510,81 +2510,81 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:14.2.3":
version: 14.2.3
resolution: "@next/env@npm:14.2.3"
checksum: 10/82b445331d46b4896dc86c0e33a7eaaa6f6abfd2408d49e1cb90fbfd6b26c698ea8e69c911ffe597e30fd8294db4e3445cde44b0771eabbfcd13663a9832a397
"@next/env@npm:14.2.4":
version: 14.2.4
resolution: "@next/env@npm:14.2.4"
checksum: 10/1f48bd96dd92a98b8e7ccfbd494f5893174721cb164dfda898728db37c0413fe0ca71872c1c7c56a46419a417137bc3aaa3e53543f938bea14589f68474bfd73
languageName: node
linkType: hard

"@next/eslint-plugin-next@npm:14.2.3":
version: 14.2.3
resolution: "@next/eslint-plugin-next@npm:14.2.3"
"@next/eslint-plugin-next@npm:14.2.4":
version: 14.2.4
resolution: "@next/eslint-plugin-next@npm:14.2.4"
dependencies:
glob: "npm:10.3.10"
checksum: 10/f462941b651cc570635d0098e9a66db7b8c8e18a585c399f4457dccba458b481618388881abc10f2f12d806f060e55e19159a82f3a19e15b5d094ee5cd2ff226
checksum: 10/44c94d13aea1937d202324ec66a902c473e6c5eafd3033049f95a43510255c8871084e5532d4c0211faf7ffc8c8027109b40a26ee164f0cf169cac28abe27097
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-darwin-arm64@npm:14.2.3"
"@next/swc-darwin-arm64@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-darwin-arm64@npm:14.2.4"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-darwin-x64@npm:14.2.3"
"@next/swc-darwin-x64@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-darwin-x64@npm:14.2.4"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-arm64-gnu@npm:14.2.3"
"@next/swc-linux-arm64-gnu@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-linux-arm64-gnu@npm:14.2.4"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-arm64-musl@npm:14.2.3"
"@next/swc-linux-arm64-musl@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-linux-arm64-musl@npm:14.2.4"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-x64-gnu@npm:14.2.3"
"@next/swc-linux-x64-gnu@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-linux-x64-gnu@npm:14.2.4"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-x64-musl@npm:14.2.3"
"@next/swc-linux-x64-musl@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-linux-x64-musl@npm:14.2.4"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-arm64-msvc@npm:14.2.3"
"@next/swc-win32-arm64-msvc@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-win32-arm64-msvc@npm:14.2.4"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-ia32-msvc@npm:14.2.3"
"@next/swc-win32-ia32-msvc@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-win32-ia32-msvc@npm:14.2.4"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-x64-msvc@npm:14.2.3"
"@next/swc-win32-x64-msvc@npm:14.2.4":
version: 14.2.4
resolution: "@next/swc-win32-x64-msvc@npm:14.2.4"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -8270,7 +8270,7 @@ __metadata:
dependencies:
"@commitlint/cli": "npm:18.4.4"
"@commitlint/config-conventional": "npm:18.4.4"
"@next/eslint-plugin-next": "npm:14.2.3"
"@next/eslint-plugin-next": "npm:14.2.4"
"@storybook/addon-essentials": "npm:7.6.8"
"@storybook/addon-interactions": "npm:7.6.8"
"@storybook/addon-links": "npm:7.6.8"
Expand Down Expand Up @@ -8310,12 +8310,13 @@ __metadata:
eslint-plugin-storybook: "npm:0.6.15"
eslint-plugin-testing-library: "npm:6.2.0"
eslint-plugin-unused-imports: "npm:3.2.0"
framer-motion: "npm:11.2.0"
framer-motion: "npm:11.2.10"
husky: "npm:8.0.3"
jest: "npm:29.7.0"
jest-environment-jsdom: "npm:29.7.0"
lint-staged: "npm:15.2.0"
next: "npm:14.2.3"
next: "npm:14.2.4"
pdfjs-dist: "npm:3.11.174"
postcss: "npm:8.4.32"
postcss-scss: "npm:4.0.9"
prop-types: "npm:15.8.1"
Expand Down Expand Up @@ -10031,9 +10032,9 @@ __metadata:
languageName: node
linkType: hard

"framer-motion@npm:11.2.0":
version: 11.2.0
resolution: "framer-motion@npm:11.2.0"
"framer-motion@npm:11.2.10":
version: 11.2.10
resolution: "framer-motion@npm:11.2.10"
dependencies:
tslib: "npm:^2.4.0"
peerDependencies:
Expand All @@ -10047,7 +10048,7 @@ __metadata:
optional: true
react-dom:
optional: true
checksum: 10/8dfda743e394067f3ccec8b397992a4f2c91966ee349aa5928852fab6ffe4bceafef85820d133a1bec74fc63b893ed069147c94ea91c006aff6d727ecd49e52c
checksum: 10/3f09356c08700f5f405b6259617d9eb3f49d49770efe15a81211bc41625001485f242fe2b44f6de657e707cd2ac766ca243bab72192dc948672525d331628a5d
languageName: node
linkType: hard

Expand Down Expand Up @@ -13449,20 +13450,20 @@ __metadata:
languageName: node
linkType: hard

"next@npm:14.2.3":
version: 14.2.3
resolution: "next@npm:14.2.3"
"next@npm:14.2.4":
version: 14.2.4
resolution: "next@npm:14.2.4"
dependencies:
"@next/env": "npm:14.2.3"
"@next/swc-darwin-arm64": "npm:14.2.3"
"@next/swc-darwin-x64": "npm:14.2.3"
"@next/swc-linux-arm64-gnu": "npm:14.2.3"
"@next/swc-linux-arm64-musl": "npm:14.2.3"
"@next/swc-linux-x64-gnu": "npm:14.2.3"
"@next/swc-linux-x64-musl": "npm:14.2.3"
"@next/swc-win32-arm64-msvc": "npm:14.2.3"
"@next/swc-win32-ia32-msvc": "npm:14.2.3"
"@next/swc-win32-x64-msvc": "npm:14.2.3"
"@next/env": "npm:14.2.4"
"@next/swc-darwin-arm64": "npm:14.2.4"
"@next/swc-darwin-x64": "npm:14.2.4"
"@next/swc-linux-arm64-gnu": "npm:14.2.4"
"@next/swc-linux-arm64-musl": "npm:14.2.4"
"@next/swc-linux-x64-gnu": "npm:14.2.4"
"@next/swc-linux-x64-musl": "npm:14.2.4"
"@next/swc-win32-arm64-msvc": "npm:14.2.4"
"@next/swc-win32-ia32-msvc": "npm:14.2.4"
"@next/swc-win32-x64-msvc": "npm:14.2.4"
"@swc/helpers": "npm:0.5.5"
busboy: "npm:1.6.0"
caniuse-lite: "npm:^1.0.30001579"
Expand Down Expand Up @@ -13503,7 +13504,7 @@ __metadata:
optional: true
bin:
next: dist/bin/next
checksum: 10/666c9770206ce693732a6d772297f1ddb3ce72f59862fa4cd104c5536da596026f758c4c9256ea790cf22d1bb8a15e27e5ea9455c948f72a9e3ca61fb745b0f5
checksum: 10/5bf2ccb4c6b0076a61b875a1112d34a31f5afc9d5f2676acf6c8151b425c38d289b951de70b598ad6ed9fa6be5fa3c215d1d9b462ba2b72075cb80501fd9fd07
languageName: node
linkType: hard

Expand Down
Loading