Skip to content

Commit

Permalink
Merge pull request #214 from DNDACADEMY/develop
Browse files Browse the repository at this point in the history
chore: update pdf-viewer version v8 to v9 (#213)
  • Loading branch information
saseungmin authored Oct 28, 2024
2 parents b1952ef + cbff930 commit d4c9cbd
Show file tree
Hide file tree
Showing 19 changed files with 445 additions and 435 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
697 changes: 353 additions & 344 deletions .yarn/releases/yarn-4.4.0.cjs → .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.4.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
4 changes: 2 additions & 2 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"framer-motion": "11.2.10",
"google-auth-library": "9.13.0",
"google-spreadsheet": "4.1.2",
"next": "14.2.12",
"next": "14.2.15",
"next-auth": "5.0.0-beta.19",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-perfect-scrollbar": "1.5.8"
},
"devDependencies": {
"@dnd-academy/eslint-config": "*",
"@next/eslint-plugin-next": "14.2.12",
"@next/eslint-plugin-next": "14.2.15",
"@testing-library/dom": "10.3.1",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "16.0.0",
Expand Down
8 changes: 4 additions & 4 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
"@channel.io/channel-web-sdk-loader": "1.1.7",
"@dnd-academy/core": "*",
"@dnd-academy/ui": "*",
"@next/third-parties": "14.2.12",
"@next/third-parties": "14.2.15",
"@vercel/blob": "0.23.4",
"clsx": "2.1.1",
"dayjs": "1.11.11",
"framer-motion": "11.2.10",
"next": "14.2.12",
"next": "14.2.15",
"qs": "6.12.1",
"react": "18.3.1",
"react-countup": "6.5.3",
"react-dom": "18.3.1",
"react-fast-marquee": "1.6.4",
"react-pdf": "8.0.2",
"react-pdf": "9.1.1",
"react-perfect-scrollbar": "1.5.8",
"react-responsive-masonry": "2.2.0",
"sanitize.css": "13.0.0",
Expand All @@ -56,7 +56,7 @@
"@chromatic-com/storybook": "2.0.2",
"@codecov/nextjs-webpack-plugin": "1.2.0",
"@dnd-academy/eslint-config": "*",
"@next/eslint-plugin-next": "14.2.12",
"@next/eslint-plugin-next": "14.2.15",
"@storybook/addon-essentials": "8.3.3",
"@storybook/addon-interactions": "8.3.3",
"@storybook/addon-links": "8.3.3",
Expand Down
5 changes: 1 addition & 4 deletions apps/web/src/components/molecules/PDFViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ import { ArrowExpandIcon, ArrowRightIcon } from '@/lib/assets/icons';

import styles from './index.module.scss';

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

type Props = {
url: string;
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/components/pages/ProjectPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import dynamic from 'next/dynamic';
import Image from 'next/image';

import { type Project } from '@dnd-academy/core';
import { Badge, Button, SkillTag } from '@dnd-academy/ui';

import DetailNavigation from '@/components/molecules/DetailNavigation';
import PDFViewer from '@/components/molecules/PDFViewer';
import ShareClipBoardCTA from '@/components/molecules/ShareClipBoardCTA';
import SocialIconLink from '@/components/molecules/SocialIconLink';
import ProjectCards from '@/components/organisms/ProjectCards';
Expand All @@ -16,6 +16,10 @@ import { getEntries } from '@/utils';

import styles from './index.module.scss';

const PDFViewer = dynamic(() => import('@/components/molecules/PDFViewer'), {
ssr: false,
});

type Props = {
project: Project;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
"email": "[email protected]",
"url": "https://github.com/DNDACADEMY/dnd-academy-v2/issues"
},
"packageManager": "yarn@4.4.0"
"packageManager": "yarn@4.5.1"
}
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@dnd-academy/core": "*",
"clsx": "2.1.1",
"framer-motion": "11.2.10",
"next": "14.2.12",
"next": "14.2.15",
"react": "18.3.1",
"react-countup": "6.5.3",
"react-dom": "18.3.1",
Expand All @@ -112,7 +112,7 @@
"peerDependencies": {
"clsx": "2.1.1",
"framer-motion": "11.2.10",
"next": "14.2.12",
"next": "14.2.15",
"react": "^18",
"react-countup": "6.5.3",
"react-dom": "^18",
Expand Down
Loading

0 comments on commit d4c9cbd

Please sign in to comment.