tutuca 0.9.56 → 0.9.57

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/tutuca.js CHANGED
@@ -2208,7 +2208,8 @@ class NameArgsTransaction extends Transaction {
2208
2208
  }
2209
2209
  handlerProp = null;
2210
2210
  getHandlerForName(comp) {
2211
- return comp?.[this.handlerProp]?.[this.name] ?? nullHandler;
2211
+ const handlers = comp?.[this.handlerProp];
2212
+ return handlers?.[this.name] ?? handlers?.$unknown ?? nullHandler;
2212
2213
  }
2213
2214
  getHandlerAndArgs(_root, instance, comps) {
2214
2215
  const handler = this.getHandlerForName(comps.getCompFor(instance));
@@ -2297,6 +2298,9 @@ class Dispatcher {
2297
2298
  }
2298
2299
 
2299
2300
  class EventContext extends Dispatcher {
2301
+ get name() {
2302
+ return this.parent?.name ?? null;
2303
+ }
2300
2304
  stopPropagation() {
2301
2305
  return this.parent.stopPropagation();
2302
2306
  }