Skip to content

Commit

Permalink
Use public code-block package.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Jul 30, 2024
1 parent 0c566ab commit a3ca3c3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion gatsby-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Code.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
24 changes: 14 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -12181,7 +12183,8 @@ tsconfig-paths@^3.11.0:

[email protected]:
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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a3ca3c3

Please sign in to comment.