be-hive 0.0.205 → 0.0.207

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/be-hive.js CHANGED
@@ -43,7 +43,7 @@ export class BeHive extends Synthesizer {
43
43
  const mergeWithDefaults = { ...defaultObsAttrs, ...synConfig };
44
44
  //TODO allow for programmatic adjustments in load event
45
45
  //this.dispatchEvent(new RegistryEventImpl(mergeWithDefaults));
46
- const { base, block, branches, enhancedElementInstanceOf, enhancedElementMatches, hostInstanceOf, hostMatches, leaves, preBaseDelimiter, preBranchDelimiter, importEnh, preLeafDelimiter, hasRootIn, map, osotas } = mergeWithDefaults;
46
+ const { base, block, branches, enhancedElementInstanceOf, enhancedElementMatches, hostInstanceOf, hostMatches, leaves, preBaseDelimiter, preBranchDelimiter, importEnh, preLeafDelimiter, hasRootIn, map, osotas, mapLocalNameTo } = mergeWithDefaults;
47
47
  const mi = {
48
48
  on: enhancedElementMatches,
49
49
  whereInstanceOf: enhancedElementInstanceOf,
@@ -109,6 +109,9 @@ export class BeHive extends Synthesizer {
109
109
  initialPropValues[mapsTo] = newValue;
110
110
  }
111
111
  }
112
+ if (mapLocalNameTo !== undefined) {
113
+ initialPropValues[mapLocalNameTo] = mountedElement.localName;
114
+ }
112
115
  enhancementInstance.attach(mountedElement, {
113
116
  initialAttrInfo,
114
117
  initialPropValues,
package/be-hive.ts CHANGED
@@ -56,7 +56,8 @@ export class BeHive extends Synthesizer {
56
56
  base, block, branches, enhancedElementInstanceOf,
57
57
  enhancedElementMatches, hostInstanceOf, hostMatches,
58
58
  leaves, preBaseDelimiter, preBranchDelimiter, importEnh,
59
- preLeafDelimiter, hasRootIn, map, osotas
59
+ preLeafDelimiter, hasRootIn, map, osotas,
60
+ mapLocalNameTo
60
61
 
61
62
  } = mergeWithDefaults;
62
63
  const mi: MountInit = {
@@ -120,6 +121,9 @@ export class BeHive extends Synthesizer {
120
121
  initialPropValues[mapsTo!] = newValue;
121
122
  }
122
123
  }
124
+ if(mapLocalNameTo !== undefined){
125
+ initialPropValues[mapLocalNameTo] = mountedElement.localName;
126
+ }
123
127
  enhancementInstance.attach(mountedElement, {
124
128
  initialAttrInfo,
125
129
  initialPropValues,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.205",
3
+ "version": "0.0.207",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -33,9 +33,9 @@
33
33
  "update": "ncu -u && npm install"
34
34
  },
35
35
  "dependencies": {
36
- "be-enhanced": "0.0.135",
36
+ "be-enhanced": "0.0.138",
37
37
  "mount-observer": "0.0.34",
38
- "trans-render": "0.0.830"
38
+ "trans-render": "0.0.833"
39
39
  },
40
40
  "devDependencies": {
41
41
  "may-it-serve": "0.0.8"