be-hive 0.0.235 → 0.0.237

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 +11 -1
  2. package/package.json +3 -3
package/be-hive.js CHANGED
@@ -82,7 +82,17 @@ export class BeHive extends Synthesizer {
82
82
  const { mountedElement } = e;
83
83
  const { beEnhanced } = mountedElement;
84
84
  const enhancementConstructor = await importEnh();
85
- const { enhPropKey } = mergeWithDefaults;
85
+ const { enhPropKey, base } = mergeWithDefaults;
86
+ if (base !== undefined) {
87
+ //TODO: check for data- and enh- and data-enh-
88
+ const deferBase = `defer-${base}`;
89
+ if (mountedElement.hasAttribute(deferBase)) {
90
+ const { wfac } = await import('trans-render/lib/wfac.js');
91
+ await wfac(mountedElement, deferBase, (mr, el, attrs) => {
92
+ return !el.hasAttribute(deferBase);
93
+ });
94
+ }
95
+ }
86
96
  const initialPropValues = beEnhanced[enhPropKey] || {};
87
97
  if (initialPropValues instanceof enhancementConstructor)
88
98
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -45,9 +45,9 @@
45
45
  "update": "ncu -u && npm install"
46
46
  },
47
47
  "dependencies": {
48
- "be-enhanced": "0.0.156",
48
+ "be-enhanced": "0.0.157",
49
49
  "mount-observer": "0.0.39",
50
- "trans-render": "0.0.864"
50
+ "trans-render": "0.0.865"
51
51
  },
52
52
  "devDependencies": {
53
53
  "ssi-server": "0.0.1"