@fv-ui/ai-chat 0.12.0 → 0.12.1

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/es/index.mjs CHANGED
@@ -7932,7 +7932,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
7932
7932
  const msgEl = btn.closest(".fv-msg");
7933
7933
  const msgId = msgEl?.getAttribute("data-message-id") ?? "";
7934
7934
  if (!lang || !msgId || !msgEl) return;
7935
- const pres = Array.from(msgEl.querySelectorAll("pre"));
7935
+ const pres = Array.from(msgEl.querySelectorAll("pre[data-fv-code-lang]"));
7936
7936
  const pre = btn.closest("pre");
7937
7937
  const idx = pre ? pres.indexOf(pre) : -1;
7938
7938
  if (idx < 0) return;
package/lib/index.js CHANGED
@@ -7948,7 +7948,7 @@
7948
7948
  const msgEl = btn.closest(".fv-msg");
7949
7949
  const msgId = msgEl?.getAttribute("data-message-id") ?? "";
7950
7950
  if (!lang || !msgId || !msgEl) return;
7951
- const pres = Array.from(msgEl.querySelectorAll("pre"));
7951
+ const pres = Array.from(msgEl.querySelectorAll("pre[data-fv-code-lang]"));
7952
7952
  const pre = btn.closest("pre");
7953
7953
  const idx = pre ? pres.indexOf(pre) : -1;
7954
7954
  if (idx < 0) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fv-ui/ai-chat",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "基于 Vue3 + Element Plus 的 AI 对话组件库",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",