@huyooo/ai-chat-frontend-vue 0.3.11 → 0.3.12

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.
@@ -1,7 +1,7 @@
1
1
  import * as VueRuntime from "vue";
2
2
  import { defineComponent, inject, ref, computed, onMounted, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeStyle, createCommentVNode, createElementVNode, createVNode, unref, toDisplayString } from "vue";
3
3
  import { Icon } from "@iconify/vue";
4
- import { D, A, b, _ as _export_sfc } from "./index-Nyis_G4Z.js";
4
+ import { D, A, b, _ as _export_sfc } from "./index-DXB25M-x.js";
5
5
  const e = `data-huyooo-extension-theme`, t = `
6
6
  :host {
7
7
  --sx-bg: var(--chat-bg, var(--huyooo-bg, #ffffff));
@@ -1277,7 +1277,7 @@ function useMessageSender(ctx, autoRunConfig, enabledTools) {
1277
1277
  const stopModelsUpdated = ((_a2 = adapter.onModelsUpdated) == null ? void 0 : _a2.call(adapter, () => {
1278
1278
  modelsPromise = null;
1279
1279
  })) ?? null;
1280
- if (stopModelsUpdated) {
1280
+ if (stopModelsUpdated && getCurrentInstance()) {
1281
1281
  onUnmounted(stopModelsUpdated);
1282
1282
  }
1283
1283
  function loadModels() {
@@ -9299,7 +9299,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9299
9299
  },
9300
9300
  setup(__props) {
9301
9301
  function loadExtensionPartHostComponent() {
9302
- return import("./ExtensionPartHost-DWp-93eZ.js");
9302
+ return import("./ExtensionPartHost-Dk8ng4vf.js");
9303
9303
  }
9304
9304
  const ExtensionPartHost = defineAsyncComponent(loadExtensionPartHostComponent);
9305
9305
  const loadPartCode = inject("loadPartCode");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i, h, C, f, k, E, I, M, P, d, T, c, l, e, W, Z, j, g, u, a } from "./index-Nyis_G4Z.js";
1
+ import { i, h, C, f, k, E, I, M, P, d, T, c, l, e, W, Z, j, g, u, a } from "./index-DXB25M-x.js";
2
2
  import "vue";
3
3
  import "@iconify/vue";
4
4
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ai-chat-frontend-vue",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "AI Chat Frontend - Vue components with adapter pattern",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,8 +34,8 @@
34
34
  "vue": "^3.4.0"
35
35
  },
36
36
  "dependencies": {
37
- "@huyooo/ai-chat-shared": "^0.3.11",
38
- "@huyooo/ai-chat-types": "^0.3.11",
37
+ "@huyooo/ai-chat-shared": "^0.3.12",
38
+ "@huyooo/ai-chat-types": "^0.3.12",
39
39
  "dompurify": "^3.2.0",
40
40
  "marked": "^12.0.0",
41
41
  "vscode-uri": "^3.1.0"