@aparte/core 1.3.0 → 1.5.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.
@@ -72,6 +72,10 @@ import '../elicitation/aparte-elicitation.js';
72
72
  * @attr {boolean} submit-on-enter - Forwarded to the composer by value: `submit-on-enter="false"`
73
73
  * makes Enter break the line and Shift+Enter send (the bare attribute, or none, keeps the
74
74
  * default — Enter sends). The four wrappers expose the same switch as `submitOnEnter`.
75
+ * @attr {'chat'|'page'|'off'} type-to-focus - Forwarded to the composer: a key typed while no
76
+ * field has the caret returns to the input. `chat` (the default): only after a click or a
77
+ * selection in the chat. `page`: from anywhere in the page. `off`: never. The four wrappers
78
+ * expose it as `typeToFocus`.
75
79
  * @attr {boolean} center-empty - Center the composer as a welcome state until the first message, then slide to the normal layout
76
80
  * @attr {boolean} data-empty - Reflected BY the element while its viewport holds no
77
81
  * `<aparte-chat-bubble>` and is not `loading` — set again when the conversation is cleared.
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/aparte-chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,sCAAsC,CAAC;AAM9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmHG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,SAAS,CAAiC;IAClD,OAAO,CAAC,gBAAgB,CAAiC;IACzD,OAAO,CAAC,SAAS,CAA6B;IAC9C,sFAAsF;IACtF,OAAO,CAAC,cAAc,CAAiC;IACvD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AAE,CAExC;IAED,OAAO,CAAC,SAAS,CAAiC;IAClD,OAAO,CAAC,gBAAgB,CAAiC;IACzD,OAAO,CAAC,SAAS,CAA6B;IAC9C,sFAAsF;IACtF,OAAO,CAAC,cAAc,CAAiC;IACvD,4EAA4E;IAC5E,OAAO,CAAC,MAAM,CAAS;IACvB,mFAAmF;IACnF,OAAO,CAAC,SAAS,CAAS;IAE1B;;;;OAIG;IACH,OAAO,CAAC,UAAU,CAAS;IAE3B,iBAAiB,IAAI,IAAI;IAazB,oBAAoB,IAAI,IAAI;IAW5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IA4B9F,6EAA6E;IAC7E,IAAI,QAAQ,IAAI,kBAAkB,GAAG,IAAI,CAExC;IAED,qEAAqE;IACrE,IAAI,QAAQ,IAAI,cAAc,GAAG,IAAI,CAEpC;IAED,OAAO,CAAC,OAAO;IAoDf;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAuBxB,6EAA6E;IAC7E,OAAO,CAAC,YAAY;IAKpB;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAcvB;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAiBzB;;;;OAIG;IACH,OAAO,CAAC,YAAY;CAKrB"}
@@ -132,6 +132,11 @@ export interface AparteComposerChangeEventDetail {
132
132
  * @attr {boolean} submit-on-enter - Enter sends and Shift+Enter breaks the line (the
133
133
  * default); set it to the string `"false"` to swap them. Read lazily by the
134
134
  * `submitOnEnter` getter rather than observed.
135
+ * @attr {'chat'|'page'|'off'} type-to-focus - A key typed while no field has the caret
136
+ * returns to the input. `chat` (the default): only after a click or a selection in the
137
+ * chat, so the page around an embedded chat keeps its own keys. `page`: from anywhere in
138
+ * the page, for an app whose page is the chat. `off`: never. Read at every key rather
139
+ * than observed.
135
140
  * @attr {boolean} data-panel-active - Reflected BY the element while a panel (an elicitation, an
136
141
  * approval) is mounted inside it; the shipped stylesheet keys off it. Read-only.
137
142
  * @attr {string} data-panel-mode - Reflected BY the element while a panel is active: what the send
@@ -243,6 +248,8 @@ export declare class AparteComposer extends HTMLElement {
243
248
  */
244
249
  private _applyDirection;
245
250
  static get observedAttributes(): string[];
251
+ /** Stops the document listeners of `type-to-focus`; null while disconnected. */
252
+ private _offTypeToFocus;
246
253
  connectedCallback(): void;
247
254
  disconnectedCallback(): void;
248
255
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-composer.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAiBxD,MAAM,WAAW,sBAAsB;IACnC,cAAc,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,kBAAkB,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3C,iBAAiB,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IACzC,oBAAoB,EAAE;QAAE,WAAW,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IAC9C,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC,cAAc,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,uBAAuB,CAAA;KAAE,CAAC;CAC9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C,GAAG,IAAI;IAa5F,gGAAgG;IAChG,GAAG,CAAC,CAAC,SAAS,uBAAuB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI;IAQ9G;;mFAE+E;IAC/E,OAAO,CAAC,kBAAkB;IAK1B;;;;;;;;;;;;;OAaG;IACH;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,YAAY;IAapB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAAuB;IAElD;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,kBAAkB;CAQ7B"}
@@ -1,5 +1,6 @@
1
1
  export { AparteComposer } from './aparte-composer.js';
2
2
  export type { AparteComposerEventMap, AparteComposerEventType, AparteComposerState, AparteComposerChangeEventDetail, AparteComposerPanelMode, } from './aparte-composer.js';
3
+ export type { AparteTypeToFocus } from './type-to-focus.js';
3
4
  export { AparteComposerInput } from './aparte-composer-input.js';
4
5
  export { AparteComposerSend } from './aparte-composer-send.js';
5
6
  export { AparteComposerCancel } from './aparte-composer-cancel.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EACR,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,+BAA+B,EAC/B,uBAAuB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EACR,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,+BAA+B,EAC/B,uBAAuB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A key typed in the chat returns to the input.
3
+ *
4
+ * Selecting a few words of a reply to copy them takes the caret out of the input, and the
5
+ * next letters typed went nowhere. The composer takes the caret back on the first key that
6
+ * writes something. It only moves the focus: the key is never cancelled, so the browser
7
+ * writes the character in the input the keydown just focused.
8
+ *
9
+ * Three settings, on the composer's `type-to-focus` attribute, read at every key:
10
+ * - `chat` (the default): only when the person was last IN the chat — the focus is on
11
+ * something of the chat that is not a field, or it is nowhere and the last pointer went
12
+ * down in the chat. An embedded chat never takes a key from the page around it.
13
+ * - `page`: from anywhere in the page, as long as no field has the focus. For an app whose
14
+ * page IS the chat.
15
+ * - `off`: never.
16
+ *
17
+ * Never from a field (an input, a textarea, a select, an editable region, a listbox, a
18
+ * menu…): that key is the field's. Never a shortcut, a key that writes nothing, a key
19
+ * something else already handled, or a key of a composition under way. An input that is
20
+ * hidden (a panel took its place, the launcher is closed) cannot take the focus, so nothing
21
+ * moves there either: `display: none` is what hides it.
22
+ */
23
+ export type AparteTypeToFocus = 'chat' | 'page' | 'off';
24
+ /**
25
+ * Listen for the composer; the function returned stops listening. The chat a composer
26
+ * answers for is the one it sits in, else the one its `target` names, and always itself.
27
+ */
28
+ export declare function installTypeToFocus(composer: HTMLElement): () => void;
29
+ //# sourceMappingURL=type-to-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-to-focus.d.ts","sourceRoot":"","sources":["../../../src/components/composer/type-to-focus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAqCxD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,IAAI,CAuCpE"}
@@ -11,6 +11,11 @@ export interface AparteConversationListItem {
11
11
  }
12
12
  export interface AparteConversationSelectDetail {
13
13
  id: string;
14
+ /**
15
+ * The id of the chat the list drives, its `target`, when it has one: the conversation
16
+ * opens in that chat alone. Without it, in every chat of the page.
17
+ */
18
+ targetId?: string;
14
19
  }
15
20
  export interface AparteConversationDeleteDetail {
16
21
  id: string;
@@ -88,6 +93,12 @@ export interface AparteConversationStatusDetail {
88
93
  * `setConversationManager()`, instead of leaving you six listeners to write. The
89
94
  * event still fires first, and `preventDefault()` on it takes the gesture back.
90
95
  * Off by default, and selecting stays yours either way.
96
+ * @attr {string} target - The id of the chat this list drives, for a page with more than one chat
97
+ * or a list placed beside its chat: a row's click then opens the conversation
98
+ * in that chat alone (`targetId` in `aparte-conversation-select`), and `manage`
99
+ * acts on that chat's conversation manager. Read at every gesture rather than
100
+ * observed. Without it, a click is for every chat of the page, and `manage`
101
+ * finds the manager where the list sits.
91
102
  *
92
103
  * @fires {CustomEvent<AparteConversationSelectDetail>} aparte-conversation-select - A row's title was activated; the host loads that conversation.
93
104
  * @fires {CustomEvent<AparteConversationRenameDetail>} aparte-conversation-rename - A rename was committed with a new, non-empty title. Cancelable: `preventDefault()` takes the gesture back from `manage`.
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AASA,OAAO,EAIH,KAAK,wBAAwB,EAChC,MAAM,4CAA4C,CAAC;AAGpD,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,YAAY,EAAE,wBAAwB,EAAE,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC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AAE,MAAM,GAAG,MAAM;IAK7B,OAAO,CAAC,YAAY;IA0BpB,OAAO,CAAC,EAAE;IAKV;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IA6Cf,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IA2CnB,OAAO,CAAC,WAAW;IAkBnB,2FAA2F;IAC3F,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,SAAS;IAsBjB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,UAAU;IAelB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,oBAAoB,CAE1B;IAEF,OAAO,CAAC,sBAAsB,CAW5B;IAEF,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,WAAW,CAWjB;IAEF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO;IAwBf,OAAO,CAAC,aAAa;IAsGrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IA6BtB,OAAO,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA4Bd;IAEF,OAAO,CAAC,UAAU,CAYhB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
@@ -4,7 +4,7 @@ export type { SyncableBubble } from './bubble/index.js';
4
4
  export { AparteChatStatus } from './status/index.js';
5
5
  export { AparteChatViewport } from './viewport/index.js';
6
6
  export { AparteComposer, AparteComposerInput, AparteComposerSend, AparteComposerCancel, AparteComposerAttachments, AparteComposerAddAttachment, AparteComposerAction, AparteComposerToolbar } from './composer/index.js';
7
- export type { AparteComposerEventMap, AparteComposerEventType, AparteComposerState, AparteComposerChangeEventDetail, AparteComposerPanelMode, AparteActionClickEventDetail } from './composer/index.js';
7
+ export type { AparteComposerEventMap, AparteComposerEventType, AparteComposerState, AparteComposerChangeEventDetail, AparteComposerPanelMode, AparteTypeToFocus, AparteActionClickEventDetail } from './composer/index.js';
8
8
  export { AparteConversationList } from './conversation-list/index.js';
9
9
  export type { AparteConversationListItem, AparteConversationSelectDetail, AparteConversationDeleteDetail, AparteConversationArchiveDetail, AparteConversationPinDetail, AparteConversationRenameDetail, AparteConversationStatus, AparteConversationStatusDetail } from './conversation-list/index.js';
10
10
  export { AparteSuggestions, setupSuggestionBlocks, SUGGESTIONS_BLOCK_LANGUAGE } from './suggestions/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzN,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAGxM,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAGvS,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,C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,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAG3N,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAGvS,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC9G,YAAY,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAG5F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGhG,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGpE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC"}
@@ -300,6 +300,8 @@ export declare class AparteLauncher extends HTMLElement {
300
300
  * leaves the key to the dialog, which is the answer that loses nothing.
301
301
  */
302
302
  private _inModalDialog;
303
+ /** A sidebar open as a drawer inside the card: Escape closes it before it closes the chat. */
304
+ private _drawerOpen;
303
305
  private _onKeydown;
304
306
  }
305
307
  //# sourceMappingURL=aparte-launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-launcher.d.ts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ACzF,OAAO,CAAC,OAAO;IAOf;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAMnB;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO;IAKf;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAInB;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IA0BrB,mFAAmF;IACnF,OAAO,CAAC,MAAM,CAAC,MAAM;IAUrB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAM5B,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,aAAa;IAO5B,4FAA4F;IAC5F,OAAO,CAAC,MAAM,CAAC,KAAK;IAMpB,OAAO,CAAC,YAAY;IAiCpB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAmCrB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,cAAc,CAAiE;IAEvF,+FAA+F;IAC/F,OAAO,CAAC,gBAAgB;IAaxB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAanB,sFAAsF;IACtF,OAAO,CAAC,WAAW;IAKnB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAWd;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAUtB,8FAA8F;IAC9F,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU,CAoChB;CACL"}
@@ -1,7 +1,7 @@
1
1
  /** Detail of `aparte-sidebar-toggle`: the state just entered. */
2
2
  export interface AparteSidebarToggleDetail {
3
3
  collapsed: boolean;
4
- /** True while the sidebar is a drawer — the window is under the breakpoint. */
4
+ /** True while the sidebar is a drawer: the window is under the breakpoint, or it is in a floating chat's card. */
5
5
  drawer: boolean;
6
6
  }
7
7
  /**
@@ -18,7 +18,8 @@ export interface AparteSidebarToggleDetail {
18
18
  *
19
19
  * **Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read
20
20
  * it and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on
21
- * the page toggles the nearest sidebar (or the one whose id the attribute names), so
21
+ * the page toggles its sidebar: the one it is in, else the one of the `.aparte-app-shell`
22
+ * it is in, else the first of the page (or the one whose id the attribute names). So
22
23
  * a hamburger in the header needs no script — and the sidebar keeps `aria-expanded`
23
24
  * and `aria-controls` on that control in step, whoever changed the state (it gives
24
25
  * itself an id when the host wrote none). `aparte-sidebar-toggle` fires on every
@@ -33,6 +34,14 @@ export interface AparteSidebarToggleDetail {
33
34
  * get away with. Collapsed — folded as a column or slid off as a drawer — it carries
34
35
  * `inert` and `aria-hidden`, so nothing invisible keeps a tab stop.
35
36
  *
37
+ * **In the floating chat.** Inside `<aparte-launcher>` the chat is a card a few hundred pixels
38
+ * wide in the widest window, so a sidebar that is the direct child of the card's
39
+ * `.aparte-app-shell` follows the chat and not the window: a drawer in the card, held by the
40
+ * shell, whose scrim covers the card and not the page; a column again once the chat fills the
41
+ * window (maximized, unless `maximizable="panel"`, which is still narrow); and closed when the
42
+ * chat closes. `breakpoint="none"` keeps it a column there too. Anywhere else in a card it
43
+ * follows the window, as it does on a page.
44
+ *
36
45
  * **Search.** An input carrying `data-aparte-sidebar-search` filters the conversation
37
46
  * list below it by title as the user types — rows that do not match are hidden, and a
38
47
  * date group with nothing left hides with them. Client-side, on the titles the list
@@ -41,8 +50,8 @@ export interface AparteSidebarToggleDetail {
41
50
  * @element aparte-sidebar
42
51
  *
43
52
  * @attr {boolean} collapsed - Hidden (in the flow) or closed (as a drawer). Reflected; set it to start closed.
44
- * @attr {string} breakpoint - The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does.
45
- * @attr {boolean} data-drawer - Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it). Read-only.
53
+ * @attr {string} breakpoint - The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does, in a floating chat's card included.
54
+ * @attr {boolean} data-drawer - Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it), and in the card of an `<aparte-launcher>` when it is the direct child of the card's `.aparte-app-shell`. Read-only.
46
55
  *
47
56
  * @fires {CustomEvent<AparteSidebarToggleDetail>} aparte-sidebar-toggle - The sidebar opened or closed, by a toggle, by Escape, by a click on the scrim or by `collapsed` being set. Bubbles.
48
57
  *
@@ -117,6 +126,9 @@ export declare class AparteSidebar extends HTMLElement {
117
126
  private _hostIntentSeeded;
118
127
  /** Raised around `_applyDrawer`'s own writes, so the breakpoint is never read as a host's intent. */
119
128
  private _auto;
129
+ /** The floating chat this sidebar is in, if any: its size decides the drawer, not the window's. */
130
+ private _launcher;
131
+ private _launcherWatch;
120
132
  /**
121
133
  * The element wrote `inert`/`aria-hidden` and may take them back. A host that inerts
122
134
  * the sidebar behind its own modal wrote them itself, and `_syncHidden` runs on every
@@ -131,7 +143,7 @@ export declare class AparteSidebar extends HTMLElement {
131
143
  /** Whether the sidebar is collapsed (hidden in the flow, or closed as a drawer). */
132
144
  get collapsed(): boolean;
133
145
  set collapsed(value: boolean);
134
- /** True while the window is under the breakpoint and the sidebar is a drawer. */
146
+ /** True while the sidebar is a drawer: the window is under the breakpoint, or it is in a floating chat's card. */
135
147
  get drawer(): boolean;
136
148
  connectedCallback(): void;
137
149
  /**
@@ -140,6 +152,31 @@ export declare class AparteSidebar extends HTMLElement {
140
152
  * a narrow host that has room for it wants, and a documentation frame needs.
141
153
  */
142
154
  private _watchBreakpoint;
155
+ /**
156
+ * A drawer under the window's breakpoint, and in the card of a floating chat whatever
157
+ * the window: the card is narrow in the widest one. `breakpoint="none"` is the host's
158
+ * word for a column at any width, and it holds in a card too.
159
+ */
160
+ private _wantsDrawer;
161
+ /**
162
+ * In a floating chat that does not fill the window: its card, or the panel
163
+ * `maximizable="panel"` runs along the window's edge, which is as narrow. Only as the
164
+ * child of the card's shell, which is what holds the drawer there: anywhere else in a
165
+ * card a drawer is fixed to the window, and one forced on a wide window would open over
166
+ * the page the chat floats on.
167
+ */
168
+ private _inCard;
169
+ /**
170
+ * The floating chat opened, closed or changed size. Its size decides the drawer, and a
171
+ * drawer does not outlive the chat it is in: left open under a closed chat it would still
172
+ * answer Escape for the whole page, and stand over the chat when it opens again.
173
+ */
174
+ private _followLauncher;
175
+ /**
176
+ * The shell the scrim covers in a floating chat, when the sidebar is that shell's own
177
+ * child: the stylesheet positions the drawer against it there (`sidebar.css`).
178
+ */
179
+ private _cardShell;
143
180
  disconnectedCallback(): void;
144
181
  attributeChangedCallback(name: string): void;
145
182
  /** Open the sidebar. `opener` is the control to hand the focus back to when it closes. */
@@ -1 +1 @@
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,qGAAq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AO;IAMf;;;;OAIG;IACH,OAAO,CAAC,eAAe;IASvB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAKlB,oBAAoB,IAAI,IAAI;IAkB5B,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,CAAsD;IAE5E;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAmBpB;;;;;;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;IAuBlB,OAAO,CAAC,UAAU,CAoChB;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"}
@@ -1425,6 +1425,14 @@
1425
1425
  "module": "./components/index.js"
1426
1426
  }
1427
1427
  },
1428
+ {
1429
+ "kind": "js",
1430
+ "name": "AparteTypeToFocus",
1431
+ "declaration": {
1432
+ "name": "AparteTypeToFocus",
1433
+ "module": "./components/index.js"
1434
+ }
1435
+ },
1428
1436
  {
1429
1437
  "kind": "js",
1430
1438
  "name": "AparteActionClickEventDetail",
@@ -4267,6 +4275,14 @@
4267
4275
  "module": "./components/index.js"
4268
4276
  }
4269
4277
  },
4278
+ {
4279
+ "kind": "js",
4280
+ "name": "AparteTypeToFocus",
4281
+ "declaration": {
4282
+ "name": "AparteTypeToFocus",
4283
+ "module": "./components/index.js"
4284
+ }
4285
+ },
4270
4286
  {
4271
4287
  "kind": "js",
4272
4288
  "name": "AparteActionClickEventDetail",
@@ -7506,6 +7522,14 @@
7506
7522
  "module": "./composer/index.js"
7507
7523
  }
7508
7524
  },
7525
+ {
7526
+ "kind": "js",
7527
+ "name": "AparteTypeToFocus",
7528
+ "declaration": {
7529
+ "name": "AparteTypeToFocus",
7530
+ "module": "./composer/index.js"
7531
+ }
7532
+ },
7509
7533
  {
7510
7534
  "kind": "js",
7511
7535
  "name": "AparteActionClickEventDetail",
@@ -24796,6 +24820,13 @@
24796
24820
  },
24797
24821
  "description": "Add the file picker + chips strip to the default composition (opt-in: the host must consume the files — an `AparteClient` does, a hand-rolled loop must read `event.detail.files`)"
24798
24822
  },
24823
+ {
24824
+ "name": "type-to-focus",
24825
+ "type": {
24826
+ "text": "'chat'|'page'|'off'"
24827
+ },
24828
+ "description": "Forwarded to the composer: a key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat. `page`: from anywhere in the page. `off`: never. The four wrappers expose it as `typeToFocus`."
24829
+ },
24799
24830
  {
24800
24831
  "type": {
24801
24832
  "text": "boolean"
@@ -26864,6 +26895,16 @@
26864
26895
  },
26865
26896
  "description": "Mirror `locale.direction` onto ourselves, so everything inside — input, buttons,\nthe toolbar row and whatever the consumer put in it — inherits it.\n\nWithout it an RTL locale flips the conversation and leaves the composer\nleft-to-right. It is also what makes the toolbar's placement idiom real:\n`margin-inline-start: auto` in a subtree that inherits no direction is just\n`margin-left`.\n\nOne attribute on the host rather than a stamp per child: inheritance is the\nmechanism, so nothing needs to know about the consumer's markup."
26866
26897
  },
26898
+ {
26899
+ "kind": "field",
26900
+ "name": "_offTypeToFocus",
26901
+ "type": {
26902
+ "text": "(() => void) | null"
26903
+ },
26904
+ "privacy": "private",
26905
+ "default": "null",
26906
+ "description": "Stops the document listeners of `type-to-focus`; null while disconnected."
26907
+ },
26867
26908
  {
26868
26909
  "kind": "field",
26869
26910
  "name": "value",
@@ -27405,6 +27446,13 @@
27405
27446
  "description": "Enter sends and Shift+Enter breaks the line (the default); set it to the string `\"false\"` to swap them. Read lazily by the `submitOnEnter` getter rather than observed.",
27406
27447
  "name": "submit-on-enter"
27407
27448
  },
27449
+ {
27450
+ "type": {
27451
+ "text": "'chat'|'page'|'off'"
27452
+ },
27453
+ "description": "A key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat, so the page around an embedded chat keeps its own keys. `page`: from anywhere in the page, for an app whose page is the chat. `off`: never. Read at every key rather than observed.",
27454
+ "name": "type-to-focus"
27455
+ },
27408
27456
  {
27409
27457
  "type": {
27410
27458
  "text": "boolean"
@@ -27705,6 +27753,14 @@
27705
27753
  "module": "./aparte-composer.js"
27706
27754
  }
27707
27755
  },
27756
+ {
27757
+ "kind": "js",
27758
+ "name": "AparteTypeToFocus",
27759
+ "declaration": {
27760
+ "name": "AparteTypeToFocus",
27761
+ "module": "./type-to-focus.js"
27762
+ }
27763
+ },
27708
27764
  {
27709
27765
  "kind": "js",
27710
27766
  "name": "AparteComposerInput",
@@ -27771,6 +27827,40 @@
27771
27827
  }
27772
27828
  ]
27773
27829
  },
27830
+ {
27831
+ "kind": "javascript-module",
27832
+ "path": "src/components/composer/type-to-focus.ts",
27833
+ "declarations": [
27834
+ {
27835
+ "kind": "function",
27836
+ "name": "installTypeToFocus",
27837
+ "return": {
27838
+ "type": {
27839
+ "text": "() => void"
27840
+ }
27841
+ },
27842
+ "parameters": [
27843
+ {
27844
+ "name": "composer",
27845
+ "type": {
27846
+ "text": "HTMLElement"
27847
+ }
27848
+ }
27849
+ ],
27850
+ "description": "Listen for the composer; the function returned stops listening. The chat a composer\nanswers for is the one it sits in, else the one its `target` names, and always itself."
27851
+ }
27852
+ ],
27853
+ "exports": [
27854
+ {
27855
+ "kind": "js",
27856
+ "name": "installTypeToFocus",
27857
+ "declaration": {
27858
+ "name": "installTypeToFocus",
27859
+ "module": "src/components/composer/type-to-focus.ts"
27860
+ }
27861
+ }
27862
+ ]
27863
+ },
27774
27864
  {
27775
27865
  "kind": "javascript-module",
27776
27866
  "path": "src/components/context/aparte-context.ts",
@@ -29163,6 +29253,13 @@
29163
29253
  },
29164
29254
  "description": "Reflected BY the element while `filter()` holds a query no title matches. Read-only.",
29165
29255
  "name": "data-no-match"
29256
+ },
29257
+ {
29258
+ "type": {
29259
+ "text": "string"
29260
+ },
29261
+ "description": "The id of the chat this list drives, for a page with more than one chat or a list placed beside its chat: a row's click then opens the conversation in that chat alone (`targetId` in `aparte-conversation-select`), and `manage` acts on that chat's conversation manager. Read at every gesture rather than observed. Without it, a click is for every chat of the page, and `manage` finds the manager where the list sits.",
29262
+ "name": "target"
29166
29263
  }
29167
29264
  ],
29168
29265
  "superclass": {
@@ -30197,6 +30294,17 @@
30197
30294
  ],
30198
30295
  "description": "A modal dialog open inside the card, with the key pressed inside it. The browser\ncloses it on Escape — unless the keydown was cancelled, which is what closing the\nlauncher would do: the dialog refused its close request and the card hidden under it.\nAn engine that cannot tell a modal dialog from one opened with `show()` (no `:modal`)\nleaves the key to the dialog, which is the answer that loses nothing."
30199
30296
  },
30297
+ {
30298
+ "kind": "method",
30299
+ "name": "_drawerOpen",
30300
+ "privacy": "private",
30301
+ "return": {
30302
+ "type": {
30303
+ "text": "boolean"
30304
+ }
30305
+ },
30306
+ "description": "A sidebar open as a drawer inside the card: Escape closes it before it closes the chat."
30307
+ },
30200
30308
  {
30201
30309
  "kind": "field",
30202
30310
  "name": "_onKeydown",
@@ -31277,7 +31385,7 @@
31277
31385
  "declarations": [
31278
31386
  {
31279
31387
  "kind": "class",
31280
- "description": "The column beside the chat — conversations, a new-chat button, a search field, an\naccount row — as an element, because it has behaviour: it collapses, it becomes a\ndrawer on a narrow window, and its search field filters the conversation list.\n\nWhat it does NOT own is its content. Children are yours, in the order you want them:\na `.aparte-sidebar__header`, a `.aparte-sidebar__search`, a `.aparte-sidebar__body`\nholding the `<aparte-conversation-list>`, a `.aparte-sidebar__footer`. The\nstylesheet lays those out and draws nothing you did not put there — the recipe\n(`.aparte-sidebar`, in `styles/shell/sidebar.css`) is the look, this element is\nthe three behaviours.\n\n**Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read\nit and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on\nthe page toggles the nearest sidebar (or the one whose id the attribute names), so\na hamburger in the header needs no script — and the sidebar keeps `aria-expanded`\nand `aria-controls` on that control in step, whoever changed the state (it gives\nitself an id when the host wrote none). `aparte-sidebar-toggle` fires on every\nchange, whoever caused it.\n\n**Drawer.** Under 48rem of window the sidebar leaves the flow and slides over the\npage (`data-drawer`, set by the element from a media query); open, it draws a\nscrim, moves the focus to its first focusable child, closes on Escape from anywhere\non the page or on a click outside, and hands the focus back to the control that\nopened it. Nothing here is a portal: the drawer is the same element in the same\nplace, positioned fixed, which is all a sidebar needs and what a dialog would not\nget away with. Collapsed — folded as a column or slid off as a drawer — it carries\n`inert` and `aria-hidden`, so nothing invisible keeps a tab stop.\n\n**Search.** An input carrying `data-aparte-sidebar-search` filters the conversation\nlist below it by title as the user types — rows that do not match are hidden, and a\ndate group with nothing left hides with them. Client-side, on the titles the list\nalready has: an index over message bodies is the storage adapter's business.",
31388
+ "description": "The column beside the chat — conversations, a new-chat button, a search field, an\naccount row — as an element, because it has behaviour: it collapses, it becomes a\ndrawer on a narrow window, and its search field filters the conversation list.\n\nWhat it does NOT own is its content. Children are yours, in the order you want them:\na `.aparte-sidebar__header`, a `.aparte-sidebar__search`, a `.aparte-sidebar__body`\nholding the `<aparte-conversation-list>`, a `.aparte-sidebar__footer`. The\nstylesheet lays those out and draws nothing you did not put there — the recipe\n(`.aparte-sidebar`, in `styles/shell/sidebar.css`) is the look, this element is\nthe three behaviours.\n\n**Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read\nit and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on\nthe page toggles its sidebar: the one it is in, else the one of the `.aparte-app-shell`\nit is in, else the first of the page (or the one whose id the attribute names). So\na hamburger in the header needs no script — and the sidebar keeps `aria-expanded`\nand `aria-controls` on that control in step, whoever changed the state (it gives\nitself an id when the host wrote none). `aparte-sidebar-toggle` fires on every\nchange, whoever caused it.\n\n**Drawer.** Under 48rem of window the sidebar leaves the flow and slides over the\npage (`data-drawer`, set by the element from a media query); open, it draws a\nscrim, moves the focus to its first focusable child, closes on Escape from anywhere\non the page or on a click outside, and hands the focus back to the control that\nopened it. Nothing here is a portal: the drawer is the same element in the same\nplace, positioned fixed, which is all a sidebar needs and what a dialog would not\nget away with. Collapsed — folded as a column or slid off as a drawer — it carries\n`inert` and `aria-hidden`, so nothing invisible keeps a tab stop.\n\n**In the floating chat.** Inside `<aparte-launcher>` the chat is a card a few hundred pixels\nwide in the widest window, so a sidebar that is the direct child of the card's\n`.aparte-app-shell` follows the chat and not the window: a drawer in the card, held by the\nshell, whose scrim covers the card and not the page; a column again once the chat fills the\nwindow (maximized, unless `maximizable=\"panel\"`, which is still narrow); and closed when the\nchat closes. `breakpoint=\"none\"` keeps it a column there too. Anywhere else in a card it\nfollows the window, as it does on a page.\n\n**Search.** An input carrying `data-aparte-sidebar-search` filters the conversation\nlist below it by title as the user types — rows that do not match are hidden, and a\ndate group with nothing left hides with them. Client-side, on the titles the list\nalready has: an index over message bodies is the storage adapter's business.",
31281
31389
  "name": "AparteSidebar",
31282
31390
  "cssProperties": [
31283
31391
  {
@@ -31374,6 +31482,25 @@
31374
31482
  "default": "false",
31375
31483
  "description": "Raised around `_applyDrawer`'s own writes, so the breakpoint is never read as a host's intent."
31376
31484
  },
31485
+ {
31486
+ "kind": "field",
31487
+ "name": "_launcher",
31488
+ "type": {
31489
+ "text": "Element | null"
31490
+ },
31491
+ "privacy": "private",
31492
+ "default": "null",
31493
+ "description": "The floating chat this sidebar is in, if any: its size decides the drawer, not the window's."
31494
+ },
31495
+ {
31496
+ "kind": "field",
31497
+ "name": "_launcherWatch",
31498
+ "type": {
31499
+ "text": "MutationObserver | null"
31500
+ },
31501
+ "privacy": "private",
31502
+ "default": "null"
31503
+ },
31377
31504
  {
31378
31505
  "kind": "field",
31379
31506
  "name": "_ownHidden",
@@ -31418,7 +31545,7 @@
31418
31545
  "type": {
31419
31546
  "text": "boolean"
31420
31547
  },
31421
- "description": "True while the window is under the breakpoint and the sidebar is a drawer.",
31548
+ "description": "True while the sidebar is a drawer: the window is under the breakpoint, or it is in a floating chat's card.",
31422
31549
  "readonly": true
31423
31550
  },
31424
31551
  {
@@ -31432,6 +31559,50 @@
31432
31559
  },
31433
31560
  "description": "The drawer's media query, from the `breakpoint` attribute: a length (`48rem`, the\ndefault, or `640px`), or `none` for a column that never becomes a drawer — which\na narrow host that has room for it wants, and a documentation frame needs."
31434
31561
  },
31562
+ {
31563
+ "kind": "method",
31564
+ "name": "_wantsDrawer",
31565
+ "privacy": "private",
31566
+ "return": {
31567
+ "type": {
31568
+ "text": "boolean"
31569
+ }
31570
+ },
31571
+ "description": "A drawer under the window's breakpoint, and in the card of a floating chat whatever\nthe window: the card is narrow in the widest one. `breakpoint=\"none\"` is the host's\nword for a column at any width, and it holds in a card too."
31572
+ },
31573
+ {
31574
+ "kind": "method",
31575
+ "name": "_inCard",
31576
+ "privacy": "private",
31577
+ "return": {
31578
+ "type": {
31579
+ "text": "boolean"
31580
+ }
31581
+ },
31582
+ "description": "In a floating chat that does not fill the window: its card, or the panel\n`maximizable=\"panel\"` runs along the window's edge, which is as narrow. Only as the\nchild of the card's shell, which is what holds the drawer there: anywhere else in a\ncard a drawer is fixed to the window, and one forced on a wide window would open over\nthe page the chat floats on."
31583
+ },
31584
+ {
31585
+ "kind": "method",
31586
+ "name": "_followLauncher",
31587
+ "privacy": "private",
31588
+ "return": {
31589
+ "type": {
31590
+ "text": "void"
31591
+ }
31592
+ },
31593
+ "description": "The floating chat opened, closed or changed size. Its size decides the drawer, and a\ndrawer does not outlive the chat it is in: left open under a closed chat it would still\nanswer Escape for the whole page, and stand over the chat when it opens again."
31594
+ },
31595
+ {
31596
+ "kind": "method",
31597
+ "name": "_cardShell",
31598
+ "privacy": "private",
31599
+ "return": {
31600
+ "type": {
31601
+ "text": "Element | null"
31602
+ }
31603
+ },
31604
+ "description": "The shell the scrim covers in a floating chat, when the sidebar is that shell's own\nchild: the stylesheet positions the drawer against it there (`sidebar.css`)."
31605
+ },
31435
31606
  {
31436
31607
  "kind": "method",
31437
31608
  "name": "open",
@@ -31657,13 +31828,13 @@
31657
31828
  "type": {
31658
31829
  "text": "string"
31659
31830
  },
31660
- "description": "The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does."
31831
+ "description": "The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does, in a floating chat's card included."
31661
31832
  },
31662
31833
  {
31663
31834
  "type": {
31664
31835
  "text": "boolean"
31665
31836
  },
31666
- "description": "Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it). Read-only.",
31837
+ "description": "Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it), and in the card of an `<aparte-launcher>` when it is the direct child of the card's `.aparte-app-shell`. Read-only.",
31667
31838
  "name": "data-drawer"
31668
31839
  }
31669
31840
  ],