be-hive 0.0.225 → 0.0.226

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
@@ -56,7 +56,7 @@ export class BeHive extends Synthesizer {
56
56
  const mergeWithDefaults = { ...defaultObsAttrs, ...synConfig };
57
57
  //TODO allow for programmatic adjustments in load event
58
58
  //this.dispatchEvent(new RegistryEventImpl(mergeWithDefaults));
59
- const { base, block, branches, enhancedElementInstanceOf, enhancedElementMatches, hostInstanceOf, hostMatches, leaves, preBaseDelimiter, preBranchDelimiter, importEnh, preLeafDelimiter, hasRootIn, map, osotas, mapLocalNameTo, ws } = mergeWithDefaults;
59
+ const { base, block, branches, enhancedElementInstanceOf, enhancedElementMatches, hostInstanceOf, hostMatches, leaves, preBaseDelimiter, preBranchDelimiter, importEnh, preLeafDelimiter, hasRootIn, map, osotas, mapLocalNameTo, ws, mapWSTo } = mergeWithDefaults;
60
60
  const mi = {
61
61
  on: enhancedElementMatches,
62
62
  whereInstanceOf: enhancedElementInstanceOf,
@@ -130,6 +130,9 @@ export class BeHive extends Synthesizer {
130
130
  let filteredWs;
131
131
  if (ws !== undefined) {
132
132
  filteredWs = (await import('./e.js')).e(mountedElement, ws, initialPropValues);
133
+ if (mapWSTo !== undefined) {
134
+ initialPropValues[mapWSTo] = filteredWs;
135
+ }
133
136
  }
134
137
  //initialPropValues.scopedCustomHandlers = scopedHandlers.get(synConfig.top)?.get(enhPropKey);
135
138
  enhancementInstance.attach(mountedElement, {
package/be-hive.ts CHANGED
@@ -80,7 +80,7 @@ export class BeHive extends Synthesizer {
80
80
  enhancedElementMatches, hostInstanceOf, hostMatches,
81
81
  leaves, preBaseDelimiter, preBranchDelimiter, importEnh,
82
82
  preLeafDelimiter, hasRootIn, map, osotas,
83
- mapLocalNameTo, ws
83
+ mapLocalNameTo, ws, mapWSTo
84
84
 
85
85
  } = mergeWithDefaults;
86
86
  const mi: MountInit = {
@@ -152,6 +152,9 @@ export class BeHive extends Synthesizer {
152
152
  let filteredWs: Array<IW> | undefined;
153
153
  if(ws !== undefined){
154
154
  filteredWs = (await import('./e.js')).e(mountedElement, ws, initialPropValues);
155
+ if(mapWSTo !== undefined){
156
+ initialPropValues[mapWSTo] = filteredWs
157
+ }
155
158
  }
156
159
  //initialPropValues.scopedCustomHandlers = scopedHandlers.get(synConfig.top)?.get(enhPropKey);
157
160
  enhancementInstance.attach(mountedElement, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.225",
3
+ "version": "0.0.226",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",