@aparte/core 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,12 @@ export interface AparteConversationListItem {
22
22
  /** What `renderMeta` is: an element, text, or `null` for a row with nothing to say. */
23
23
  export type AparteConversationMetaRenderer = (item: AparteConversationListItem) => HTMLElement | string | null;
24
24
  export interface AparteConversationSelectDetail {
25
- id: string;
25
+ /**
26
+ * The conversation to open, or `null` for a new conversation. The list sends a row's id; a
27
+ * New chat button of the app's own sends `{ id: null }` on `window`, and the chats bound to
28
+ * a manager start a new conversation for it.
29
+ */
30
+ id: string | null;
26
31
  /**
27
32
  * The id of the chat the list drives, its `target`, when it has one: the conversation
28
33
  * opens in that chat alone. Without it, in every chat of the page.
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AAUA,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;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C;AAED,uFAAuF;AACvF,MAAM,MAAM,8BAA8B,GAAG,CAAC,IAAI,EAAE,0BAA0B,KAAK,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AAE/G,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,QAAQ,CAAC,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AAC,YAAY;IA0BpB,OAAO,CAAC,EAAE;IAKV;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAyDf,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IA2CnB,OAAO,CAAC,WAAW;IAkBnB,2FAA2F;IAC3F,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,cAAc;IActB,+EAA+E;IAC/E,OAAO,CAAC,QAAQ;IAOhB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IAajB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAkClB,mFAAmF;IACnF,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAatB;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO;IAwBf;;;OAGG;IACH,OAAO,CAAC,aAAa;IAkGrB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA0Bd;IAEF,OAAO,CAAC,UAAU,CAchB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
1
+ {"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AAUA,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;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QAAE,GAA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Q,CAAS;IACzB,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,QAAQ,CAKd;IAEF,OAAO,CAAC,UAAU,CAUhB;IAEF,wGAAwG;IACxG,OAAO,CAAC,SAAS,CAAuB;IAExC,OAAO,CAAC,OAAO;IAsGf,2FAA2F;IAC3F,OAAO,CAAC,MAAM,CAAM;IAEpB;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAK7B,OAAO,CAAC,YAAY;IA0BpB,OAAO,CAAC,EAAE;IAKV;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAyDf,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IA2CnB,OAAO,CAAC,WAAW;IAkBnB,2FAA2F;IAC3F,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,cAAc;IActB,+EAA+E;IAC/E,OAAO,CAAC,QAAQ;IAOhB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IAajB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAkClB,mFAAmF;IACnF,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAatB;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO;IAwBf;;;OAGG;IACH,OAAO,CAAC,aAAa;IAkGrB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA0Bd;IAEF,OAAO,CAAC,UAAU,CAchB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
@@ -34566,250 +34566,6 @@
34566
34566
  }
34567
34567
  ]
34568
34568
  },
34569
- {
34570
- "kind": "javascript-module",
34571
- "path": "src/components/status/aparte-chat-status.ts",
34572
- "declarations": [
34573
- {
34574
- "kind": "class",
34575
- "description": "A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns\nit on: the framework host only ever flips it back OFF (on the first streamed token),\nand the four wrappers render one inside the viewport driven by their own `isTyping`\nprop.\n\nIt dispatches nothing, deliberately: it reports, it does not ask.\n\nUse it for a state only the app knows about — \"Searching the docs…\", \"Uploading…\",\na queue position. It is NOT the indicator for the gap between a send and the first\ntoken: that one is built into the bubble (`.aparte-waiting`, shown while `streaming`\nis set on a non-user bubble that has nothing to display yet). Turning this element on\nfor that gap is how a page ends up showing two indicators for one wait.\n\nIt does not project children: `_render()` writes the subtree — a\n`.aparte-status-container` row holding an empty avatar div and an `.aparte-body` that\nwraps `.aparte-status-content` — so markup authored between the tags does not\nsurvive. That avatar div never gets contents here, and `.aparte-avatar:empty` is\n`display: none`, so it is not a spacer: the line sits flush with the row padding\nrather than indented under an assistant bubble's text column.\n\nThe seam for custom contents is `setStatusRenderer`, scoped or global: the container\nkeeps owning show/hide (`data-visible`), the accessible name (`aria-label`) and its\n`.aparte-message` row metrics whatever the renderer returns, but the pulsing dot and\nthe text node belong to the default path only.\n\nA `text` attribute renders the visible label and feeds the accessible name; with no\n`text` the line is dots-only and the name falls back to the locale's `typing` word\n(\"Typing\" in English). The container is a polite live region, and a live\nregion announces its CONTENT, not its `aria-label`: so the word also goes INTO the\nregion, in the visible span when `text` is set and in a screen-reader-only span when\nit is not. Exactly one of the two is ever populated — both would be read twice. That\nfallback word is driven by `visible`, not written once at render: a live region is\nannounced when its content CHANGES while it is exposed, and every wrapper mounts this\nelement hidden and flips the attribute — so a word written at render time is a word\nthe region already held when it appeared, the reveal-from-`display: none` path, which\nis the one screen readers are documented not to announce reliably.\nHiding happens twice over: the host element is\n`display: none` without `[visible]`, and `data-visible` drives the fade/translate on\nthe container.\n\nThe config is resolved live rather than cached, so a `setStatusRenderer` call that\nlands after this element has already upgraded still reaches it: the element\nre-renders on `aparte-config-change`, filtered to its own config.\n\nThe two borrowed row variables below have one scope caveat: inside a viewport\nnarrower than 520px core REASSIGNS `--aparte-message-padding-block` and\n`--aparte-message-padding-inline` on `.aparte-message` itself, so a declaration on\nthis host element loses to them there.",
34576
- "name": "AparteChatStatus",
34577
- "cssProperties": [
34578
- {
34579
- "description": "Colour of the label text and of the pulsing dot in the default line.",
34580
- "name": "--aparte-status-color",
34581
- "default": "var(--aparte-text-muted)"
34582
- },
34583
- {
34584
- "description": "Size of the visible label (italic by default) in the default line.",
34585
- "name": "--aparte-status-font-size",
34586
- "default": "var(--aparte-font-size-md)"
34587
- },
34588
- {
34589
- "description": "Diameter of the single pulsing dot in the default line.",
34590
- "name": "--aparte-status-dot-size",
34591
- "default": "6px"
34592
- },
34593
- {
34594
- "description": "Vertical padding of the row, read because the container also carries `.aparte-message` — the status line borrows a bubble's row metrics so it lines up with the transcript.",
34595
- "name": "--aparte-message-padding-block",
34596
- "default": "var(--aparte-space-8)"
34597
- },
34598
- {
34599
- "description": "Horizontal padding of the row, same reason.",
34600
- "name": "--aparte-message-padding-inline",
34601
- "default": "var(--aparte-space-6)"
34602
- },
34603
- {
34604
- "description": "Width cap of that same row.",
34605
- "name": "--aparte-message-max-width",
34606
- "default": "800px"
34607
- }
34608
- ],
34609
- "members": [
34610
- {
34611
- "kind": "field",
34612
- "name": "_cfg",
34613
- "type": {
34614
- "text": "AparteConfig"
34615
- },
34616
- "privacy": "private",
34617
- "description": "Resolved LIVE, not cached. Caching it at connect made this element\npermanently deaf to its own instance: `_onConfigChange` filters on\n`detail.config !== this._cfg`, so once `_cfg` had latched the global config no\nchange for the real instance ever matched, and the filter meant to isolate\nchats became the thing that silenced one.",
34618
- "readonly": true
34619
- },
34620
- {
34621
- "kind": "method",
34622
- "name": "_word",
34623
- "privacy": "private",
34624
- "return": {
34625
- "type": {
34626
- "text": "string"
34627
- }
34628
- },
34629
- "description": "The word said when no `text` is set: the locale's `typing`, never an English literal."
34630
- },
34631
- {
34632
- "kind": "field",
34633
- "name": "_onConfigChange",
34634
- "privacy": "private"
34635
- },
34636
- {
34637
- "kind": "method",
34638
- "name": "show",
34639
- "return": {
34640
- "type": {
34641
- "text": "void"
34642
- }
34643
- },
34644
- "description": "Show the typing indicator"
34645
- },
34646
- {
34647
- "kind": "method",
34648
- "name": "hide",
34649
- "return": {
34650
- "type": {
34651
- "text": "void"
34652
- }
34653
- },
34654
- "description": "Hide the typing indicator"
34655
- },
34656
- {
34657
- "kind": "method",
34658
- "name": "toggle",
34659
- "return": {
34660
- "type": {
34661
- "text": "void"
34662
- }
34663
- },
34664
- "description": "Toggle visibility"
34665
- },
34666
- {
34667
- "kind": "method",
34668
- "name": "isVisible",
34669
- "return": {
34670
- "type": {
34671
- "text": "boolean"
34672
- }
34673
- },
34674
- "description": "Check if visible"
34675
- },
34676
- {
34677
- "kind": "method",
34678
- "name": "_render",
34679
- "privacy": "private",
34680
- "return": {
34681
- "type": {
34682
- "text": "void"
34683
- }
34684
- }
34685
- },
34686
- {
34687
- "kind": "method",
34688
- "name": "_writeText",
34689
- "privacy": "private",
34690
- "return": {
34691
- "type": {
34692
- "text": "void"
34693
- }
34694
- },
34695
- "parameters": [
34696
- {
34697
- "name": "text",
34698
- "type": {
34699
- "text": "string | null"
34700
- }
34701
- }
34702
- ],
34703
- "description": "The one writer for both text nodes, so exactly ONE of them is ever populated.\n\nThe container is a polite live region, and a live region announces its CONTENT.\nThe dots-only default had none — an `aria-hidden` dot and an empty span — so the\nwhole state rode on `aria-label`, which names the region rather than reporting it,\nand nothing was announced. The screen-reader span carries the fallback word in that\ncase; when `text` is set the visible span already carries the same string, and\npopulating both would have the region read it twice."
34704
- },
34705
- {
34706
- "kind": "method",
34707
- "name": "_syncLiveWord",
34708
- "privacy": "private",
34709
- "return": {
34710
- "type": {
34711
- "text": "void"
34712
- }
34713
- },
34714
- "description": "The fallback word enters and leaves the live region WITH the element's visibility.\n\nWriting it at render time put it in the region while the host was still\n`display: none` — every wrapper mounts `<aparte-chat-status>` once and flips\n`visible` — so by the time the region was exposed its content had not changed, and\non the second and third turn there was not even a reveal to notice: the text was\nbyte-identical to what was already sitting there. Revealing a region that already\nholds its text is the path assistive tech is documented not to announce reliably;\nmutating one that is already exposed is the path that works. So the word is written\nwhen `visible` arrives and cleared when it leaves, which makes every turn a real\nchange.\n\nWith `text` set the visible span is the region's content and the screen-reader span\nstays empty — one copy, read once."
34715
- },
34716
- {
34717
- "kind": "method",
34718
- "name": "_updateVisibility",
34719
- "privacy": "private",
34720
- "return": {
34721
- "type": {
34722
- "text": "void"
34723
- }
34724
- },
34725
- "parameters": [
34726
- {
34727
- "name": "visible",
34728
- "type": {
34729
- "text": "boolean"
34730
- }
34731
- }
34732
- ]
34733
- },
34734
- {
34735
- "kind": "method",
34736
- "name": "_updateText",
34737
- "privacy": "private",
34738
- "return": {
34739
- "type": {
34740
- "text": "void"
34741
- }
34742
- },
34743
- "parameters": [
34744
- {
34745
- "name": "text",
34746
- "type": {
34747
- "text": "string | null"
34748
- }
34749
- }
34750
- ]
34751
- }
34752
- ],
34753
- "attributes": [
34754
- {
34755
- "name": "visible",
34756
- "type": {
34757
- "text": "boolean"
34758
- },
34759
- "description": "Shows or hides the indicator."
34760
- },
34761
- {
34762
- "name": "text",
34763
- "type": {
34764
- "text": "string"
34765
- },
34766
- "description": "The line to show. Absent, the line is dots-only and the accessible name falls back to the locale's `typing` word (\"Typing\" in English)."
34767
- }
34768
- ],
34769
- "superclass": {
34770
- "name": "HTMLElement"
34771
- },
34772
- "tagName": "aparte-chat-status",
34773
- "customElement": true,
34774
- "examples": [
34775
- "<!-- The app owns this indicator: core turns it on for nobody, which is also why it\n is the wrong tool for the wait before the first token — the bubble's built-in\n waiting state already covers that one. -->\n<aparte-chat-status visible text=\"Searching the docs…\"></aparte-chat-status>"
34776
- ]
34777
- }
34778
- ],
34779
- "exports": [
34780
- {
34781
- "kind": "js",
34782
- "name": "AparteChatStatus",
34783
- "declaration": {
34784
- "name": "AparteChatStatus",
34785
- "module": "src/components/status/aparte-chat-status.ts"
34786
- }
34787
- },
34788
- {
34789
- "kind": "custom-element-definition",
34790
- "name": "aparte-chat-status",
34791
- "declaration": {
34792
- "name": "AparteChatStatus",
34793
- "module": "src/components/status/aparte-chat-status.ts"
34794
- }
34795
- }
34796
- ]
34797
- },
34798
- {
34799
- "kind": "javascript-module",
34800
- "path": "src/components/status/index.ts",
34801
- "declarations": [],
34802
- "exports": [
34803
- {
34804
- "kind": "js",
34805
- "name": "AparteChatStatus",
34806
- "declaration": {
34807
- "name": "AparteChatStatus",
34808
- "module": "./aparte-chat-status.js"
34809
- }
34810
- }
34811
- ]
34812
- },
34813
34569
  {
34814
34570
  "kind": "javascript-module",
34815
34571
  "path": "src/components/split/aparte-split.ts",
@@ -35786,6 +35542,250 @@
35786
35542
  }
35787
35543
  ]
35788
35544
  },
35545
+ {
35546
+ "kind": "javascript-module",
35547
+ "path": "src/components/status/aparte-chat-status.ts",
35548
+ "declarations": [
35549
+ {
35550
+ "kind": "class",
35551
+ "description": "A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns\nit on: the framework host only ever flips it back OFF (on the first streamed token),\nand the four wrappers render one inside the viewport driven by their own `isTyping`\nprop.\n\nIt dispatches nothing, deliberately: it reports, it does not ask.\n\nUse it for a state only the app knows about — \"Searching the docs…\", \"Uploading…\",\na queue position. It is NOT the indicator for the gap between a send and the first\ntoken: that one is built into the bubble (`.aparte-waiting`, shown while `streaming`\nis set on a non-user bubble that has nothing to display yet). Turning this element on\nfor that gap is how a page ends up showing two indicators for one wait.\n\nIt does not project children: `_render()` writes the subtree — a\n`.aparte-status-container` row holding an empty avatar div and an `.aparte-body` that\nwraps `.aparte-status-content` — so markup authored between the tags does not\nsurvive. That avatar div never gets contents here, and `.aparte-avatar:empty` is\n`display: none`, so it is not a spacer: the line sits flush with the row padding\nrather than indented under an assistant bubble's text column.\n\nThe seam for custom contents is `setStatusRenderer`, scoped or global: the container\nkeeps owning show/hide (`data-visible`), the accessible name (`aria-label`) and its\n`.aparte-message` row metrics whatever the renderer returns, but the pulsing dot and\nthe text node belong to the default path only.\n\nA `text` attribute renders the visible label and feeds the accessible name; with no\n`text` the line is dots-only and the name falls back to the locale's `typing` word\n(\"Typing\" in English). The container is a polite live region, and a live\nregion announces its CONTENT, not its `aria-label`: so the word also goes INTO the\nregion, in the visible span when `text` is set and in a screen-reader-only span when\nit is not. Exactly one of the two is ever populated — both would be read twice. That\nfallback word is driven by `visible`, not written once at render: a live region is\nannounced when its content CHANGES while it is exposed, and every wrapper mounts this\nelement hidden and flips the attribute — so a word written at render time is a word\nthe region already held when it appeared, the reveal-from-`display: none` path, which\nis the one screen readers are documented not to announce reliably.\nHiding happens twice over: the host element is\n`display: none` without `[visible]`, and `data-visible` drives the fade/translate on\nthe container.\n\nThe config is resolved live rather than cached, so a `setStatusRenderer` call that\nlands after this element has already upgraded still reaches it: the element\nre-renders on `aparte-config-change`, filtered to its own config.\n\nThe two borrowed row variables below have one scope caveat: inside a viewport\nnarrower than 520px core REASSIGNS `--aparte-message-padding-block` and\n`--aparte-message-padding-inline` on `.aparte-message` itself, so a declaration on\nthis host element loses to them there.",
35552
+ "name": "AparteChatStatus",
35553
+ "cssProperties": [
35554
+ {
35555
+ "description": "Colour of the label text and of the pulsing dot in the default line.",
35556
+ "name": "--aparte-status-color",
35557
+ "default": "var(--aparte-text-muted)"
35558
+ },
35559
+ {
35560
+ "description": "Size of the visible label (italic by default) in the default line.",
35561
+ "name": "--aparte-status-font-size",
35562
+ "default": "var(--aparte-font-size-md)"
35563
+ },
35564
+ {
35565
+ "description": "Diameter of the single pulsing dot in the default line.",
35566
+ "name": "--aparte-status-dot-size",
35567
+ "default": "6px"
35568
+ },
35569
+ {
35570
+ "description": "Vertical padding of the row, read because the container also carries `.aparte-message` — the status line borrows a bubble's row metrics so it lines up with the transcript.",
35571
+ "name": "--aparte-message-padding-block",
35572
+ "default": "var(--aparte-space-8)"
35573
+ },
35574
+ {
35575
+ "description": "Horizontal padding of the row, same reason.",
35576
+ "name": "--aparte-message-padding-inline",
35577
+ "default": "var(--aparte-space-6)"
35578
+ },
35579
+ {
35580
+ "description": "Width cap of that same row.",
35581
+ "name": "--aparte-message-max-width",
35582
+ "default": "800px"
35583
+ }
35584
+ ],
35585
+ "members": [
35586
+ {
35587
+ "kind": "field",
35588
+ "name": "_cfg",
35589
+ "type": {
35590
+ "text": "AparteConfig"
35591
+ },
35592
+ "privacy": "private",
35593
+ "description": "Resolved LIVE, not cached. Caching it at connect made this element\npermanently deaf to its own instance: `_onConfigChange` filters on\n`detail.config !== this._cfg`, so once `_cfg` had latched the global config no\nchange for the real instance ever matched, and the filter meant to isolate\nchats became the thing that silenced one.",
35594
+ "readonly": true
35595
+ },
35596
+ {
35597
+ "kind": "method",
35598
+ "name": "_word",
35599
+ "privacy": "private",
35600
+ "return": {
35601
+ "type": {
35602
+ "text": "string"
35603
+ }
35604
+ },
35605
+ "description": "The word said when no `text` is set: the locale's `typing`, never an English literal."
35606
+ },
35607
+ {
35608
+ "kind": "field",
35609
+ "name": "_onConfigChange",
35610
+ "privacy": "private"
35611
+ },
35612
+ {
35613
+ "kind": "method",
35614
+ "name": "show",
35615
+ "return": {
35616
+ "type": {
35617
+ "text": "void"
35618
+ }
35619
+ },
35620
+ "description": "Show the typing indicator"
35621
+ },
35622
+ {
35623
+ "kind": "method",
35624
+ "name": "hide",
35625
+ "return": {
35626
+ "type": {
35627
+ "text": "void"
35628
+ }
35629
+ },
35630
+ "description": "Hide the typing indicator"
35631
+ },
35632
+ {
35633
+ "kind": "method",
35634
+ "name": "toggle",
35635
+ "return": {
35636
+ "type": {
35637
+ "text": "void"
35638
+ }
35639
+ },
35640
+ "description": "Toggle visibility"
35641
+ },
35642
+ {
35643
+ "kind": "method",
35644
+ "name": "isVisible",
35645
+ "return": {
35646
+ "type": {
35647
+ "text": "boolean"
35648
+ }
35649
+ },
35650
+ "description": "Check if visible"
35651
+ },
35652
+ {
35653
+ "kind": "method",
35654
+ "name": "_render",
35655
+ "privacy": "private",
35656
+ "return": {
35657
+ "type": {
35658
+ "text": "void"
35659
+ }
35660
+ }
35661
+ },
35662
+ {
35663
+ "kind": "method",
35664
+ "name": "_writeText",
35665
+ "privacy": "private",
35666
+ "return": {
35667
+ "type": {
35668
+ "text": "void"
35669
+ }
35670
+ },
35671
+ "parameters": [
35672
+ {
35673
+ "name": "text",
35674
+ "type": {
35675
+ "text": "string | null"
35676
+ }
35677
+ }
35678
+ ],
35679
+ "description": "The one writer for both text nodes, so exactly ONE of them is ever populated.\n\nThe container is a polite live region, and a live region announces its CONTENT.\nThe dots-only default had none — an `aria-hidden` dot and an empty span — so the\nwhole state rode on `aria-label`, which names the region rather than reporting it,\nand nothing was announced. The screen-reader span carries the fallback word in that\ncase; when `text` is set the visible span already carries the same string, and\npopulating both would have the region read it twice."
35680
+ },
35681
+ {
35682
+ "kind": "method",
35683
+ "name": "_syncLiveWord",
35684
+ "privacy": "private",
35685
+ "return": {
35686
+ "type": {
35687
+ "text": "void"
35688
+ }
35689
+ },
35690
+ "description": "The fallback word enters and leaves the live region WITH the element's visibility.\n\nWriting it at render time put it in the region while the host was still\n`display: none` — every wrapper mounts `<aparte-chat-status>` once and flips\n`visible` — so by the time the region was exposed its content had not changed, and\non the second and third turn there was not even a reveal to notice: the text was\nbyte-identical to what was already sitting there. Revealing a region that already\nholds its text is the path assistive tech is documented not to announce reliably;\nmutating one that is already exposed is the path that works. So the word is written\nwhen `visible` arrives and cleared when it leaves, which makes every turn a real\nchange.\n\nWith `text` set the visible span is the region's content and the screen-reader span\nstays empty — one copy, read once."
35691
+ },
35692
+ {
35693
+ "kind": "method",
35694
+ "name": "_updateVisibility",
35695
+ "privacy": "private",
35696
+ "return": {
35697
+ "type": {
35698
+ "text": "void"
35699
+ }
35700
+ },
35701
+ "parameters": [
35702
+ {
35703
+ "name": "visible",
35704
+ "type": {
35705
+ "text": "boolean"
35706
+ }
35707
+ }
35708
+ ]
35709
+ },
35710
+ {
35711
+ "kind": "method",
35712
+ "name": "_updateText",
35713
+ "privacy": "private",
35714
+ "return": {
35715
+ "type": {
35716
+ "text": "void"
35717
+ }
35718
+ },
35719
+ "parameters": [
35720
+ {
35721
+ "name": "text",
35722
+ "type": {
35723
+ "text": "string | null"
35724
+ }
35725
+ }
35726
+ ]
35727
+ }
35728
+ ],
35729
+ "attributes": [
35730
+ {
35731
+ "name": "visible",
35732
+ "type": {
35733
+ "text": "boolean"
35734
+ },
35735
+ "description": "Shows or hides the indicator."
35736
+ },
35737
+ {
35738
+ "name": "text",
35739
+ "type": {
35740
+ "text": "string"
35741
+ },
35742
+ "description": "The line to show. Absent, the line is dots-only and the accessible name falls back to the locale's `typing` word (\"Typing\" in English)."
35743
+ }
35744
+ ],
35745
+ "superclass": {
35746
+ "name": "HTMLElement"
35747
+ },
35748
+ "tagName": "aparte-chat-status",
35749
+ "customElement": true,
35750
+ "examples": [
35751
+ "<!-- The app owns this indicator: core turns it on for nobody, which is also why it\n is the wrong tool for the wait before the first token — the bubble's built-in\n waiting state already covers that one. -->\n<aparte-chat-status visible text=\"Searching the docs…\"></aparte-chat-status>"
35752
+ ]
35753
+ }
35754
+ ],
35755
+ "exports": [
35756
+ {
35757
+ "kind": "js",
35758
+ "name": "AparteChatStatus",
35759
+ "declaration": {
35760
+ "name": "AparteChatStatus",
35761
+ "module": "src/components/status/aparte-chat-status.ts"
35762
+ }
35763
+ },
35764
+ {
35765
+ "kind": "custom-element-definition",
35766
+ "name": "aparte-chat-status",
35767
+ "declaration": {
35768
+ "name": "AparteChatStatus",
35769
+ "module": "src/components/status/aparte-chat-status.ts"
35770
+ }
35771
+ }
35772
+ ]
35773
+ },
35774
+ {
35775
+ "kind": "javascript-module",
35776
+ "path": "src/components/status/index.ts",
35777
+ "declarations": [],
35778
+ "exports": [
35779
+ {
35780
+ "kind": "js",
35781
+ "name": "AparteChatStatus",
35782
+ "declaration": {
35783
+ "name": "AparteChatStatus",
35784
+ "module": "./aparte-chat-status.js"
35785
+ }
35786
+ }
35787
+ ]
35788
+ },
35789
35789
  {
35790
35790
  "kind": "javascript-module",
35791
35791
  "path": "src/components/suggestions/aparte-suggestions.ts",