@aparte/core 0.16.7 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/aparte-client.d.ts +57 -2
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/lifecycle-events.d.ts +8 -1
- package/dist/client/lifecycle-events.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +8 -0
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +39 -18
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +32 -25
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-cancel.d.ts +2 -2
- package/dist/components/composer/aparte-composer-cancel.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +6 -6
- package/dist/components/composer/aparte-composer-send.d.ts +3 -3
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +9 -2
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +0 -1
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +11 -6
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +20 -18
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts +11 -3
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts.map +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts +16 -2
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts +9 -4
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/components/status/aparte-chat-status.d.ts +44 -5
- package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +27 -4
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/icon-provider.d.ts +6 -0
- package/dist/config/icon-provider.d.ts.map +1 -1
- package/dist/config/locale.d.ts +3 -1
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/custom-elements.json +13010 -12737
- package/dist/{dialog-triggers-Dw_DIlQ7.js → dialog-triggers-CApC7K1I.js} +119 -44
- package/dist/dialog-triggers-CApC7K1I.js.map +1 -0
- package/dist/elicitation/panel.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +13 -3
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-DQTeOj4w.js → glyphs-C8z2oJUg.js} +36 -27
- package/dist/{glyphs-DQTeOj4w.js.map → glyphs-C8z2oJUg.js.map} +1 -1
- package/dist/icons/extended.d.ts +0 -6
- package/dist/icons/extended.d.ts.map +1 -1
- package/dist/icons/glyphs.d.ts +13 -4
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons.js +28 -31
- package/dist/icons.js.map +1 -1
- package/dist/index.css +946 -386
- package/dist/index.js +321 -89
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/primitives/icon/aparte-icon.d.ts +1 -1
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts +2 -3
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts.map +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +4 -4
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +43 -12
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/segments/code.d.ts.map +1 -1
- package/dist/renderers/segments/error.d.ts.map +1 -1
- package/dist/renderers/segments/thinking.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/types/events.d.ts +4 -2
- package/dist/types/events.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/dialog-triggers-Dw_DIlQ7.js.map +0 -1
package/dist/index.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6 } from "./dialog-triggers-
|
|
1
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6 } from "./dialog-triggers-CApC7K1I.js";
|
|
2
2
|
function registerAllComponents() {
|
|
3
3
|
if (typeof customElements !== "undefined") {
|
|
4
4
|
console.warn(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-props.d.ts","sourceRoot":"","sources":["../../src/interop/element-props.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,wBAAwB,+4BA6CC,CAAC;AAEvC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC7B,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,cAAc,GAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAA0B,GAC/D,IAAI,
|
|
1
|
+
{"version":3,"file":"element-props.d.ts","sourceRoot":"","sources":["../../src/interop/element-props.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,wBAAwB,+4BA6CC,CAAC;AAEvC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC7B,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,cAAc,GAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAA0B,GAC/D,IAAI,CAuEN"}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* @attr {string} name - Which glyph to draw. One of the names `setIconProvider` accepts;
|
|
30
30
|
* an unknown name draws nothing rather than a broken-image box.
|
|
31
31
|
*
|
|
32
|
-
* @cssprop [--aparte-icon-size=
|
|
32
|
+
* @cssprop [--aparte-icon-size=calc(1rem * var(--aparte-font-scale))] - Width and height. `--sm`/`--lg`/`--xl` set it.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* <aparte-icon name="copy"></aparte-icon>
|
|
@@ -23,10 +23,9 @@
|
|
|
23
23
|
* @element aparte-progress-spinner
|
|
24
24
|
* @attr {number} value - Progress percentage 0–100 (omit for indeterminate)
|
|
25
25
|
*
|
|
26
|
-
* @cssprop [--aparte-spinner-size=
|
|
27
|
-
* @cssprop [--aparte-spinner-stroke=2.5] - Stroke width of both arcs, in the units of the 24×24 viewBox.
|
|
26
|
+
* @cssprop [--aparte-spinner-size=var(--aparte-spinner-size-md)] - Width and height of the element; the SVG fills it.
|
|
28
27
|
* @cssprop [--aparte-spinner-color=currentColor] - Stroke of the filled (progress) arc.
|
|
29
|
-
* @cssprop [--aparte-spinner-track=
|
|
28
|
+
* @cssprop [--aparte-spinner-track=var(--aparte-border-control)] - Stroke of the track arc behind it.
|
|
30
29
|
*
|
|
31
30
|
* @example
|
|
32
31
|
* <!-- Omit `value` for the indeterminate spin; set it to show real progress. -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-progress-spinner.d.ts","sourceRoot":"","sources":["../../../src/primitives/progress-spinner/aparte-progress-spinner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aparte-progress-spinner.d.ts","sourceRoot":"","sources":["../../../src/primitives/progress-spinner/aparte-progress-spinner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAClD,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAAsB;IAE/D,uEAAuE;IACvE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAK;IACxB,OAAO,KAAK,KAAK,GAA4C;IAE7D,iBAAiB,IAAI,IAAI;IACzB,wBAAwB,IAAI,IAAI;IAEhC,OAAO,CAAC,OAAO;CAwBlB"}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* <!-- Collapsed groups keep a long list readable; the label is the group's header. -->
|
|
39
|
-
* <aparte-select
|
|
39
|
+
* <aparte-select placeholder="Pick a model">
|
|
40
40
|
* <aparte-optgroup label="Ollama" collapsible collapsed>
|
|
41
41
|
* <aparte-option value="ollama::llama3">Llama 3</aparte-option>
|
|
42
42
|
* </aparte-optgroup>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-optgroup.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-optgroup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-optgroup.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-optgroup.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,qBAAa,cAAe,SAAQ,WAAW;IAC3C,oEAAoE;IACpE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAK;IAE/B,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAY9F,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,GAAG,EAAE,OAAO,EAEzB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,GAAG,EAAE,OAAO,EAEvB;IAED,OAAO,CAAC,OAAO;IAkDf,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,qBAAqB;CAMhC;AAOD;;;;;;;;;GASG;AACH,MAAM,WAAW,+BAA+B;IAC5C,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
* @attr {boolean} selected - Selected state
|
|
31
31
|
* @attr {string} data-status - Free-form status the host sets; styled, never read by core.
|
|
32
32
|
*
|
|
33
|
-
* @cssprop [--aparte-select-text=var(--aparte-text
|
|
34
|
-
* @cssprop [--aparte-select-option-hover=var(--aparte-surface-2
|
|
35
|
-
* @cssprop [--aparte-select-option-selected=color-mix(in srgb, var(--aparte-primary
|
|
36
|
-
* @cssprop [--aparte-select-option-selected-text=var(--aparte-select-text, var(--aparte-text
|
|
33
|
+
* @cssprop [--aparte-select-text=var(--aparte-text)] - Option text colour.
|
|
34
|
+
* @cssprop [--aparte-select-option-hover=var(--aparte-surface-2)] - Background on hover, and for the keyboard-active row (`[data-active]`), which adds an inset `--aparte-primary` ring on top so the two are distinguishable.
|
|
35
|
+
* @cssprop [--aparte-select-option-selected=color-mix(in srgb, var(--aparte-primary) var(--aparte-mark-tint), transparent)] - Background of the selected row. A tint by default: a solid accent fill with white text failed WCAG AA in both themes.
|
|
36
|
+
* @cssprop [--aparte-select-option-selected-text=var(--aparte-select-text, var(--aparte-text))] - Text colour of the selected row. Set both this and the background to go back to a solid fill.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* <aparte-select placeholder="Pick a model" value="gpt-4o-mini">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-option.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-option.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-option.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-option.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACzC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,iBAAiB,IAAI,IAAI;IAMzB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAY5C,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,IAAI,KAAK,IAAI,MAAM,CAIlB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAExB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAExB;IAED,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,gBAAgB;CAkB3B"}
|
|
@@ -25,6 +25,12 @@ export interface AparteSelectChangeDetail {
|
|
|
25
25
|
* It is not a form control: no `name`, no `multiple`, no participation in form submission.
|
|
26
26
|
* It holds exactly one value and reports it through `aparte-select-change`.
|
|
27
27
|
*
|
|
28
|
+
* The combobox is whichever element holds focus. Without `searchable` that is the
|
|
29
|
+
* trigger. With it, opening focuses the filter field, so the field carries
|
|
30
|
+
* `role="combobox"`, `aria-expanded`, `aria-controls` and the roving
|
|
31
|
+
* `aria-activedescendant`, and the trigger is a `role="button"` — one combobox either
|
|
32
|
+
* way, and always the focused one.
|
|
33
|
+
*
|
|
28
34
|
* The dropdown is `position: fixed` and placed from script so it escapes an
|
|
29
35
|
* `overflow: hidden` ancestor — which is why its stacking order is a variable
|
|
30
36
|
* (`--aparte-select-z`) rather than a fixed rule, and why an `open` dropdown does not
|
|
@@ -34,7 +40,6 @@ export interface AparteSelectChangeDetail {
|
|
|
34
40
|
* @attr {string} value - The selected option's value.
|
|
35
41
|
* @attr {string} placeholder - Shown while nothing is selected.
|
|
36
42
|
* @attr {boolean} disabled - Blocks opening the dropdown.
|
|
37
|
-
* @attr {boolean} grouped - Observed, never read: `<aparte-optgroup>` children render as groups without it.
|
|
38
43
|
* @attr {boolean} searchable - Adds a filter field above the options. Read on the first render only.
|
|
39
44
|
* @attr {boolean} open - Reflects (and controls) whether the dropdown is open.
|
|
40
45
|
*
|
|
@@ -42,17 +47,15 @@ export interface AparteSelectChangeDetail {
|
|
|
42
47
|
* @fires aparte-select-open - The dropdown opened. No detail.
|
|
43
48
|
* @fires aparte-select-close - The dropdown closed. No detail.
|
|
44
49
|
*
|
|
45
|
-
* @cssprop [--aparte-select-bg=var(--aparte-surface-1
|
|
46
|
-
* @cssprop [--aparte-select-border=var(--aparte-border
|
|
47
|
-
* @cssprop [--aparte-select-border-hover=var(--aparte-primary
|
|
48
|
-
* @cssprop [--aparte-select
|
|
49
|
-
* @cssprop [--aparte-select-
|
|
50
|
-
* @cssprop [--aparte-select-
|
|
51
|
-
* @cssprop [--aparte-select-
|
|
52
|
-
* @cssprop [--aparte-select-
|
|
53
|
-
* @cssprop [--aparte-select-
|
|
54
|
-
* @cssprop [--aparte-select-shadow=0 4px 12px rgba(0, 0, 0, 0.1)] - Dropdown panel shadow.
|
|
55
|
-
* @cssprop [--aparte-select-z=1000] - `z-index` of the dropdown. It is `position: fixed`, so this is the one knob that decides whether it lands above the rest of your page.
|
|
50
|
+
* @cssprop [--aparte-select-bg=var(--aparte-surface-1)] - Trigger background. (The dropdown panel has its own token, `--aparte-select-dropdown-bg`, in both themes.)
|
|
51
|
+
* @cssprop [--aparte-select-border=var(--aparte-border-control)] - Border of the trigger and of the dropdown.
|
|
52
|
+
* @cssprop [--aparte-select-border-hover=var(--aparte-primary)] - Trigger border on hover.
|
|
53
|
+
* @cssprop [--aparte-radius-select=var(--aparte-radius-md)] - Corner radius of the trigger and the dropdown — the theme's knob, beside `--aparte-radius-input` and the others. (It used to exist twice, as this and a private `--aparte-select-radius` with a different value.)
|
|
54
|
+
* @cssprop [--aparte-select-text=var(--aparte-text)] - Colour of the trigger label (and of the options).
|
|
55
|
+
* @cssprop [--aparte-select-chevron=var(--aparte-text-muted)] - Colour of the chevron, which rotates 180° while open.
|
|
56
|
+
* @cssprop [--aparte-select-dropdown-bg=var(--aparte-surface-1)] - Dropdown panel background, in both themes (`--aparte-surface-1` is dark-aware). It used to be read in the light theme only, the dark rule taking the TRIGGER's background instead — so a transparent trigger made the panel see-through in the dark.
|
|
57
|
+
* @cssprop [--aparte-select-shadow=0 1px 3px rgba(0, 0, 0, 0.08), 0 10px 28px rgba(0, 0, 0, 0.16)] - Dropdown panel shadow.
|
|
58
|
+
* @cssprop [--aparte-select-z=var(--aparte-z-dropdown)] - `z-index` of the dropdown. It is `position: fixed`, so this is the one knob that decides whether it lands above the rest of your page.
|
|
56
59
|
*
|
|
57
60
|
* @example
|
|
58
61
|
* <aparte-select placeholder="Pick a model" searchable value="gpt-4o-mini">
|
|
@@ -123,6 +126,14 @@ export declare class AparteSelect extends HTMLElement {
|
|
|
123
126
|
private _visibleOptions;
|
|
124
127
|
/** Move the active (keyboard-highlighted) option by `delta`, clamped. */
|
|
125
128
|
private _moveActive;
|
|
129
|
+
/**
|
|
130
|
+
* The element that holds DOM focus while the list is being driven, and therefore
|
|
131
|
+
* the one that must carry the combobox state a reader follows: the filter field
|
|
132
|
+
* when the select is `searchable` (it is focused on open), the trigger otherwise.
|
|
133
|
+
*/
|
|
134
|
+
private _activeHost;
|
|
135
|
+
/** `aria-expanded` belongs to the combobox — write it wherever the combobox is. */
|
|
136
|
+
private _setExpanded;
|
|
126
137
|
/** Highlight the option at `index` (clamped) and point aria-activedescendant at it. */
|
|
127
138
|
private _setActive;
|
|
128
139
|
/** Clear the keyboard highlight (on close). */
|
|
@@ -132,6 +143,26 @@ export declare class AparteSelect extends HTMLElement {
|
|
|
132
143
|
private _closeDropdown;
|
|
133
144
|
private _updatePosition;
|
|
134
145
|
private _selectOption;
|
|
146
|
+
/**
|
|
147
|
+
* The combobox and its listbox are named by the host's `aria-label`, else by the
|
|
148
|
+
* placeholder — the same rule the first render applies, re-applied whenever the
|
|
149
|
+
* placeholder or the selection changes. Written only when different: the mutation
|
|
150
|
+
* observer watches this subtree.
|
|
151
|
+
*
|
|
152
|
+
* A `combobox` is NAMED by that attribute and VALUED by its visible label span, so
|
|
153
|
+
* the name is the control and nothing else. A `button` — the shape a `searchable`
|
|
154
|
+
* trigger takes, since the filter field is then the combobox — is named by its
|
|
155
|
+
* CONTENT, which this very attribute overrides: the searchable trigger announced
|
|
156
|
+
* "Pick a model, button" and never said which model was selected. So the button's
|
|
157
|
+
* name carries both halves, and drops the second when it would only repeat the
|
|
158
|
+
* first (nothing selected: the value IS the placeholder).
|
|
159
|
+
*/
|
|
160
|
+
private _updateNames;
|
|
161
|
+
/**
|
|
162
|
+
* `disabled` takes the trigger out of the tab order and says so — opacity alone
|
|
163
|
+
* left it focusable and announced as operable. An open dropdown closes.
|
|
164
|
+
*/
|
|
165
|
+
private _applyDisabled;
|
|
135
166
|
private _updateTriggerLabel;
|
|
136
167
|
private _getSelectedLabel;
|
|
137
168
|
private _filterOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-select.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-select.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-select.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-select.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,sBAAsB,CAAC;AAG9B,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACzC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAK;IAC7B,mFAAmF;IACnF,OAAO,CAAC,MAAM,CAAC,WAAW,CAAK;IAE/B,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,YAAY,CAAiC;IACrD,OAAO,CAAC,SAAS,CAAiC;IAGlD;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,uBAAuB,CAAsC;IACrE,OAAO,CAAC,yBAAyB,CAAwC;IACzE,OAAO,CAAC,mBAAmB,CAAkC;IAE7D,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC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appings":"AAWA,OAAO,KAAK,EACR,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/code.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,sBAAsB,CAAC;AAY9B,eAAO,MAAM,YAAY,EAAE,qBAAqB,CAAC,iBAAiB,CA6FjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/error.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/error.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAAC,kBAAkB,CA2CnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thinking.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/thinking.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAa9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"thinking.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/thinking.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAa9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,CAkFzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AA+H9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,CAkNzE,CAAC"}
|
package/dist/types/events.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export interface AparteSendEventDetail {
|
|
|
15
15
|
/** Timestamp of the send action */
|
|
16
16
|
timestamp: number;
|
|
17
17
|
/**
|
|
18
|
-
* ID of the
|
|
19
|
-
*
|
|
18
|
+
* ID of the chat this send belongs to: the composer's `target` attribute, or the id
|
|
19
|
+
* of the `<aparte-chat>` / `[data-aparte-chat]` host above it — the same resolution
|
|
20
|
+
* the composer's receive side (`_isForThisComposer`) uses, so the two halves of the
|
|
21
|
+
* channel cannot disagree about which chat is which.
|
|
20
22
|
* Used by AparteClient to find the host without DOM traversal.
|
|
21
23
|
*/
|
|
22
24
|
targetId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/C;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IAClC,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAEhB,mCAAmC;IACnC,S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;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,GAAG,WAAW,CAAC;IAC/D,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,6BAA6B;IAC1C,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD;;;;;;;GAOG;AACH,MAAM,WAAW,kCAAkC;IAC/C,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;CAChB;AAGD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mCAAmC;IAChD,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparte/core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.9",
|
|
4
4
|
"homepage": "https://apartejs.dev/",
|
|
5
5
|
"description": "AI chat in Web Components, with the agent loop inside — zero third-party dependencies",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"node": ">=18"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aparte/engine": "0.16.
|
|
56
|
+
"@aparte/engine": "0.16.9"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|