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.
- package/be-hive.js +13 -5
- 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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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.
|
|
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.
|
|
32
|
-
"mount-observer": "0.0.
|
|
33
|
-
"trans-render": "0.0.
|
|
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"
|