be-hive 0.0.185 → 0.0.187

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 (3) hide show
  1. package/README.md +13 -1
  2. package/be-hive.js +5 -2
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -28,7 +28,19 @@ But the child Shadow DOM realm can develop a personality of its own by:
28
28
  3. Preventing inheriting unwanted behiviors from affecting the child Shadow DOM realm.
29
29
  4. Start over. Only decorator elements manually added inside the Shadow DOM (preferably inside the be-hive tag, for inheritance to work within)
30
30
 
31
- ## Syntax for customizations of inherited behiviors [TODO]
31
+ ## Syntax for customizations of inherited behiviors [WIP]
32
+
33
+ ```html
34
+ <be-hive passthrough></be-hive>
35
+ ```
36
+
37
+ allows behiviors to flow though the ShadowDOM realm to child ShadowDOM realms, but skips over the one in question.
38
+
39
+ ```html
40
+ <be-hive include=... exclude=...>
41
+ ```
42
+
43
+ allows for blocking or specifying which behiviors to enable within the ShadowDOM realm, while allowing them to flow through to the child ShadowDOM realms, unaffected.
32
44
 
33
45
  ```html
34
46
  <be-hive overrides='{
package/be-hive.js CHANGED
@@ -42,7 +42,7 @@ export class BeHive extends Synthesizer {
42
42
  //TODO allow for programmatic adjustments in load event
43
43
  //this.dispatchEvent(new RegistryEventImpl(mergeWithDefaults));
44
44
  if (mergeWithDefaults.block)
45
- return;
45
+ return { mode: 'exclude' };
46
46
  const { base, block, branches, enhancedElementInstanceOf, enhancedElementMatches, hostInstanceOf, hostMatches, leaves, preBaseDelimiter, preBranchDelimiter, importEnh, preLeafDelimiter, hasRootIn, map, osotas } = mergeWithDefaults;
47
47
  const mi = {
48
48
  on: enhancedElementMatches,
@@ -60,7 +60,9 @@ export class BeHive extends Synthesizer {
60
60
  throw 'NI';
61
61
  }
62
62
  mose.init = mi;
63
- super.activate(mose);
63
+ const activeStatus = super.activate(mose);
64
+ if (activeStatus.mode !== 'active')
65
+ return activeStatus;
64
66
  const mo = mose.observer;
65
67
  mo.addEventListener('mount', async (e) => {
66
68
  const { mountedElement } = e;
@@ -115,6 +117,7 @@ export class BeHive extends Synthesizer {
115
117
  mountCnfg: mergeWithDefaults
116
118
  });
117
119
  });
120
+ return activeStatus;
118
121
  }
119
122
  }
120
123
  if (customElements.get('be-hive') === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.185",
3
+ "version": "0.0.187",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -28,12 +28,12 @@
28
28
  "update": "ncu -u && npm install"
29
29
  },
30
30
  "dependencies": {
31
- "be-enhanced": "0.0.109",
31
+ "be-enhanced": "0.0.110",
32
32
  "mount-observer": "0.0.28",
33
- "trans-render": "0.0.792"
33
+ "trans-render": "0.0.794"
34
34
  },
35
35
  "devDependencies": {
36
- "may-it-serve": "0.0.7"
36
+ "may-it-serve": "0.0.8"
37
37
  },
38
38
  "repository": {
39
39
  "type": "git",