From 48fd5f410eed4895e4652ac4ea58048105a77e6e Mon Sep 17 00:00:00 2001 From: Ben Siggery Date: Thu, 24 Oct 2024 10:27:18 +0100 Subject: [PATCH 01/15] wcp-000: bump cookie banner to 1.0.0 --- nextjs-app-v14/package.json | 2 +- .../cookie-banner/cookie-banner.tsx | 6 +- nuxt-app/package.json | 2 +- nuxt-app/pages/components/cookie-banner.vue | 5 +- vanilla-app/js/cookie-banner.js | 4 +- vanilla-app/package.json | 2 +- vanilla-app/vite.config.js | 8 + yarn.lock | 184 +++++++++--------- 8 files changed, 108 insertions(+), 105 deletions(-) diff --git a/nextjs-app-v14/package.json b/nextjs-app-v14/package.json index 6b6e1c2e..ebd733c2 100644 --- a/nextjs-app-v14/package.json +++ b/nextjs-app-v14/package.json @@ -17,7 +17,7 @@ "@justeattakeaway/pie-cookie-banner": "0.26.5", "@justeattakeaway/pie-css": "0.13.0", "@justeattakeaway/pie-icons-webc": "0.25.1", - "@justeattakeaway/pie-webc": "0.5.42", + "@justeattakeaway/pie-webc": "0.5.46", "@lit-labs/nextjs": "0.2.0", "@lit/react": "1.0.5", "next": "14.2.3", diff --git a/nextjs-app-v14/src/app/components/cookie-banner/cookie-banner.tsx b/nextjs-app-v14/src/app/components/cookie-banner/cookie-banner.tsx index add3bbca..94a3138b 100644 --- a/nextjs-app-v14/src/app/components/cookie-banner/cookie-banner.tsx +++ b/nextjs-app-v14/src/app/components/cookie-banner/cookie-banner.tsx @@ -2,16 +2,14 @@ import NavigationLayout from "@/app/layout/navigation"; import { PieCookieBanner } from '@justeattakeaway/pie-webc/react/cookie-banner.js'; -// TODO: Remove this comment as soon as we provide the TS declaration for locales -// @ts-ignore: missing declaration for locales -import daDK from '@justeattakeaway/pie-cookie-banner/locales/da-dk.json'; export default function CookieBanner() { return ( diff --git a/nuxt-app/package.json b/nuxt-app/package.json index 5b4cc505..e3e444a9 100644 --- a/nuxt-app/package.json +++ b/nuxt-app/package.json @@ -22,7 +22,7 @@ "@justeattakeaway/pie-cookie-banner": "0.26.5", "@justeattakeaway/pie-css": "0.13.0", "@justeattakeaway/pie-icons-webc": "0.25.1", - "@justeattakeaway/pie-webc": "0.5.42", + "@justeattakeaway/pie-webc": "0.5.46", "just-kebab-case": "4.2.0", "nuxt-ssr-lit": "1.6.16" }, diff --git a/nuxt-app/pages/components/cookie-banner.vue b/nuxt-app/pages/components/cookie-banner.vue index e12954e8..75958098 100644 --- a/nuxt-app/pages/components/cookie-banner.vue +++ b/nuxt-app/pages/components/cookie-banner.vue @@ -1,6 +1,6 @@