tutuca 0.9.115 → 0.10.0

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.
@@ -1374,10 +1374,8 @@ function introspectComponent(comp) {
1374
1374
  defaultValue: f.defaultValue
1375
1375
  })),
1376
1376
  methods: Object.keys(methods),
1377
- input: Object.keys(comp.input ?? {}),
1378
1377
  receive: Object.keys(comp.receive ?? {}),
1379
- bubble: Object.keys(comp.bubble ?? {}),
1380
- response: Object.keys(comp.response ?? {}),
1378
+ intent: Object.keys(comp.intent ?? {}),
1381
1379
  alter: Object.keys(comp.alter ?? {}),
1382
1380
  statics: Object.keys(comp.spec?.statics ?? {}),
1383
1381
  views: Object.values(comp.views ?? {}).map((v) => ({
@@ -1422,10 +1420,10 @@ var CompView = component5({
1422
1420
  return this.isExpanded ? "▼" : "▶";
1423
1421
  }
1424
1422
  },
1425
- input: {
1423
+ receive: {
1426
1424
  toggle(isCtrl, ctx) {
1427
1425
  if (isCtrl) {
1428
- ctx.bubble("toggleAllViews", [!this.isExpanded]);
1426
+ ctx.intent("toggleAllViews", [!this.isExpanded], { route: ["dyn"] });
1429
1427
  return this;
1430
1428
  }
1431
1429
  return this.toggleIsExpanded();
@@ -1458,10 +1456,10 @@ var CompSection = component5({
1458
1456
  return `(${this.items.size})`;
1459
1457
  }
1460
1458
  },
1461
- input: {
1459
+ receive: {
1462
1460
  toggle(isCtrl, ctx) {
1463
1461
  if (isCtrl) {
1464
- ctx.bubble("toggleAllSections", [!this.isExpanded]);
1462
+ ctx.intent("toggleAllSections", [!this.isExpanded], { route: ["dyn"] });
1465
1463
  return this;
1466
1464
  }
1467
1465
  return this.toggleIsExpanded();
@@ -1500,7 +1498,7 @@ var ComponentInspector = component5({
1500
1498
  return this.setAllViews(false);
1501
1499
  }
1502
1500
  },
1503
- bubble: {
1501
+ intent: {
1504
1502
  toggleAllSections(state) {
1505
1503
  return this.setAllSections(state);
1506
1504
  },
@@ -1530,10 +1528,8 @@ var ComponentInspector = component5({
1530
1528
  true
1531
1529
  );
1532
1530
  add("Methods", names(d.methods));
1533
- add("Input", names(d.input));
1534
1531
  add("Receive", names(d.receive));
1535
- add("Bubble", names(d.bubble));
1536
- add("Response", names(d.response));
1532
+ add("Intent", names(d.intent));
1537
1533
  add("Alter", names(d.alter));
1538
1534
  add("Statics", names(d.statics));
1539
1535
  add(
@@ -1598,12 +1594,10 @@ function lintMessage(id, info = {}) {
1598
1594
  return `Method '$${info.name}' is not defined${originSuffix(info)}`;
1599
1595
  case "METHOD_VAL_IS_FIELD":
1600
1596
  return `'$${info.name}' calls a method, but '${info.name}' is a field — use '.${info.name}'${originSuffix(info)}`;
1601
- case "INPUT_HANDLER_NOT_IMPLEMENTED":
1602
- return `Input handler '${info.name}' is not implemented${eventSuffix(info)}`;
1603
- case "INPUT_HANDLER_METHOD_NOT_IMPLEMENTED":
1597
+ case "RECEIVE_HANDLER_NOT_IMPLEMENTED":
1598
+ return `Receive handler '${info.name}' is not implemented${eventSuffix(info)}`;
1599
+ case "RECEIVE_HANDLER_METHOD_NOT_IMPLEMENTED":
1604
1600
  return `Method '$${info.name}' is not implemented${eventSuffix(info)}`;
1605
- case "INPUT_HANDLER_NOT_REFERENCED":
1606
- return `Input handler '${info.name}' is defined but never used`;
1607
1601
  case "ALT_HANDLER_NOT_DEFINED":
1608
1602
  return `Alter handler '${info.name}' is not defined${originSuffix(info)}`;
1609
1603
  case "DYN_VAL_NOT_DEFINED":
@@ -1914,10 +1908,10 @@ var TestSuite = component7({
1914
1908
  return this.summary || `(${this.items.size})`;
1915
1909
  }
1916
1910
  },
1917
- input: {
1911
+ receive: {
1918
1912
  toggle(isCtrl, ctx) {
1919
1913
  if (isCtrl) {
1920
- ctx.bubble("toggleAll", [!this.isExpanded]);
1914
+ ctx.intent("toggleAll", [!this.isExpanded], { route: ["dyn"] });
1921
1915
  return this;
1922
1916
  }
1923
1917
  return this.toggleIsExpanded();
@@ -2002,7 +1996,7 @@ var TestReport = component7({
2002
1996
  return this.setSuites(this.suites.map((s) => setSuiteTreeExpanded(s, state)));
2003
1997
  }
2004
1998
  },
2005
- bubble: {
1999
+ intent: {
2006
2000
  // ctrl/cmd-click on any suite expands/collapses the whole tree at once.
2007
2001
  toggleAll(state) {
2008
2002
  return this.setAllSuites(state);