@koumoul/vjsf 4.5.0 → 4.5.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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed, shallowRef, watch } from 'vue'
|
|
2
|
+
import { computed, shallowRef, watch, onScopeDispose } from 'vue'
|
|
3
3
|
|
|
4
4
|
import { compile, produceCompileOptions } from '@json-layout/core/compile'
|
|
5
5
|
import { WebMCP } from '@json-layout/core/webmcp'
|
|
@@ -67,6 +67,12 @@ watch(statefulLayout, () => {
|
|
|
67
67
|
}
|
|
68
68
|
}, { immediate: true })
|
|
69
69
|
|
|
70
|
+
// always unregister our tools when the component is torn down, otherwise a later
|
|
71
|
+
// instance mounted with the same prefixName would fail to register them again
|
|
72
|
+
onScopeDispose(() => {
|
|
73
|
+
if (webMCP.value) webMCP.value.unregisterTools()
|
|
74
|
+
})
|
|
75
|
+
|
|
70
76
|
</script>
|
|
71
77
|
|
|
72
78
|
<template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vjsf-webmcp.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf-webmcp.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vjsf-webmcp.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf-webmcp.vue"],"names":[],"mappings":"wBAwPqB,OAAO,YAAY;;AAnCxC;;;;;;QAQI,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;;QAS5E,oFAAoF;cAA1E,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;QATjF,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;;QAS5E,oFAAoF;cAA1E,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;wHAiBlF"}
|