@alis-build/design-system 0.49.0 → 0.49.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.
|
@@ -125,7 +125,8 @@ The draft and a submitted message have different owners. Use this lifecycle in e
|
|
|
125
125
|
- **It is sticky at the foot of the content** (`.app-dock`): the last child of the content that scrolls, in a column at least as tall as what you can see (AppShell's `.app-shell__content` is one), so it sits at the foot of a short page and stays there over a long one. In a split view it goes in the pane you read. Its own height is the page's clearance: at the end of the page it sits under the last line, never over it, and **a page never adds space for it.** The ground under it fades the page out above the composer (`background`, from transparent over 32px).
|
|
126
126
|
- **The box sits in `.app-composer__lift`**, which carries the shadow, so the clip below takes the shadow with it. A docked composer has no line except an error.
|
|
127
127
|
- **It settles** while you scroll down, once the content is more than half its visible height from the top, and only while it holds nothing of yours: empty, unfocused, nothing in the tray, no menu or popover open from it, no ask, no capture, no recording and no call. Only scrolls you make count, not the product's own (restoring a position, scrolling to an anchor or to what has focus). A page that doesn't scroll never settles.
|
|
128
|
-
- **It opens
|
|
128
|
+
- **It opens by itself only at the two ends**: back near the top, 48px above the line it settled at, and at the end of the page (with nothing more to load). Scrolling up in between leaves it settled: that is usually re-reading, and the paragraph you went back for stays clear. Opened at the end, scrolling up 48px or more settles it again (48, so a bounce at the end doesn't flicker it).
|
|
129
|
+
- **You open it** by clicking or tabbing to Ask Alis (the cursor goes to the editor), dropping a file on the page, or choosing Ask Alis on a selection, wherever you are on the page. Opened by you, it stays open until it holds nothing of yours and you scroll down again.
|
|
129
130
|
- **The movement**: the box closes in from the sides and the top onto Ask Alis, so it reads as the composer put away, never as something arriving. Settling, the box closes on `spring-default-spatial`; the editor and the row fade on `spring-fast-effects` and drop 6px (on a phone, where they share a row, they only fade); Ask Alis fades in on `spring-default-effects` once they have gone. Opening runs it back: Ask Alis goes, the box opens, the rest fades and rises into place after it. Under reduced motion the box changes in one step and the rest still fades ([motion.md](../rules/motion.md)). The mark's dots hold still: dots that move are the loader, Alis working.
|
|
130
131
|
- **One markup.** The settle is `.is-settled` on `.app-composer`; Ask Alis is `.app-composer__trace` inside the box, there all along. The textarea is never re-rendered or moved, so a draft, a cursor or a phone's keyboard can't be lost.
|
|
131
132
|
- **What its controls do.** Send opens the new conversation on Alis's page with the message, the tray, and the page you were on as references. Talk opens it in a call. Add and a dropped file stage files in the tray first, as in any composer.
|
|
@@ -367,7 +368,7 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
|
|
|
367
368
|
- **Drop**: show `.app-composer__drop` in the tray while a file is dragged over the composer; on drop, stage an [AppAttachment](AppAttachment.md).
|
|
368
369
|
- **Delivery** follows § Delivery and retry: before submission the draft stays; after submission, the turn owns any failure and retry. A new draft never changes the audience or files of a retry.
|
|
369
370
|
- Return focus to the editor after sending, after dictation and after a call.
|
|
370
|
-
- **Docked as a way in** (§ Docked as a way in): put `.app-dock` last in the content that scrolls, with no bottom padding of the content's own after it (AppShell's is removed for you). Settle by toggling `.is-settled` on `.app-composer` on the rules in § Docked as a way in, listening to that scroller (the window, for AppShell); flag the product's own scrolls so they don't count. Before settling, set `inert` on the box's bands and clear it from Ask Alis; opening, focus the editor first when it opens from Ask Alis, then set `inert` on Ask Alis, so focus never falls to the page. Focusing Ask Alis from the keyboard opens the composer.
|
|
371
|
+
- **Docked as a way in** (§ Docked as a way in): put `.app-dock` last in the content that scrolls, with no bottom padding of the content's own after it (AppShell's is removed for you). Settle by toggling `.is-settled` on `.app-composer` on the rules in § Docked as a way in, listening to that scroller (the window, for AppShell); flag the product's own scrolls so they don't count. Keep two lines: the settle line (half the visible height) and the top line 48px above it, and remember whether it opened at the end, so 48px up from the end settles it. Before settling, set `inert` on the box's bands and clear it from Ask Alis; opening, focus the editor first when it opens from Ask Alis, then set `inert` on Ask Alis, so focus never falls to the page. Focusing Ask Alis from the keyboard opens the composer.
|
|
371
372
|
- **Ask Alis on a selection**: on `selectionchange`, show `.app-selection-ask` for a selection that isn't empty, inside the content, and outside a field, an editor, a `contenteditable`, the composer, a dialog and `[data-no-ask]`. Read the selection's text and rectangle when you show it, and stop `pointerdown` on the pill from collapsing it. On press, put the text in the tray as the quote, clear the selection, open the composer and focus the editor. On send, put the quote before the message as a Markdown quote (`> ` before every line, then a blank line).
|
|
372
373
|
|
|
373
374
|
## Classes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|