@supernal/interface-nextjs 1.0.29 → 1.0.31

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 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/cjs/styles/prism");
1180
1181
  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" ? vscDarkPlus : vs,
1212
+ style: theme === "dark" ? import_prism.vscDarkPlus : import_prism.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/cjs/styles/prism";
1118
1119
  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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernal/interface-nextjs",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Next.js integration for Supernal Intelligence Interface - enables agentic UX with one line of code",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -24,8 +24,9 @@
24
24
  "peerDependencies": {
25
25
  "@supernal/interface": "*",
26
26
  "next": "^14.0.0 || ^15.0.0",
27
- "react": "^18.0.0",
28
- "react-dom": "^18.0.0"
27
+ "react": "^18.0.0 || ^19.0.0",
28
+ "react-dom": "^18.0.0 || ^19.0.0",
29
+ "react-syntax-highlighter": "^15.5.0 || ^16.0.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@supernal/interface": "file:../",
@@ -33,6 +34,7 @@
33
34
  "@types/react": "^18.0.0",
34
35
  "@types/react-dom": "^18.0.0",
35
36
  "@types/react-syntax-highlighter": "^15.5.13",
37
+ "react-syntax-highlighter": "^15.5.0",
36
38
  "tsup": "^8.0.0",
37
39
  "typescript": "^5.0.0"
38
40
  },
@@ -66,7 +68,6 @@
66
68
  "remark-math": "^6.0.0",
67
69
  "remark-directive": "^3.0.0",
68
70
  "rehype-katex": "^7.0.0",
69
- "react-syntax-highlighter": "^15.5.0",
70
71
  "mermaid": "^11.4.1",
71
72
  "katex": "^0.16.11"
72
73
  }