Skip to content

Commit

Permalink
use newskit v6 features
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoyan Delev committed Jul 25, 2022
1 parent 6136de8 commit 7602f31
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 40 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"axios": "^0.27.2",
"newskit": "0.0.0-6a1a19ded",
"newskit": "0.0.0-e83728b0d",
"next": "12.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
26 changes: 13 additions & 13 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {
ThemeProvider,
Global,
css,
styled,
getColorCssFromTheme,
MediaQueryProvider,
NewsKitProvider,
} from "newskit";
import type { AppProps } from "next/app";
import { lightTheme, darkTheme } from "../theme";
Expand Down Expand Up @@ -42,17 +41,18 @@ function MyApp({ Component, pageProps }: AppProps) {
}
`}
/>
<ThemeProvider theme={currentTheme === "light" ? lightTheme : darkTheme}>
<MediaQueryProvider>
<CSSVars>
<Page>
<Header themeName={currentTheme} themeOnChange={themeOnChange} />
<Component {...pageProps} />
<AudioPlayer />
</Page>
</CSSVars>
</MediaQueryProvider>
</ThemeProvider>
<NewsKitProvider
layer={{ zIndex: 100 }}
theme={currentTheme === "light" ? lightTheme : darkTheme}
>
<CSSVars>
<Page>
<Header themeName={currentTheme} themeOnChange={themeOnChange} />
<Component {...pageProps} />
<AudioPlayer />
</Page>
</CSSVars>
</NewsKitProvider>
</>
);
}
Expand Down
62 changes: 36 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@
"@babel/highlight" "^7.16.7"

"@babel/helper-module-imports@^7.12.13":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437"
integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
dependencies:
"@babel/types" "^7.16.7"
"@babel/types" "^7.18.6"

"@babel/helper-plugin-utils@^7.17.12":
version "7.17.12"
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.17.12.tgz#86c2347da5acbf5583ba0a10aed4c9bf9da9cf96"
integrity sha512-JDkf04mqtN3y4iAbO1hv9U2ARpPyPL1zqyWs/2WG1pgSq9llHFjStX5jdxb84himgJm+8Ng+x0oiWF/nw/XQKA==
"@babel/helper-plugin-utils@^7.18.6":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz#4b8aea3b069d8cb8a72cdfe28ddf5ceca695ef2f"
integrity sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==

"@babel/helper-validator-identifier@^7.16.7":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad"
integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==

"@babel/helper-validator-identifier@^7.18.6":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076"
integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==

"@babel/highlight@^7.16.7":
version "7.17.12"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.17.12.tgz#257de56ee5afbd20451ac0a75686b6b404257351"
Expand All @@ -36,11 +41,11 @@
js-tokens "^4.0.0"

"@babel/plugin-syntax-jsx@^7.12.13":
version "7.17.12"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.17.12.tgz#834035b45061983a491f60096f61a2e7c5674a47"
integrity sha512-spyY3E3AURfxh/RHtjx5j6hs8am5NbUBGfcZ2vB3uShSpZdQyXSf5rR5Mk76vbtlAZOelyVQ71Fg0x9SG4fsog==
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0"
integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==
dependencies:
"@babel/helper-plugin-utils" "^7.17.12"
"@babel/helper-plugin-utils" "^7.18.6"

"@babel/runtime-corejs3@^7.10.2":
version "7.18.3"
Expand All @@ -50,19 +55,26 @@
core-js-pure "^3.20.2"
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.8", "@babel/runtime@^7.16.3", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.7":
"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.8", "@babel/runtime@^7.16.3", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
version "7.18.3"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.3.tgz#c7b654b57f6f63cf7f8b418ac9ca04408c4579f4"
integrity sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/types@^7.16.7":
version "7.18.4"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.4.tgz#27eae9b9fd18e9dccc3f9d6ad051336f307be354"
integrity sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==
"@babel/runtime@^7.13.10", "@babel/runtime@^7.7.2":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a"
integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==
dependencies:
"@babel/helper-validator-identifier" "^7.16.7"
regenerator-runtime "^0.13.4"

"@babel/types@^7.18.6":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.9.tgz#7148d64ba133d8d73a41b3172ac4b83a1452205f"
integrity sha512-WwMLAg2MvJmt/rKEVQBBhIVffMmnilX4oe0sRe7iPOHIGsqpruFHHdrfj4O1CMMtgMtCU4oPafZjDPCRgO57Wg==
dependencies:
"@babel/helper-validator-identifier" "^7.18.6"
to-fast-properties "^2.0.0"

"@capsizecss/core@^3.0.0":
Expand Down Expand Up @@ -140,7 +152,7 @@
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.5.tgz#2c40f81449a4e554e9fc6396910ed4843ec2be50"
integrity sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==

"@emotion/react@^11.1.5":
"@emotion/react@^11.9.3":
version "11.9.3"
resolved "https://registry.yarnpkg.com/@emotion/react/-/react-11.9.3.tgz#f4f4f34444f6654a2e550f5dab4f2d360c101df9"
integrity sha512-g9Q1GcTOlzOEjqwuLF/Zd9LC+4FljjPjDfxSM7KmEakm+hsHXk+bYZ2q+/hTJzr0OUNkujo72pXLQvXj6H+GJQ==
Expand Down Expand Up @@ -169,7 +181,7 @@
resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.1.1.tgz#015756e2a9a3c7c5f11d8ec22966a8dbfbfac787"
integrity sha512-J3YPccVRMiTZxYAY0IOq3kd+hUP8idY8Kz6B/Cyo+JuXq52Ek+zbPbSQUrVQp95aJ+lsAW7DPL1P2Z+U1jGkKA==

"@emotion/styled@^11.1.5":
"@emotion/styled@^11.9.3":
version "11.9.3"
resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.9.3.tgz#47f0c71137fec7c57035bf3659b52fb536792340"
integrity sha512-o3sBNwbtoVz9v7WB1/Y/AmXl69YHmei2mrVnK7JgyBJ//Rst5yqPZCecEJlMlJrFeWHp+ki/54uN265V2pEcXA==
Expand Down Expand Up @@ -1682,17 +1694,15 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==

newskit@0.0.0-6a1a19ded:
version "0.0.0-6a1a19ded"
resolved "https://registry.yarnpkg.com/newskit/-/newskit-0.0.0-6a1a19ded.tgz#f371ef56ba3df704347405a4016d1f47ebe8c98c"
integrity sha512-bTPEqDojmmUR94r3Ec7o9kgqonjgGwDl327OLtSAUpW4Wj4/M8AuUuqTO2v4d1cC7JPMpR9aVS+umXJdzA7fqw==
newskit@0.0.0-e83728b0d:
version "0.0.0-e83728b0d"
resolved "https://registry.yarnpkg.com/newskit/-/newskit-0.0.0-e83728b0d.tgz#04fbd4ddc25bdfd249d1ba2356b9ed56f88f8ce8"
integrity sha512-n1RTKTeKjDmvxAj0LjsXfcyDBJYshjY7MeCGs/zvNrz0qPCsC6QVaOF3w3zANBB0uLYnx5lI6+jk2E1GBHxk2Q==
dependencies:
"@capsizecss/core" "^3.0.0"
"@emotion-icons/emotion-icon" "4.0.0"
"@emotion-icons/material" "3.9.0"
"@emotion-icons/material-outlined" "3.8.0"
"@emotion/react" "^11.1.5"
"@emotion/styled" "^11.1.5"
"@floating-ui/react-dom-interactions" "^0.6.0"
"@seznam/compose-react-refs" "^1.0.5"
aria-hidden "^1.1.3"
Expand Down

1 comment on commit 7602f31

@vercel
Copy link

@vercel vercel bot commented on 7602f31 Jul 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

newskit-music – ./

newskit-music-git-main-mutebg1.vercel.app
newskit-music-mutebg1.vercel.app
newskit-music.vercel.app

Please sign in to comment.