Skip to content

Commit

Permalink
fix: replace framer-motion to motion
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Dec 8, 2024
1 parent c15156a commit 116ab0e
Show file tree
Hide file tree
Showing 13 changed files with 72 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"mime-types": "^2.1.35",
"mobx": "^6.13.3",
"mobx-react-lite": "^4.0.7",
"motion": "^11.13.1",
"ncp": "^2.0.0",
"next": "^14.2.5",
"next-auth": "^4.24.7",
Expand Down
60 changes: 60 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/BlinkoAddButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ... existing imports ...
import { useState, useRef, TouchEvent } from 'react';
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import { Icon } from '@iconify/react';
import { observer } from 'mobx-react-lite';
import { useMediaQuery } from 'usehooks-ts';
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlinkoAi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Popover, PopoverTrigger, PopoverContent } from "@nextui-org/popover";
import { Image, Textarea } from "@nextui-org/react";
import { RootStore } from "@/store";
import { BlinkoStore } from "@/store/blinkoStore";
import { motion } from "framer-motion"
import { motion } from "motion/react"
import { AiStore } from "@/store/aiStore";
import { useEffect, useRef } from "react";
import { useMediaQuery } from "usehooks-ts";
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlinkoCard/expandContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { helper } from "@/lib/helper";
import { useIsIOS } from "@/lib/hooks";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { useEffect } from "react";
import { createPortal } from "react-dom";

Expand Down
2 changes: 1 addition & 1 deletion src/components/BlinkoMultiSelectPop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { _ } from '@/lib/lodash';
import { observer } from 'mobx-react-lite';
import { RootStore } from '@/store';
import { motion } from "framer-motion"
import { motion } from "motion/react"
import { Icon } from '@iconify/react';
import { useTranslation } from 'react-i18next';
import { ToastPlugin } from '@/store/module/Toast/Toast';
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlinkoSettings/BasicSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { PromiseCall, PromiseState } from "@/store/standard/PromiseState";
import { api } from "@/lib/trpc";
import { BlinkoStore } from "@/store/blinkoStore";
import React, { useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { motion, AnimatePresence } from "motion/react";

export const BasicSetting = observer(() => {
const user = RootStore.Get(UserStore)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/Editor/Toolbar/IconButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon } from "@iconify/react";
import { Tooltip } from "@nextui-org/react";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { observer } from "mobx-react-lite";

export const IconButton = observer(({ tooltip, icon, onClick, classNames, children }: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/PopoverFloat/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useRef } from 'react';
import { observer } from 'mobx-react-lite';
import { Card } from '@nextui-org/react';
import { motion } from "framer-motion"
import { motion } from "motion/react"
import { useMediaQuery } from 'usehooks-ts'

interface PopoverFloatProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/ScrollArea/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _ } from "@/lib/lodash";
import { observer } from "mobx-react-lite";
import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
import { motion, useAnimation } from "framer-motion";
import { motion, useAnimation } from "motion/react";

type IProps = {
style?: any;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { initStore } from '@/store/init';
import { Inspector, InspectParams } from 'react-dev-inspector';
import { CommonLayout } from '@/components/Layout';
import { AppProvider } from '@/store/module/AppProvider';
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import { BlinkoMultiSelectPop } from '@/components/BlinkoMultiSelectPop';
import { BlinkoAddButton } from '@/components/BlinkoAddButton';

Expand Down
2 changes: 1 addition & 1 deletion src/store/module/Dialog/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DialogStore } from ".";
import { RootStore } from "@/store/root";
import { useHistoryBack, useIsIOS } from "@/lib/hooks";
import { useMediaQuery } from "usehooks-ts";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { Icon } from "@iconify/react";
import { CancelIcon } from "@/components/Common/Icons";

Expand Down
2 changes: 1 addition & 1 deletion src/store/module/DialogStandalone/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DialogStandaloneStore } from ".";
import { RootStore } from "@/store/root";
import { useHistoryBack, useIsIOS } from "@/lib/hooks";
import { useMediaQuery } from "usehooks-ts";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { Icon } from "@iconify/react";
import { CancelIcon } from "@/components/Common/Icons";
import { createPortal } from "react-dom";
Expand Down

0 comments on commit 116ab0e

Please sign in to comment.