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/README.md +25 -21
- package/dist/tutuca-cli.js +1129 -541
- package/dist/tutuca-dev.js +11 -3
- package/dist/tutuca-dev.min.js +2 -2
- package/dist/tutuca-extra.js +5 -1
- package/dist/tutuca-extra.min.js +1 -1
- package/dist/tutuca.js +5 -1
- package/dist/tutuca.min.js +1 -1
- package/package.json +2 -2
- package/skill/tutuca/cli.md +82 -29
- package/skill/tutuca/core.md +7 -7
- package/skill/tutuca/testing.md +5 -5
package/dist/tutuca-extra.js
CHANGED
|
@@ -2208,7 +2208,8 @@ class NameArgsTransaction extends Transaction {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
handlerProp = null;
|
|
2210
2210
|
getHandlerForName(comp) {
|
|
2211
|
-
|
|
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
|
}
|