be-hive 0.0.113 → 0.0.115

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
@@ -46,6 +46,10 @@ export class BeHive extends HTMLElement {
46
46
  for (const mutation of mutationList) {
47
47
  if (mutation.type === "childList") {
48
48
  for (const node of mutation.addedNodes) {
49
+ if (node instanceof Element && node.hasAttribute('data--ignore')) {
50
+ //console.log('ignore');
51
+ continue;
52
+ }
49
53
  this.#inspectNewNode(node);
50
54
  }
51
55
  for (const node of mutation.removedNodes) {
@@ -64,6 +68,10 @@ export class BeHive extends HTMLElement {
64
68
  }
65
69
  else if (mutation.type === "attributes") {
66
70
  const { target } = mutation;
71
+ if (target instanceof Element && target.hasAttribute('data--ignore')) {
72
+ //console.log('ignore');
73
+ continue;
74
+ }
67
75
  this.#inspectNewNode(target);
68
76
  }
69
77
  }
package/beatify.js CHANGED
@@ -35,6 +35,9 @@ export function beatify(content, beHive, options) {
35
35
  be += '}';
36
36
  el.setAttribute('be', be);
37
37
  }
38
+ for (const child of clone.children) {
39
+ child.setAttribute('data--ignore', '');
40
+ }
38
41
  return clone;
39
42
  // const decoratorElements = Array.from(beHive.children) as any;
40
43
  // for(const decorEl of decoratorElements){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -28,8 +28,8 @@
28
28
  "update": "ncu -u && npm install"
29
29
  },
30
30
  "dependencies": {
31
- "be-enhanced": "0.0.35",
32
- "trans-render": "0.0.695"
31
+ "be-enhanced": "0.0.36",
32
+ "trans-render": "0.0.699"
33
33
  },
34
34
  "devDependencies": {
35
35
  "may-it-serve": "0.0.5"