From a28b81478b630046163443901adeda1a14849434 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 13 Dec 2024 01:20:17 +0900 Subject: [PATCH 1/6] feat: support react 19 --- .changeset/config.json | 7 +- examples/react-16/framer-motion/CHANGELOG.md | 16 - examples/react-16/framer-motion/package.json | 2 +- examples/react-17/framer-motion/CHANGELOG.md | 16 - examples/react-17/framer-motion/package.json | 2 +- examples/react-18/framer-motion/CHANGELOG.md | 50 -- examples/react-18/framer-motion/package.json | 2 +- examples/react-19/framer-motion/.gitignore | 24 + examples/react-19/framer-motion/index.html | 16 + examples/react-19/framer-motion/package.json | 26 + .../framer-motion/src/components/modal.tsx | 62 ++ examples/react-19/framer-motion/src/demo.tsx | 55 ++ examples/react-19/framer-motion/src/main.tsx | 12 + .../react-19/framer-motion/src/vite-env.d.ts | 1 + examples/react-19/framer-motion/tsconfig.json | 13 + .../react-19/framer-motion/vite.config.ts | 7 + packages/package.json | 24 +- yarn.lock | 638 +++++++++++++----- 18 files changed, 723 insertions(+), 250 deletions(-) delete mode 100644 examples/react-16/framer-motion/CHANGELOG.md delete mode 100644 examples/react-17/framer-motion/CHANGELOG.md delete mode 100644 examples/react-18/framer-motion/CHANGELOG.md create mode 100644 examples/react-19/framer-motion/.gitignore create mode 100644 examples/react-19/framer-motion/index.html create mode 100644 examples/react-19/framer-motion/package.json create mode 100644 examples/react-19/framer-motion/src/components/modal.tsx create mode 100644 examples/react-19/framer-motion/src/demo.tsx create mode 100644 examples/react-19/framer-motion/src/main.tsx create mode 100644 examples/react-19/framer-motion/src/vite-env.d.ts create mode 100644 examples/react-19/framer-motion/tsconfig.json create mode 100644 examples/react-19/framer-motion/vite.config.ts diff --git a/.changeset/config.json b/.changeset/config.json index 396f677..a610e9b 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,10 @@ "access": "restricted", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": [] + "ignore": [ + "@overlay-kit/framer-motion-react-16", + "@overlay-kit/framer-motion-react-17", + "@overlay-kit/framer-motion-react-18", + "@overlay-kit/framer-motion-react-19" + ] } diff --git a/examples/react-16/framer-motion/CHANGELOG.md b/examples/react-16/framer-motion/CHANGELOG.md deleted file mode 100644 index ffd65f8..0000000 --- a/examples/react-16/framer-motion/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# @overlay-kit/framer-motion-react-16 - -## 0.0.7 - -### Patch Changes - -- [#74](https://github.com/toss/overlay-kit/pull/74) [`324dab9`](https://github.com/toss/overlay-kit/commit/324dab92b9bdda007930a4f4e731257b053e5156) Thanks [@jungpaeng](https://github.com/jungpaeng)! - Fix path resolution error by updating import path for 'use-sync-external-store/shim' - - The import path for `use-sync-external-store/shim` was incorrect, causing a path resolution error during build. This change updates the import statement to include `index.js`, resolving the path issue. - -## 0.0.6 - -### Patch Changes - -- Updated dependencies [[`01eaa3c`](https://github.com/toss/overlay-kit/commit/01eaa3c41e367224852cad56bc0214f1bf05ff77), [`9776fff`](https://github.com/toss/overlay-kit/commit/9776fff2bccc683afb9dfdfa7ad0b568cd902b7d)]: - - overlay-kit@1.4.0 diff --git a/examples/react-16/framer-motion/package.json b/examples/react-16/framer-motion/package.json index 5e08a32..f60da39 100644 --- a/examples/react-16/framer-motion/package.json +++ b/examples/react-16/framer-motion/package.json @@ -1,7 +1,7 @@ { "name": "@overlay-kit/framer-motion-react-16", "private": true, - "version": "0.0.7", + "version": "0.0.0", "type": "module", "scripts": { "predev": "yarn workspace overlay-kit build", diff --git a/examples/react-17/framer-motion/CHANGELOG.md b/examples/react-17/framer-motion/CHANGELOG.md deleted file mode 100644 index 222d212..0000000 --- a/examples/react-17/framer-motion/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# @overlay-kit/framer-motion-react-17 - -## 0.0.7 - -### Patch Changes - -- [#74](https://github.com/toss/overlay-kit/pull/74) [`324dab9`](https://github.com/toss/overlay-kit/commit/324dab92b9bdda007930a4f4e731257b053e5156) Thanks [@jungpaeng](https://github.com/jungpaeng)! - Fix path resolution error by updating import path for 'use-sync-external-store/shim' - - The import path for `use-sync-external-store/shim` was incorrect, causing a path resolution error during build. This change updates the import statement to include `index.js`, resolving the path issue. - -## 0.0.6 - -### Patch Changes - -- Updated dependencies [[`01eaa3c`](https://github.com/toss/overlay-kit/commit/01eaa3c41e367224852cad56bc0214f1bf05ff77), [`9776fff`](https://github.com/toss/overlay-kit/commit/9776fff2bccc683afb9dfdfa7ad0b568cd902b7d)]: - - overlay-kit@1.4.0 diff --git a/examples/react-17/framer-motion/package.json b/examples/react-17/framer-motion/package.json index 862a3d1..31f5e6e 100644 --- a/examples/react-17/framer-motion/package.json +++ b/examples/react-17/framer-motion/package.json @@ -1,7 +1,7 @@ { "name": "@overlay-kit/framer-motion-react-17", "private": true, - "version": "0.0.7", + "version": "0.0.0", "type": "module", "scripts": { "predev": "yarn workspace overlay-kit build", diff --git a/examples/react-18/framer-motion/CHANGELOG.md b/examples/react-18/framer-motion/CHANGELOG.md deleted file mode 100644 index 6ec1d7f..0000000 --- a/examples/react-18/framer-motion/CHANGELOG.md +++ /dev/null @@ -1,50 +0,0 @@ -# @overlay-kit/framer-motion - -## 0.0.7 - -### Patch Changes - -- Updated dependencies [[`324dab9`](https://github.com/toss/overlay-kit/commit/324dab92b9bdda007930a4f4e731257b053e5156)]: - - overlay-kit@1.4.1 - -## 0.0.6 - -### Patch Changes - -- Updated dependencies [[`01eaa3c`](https://github.com/toss/overlay-kit/commit/01eaa3c41e367224852cad56bc0214f1bf05ff77), [`9776fff`](https://github.com/toss/overlay-kit/commit/9776fff2bccc683afb9dfdfa7ad0b568cd902b7d)]: - - overlay-kit@1.4.0 - -## 0.0.5 - -### Patch Changes - -- Updated dependencies [[`828fad5`](https://github.com/toss/overlay-kit/commit/828fad59172a96ca0fecb3a027792db96d942ebe)]: - - overlay-kit@1.3.0 - -## 0.0.4 - -### Patch Changes - -- Updated dependencies [[`6f3c26a`](https://github.com/toss/overlay-kit/commit/6f3c26aef21ab639dcaa0c3134299f87de1c01ff), [`b35ac6f`](https://github.com/toss/overlay-kit/commit/b35ac6fdd14e9438a922b9c29c06753da312bc3e)]: - - overlay-kit@1.2.4 - -## 0.0.3 - -### Patch Changes - -- Updated dependencies [[`5d7e84d`](https://github.com/toss/overlay-kit/commit/5d7e84d3d096a5510ba4d7953d37824a4af5dfc2)]: - - overlay-kit@1.2.3 - -## 0.0.2 - -### Patch Changes - -- Updated dependencies [[`2aaa5ea`](https://github.com/toss/overlay-kit/commit/2aaa5eac66ff09ea7477e57b3f2a7d462b6a614a)]: - - overlay-kit@1.2.2 - -## 0.0.1 - -### Patch Changes - -- Updated dependencies [[`f3c8ef3`](https://github.com/toss/overlay-kit/commit/f3c8ef311422ea75ce58c91d7003cb680cfca40b), [`c0aab02`](https://github.com/toss/overlay-kit/commit/c0aab02c89e5a83351db55d5804cc8815e46cfd7)]: - - overlay-kit@1.2.1 diff --git a/examples/react-18/framer-motion/package.json b/examples/react-18/framer-motion/package.json index 2a69119..1f87b25 100644 --- a/examples/react-18/framer-motion/package.json +++ b/examples/react-18/framer-motion/package.json @@ -1,7 +1,7 @@ { "name": "@overlay-kit/framer-motion-react-18", "private": true, - "version": "0.0.7", + "version": "0.0.0", "type": "module", "scripts": { "predev": "yarn workspace overlay-kit build", diff --git a/examples/react-19/framer-motion/.gitignore b/examples/react-19/framer-motion/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/examples/react-19/framer-motion/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/examples/react-19/framer-motion/index.html b/examples/react-19/framer-motion/index.html new file mode 100644 index 0000000..53b3037 --- /dev/null +++ b/examples/react-19/framer-motion/index.html @@ -0,0 +1,16 @@ + + + + + + + + Vite + React + TS + + + +
+ + + + \ No newline at end of file diff --git a/examples/react-19/framer-motion/package.json b/examples/react-19/framer-motion/package.json new file mode 100644 index 0000000..4d71d6b --- /dev/null +++ b/examples/react-19/framer-motion/package.json @@ -0,0 +1,26 @@ +{ + "name": "@overlay-kit/framer-motion-react-19", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "predev": "yarn workspace overlay-kit build", + "dev": "yarn predev && vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "framer-motion": "^11.14.1", + "overlay-kit": "workspace:^", + "react": "^19.0.0", + "react-dom": "^19.0.0" + }, + "devDependencies": { + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", + "@vitejs/plugin-react": "^4.3.4", + "typescript": "^5.4.5", + "vite": "^5.2.13" + } +} diff --git a/examples/react-19/framer-motion/src/components/modal.tsx b/examples/react-19/framer-motion/src/components/modal.tsx new file mode 100644 index 0000000..22f0850 --- /dev/null +++ b/examples/react-19/framer-motion/src/components/modal.tsx @@ -0,0 +1,62 @@ +import { AnimatePresence, motion, type Variants } from 'framer-motion'; +import { useRef, type PropsWithChildren } from 'react'; + +type ModalProps = { + isOpen?: boolean; + onExit?: () => void; +}; + +export function Modal({ children, isOpen = false, onExit }: PropsWithChildren) { + const prevIsOpenRef = useRef(isOpen); + + if (isOpen !== prevIsOpenRef.current) { + prevIsOpenRef.current = isOpen; + + if (prevIsOpenRef.current === false) { + setTimeout(() => onExit?.(), 300); + } + } + + return ( + {isOpen === true && {children}} + ); +} + +const MODAL_CONTENT_VARIANTS: Variants = { + hidden: { opacity: 0, scale: 0.75 }, + show: { opacity: 1, scale: 1 }, +}; + +function ModalContent({ children, isOpen }: PropsWithChildren) { + return ( +
+ + {children} + +
+ ); +} diff --git a/examples/react-19/framer-motion/src/demo.tsx b/examples/react-19/framer-motion/src/demo.tsx new file mode 100644 index 0000000..3ef8e80 --- /dev/null +++ b/examples/react-19/framer-motion/src/demo.tsx @@ -0,0 +1,55 @@ +import { overlay } from 'overlay-kit'; +import { useState } from 'react'; +import { Modal } from './components/modal'; + +export function Demo() { + return ( +
+ + +
+ ); +} + +function DemoWithState() { + const [isOpen, setIsOpen] = useState(false); + + return ( +
+

Demo with useState

+ + +
+

MODAL CONTENT

+ +
+
+
+ ); +} + +function DemoWithEsOverlay() { + return ( +
+

Demo with overlay-kit

+ +
+ + ); + }); + }} + > + open modal + + + ); +} diff --git a/examples/react-19/framer-motion/src/main.tsx b/examples/react-19/framer-motion/src/main.tsx new file mode 100644 index 0000000..ce3aaf4 --- /dev/null +++ b/examples/react-19/framer-motion/src/main.tsx @@ -0,0 +1,12 @@ +import { OverlayProvider } from 'overlay-kit'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import { Demo } from './demo'; + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + + + +); diff --git a/examples/react-19/framer-motion/src/vite-env.d.ts b/examples/react-19/framer-motion/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/examples/react-19/framer-motion/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/examples/react-19/framer-motion/tsconfig.json b/examples/react-19/framer-motion/tsconfig.json new file mode 100644 index 0000000..6634b2a --- /dev/null +++ b/examples/react-19/framer-motion/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "lib": ["ESNext", "DOM"], + "target": "es2016", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "jsx": "preserve" + }, + "include": ["src"] +} diff --git a/examples/react-19/framer-motion/vite.config.ts b/examples/react-19/framer-motion/vite.config.ts new file mode 100644 index 0000000..4e7004e --- /dev/null +++ b/examples/react-19/framer-motion/vite.config.ts @@ -0,0 +1,7 @@ +import react from '@vitejs/plugin-react'; +import { defineConfig } from 'vite'; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], +}); diff --git a/packages/package.json b/packages/package.json index d2b319d..b7f9652 100644 --- a/packages/package.json +++ b/packages/package.json @@ -46,27 +46,27 @@ "test": "vitest run" }, "dependencies": { - "use-sync-external-store": "^1.2.2" + "use-sync-external-store": "^1.4.0" }, "devDependencies": { - "@testing-library/dom": "^10.3.2", - "@testing-library/jest-dom": "^6.4.2", - "@testing-library/react": "^15.0.5", + "@testing-library/dom": "^10.4.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.1.0", "@testing-library/user-event": "^14.5.2", - "@types/react": "^18.2.0", - "@types/react-dom": "^18.2.0", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", "@types/use-sync-external-store": "^0.0.6", - "@vitejs/plugin-react": "^4.3.0", - "jsdom": "^24.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "@vitejs/plugin-react": "^4.3.4", + "jsdom": "^25.0.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "tsup": "^8.1.0", "typescript": "^5.4.5", "vite": "^5.2.13", "vitest": "^1.6.0" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8 || ^17 || ^18 || ^19", + "react-dom": "^16.8 || ^17 || ^18 || ^19" } } diff --git a/yarn.lock b/yarn.lock index 7be7fa2..bb5e6a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,10 +5,10 @@ __metadata: version: 8 cacheKey: 10c0 -"@adobe/css-tools@npm:^4.3.2": - version: 4.3.3 - resolution: "@adobe/css-tools@npm:4.3.3" - checksum: 10c0/e76e712df713964b87cdf2aca1f0477f19bebd845484d5fcba726d3ec7782366e2f26ec8cb2dcfaf47081a5c891987d8a9f5c3f30d11e1eb3c1848adc27fcb24 +"@adobe/css-tools@npm:^4.4.0": + version: 4.4.1 + resolution: "@adobe/css-tools@npm:4.4.1" + checksum: 10c0/1a68ad9af490f45fce7b6e50dd2d8ac0c546d74431649c0d42ee4ceb1a9fa057fae0a7ef1e148effa12d84ec00ed71869ebfe0fb1dcdcc80bfcb6048c12abcc0 languageName: node linkType: hard @@ -226,6 +226,17 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0, @babel/code-frame@npm:^7.26.2": + version: 7.26.2 + resolution: "@babel/code-frame@npm:7.26.2" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.25.9" + js-tokens: "npm:^4.0.0" + picocolors: "npm:^1.0.0" + checksum: 10c0/7d79621a6849183c415486af99b1a20b84737e8c11cd55b6544f688c51ce1fd710e6d869c3dd21232023da272a79b91efb3e83b5bc2dc65c1187c5fcd1b72ea8 + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.24.6": version: 7.24.6 resolution: "@babel/compat-data@npm:7.24.6" @@ -233,6 +244,13 @@ __metadata: languageName: node linkType: hard +"@babel/compat-data@npm:^7.25.9": + version: 7.26.3 + resolution: "@babel/compat-data@npm:7.26.3" + checksum: 10c0/d63e71845c34dfad8d7ff8c15b562e620dbf60e68e3abfa35681d24d612594e8e5ec9790d831a287ecd79ce00f48e7ffddc85c5ce94af7242d45917b9c1a5f90 + languageName: node + linkType: hard + "@babel/core@npm:^7.24.5": version: 7.24.6 resolution: "@babel/core@npm:7.24.6" @@ -256,6 +274,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.26.0": + version: 7.26.0 + resolution: "@babel/core@npm:7.26.0" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.26.0" + "@babel/generator": "npm:^7.26.0" + "@babel/helper-compilation-targets": "npm:^7.25.9" + "@babel/helper-module-transforms": "npm:^7.26.0" + "@babel/helpers": "npm:^7.26.0" + "@babel/parser": "npm:^7.26.0" + "@babel/template": "npm:^7.25.9" + "@babel/traverse": "npm:^7.25.9" + "@babel/types": "npm:^7.26.0" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/91de73a7ff5c4049fbc747930aa039300e4d2670c2a91f5aa622f1b4868600fc89b01b6278385fbcd46f9574186fa3d9b376a9e7538e50f8d118ec13cfbcb63e + languageName: node + linkType: hard + "@babel/generator@npm:^7.24.6": version: 7.24.6 resolution: "@babel/generator@npm:7.24.6" @@ -268,6 +309,19 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.26.0, @babel/generator@npm:^7.26.3": + version: 7.26.3 + resolution: "@babel/generator@npm:7.26.3" + dependencies: + "@babel/parser": "npm:^7.26.3" + "@babel/types": "npm:^7.26.3" + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.25" + jsesc: "npm:^3.0.2" + checksum: 10c0/54f260558e3e4ec8942da3cde607c35349bb983c3a7c5121243f96893fba3e8cd62e1f1773b2051f936f8c8a10987b758d5c7d76dbf2784e95bb63ab4843fa00 + languageName: node + linkType: hard + "@babel/helper-compilation-targets@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-compilation-targets@npm:7.24.6" @@ -281,6 +335,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-compilation-targets@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-compilation-targets@npm:7.25.9" + dependencies: + "@babel/compat-data": "npm:^7.25.9" + "@babel/helper-validator-option": "npm:^7.25.9" + browserslist: "npm:^4.24.0" + lru-cache: "npm:^5.1.1" + semver: "npm:^6.3.1" + checksum: 10c0/a6b26a1e4222e69ef8e62ee19374308f060b007828bc11c65025ecc9e814aba21ff2175d6d3f8bf53c863edd728ee8f94ba7870f8f90a37d39552ad9933a8aaa + languageName: node + linkType: hard + "@babel/helper-environment-visitor@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-environment-visitor@npm:7.24.6" @@ -316,6 +383,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-module-imports@npm:7.25.9" + dependencies: + "@babel/traverse": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" + checksum: 10c0/078d3c2b45d1f97ffe6bb47f61961be4785d2342a4156d8b42c92ee4e1b7b9e365655dd6cb25329e8fe1a675c91eeac7e3d04f0c518b67e417e29d6e27b6aa70 + languageName: node + linkType: hard + "@babel/helper-module-transforms@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-module-transforms@npm:7.24.6" @@ -331,6 +408,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-transforms@npm:^7.26.0": + version: 7.26.0 + resolution: "@babel/helper-module-transforms@npm:7.26.0" + dependencies: + "@babel/helper-module-imports": "npm:^7.25.9" + "@babel/helper-validator-identifier": "npm:^7.25.9" + "@babel/traverse": "npm:^7.25.9" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/ee111b68a5933481d76633dad9cdab30c41df4479f0e5e1cc4756dc9447c1afd2c9473b5ba006362e35b17f4ebddd5fca090233bef8dfc84dca9d9127e56ec3a + languageName: node + linkType: hard + "@babel/helper-plugin-utils@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-plugin-utils@npm:7.24.6" @@ -338,6 +428,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-plugin-utils@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-plugin-utils@npm:7.25.9" + checksum: 10c0/483066a1ba36ff16c0116cd24f93de05de746a603a777cd695ac7a1b034928a65a4ecb35f255761ca56626435d7abdb73219eba196f9aa83b6c3c3169325599d + languageName: node + linkType: hard + "@babel/helper-simple-access@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-simple-access@npm:7.24.6" @@ -363,6 +460,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-string-parser@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-string-parser@npm:7.25.9" + checksum: 10c0/7244b45d8e65f6b4338a6a68a8556f2cb161b782343e97281a5f2b9b93e420cad0d9f5773a59d79f61d0c448913d06f6a2358a87f2e203cf112e3c5b53522ee6 + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.24.5, @babel/helper-validator-identifier@npm:^7.24.6, @babel/helper-validator-identifier@npm:^7.24.7": version: 7.24.7 resolution: "@babel/helper-validator-identifier@npm:7.24.7" @@ -370,6 +474,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-identifier@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-validator-identifier@npm:7.25.9" + checksum: 10c0/4fc6f830177b7b7e887ad3277ddb3b91d81e6c4a24151540d9d1023e8dc6b1c0505f0f0628ae653601eb4388a8db45c1c14b2c07a9173837aef7e4116456259d + languageName: node + linkType: hard + "@babel/helper-validator-option@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helper-validator-option@npm:7.24.6" @@ -377,6 +488,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-option@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-validator-option@npm:7.25.9" + checksum: 10c0/27fb195d14c7dcb07f14e58fe77c44eea19a6a40a74472ec05c441478fa0bb49fa1c32b2d64be7a38870ee48ef6601bdebe98d512f0253aea0b39756c4014f3e + languageName: node + linkType: hard + "@babel/helpers@npm:^7.24.6": version: 7.24.6 resolution: "@babel/helpers@npm:7.24.6" @@ -387,6 +505,16 @@ __metadata: languageName: node linkType: hard +"@babel/helpers@npm:^7.26.0": + version: 7.26.0 + resolution: "@babel/helpers@npm:7.26.0" + dependencies: + "@babel/template": "npm:^7.25.9" + "@babel/types": "npm:^7.26.0" + checksum: 10c0/343333cced6946fe46617690a1d0789346960910225ce359021a88a60a65bc0d791f0c5d240c0ed46cf8cc63b5fd7df52734ff14e43b9c32feae2b61b1647097 + languageName: node + linkType: hard + "@babel/highlight@npm:^7.24.7": version: 7.24.7 resolution: "@babel/highlight@npm:7.24.7" @@ -408,6 +536,17 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.25.9, @babel/parser@npm:^7.26.0, @babel/parser@npm:^7.26.3": + version: 7.26.3 + resolution: "@babel/parser@npm:7.26.3" + dependencies: + "@babel/types": "npm:^7.26.3" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/48f736374e61cfd10ddbf7b80678514ae1f16d0e88bc793d2b505d73d9b987ea786fc8c2f7ee8f8b8c467df062030eb07fd0eb2168f0f541ca1f542775852cad + languageName: node + linkType: hard + "@babel/plugin-transform-react-jsx-self@npm:^7.24.5": version: 7.24.6 resolution: "@babel/plugin-transform-react-jsx-self@npm:7.24.6" @@ -419,6 +558,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-react-jsx-self@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/plugin-transform-react-jsx-self@npm:7.25.9" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.25.9" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/ce0e289f6af93d7c4dc6b385512199c5bb138ae61507b4d5117ba88b6a6b5092f704f1bdf80080b7d69b1b8c36649f2a0b250e8198667d4d30c08bbb1546bd99 + languageName: node + linkType: hard + "@babel/plugin-transform-react-jsx-source@npm:^7.24.1": version: 7.24.6 resolution: "@babel/plugin-transform-react-jsx-source@npm:7.24.6" @@ -430,7 +580,18 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.9.2": +"@babel/plugin-transform-react-jsx-source@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/plugin-transform-react-jsx-source@npm:7.25.9" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.25.9" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/fc9ee08efc9be7cbd2cc6788bbf92579adf3cab37912481f1b915221be3d22b0613b5b36a721df5f4c0ab65efe8582fcf8673caab83e6e1ce4cc04ceebf57dfa + languageName: node + linkType: hard + +"@babel/runtime@npm:^7.12.5": version: 7.24.6 resolution: "@babel/runtime@npm:7.24.6" dependencies: @@ -459,6 +620,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/template@npm:7.25.9" + dependencies: + "@babel/code-frame": "npm:^7.25.9" + "@babel/parser": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" + checksum: 10c0/ebe677273f96a36c92cc15b7aa7b11cc8bc8a3bb7a01d55b2125baca8f19cae94ff3ce15f1b1880fb8437f3a690d9f89d4e91f16fc1dc4d3eb66226d128983ab + languageName: node + linkType: hard + "@babel/traverse@npm:^7.24.6": version: 7.24.6 resolution: "@babel/traverse@npm:7.24.6" @@ -477,6 +649,21 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.25.9": + version: 7.26.4 + resolution: "@babel/traverse@npm:7.26.4" + dependencies: + "@babel/code-frame": "npm:^7.26.2" + "@babel/generator": "npm:^7.26.3" + "@babel/parser": "npm:^7.26.3" + "@babel/template": "npm:^7.25.9" + "@babel/types": "npm:^7.26.3" + debug: "npm:^4.3.1" + globals: "npm:^11.1.0" + checksum: 10c0/cf25d0eda9505daa0f0832ad786b9e28c9d967e823aaf7fbe425250ab198c656085495aa6bed678b27929e095c84eea9fd778b851a31803da94c9bc4bf4eaef7 + languageName: node + linkType: hard + "@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.6, @babel/types@npm:^7.8.3": version: 7.24.6 resolution: "@babel/types@npm:7.24.6" @@ -488,6 +675,16 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.25.9, @babel/types@npm:^7.26.0, @babel/types@npm:^7.26.3": + version: 7.26.3 + resolution: "@babel/types@npm:7.26.3" + dependencies: + "@babel/helper-string-parser": "npm:^7.25.9" + "@babel/helper-validator-identifier": "npm:^7.25.9" + checksum: 10c0/966c5242c5e55c8704bf7a7418e7be2703a0afa4d19a8480999d5a4ef13d095dd60686615fe5983cb7593b4b06ba3a7de8d6ca501c1d78bdd233a10d90be787b + languageName: node + linkType: hard + "@changesets/apply-release-plan@npm:^7.0.4": version: 7.0.4 resolution: "@changesets/apply-release-plan@npm:7.0.4" @@ -1482,6 +1679,22 @@ __metadata: languageName: unknown linkType: soft +"@overlay-kit/framer-motion-react-19@workspace:examples/react-19/framer-motion": + version: 0.0.0-use.local + resolution: "@overlay-kit/framer-motion-react-19@workspace:examples/react-19/framer-motion" + dependencies: + "@types/react": "npm:^19.0.1" + "@types/react-dom": "npm:^19.0.2" + "@vitejs/plugin-react": "npm:^4.3.4" + framer-motion: "npm:^11.14.1" + overlay-kit: "workspace:^" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" + typescript: "npm:^5.4.5" + vite: "npm:^5.2.13" + languageName: unknown + linkType: soft + "@pkgjs/parseargs@npm:^0.11.0": version: 0.11.0 resolution: "@pkgjs/parseargs@npm:0.11.0" @@ -1631,25 +1844,9 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^10.0.0": - version: 10.1.0 - resolution: "@testing-library/dom@npm:10.1.0" - dependencies: - "@babel/code-frame": "npm:^7.10.4" - "@babel/runtime": "npm:^7.12.5" - "@types/aria-query": "npm:^5.0.1" - aria-query: "npm:5.3.0" - chalk: "npm:^4.1.0" - dom-accessibility-api: "npm:^0.5.9" - lz-string: "npm:^1.5.0" - pretty-format: "npm:^27.0.2" - checksum: 10c0/81f0e0a510d24e458c3af17777960ed678fb4fe464903ef8ec9ed816c9794fc69a673ea94f87b9e054b181383c51814605451dbf4fd9df93d0d8f24b4859990d - languageName: node - linkType: hard - -"@testing-library/dom@npm:^10.3.2": - version: 10.3.2 - resolution: "@testing-library/dom@npm:10.3.2" +"@testing-library/dom@npm:^10.4.0": + version: 10.4.0 + resolution: "@testing-library/dom@npm:10.4.0" dependencies: "@babel/code-frame": "npm:^7.10.4" "@babel/runtime": "npm:^7.12.5" @@ -1659,58 +1856,42 @@ __metadata: dom-accessibility-api: "npm:^0.5.9" lz-string: "npm:^1.5.0" pretty-format: "npm:^27.0.2" - checksum: 10c0/3078b3253a73136169d897179bfc5e2073025f317573c9fd95d526df9a875a3ec3e9243377d93d23b7e40fadf60dd51517a15bf83b8f521a68b410b350df39e9 + checksum: 10c0/0352487720ecd433400671e773df0b84b8268fb3fe8e527cdfd7c11b1365b398b4e0eddba6e7e0c85e8d615f48257753283fccec41f6b986fd6c85f15eb5f84f languageName: node linkType: hard -"@testing-library/jest-dom@npm:^6.4.2": - version: 6.4.5 - resolution: "@testing-library/jest-dom@npm:6.4.5" +"@testing-library/jest-dom@npm:^6.6.3": + version: 6.6.3 + resolution: "@testing-library/jest-dom@npm:6.6.3" dependencies: - "@adobe/css-tools": "npm:^4.3.2" - "@babel/runtime": "npm:^7.9.2" + "@adobe/css-tools": "npm:^4.4.0" aria-query: "npm:^5.0.0" chalk: "npm:^3.0.0" css.escape: "npm:^1.5.1" dom-accessibility-api: "npm:^0.6.3" lodash: "npm:^4.17.21" redent: "npm:^3.0.0" - peerDependencies: - "@jest/globals": ">= 28" - "@types/bun": "*" - "@types/jest": ">= 28" - jest: ">= 28" - vitest: ">= 0.32" - peerDependenciesMeta: - "@jest/globals": - optional: true - "@types/bun": - optional: true - "@types/jest": - optional: true - jest: - optional: true - vitest: - optional: true - checksum: 10c0/4cfdd44e2abab2b9d399c47cbfe686729bb65160d7df0f9e2329aaaea7702f6e852a9eefb29b468f00c1e5a5274b684f8cac76959d33299dfa909ba007ea191d + checksum: 10c0/5566b6c0b7b0709bc244aec3aa3dc9e5f4663e8fb2b99d8cd456fc07279e59db6076cbf798f9d3099a98fca7ef4cd50e4e1f4c4dec5a60a8fad8d24a638a5bf6 languageName: node linkType: hard -"@testing-library/react@npm:^15.0.5": - version: 15.0.7 - resolution: "@testing-library/react@npm:15.0.7" +"@testing-library/react@npm:^16.1.0": + version: 16.1.0 + resolution: "@testing-library/react@npm:16.1.0" dependencies: "@babel/runtime": "npm:^7.12.5" - "@testing-library/dom": "npm:^10.0.0" - "@types/react-dom": "npm:^18.0.0" peerDependencies: - "@types/react": ^18.0.0 - react: ^18.0.0 - react-dom: ^18.0.0 + "@testing-library/dom": ^10.0.0 + "@types/react": ^18.0.0 || ^19.0.0 + "@types/react-dom": ^18.0.0 || ^19.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/ac8ee8968e81949ecb35f7ee34741c2c043f73dd7fee2247d56f6de6a30de4742af94f25264356863974e54387485b46c9448ecf3f6ca41cf4339011c369f2d4 + "@types/react-dom": + optional: true + checksum: 10c0/8451dcc76ba0d4f3504af78f2a4aacc13117691f4b7a3c279f3e047d5ea817ff686496ad53e7f65f6183112aef2be3f318af609b1f5d666eed42b1014d1c68d5 languageName: node linkType: hard @@ -1874,7 +2055,7 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.2.0": +"@types/react-dom@npm:^18.2.0": version: 18.3.0 resolution: "@types/react-dom@npm:18.3.0" dependencies: @@ -1883,6 +2064,15 @@ __metadata: languageName: node linkType: hard +"@types/react-dom@npm:^19.0.2": + version: 19.0.2 + resolution: "@types/react-dom@npm:19.0.2" + peerDependencies: + "@types/react": ^19.0.0 + checksum: 10c0/3d0c7b78dbe8df64ea769f30af990a5950173a8321c745fe11094d765423f7964c3519dca6e7cd36b4be6521c8efc690bdd3b79b327b229dd1e9d5a8bad677dd + languageName: node + linkType: hard + "@types/react@npm:*, @types/react@npm:^18.2.0": version: 18.3.3 resolution: "@types/react@npm:18.3.3" @@ -1915,6 +2105,15 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^19.0.1": + version: 19.0.1 + resolution: "@types/react@npm:19.0.1" + dependencies: + csstype: "npm:^3.0.2" + checksum: 10c0/25eb69114abb9a6d5fc4414ee584388275bbc9ac32976449cf58b95fe9880efe6b3f936c3842be9bed8c571546a9752e8d3e2095288381e9c809269f5f574f2e + languageName: node + linkType: hard + "@types/scheduler@npm:^0.16": version: 0.16.8 resolution: "@types/scheduler@npm:0.16.8" @@ -2083,6 +2282,21 @@ __metadata: languageName: node linkType: hard +"@vitejs/plugin-react@npm:^4.3.4": + version: 4.3.4 + resolution: "@vitejs/plugin-react@npm:4.3.4" + dependencies: + "@babel/core": "npm:^7.26.0" + "@babel/plugin-transform-react-jsx-self": "npm:^7.25.9" + "@babel/plugin-transform-react-jsx-source": "npm:^7.25.9" + "@types/babel__core": "npm:^7.20.5" + react-refresh: "npm:^0.14.2" + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 + checksum: 10c0/38a47a1dbafae0b97142943d83ee3674cb3331153a60b1a3fd29d230c12c9dfe63b7c345b231a3450168ed8a9375a9a1a253c3d85e9efdc19478c0d56b98496c + languageName: node + linkType: hard + "@vitejs/plugin-vue@npm:^5.0.4": version: 5.0.4 resolution: "@vitejs/plugin-vue@npm:5.0.4" @@ -2397,6 +2611,13 @@ __metadata: languageName: node linkType: hard +"agent-base@npm:^7.1.2": + version: 7.1.3 + resolution: "agent-base@npm:7.1.3" + checksum: 10c0/6192b580c5b1d8fb399b9c62bf8343d76654c2dd62afcb9a52b2cf44a8b6ace1e3b704d3fe3547d91555c857d3df02603341ff2cb961b9cfe2b12f9f3c38ee11 + languageName: node + linkType: hard + "aggregate-error@npm:^3.0.0": version: 3.1.0 resolution: "aggregate-error@npm:3.1.0" @@ -2710,6 +2931,20 @@ __metadata: languageName: node linkType: hard +"browserslist@npm:^4.24.0": + version: 4.24.2 + resolution: "browserslist@npm:4.24.2" + dependencies: + caniuse-lite: "npm:^1.0.30001669" + electron-to-chromium: "npm:^1.5.41" + node-releases: "npm:^2.0.18" + update-browserslist-db: "npm:^1.1.1" + bin: + browserslist: cli.js + checksum: 10c0/d747c9fb65ed7b4f1abcae4959405707ed9a7b835639f8a9ba0da2911995a6ab9b0648fd05baf2a4d4e3cf7f9fdbad56d3753f91881e365992c1d49c8d88ff7a + languageName: node + linkType: hard + "builtin-modules@npm:^3.3.0": version: 3.3.0 resolution: "builtin-modules@npm:3.3.0" @@ -2782,6 +3017,13 @@ __metadata: languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001669": + version: 1.0.30001688 + resolution: "caniuse-lite@npm:1.0.30001688" + checksum: 10c0/2ef3145ac69ea5faf403b613912a3a72006db2e004e58abcf40dc89904aa05568032b5a6dcfb267556944fd380a9b018ad645f93d84e543bed3471e4950a89f4 + languageName: node + linkType: hard + "chai@npm:^4.3.10": version: 4.4.1 resolution: "chai@npm:4.4.1" @@ -3007,12 +3249,12 @@ __metadata: languageName: node linkType: hard -"cssstyle@npm:^4.0.1": - version: 4.0.1 - resolution: "cssstyle@npm:4.0.1" +"cssstyle@npm:^4.1.0": + version: 4.1.0 + resolution: "cssstyle@npm:4.1.0" dependencies: - rrweb-cssom: "npm:^0.6.0" - checksum: 10c0/cadf9a8b23e11f4c6d63f21291096a0b0be868bd4ab9c799daa2c5b18330e39e5281605f01da906e901b42f742df0f3b3645af6465e83377ff7d15a88ee432a0 + rrweb-cssom: "npm:^0.7.1" + checksum: 10c0/05c6597e5d3e0ec6b15221f2c0ce9a0443a46cc50a6089a3ba9ee1ac27f83ff86a445a8f95435137dadd859f091fc61b6d342abaf396d3c910471b5b33cfcbfa languageName: node linkType: hard @@ -3237,6 +3479,13 @@ __metadata: languageName: node linkType: hard +"electron-to-chromium@npm:^1.5.41": + version: 1.5.73 + resolution: "electron-to-chromium@npm:1.5.73" + checksum: 10c0/b97118d469f2b3b7a816932004cd36d82879829904ca4a8daf70eaefbe686a23afa6e39e0ad0cdc39d00a9ebab97160d072b786fdeb6964f13fb15aa688958f1 + languageName: node + linkType: hard + "emoji-regex@npm:^8.0.0": version: 8.0.0 resolution: "emoji-regex@npm:8.0.0" @@ -3577,6 +3826,13 @@ __metadata: languageName: node linkType: hard +"escalade@npm:^3.2.0": + version: 3.2.0 + resolution: "escalade@npm:3.2.0" + checksum: 10c0/ced4dd3a78e15897ed3be74e635110bbf3b08877b0a41be50dcb325ee0e0b5f65fc2d50e9845194d7c4633f327e2e1c6cce00a71b617c5673df0374201d67f65 + languageName: node + linkType: hard + "escape-string-regexp@npm:^1.0.5": version: 1.0.5 resolution: "escape-string-regexp@npm:1.0.5" @@ -4086,6 +4342,28 @@ __metadata: languageName: node linkType: hard +"framer-motion@npm:^11.14.1": + version: 11.14.1 + resolution: "framer-motion@npm:11.14.1" + dependencies: + motion-dom: "npm:^11.14.1" + motion-utils: "npm:^11.14.1" + tslib: "npm:^2.4.0" + peerDependencies: + "@emotion/is-prop-valid": "*" + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@emotion/is-prop-valid": + optional: true + react: + optional: true + react-dom: + optional: true + checksum: 10c0/f5bb824a6655924a954caec1fb29fa58f28a837fea36904146cf4a2c081b55033d3aa7f8aa58d7ed040dbcda8dd3eb0a35ea37b1ec41deb2ddafc75dab10c9e4 + languageName: node + linkType: hard + "framer-motion@npm:^11.2.10": version: 11.3.17 resolution: "framer-motion@npm:11.3.17" @@ -4506,7 +4784,7 @@ __metadata: languageName: node linkType: hard -"https-proxy-agent@npm:^7.0.1, https-proxy-agent@npm:^7.0.4": +"https-proxy-agent@npm:^7.0.1": version: 7.0.4 resolution: "https-proxy-agent@npm:7.0.4" dependencies: @@ -4516,6 +4794,16 @@ __metadata: languageName: node linkType: hard +"https-proxy-agent@npm:^7.0.5": + version: 7.0.6 + resolution: "https-proxy-agent@npm:7.0.6" + dependencies: + agent-base: "npm:^7.1.2" + debug: "npm:4" + checksum: 10c0/f729219bc735edb621fa30e6e84e60ee5d00802b8247aac0d7b79b0bd6d4b3294737a337b93b86a0bd9e68099d031858a39260c976dc14cdbba238ba1f8779ac + languageName: node + linkType: hard + "human-id@npm:^1.0.2": version: 1.0.2 resolution: "human-id@npm:1.0.2" @@ -4949,37 +5237,37 @@ __metadata: languageName: node linkType: hard -"jsdom@npm:^24.0.0": - version: 24.1.0 - resolution: "jsdom@npm:24.1.0" +"jsdom@npm:^25.0.1": + version: 25.0.1 + resolution: "jsdom@npm:25.0.1" dependencies: - cssstyle: "npm:^4.0.1" + cssstyle: "npm:^4.1.0" data-urls: "npm:^5.0.0" decimal.js: "npm:^10.4.3" form-data: "npm:^4.0.0" html-encoding-sniffer: "npm:^4.0.0" http-proxy-agent: "npm:^7.0.2" - https-proxy-agent: "npm:^7.0.4" + https-proxy-agent: "npm:^7.0.5" is-potential-custom-element-name: "npm:^1.0.1" - nwsapi: "npm:^2.2.10" + nwsapi: "npm:^2.2.12" parse5: "npm:^7.1.2" - rrweb-cssom: "npm:^0.7.0" + rrweb-cssom: "npm:^0.7.1" saxes: "npm:^6.0.0" symbol-tree: "npm:^3.2.4" - tough-cookie: "npm:^4.1.4" + tough-cookie: "npm:^5.0.0" w3c-xmlserializer: "npm:^5.0.0" webidl-conversions: "npm:^7.0.0" whatwg-encoding: "npm:^3.1.1" whatwg-mimetype: "npm:^4.0.0" whatwg-url: "npm:^14.0.0" - ws: "npm:^8.17.0" + ws: "npm:^8.18.0" xml-name-validator: "npm:^5.0.0" peerDependencies: canvas: ^2.11.2 peerDependenciesMeta: canvas: optional: true - checksum: 10c0/34eadd8a7ae20c1505abe7a0f3988b2f0881cce7e27d75c4f5224f440f81f8ac08f4f449695b0f4178f048ed1c1709f3594e9d3f2fe0406c28e8da6eddd44f5a + checksum: 10c0/6bda32a6dfe4e37a30568bf51136bdb3ba9c0b72aadd6356280404275a34c9e097c8c25b5eb3c742e602623741e172da977ff456684befd77c9042ed9bf8c2b4 languageName: node linkType: hard @@ -5474,6 +5762,20 @@ __metadata: languageName: node linkType: hard +"motion-dom@npm:^11.14.1": + version: 11.14.1 + resolution: "motion-dom@npm:11.14.1" + checksum: 10c0/261e314b259aadee7577648e7a2e2db9c9cc094887956232736d69311744fdaf2cbd9639b2cc7a1b33ab292c481864870e81170e4729f014a3dbe36e6e7b3f8c + languageName: node + linkType: hard + +"motion-utils@npm:^11.14.1": + version: 11.14.1 + resolution: "motion-utils@npm:11.14.1" + checksum: 10c0/43d2dfe328f429386d135f6568e2af552c7b657227458760448b8a9db88b3108926b7816b4b0bf36f11096702c08f867830bfe3131c90e34f64874b53b3499cc + languageName: node + linkType: hard + "mri@npm:^1.2.0": version: 1.2.0 resolution: "mri@npm:1.2.0" @@ -5570,6 +5872,13 @@ __metadata: languageName: node linkType: hard +"node-releases@npm:^2.0.18": + version: 2.0.19 + resolution: "node-releases@npm:2.0.19" + checksum: 10c0/52a0dbd25ccf545892670d1551690fe0facb6a471e15f2cfa1b20142a5b255b3aa254af5f59d6ecb69c2bec7390bc643c43aa63b13bf5e64b6075952e716b1aa + languageName: node + linkType: hard + "nopt@npm:^7.0.0": version: 7.2.1 resolution: "nopt@npm:7.2.1" @@ -5618,10 +5927,10 @@ __metadata: languageName: node linkType: hard -"nwsapi@npm:^2.2.10": - version: 2.2.10 - resolution: "nwsapi@npm:2.2.10" - checksum: 10c0/43dfa150387bd2a578e37556d0ae3330d5617f99e5a7b64e3400d4c2785620762aa6169caf8f5fbce17b7ef29c372060b602594320c374fba0a39da4163d77ed +"nwsapi@npm:^2.2.12": + version: 2.2.16 + resolution: "nwsapi@npm:2.2.16" + checksum: 10c0/0aa0637f4d51043d0183d994e08336bae996b03b42984381bf09ebdf3ff4909c018eda6b2a8aba0a08f3ea8303db8a0dad0608b38dc0bff15fd87017286ae21a languageName: node linkType: hard @@ -5763,25 +6072,25 @@ __metadata: version: 0.0.0-use.local resolution: "overlay-kit@workspace:packages" dependencies: - "@testing-library/dom": "npm:^10.3.2" - "@testing-library/jest-dom": "npm:^6.4.2" - "@testing-library/react": "npm:^15.0.5" + "@testing-library/dom": "npm:^10.4.0" + "@testing-library/jest-dom": "npm:^6.6.3" + "@testing-library/react": "npm:^16.1.0" "@testing-library/user-event": "npm:^14.5.2" - "@types/react": "npm:^18.2.0" - "@types/react-dom": "npm:^18.2.0" + "@types/react": "npm:^19.0.1" + "@types/react-dom": "npm:^19.0.2" "@types/use-sync-external-store": "npm:^0.0.6" - "@vitejs/plugin-react": "npm:^4.3.0" - jsdom: "npm:^24.0.0" - react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" + "@vitejs/plugin-react": "npm:^4.3.4" + jsdom: "npm:^25.0.1" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" tsup: "npm:^8.1.0" typescript: "npm:^5.4.5" - use-sync-external-store: "npm:^1.2.2" + use-sync-external-store: "npm:^1.4.0" vite: "npm:^5.2.13" vitest: "npm:^1.6.0" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: ^16.8 || ^17 || ^18 || ^19 + react-dom: ^16.8 || ^17 || ^18 || ^19 languageName: unknown linkType: soft @@ -5972,6 +6281,13 @@ __metadata: languageName: node linkType: hard +"picocolors@npm:^1.1.0": + version: 1.1.1 + resolution: "picocolors@npm:1.1.1" + checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58 + languageName: node + linkType: hard + "picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1": version: 2.3.1 resolution: "picomatch@npm:2.3.1" @@ -6185,27 +6501,13 @@ __metadata: languageName: node linkType: hard -"psl@npm:^1.1.33": - version: 1.9.0 - resolution: "psl@npm:1.9.0" - checksum: 10c0/6a3f805fdab9442f44de4ba23880c4eba26b20c8e8e0830eff1cb31007f6825dace61d17203c58bfe36946842140c97a1ba7f67bc63ca2d88a7ee052b65d97ab - languageName: node - linkType: hard - -"punycode@npm:^2.1.0, punycode@npm:^2.1.1, punycode@npm:^2.3.1": +"punycode@npm:^2.1.0, punycode@npm:^2.3.1": version: 2.3.1 resolution: "punycode@npm:2.3.1" checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9 languageName: node linkType: hard -"querystringify@npm:^2.1.1": - version: 2.2.0 - resolution: "querystringify@npm:2.2.0" - checksum: 10c0/3258bc3dbdf322ff2663619afe5947c7926a6ef5fb78ad7d384602974c467fadfc8272af44f5eb8cddd0d011aae8fabf3a929a8eee4b86edcc0a21e6bd10f9aa - languageName: node - linkType: hard - "queue-microtask@npm:^1.2.2": version: 1.2.3 resolution: "queue-microtask@npm:1.2.3" @@ -6252,6 +6554,17 @@ __metadata: languageName: node linkType: hard +"react-dom@npm:^19.0.0": + version: 19.0.0 + resolution: "react-dom@npm:19.0.0" + dependencies: + scheduler: "npm:^0.25.0" + peerDependencies: + react: ^19.0.0 + checksum: 10c0/a36ce7ab507b237ae2759c984cdaad4af4096d8199fb65b3815c16825e5cfeb7293da790a3fc2184b52bfba7ba3ff31c058c01947aff6fd1a3701632aabaa6a9 + languageName: node + linkType: hard + "react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" @@ -6310,6 +6623,13 @@ __metadata: languageName: node linkType: hard +"react@npm:^19.0.0": + version: 19.0.0 + resolution: "react@npm:19.0.0" + checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471 + languageName: node + linkType: hard + "read-pkg-up@npm:^7.0.1": version: 7.0.1 resolution: "read-pkg-up@npm:7.0.1" @@ -6403,13 +6723,6 @@ __metadata: languageName: node linkType: hard -"requires-port@npm:^1.0.0": - version: 1.0.0 - resolution: "requires-port@npm:1.0.0" - checksum: 10c0/b2bfdd09db16c082c4326e573a82c0771daaf7b53b9ce8ad60ea46aa6e30aaf475fe9b164800b89f93b748d2c234d8abff945d2551ba47bf5698e04cd7713267 - languageName: node - linkType: hard - "resolve-from@npm:^4.0.0": version: 4.0.0 resolution: "resolve-from@npm:4.0.0" @@ -6565,17 +6878,10 @@ __metadata: languageName: unknown linkType: soft -"rrweb-cssom@npm:^0.6.0": - version: 0.6.0 - resolution: "rrweb-cssom@npm:0.6.0" - checksum: 10c0/3d9d90d53c2349ea9c8509c2690df5a4ef930c9cf8242aeb9425d4046f09d712bb01047e00da0e1c1dab5db35740b3d78fd45c3e7272f75d3724a563f27c30a3 - languageName: node - linkType: hard - -"rrweb-cssom@npm:^0.7.0": - version: 0.7.0 - resolution: "rrweb-cssom@npm:0.7.0" - checksum: 10c0/278350b1f383f76db20e37394361b709740bd4f5f27f924e1c3c3fdd7112b2ae37ed9bc7cee63776f7df395b9b0f644d1f8be104990e3028d276a3288cd7e564 +"rrweb-cssom@npm:^0.7.1": + version: 0.7.1 + resolution: "rrweb-cssom@npm:0.7.1" + checksum: 10c0/127b8ca6c8aac45e2755abbae6138d4a813b1bedc2caabf79466ae83ab3cfc84b5bfab513b7033f0aa4561c7753edf787d0dd01163ceacdee2e8eb1b6bf7237e languageName: node linkType: hard @@ -6656,6 +6962,13 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.25.0": + version: 0.25.0 + resolution: "scheduler@npm:0.25.0" + checksum: 10c0/a4bb1da406b613ce72c1299db43759526058fdcc413999c3c3e0db8956df7633acf395cb20eb2303b6a65d658d66b6585d344460abaee8080b4aa931f10eaafe + languageName: node + linkType: hard + "semver@npm:2 || 3 || 4 || 5": version: 5.7.2 resolution: "semver@npm:5.7.2" @@ -7186,6 +7499,24 @@ __metadata: languageName: node linkType: hard +"tldts-core@npm:^6.1.67": + version: 6.1.67 + resolution: "tldts-core@npm:6.1.67" + checksum: 10c0/7841c8d53250bdadfdd049f5f7cde4a71f08b4a33a3f024dd62a2d68512e9eca44141395abad3841aa5024a48b47a6e11a4ef23715baab3be8986d2ed2513431 + languageName: node + linkType: hard + +"tldts@npm:^6.1.32": + version: 6.1.67 + resolution: "tldts@npm:6.1.67" + dependencies: + tldts-core: "npm:^6.1.67" + bin: + tldts: bin/cli.js + checksum: 10c0/074edcd718ede006ff0e189701a4fda472686998aa6155ef4920e3ca17f4b54afb7f1afc9668ce33a3de523dd562eb9266e0610efd05cb2d9e9f19d9fa7510d4 + languageName: node + linkType: hard + "tmp@npm:^0.0.33": version: 0.0.33 resolution: "tmp@npm:0.0.33" @@ -7211,15 +7542,12 @@ __metadata: languageName: node linkType: hard -"tough-cookie@npm:^4.1.4": - version: 4.1.4 - resolution: "tough-cookie@npm:4.1.4" +"tough-cookie@npm:^5.0.0": + version: 5.0.0 + resolution: "tough-cookie@npm:5.0.0" dependencies: - psl: "npm:^1.1.33" - punycode: "npm:^2.1.1" - universalify: "npm:^0.2.0" - url-parse: "npm:^1.5.3" - checksum: 10c0/aca7ff96054f367d53d1e813e62ceb7dd2eda25d7752058a74d64b7266fd07be75908f3753a32ccf866a2f997604b414cfb1916d6e7f69bc64d9d9939b0d6c45 + tldts: "npm:^6.1.32" + checksum: 10c0/4a69c885bf6f45c5a64e60262af99e8c0d58a33bd3d0ce5da62121eeb9c00996d0128a72df8fc4614cbde59cc8b70aa3e21e4c3c98c2bbde137d7aba7fa00124 languageName: node linkType: hard @@ -7507,13 +7835,6 @@ __metadata: languageName: node linkType: hard -"universalify@npm:^0.2.0": - version: 0.2.0 - resolution: "universalify@npm:0.2.0" - checksum: 10c0/cedbe4d4ca3967edf24c0800cfc161c5a15e240dac28e3ce575c689abc11f2c81ccc6532c8752af3b40f9120fb5e454abecd359e164f4f6aa44c29cd37e194fe - languageName: node - linkType: hard - "update-browserslist-db@npm:^1.0.13": version: 1.0.16 resolution: "update-browserslist-db@npm:1.0.16" @@ -7528,6 +7849,20 @@ __metadata: languageName: node linkType: hard +"update-browserslist-db@npm:^1.1.1": + version: 1.1.1 + resolution: "update-browserslist-db@npm:1.1.1" + dependencies: + escalade: "npm:^3.2.0" + picocolors: "npm:^1.1.0" + peerDependencies: + browserslist: ">= 4.21.0" + bin: + update-browserslist-db: cli.js + checksum: 10c0/536a2979adda2b4be81b07e311bd2f3ad5e978690987956bc5f514130ad50cac87cd22c710b686d79731e00fbee8ef43efe5fcd72baa241045209195d43dcc80 + languageName: node + linkType: hard + "uri-js@npm:^4.2.2": version: 4.4.1 resolution: "uri-js@npm:4.4.1" @@ -7537,16 +7872,6 @@ __metadata: languageName: node linkType: hard -"url-parse@npm:^1.5.3": - version: 1.5.10 - resolution: "url-parse@npm:1.5.10" - dependencies: - querystringify: "npm:^2.1.1" - requires-port: "npm:^1.0.0" - checksum: 10c0/bd5aa9389f896974beb851c112f63b466505a04b4807cea2e5a3b7092f6fbb75316f0491ea84e44f66fed55f1b440df5195d7e3a8203f64fcefa19d182f5be87 - languageName: node - linkType: hard - "use-sync-external-store@npm:^1.2.2": version: 1.2.2 resolution: "use-sync-external-store@npm:1.2.2" @@ -7556,6 +7881,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.4.0": + version: 1.4.0 + resolution: "use-sync-external-store@npm:1.4.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/ec011a5055962c0f6b509d6e78c0b143f8cd069890ae370528753053c55e3b360d3648e76cfaa854faa7a59eb08d6c5fb1015e60ffde9046d32f5b2a295acea5 + languageName: node + linkType: hard + "validate-npm-package-license@npm:^3.0.1": version: 3.0.4 resolution: "validate-npm-package-license@npm:3.0.4" @@ -7933,9 +8267,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.17.0": - version: 8.17.0 - resolution: "ws@npm:8.17.0" +"ws@npm:^8.18.0": + version: 8.18.0 + resolution: "ws@npm:8.18.0" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -7944,7 +8278,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/55241ec93a66fdfc4bf4f8bc66c8eb038fda2c7a4ee8f6f157f2ca7dc7aa76aea0c0da0bf3adb2af390074a70a0e45456a2eaf80e581e630b75df10a64b0a990 + checksum: 10c0/25eb33aff17edcb90721ed6b0eb250976328533ad3cd1a28a274bd263682e7296a6591ff1436d6cbc50fa67463158b062f9d1122013b361cec99a05f84680e06 languageName: node linkType: hard From 2c0400299b0c68da9dbbd70e2c7e201698d00ce6 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 13 Dec 2024 01:21:39 +0900 Subject: [PATCH 2/6] Create shiny-cars-compare.md --- .changeset/shiny-cars-compare.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/shiny-cars-compare.md diff --git a/.changeset/shiny-cars-compare.md b/.changeset/shiny-cars-compare.md new file mode 100644 index 0000000..35e2b25 --- /dev/null +++ b/.changeset/shiny-cars-compare.md @@ -0,0 +1,5 @@ +--- +"overlay-kit": minor +--- + +feat: support react 19 From 903d963261570a604ab9d8cc683c1f83075329b8 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 13 Dec 2024 01:31:17 +0900 Subject: [PATCH 3/6] chore: update --- packages/src/event.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/src/event.test.tsx b/packages/src/event.test.tsx index 7454512..704249d 100644 --- a/packages/src/event.test.tsx +++ b/packages/src/event.test.tsx @@ -1,6 +1,6 @@ import { render, screen, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import { useEffect, type PropsWithChildren } from 'react'; +import React, { useEffect, type PropsWithChildren } from 'react'; import { describe, expect, it, vi } from 'vitest'; import { OverlayProvider } from './context/provider'; import { overlay } from './event'; @@ -11,7 +11,7 @@ const wrapper = ({ children }: PropsWithChildren) => {children} * * @description Utility functions to perform render and userEvent.setup */ -const renderWithUser = (Component: T, options?: Parameters[1]) => { +const renderWithUser = (Component: T, options?: Parameters[1]) => { const user = userEvent.setup(); return { ...render(Component, { wrapper, ...options }), user }; }; From 8279f5088d3b779af46aae390e3fdf3f8f0dd5dc Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sat, 14 Dec 2024 21:08:14 +0900 Subject: [PATCH 4/6] chore: add ci for @overlay-kit/framer-motion-react-19 --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d779044..a0eb278 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: 'yarn workspace @overlay-kit/framer-motion-react-16 run build', 'yarn workspace @overlay-kit/framer-motion-react-17 run build', 'yarn workspace @overlay-kit/framer-motion-react-18 run build', + 'yarn workspace @overlay-kit/framer-motion-react-19 run build', ] steps: - uses: actions/checkout@v4 From e85bcf2fd0d49b88bea364d30828e3ead15232d7 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sat, 14 Dec 2024 23:32:53 +0900 Subject: [PATCH 5/6] chore: update --- examples/react-19/framer-motion/src/demo.tsx | 2 +- examples/react-19/framer-motion/src/main.tsx | 2 +- examples/react-19/framer-motion/tsconfig.json | 25 +++++++++++++------ 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/examples/react-19/framer-motion/src/demo.tsx b/examples/react-19/framer-motion/src/demo.tsx index 3ef8e80..c554fdc 100644 --- a/examples/react-19/framer-motion/src/demo.tsx +++ b/examples/react-19/framer-motion/src/demo.tsx @@ -1,6 +1,6 @@ import { overlay } from 'overlay-kit'; import { useState } from 'react'; -import { Modal } from './components/modal'; +import { Modal } from './components/modal.tsx'; export function Demo() { return ( diff --git a/examples/react-19/framer-motion/src/main.tsx b/examples/react-19/framer-motion/src/main.tsx index ce3aaf4..d34ff8f 100644 --- a/examples/react-19/framer-motion/src/main.tsx +++ b/examples/react-19/framer-motion/src/main.tsx @@ -1,7 +1,7 @@ import { OverlayProvider } from 'overlay-kit'; import React from 'react'; import ReactDOM from 'react-dom/client'; -import { Demo } from './demo'; +import { Demo } from './demo.tsx'; ReactDOM.createRoot(document.getElementById('root')!).render( diff --git a/examples/react-19/framer-motion/tsconfig.json b/examples/react-19/framer-motion/tsconfig.json index 6634b2a..f0a2350 100644 --- a/examples/react-19/framer-motion/tsconfig.json +++ b/examples/react-19/framer-motion/tsconfig.json @@ -1,13 +1,24 @@ { "compilerOptions": { - "lib": ["ESNext", "DOM"], - "target": "es2016", - "module": "commonjs", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", "skipLibCheck": true, - "jsx": "preserve" + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "include": ["src"] } From e3517511cf11eb0a8afda5210fd00f61bf0b6672 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sat, 14 Dec 2024 23:34:07 +0900 Subject: [PATCH 6/6] chore: update --- examples/react-16/framer-motion/index.html | 24 ++++++++++------------ examples/react-17/framer-motion/index.html | 24 ++++++++++------------ examples/react-18/framer-motion/index.html | 24 ++++++++++------------ examples/react-19/framer-motion/index.html | 24 ++++++++++------------ 4 files changed, 44 insertions(+), 52 deletions(-) diff --git a/examples/react-16/framer-motion/index.html b/examples/react-16/framer-motion/index.html index 53b3037..09b98a8 100644 --- a/examples/react-16/framer-motion/index.html +++ b/examples/react-16/framer-motion/index.html @@ -1,16 +1,14 @@ + + + + + Vite + React + TS + - - - - - Vite + React + TS - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/examples/react-17/framer-motion/index.html b/examples/react-17/framer-motion/index.html index 53b3037..09b98a8 100644 --- a/examples/react-17/framer-motion/index.html +++ b/examples/react-17/framer-motion/index.html @@ -1,16 +1,14 @@ + + + + + Vite + React + TS + - - - - - Vite + React + TS - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/examples/react-18/framer-motion/index.html b/examples/react-18/framer-motion/index.html index 53b3037..09b98a8 100644 --- a/examples/react-18/framer-motion/index.html +++ b/examples/react-18/framer-motion/index.html @@ -1,16 +1,14 @@ + + + + + Vite + React + TS + - - - - - Vite + React + TS - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/examples/react-19/framer-motion/index.html b/examples/react-19/framer-motion/index.html index 53b3037..09b98a8 100644 --- a/examples/react-19/framer-motion/index.html +++ b/examples/react-19/framer-motion/index.html @@ -1,16 +1,14 @@ + + + + + Vite + React + TS + - - - - - Vite + React + TS - - - -
- - - - \ No newline at end of file + +
+ + +