@live-change/vue3-components 0.9.13 → 0.9.14

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.
@@ -9,6 +9,7 @@ export function provideComponent(description, component) {
9
9
  for(let key in description) {
10
10
  for(let value of (description[key] instanceof Array ? description[key] : [description[key]])) {
11
11
  const provideKey = `component:${description.name}:${key}=${value}`
12
+ //console.log("PROVIDE COMPONENT", provideKey)
12
13
  provide(provideKey, {
13
14
  component,
14
15
  description
@@ -22,16 +23,16 @@ export function injectComponent(request, defaultComponent, factory) {
22
23
  if(!request) throw new Error("injectComponent: request is required")
23
24
  if(typeof request === 'string') request = { name: request }
24
25
 
25
- console.log("INJECT COMPONENT", request)
26
+ //console.log("INJECT COMPONENT", request)
26
27
 
27
28
  const filter = request.filter || (() => true)
28
29
  delete request.filter
29
30
 
30
31
  for(let key in request) {
31
32
  const provideKey = `component:${request.name}:${key}=${request[key]}`
32
- console.log("INJECT COMPONENT PROVIDE KEY", provideKey)
33
+ //console.log("INJECT COMPONENT PROVIDE KEY", provideKey)
33
34
  const component = inject(provideKey, null)
34
- console.log("RESOLVED COMPONENT", component)
35
+ //console.log("RESOLVED COMPONENT", component)
35
36
  if(!component) continue
36
37
  let isValid = true
37
38
  for(let key in component.description) {
@@ -40,7 +41,7 @@ export function injectComponent(request, defaultComponent, factory) {
40
41
  if(!value.includes(component.description[key])) isValid = false
41
42
  } else if(value !== component.description[key]) isValid = false
42
43
  }
43
- console.log("RESOLVED COMPONENT VALID", isValid)
44
+ //console.log("RESOLVED COMPONENT VALID", isValid)
44
45
  if(isValid && filter(component)) return component.component
45
46
  }
46
47
  return factory ? defaultComponent() : defaultComponent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.9.13",
24
+ "@live-change/vue3-ssr": "^0.9.14",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12"
28
28
  },
29
- "gitHead": "b0b18e7a8e253195c6df4b25c6bb5c407b1a2450"
29
+ "gitHead": "5d0f137a1a16f892868719d919f4a76584fa879f"
30
30
  }