From a3ca3c3c773735ecf83123090d6110cc4672351e Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Tue, 30 Jul 2024 15:02:39 +0200 Subject: [PATCH] Use public code-block package. --- .npmrc | 1 - gatsby-browser.ts | 2 +- package.json | 2 +- src/components/Code.tsx | 2 +- src/mdx-components.tsx | 2 +- yarn.lock | 24 ++++++++++++++---------- 6 files changed, 18 insertions(+), 15 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index fd534bc3..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@toitware:registry=https://npm.pkg.github.com/ \ No newline at end of file diff --git a/gatsby-browser.ts b/gatsby-browser.ts index 0ff061eb..f530d91f 100644 --- a/gatsby-browser.ts +++ b/gatsby-browser.ts @@ -3,6 +3,6 @@ import "@fontsource/roboto-mono"; import "@fontsource/roboto/700.css"; import "@fontsource/roboto/300.css"; -import "@toitware/code-block/dist/styles.js"; +import "@toit/code-block/dist/styles.js"; import "./src/assets/css/typography.css"; import "./src/assets/css/code.css"; diff --git a/package.json b/package.json index 39ed14ba..8b296efe 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@mui/material": "^5.2.0", "@raae/gatsby-remark-oembed": "^0.1.1", "@svgr/webpack": "^5.5.0", - "@toitware/code-block": "^0.4.2", + "@toit/code-block": "^0.4.3", "@types/color": "^3.0.1", "@types/flexsearch": "^0.7.2", "@types/mdx-js__react": "^1.5.3", diff --git a/src/components/Code.tsx b/src/components/Code.tsx index 1e82825f..772afd00 100644 --- a/src/components/Code.tsx +++ b/src/components/Code.tsx @@ -1,5 +1,5 @@ import { styled } from "@mui/material"; -import CodeBlock from "@toitware/code-block"; +import CodeBlock from "@toit/code-block"; import * as React from "react"; import { ReactNode, useRef, useState } from "react"; import { FiCheck, FiCopy } from "react-icons/fi"; diff --git a/src/mdx-components.tsx b/src/mdx-components.tsx index 1a0aa282..42117cc3 100644 --- a/src/mdx-components.tsx +++ b/src/mdx-components.tsx @@ -5,7 +5,7 @@ import { MDXProviderComponentsProp } from "@mdx-js/react"; import { Typography } from "@mui/material"; import TableRow from "@mui/material/TableRow"; -import { CodeBlock } from "@toitware/code-block"; +import { CodeBlock } from "@toit/code-block"; import React from "react"; import { Box, Boxes } from "./components/Boxes"; import Code from "./components/Code"; diff --git a/yarn.lock b/yarn.lock index 72f578bb..cc633c85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2010,10 +2010,10 @@ dependencies: "@babel/runtime" "^7.12.5" -"@toitware/code-block@^0.4.2": - version "0.4.2" - resolved "https://npm.pkg.github.com/download/@toitware/code-block/0.4.2/41fef85a128a223fde8e91d105779018f000bde1#41fef85a128a223fde8e91d105779018f000bde1" - integrity sha512-7QWPQF/8u0oEYlQ2EZFB4nKfzV8PgAtY4OZK9UpXLzDlx/DO4NlRHB+mgO0+JyS2EyNZhWn4o1mDW96Wfoa0OQ== +"@toit/code-block@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@toit/code-block/-/code-block-0.4.3.tgz#f77cd97b2cb6442722ca211f6c629a80caa5cad0" + integrity sha512-LanSOKsJshF3PxhgCCGZ9UFIAyRtGGHiscnFzH+a+LWx/krGd2pRDvAK0RChan+tr0iNtEtQ7YwbSk8MHeXwCw== dependencies: codemirror-theme-vars "^0.1.1" use-codemirror "^0.2.0" @@ -3763,12 +3763,14 @@ coa@^2.0.2: q "^1.1.2" codemirror-theme-vars@^0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/codemirror-theme-vars/-/codemirror-theme-vars-0.1.1.tgz" + version "0.1.2" + resolved "https://registry.yarnpkg.com/codemirror-theme-vars/-/codemirror-theme-vars-0.1.2.tgz#60db6877d16a400809e919b9bec33d72dbab1dfa" + integrity sha512-WTau8X2q58b0SOAY9DO+iQVw8JKVEgyQIqArp2D732tcc+pobbMta3bnVMdQdmgwuvNrOFFr6HoxPRoQOgooFA== codemirror@^5.49.2: - version "5.64.0" - resolved "https://registry.npmjs.org/codemirror/-/codemirror-5.64.0.tgz" + version "5.65.17" + resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.65.17.tgz#00d71f34c3518471ae4c0de23a2f8bb39a6df6ca" + integrity sha512-1zOsUx3lzAOu/gnMAZkQ9kpIHcPYOc9y1Fbm2UVk5UBPkdq380nhkelG0qUwm1f7wPvTbndu9ZYlug35EwAZRQ== collapse-white-space@^1.0.2: version "1.0.6" @@ -12181,7 +12183,8 @@ tsconfig-paths@^3.11.0: tslib@1.10.0: version "1.10.0" - resolved "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" + integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" @@ -12691,7 +12694,8 @@ url@^0.11.0: use-codemirror@^0.2.0: version "0.2.0" - resolved "https://registry.npmjs.org/use-codemirror/-/use-codemirror-0.2.0.tgz" + resolved "https://registry.yarnpkg.com/use-codemirror/-/use-codemirror-0.2.0.tgz#1bd06e679c40aa6ed2babf87f0d088b32fde250a" + integrity sha512-UwAwOz7Pe0gK414+muxE9lvzwAnj37pfoY5zqfoQ3e/e1LQ9kEOsMkKX0r73Jh2RXaFtgRUqSL4C8+oCaYZpcg== dependencies: codemirror "^5.49.2" tslib "1.10.0"