@atelic-action/ui 0.16.0 → 0.16.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 +3 -1
- package/package.json +1 -1
- package/src/scripts/build-gate-payload.mjs +4 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @atelic-action/ui
|
|
2
2
|
|
|
3
|
-
Shared UI for the Atelic templates: the site chrome (header, menu, footer, sticky CTA bar, and credit band), the not found page and the routing that keeps it alive, the scroll spy hook, and the one base stylesheet. The marketing and artifact templates install it instead of carrying their own copies, so a chrome fix lands once and every site picks it up with `bun update`.
|
|
3
|
+
Shared UI for the Atelic templates: the site chrome (header, menu, footer, sticky CTA bar, and credit band), the not found page and the routing that keeps it alive, the scroll spy hook, and the one base stylesheet. The marketing and artifact templates install it instead of carrying their own copies, so a chrome fix lands once and every site picks it up with `bun update @atelic-action/ui --latest`.
|
|
4
4
|
|
|
5
5
|
The package ships source, not a build. Its TSX and CSS arrive as written and compile inside each site's own Vite. The one exception is the access gate's server side, which ships compiled (see [The Access Gate](#the-access-gate)).
|
|
6
6
|
|
|
@@ -10,6 +10,8 @@ The package ships source, not a build. Its TSX and CSS arrive as written and com
|
|
|
10
10
|
bun add @atelic-action/ui
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
The package is below 1.0, where a caret range admits patches only, so a site takes a new minor with `bun update @atelic-action/ui --latest`: a plain `bun update` leaves it on the minor it has and reports nothing wrong.
|
|
14
|
+
|
|
13
15
|
Peer dependencies: `react` and `react-dom` at `^19.0.0`, and `lucide-react` at `^1.23.0`. Three more are optional, needed only by a site whose `vite.config.ts` imports `@atelic-action/ui/vite`: `vite`, `@tanstack/react-start`, and `@vitejs/plugin-react`. The commands the package installs run under `bun`, with `node` for the sealing command.
|
|
14
16
|
|
|
15
17
|
## Vite Config
|
package/package.json
CHANGED
|
@@ -83,8 +83,10 @@ async function deriveKey(email, salt) {
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Encrypt `contentHtml` once and wrap the content key for each person.
|
|
86
|
-
* `people` is [{ id, email }]
|
|
87
|
-
*
|
|
86
|
+
* `people` is [{ id, email }]. The email is the reader's secret, the thing
|
|
87
|
+
* their key derives from, so it never reaches the payload; nor does the id,
|
|
88
|
+
* which is often a first name. A sealed reader is an ordinal (`r1`, `r2`)
|
|
89
|
+
* and their wrap, and nothing that says who they are.
|
|
88
90
|
*/
|
|
89
91
|
export async function sealDocument(contentHtml, people) {
|
|
90
92
|
if (typeof contentHtml !== "string" || contentHtml.length === 0) {
|