@will1123/lx-ui-utils 1.0.2 → 1.0.4

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.
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
37
37
  import { marked, Marked } from "marked";
38
38
  import { markedHighlight } from "marked-highlight";
39
39
  import hljs from "highlight.js";
40
- import katex from "./node_modules/katex/dist/katex.js";
40
+ import katex from "katex";
41
41
  import { copyToClipboard, isDom } from "./helper.js";
42
42
  function getMarkdownCodeTheme() {
43
43
  if (typeof window === "undefined") return "dark";
@@ -39,7 +39,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
39
39
  const marked = require("marked");
40
40
  const markedHighlight = require("marked-highlight");
41
41
  const hljs = require("highlight.js");
42
- const katex = require("./node_modules/katex/dist/katex.js");
42
+ const katex = require("katex");
43
43
  const helper = require("./helper.js");
44
44
  function getMarkdownCodeTheme() {
45
45
  if (typeof window === "undefined") return "dark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will1123/lx-ui-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "LX UI - 灵曦平台 AI 组件库通用工具函数库",
6
6
  "main": "dist/lib/index.js",
@@ -38,9 +38,6 @@
38
38
  "url": "git+https://github.com/你的用户名/lx-ui.git",
39
39
  "directory": "packages/utils"
40
40
  },
41
- "publishConfig": {
42
- "access": "public"
43
- },
44
41
  "dependencies": {
45
42
  "@microsoft/fetch-event-source": "^2.0.1",
46
43
  "highlight.js": "^11.11.1",
@@ -48,6 +45,13 @@
48
45
  "marked": "^15.0.7",
49
46
  "marked-highlight": "^2.2.1"
50
47
  },
48
+ "peerDependencies": {
49
+ "@microsoft/fetch-event-source": "^2.0.1",
50
+ "highlight.js": "^11.11.1",
51
+ "katex": "0.16.12",
52
+ "marked": "^15.0.7",
53
+ "marked-highlight": "^2.2.1"
54
+ },
51
55
  "devDependencies": {
52
56
  "@types/katex": "^0.16.7",
53
57
  "@vitest/coverage-v8": "^4.0.16",