be-hive 0.0.239 → 0.0.241
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 +4 -1
- package/be-hive.ts +4 -1
- package/e.js +8 -0
- package/e.ts +8 -1
- package/package.json +3 -3
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, mapEnhKeyTo } = mergeWithDefaults;
|
|
60
60
|
const mi = {
|
|
61
61
|
on: enhancedElementMatches,
|
|
62
62
|
whereInstanceOf: enhancedElementInstanceOf,
|
|
@@ -138,6 +138,9 @@ export class BeHive extends Synthesizer {
|
|
|
138
138
|
if (mapLocalNameTo !== undefined) {
|
|
139
139
|
initialPropValues[mapLocalNameTo] = mountedElement.localName;
|
|
140
140
|
}
|
|
141
|
+
if (mapEnhKeyTo !== undefined) {
|
|
142
|
+
initialPropValues[mapEnhKeyTo] = enhPropKey;
|
|
143
|
+
}
|
|
141
144
|
initialPropValues.customHandlers = registeredHandlers.get(synConfig.top)?.get(enhPropKey);
|
|
142
145
|
let filteredWs;
|
|
143
146
|
if (ws !== undefined) {
|
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, mapEnhKeyTo
|
|
84
84
|
|
|
85
85
|
} = mergeWithDefaults;
|
|
86
86
|
const mi: MountInit = {
|
|
@@ -160,6 +160,9 @@ export class BeHive extends Synthesizer {
|
|
|
160
160
|
if(mapLocalNameTo !== undefined){
|
|
161
161
|
initialPropValues[mapLocalNameTo] = mountedElement.localName;
|
|
162
162
|
}
|
|
163
|
+
if(mapEnhKeyTo !== undefined){
|
|
164
|
+
initialPropValues[mapEnhKeyTo] = enhPropKey;
|
|
165
|
+
}
|
|
163
166
|
initialPropValues.customHandlers = registeredHandlers.get(synConfig.top)?.get(enhPropKey);
|
|
164
167
|
let filteredWs: Array<IW> | undefined;
|
|
165
168
|
if(ws !== undefined){
|
package/e.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* syndicate custom event handlers
|
|
3
|
+
* @param emc
|
|
4
|
+
* @param matchingElement
|
|
5
|
+
* @param ws
|
|
6
|
+
* @param initialPropVals
|
|
7
|
+
* @param ac
|
|
8
|
+
*/
|
|
1
9
|
export function e(emc, matchingElement, ws, initialPropVals, ac) {
|
|
2
10
|
const matchingWs = [];
|
|
3
11
|
const { mapWSTo, primaryProp } = emc;
|
package/e.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { EMC, EventListenerClass, EventListenerOrFn, IW } from "./ts-refs/trans-render/be/types";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* syndicate custom event handlers
|
|
5
|
+
* @param emc
|
|
6
|
+
* @param matchingElement
|
|
7
|
+
* @param ws
|
|
8
|
+
* @param initialPropVals
|
|
9
|
+
* @param ac
|
|
10
|
+
*/
|
|
4
11
|
export function e(emc: EMC, matchingElement: Element, ws: Array<IW>, initialPropVals: any, ac?: AbortController){
|
|
5
12
|
const matchingWs = [];
|
|
6
13
|
const {mapWSTo, primaryProp} = emc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "be-hive",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.241",
|
|
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.
|
|
48
|
+
"be-enhanced": "0.0.160",
|
|
49
49
|
"mount-observer": "0.0.39",
|
|
50
|
-
"trans-render": "0.0.
|
|
50
|
+
"trans-render": "0.0.870"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"ssi-server": "0.0.1"
|