@aparte/core 0.16.10 → 0.17.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 +8 -0
- package/dist/client/aparte-client.d.ts +42 -3
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +22 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +33 -0
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +5 -3
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-toolbar.d.ts +5 -2
- package/dist/components/composer/aparte-composer-toolbar.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +27 -0
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +8 -0
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +82 -17
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- 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 +10 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +55 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/action-provider.d.ts +14 -14
- package/dist/config/action-provider.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +82 -13
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/bubble-shell-renderer.d.ts +50 -12
- package/dist/config/bubble-shell-renderer.d.ts.map +1 -1
- package/dist/config/locale.d.ts +33 -1
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/conversations/conversation-controller.d.ts +14 -0
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/conversations/conversation-manager.d.ts +57 -19
- package/dist/conversations/conversation-manager.d.ts.map +1 -1
- package/dist/conversations/types.d.ts +18 -11
- package/dist/conversations/types.d.ts.map +1 -1
- package/dist/custom-elements.json +6841 -6085
- package/dist/{dialog-triggers-cYGTlfZf.js → dialog-triggers-Bb-3EkT4.js} +591 -161
- package/dist/dialog-triggers-Bb-3EkT4.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +10 -4
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/host/aparte-chat-host.d.ts +30 -0
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/index.css +1 -8393
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +550 -98
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +1 -1
- 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/element-props.d.ts +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts +1 -0
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +12 -1
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/markdown-stream.d.ts.map +1 -1
- package/dist/runtime/message-repository.d.ts +16 -3
- package/dist/runtime/message-repository.d.ts.map +1 -1
- package/dist/types/chat.d.ts +41 -46
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/event-map.d.ts +7 -7
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/events.d.ts +7 -6
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/imperative-api.d.ts +16 -0
- package/dist/types/imperative-api.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +9 -0
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +56 -13
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/utils/event-target.d.ts +31 -0
- package/dist/utils/event-target.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/dialog-triggers-cYGTlfZf.js.map +0 -1
|
@@ -75,7 +75,16 @@ export declare class AparteSuggestions extends HTMLElement {
|
|
|
75
75
|
private _onConfigChange;
|
|
76
76
|
/** The starters. Setting it re-renders; the `suggestions` attribute is the JSON form. */
|
|
77
77
|
get suggestions(): AparteSuggestion[];
|
|
78
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Takes the array, or the JSON string the attribute documents.
|
|
80
|
+
*
|
|
81
|
+
* Both, because both arrive: React 19 and Svelte assign the PROPERTY whenever the
|
|
82
|
+
* element has one of that name, so `<aparte-suggestions suggestions='[…]'>` — the
|
|
83
|
+
* documented spelling, typed valid by both wrappers — reached this setter as a
|
|
84
|
+
* string, `Array.isArray` said no, and the row rendered nothing while the attribute
|
|
85
|
+
* (and so `attributeChangedCallback`) was never written.
|
|
86
|
+
*/
|
|
87
|
+
set suggestions(value: AparteSuggestion[] | string);
|
|
79
88
|
connectedCallback(): void;
|
|
80
89
|
disconnectedCallback(): void;
|
|
81
90
|
attributeChangedCallback(name: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,2EAA2E;AAC3E,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,2EAA2E;AAC3E,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,YAAY,CAA0B;IAC9C,OAAO,CAAC,SAAS,CAA+B;IAEhD,OAAO,CAAC,OAAO,CAEb;IAEF,OAAO,CAAC,eAAe,CAGrB;IAEF,yFAAyF;IACzF,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAEpC;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAKjD;IAED,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAM5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAU5C,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,OAAO,CAAuB;IAEtC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAOtB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,OAAO;IAyBf,OAAO,CAAC,SAAS;CAkBpB"}
|
|
@@ -51,6 +51,11 @@ import type { ExportedMessageRepository } from '../../runtime/message-repository
|
|
|
51
51
|
* this mode only. All four wrappers set it.
|
|
52
52
|
* @attr {number} scroll-threshold - How close to the bottom still counts as "at the bottom".
|
|
53
53
|
* @attr {number} max-rendered-bubbles - Caps how many bubbles stay in the DOM; older ones are released.
|
|
54
|
+
* @attr {boolean} loading - The transcript is on its way: a conversation was chosen and its messages
|
|
55
|
+
* are being fetched. The element draws two skeleton turns, marks its scroll surface
|
|
56
|
+
* `aria-busy` and names the wait for a screen reader; `aparte-chat[center-empty]`
|
|
57
|
+
* does not count a loading viewport as empty. Set by `AparteConversationController`
|
|
58
|
+
* through its binding, or by hand from a loop of your own (`setLoading(true)`).
|
|
54
59
|
* @attr {boolean} data-busy - Reflected BY the element while a turn streams: the transcript is
|
|
55
60
|
* read-only meanwhile, and every bubble inside reads it (at connect, and when it changes). The
|
|
56
61
|
* vanilla path derives it from the repository; a framework host sets it through
|
|
@@ -130,6 +135,11 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
130
135
|
private _lastScrollTop;
|
|
131
136
|
/** The scroll height at the last scroll event: how much it moved since bounds what churn can do. */
|
|
132
137
|
private _lastScrollHeight;
|
|
138
|
+
/** When the transcript last mutated under our observer — an engine's settle adjustment follows one. */
|
|
139
|
+
private _lastMutationAt;
|
|
140
|
+
/** How long after a mutation an engine's settle adjustment can arrive, and how far it moves. */
|
|
141
|
+
private readonly _settleShadowMs;
|
|
142
|
+
private readonly _settleBoundPx;
|
|
133
143
|
/** When this component last moved `scrollTop` itself — see `_handleScroll`. "Never" is
|
|
134
144
|
* -Infinity rather than 0: `performance.now()` can be under a second old. */
|
|
135
145
|
private _ownScrollAt;
|
|
@@ -191,6 +201,19 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
191
201
|
*/
|
|
192
202
|
private _frameworkManagedDOM;
|
|
193
203
|
static get observedAttributes(): string[];
|
|
204
|
+
/**
|
|
205
|
+
* The transcript is on its way: a conversation was chosen and its messages are
|
|
206
|
+
* being fetched. Two skeleton turns stand where they will be, the scroll surface
|
|
207
|
+
* is `aria-busy`, and a visually hidden line names the wait. Reflected as the
|
|
208
|
+
* `loading` attribute — `AparteConversationController` sets it through its
|
|
209
|
+
* binding; a loop of your own sets it by hand. Not the same thing as `data-busy`,
|
|
210
|
+
* which is a reply streaming into a transcript that is already there.
|
|
211
|
+
*/
|
|
212
|
+
get loading(): boolean;
|
|
213
|
+
set loading(value: boolean);
|
|
214
|
+
setLoading(loading: boolean): void;
|
|
215
|
+
/** Draw or remove the wait, from the attribute. Safe before the structure exists. */
|
|
216
|
+
private _syncLoading;
|
|
194
217
|
constructor();
|
|
195
218
|
connectedCallback(): void;
|
|
196
219
|
/**
|
|
@@ -253,7 +276,23 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
253
276
|
* framework wrapper's host element.
|
|
254
277
|
*/
|
|
255
278
|
private _activeMessageId;
|
|
256
|
-
/**
|
|
279
|
+
/**
|
|
280
|
+
* The id of the message currently streaming, if any — searched across the whole
|
|
281
|
+
* TREE, and answering with an OFF-HEAD one first when there are two.
|
|
282
|
+
*
|
|
283
|
+
* It used to scan `getMessages()`, the active path. A retry or an edit on an
|
|
284
|
+
* earlier bubble calls `addSiblingOf`, which switches the branch to the new pending
|
|
285
|
+
* reply: the turn still being written leaves the path, the scan found nothing, and
|
|
286
|
+
* the rest of that turn was appended to the message that had just replaced it.
|
|
287
|
+
*
|
|
288
|
+
* A new pending reply is itself marked streaming, so "the first one found" would
|
|
289
|
+
* answer the head and let the write through — the very case this exists to refuse.
|
|
290
|
+
* Answering the off-head one instead makes `_activeMessageId` refuse while ANY turn
|
|
291
|
+
* elsewhere in the tree is still open. That also refuses the new turn's own first
|
|
292
|
+
* deltas for as long as the superseded one has not settled, which is the trade this
|
|
293
|
+
* whole path already makes: losing the tail is visible, writing it onto someone
|
|
294
|
+
* else's message is not.
|
|
295
|
+
*/
|
|
257
296
|
private _streamingMessageId;
|
|
258
297
|
/**
|
|
259
298
|
* While a reply streams, the transcript is read-only except for Stop.
|
|
@@ -333,6 +372,12 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
333
372
|
/**
|
|
334
373
|
* Atomic update for a message by ID
|
|
335
374
|
* Supports updating content, status, segments, and other metadata
|
|
375
|
+
*
|
|
376
|
+
* An id the tree does not hold is a silent no-op, deliberately: the message may have
|
|
377
|
+
* been truncated away by an edit while a turn was still writing to it, and inventing
|
|
378
|
+
* it back would put a message the reader deleted on screen. It does mean a late error
|
|
379
|
+
* card can have nowhere to land — `aparte-message-error` still fires, so a host that
|
|
380
|
+
* wants to show one has the event.
|
|
336
381
|
*/
|
|
337
382
|
updateMessage(messageId: string, updates: Partial<AparteMessage>): void;
|
|
338
383
|
/**
|
|
@@ -529,6 +574,15 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
529
574
|
* 1 run in 6: the rebuild's height churn moved scrollTop within the second after
|
|
530
575
|
* the click, and the click made that look like the reader's).
|
|
531
576
|
*/
|
|
577
|
+
/**
|
|
578
|
+
* Is a pointer pressed on the surface right now? A press on the TEXT is not a scroll
|
|
579
|
+
* gesture (`_noteReaderInput` counts only the gutter), but a hand that is down and
|
|
580
|
+
* dragging a selection past the edge scrolls the container all the same — and that
|
|
581
|
+
* decrease is the reader's. Held from the press to its release, wherever it lands.
|
|
582
|
+
*/
|
|
583
|
+
private _pointerHeld;
|
|
584
|
+
private readonly _holdPointer;
|
|
585
|
+
private readonly _releasePointer;
|
|
532
586
|
private readonly _noteReaderInput;
|
|
533
587
|
private readonly _onBranchNavigate;
|
|
534
588
|
private _setupEventListeners;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-viewport.d.ts","sourceRoot":"","sources":["../../../src/components/viewport/aparte-chat-viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EAIb,WAAW,EACd,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-chat-viewport.d.ts","sourceRoot":"","sources":["../../../src/components/viewport/aparte-chat-viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EAIb,WAAW,EACd,MAAM,sBAA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gF;IAChF,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,aAAa;IAmIrB,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,QAAQ;IAIhB,gFAAgF;IAChF,OAAO,CAAC,cAAc;IAMtB;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,OAAO,CAAC,eAAe;IAwBvB,OAAO,CAAC,qBAAqB;IA0B7B,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IA2B3B;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;IA0E1B;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,QAAQ;CAkCnB"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Zones where a custom action can appear — the message (bubble) toolbar, and only it.
|
|
3
|
+
*
|
|
4
|
+
* The type is a single member on purpose: a composer button is an element the consumer
|
|
5
|
+
* writes in their own markup (`<aparte-composer-action>`), not a registry entry, so the
|
|
6
|
+
* composer never asked the registry for anything. The zone stays a named type rather
|
|
7
|
+
* than the bare literal because `getActions(zone)` reads as a lookup, and a second zone
|
|
8
|
+
* (a toolbar of core's own, say) would be added here.
|
|
9
|
+
*/
|
|
10
|
+
export type AparteActionZone = 'bubble';
|
|
3
11
|
/**
|
|
4
12
|
* A custom action button, registered once via `aparteGlobalConfig.registerAction(...)`
|
|
5
|
-
* and placed in
|
|
6
|
-
* (bubble) toolbar — via `zones`.
|
|
13
|
+
* and placed in the message (bubble) toolbar via `zones`.
|
|
7
14
|
*
|
|
8
15
|
* Declarative and framework-agnostic: clicking it emits an `aparte-action`
|
|
9
16
|
* CustomEvent (bubbles, composed) carrying `{ actionId, zone, … }`, exactly like
|
|
@@ -11,6 +18,9 @@ export type AparteActionZone = 'composer' | 'bubble';
|
|
|
11
18
|
* React/Vue/Svelte/Angular and in vanilla. An optional `onClick` callback fires
|
|
12
19
|
* alongside the event for imperative convenience.
|
|
13
20
|
*
|
|
21
|
+
* For a button in the composer, write an `<aparte-composer-action>` in your markup and
|
|
22
|
+
* listen for `aparte-action-click` — see that element's docs.
|
|
23
|
+
*
|
|
14
24
|
* @example
|
|
15
25
|
* aparteGlobalConfig.registerAction({
|
|
16
26
|
* id: 'share', icon: '<svg>…</svg>', label: 'Share',
|
|
@@ -38,16 +48,6 @@ export interface AparteAction {
|
|
|
38
48
|
order?: number;
|
|
39
49
|
/** Which zones this action appears in. */
|
|
40
50
|
zones: AparteActionZone[];
|
|
41
|
-
/** Composer-toolbar placement (used when `zones` includes `'composer'`). */
|
|
42
|
-
composer?: {
|
|
43
|
-
/** Toolbar side. Default: `'left'`. */
|
|
44
|
-
position?: 'left' | 'right';
|
|
45
|
-
/**
|
|
46
|
-
* When `true`, the button is hidden from the composer toolbar.
|
|
47
|
-
* Toggle at runtime with `aparteGlobalConfig.setActionHidden(id, hidden)`.
|
|
48
|
-
*/
|
|
49
|
-
hidden?: boolean;
|
|
50
|
-
};
|
|
51
51
|
/** Bubble-toolbar placement (used when `zones` includes `'bubble'`). */
|
|
52
52
|
bubble?: {
|
|
53
53
|
/** Bubble roles this action shows on. Default: both user and assistant. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-provider.d.ts","sourceRoot":"","sources":["../../src/config/action-provider.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"action-provider.d.ts","sourceRoot":"","sources":["../../src/config/action-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,YAAY;IACzB,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,wEAAwE;IACxE,MAAM,CAAC,EAAE;QACL,2EAA2E;QAC3E,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAC;KACpC,CAAC;IACF,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD"}
|
|
@@ -30,7 +30,17 @@ export type AparteMarkdownProvider = (raw: string) => string;
|
|
|
30
30
|
export type AparteHighlightProvider = ((code: string, lang: string) => string) | ((code: string, lang: string) => Promise<string>);
|
|
31
31
|
export type AparteSystemPromptVarsProvider = () => Record<string, string>;
|
|
32
32
|
export type AparteLocaleProvider = AparteLocale;
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* How the page answers "what are this provider's credentials?".
|
|
35
|
+
*
|
|
36
|
+
* A bare key, or the same `{ apiKey, endpoint }` record the transport reads
|
|
37
|
+
* (`readAuth`) and `fetchModels` accepts. The record is not a nicety: a consumer
|
|
38
|
+
* who points a preset at their own host — a corporate proxy, a self-hosted vLLM,
|
|
39
|
+
* an LM Studio box — configures it as `endpoint`, and while this channel could
|
|
40
|
+
* only carry a string, `refreshProviderModels` sent `GET {vendor default}/models`
|
|
41
|
+
* with the key that host had been given.
|
|
42
|
+
*/
|
|
43
|
+
export type AparteKeyProvider = (providerId: string) => string | Record<string, string> | undefined | null | Promise<string | Record<string, string> | undefined | null>;
|
|
34
44
|
/**
|
|
35
45
|
* The bubble-action defaults — `copy` on, everything else off.
|
|
36
46
|
*
|
|
@@ -105,6 +115,11 @@ export declare class AparteConfig {
|
|
|
105
115
|
private _iconProvider?;
|
|
106
116
|
private _avatarProvider?;
|
|
107
117
|
private _keyProvider?;
|
|
118
|
+
/**
|
|
119
|
+
* Sources added with `registerKeyProvider` — consulted before `_keyProvider`,
|
|
120
|
+
* newest first (see `getKey`).
|
|
121
|
+
*/
|
|
122
|
+
private _extraKeyProviders;
|
|
108
123
|
private _locale;
|
|
109
124
|
private _actions;
|
|
110
125
|
private _listeners;
|
|
@@ -164,20 +179,16 @@ export declare class AparteConfig {
|
|
|
164
179
|
private _hostHandlers;
|
|
165
180
|
private _bubbleActionsConfig;
|
|
166
181
|
/**
|
|
167
|
-
* Register a custom action button. `zones` places it in the
|
|
168
|
-
*
|
|
169
|
-
*
|
|
182
|
+
* Register a custom action button. `zones` places it in the message (bubble)
|
|
183
|
+
* toolbar. Re-registering the same id overwrites it. Notifies mounted elements
|
|
184
|
+
* so they re-render. A button in the composer is an `<aparte-composer-action>`
|
|
185
|
+
* element you write in your markup, not a registry entry.
|
|
170
186
|
*/
|
|
171
187
|
registerAction(action: AparteAction): void;
|
|
172
188
|
/** All registered actions for a zone, sorted by `order` (lower first). */
|
|
173
189
|
getActions(zone: AparteActionZone): AparteAction[];
|
|
174
190
|
/** Remove a custom action by id (from every zone); notifies mounted elements if it existed. */
|
|
175
191
|
unregisterAction(id: string): void;
|
|
176
|
-
/**
|
|
177
|
-
* Show or hide a composer action button by id.
|
|
178
|
-
* Triggers a config update so all mounted composer elements react immediately.
|
|
179
|
-
*/
|
|
180
|
-
setActionHidden(id: string, hidden: boolean): void;
|
|
181
192
|
/**
|
|
182
193
|
* Configure which action buttons appear in message bubbles.
|
|
183
194
|
* Unset keys keep their defaults — see {@link APARTE_DEFAULT_BUBBLE_ACTIONS}: `copy`
|
|
@@ -219,8 +230,11 @@ export declare class AparteConfig {
|
|
|
219
230
|
* Set an incremental (streaming) Markdown renderer provider. Optional —
|
|
220
231
|
* when set, the chat bubble uses it to render the assistant message
|
|
221
232
|
* token-by-token DURING streaming (incremental parse + DOM append, O(n)),
|
|
222
|
-
* instead of re-parsing the whole string on every token.
|
|
223
|
-
* `setMarkdownProvider`
|
|
233
|
+
* instead of re-parsing the whole string on every token. When the turn ends,
|
|
234
|
+
* a registered one-shot `setMarkdownProvider` re-renders the finished message
|
|
235
|
+
* at full fidelity; with no one-shot provider registered, what the streaming
|
|
236
|
+
* renderer drew is kept (sanitised), rather than replaced by the built-in
|
|
237
|
+
* escape-and-line-break fallback.
|
|
224
238
|
*/
|
|
225
239
|
setStreamingMarkdownProvider(fn: AparteStreamingMarkdownProvider): void;
|
|
226
240
|
/**
|
|
@@ -391,9 +405,45 @@ export declare class AparteConfig {
|
|
|
391
405
|
*/
|
|
392
406
|
setKeyProvider(provider: AparteKeyProvider): void;
|
|
393
407
|
/**
|
|
394
|
-
*
|
|
408
|
+
* Add a key source, without replacing the one `setKeyProvider` holds. Returns a
|
|
409
|
+
* teardown.
|
|
410
|
+
*
|
|
411
|
+
* This is how `AparteClient({ keyResolver })` — the channel the docs teach as
|
|
412
|
+
* primary — reaches everything that needs a key rather than the chat alone. It
|
|
413
|
+
* used to reach the chat ONLY, so the model selector, whose one data path is
|
|
414
|
+
* `refreshProviderModels`, showed an empty list on every cloud provider while
|
|
415
|
+
* the chat worked: `fetchModels` returns `[]` without a key, so there was
|
|
416
|
+
* nothing to see and nothing said.
|
|
417
|
+
*
|
|
418
|
+
* The direction matters (decision #9): the client registers a source ON the
|
|
419
|
+
* config, so the capability is never hostage to the client — a page that only
|
|
420
|
+
* ever calls `setKeyProvider` is unchanged, and a page that constructs no
|
|
421
|
+
* client at all still lists models.
|
|
422
|
+
*
|
|
423
|
+
* Every call is its own source, even when the same function is handed in
|
|
424
|
+
* twice: two panes sharing one module-level resolver are two mounts, and the
|
|
425
|
+
* first one to unmount must not take the second one's key with it. A `Set`
|
|
426
|
+
* keyed by the function itself made them one entry, which either teardown
|
|
427
|
+
* removed.
|
|
428
|
+
*/
|
|
429
|
+
registerKeyProvider(provider: AparteKeyProvider): () => void;
|
|
430
|
+
/**
|
|
431
|
+
* The credentials for a provider: a key, or the `{ apiKey, endpoint }` record
|
|
432
|
+
* the transport and `fetchModels` both read.
|
|
433
|
+
*
|
|
434
|
+
* ONE resolution order, so the chat and the model list cannot disagree about
|
|
435
|
+
* what an endpoint is: a registered resolver (`AparteClient`'s `keyResolver`)
|
|
436
|
+
* first — which is the precedence the client has always documented — then
|
|
437
|
+
* `setKeyProvider`.
|
|
438
|
+
*
|
|
439
|
+
* Registered sources answer NEWEST first. A page that mounts a second chat, or
|
|
440
|
+
* remounts one to swap its options — the swap the wrappers document — leaves
|
|
441
|
+
* more than one source here, and insertion order made the first resolver the
|
|
442
|
+
* page ever registered answer for every later one, so the key could not be
|
|
443
|
+
* changed. The snapshot is deliberate too: a source torn down while an earlier
|
|
444
|
+
* one is being awaited must not shift the iteration underneath it.
|
|
395
445
|
*/
|
|
396
|
-
getKey(providerId: string): Promise<string | undefined>;
|
|
446
|
+
getKey(providerId: string): Promise<string | Record<string, string> | undefined>;
|
|
397
447
|
/**
|
|
398
448
|
* Refresh models for a specific provider
|
|
399
449
|
* Orchestrates: Key Retrieval -> Fetch -> Return
|
|
@@ -613,6 +663,13 @@ export declare class AparteConfig {
|
|
|
613
663
|
* Controls what appears in the chat bubble when the AI calls this tool.
|
|
614
664
|
* Use this instead of the generic `tool_call` segment renderer for tool-specific UI.
|
|
615
665
|
*
|
|
666
|
+
* A renderer that needs a popover (a `<aparte-select>`, a menu) cannot open one
|
|
667
|
+
* inside the row: the bubble is `content-visibility: auto`, which makes it the
|
|
668
|
+
* containing block for `position: fixed` descendants and clips a popover to its
|
|
669
|
+
* own box. Mount it on `document.body` and position it from the trigger's rect
|
|
670
|
+
* instead — see [Custom tool
|
|
671
|
+
* renderer](https://apartejs.dev/guides/tools/#custom-tool-renderer).
|
|
672
|
+
*
|
|
616
673
|
* @example
|
|
617
674
|
* // Hide the segment entirely (UI-only tool like ask_user)
|
|
618
675
|
* aparteGlobalConfig.registerToolRenderer('ask_user', { render: () => '' });
|
|
@@ -753,6 +810,18 @@ export declare class AparteConfig {
|
|
|
753
810
|
* "installs itself — nothing to register", which is how that was found.
|
|
754
811
|
*/
|
|
755
812
|
requestUserInput(request: AparteElicitationRequest): Promise<AparteElicitationResult>;
|
|
813
|
+
/**
|
|
814
|
+
* Which queue a request waits in: its own chat's.
|
|
815
|
+
*
|
|
816
|
+
* The wait exists so a second question cannot take the panel away from the one on
|
|
817
|
+
* screen — a property of ONE panel, and `_present` routes by target, so a chat is
|
|
818
|
+
* the right unit. It used to be one queue for the whole config: two chats on the
|
|
819
|
+
* global config shared it, and an approval waiting for an answer in the first (which
|
|
820
|
+
* is all an approval does) held the second's question behind it for ever, with
|
|
821
|
+
* nothing on screen to answer. Requests that name no chat keep sharing the `null`
|
|
822
|
+
* queue, because they all reach the same presenter — the top of the stack.
|
|
823
|
+
*/
|
|
824
|
+
private _elicitationQueueKey;
|
|
756
825
|
/** Hand ONE request to the presenter. Called only from the queue. */
|
|
757
826
|
private _present;
|
|
758
827
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-config.d.ts","sourceRoot":"","sources":["../../src/config/aparte-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAiC,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAyB,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0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,OAAO,CAAC,QAAQ;IA8BhB;;;;;OAKG;IACH,KAAK,IAAI,IAAI;IAiDb,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,yBAAyB;CAIpC;AAoCD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAoB,CAAC;AAKpD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,6BAA6B;IAC1C,mFAAmF;IACnF,MAAM,EAAE,YAAY,CAAC;IACrB,iDAAiD;IACjD,WAAW,EAAE,iBAAiB,CAAC;CAClC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Replace the *structural skeleton* of `<aparte-chat-bubble>` — the markup the
|
|
5
5
|
* bubble renders once and then populates — while keeping all of its behavior
|
|
6
6
|
* (segments, streaming, action bar, avatar, branch picker). This is the
|
|
7
|
-
* whole-structure override that
|
|
7
|
+
* whole-structure override that `renderBubble` (wrapper-level,
|
|
8
8
|
* replaces the element entirely) is not: here the native bubble stays in charge.
|
|
9
9
|
*
|
|
10
10
|
* Return an HTML **string** or a ready **HTMLElement** (charter §6:
|
|
@@ -13,17 +13,55 @@
|
|
|
13
13
|
*
|
|
14
14
|
* - Root element **must** be `.aparte-message` (it carries `data-role` and receives
|
|
15
15
|
* `data-streaming` / `data-error`; the styles target it).
|
|
16
|
-
* - Include the region hooks you want the bubble to populate
|
|
17
|
-
* stay empty (every lookup is null-guarded —
|
|
18
|
-
*
|
|
19
|
-
* - `.aparte-
|
|
20
|
-
* - `.aparte-
|
|
21
|
-
* - `.aparte-
|
|
22
|
-
* - `.aparte-
|
|
23
|
-
* - `.aparte-content`
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
16
|
+
* - Include the region hooks you want the bubble to populate, in the order the default
|
|
17
|
+
* shell renders them. Any you omit simply stay empty (every lookup is null-guarded —
|
|
18
|
+
* graceful degradation):
|
|
19
|
+
* - `.aparte-avatar` — filled by the avatar provider / initial
|
|
20
|
+
* - `.aparte-name` — the display name (you set it from `ctx.name`)
|
|
21
|
+
* - `.aparte-timestamp` — the formatted time
|
|
22
|
+
* - `.aparte-attachments` — user-message attachment chips
|
|
23
|
+
* - `.aparte-message-content` — the painted content box, and it HOLDS the next three
|
|
24
|
+
* (`.aparte-segments`, `.aparte-content`, `.aparte-waiting`):
|
|
25
|
+
* the background, the radius and the padding of a user
|
|
26
|
+
* message are declared on this box, so rendering the three
|
|
27
|
+
* as its siblings leaves a message with no bubble — every
|
|
28
|
+
* behaviour intact, the look gone. The bubble hides the box
|
|
29
|
+
* when the turn has nothing to show, so an attachments-only
|
|
30
|
+
* message does not draw an empty coloured rectangle
|
|
31
|
+
* - `.aparte-segments` — streamed/structured segments
|
|
32
|
+
* - `.aparte-content` — simple markdown content
|
|
33
|
+
* - `.aparte-waiting` — the dots between "user sends" and the first token. The
|
|
34
|
+
* bubble only SHOWS and HIDES this region; the markup that
|
|
35
|
+
* paints is yours: a `.aparte-dots` span holding three
|
|
36
|
+
* `.aparte-dot` spans (the stylesheet animates them), and a
|
|
37
|
+
* `.aparte-sr-only` span for the label the screen reader
|
|
38
|
+
* hears. With the label alone the region has nothing to
|
|
39
|
+
* draw and the reader watches an empty box while the model
|
|
40
|
+
* composes
|
|
41
|
+
* - `.aparte-footer` — the row that holds the branch picker and the actions
|
|
42
|
+
* - `.aparte-branch-picker` — with `.aparte-branch-prev` / `.aparte-branch-label` /
|
|
43
|
+
* `.aparte-branch-next` for sibling navigation, and
|
|
44
|
+
* `.aparte-branch-status` (a `.aparte-sr-only` span with
|
|
45
|
+
* `aria-live="polite"`) for the announcement
|
|
46
|
+
* - `.aparte-action-bar` — copy/retry/edit/… + custom actions
|
|
47
|
+
*
|
|
48
|
+
* Omitting most of these costs you something you can see. **The two that fail silently
|
|
49
|
+
* are `.aparte-waiting` and `.aparte-branch-status`**: without the first there is no
|
|
50
|
+
* "thinking" state at all while the model composes, and without the second a
|
|
51
|
+
* screen-reader user gets no word that the branch moved — the arrows deliberately do
|
|
52
|
+
* not take focus, so nothing else announces it.
|
|
53
|
+
*
|
|
54
|
+
* ARIA is the one thing this list does NOT ask of you. A shell is markup, and a contract
|
|
55
|
+
* that also demanded a `role` and a name would lose both the first time an author forgot
|
|
56
|
+
* one, silently. So the bubble writes `role="article"` and the accessible name onto your
|
|
57
|
+
* root itself, after your shell renders — unless the root already carries a `role`, which
|
|
58
|
+
* is how you override it: the bubble then leaves the accessible name to you as well.
|
|
59
|
+
*
|
|
60
|
+
* Two more classes carry the DEFAULT LAYOUT and nothing else — the bubble never queries
|
|
61
|
+
* them, so a shell that lays itself out differently is free to drop both: `.aparte-body`
|
|
62
|
+
* (the column beside the avatar, and the containing block the footer floats in) and
|
|
63
|
+
* `.aparte-header` (the name and time row). Keep them and the default stylesheet lays
|
|
64
|
+
* your shell out like the native bubble.
|
|
27
65
|
*
|
|
28
66
|
* Prefer `renderBubble` (wrapper) when you want a fully custom element; use this
|
|
29
67
|
* when you want to keep the native bubble's machinery but reshape its layout.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble-shell-renderer.d.ts","sourceRoot":"","sources":["../../src/config/bubble-shell-renderer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bubble-shell-renderer.d.ts","sourceRoot":"","sources":["../../src/config/bubble-shell-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE;IAC1C,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACzB,KAAK,MAAM,GAAG,WAAW,CAAC"}
|
package/dist/config/locale.d.ts
CHANGED
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
* meet: TypeScript gives a type alias an implicit index signature and an interface
|
|
18
18
|
* none, so only this form is assignable to the extensions record that
|
|
19
19
|
* `setLocale`/`extendLocale` accept and `getLocale` returns.
|
|
20
|
+
*
|
|
21
|
+
* Eleven keys here are rendered by no core file — the artifact card's six, its two
|
|
22
|
+
* sandbox lines, the compaction summary's title, the approval mode picker's label and the
|
|
23
|
+
* model selector's placeholder, all drawn by a plugin. They belong in this bag anyway: the
|
|
24
|
+
* locale is one flat object every package shares, so a translator fills one record and
|
|
25
|
+
* `@aparte/locale-fr` needs no companion per plugin. They are the
|
|
26
|
+
* exception rather than the pattern, though, and a closed one: a plugin of your own
|
|
27
|
+
* reads its strings off `getLocale()` and defaults them at the call site (the
|
|
28
|
+
* localization guide shows it), and `check:locale-keys` holds those eleven in
|
|
29
|
+
* `PLUGIN_OWNED` and refuses a twelfth. The reason is that a key here is a published name
|
|
30
|
+
* before it is a word: it ships in every locale package, and the frozen surface then
|
|
31
|
+
* keeps it for two releases.
|
|
20
32
|
*/
|
|
21
33
|
export type AparteLocale = {
|
|
22
34
|
inputPlaceholder: string;
|
|
@@ -52,6 +64,10 @@ export type AparteLocale = {
|
|
|
52
64
|
messageInfo?: string;
|
|
53
65
|
/** Default title for a new conversation (default: "New Chat") */
|
|
54
66
|
newChat: string;
|
|
67
|
+
/** Read by a screen reader while the conversation list is on its way (default: "Loading conversations") */
|
|
68
|
+
loadingConversations: string;
|
|
69
|
+
/** Read by a screen reader while a conversation's messages are on their way (default: "Loading the conversation") */
|
|
70
|
+
loadingConversation: string;
|
|
55
71
|
/**
|
|
56
72
|
* The "Delete" item of a row's menu (default: "Delete"). Used to be the aria-label
|
|
57
73
|
* of a permanent ✕ on every row ("Delete conversation"); the menu is named after
|
|
@@ -356,7 +372,23 @@ export type AparteLocale = {
|
|
|
356
372
|
* have chosen French strings, French formatting is what you meant.
|
|
357
373
|
*/
|
|
358
374
|
tag?: string;
|
|
359
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Reading direction — `'ltr'` or `'rtl'`. Written as `dir` onto the viewport's
|
|
377
|
+
* scroll container and onto `<aparte-composer>`, so everything inside inherits it.
|
|
378
|
+
*
|
|
379
|
+
* Undefined on purpose in the English default, for the reason `tag` above is:
|
|
380
|
+
* `undefined` means "follow the host". The default used to be the literal
|
|
381
|
+
* `'ltr'`, which meant core wrote `dir="ltr"` on its own DOM — so a page that
|
|
382
|
+
* had said `<html dir="rtl">` got a mirrored app shell around a chat that was
|
|
383
|
+
* still left-to-right, and nothing said why. Not declaring it lets the host's
|
|
384
|
+
* direction inherit, which is what a library should do with a decision the page
|
|
385
|
+
* has already taken.
|
|
386
|
+
*
|
|
387
|
+
* A locale that wants the direction PINNED still declares it, and that is the
|
|
388
|
+
* case it exists for: `@aparte/locale-ar` would say `'rtl'` whatever the page
|
|
389
|
+
* around it does. `setLocale` replaces the object wholesale, so nothing merges a
|
|
390
|
+
* default back in.
|
|
391
|
+
*/
|
|
360
392
|
direction?: 'ltr' | 'rtl';
|
|
361
393
|
};
|
|
362
394
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAGhB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,+EA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B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YA0FnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/config/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,aAKzB,CAAC;AAqIH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ7D;
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/config/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,aAKzB,CAAC;AAqIH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ7D;AAoPD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAY9B,CAAC"}
|
|
@@ -24,6 +24,11 @@ export interface AparteChatBinding {
|
|
|
24
24
|
clearMessages(options?: {
|
|
25
25
|
revokeAttachments?: boolean;
|
|
26
26
|
}): void;
|
|
27
|
+
/**
|
|
28
|
+
* The transcript is on its way, or no longer: a conversation was chosen and its
|
|
29
|
+
* messages are being fetched. The DOM binding sets the viewport's `loading`.
|
|
30
|
+
*/
|
|
31
|
+
setLoading?(loading: boolean): void;
|
|
27
32
|
/**
|
|
28
33
|
* Export the full conversation tree for persistence.
|
|
29
34
|
* Optional: only available when the binding wraps a `AparteMessageRepository`
|
|
@@ -87,6 +92,8 @@ export declare class AparteConversationController {
|
|
|
87
92
|
private _subscribedTo;
|
|
88
93
|
/** Between bind() and unbind(): the only time a manager subscription may be installed. */
|
|
89
94
|
private _bound;
|
|
95
|
+
/** The binding shows the wait this controller asked for — see `_showWait`. */
|
|
96
|
+
private _waitShown;
|
|
90
97
|
/**
|
|
91
98
|
* React to an external mutation of the manager (another component deleting or
|
|
92
99
|
* archiving the active conversation). Without this the binding would keep
|
|
@@ -136,6 +143,13 @@ export declare class AparteConversationController {
|
|
|
136
143
|
* reload never kills an in-flight response.
|
|
137
144
|
*/
|
|
138
145
|
setConversationId(id: string | null): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* The binding's wait, owned here: whoever runs `setConversationId` last clears it
|
|
148
|
+
* — a loaded conversation or a new chat that replaces a fetch, a delete of the
|
|
149
|
+
* one being fetched — so a wait shown for one call never outlives the call that
|
|
150
|
+
* superseded it.
|
|
151
|
+
*/
|
|
152
|
+
private _showWait;
|
|
139
153
|
/**
|
|
140
154
|
* Snapshot the binding's current messages and push them to the manager.
|
|
141
155
|
* No-op when there is no active conversation or no manager registered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-controller.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B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B;IACnD,OAAO,CAAC,eAAe,CAA6B;IACpD,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,qBAAqB,CAAqC;IAClE,OAAO,CAAC,mBAAmB,CAA6B;IACxD,wFAAwF;IACxF,OAAO,CAAC,aAAa,CAA0C;IAC/D,0FAA0F;IAC1F,OAAO,CAAC,MAAM,CAAS;
|
|
1
|
+
{"version":3,"file":"conversation-controller.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAOlF;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,2EAA2E;IAC3E,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC7C,0EAA0E;IAC1E,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC5C,qCAAqC;IACrC,WAAW,IAAI,aAAa,EAAE,CAAC;IAC/B,kEAAkE;IAClE,aAAa,CAAC,OAAO,CAAC,EAAE;QAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAC/D;;;OAGG;IACH,UAAU,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC;;;;OAIG;IACH,UAAU,CAAC,IAAI,yBAAyB,GAAG,SAAS,CAAC;IACrD;;;;;OAKG;IACH,UAAU,CAAC,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,mCAAmC;IAChD;;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