diff --git a/apps/app/package.json b/apps/app/package.json index 76d3295..c4f58de 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -51,7 +51,7 @@ "react-native-screens": "3.31.1", "react-native-svg": "15.2.0", "react-native-web": "~0.19.10", - "react-yjs": "^0.0.3", + "react-yjs": "^2.0.0", "secsync": "^0.5.0", "secsync-react-yjs": "^0.5.0", "tailwind-merge": "^2.3.0", diff --git a/apps/app/src/components/document.tsx b/apps/app/src/components/document.tsx index 5eafa65..394a56e 100644 --- a/apps/app/src/components/document.tsx +++ b/apps/app/src/components/document.tsx @@ -73,7 +73,9 @@ const Document: React.FC = ({ documentKey, documentId }) => { const yDocument: Yjs.Map> = yDocRef.current.getMap("document"); const document = useY(yDocument); - const checklist = document ? convertChecklistToArrayAndSort(document) : []; + const checklist = document + ? convertChecklistToArrayAndSort(document as any) + : []; const [newTodoText, setNewTodoText] = useState(""); const [state, send] = useYjsSync({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 615aa60..c3a631d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -150,8 +150,8 @@ importers: specifier: ~0.19.10 version: 0.19.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react-yjs: - specifier: ^0.0.3 - version: 0.0.3(react@18.2.0)(yjs@13.6.18) + specifier: ^2.0.0 + version: 2.0.0(react@18.2.0)(yjs@13.6.18) secsync: specifier: ^0.5.0 version: 0.5.0 @@ -5264,8 +5264,8 @@ packages: peerDependencies: react: ^18.2.0 - react-yjs@0.0.3: - resolution: {integrity: sha512-8HYkqb6jliEX2fZW9hHm6tOyAden8y3TVwmxvGTvNfrHQ+j9SgIj/S25mVn4aoja4KP6ZZz13yVt203dzCNxhg==} + react-yjs@2.0.0: + resolution: {integrity: sha512-W6wGbiB7npWZlgv9Oi/j1LvxWrD6LzyaPgcWQjQuDNOG1nHe3NFU+uYGKjiazfysO54nFpyQ9VyTpDzlOSfpyQ==} peerDependencies: react: ^18 || ^19 yjs: ^13.6.16 @@ -12718,8 +12718,9 @@ snapshots: react-shallow-renderer: 16.15.0(react@18.2.0) scheduler: 0.23.2 - react-yjs@0.0.3(react@18.2.0)(yjs@13.6.18): + react-yjs@2.0.0(react@18.2.0)(yjs@13.6.18): dependencies: + lib0: 0.2.94 react: 18.2.0 yjs: 13.6.18