@manta-eu/horns-client 0.1.2 → 0.1.3
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/index.d.ts +1 -0
- package/dist/index.js +9 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AppRoutes, hornsRoutes } from "./app/routes.tsx";
|
|
2
|
+
export { HornsApp } from "./standalone/app.tsx";
|
|
2
3
|
export { AppShell } from "./components/app-shell.tsx";
|
|
3
4
|
export { signInHref } from "./lib/manta/sign-in.ts";
|
|
4
5
|
export { useSparqlSelect } from "./lib/manta/sparql-select.ts";
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
// The Horns app, as a library.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
3
|
+
// Horns is a page rather than a subtree: `Providers` renders the SDK's own <Router>, scoped by basename to
|
|
4
|
+
// /d/<datastore>, and React Router allows no second one. So a host takes `mountHorns` for a page of its own,
|
|
5
|
+
// or renders `<HornsApp />` under providers it builds itself. `hornsRoutes()` is for a host doing the latter
|
|
6
|
+
// and wanting its own 404 — spliced into a <Routes> under that basename, never nested in a second router.
|
|
7
|
+
// What the browser needs beyond this is the stylesheet: `@manta-eu/horns-client/styles.css`, built here
|
|
8
|
+
// rather than compiled by the host, so a host with no Tailwind still gets the app looking like Manta.
|
|
6
9
|
export { AppRoutes, hornsRoutes } from "./app/routes.js";
|
|
10
|
+
// The session gate, and the only thing that provides the AuthContext every Horns page reads. A host
|
|
11
|
+
// splicing `hornsRoutes()` into a router of its own mounts this above them, or provides that context itself.
|
|
12
|
+
export { HornsApp } from "./standalone/app.js";
|
|
7
13
|
export { AppShell } from "./components/app-shell.js";
|
|
8
14
|
export { signInHref } from "./lib/manta/sign-in.js";
|
|
9
15
|
export { useSparqlSelect } from "./lib/manta/sparql-select.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/horns-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The Manta Horns app as a library: routes, providers and the written-view runtime for a React host.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"lucide-react": "^0.525.0",
|
|
67
67
|
"ts-pattern": "^5.9.0",
|
|
68
68
|
"zod": "^4.5.4",
|
|
69
|
-
"@manta-eu/horns": "0.1.
|
|
70
|
-
"@manta-eu/horns-kit": "0.1.
|
|
71
|
-
"@manta-eu/horns-server": "0.1.
|
|
69
|
+
"@manta-eu/horns": "0.1.3",
|
|
70
|
+
"@manta-eu/horns-kit": "0.1.3",
|
|
71
|
+
"@manta-eu/horns-server": "0.1.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@manta-eu/ldo": "0.1.5",
|