@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.
- package/README.md +61 -111
- package/dist/{chunk-SN7YXLAV.cjs → chunk-EHLQWCYV.cjs} +6 -6
- package/dist/{chunk-SN7YXLAV.cjs.map → chunk-EHLQWCYV.cjs.map} +1 -1
- package/dist/{chunk-ZMNYUGSF.cjs → chunk-FDMRJZKT.cjs} +576 -662
- package/dist/chunk-FDMRJZKT.cjs.map +1 -0
- package/dist/{chunk-E7OOOYVR.js → chunk-SRQNQ26I.js} +3 -3
- package/dist/{chunk-E7OOOYVR.js.map → chunk-SRQNQ26I.js.map} +1 -1
- package/dist/{chunk-RYWW6EHB.cjs → chunk-TXJMGQYF.cjs} +3 -5
- package/dist/chunk-TXJMGQYF.cjs.map +1 -0
- package/dist/{chunk-J5ICAHK2.js → chunk-UPDBDXQB.js} +4 -5
- package/dist/chunk-UPDBDXQB.js.map +1 -0
- package/dist/{chunk-GNTQJSQX.js → chunk-VYR6V47N.js} +573 -663
- package/dist/chunk-VYR6V47N.js.map +1 -0
- package/dist/codegen/cli.cjs +1 -1
- package/dist/codegen/cli.js +1 -1
- package/dist/codegen/index.d.cts +1 -1
- package/dist/codegen/index.d.ts +1 -1
- package/dist/connect.iife.global.js +28 -28
- package/dist/{detect-C_qmYsh9.d.cts → detect-BHYg26_d.d.cts} +1 -1
- package/dist/{detect-Dfd0upoz.d.ts → detect-Bf8Q_0dK.d.ts} +1 -1
- package/dist/host/index.cjs +14 -14
- package/dist/host/index.d.cts +3 -3
- package/dist/host/index.d.ts +3 -3
- package/dist/host/index.js +2 -2
- package/dist/index.cjs +28 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +58 -26
- package/dist/index.d.ts +58 -26
- package/dist/index.js +3 -81
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +81 -140
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +66 -82
- package/dist/react/index.d.ts +66 -82
- package/dist/react/index.js +82 -136
- package/dist/react/index.js.map +1 -1
- package/dist/{server-ERRDGEZ7.js → server-5N76YCWC.js} +3 -3
- package/dist/{server-ERRDGEZ7.js.map → server-5N76YCWC.js.map} +1 -1
- package/dist/{server-P54IYX2G.cjs → server-QIYIJHD5.cjs} +3 -3
- package/dist/{server-P54IYX2G.cjs.map → server-QIYIJHD5.cjs.map} +1 -1
- package/dist/synapse-runtime.iife.global.js +28 -28
- package/dist/synapse-ui.iife.global.js +2 -2
- package/dist/{types-BSZasM8q.d.cts → types-uEO4VFJ2.d.cts} +87 -166
- package/dist/{types-BSZasM8q.d.ts → types-uEO4VFJ2.d.ts} +87 -166
- package/dist/ui/index.cjs +48 -35
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +48 -35
- package/dist/ui/index.js.map +1 -1
- package/dist/vite/index.cjs +1 -1
- package/dist/vite/index.cjs.map +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GNTQJSQX.js.map +0 -1
- package/dist/chunk-J5ICAHK2.js.map +0 -1
- package/dist/chunk-RYWW6EHB.cjs.map +0 -1
- package/dist/chunk-ZMNYUGSF.cjs.map +0 -1
package/dist/ui/index.d.cts
CHANGED
|
@@ -296,7 +296,7 @@ declare const ListDetailLayout: typeof ListDetailLayoutRoot & {
|
|
|
296
296
|
Back: typeof Back;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
interface PageLayoutProps extends Omit<HTMLAttributes<
|
|
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.d.ts
CHANGED
|
@@ -296,7 +296,7 @@ declare const ListDetailLayout: typeof ListDetailLayoutRoot & {
|
|
|
296
296
|
Back: typeof Back;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
interface PageLayoutProps extends Omit<HTMLAttributes<
|
|
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
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
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);
|