@knowlearning/agents 0.4.10 → 0.4.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",
@@ -1,5 +1,4 @@
1
- import { createApp, watchEffect } from 'vue'
2
- import content from "./content.vue"
1
+ import { watchEffect } from 'vue'
3
2
 
4
3
  // TODO: probably want to make this a util, and better fleshed out (with white instead of blacklist)
5
4
  function isScopeSerializable(v) {
@@ -8,7 +7,7 @@ function isScopeSerializable(v) {
8
7
  )
9
8
  }
10
9
 
11
- export default async function (module, props, scope) {
10
+ export default async function (module, scope) {
12
11
  const component = module.default ? { ...module.default } : { ...module } // copy component since we will mess with mounted and data functions
13
12
 
14
13
  if (!component.ephemeral) {
@@ -51,8 +50,5 @@ export default async function (module, props, scope) {
51
50
  }
52
51
  }
53
52
 
54
- document.body.innerHTML = ''
55
- const app = createApp(component, props)
56
- app.component('Content', content)
57
- app.mount(document.body)
53
+ return component
58
54
  }
@@ -1,4 +0,0 @@
1
- // This shim is necessary to specify the vue import for our infrastructure
2
- import 'npm/unscoped/vue/3.2.39'
3
-
4
- export { default } from './component.js'