@aparte/core 0.32.0 → 1.0.0
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 +30 -19
- package/dist/client/agent-runner.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +12 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +4 -11
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts +77 -5
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts.map +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts +15 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -1
- package/dist/components/suggestions/suggestion-blocks.d.ts +21 -1
- package/dist/components/suggestions/suggestion-blocks.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +7 -6
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +56 -4
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/config-context.d.ts.map +1 -1
- package/dist/config/image-policy.d.ts +104 -0
- package/dist/config/image-policy.d.ts.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/locale.d.ts +8 -10
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts +36 -0
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/custom-elements.json +1236 -122
- package/dist/{defer-hydration-ggxlbvL9.js → defer-hydration-Dw5D80FC.js} +831 -68
- package/dist/defer-hydration-Dw5D80FC.js.map +1 -0
- package/dist/elicitation/panel.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +1 -3
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +473 -122
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +2 -2
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +1 -1
- package/dist/interop/dialog-triggers.d.ts.map +1 -1
- package/dist/interop/image-holds.d.ts +20 -0
- package/dist/interop/image-holds.d.ts.map +1 -0
- package/dist/renderers/citations.d.ts.map +1 -1
- package/dist/transport/agent-handler.d.ts +10 -0
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/dist/transport/agent-ticket.d.ts.map +1 -1
- package/dist/transport/backend-handler.d.ts +8 -0
- package/dist/transport/backend-handler.d.ts.map +1 -1
- package/dist/transport/backend-transport.d.ts.map +1 -1
- package/dist/transport/json-headers.d.ts +10 -0
- package/dist/transport/json-headers.d.ts.map +1 -0
- package/dist/transport/request-guard.d.ts +14 -0
- package/dist/transport/request-guard.d.ts.map +1 -0
- package/dist/types/events.d.ts +6 -13
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +0 -34
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +0 -11
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/utils/rendered-content.d.ts +3 -0
- package/dist/utils/rendered-content.d.ts.map +1 -0
- package/llms.txt +13 -0
- package/package.json +11 -4
- package/dist/defer-hydration-ggxlbvL9.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,18 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.webcomponents.org/element/@aparte/core)
|
|
4
4
|
|
|
5
|
-
AI chat
|
|
6
|
-
|
|
5
|
+
**The complete AI chat UI, for any framework** — Web Components for React, Vue, Svelte, Angular
|
|
6
|
+
or plain HTML, with the agent loop inside. Replies that stream with Markdown and code, a
|
|
7
|
+
conversation list, tools a person approves, answers drawn as
|
|
8
|
+
[cards](https://apartejs.dev/guides/cards/). Your own backend or an AG-UI agent behind it (n8n
|
|
9
|
+
too), your styles on it. Zero third-party dependencies, ESM-only.
|
|
10
|
+
|
|
11
|
+
<a href="https://apartejs.dev/templates/assistant/"><picture><source media="(prefers-color-scheme: dark)" srcset="https://apartejs.dev/shots/chat-dark.png"><img src="https://apartejs.dev/shots/chat.png" alt="An aparté chat: the conversation list, a question, and the assistant's reply — its reasoning, a weather card and the answer — above the composer"></picture></a>
|
|
7
12
|
|
|
8
13
|
The conversation, messages, reasoning, tool calls a human approves, the questions an agent
|
|
9
14
|
asks, the composer, the layout around the chat (app shell, sidebar, conversation list) and a
|
|
10
15
|
UI kit for the rest of the app — each one [shown live with its variants](https://apartejs.dev/components/),
|
|
11
16
|
and assembled into [templates](https://apartejs.dev/templates/) you can copy.
|
|
12
17
|
|
|
13
|
-
> **
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
>
|
|
18
|
+
> **1.x.** On npm, released in lockstep with every other `@aparte/*` package, and the
|
|
19
|
+
> declared surface follows semver: a [frozen](https://apartejs.dev/reference/stability/)
|
|
20
|
+
> name keeps its name, and what its documentation says it does, until 2.0. Part of the
|
|
21
|
+
> [aparté](https://github.com/apartejs/aparte)
|
|
17
22
|
> monorepo; what changed when is at [apartejs.dev/changelog](https://apartejs.dev/changelog/).
|
|
18
23
|
|
|
19
24
|
## Install
|
|
@@ -56,7 +61,7 @@ there is nothing to call for text, code or thinking blocks to appear. Calling
|
|
|
56
61
|
|
|
57
62
|
`@aparte/core` imports cleanly on the server. A `node` export condition resolves to a
|
|
58
63
|
DOM-free entry, so `import '@aparte/core'` works in Node, an Electron **main** process,
|
|
59
|
-
or an SSR pass (Next / Nuxt / SvelteKit / Angular
|
|
64
|
+
or an SSR pass (Next / Nuxt / SvelteKit / Angular SSR) without a DOM shim:
|
|
60
65
|
|
|
61
66
|
```ts
|
|
62
67
|
// Node — same specifier, DOM-free entry
|
|
@@ -68,10 +73,7 @@ conversation/message runtime, config, parsers and every type. **You lose** the c
|
|
|
68
73
|
elements themselves — they extend `HTMLElement`, so they're browser-only, and
|
|
69
74
|
`registerAllComponents()` is a safe no-op there.
|
|
70
75
|
|
|
71
|
-
|
|
72
|
-
the custom elements), and the workspace resolves it first by design. The contract is
|
|
73
|
-
enforced by `pnpm check:node-import`, which imports the built packages in real Node on
|
|
74
|
-
every CI run.
|
|
76
|
+
The `node` entry is checked on every CI run by importing the built package in real Node.
|
|
75
77
|
|
|
76
78
|
## What's in it
|
|
77
79
|
|
|
@@ -85,7 +87,23 @@ every CI run.
|
|
|
85
87
|
- **Transports** — `AparteDirectTransport` (browser → provider, BYOK / local model) or
|
|
86
88
|
`AparteBackendTransport` (browser → your endpoint, API key stays server-side).
|
|
87
89
|
- **Theming** — restyle everything through `--aparte-*` CSS variables (Light DOM, no forking).
|
|
88
|
-
- **Customization** — icons, render hooks
|
|
90
|
+
- **Customization** — icons, render hooks and the message-action registry (the buttons under a
|
|
91
|
+
message) via `aparteGlobalConfig`. A composer button is an `<aparte-composer-action>`
|
|
92
|
+
element you write in markup.
|
|
93
|
+
- **`<aparte-launcher>`** — a floating button that opens the chat as a window, and as a
|
|
94
|
+
full-window sheet on a narrow or short screen.
|
|
95
|
+
- **Citations** — sources a provider returns appear as a chip after the cited passage, with a
|
|
96
|
+
card and a list.
|
|
97
|
+
- **Pictures** — a picture a model or a tool chose waits for the reader's click until you allow
|
|
98
|
+
where it comes from, because its address alone can carry the conversation to another host:
|
|
99
|
+
`aparteGlobalConfig.setImagePolicy(['https://cdn.example.com'])`
|
|
100
|
+
([why, and which policy to choose](https://apartejs.dev/guides/markdown/#pictures-a-reply-can-load)).
|
|
101
|
+
- **Maths, diagrams and charts** — a code block in a registered language (`math`, `mermaid`,
|
|
102
|
+
`echarts`…) is drawn as it streams. Core carries the seam
|
|
103
|
+
(`registerCodeLanguageRenderer`); `@aparte/plugin-katex`, `-mermaid`, `-echarts` and
|
|
104
|
+
`-chartjs` supply the drawings.
|
|
105
|
+
- **Suggestions** — `<aparte-suggestions>` shows prompt starters, and a model's suggestion
|
|
106
|
+
block becomes quick replies.
|
|
89
107
|
|
|
90
108
|
Zero third-party dependencies (the agent loop, `@aparte/engine`, is the one first-party dependency): Markdown, syntax highlighting, etc. are **opt-in** providers you inject.
|
|
91
109
|
ESM-only (CJS consumers use `await import()`).
|
|
@@ -105,13 +123,6 @@ The two most-asked-for pages, directly:
|
|
|
105
123
|
- **[CSS variables](https://apartejs.dev/reference/css-variables/)** — the full
|
|
106
124
|
token catalogue, GENERATED from the stylesheet, so it cannot drift from it.
|
|
107
125
|
|
|
108
|
-
(This package used to carry `CUSTOMIZATION.md` and `THEMING.md` alongside these.
|
|
109
|
-
They were never published — `files` is `dist`, `README.md`, `LICENSE` — nothing
|
|
110
|
-
linked to them, and both had drifted: one taught a `registerBubbleAction` that does
|
|
111
|
-
not exist, the other listed six `--aparte-bubble-*` variables that the stylesheet
|
|
112
|
-
never defined. A wrong orphan a coding agent finds by grepping the repo is worse
|
|
113
|
-
than no orphan, so they are gone rather than fixed twice.)
|
|
114
|
-
|
|
115
126
|
## License
|
|
116
127
|
|
|
117
128
|
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.d.ts","sourceRoot":"","sources":["../../src/client/agent-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-runner.d.ts","sourceRoot":"","sources":["../../src/client/agent-runner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACrC,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACpG,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,gEAAgE;IAChE,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,kBAAkB,CA8D7F"}
|
|
@@ -222,6 +222,8 @@ export declare class AparteChatBubble extends HTMLElement implements AparteConfi
|
|
|
222
222
|
private _drawnWithVersion;
|
|
223
223
|
/** Every segment on screen, by id: see {@link DrawnSegment}. */
|
|
224
224
|
private _drawn;
|
|
225
|
+
/** Segments written to with no `isStreaming: false` yet: settled when the message stops streaming. */
|
|
226
|
+
private _written;
|
|
225
227
|
/** The segments were released because the bubble was still out of the page at the next microtask. */
|
|
226
228
|
private _releasedWhileDetached;
|
|
227
229
|
/** A {@link _scheduleReleaseCheck} is queued. */
|
|
@@ -361,6 +363,16 @@ export declare class AparteChatBubble extends HTMLElement implements AparteConfi
|
|
|
361
363
|
updateSegment(segmentId: string, updates: Partial<AparteSegment>): void;
|
|
362
364
|
/** Append content to a segment */
|
|
363
365
|
appendToSegment(segmentId: string, content: string): void;
|
|
366
|
+
/**
|
|
367
|
+
* The message stopped streaming, so a segment it was still writing is finished too.
|
|
368
|
+
*
|
|
369
|
+
* A segment written to with no `isStreaming` flag — `appendToSegment` from a stream driven
|
|
370
|
+
* by hand, as the docs' own streaming demo does — goes through the incremental Markdown
|
|
371
|
+
* parser, which holds back what may still open a token (the full stop after `**bold**`)
|
|
372
|
+
* until it is told the text is complete. Nothing told it: the message ended with its tail
|
|
373
|
+
* missing. Marked finished here, it is flushed and settled like any finished segment.
|
|
374
|
+
*/
|
|
375
|
+
private _settleWrittenSegments;
|
|
364
376
|
/** Get all segments */
|
|
365
377
|
getSegments(): AparteSegment[];
|
|
366
378
|
/** Remove a segment by id (e.g. to discard a transient waiting indicator) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-bubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubble/aparte-chat-bubble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EACb,gBAAgB,EAQhB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EAKrB,MAAM,sBAAsB,CAAC;AAoB9B,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA2HtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AACH,qBAAa,gBAAiB,SAAQ,WAAY,YAAW,iBAAiB;IAC5E,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,YAAY,CAA+B;IACnD,OAAO,CAAC,eAAe,CAA+B;IACtD,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,YAAY,CAA0B;IAC9C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,aAAa,CAAmC;IACxD,oFAAoF;IACpF,OAAO,CAAC,eAAe,CAAqC;IAC5D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB,CAAwB;IACjD,mHAAmH;IACnH,OAAO,CAAC,eAAe,CAAS;IAChC,gEAAgE;IAChE,OAAO,CAAC,kBAAkB,CAAS;IACnC,wHAAwH;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,CAAC,aAAa;IA0DrB,OAAO,CAAC,gBAAgB;IAuBxB,OAAO,CAAC,gBAAgB;CA+CzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer-send.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-send.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAC/C,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,aAAa,CAAsB;IAC3C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAA2F;IAGzG,OAAO,CAAC,QAAQ,CAAgC;IAEhD,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"aparte-composer-send.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-send.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAC/C,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,aAAa,CAAsB;IAC3C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAA2F;IAGzG,OAAO,CAAC,QAAQ,CAAgC;IAEhD,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,cAAc;IAgCtB;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;IAOtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,mBAAmB;IAkB3B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;CAGvB"}
|
|
@@ -44,16 +44,12 @@ export interface AparteContextThresholdEventDetail {
|
|
|
44
44
|
* While a compaction runs the element carries `data-compact="running"`, and `"failed"` after a
|
|
45
45
|
* failure, with Retry in the panel. Escape and a click outside close it; nothing opens on hover.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
* before a send that would overflow)
|
|
49
|
-
* works — a turn that ends in `danger` dispatches `aparte-compact`, one request at a time,
|
|
50
|
-
* with `auto: true` so the plugin can tell it from a button — and it will go away in a
|
|
51
|
-
* future major version.
|
|
47
|
+
* The gauge never asks for a compaction by itself: `@aparte/plugin-compaction` decides when to
|
|
48
|
+
* compact (after a turn, and before a send that would overflow).
|
|
52
49
|
*
|
|
53
50
|
* A new chat or a conversation loaded in place of the last replaces the reading: it is
|
|
54
51
|
* cleared on `aparte-reset-done` and, for a stored conversation, read from its last reply on
|
|
55
|
-
* `aparte-conversation-loaded`.
|
|
56
|
-
* level — that stays tied to the end of a turn.
|
|
52
|
+
* `aparte-conversation-loaded`.
|
|
57
53
|
*
|
|
58
54
|
* The bar wears the `aparte-progress` recipe. `variant="ring"` draws the same reading
|
|
59
55
|
* as a ring with the percentage beside it — for a toolbar, where a bar wants a width
|
|
@@ -66,7 +62,6 @@ export interface AparteContextThresholdEventDetail {
|
|
|
66
62
|
* @attr {number} used - Tokens in use before a turn of this page has reported any: a restored conversation's last usage. The next turn's usage replaces it.
|
|
67
63
|
* @attr {number} warn - Fraction of the window at which the level turns `warn`. Default `0.75`.
|
|
68
64
|
* @attr {number} danger - Fraction at which it turns `danger`. Default `0.9`.
|
|
69
|
-
* @attr {boolean} auto-compact - Deprecated, still works. Dispatch `aparte-compact` (with `auto: true`) on each turn that ends in `danger`, one request at a time. `@aparte/plugin-compaction` decides when to compact by itself now, so leave this off.
|
|
70
65
|
* @attr {string} target - The id of the `<aparte-chat>` to watch, when the element is not under it.
|
|
71
66
|
* @attr {string} variant - `bar` (default) or `ring`: a progress bar with the reading beside it, or a ring with the percentage.
|
|
72
67
|
* @attr {string} data-level - Reflected BY the element: `ok`, `warn` or `danger`. Read-only.
|
|
@@ -74,7 +69,7 @@ export interface AparteContextThresholdEventDetail {
|
|
|
74
69
|
* @attr {string} data-compact - Reflected BY the element while this chat is being compacted (`running`) and after a compaction failed (`failed`). Read-only.
|
|
75
70
|
*
|
|
76
71
|
* @fires {CustomEvent<AparteContextThresholdEventDetail>} aparte-context-threshold - The level changed. Bubbles.
|
|
77
|
-
* @fires {CustomEvent<AparteCompactEventDetail>} aparte-compact - Dispatched on `window`
|
|
72
|
+
* @fires {CustomEvent<AparteCompactEventDetail>} aparte-compact - Dispatched on `window` by Retry in the panel when no compactor is registered. `@aparte/plugin-compaction` answers it; with no listener nothing happens.
|
|
78
73
|
*
|
|
79
74
|
* @cssprop [--aparte-context-ring-size=22px] - Diameter of the ring variant.
|
|
80
75
|
*
|
|
@@ -103,7 +98,6 @@ export declare class AparteContext extends HTMLElement {
|
|
|
103
98
|
*/
|
|
104
99
|
private _used;
|
|
105
100
|
private _level;
|
|
106
|
-
private _compactRequested;
|
|
107
101
|
/** The last turn's usage and the reply it belongs to, so the measure has it before the list has written it back. */
|
|
108
102
|
private _lastDone;
|
|
109
103
|
/** What the model reads changed with nothing on the path to say so (a Restore): the reading is an estimate until the next turn reports. */
|
|
@@ -152,7 +146,6 @@ export declare class AparteContext extends HTMLElement {
|
|
|
152
146
|
* nothing to estimate from, and the reading is dropped as it always was.
|
|
153
147
|
*/
|
|
154
148
|
private _onCompacted;
|
|
155
|
-
/** A failed compaction spends the request too; the next `danger` asks again. */
|
|
156
149
|
private _onCompactError;
|
|
157
150
|
/** The model refused this chat's request as over its window: the number was wrong, and so is "ok". */
|
|
158
151
|
private _onMessageError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/aparte-context.ts"],"names":[],"mappings":"AAQA,OAAO,EAA+B,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAKlG,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1D,+FAA+F;AAC/F,MAAM,WAAW,iCAAiC;IAC9C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,kIAAkI;IAClI,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAoED
|
|
1
|
+
{"version":3,"file":"aparte-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/aparte-context.ts"],"names":[],"mappings":"AAQA,OAAO,EAA+B,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAKlG,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1D,+FAA+F;AAC/F,MAAM,WAAW,iCAAiC;IAC9C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,kIAAkI;IAClI,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAoED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,MAAM,CAAmC;IAC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Ac5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQ5C;;;;;;;OAOG;IACH,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,OAAO;IAOf,gGAAgG;IAChG,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,OAAO;IAKf;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAYb,0EAA0E;IAC1E,OAAO,CAAC,SAAS;IAUjB;;;;;;;;OAQG;IACH,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,OAAO;IA2Hf;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAmFpB,OAAO,CAAC,OAAO;IAOf;;;;OAIG;YACW,WAAW;IA+BzB,OAAO,CAAC,QAAQ,CAad;IAEF,OAAO,CAAC,QAAQ;IAUhB;;;OAGG;IACH,OAAO,CAAC,gBAAgB,CAEtB;IAEF;;;;;;;;;OASG;IACH,OAAO,CAAC,UAAU,CAKhB;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAGxB;IAEF,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,uBAAuB;IAK/B;;;;OAIG;IACH,OAAO,CAAC,MAAM;CAcjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-launcher.d.ts","sourceRoot":"","sources":["../../../src/components/launcher/aparte-launcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-launcher.d.ts","sourceRoot":"","sources":["../../../src/components/launcher/aparte-launcher.ts"],"names":[],"mappings":"AAMA,kEAAkE;AAClE,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,mLAAmL;IACnL,KAAK,EAAE,OAAO,CAAC;CAClB;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC3C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;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|
* of the transcript (`--aparte-scroll-rail-share`, 60%). When more turns exist than 24px
|
|
32
32
|
* targets fit in that, the pitch tightens to what fits, down to a 6px floor; past that
|
|
33
33
|
* the rail scrolls itself so the current tick is always in view, and the arrow keys walk
|
|
34
|
-
* every tick whatever the pitch.
|
|
34
|
+
* every tick whatever the pitch. The rail is one Tab stop, the current tick: Tab crosses
|
|
35
|
+
* it once, however long the conversation, and the arrows, Home and End move inside it.
|
|
35
36
|
*
|
|
36
37
|
* @element aparte-scroll-rail
|
|
37
38
|
*
|
|
@@ -78,17 +79,38 @@ export declare class AparteScrollRail extends HTMLElement {
|
|
|
78
79
|
private _host;
|
|
79
80
|
private _mutations;
|
|
80
81
|
private _resizes;
|
|
82
|
+
/** The boxes the resize observer watches: the host, the transcript and its scroll surface. */
|
|
83
|
+
private _sized;
|
|
81
84
|
private _intersections;
|
|
82
85
|
/** The bubbles the intersection observer watches — compared by identity, so a re-rendered bubble is re-observed. */
|
|
83
86
|
private _observedBubbles;
|
|
87
|
+
/**
|
|
88
|
+
* Every message the reading band watches: the ticked ones and, with `every="user"`, the
|
|
89
|
+
* replies too, each read under the question above it.
|
|
90
|
+
*/
|
|
91
|
+
private _bandTargets;
|
|
84
92
|
/** The scroll surface the observer is rooted on, and whose bottom edge is read. */
|
|
85
93
|
private _observedSurface;
|
|
86
|
-
|
|
94
|
+
/** One frame does the queued work: a full rebuild when bubbles came or went, else the re-labels. */
|
|
95
|
+
private _frameQueued;
|
|
96
|
+
private _rebuildWanted;
|
|
97
|
+
/** Ticked bubbles whose text changed since the last frame: only their names can have moved. */
|
|
98
|
+
private _relabel;
|
|
99
|
+
/**
|
|
100
|
+
* Each message's excerpt, read once and forgotten when a mutation touches its text: a
|
|
101
|
+
* rebuild re-read the head of all 500 questions of a long conversation, twice a turn, for
|
|
102
|
+
* names that had not changed.
|
|
103
|
+
*/
|
|
104
|
+
private _excerpts;
|
|
87
105
|
private _pickQueued;
|
|
88
106
|
private _currentId;
|
|
89
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Visible ratio per message in the reading band, from the intersection observer. Keyed by
|
|
109
|
+
* the element, not its id: an id changed in place keeps what the observer saw, and a
|
|
110
|
+
* bubble that left is let go with it.
|
|
111
|
+
*/
|
|
90
112
|
private _visible;
|
|
91
|
-
/**
|
|
113
|
+
/** Whether the last question is on screen at all, from the second observer. */
|
|
92
114
|
private _onScreen;
|
|
93
115
|
private _onScreenObserver;
|
|
94
116
|
/** The mark a jump asked for, held until the transcript has stopped moving. */
|
|
@@ -110,11 +132,20 @@ export declare class AparteScrollRail extends HTMLElement {
|
|
|
110
132
|
private _findHost;
|
|
111
133
|
private _attach;
|
|
112
134
|
private _detach;
|
|
113
|
-
/** Coalesce a burst of mutations
|
|
135
|
+
/** Coalesce a burst of mutations into one frame of work: a rebuild, which re-names every tick too. */
|
|
114
136
|
private _queueRebuild;
|
|
137
|
+
private _queueRelabel;
|
|
138
|
+
private _queueFrame;
|
|
139
|
+
/** Whether a bubble has a tick: every message with `every="message"`, else the user's. */
|
|
140
|
+
private _ticked;
|
|
141
|
+
/** Re-name one bubble's tick, written only when the name changed. */
|
|
142
|
+
private _label;
|
|
115
143
|
private _viewport;
|
|
116
144
|
/** The element that scrolls: the vanilla container, or the viewport itself under a wrapper. */
|
|
117
145
|
private _scrollSurface;
|
|
146
|
+
/** Every message bubble of the transcript, in document order. */
|
|
147
|
+
private _messages;
|
|
148
|
+
/** The bubbles that get a tick, from all of them. */
|
|
118
149
|
private _bubbles;
|
|
119
150
|
/** The first words of a message, for the tick's name. An excerpt, never a summary. */
|
|
120
151
|
private _excerpt;
|
|
@@ -137,6 +168,13 @@ export declare class AparteScrollRail extends HTMLElement {
|
|
|
137
168
|
* position read is the bottom, because there the reader is under the latest question
|
|
138
169
|
* whatever the band holds, and the observer has nothing to report on the last few
|
|
139
170
|
* pixels.
|
|
171
|
+
*
|
|
172
|
+
* The replies are watched too, and a reply in the band is read under its question. With
|
|
173
|
+
* the questions alone the band was empty whenever the reader was inside a long reply, and
|
|
174
|
+
* nothing moved the mark when the layout did: a bubble never rendered has an estimated
|
|
175
|
+
* height (`content-visibility`) and takes its real one once the scroll has stopped, so a
|
|
176
|
+
* still reader's question changed with no scroll and no question crossing the band. The
|
|
177
|
+
* observer reports a reply entering the band whatever moved it.
|
|
140
178
|
*/
|
|
141
179
|
private _observe;
|
|
142
180
|
private _unobserve;
|
|
@@ -145,9 +183,43 @@ export declare class AparteScrollRail extends HTMLElement {
|
|
|
145
183
|
/** At the bottom edge of a surface that scrolls; a surface with nothing to scroll has no bottom to be at. */
|
|
146
184
|
private _atBottom;
|
|
147
185
|
private _pickCurrent;
|
|
186
|
+
/**
|
|
187
|
+
* The last question whose top is above the reading band's lower edge: by halves, since
|
|
188
|
+
* the questions are in document order and their tops only grow. A question never
|
|
189
|
+
* rendered has its estimated height (`content-visibility`), which keeps that order.
|
|
190
|
+
* `null` when no question is above the edge or nothing is laid out, and the mark stays
|
|
191
|
+
* as it was.
|
|
192
|
+
*/
|
|
193
|
+
private _lastAbove;
|
|
194
|
+
/** The tick a message is read under: its own, else the question above it, as the band reads a reply. */
|
|
195
|
+
private _markFor;
|
|
148
196
|
private _setCurrent;
|
|
197
|
+
/**
|
|
198
|
+
* One Tab stop for the whole rail, as in a toolbar: the tick that has the focus, else
|
|
199
|
+
* the current one, else the last. Every tick was a button in the tab order, so a
|
|
200
|
+
* keyboard reader crossed 500 of them between the transcript and the composer of a
|
|
201
|
+
* long conversation; the arrows, Home and End walk the rail instead.
|
|
202
|
+
*/
|
|
203
|
+
private _syncTabStop;
|
|
204
|
+
/**
|
|
205
|
+
* The stop follows the focus onto a tick, however it got there: the arrows, a click (a
|
|
206
|
+
* click on the current tick moved the focus but not the stop, which made two), a host's
|
|
207
|
+
* `focus()`.
|
|
208
|
+
*/
|
|
209
|
+
private _onFocusIn;
|
|
210
|
+
/** Leaving the rail, the stop goes back to the current tick: Tab back in lands where the reader is. */
|
|
211
|
+
private _onFocusOut;
|
|
212
|
+
private _setTabStop;
|
|
149
213
|
/** Past the floor the rail scrolls itself: the current tick is kept inside its window. */
|
|
150
214
|
private _reveal;
|
|
215
|
+
/**
|
|
216
|
+
* Point the resize observer at the boxes the geometry is read from. Re-pointed on each
|
|
217
|
+
* rebuild: a viewport a wrapper mounts after the rail, or replaces, was never watched, and
|
|
218
|
+
* the panel or composer that resized it later left the rail measuring the old box. The
|
|
219
|
+
* scroll surface is watched for itself: a classic scrollbar appearing narrows it without
|
|
220
|
+
* resizing the viewport, and the rail has to move clear of the bar.
|
|
221
|
+
*/
|
|
222
|
+
private _watchSizes;
|
|
151
223
|
/** Write a custom property on this element only when its value changed; '' removes it. */
|
|
152
224
|
private _write;
|
|
153
225
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-scroll-rail.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-rail/aparte-scroll-rail.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-scroll-rail.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-rail/aparte-scroll-rail.ts"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,qFAAqF;AACrF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAAC;AAcvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC7C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,UAAU,CAAiC;IACnD,OAAO,CAAC,QAAQ,CAA+B;IAC/C,8FAA8F;IAC9F,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,cAAc,CAAqC;IAC3D,oHAAoH;IACpH,OAAO,CAAC,gBAAgB,CAAqB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idebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/aparte-sidebar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/aparte-sidebar.ts"],"names":[],"mappings":"AAOA,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACnB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,MAAM,CAA4B;IAC1C,0EAA0E;IAC1E,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,cAAc,CAAwB;IAE9C;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAAS;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB,CAAS;IAElC,qGAAqG;IACrG,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;;OAKG;IACH,OAAO,CAAC,UAAU,CAAS;IAC3B,gGAAgG;IAChG,OAAO,CAAC,MAAM,CAAM;IACpB,6FAA6F;IAC7F,OAAO,CAAC,UAAU,CAAiC;IAEnD,oFAAoF;IACpF,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAE3B;IAED,iFAAiF;IACjF,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,iBAAiB,IAAI,IAAI;IAiCzB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAexB,oBAAoB,IAAI,IAAI;IAY5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA+B5C,0FAA0F;IAC1F,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAKhC,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAOlC,OAAO,CAAC,cAAc,CAAkE;IAExF;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAepB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAgBpB,wFAAwF;IACxF,OAAO,CAAC,OAAO;IAKf;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,WAAW;IAYnB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,UAAU,CAiChB;IAEF,8FAA8F;IAC9F,OAAO,CAAC,gBAAgB,CAOtB;IAIF,OAAO,CAAC,QAAQ,CAId;IAEF;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAqB7B,OAAO,CAAC,MAAM;IAId;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe,CAA+B;IAEtD,OAAO,CAAC,QAAQ;CAMnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-split.d.ts","sourceRoot":"","sources":["../../../src/components/split/aparte-split.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-split.d.ts","sourceRoot":"","sources":["../../../src/components/split/aparte-split.ts"],"names":[],"mappings":"AAOA,uFAAuF;AACvF,MAAM,WAAW,uBAAuB;IACpC,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,OAAO,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;IACtB,qEAAqE;IACrE,WAAW,EAAE,YAAY,GAAG,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LAST message offered instead of fixed
|
|
51
51
|
* starters: a code block in language `suggestions` in that answer
|
|
52
52
|
* (`setupSuggestionBlocks`), e.g. the
|
|
53
|
-
* free times a booking bot proposes.
|
|
53
|
+
* free times a booking bot proposes. Written by the model, so a reply sends what its chip
|
|
54
|
+
* shows: its label, never a `prompt`. Empty until an answer offers some, emptied the
|
|
54
55
|
* moment a message is sent, and when the last message is the person's.
|
|
55
56
|
* @attr {string} target - The id of the `<aparte-chat>` whose composer should receive
|
|
56
57
|
* the click, when the element is not inside that composer.
|
|
@@ -142,6 +143,19 @@ export declare class AparteSuggestions extends HTMLElement {
|
|
|
142
143
|
/** Set `hidden`, or lift it only when this element set it: a `hidden` the page wrote stays. */
|
|
143
144
|
private _setHidden;
|
|
144
145
|
private _render;
|
|
146
|
+
private _sending;
|
|
147
|
+
private _sendingTimer;
|
|
148
|
+
private _stopHolding;
|
|
149
|
+
/**
|
|
150
|
+
* The latch ends when ITS chat's turn starts. Another chat's `aparte-message-start` crosses the
|
|
151
|
+
* window too, and must not release it: the second chip would then send a second message while the
|
|
152
|
+
* first is still being built. The composer's own rule: an event naming no chat is for every chat.
|
|
153
|
+
*/
|
|
154
|
+
private _onTurnStart;
|
|
155
|
+
/** The chat the sending composer belongs to: its `target`, else the id of the chat host above it. */
|
|
156
|
+
private _ownChatId;
|
|
157
|
+
/** A chip sent: no other chip sends until the turn has started, or a second has passed without one. */
|
|
158
|
+
private _holdUntilStreaming;
|
|
145
159
|
private _activate;
|
|
146
160
|
}
|
|
147
161
|
//# sourceMappingURL=aparte-suggestions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,MAAM,MAAM,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AAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,aAAa,CAGnB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAWrB,0GAA0G;IAC1G,OAAO,CAAC,YAAY;IAMpB,+FAA+F;IAC/F,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,OAAO;IAyBf,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAA4C;IACjE,OAAO,CAAC,YAAY,CAIlB;IACF;;;;OAIG;IACH,OAAO,CAAC,YAAY,CAIlB;IAEF,qGAAqG;IACrG,OAAO,CAAC,UAAU;IAUlB,uGAAuG;IACvG,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,SAAS;CAiDpB"}
|
|
@@ -7,15 +7,34 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Which day suits you?
|
|
9
9
|
* ```suggestions
|
|
10
|
-
* ["Tuesday 3", "Wednesday 4",
|
|
10
|
+
* ["Tuesday 3", "Wednesday 4", "Another week"]
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
|
+
* A reply sends what its button SHOWS, and only that. The block is model text, and a chip
|
|
14
|
+
* that showed "No, cancel" while sending a prompt the model wrote ("Yes, I confirm the
|
|
15
|
+
* transfer") would put words in the person's mouth. A `{label, prompt}` object is read
|
|
16
|
+
* for its label; its `prompt` is ignored, however close it is to the label, because a prompt
|
|
17
|
+
* that begins with the label can still go on to say the opposite. A page that wants a hidden
|
|
18
|
+
* prompt writes it in the `suggestions` attribute of the element, which is the page's own.
|
|
19
|
+
*
|
|
13
20
|
* One more user of `registerCodeLanguageRenderer`, the seam a block's language goes
|
|
14
21
|
* through: no system of its own.
|
|
15
22
|
*/
|
|
16
23
|
import { type AparteConfig } from '../../config/index.js';
|
|
17
24
|
/** The language the block is written in. */
|
|
18
25
|
export declare const SUGGESTIONS_BLOCK_LANGUAGE = "suggestions";
|
|
26
|
+
type Reply = string | {
|
|
27
|
+
label: string;
|
|
28
|
+
prompt?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* A model-written reply, reduced to what its button shows: the label alone, never a `prompt`.
|
|
32
|
+
* Runs of whitespace collapse to one space. `null` for a reply with no label to see (blank),
|
|
33
|
+
* a label with anything in it that draws nothing or reorders what is drawn (bidi controls,
|
|
34
|
+
* tag characters, variation selectors, stray joiners), and a label past 100 characters: what
|
|
35
|
+
* is sent must be exactly what the person can read on the chip.
|
|
36
|
+
*/
|
|
37
|
+
export declare function visibleReply(reply: Reply): string | null;
|
|
19
38
|
/**
|
|
20
39
|
* Read the code blocks in language `suggestions` in replies as the replies that
|
|
21
40
|
* `<aparte-suggestions answers>` offers. Returns the function that stops it. Off until called: a block is then no longer
|
|
@@ -26,4 +45,5 @@ export declare const SUGGESTIONS_BLOCK_LANGUAGE = "suggestions";
|
|
|
26
45
|
* // and, in the composer, an `<aparte-suggestions answers>` element
|
|
27
46
|
*/
|
|
28
47
|
export declare function setupSuggestionBlocks(config?: AparteConfig): () => void;
|
|
48
|
+
export {};
|
|
29
49
|
//# sourceMappingURL=suggestion-blocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/suggestion-blocks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"suggestion-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/suggestion-blocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG9E,4CAA4C;AAC5C,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AAExD,KAAK,KAAK,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA2EzD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAQxD;AAmCD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,YAAiC,GAAG,MAAM,IAAI,CAa3F"}
|
|
@@ -226,6 +226,8 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
226
226
|
* (e.g. Angular) owns the bubble elements.
|
|
227
227
|
*/
|
|
228
228
|
private _frameworkManagedDOM;
|
|
229
|
+
/** Inside `setMessages`: each append leaves the layout work to the end of the loop. */
|
|
230
|
+
private _bulkAppend;
|
|
229
231
|
static get observedAttributes(): string[];
|
|
230
232
|
/**
|
|
231
233
|
* The transcript is on its way: a conversation was chosen and its messages are
|
|
@@ -272,7 +274,11 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
272
274
|
* the guard here is what gives the framework-mode host the same declaration.
|
|
273
275
|
*/
|
|
274
276
|
private _nameScrollSurface;
|
|
275
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* Mirror `locale.direction` onto the scroll surface: the container, or the viewport itself
|
|
279
|
+
* when a framework renders the messages — a wrapper's transcript stayed left to right
|
|
280
|
+
* under a right-to-left locale while its composer turned.
|
|
281
|
+
*/
|
|
276
282
|
private _applyDirection;
|
|
277
283
|
disconnectedCallback(): void;
|
|
278
284
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
@@ -506,11 +512,6 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
506
512
|
clearAll(options?: {
|
|
507
513
|
revokeAttachments?: boolean;
|
|
508
514
|
}): void;
|
|
509
|
-
/**
|
|
510
|
-
* Clear all messages
|
|
511
|
-
* @deprecated Use clearAll() to also remove DOM bubbles
|
|
512
|
-
*/
|
|
513
|
-
clearMessages(): void;
|
|
514
515
|
/**
|
|
515
516
|
* Replace the entire message list in one shot. Used when switching
|
|
516
517
|
* conversations: clears existing repo + DOM, then appends each message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-viewport.d.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