From 1bce978d1b942d6f76a08c6e9d4a90030afd7c89 Mon Sep 17 00:00:00 2001 From: Jo du Plessis Date: Thu, 6 Jun 2024 07:17:36 +0200 Subject: [PATCH 1/4] add extra image tag --- src/components/core.component.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/core.component.tsx b/src/components/core.component.tsx index 6065cbf..98b5246 100644 --- a/src/components/core.component.tsx +++ b/src/components/core.component.tsx @@ -1513,6 +1513,12 @@ export const CoreComponent = () => { width={1250} style={{ left: 0, top: -35, transform: 'rotateZ(8deg)' }} position="absolute"> + Date: Thu, 6 Jun 2024 07:22:46 +0200 Subject: [PATCH 2/4] add lazy-loading attribute --- src/components/core.component.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/core.component.tsx b/src/components/core.component.tsx index 98b5246..fdf3444 100644 --- a/src/components/core.component.tsx +++ b/src/components/core.component.tsx @@ -1514,6 +1514,7 @@ export const CoreComponent = () => { style={{ left: 0, top: -35, transform: 'rotateZ(8deg)' }} position="absolute"> Date: Thu, 6 Jun 2024 07:36:18 +0200 Subject: [PATCH 3/4] use ghost elements --- src/components/core.component.tsx | 36 ++++++++++++++++++++----------- src/styles/globals.css | 8 +++++++ 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/components/core.component.tsx b/src/components/core.component.tsx index fdf3444..131bd76 100644 --- a/src/components/core.component.tsx +++ b/src/components/core.component.tsx @@ -1377,13 +1377,6 @@ export const CoreComponent = () => { highlightCode(snippet1, 'javascript').then((html) => setHtml(html)) }, []) - useEffect(() => { - ['app-sandbox-light.png', 'app-sandbox-dark.png'].map((imageUrl) => { - const img = new window.Image() - img.src = imageUrl - }) - }, []) - return ( <> { width={1250} style={{ left: 0, top: -35, transform: 'rotateZ(8deg)' }} position="absolute"> - + Date: Thu, 6 Jun 2024 07:38:29 +0200 Subject: [PATCH 4/4] bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08dbcd3..b356fd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fold-dev/docs", - "version": "24.6.5.1", + "version": "24.6.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fold-dev/docs", - "version": "24.6.5.1", + "version": "24.6.6.1", "license": "ISC", "dependencies": { "@fold-dev/core": "^0.11.7", diff --git a/package.json b/package.json index 0e3bb1b..9b09279 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fold-dev/docs", - "version": "24.6.6.0", + "version": "24.6.6.1", "description": "UI components for product teams.", "scripts": { "prepare": "husky install",