diff --git a/apps/www/package.json b/apps/www/package.json index 83adb9b177..b1216baa90 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -110,7 +110,7 @@ "cmdk": "^0.2.0", "contentlayer": "0.3.4", "date-fns": "^2.30.0", - "framer-motion": "10.12.20", + "framer-motion": "^10.16.4", "jotai": "^2.2.2", "lodash.template": "^4.5.0", "lucide-react": "^0.277.0", diff --git a/apps/www/src/components/counting-numbers.tsx b/apps/www/src/components/counting-numbers.tsx new file mode 100644 index 0000000000..b5720e7a49 --- /dev/null +++ b/apps/www/src/components/counting-numbers.tsx @@ -0,0 +1,81 @@ +'use client'; + +import { useEffect, useMemo, useRef, useState } from 'react'; +import { useInView } from 'framer-motion'; + +export const useCounting = ({ + duration, + end, + interval, + isInView, + reverse, + start, +}: { + start: number; + end: number; + interval: number; + duration: number; + reverse: boolean; + isInView: boolean; +}) => { + const [number, setNumber] = useState(start); + const increment = + Math.floor(Math.abs(start - end) / (duration / interval)) || 1; + + useEffect(() => { + let timer: NodeJS.Timeout; + if (isInView) { + timer = setInterval(() => { + setNumber((prevNumber) => { + const newNumber = reverse + ? prevNumber - increment + : prevNumber + increment; + const isCompleted = reverse ? newNumber <= end : newNumber >= end; + + if (isCompleted) { + clearInterval(timer); + return end; + } + + return newNumber; + }); + }, interval); + } + + return () => clearInterval(timer); // Cleanup timer + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [isInView]); + + return number; +}; + +export function CountingNumbers({ + value, + className, + reverse = false, + start = reverse ? 1000 : 0, + interval = 10, + duration = 800, +}) { + const ref = useRef(null); + const isInView = useInView(ref); + const number = useCounting({ + start, + end: value, + interval, + duration, + reverse, + isInView, + }); + + const formattedNumber = useMemo( + () => Intl.NumberFormat().format(number), + [number] + ); + + return ( +

+ {formattedNumber} +

+ ); +} diff --git a/apps/www/src/components/site-header.tsx b/apps/www/src/components/site-header.tsx index 04115d207b..72b63da089 100644 --- a/apps/www/src/components/site-header.tsx +++ b/apps/www/src/components/site-header.tsx @@ -1,3 +1,4 @@ +/* eslint-disable turbo/no-undeclared-env-vars */ import Link from 'next/link'; import { siteConfig } from '@/config/site'; @@ -9,19 +10,39 @@ import { CommandMenu } from './command-menu'; import { Icons } from './icons'; import { MainNav } from './main-nav'; import { MobileNav } from './mobile-nav'; +import { StarOnGithub } from './star-on-github'; + +export async function SiteHeader() { + const { stargazers_count: count } = await fetch( + 'https://api.github.com/repos/udecode/plate', + { + ...(process.env.GITHUB_OAUTH_TOKEN && { + headers: { + Authorization: `Bearer ${process.env.GITHUB_OAUTH_TOKEN}`, + 'Content-Type': 'application/json', + }, + }), + next: { + revalidate: 3600, + }, + } + ) + .then((res) => res.json()) + .catch(() => ({ stargazers_count: 0 })); -export function SiteHeader() { return (
-
+
-
+ +
+ ); +} diff --git a/turbo.json b/turbo.json index b07380d3ce..ecf2656f1e 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "globalEnv": ["CI"], + "globalEnv": ["CI", "GITHUB_OAUTH_TOKEN"], "pipeline": { "dev": { "cache": false, diff --git a/yarn.lock b/yarn.lock index 34503dab2b..9e0251f647 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7108,11 +7108,11 @@ __metadata: languageName: node linkType: hard -"@udecode/plate-alignment@npm:24.3.6, @udecode/plate-alignment@workspace:^, @udecode/plate-alignment@workspace:packages/alignment": +"@udecode/plate-alignment@npm:24.4.0, @udecode/plate-alignment@workspace:^, @udecode/plate-alignment@workspace:packages/alignment": version: 0.0.0-use.local resolution: "@udecode/plate-alignment@workspace:packages/alignment" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7123,11 +7123,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-autoformat@npm:24.3.6, @udecode/plate-autoformat@workspace:^, @udecode/plate-autoformat@workspace:packages/autoformat": +"@udecode/plate-autoformat@npm:24.4.0, @udecode/plate-autoformat@workspace:^, @udecode/plate-autoformat@workspace:packages/autoformat": version: 0.0.0-use.local resolution: "@udecode/plate-autoformat@workspace:packages/autoformat" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7139,15 +7139,15 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-basic-elements@npm:24.3.6, @udecode/plate-basic-elements@workspace:^, @udecode/plate-basic-elements@workspace:packages/basic-elements": +"@udecode/plate-basic-elements@npm:24.4.0, @udecode/plate-basic-elements@workspace:^, @udecode/plate-basic-elements@workspace:packages/basic-elements": version: 0.0.0-use.local resolution: "@udecode/plate-basic-elements@workspace:packages/basic-elements" dependencies: - "@udecode/plate-block-quote": "npm:24.3.6" - "@udecode/plate-code-block": "npm:24.3.6" - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-heading": "npm:24.3.6" - "@udecode/plate-paragraph": "npm:24.3.6" + "@udecode/plate-block-quote": "npm:24.4.0" + "@udecode/plate-code-block": "npm:24.4.0" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-heading": "npm:24.4.0" + "@udecode/plate-paragraph": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7158,11 +7158,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-basic-marks@npm:24.3.6, @udecode/plate-basic-marks@workspace:^, @udecode/plate-basic-marks@workspace:packages/basic-marks": +"@udecode/plate-basic-marks@npm:24.4.0, @udecode/plate-basic-marks@workspace:^, @udecode/plate-basic-marks@workspace:packages/basic-marks": version: 0.0.0-use.local resolution: "@udecode/plate-basic-marks@workspace:packages/basic-marks" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7173,11 +7173,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-block-quote@npm:24.3.6, @udecode/plate-block-quote@workspace:^, @udecode/plate-block-quote@workspace:packages/block-quote": +"@udecode/plate-block-quote@npm:24.4.0, @udecode/plate-block-quote@workspace:^, @udecode/plate-block-quote@workspace:packages/block-quote": version: 0.0.0-use.local resolution: "@udecode/plate-block-quote@workspace:packages/block-quote" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7188,11 +7188,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-break@npm:24.3.6, @udecode/plate-break@workspace:^, @udecode/plate-break@workspace:packages/break": +"@udecode/plate-break@npm:24.4.0, @udecode/plate-break@workspace:^, @udecode/plate-break@workspace:packages/break": version: 0.0.0-use.local resolution: "@udecode/plate-break@workspace:packages/break" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7207,7 +7207,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-caption@workspace:packages/caption" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" react-textarea-autosize: "npm:^8.5.2" peerDependencies: react: ">=16.8.0" @@ -7224,7 +7224,7 @@ __metadata: resolution: "@udecode/plate-cloud@workspace:packages/cloud" dependencies: "@portive/client": "npm:10.0.3" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" delay: "npm:5.0.0" p-defer: "npm:^3.0.0" peerDependencies: @@ -7237,11 +7237,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-code-block@npm:24.3.6, @udecode/plate-code-block@workspace:^, @udecode/plate-code-block@workspace:packages/code-block": +"@udecode/plate-code-block@npm:24.4.0, @udecode/plate-code-block@workspace:^, @udecode/plate-code-block@workspace:packages/code-block": version: 0.0.0-use.local resolution: "@udecode/plate-code-block@workspace:packages/code-block" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" prismjs: "npm:^1.29.0" peerDependencies: react: ">=16.8.0" @@ -7253,11 +7253,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-combobox@npm:24.3.6, @udecode/plate-combobox@workspace:^, @udecode/plate-combobox@workspace:packages/combobox": +"@udecode/plate-combobox@npm:24.4.0, @udecode/plate-combobox@workspace:^, @udecode/plate-combobox@workspace:packages/combobox": version: 0.0.0-use.local resolution: "@udecode/plate-combobox@workspace:packages/combobox" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" downshift: "npm:^6.1.12" peerDependencies: react: ">=16.8.0" @@ -7269,11 +7269,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-comments@npm:24.3.6, @udecode/plate-comments@workspace:^, @udecode/plate-comments@workspace:packages/comments": +"@udecode/plate-comments@npm:24.4.0, @udecode/plate-comments@workspace:^, @udecode/plate-comments@workspace:packages/comments": version: 0.0.0-use.local resolution: "@udecode/plate-comments@workspace:packages/comments" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7285,14 +7285,14 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-common@npm:24.3.6, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": +"@udecode/plate-common@npm:24.4.0, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": version: 0.0.0-use.local resolution: "@udecode/plate-common@workspace:packages/common" dependencies: - "@udecode/plate-core": "npm:24.3.6" - "@udecode/plate-utils": "npm:24.3.6" + "@udecode/plate-core": "npm:24.4.0" + "@udecode/plate-utils": "npm:24.4.0" "@udecode/slate": "npm:24.3.6" - "@udecode/slate-react": "npm:24.3.6" + "@udecode/slate-react": "npm:24.4.0" "@udecode/slate-utils": "npm:24.3.6" "@udecode/utils": "npm:24.3.0" peerDependencies: @@ -7305,12 +7305,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-core@npm:24.3.6, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": +"@udecode/plate-core@npm:24.4.0, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": version: 0.0.0-use.local resolution: "@udecode/plate-core@workspace:packages/core" dependencies: "@udecode/slate": "npm:24.3.6" - "@udecode/slate-react": "npm:24.3.6" + "@udecode/slate-react": "npm:24.4.0" "@udecode/slate-utils": "npm:24.3.6" "@udecode/utils": "npm:24.3.0" "@udecode/zustood": "npm:^1.1.3" @@ -7336,7 +7336,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-cursor@workspace:packages/cursor" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7351,7 +7351,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-dnd@workspace:packages/dnd" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" raf: "npm:^3.4.1" peerDependencies: @@ -7371,8 +7371,8 @@ __metadata: resolution: "@udecode/plate-emoji@workspace:packages/emoji" dependencies: "@emoji-mart/data": "npm:^1.1.2" - "@udecode/plate-combobox": "npm:24.3.6" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-combobox": "npm:24.4.0" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7388,7 +7388,7 @@ __metadata: resolution: "@udecode/plate-excalidraw@workspace:packages/excalidraw" dependencies: "@excalidraw/excalidraw": "npm:0.12.0" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7399,11 +7399,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-find-replace@npm:24.3.6, @udecode/plate-find-replace@workspace:^, @udecode/plate-find-replace@workspace:packages/find-replace": +"@udecode/plate-find-replace@npm:24.4.0, @udecode/plate-find-replace@workspace:^, @udecode/plate-find-replace@workspace:packages/find-replace": version: 0.0.0-use.local resolution: "@udecode/plate-find-replace@workspace:packages/find-replace" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7414,14 +7414,14 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-floating@npm:24.3.6, @udecode/plate-floating@workspace:^, @udecode/plate-floating@workspace:packages/floating": +"@udecode/plate-floating@npm:24.4.0, @udecode/plate-floating@workspace:^, @udecode/plate-floating@workspace:packages/floating": version: 0.0.0-use.local resolution: "@udecode/plate-floating@workspace:packages/floating" dependencies: "@floating-ui/core": "npm:^1.3.1" "@floating-ui/react": "npm:^0.22.3" "@radix-ui/react-dropdown-menu": "npm:^2.0.5" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7432,11 +7432,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-font@npm:24.3.6, @udecode/plate-font@workspace:^, @udecode/plate-font@workspace:packages/font": +"@udecode/plate-font@npm:24.4.0, @udecode/plate-font@workspace:^, @udecode/plate-font@workspace:packages/font": version: 0.0.0-use.local resolution: "@udecode/plate-font@workspace:packages/font" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7448,11 +7448,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-heading@npm:24.3.6, @udecode/plate-heading@workspace:^, @udecode/plate-heading@workspace:packages/heading": +"@udecode/plate-heading@npm:24.4.0, @udecode/plate-heading@workspace:^, @udecode/plate-heading@workspace:packages/heading": version: 0.0.0-use.local resolution: "@udecode/plate-heading@workspace:packages/heading" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7463,11 +7463,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-highlight@npm:24.3.6, @udecode/plate-highlight@workspace:^, @udecode/plate-highlight@workspace:packages/highlight": +"@udecode/plate-highlight@npm:24.4.0, @udecode/plate-highlight@workspace:^, @udecode/plate-highlight@workspace:packages/highlight": version: 0.0.0-use.local resolution: "@udecode/plate-highlight@workspace:packages/highlight" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7478,11 +7478,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-horizontal-rule@npm:24.3.6, @udecode/plate-horizontal-rule@workspace:^, @udecode/plate-horizontal-rule@workspace:packages/horizontal-rule": +"@udecode/plate-horizontal-rule@npm:24.4.0, @udecode/plate-horizontal-rule@workspace:^, @udecode/plate-horizontal-rule@workspace:packages/horizontal-rule": version: 0.0.0-use.local resolution: "@udecode/plate-horizontal-rule@workspace:packages/horizontal-rule" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7493,13 +7493,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-indent-list@npm:24.3.6, @udecode/plate-indent-list@workspace:^, @udecode/plate-indent-list@workspace:packages/indent-list": +"@udecode/plate-indent-list@npm:24.4.0, @udecode/plate-indent-list@workspace:^, @udecode/plate-indent-list@workspace:packages/indent-list": version: 0.0.0-use.local resolution: "@udecode/plate-indent-list@workspace:packages/indent-list" dependencies: - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-indent": "npm:24.3.6" - "@udecode/plate-list": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-indent": "npm:24.4.0" + "@udecode/plate-list": "npm:24.4.0" clsx: "npm:^1.2.1" peerDependencies: react: ">=16.8.0" @@ -7511,11 +7511,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-indent@npm:24.3.6, @udecode/plate-indent@workspace:^, @udecode/plate-indent@workspace:packages/indent": +"@udecode/plate-indent@npm:24.4.0, @udecode/plate-indent@workspace:^, @udecode/plate-indent@workspace:packages/indent": version: 0.0.0-use.local resolution: "@udecode/plate-indent@workspace:packages/indent" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7530,7 +7530,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-juice@workspace:packages/juice" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" juice: "npm:^8.1.0" peerDependencies: react: ">=16.8.0" @@ -7542,11 +7542,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-kbd@npm:24.3.6, @udecode/plate-kbd@workspace:^, @udecode/plate-kbd@workspace:packages/kbd": +"@udecode/plate-kbd@npm:24.4.0, @udecode/plate-kbd@workspace:^, @udecode/plate-kbd@workspace:packages/kbd": version: 0.0.0-use.local resolution: "@udecode/plate-kbd@workspace:packages/kbd" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7557,11 +7557,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-line-height@npm:24.3.6, @udecode/plate-line-height@workspace:^, @udecode/plate-line-height@workspace:packages/line-height": +"@udecode/plate-line-height@npm:24.4.0, @udecode/plate-line-height@workspace:^, @udecode/plate-line-height@workspace:packages/line-height": version: 0.0.0-use.local resolution: "@udecode/plate-line-height@workspace:packages/line-height" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7572,13 +7572,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-link@npm:24.3.6, @udecode/plate-link@workspace:^, @udecode/plate-link@workspace:packages/link": +"@udecode/plate-link@npm:24.4.0, @udecode/plate-link@workspace:^, @udecode/plate-link@workspace:packages/link": version: 0.0.0-use.local resolution: "@udecode/plate-link@workspace:packages/link" dependencies: - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-floating": "npm:24.3.6" - "@udecode/plate-normalizers": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-floating": "npm:24.4.0" + "@udecode/plate-normalizers": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7589,12 +7589,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-list@npm:24.3.6, @udecode/plate-list@workspace:^, @udecode/plate-list@workspace:packages/list": +"@udecode/plate-list@npm:24.4.0, @udecode/plate-list@workspace:^, @udecode/plate-list@workspace:packages/list": version: 0.0.0-use.local resolution: "@udecode/plate-list@workspace:packages/list" dependencies: - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-reset-node": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-reset-node": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7606,11 +7606,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-media@npm:24.3.6, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": +"@udecode/plate-media@npm:24.4.0, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": version: 0.0.0-use.local resolution: "@udecode/plate-media@workspace:packages/media" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" js-video-url-parser: "npm:^0.5.1" peerDependencies: react: ">=16.8.0" @@ -7622,12 +7622,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-mention@npm:24.3.6, @udecode/plate-mention@workspace:^, @udecode/plate-mention@workspace:packages/mention": +"@udecode/plate-mention@npm:24.4.0, @udecode/plate-mention@workspace:^, @udecode/plate-mention@workspace:packages/mention": version: 0.0.0-use.local resolution: "@udecode/plate-mention@workspace:packages/mention" dependencies: - "@udecode/plate-combobox": "npm:24.3.6" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-combobox": "npm:24.4.0" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7638,11 +7638,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-node-id@npm:24.3.6, @udecode/plate-node-id@workspace:^, @udecode/plate-node-id@workspace:packages/node-id": +"@udecode/plate-node-id@npm:24.4.0, @udecode/plate-node-id@workspace:^, @udecode/plate-node-id@workspace:packages/node-id": version: 0.0.0-use.local resolution: "@udecode/plate-node-id@workspace:packages/node-id" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7654,11 +7654,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-normalizers@npm:24.3.6, @udecode/plate-normalizers@workspace:^, @udecode/plate-normalizers@workspace:packages/normalizers": +"@udecode/plate-normalizers@npm:24.4.0, @udecode/plate-normalizers@workspace:^, @udecode/plate-normalizers@workspace:packages/normalizers": version: 0.0.0-use.local resolution: "@udecode/plate-normalizers@workspace:packages/normalizers" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7670,11 +7670,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-paragraph@npm:24.3.6, @udecode/plate-paragraph@workspace:^, @udecode/plate-paragraph@workspace:packages/paragraph": +"@udecode/plate-paragraph@npm:24.4.0, @udecode/plate-paragraph@workspace:^, @udecode/plate-paragraph@workspace:packages/paragraph": version: 0.0.0-use.local resolution: "@udecode/plate-paragraph@workspace:packages/paragraph" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7685,11 +7685,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-reset-node@npm:24.3.6, @udecode/plate-reset-node@workspace:^, @udecode/plate-reset-node@workspace:packages/reset-node": +"@udecode/plate-reset-node@npm:24.4.0, @udecode/plate-reset-node@workspace:^, @udecode/plate-reset-node@workspace:packages/reset-node": version: 0.0.0-use.local resolution: "@udecode/plate-reset-node@workspace:packages/reset-node" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7700,11 +7700,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-resizable@npm:24.3.6, @udecode/plate-resizable@workspace:^, @udecode/plate-resizable@workspace:packages/resizable": +"@udecode/plate-resizable@npm:24.4.0, @udecode/plate-resizable@workspace:^, @udecode/plate-resizable@workspace:packages/resizable": version: 0.0.0-use.local resolution: "@udecode/plate-resizable@workspace:packages/resizable" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7715,11 +7715,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-select@npm:24.3.6, @udecode/plate-select@workspace:^, @udecode/plate-select@workspace:packages/select": +"@udecode/plate-select@npm:24.4.0, @udecode/plate-select@workspace:^, @udecode/plate-select@workspace:packages/select": version: 0.0.0-use.local resolution: "@udecode/plate-select@workspace:packages/select" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7734,7 +7734,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-selection@workspace:packages/selection" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" "@viselect/vanilla": "npm:3.2.5" copy-to-clipboard: "npm:^3.3.3" peerDependencies: @@ -7747,13 +7747,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-csv@npm:24.3.6, @udecode/plate-serializer-csv@workspace:^, @udecode/plate-serializer-csv@workspace:packages/serializer-csv": +"@udecode/plate-serializer-csv@npm:24.4.0, @udecode/plate-serializer-csv@workspace:^, @udecode/plate-serializer-csv@workspace:packages/serializer-csv": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-csv@workspace:packages/serializer-csv" dependencies: "@types/papaparse": "npm:^5.3.7" - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-table": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-table": "npm:24.4.0" papaparse: "npm:^5.4.1" peerDependencies: react: ">=16.8.0" @@ -7765,17 +7765,17 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-docx@npm:24.3.6, @udecode/plate-serializer-docx@workspace:^, @udecode/plate-serializer-docx@workspace:packages/serializer-docx": +"@udecode/plate-serializer-docx@npm:24.4.0, @udecode/plate-serializer-docx@workspace:^, @udecode/plate-serializer-docx@workspace:packages/serializer-docx": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-docx@workspace:packages/serializer-docx" dependencies: - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-heading": "npm:24.3.6" - "@udecode/plate-indent": "npm:24.3.6" - "@udecode/plate-indent-list": "npm:24.3.6" - "@udecode/plate-media": "npm:24.3.6" - "@udecode/plate-paragraph": "npm:24.3.6" - "@udecode/plate-table": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-heading": "npm:24.4.0" + "@udecode/plate-indent": "npm:24.4.0" + "@udecode/plate-indent-list": "npm:24.4.0" + "@udecode/plate-media": "npm:24.4.0" + "@udecode/plate-paragraph": "npm:24.4.0" + "@udecode/plate-table": "npm:24.4.0" validator: "npm:^13.9.0" peerDependencies: react: ">=16.8.0" @@ -7787,12 +7787,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-html@npm:24.3.6, @udecode/plate-serializer-html@workspace:^, @udecode/plate-serializer-html@workspace:packages/serializer-html": +"@udecode/plate-serializer-html@npm:24.4.0, @udecode/plate-serializer-html@workspace:^, @udecode/plate-serializer-html@workspace:packages/serializer-html": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-html@workspace:packages/serializer-html" dependencies: "@types/papaparse": "npm:^5.3.7" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" html-entities: "npm:^2.4.0" peerDependencies: react: ">=16.8.0" @@ -7804,20 +7804,20 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-md@npm:24.3.6, @udecode/plate-serializer-md@workspace:^, @udecode/plate-serializer-md@workspace:packages/serializer-md": +"@udecode/plate-serializer-md@npm:24.4.0, @udecode/plate-serializer-md@workspace:^, @udecode/plate-serializer-md@workspace:packages/serializer-md": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-md@workspace:packages/serializer-md" dependencies: - "@udecode/plate-basic-marks": "npm:24.3.6" - "@udecode/plate-block-quote": "npm:24.3.6" - "@udecode/plate-code-block": "npm:24.3.6" - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-heading": "npm:24.3.6" - "@udecode/plate-horizontal-rule": "npm:24.3.6" - "@udecode/plate-link": "npm:24.3.6" - "@udecode/plate-list": "npm:24.3.6" - "@udecode/plate-media": "npm:24.3.6" - "@udecode/plate-paragraph": "npm:24.3.6" + "@udecode/plate-basic-marks": "npm:24.4.0" + "@udecode/plate-block-quote": "npm:24.4.0" + "@udecode/plate-code-block": "npm:24.4.0" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-heading": "npm:24.4.0" + "@udecode/plate-horizontal-rule": "npm:24.4.0" + "@udecode/plate-link": "npm:24.4.0" + "@udecode/plate-list": "npm:24.4.0" + "@udecode/plate-media": "npm:24.4.0" + "@udecode/plate-paragraph": "npm:24.4.0" remark-parse: "npm:^9.0.0" unified: "npm:^9.2.2" peerDependencies: @@ -7830,11 +7830,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-suggestion@npm:24.3.6, @udecode/plate-suggestion@workspace:^, @udecode/plate-suggestion@workspace:packages/suggestion": +"@udecode/plate-suggestion@npm:24.4.0, @udecode/plate-suggestion@workspace:^, @udecode/plate-suggestion@workspace:packages/suggestion": version: 0.0.0-use.local resolution: "@udecode/plate-suggestion@workspace:packages/suggestion" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7845,11 +7845,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-tabbable@npm:24.3.6, @udecode/plate-tabbable@workspace:^, @udecode/plate-tabbable@workspace:packages/tabbable": +"@udecode/plate-tabbable@npm:24.4.0, @udecode/plate-tabbable@workspace:^, @udecode/plate-tabbable@workspace:packages/tabbable": version: 0.0.0-use.local resolution: "@udecode/plate-tabbable@workspace:packages/tabbable" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" tabbable: "npm:^6.2.0" peerDependencies: react: ">=16.8.0" @@ -7861,12 +7861,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-table@npm:24.3.6, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table": +"@udecode/plate-table@npm:24.4.0, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table": version: 0.0.0-use.local resolution: "@udecode/plate-table@workspace:packages/table" dependencies: - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-resizable": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-resizable": "npm:24.4.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -7886,11 +7886,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-trailing-block@npm:24.3.6, @udecode/plate-trailing-block@workspace:^, @udecode/plate-trailing-block@workspace:packages/trailing-block": +"@udecode/plate-trailing-block@npm:24.4.0, @udecode/plate-trailing-block@workspace:^, @udecode/plate-trailing-block@workspace:packages/trailing-block": version: 0.0.0-use.local resolution: "@udecode/plate-trailing-block@workspace:packages/trailing-block" dependencies: - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -7930,14 +7930,14 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-utils@npm:24.3.6, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": +"@udecode/plate-utils@npm:24.4.0, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": version: 0.0.0-use.local resolution: "@udecode/plate-utils@workspace:packages/plate-utils" dependencies: "@radix-ui/react-slot": "npm:^1.0.2" - "@udecode/plate-core": "npm:24.3.6" + "@udecode/plate-core": "npm:24.4.0" "@udecode/slate": "npm:24.3.6" - "@udecode/slate-react": "npm:24.3.6" + "@udecode/slate-react": "npm:24.4.0" "@udecode/slate-utils": "npm:24.3.6" "@udecode/utils": "npm:24.3.0" clsx: "npm:^1.2.1" @@ -7958,7 +7958,7 @@ __metadata: dependencies: "@hocuspocus/provider": "npm:^2.2.1" "@slate-yjs/core": "npm:^1.0.1" - "@udecode/plate-common": "npm:24.3.6" + "@udecode/plate-common": "npm:24.4.0" yjs: "npm:^13.5.42" peerDependencies: react: ">=16.8.0" @@ -7974,44 +7974,44 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate@workspace:packages/plate" dependencies: - "@udecode/plate-alignment": "npm:24.3.6" - "@udecode/plate-autoformat": "npm:24.3.6" - "@udecode/plate-basic-elements": "npm:24.3.6" - "@udecode/plate-basic-marks": "npm:24.3.6" - "@udecode/plate-block-quote": "npm:24.3.6" - "@udecode/plate-break": "npm:24.3.6" - "@udecode/plate-code-block": "npm:24.3.6" - "@udecode/plate-combobox": "npm:24.3.6" - "@udecode/plate-comments": "npm:24.3.6" - "@udecode/plate-common": "npm:24.3.6" - "@udecode/plate-find-replace": "npm:24.3.6" - "@udecode/plate-floating": "npm:24.3.6" - "@udecode/plate-font": "npm:24.3.6" - "@udecode/plate-heading": "npm:24.3.6" - "@udecode/plate-highlight": "npm:24.3.6" - "@udecode/plate-horizontal-rule": "npm:24.3.6" - "@udecode/plate-indent": "npm:24.3.6" - "@udecode/plate-indent-list": "npm:24.3.6" - "@udecode/plate-kbd": "npm:24.3.6" - "@udecode/plate-line-height": "npm:24.3.6" - "@udecode/plate-link": "npm:24.3.6" - "@udecode/plate-list": "npm:24.3.6" - "@udecode/plate-media": "npm:24.3.6" - "@udecode/plate-mention": "npm:24.3.6" - "@udecode/plate-node-id": "npm:24.3.6" - "@udecode/plate-normalizers": "npm:24.3.6" - "@udecode/plate-paragraph": "npm:24.3.6" - "@udecode/plate-reset-node": "npm:24.3.6" - "@udecode/plate-resizable": "npm:24.3.6" - "@udecode/plate-select": "npm:24.3.6" - "@udecode/plate-serializer-csv": "npm:24.3.6" - "@udecode/plate-serializer-docx": "npm:24.3.6" - "@udecode/plate-serializer-html": "npm:24.3.6" - "@udecode/plate-serializer-md": "npm:24.3.6" - "@udecode/plate-suggestion": "npm:24.3.6" - "@udecode/plate-tabbable": "npm:24.3.6" - "@udecode/plate-table": "npm:24.3.6" - "@udecode/plate-trailing-block": "npm:24.3.6" + "@udecode/plate-alignment": "npm:24.4.0" + "@udecode/plate-autoformat": "npm:24.4.0" + "@udecode/plate-basic-elements": "npm:24.4.0" + "@udecode/plate-basic-marks": "npm:24.4.0" + "@udecode/plate-block-quote": "npm:24.4.0" + "@udecode/plate-break": "npm:24.4.0" + "@udecode/plate-code-block": "npm:24.4.0" + "@udecode/plate-combobox": "npm:24.4.0" + "@udecode/plate-comments": "npm:24.4.0" + "@udecode/plate-common": "npm:24.4.0" + "@udecode/plate-find-replace": "npm:24.4.0" + "@udecode/plate-floating": "npm:24.4.0" + "@udecode/plate-font": "npm:24.4.0" + "@udecode/plate-heading": "npm:24.4.0" + "@udecode/plate-highlight": "npm:24.4.0" + "@udecode/plate-horizontal-rule": "npm:24.4.0" + "@udecode/plate-indent": "npm:24.4.0" + "@udecode/plate-indent-list": "npm:24.4.0" + "@udecode/plate-kbd": "npm:24.4.0" + "@udecode/plate-line-height": "npm:24.4.0" + "@udecode/plate-link": "npm:24.4.0" + "@udecode/plate-list": "npm:24.4.0" + "@udecode/plate-media": "npm:24.4.0" + "@udecode/plate-mention": "npm:24.4.0" + "@udecode/plate-node-id": "npm:24.4.0" + "@udecode/plate-normalizers": "npm:24.4.0" + "@udecode/plate-paragraph": "npm:24.4.0" + "@udecode/plate-reset-node": "npm:24.4.0" + "@udecode/plate-resizable": "npm:24.4.0" + "@udecode/plate-select": "npm:24.4.0" + "@udecode/plate-serializer-csv": "npm:24.4.0" + "@udecode/plate-serializer-docx": "npm:24.4.0" + "@udecode/plate-serializer-html": "npm:24.4.0" + "@udecode/plate-serializer-md": "npm:24.4.0" + "@udecode/plate-suggestion": "npm:24.4.0" + "@udecode/plate-tabbable": "npm:24.4.0" + "@udecode/plate-table": "npm:24.4.0" + "@udecode/plate-trailing-block": "npm:24.4.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -8022,7 +8022,7 @@ __metadata: languageName: unknown linkType: soft -"@udecode/slate-react@npm:24.3.6, @udecode/slate-react@workspace:^, @udecode/slate-react@workspace:packages/slate-react": +"@udecode/slate-react@npm:24.4.0, @udecode/slate-react@workspace:^, @udecode/slate-react@workspace:packages/slate-react": version: 0.0.0-use.local resolution: "@udecode/slate-react@workspace:packages/slate-react" dependencies: @@ -12906,9 +12906,9 @@ __metadata: languageName: node linkType: hard -"framer-motion@npm:10.12.20": - version: 10.12.20 - resolution: "framer-motion@npm:10.12.20" +"framer-motion@npm:^10.16.4": + version: 10.16.4 + resolution: "framer-motion@npm:10.16.4" dependencies: "@emotion/is-prop-valid": "npm:^0.8.2" tslib: "npm:^2.4.0" @@ -12923,7 +12923,7 @@ __metadata: optional: true react-dom: optional: true - checksum: d0cb249aaec63cab8c1b868e57745da98477e27f6207785d51cd23b1792c0999bd754e29495c447beb1157dbbe7d12712920715126fd3ad442564554b94bf0e0 + checksum: 1f809a66bf99e2d5606c1ee932649e0071f315c36c21f8f7307438b4507db07411c462d48ddcf1ca384c0b893f1724f2cd6d613941789c4310b20ad01d53ade3 languageName: node linkType: hard @@ -24725,7 +24725,7 @@ __metadata: concurrently: "npm:^8.2.0" contentlayer: "npm:0.3.4" date-fns: "npm:^2.30.0" - framer-motion: "npm:10.12.20" + framer-motion: "npm:^10.16.4" jotai: "npm:^2.2.2" lodash.template: "npm:^4.5.0" lucide-react: "npm:^0.277.0"