Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Nov 29, 2024
1 parent 04a9a46 commit 1424de4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 43 deletions.
2 changes: 2 additions & 0 deletions app/_components/insights-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ const InsightsPage = async ({
]);

if (!subject) return null;

const isTeamMember =
!!user && subject.team_id === user.app_metadata.active_team_id;

const shareOrSubjects = isPublic ? 'share' : 'subjects';
const searchObject = new URLSearchParams(searchParams);
const searchString = searchObject.size ? `?${searchObject.toString()}` : '';
Expand Down
24 changes: 8 additions & 16 deletions app/_components/insights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,16 @@ const Insights = ({
modifiers={[restrictToVerticalAxis]}
onDragEnd={({ active, over }: DndCore.DragEndEvent) => {
if (!over || active.id === over?.id) return;
const oldIndex = insights.findIndex(({ id }) => id === active.id);
const newIndex = insights.findIndex(({ id }) => id === over?.id);
const newInsights = DndSortable.arrayMove(insights, oldIndex, newIndex);

setInsights((insights) => {
const oldIndex = insights.findIndex(({ id }) => id === active.id);
const newIndex = insights.findIndex(({ id }) => id === over?.id);

const newInsights = DndSortable.arrayMove(
insights,
oldIndex,
newIndex,
);

void reorderInsights({
insightIds: newInsights.map((insight) => insight.id),
subjectId,
});

return newInsights;
void reorderInsights({
insightIds: newInsights.map((insight) => insight.id),
subjectId,
});

setInsights(newInsights);
}}
sensors={sensors}
>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"up": "bun update --latest && bun i [email protected] react@rc react-dom@rc"
},
"dependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/modifiers": "^8.0.0",
"@dnd-kit/sortable": "^9.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@heroicons/react": "^2.2.0",
"@lemonsqueezy/lemonsqueezy.js": "^4.0.0",
Expand All @@ -32,30 +32,30 @@
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-toggle-group": "^1.1.0",
"@supabase/ssr": "^0.5.2",
"@supabase/supabase-js": "^2.46.1",
"@supabase/supabase-js": "^2.46.2",
"@tailwindcss/typography": "^0.5.15",
"@tiptap/extension-bold": "^2.10.0",
"@tiptap/extension-bullet-list": "^2.10.0",
"@tiptap/extension-document": "^2.10.0",
"@tiptap/extension-history": "^2.10.0",
"@tiptap/extension-italic": "^2.10.0",
"@tiptap/extension-link": "^2.10.0",
"@tiptap/extension-list-item": "^2.10.0",
"@tiptap/extension-ordered-list": "^2.10.0",
"@tiptap/extension-paragraph": "^2.10.0",
"@tiptap/extension-placeholder": "^2.10.0",
"@tiptap/extension-text": "^2.10.0",
"@tiptap/extension-typography": "^2.10.0",
"@tiptap/extension-underline": "^2.10.0",
"@tiptap/extension-youtube": "^2.10.0",
"@tiptap/react": "^2.10.0",
"@tiptap/extension-bold": "^2.10.3",
"@tiptap/extension-bullet-list": "^2.10.3",
"@tiptap/extension-document": "^2.10.3",
"@tiptap/extension-history": "^2.10.3",
"@tiptap/extension-italic": "^2.10.3",
"@tiptap/extension-link": "^2.10.3",
"@tiptap/extension-list-item": "^2.10.3",
"@tiptap/extension-ordered-list": "^2.10.3",
"@tiptap/extension-paragraph": "^2.10.3",
"@tiptap/extension-placeholder": "^2.10.3",
"@tiptap/extension-text": "^2.10.3",
"@tiptap/extension-typography": "^2.10.3",
"@tiptap/extension-underline": "^2.10.3",
"@tiptap/extension-youtube": "^2.10.3",
"@tiptap/react": "^2.10.3",
"@types/humanize-duration": "^3.27.4",
"@types/lodash": "^4.17.13",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"@uidotdev/usehooks": "^2.4.1",
"@vercel/analytics": "^1.4.1",
"@visx/responsive": "^3.12.0",
Expand All @@ -65,11 +65,11 @@
"eslint-config-prettier": "^9.1.0",
"fuse.js": "^7.0.0",
"humanize-duration": "^3.32.1",
"json-2-csv": "^5.5.6",
"json-2-csv": "^5.5.7",
"lodash": "^4.17.21",
"nanoid": "^5.0.8",
"nanoid": "^5.0.9",
"next": "^15.0.3",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.6.9",
"react": "19.0.0-rc.1",
Expand All @@ -79,12 +79,12 @@
"react-select": "^5.8.3",
"resend": "^4.0.1",
"supabase": "^1.223.10",
"tailwind-merge": "^2.5.4",
"tailwind-merge": "^2.5.5",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"uuid": "^11.0.3",
"vaul": "^1.1.1",
"vercel": "^39.1.0",
"vercel": "^39.1.2",
"xss": "^1.0.15"
}
}

0 comments on commit 1424de4

Please sign in to comment.