be-hive 0.0.133 → 0.0.134

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.
Files changed (2) hide show
  1. package/be-hive.js +13 -5
  2. package/package.json +4 -4
package/be-hive.js CHANGED
@@ -92,12 +92,20 @@ export class BeHive extends HTMLElement {
92
92
  }
93
93
  #scanForSingleRegisteredBehavior(localName, behaviorKeys) {
94
94
  const { ifWantsToBe, upgrade, aspects } = behaviorKeys;
95
- const allAspects = aspects !== undefined ? ['', ...aspects.map(x => '-' + x)] : [''];
96
95
  const mo = new MountObserver({
97
- match: `${upgrade}:not([data--ignore])`,
98
- attribMatches: allAspects.map(x => ({
99
- names: [localName + x, `enh-by-${localName}` + x, `data-enh-by-${localName}` + x]
100
- }))
96
+ //on: `${upgrade}:not([data--ignore])`,
97
+ on: upgrade,
98
+ whereAttr: {
99
+ hasRootIn: ['enh', 'data-enh', {
100
+ path: '',
101
+ context: 'BuiltIn'
102
+ }],
103
+ hasBase: localName,
104
+ hasBranchIn: aspects
105
+ }
106
+ // attribMatches: allAspects.map(x => ({
107
+ // names: [localName + x, `enh-by-${localName}` + x, `data-enh-by-${localName}` + x]
108
+ // }) as AttribMatch)
101
109
  });
102
110
  mo.addEventListener('mount', e => {
103
111
  const { beEnhanced } = e.mountedElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -28,9 +28,9 @@
28
28
  "update": "ncu -u && npm install"
29
29
  },
30
30
  "dependencies": {
31
- "be-enhanced": "0.0.62",
32
- "mount-observer": "0.0.6",
33
- "trans-render": "0.0.732"
31
+ "be-enhanced": "0.0.64",
32
+ "mount-observer": "0.0.8",
33
+ "trans-render": "0.0.736"
34
34
  },
35
35
  "devDependencies": {
36
36
  "may-it-serve": "0.0.6"