@supernal/interface-nextjs 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1177,8 +1177,8 @@ var import_rehype_katex = __toESM(require("rehype-katex"));
|
|
|
1177
1177
|
// src/components/CodeBlock.tsx
|
|
1178
1178
|
var import_react6 = __toESM(require("react"));
|
|
1179
1179
|
var import_react_syntax_highlighter = require("react-syntax-highlighter");
|
|
1180
|
-
var import_prism = require("react-syntax-highlighter/dist/esm/styles/prism");
|
|
1181
1180
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1181
|
+
var { vscDarkPlus, vs } = require("react-syntax-highlighter/dist/cjs/styles/prism");
|
|
1182
1182
|
function CodeBlock({ children, className, inline, theme = "dark" }) {
|
|
1183
1183
|
const [copied, setCopied] = (0, import_react6.useState)(false);
|
|
1184
1184
|
const match = /language-(\w+)/.exec(className || "");
|
|
@@ -1209,7 +1209,7 @@ function CodeBlock({ children, className, inline, theme = "dark" }) {
|
|
|
1209
1209
|
),
|
|
1210
1210
|
import_react6.default.createElement(import_react_syntax_highlighter.Prism, {
|
|
1211
1211
|
language,
|
|
1212
|
-
style: theme === "dark" ?
|
|
1212
|
+
style: theme === "dark" ? vscDarkPlus : vs,
|
|
1213
1213
|
customStyle: {
|
|
1214
1214
|
margin: 0,
|
|
1215
1215
|
borderRadius: "0.5rem",
|
package/dist/index.mjs
CHANGED
|
@@ -1115,8 +1115,8 @@ import rehypeKatex from "rehype-katex";
|
|
|
1115
1115
|
// src/components/CodeBlock.tsx
|
|
1116
1116
|
import React5, { useState as useState3 } from "react";
|
|
1117
1117
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
1118
|
-
import { vscDarkPlus, vs } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
1119
1118
|
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1119
|
+
var { vscDarkPlus, vs } = __require("react-syntax-highlighter/dist/cjs/styles/prism");
|
|
1120
1120
|
function CodeBlock({ children, className, inline, theme = "dark" }) {
|
|
1121
1121
|
const [copied, setCopied] = useState3(false);
|
|
1122
1122
|
const match = /language-(\w+)/.exec(className || "");
|
package/package.json
CHANGED