@next-core/brick-kit 2.156.0 → 2.156.2
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/dist/index.esm.js
CHANGED
|
@@ -5803,13 +5803,14 @@ class MessageDispatcher {
|
|
|
5803
5803
|
var _this = this;
|
|
5804
5804
|
|
|
5805
5805
|
if (Array.isArray(brickAndMessages)) {
|
|
5806
|
-
var _loop = function (brick, match, message) {
|
|
5806
|
+
var _loop = function (brick, match, message, tplContextId) {
|
|
5807
5807
|
[].concat(message).forEach(massageConf => {
|
|
5808
5808
|
var channel = massageConf.channel;
|
|
5809
5809
|
var handler = {
|
|
5810
5810
|
brick,
|
|
5811
5811
|
match,
|
|
5812
|
-
message
|
|
5812
|
+
message,
|
|
5813
|
+
tplContextId
|
|
5813
5814
|
};
|
|
5814
5815
|
|
|
5815
5816
|
if (_this.messages.has(channel)) {
|
|
@@ -5823,9 +5824,10 @@ class MessageDispatcher {
|
|
|
5823
5824
|
for (var {
|
|
5824
5825
|
brick,
|
|
5825
5826
|
match,
|
|
5826
|
-
message
|
|
5827
|
+
message,
|
|
5828
|
+
tplContextId
|
|
5827
5829
|
} of brickAndMessages) {
|
|
5828
|
-
_loop(brick, match, message);
|
|
5830
|
+
_loop(brick, match, message, tplContextId);
|
|
5829
5831
|
}
|
|
5830
5832
|
}
|
|
5831
5833
|
|
|
@@ -6009,7 +6011,9 @@ class MessageDispatcher {
|
|
|
6009
6011
|
var event = new CustomEvent(PluginWebSocketMessageEvent.MESSAGE_PUSH, {
|
|
6010
6012
|
detail: payload === null || payload === void 0 ? void 0 : payload.message
|
|
6011
6013
|
});
|
|
6012
|
-
this.dispatch(event, brickAndMessage.brick,
|
|
6014
|
+
this.dispatch(event, brickAndMessage.brick, _objectSpread(_objectSpread({}, this.context), {}, {
|
|
6015
|
+
tplContextId: brickAndMessage.tplContextId
|
|
6016
|
+
}), [].concat(brickAndMessage.message).reduce((prev, curr) => prev.concat(curr === null || curr === void 0 ? void 0 : curr.handlers), []));
|
|
6013
6017
|
}
|
|
6014
6018
|
}
|
|
6015
6019
|
}
|