@nimblebrain/synapse 0.16.0 → 0.17.1

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.
Files changed (59) hide show
  1. package/README.md +61 -111
  2. package/dist/{chunk-SN7YXLAV.cjs → chunk-EHLQWCYV.cjs} +6 -6
  3. package/dist/{chunk-SN7YXLAV.cjs.map → chunk-EHLQWCYV.cjs.map} +1 -1
  4. package/dist/{chunk-ZMNYUGSF.cjs → chunk-FDMRJZKT.cjs} +576 -662
  5. package/dist/chunk-FDMRJZKT.cjs.map +1 -0
  6. package/dist/{chunk-E7OOOYVR.js → chunk-SRQNQ26I.js} +3 -3
  7. package/dist/{chunk-E7OOOYVR.js.map → chunk-SRQNQ26I.js.map} +1 -1
  8. package/dist/{chunk-RYWW6EHB.cjs → chunk-TXJMGQYF.cjs} +3 -5
  9. package/dist/chunk-TXJMGQYF.cjs.map +1 -0
  10. package/dist/{chunk-J5ICAHK2.js → chunk-UPDBDXQB.js} +4 -5
  11. package/dist/chunk-UPDBDXQB.js.map +1 -0
  12. package/dist/{chunk-GNTQJSQX.js → chunk-VYR6V47N.js} +573 -663
  13. package/dist/chunk-VYR6V47N.js.map +1 -0
  14. package/dist/codegen/cli.cjs +1 -1
  15. package/dist/codegen/cli.js +1 -1
  16. package/dist/codegen/index.d.cts +1 -1
  17. package/dist/codegen/index.d.ts +1 -1
  18. package/dist/connect.iife.global.js +28 -28
  19. package/dist/{detect-C_qmYsh9.d.cts → detect-BHYg26_d.d.cts} +1 -1
  20. package/dist/{detect-Dfd0upoz.d.ts → detect-Bf8Q_0dK.d.ts} +1 -1
  21. package/dist/host/index.cjs +14 -14
  22. package/dist/host/index.d.cts +3 -3
  23. package/dist/host/index.d.ts +3 -3
  24. package/dist/host/index.js +2 -2
  25. package/dist/index.cjs +28 -87
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +58 -26
  28. package/dist/index.d.ts +58 -26
  29. package/dist/index.js +3 -81
  30. package/dist/index.js.map +1 -1
  31. package/dist/react/index.cjs +81 -140
  32. package/dist/react/index.cjs.map +1 -1
  33. package/dist/react/index.d.cts +66 -82
  34. package/dist/react/index.d.ts +66 -82
  35. package/dist/react/index.js +82 -136
  36. package/dist/react/index.js.map +1 -1
  37. package/dist/{server-ERRDGEZ7.js → server-5N76YCWC.js} +3 -3
  38. package/dist/{server-ERRDGEZ7.js.map → server-5N76YCWC.js.map} +1 -1
  39. package/dist/{server-P54IYX2G.cjs → server-QIYIJHD5.cjs} +3 -3
  40. package/dist/{server-P54IYX2G.cjs.map → server-QIYIJHD5.cjs.map} +1 -1
  41. package/dist/synapse-runtime.iife.global.js +28 -28
  42. package/dist/synapse-ui.iife.global.js +2 -2
  43. package/dist/{types-BSZasM8q.d.cts → types-uEO4VFJ2.d.cts} +87 -166
  44. package/dist/{types-BSZasM8q.d.ts → types-uEO4VFJ2.d.ts} +87 -166
  45. package/dist/ui/index.cjs +48 -35
  46. package/dist/ui/index.cjs.map +1 -1
  47. package/dist/ui/index.d.cts +1 -1
  48. package/dist/ui/index.d.ts +1 -1
  49. package/dist/ui/index.js +48 -35
  50. package/dist/ui/index.js.map +1 -1
  51. package/dist/vite/index.cjs +1 -1
  52. package/dist/vite/index.cjs.map +1 -1
  53. package/dist/vite/index.js +1 -1
  54. package/dist/vite/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/chunk-GNTQJSQX.js.map +0 -1
  57. package/dist/chunk-J5ICAHK2.js.map +0 -1
  58. package/dist/chunk-RYWW6EHB.cjs.map +0 -1
  59. package/dist/chunk-ZMNYUGSF.cjs.map +0 -1
@@ -296,7 +296,7 @@ declare const ListDetailLayout: typeof ListDetailLayoutRoot & {
296
296
  Back: typeof Back;
297
297
  };
298
298
 
299
- interface PageLayoutProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
299
+ interface PageLayoutProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
300
300
  /** The trail. Omit at the top level, which has nothing above it to name. */
301
301
  crumbs?: Crumb[];
302
302
  title: ReactNode;
@@ -296,7 +296,7 @@ declare const ListDetailLayout: typeof ListDetailLayoutRoot & {
296
296
  Back: typeof Back;
297
297
  };
298
298
 
299
- interface PageLayoutProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
299
+ interface PageLayoutProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
300
300
  /** The trail. Omit at the top level, which has nothing above it to name. */
301
301
  crumbs?: Crumb[];
302
302
  title: ReactNode;
package/dist/ui/index.js CHANGED
@@ -1555,41 +1555,54 @@ function PageLayout({
1555
1555
  style,
1556
1556
  ...rest
1557
1557
  }) {
1558
- return /* @__PURE__ */ jsxs(
1559
- "div",
1560
- {
1561
- style: { display: "flex", flexDirection: "column", gap: "1.1rem", minWidth: 0, ...style },
1562
- ...rest,
1563
- children: [
1564
- /* @__PURE__ */ jsx(
1565
- PageHeader,
1566
- {
1567
- crumbs,
1568
- title,
1569
- status,
1570
- actions,
1571
- description,
1572
- descriptionLines
1573
- }
1574
- ),
1575
- tabs,
1576
- toolbar ? /* @__PURE__ */ jsx(
1577
- "div",
1578
- {
1579
- style: {
1580
- display: "flex",
1581
- alignItems: "center",
1582
- gap: "0.5rem",
1583
- flexWrap: "wrap",
1584
- minWidth: 0,
1585
- marginBottom: "-0.35rem"
1586
- },
1587
- children: toolbar
1588
- }
1589
- ) : null,
1590
- children
1591
- ]
1592
- }
1558
+ return (
1559
+ // A `<section>`, not a `<div>`, and it is the header below that makes it load-bearing.
1560
+ // `<header>` maps to the `banner` landmark UNLESS it descends from sectioning content, so
1561
+ // a page inside a page — a `PageLayout` in a pane of one — produced TWO banners, both
1562
+ // claiming to head the document. That is the same defect as the app-chrome bar this
1563
+ // layout exists without, one layer down and invisible on screen: it shows up only in the
1564
+ // landmark list a screen-reader user navigates by.
1565
+ //
1566
+ // Scoping it here rather than asking callers to wrap is the point. A consuming app hit
1567
+ // this, diagnosed it, and wrapped its own instance — correct, and not a thing every app
1568
+ // should have to rediscover. An embedded app is not the document anyway: the host owns
1569
+ // the real banner, and what this renders is a section of the host's page.
1570
+ /* @__PURE__ */ jsxs(
1571
+ "section",
1572
+ {
1573
+ style: { display: "flex", flexDirection: "column", gap: "1.1rem", minWidth: 0, ...style },
1574
+ ...rest,
1575
+ children: [
1576
+ /* @__PURE__ */ jsx(
1577
+ PageHeader,
1578
+ {
1579
+ crumbs,
1580
+ title,
1581
+ status,
1582
+ actions,
1583
+ description,
1584
+ descriptionLines
1585
+ }
1586
+ ),
1587
+ tabs,
1588
+ toolbar ? /* @__PURE__ */ jsx(
1589
+ "div",
1590
+ {
1591
+ style: {
1592
+ display: "flex",
1593
+ alignItems: "center",
1594
+ gap: "0.5rem",
1595
+ flexWrap: "wrap",
1596
+ minWidth: 0,
1597
+ marginBottom: "-0.35rem"
1598
+ },
1599
+ children: toolbar
1600
+ }
1601
+ ) : null,
1602
+ children
1603
+ ]
1604
+ }
1605
+ )
1593
1606
  );
1594
1607
  }
1595
1608
  var SidebarCtx = createContext(null);