From c6efbb62b372b742223674855352b347728764bc Mon Sep 17 00:00:00 2001 From: louisachu Date: Fri, 19 Jan 2024 18:06:37 -0800 Subject: [PATCH 1/6] Fixing media component --- example/src/pages/index.md | 7 +++++++ packages/gatsby-theme-aio/src/components/Media/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/example/src/pages/index.md b/example/src/pages/index.md index 22ffe52776..6a90f33d88 100644 --- a/example/src/pages/index.md +++ b/example/src/pages/index.md @@ -344,5 +344,12 @@ Inline Alert as a nested component + + + + + + + diff --git a/packages/gatsby-theme-aio/src/components/Media/index.js b/packages/gatsby-theme-aio/src/components/Media/index.js index ec5eda047e..02e523846f 100644 --- a/packages/gatsby-theme-aio/src/components/Media/index.js +++ b/packages/gatsby-theme-aio/src/components/Media/index.js @@ -33,7 +33,7 @@ const Media = ({ video, ...props }) => { const link = getElementChild(video); const videos = ["mp4", "3gp", "ogg"]; const url = new URL(link.props.href); - const extension = url.pathname.split(".")[1]; + const extension = url.pathname.split(".")?.at(-1); const youTubeId = getYouTubeId(new URL(link.props.href)); if (youTubeId) { return ( From d273ff584946d4df0cb4eaacfce94bf6040f768a Mon Sep 17 00:00:00 2001 From: louisachu Date: Mon, 22 Jan 2024 16:18:15 -0800 Subject: [PATCH 2/6] updates --- example/src/pages/index.md | 2 ++ packages/gatsby-theme-aio/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/src/pages/index.md b/example/src/pages/index.md index 6a90f33d88..9791f7f22e 100644 --- a/example/src/pages/index.md +++ b/example/src/pages/index.md @@ -352,4 +352,6 @@ Inline Alert as a nested component + + diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index 4d113b293b..d6e31bec7f 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.11.0", + "version": "4.11.1_rc1", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", From 492ce443e37cb88c8ff49a1fafa606e6ef957dd0 Mon Sep 17 00:00:00 2001 From: louisachu Date: Mon, 22 Jan 2024 16:24:27 -0800 Subject: [PATCH 3/6] update package.json --- packages/gatsby-theme-aio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index d6e31bec7f..d76966314f 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.11.1_rc1", + "version": "4.11.1-rc1", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", From 9da587267d216b6cf43a911470f6a0728d0694a7 Mon Sep 17 00:00:00 2001 From: louisachu Date: Mon, 22 Jan 2024 17:09:41 -0800 Subject: [PATCH 4/6] update media component's width --- packages/gatsby-theme-aio/package.json | 2 +- packages/gatsby-theme-aio/src/components/Media/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index d76966314f..ea25c00ecc 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.11.1-rc1", + "version": "4.11.1-rc2", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", diff --git a/packages/gatsby-theme-aio/src/components/Media/index.js b/packages/gatsby-theme-aio/src/components/Media/index.js index 02e523846f..533f3bb838 100644 --- a/packages/gatsby-theme-aio/src/components/Media/index.js +++ b/packages/gatsby-theme-aio/src/components/Media/index.js @@ -53,6 +53,7 @@ const Media = ({ video, ...props }) => { src={link.props.href} css={css` display: block; + width: 100%; margin: var(--spectrum-global-dimension-size-400) auto; `} {...props} From bfb562b74ba1c01503bdf2296b03b3ced1b69ba2 Mon Sep 17 00:00:00 2001 From: louisachu Date: Mon, 22 Jan 2024 17:19:25 -0800 Subject: [PATCH 5/6] update --- example/src/pages/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/pages/index.md b/example/src/pages/index.md index 9791f7f22e..38a04b555a 100644 --- a/example/src/pages/index.md +++ b/example/src/pages/index.md @@ -348,7 +348,7 @@ Inline Alert as a nested component - + From cfd72398b32e1acad320e2a0caff95188ee60589 Mon Sep 17 00:00:00 2001 From: louisachu Date: Mon, 22 Jan 2024 17:21:55 -0800 Subject: [PATCH 6/6] revert package --- packages/gatsby-theme-aio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index ea25c00ecc..4d113b293b 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.11.1-rc2", + "version": "4.11.0", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0",