diff --git a/package-lock.json b/package-lock.json index a3ddc583..c85dd082 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6814,9 +6814,9 @@ } }, "node_modules/framer-motion": { - "version": "11.11.1", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.11.1.tgz", - "integrity": "sha512-Ucr9eHSrk0d+l6vyl9fvq6omh/PAWHjS+PlczpsoUdhJo1TuF3ULWJNuAMnpWQ1dGyPOyoUVuYlUKjE/s8dyCA==", + "version": "11.11.9", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.11.9.tgz", + "integrity": "sha512-XpdZseuCrZehdHGuW22zZt3SF5g6AHJHJi7JwQIigOznW4Jg1n0oGPMJQheMaKLC+0rp5gxUKMRYI6ytd3q4RQ==", "dependencies": { "tslib": "^2.4.0" }, @@ -15649,7 +15649,7 @@ "@silevis/reactgrid-4": "npm:@silevis/reactgrid@^4.1.2", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "framer-motion": "^11.11.1", + "framer-motion": "^11.11.9", "hamburger-react": "^2.5.0", "lucide-react": "^0.446.0", "moment": "^2.30.1", diff --git a/reactgrid/lib/behaviors/DefaultBehavior.ts b/reactgrid/lib/behaviors/DefaultBehavior.ts index e131ee25..bfb9ba98 100644 --- a/reactgrid/lib/behaviors/DefaultBehavior.ts +++ b/reactgrid/lib/behaviors/DefaultBehavior.ts @@ -501,6 +501,9 @@ const defaultPasteHandler = ( const doc = parser.parseFromString(html, "text/html"); const rows = doc.querySelectorAll("tr"); + + if (rows.length === 0) return store; + const firstRowCells = rows[0].querySelectorAll("td"); if (rows.length === 1 && firstRowCells.length === 1) { diff --git a/reactgrid/stories/CutCopyPaste.stories.tsx b/reactgrid/stories/CutCopyPaste.stories.tsx index f6d75e2a..60542057 100644 --- a/reactgrid/stories/CutCopyPaste.stories.tsx +++ b/reactgrid/stories/CutCopyPaste.stories.tsx @@ -141,6 +141,9 @@ const handlePaste = ( const doc = parser.parseFromString(html, "text/html"); const rows = doc.querySelectorAll("tr"); + + if (rows.length === 0) return false; + const firstRowCells = rows[0].querySelectorAll("td"); if (rows.length === 1 && firstRowCells.length === 1) { diff --git a/website/app/demo/page.tsx b/website/app/demo/page.tsx index 2f246770..faf8ab4c 100644 --- a/website/app/demo/page.tsx +++ b/website/app/demo/page.tsx @@ -72,7 +72,7 @@ export default function ExamplesPage() { return (
-

+

ReactGrid Demo

diff --git a/website/app/globals.css b/website/app/globals.css index 1372c365..287e70dd 100644 --- a/website/app/globals.css +++ b/website/app/globals.css @@ -88,6 +88,11 @@ body { --cc-btn-border-radius: 10px; } +.prism-code.language-javascript { + white-space: nowrap !important; + overflow-x: auto !important; +} + @media (min-width: 780px) { .flex-none { display: none; diff --git a/website/app/support/page.tsx b/website/app/support/page.tsx index 458a1102..77e38aac 100644 --- a/website/app/support/page.tsx +++ b/website/app/support/page.tsx @@ -22,7 +22,7 @@ export default function FeaturesPage() {

-

+

Need support?

diff --git a/website/components/footer.tsx b/website/components/footer.tsx index f177e945..8e7ea922 100644 --- a/website/components/footer.tsx +++ b/website/components/footer.tsx @@ -8,32 +8,52 @@ export const Footer = () => {