@knowlearning/agents 0.9.161 → 0.9.162

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.9.161",
3
+ "version": "0.9.162",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script>
16
- import browserAgent from '../../../agents/browser/initialize.js'
16
+ import Agent from '../../../browser.js'
17
17
 
18
18
  export default {
19
19
  props: {
@@ -57,7 +57,7 @@ export default {
57
57
  startWatching() {
58
58
  if (this.stopWatching) this.stopWatching()
59
59
  if (this.path.length) {
60
- this.stopWatching = browserAgent().watch([this.id, ...this.path], value => {
60
+ this.stopWatching = Agent().watch([this.id, ...this.path], value => {
61
61
  // TODO: ensure resolved value is uuid or URL
62
62
  this.resolvedId = value
63
63
  })
@@ -68,8 +68,8 @@ export default {
68
68
  if (!iframe || this.iframe === iframe) return
69
69
 
70
70
  this.iframe = iframe
71
- this.embedding = browserAgent().embed({ id, mode, namespace }, iframe)
72
- this.embedding.on('environment', e => this.environmentProxy ? this.environmentProxy(e) : browserAgent().environment(e))
71
+ this.embedding = Agent().embed({ id, mode, namespace }, iframe)
72
+ this.embedding.on('environment', e => this.environmentProxy ? this.environmentProxy(e) : Agent().environment(e))
73
73
  this.embedding.on('state', e => this.$emit('state', e))
74
74
  this.embedding.on('mutate', e => this.$emit('mutate', e))
75
75
  this.embedding.on('close', e => this.$emit('close', e))