@aparte/core 1.8.0 → 1.9.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.
Files changed (54) hide show
  1. package/dist/client/agent-runner.d.ts +8 -3
  2. package/dist/client/agent-runner.d.ts.map +1 -1
  3. package/dist/client/aparte-client.d.ts.map +1 -1
  4. package/dist/components/bubble/aparte-chat-bubble.d.ts +13 -3
  5. package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
  6. package/dist/components/chat/aparte-chat.d.ts +64 -0
  7. package/dist/components/chat/aparte-chat.d.ts.map +1 -1
  8. package/dist/components/composer/aparte-composer-input.d.ts +3 -1
  9. package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
  10. package/dist/components/composer/aparte-composer-send.d.ts +11 -0
  11. package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
  12. package/dist/config/aparte-config.d.ts +84 -10
  13. package/dist/config/aparte-config.d.ts.map +1 -1
  14. package/dist/config/index.d.ts +2 -0
  15. package/dist/config/index.d.ts.map +1 -1
  16. package/dist/config/link-target.d.ts +39 -0
  17. package/dist/config/link-target.d.ts.map +1 -0
  18. package/dist/config/sanitize.d.ts +22 -3
  19. package/dist/config/sanitize.d.ts.map +1 -1
  20. package/dist/config/step-label.d.ts +22 -0
  21. package/dist/config/step-label.d.ts.map +1 -0
  22. package/dist/conversations/conversation-controller.d.ts +14 -0
  23. package/dist/conversations/conversation-controller.d.ts.map +1 -1
  24. package/dist/conversations/open-conversation.d.ts +28 -0
  25. package/dist/conversations/open-conversation.d.ts.map +1 -0
  26. package/dist/custom-elements.json +1273 -521
  27. package/dist/{defer-hydration-BE2ToXC_.js → defer-hydration-Ch3TOEJC.js} +372 -79
  28. package/dist/defer-hydration-Ch3TOEJC.js.map +1 -0
  29. package/dist/generated/element-attributes.d.ts +11 -4
  30. package/dist/generated/element-attributes.d.ts.map +1 -1
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +3 -2
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +41 -9
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.node.d.ts +2 -2
  37. package/dist/index.node.d.ts.map +1 -1
  38. package/dist/index.node.js +1 -1
  39. package/dist/index.node.js.map +1 -1
  40. package/dist/renderers/citations.d.ts.map +1 -1
  41. package/dist/transport/agent-handler.d.ts +6 -0
  42. package/dist/transport/agent-handler.d.ts.map +1 -1
  43. package/dist/types/element-attributes.d.ts +5 -2
  44. package/dist/types/element-attributes.d.ts.map +1 -1
  45. package/dist/types/events.d.ts +4 -3
  46. package/dist/types/events.d.ts.map +1 -1
  47. package/dist/types/imperative-api.d.ts +15 -0
  48. package/dist/types/imperative-api.d.ts.map +1 -1
  49. package/dist/types/index.d.ts +1 -1
  50. package/dist/types/index.d.ts.map +1 -1
  51. package/dist/types/tools.d.ts +9 -0
  52. package/dist/types/tools.d.ts.map +1 -1
  53. package/package.json +2 -2
  54. package/dist/defer-hydration-BE2ToXC_.js.map +0 -1
@@ -1033,6 +1033,14 @@
1033
1033
  "module": "./types/index.js"
1034
1034
  }
1035
1035
  },
1036
+ {
1037
+ "kind": "js",
1038
+ "name": "AparteComposerSendAttributes",
1039
+ "declaration": {
1040
+ "name": "AparteComposerSendAttributes",
1041
+ "module": "./types/index.js"
1042
+ }
1043
+ },
1036
1044
  {
1037
1045
  "kind": "js",
1038
1046
  "name": "AparteComposerToolbarAttributes",
@@ -2329,6 +2337,22 @@
2329
2337
  "module": "./config/index.js"
2330
2338
  }
2331
2339
  },
2340
+ {
2341
+ "kind": "js",
2342
+ "name": "AparteStepLabel",
2343
+ "declaration": {
2344
+ "name": "AparteStepLabel",
2345
+ "module": "./config/index.js"
2346
+ }
2347
+ },
2348
+ {
2349
+ "kind": "js",
2350
+ "name": "AparteStepLabelContext",
2351
+ "declaration": {
2352
+ "name": "AparteStepLabelContext",
2353
+ "module": "./config/index.js"
2354
+ }
2355
+ },
2332
2356
  {
2333
2357
  "kind": "js",
2334
2358
  "name": "AparteModelPreference",
@@ -2369,6 +2393,22 @@
2369
2393
  "module": "./config/index.js"
2370
2394
  }
2371
2395
  },
2396
+ {
2397
+ "kind": "js",
2398
+ "name": "AparteLinkDecision",
2399
+ "declaration": {
2400
+ "name": "AparteLinkDecision",
2401
+ "module": "./config/index.js"
2402
+ }
2403
+ },
2404
+ {
2405
+ "kind": "js",
2406
+ "name": "AparteLinkTarget",
2407
+ "declaration": {
2408
+ "name": "AparteLinkTarget",
2409
+ "module": "./config/index.js"
2410
+ }
2411
+ },
2372
2412
  {
2373
2413
  "kind": "js",
2374
2414
  "name": "APARTE_DEFAULT_ICON_FALLBACKS",
@@ -4091,6 +4131,14 @@
4091
4131
  "module": "./types/index.js"
4092
4132
  }
4093
4133
  },
4134
+ {
4135
+ "kind": "js",
4136
+ "name": "AparteComposerSendAttributes",
4137
+ "declaration": {
4138
+ "name": "AparteComposerSendAttributes",
4139
+ "module": "./types/index.js"
4140
+ }
4141
+ },
4094
4142
  {
4095
4143
  "kind": "js",
4096
4144
  "name": "AparteComposerToolbarAttributes",
@@ -5019,6 +5067,22 @@
5019
5067
  "module": "./config/index.js"
5020
5068
  }
5021
5069
  },
5070
+ {
5071
+ "kind": "js",
5072
+ "name": "AparteStepLabel",
5073
+ "declaration": {
5074
+ "name": "AparteStepLabel",
5075
+ "module": "./config/index.js"
5076
+ }
5077
+ },
5078
+ {
5079
+ "kind": "js",
5080
+ "name": "AparteStepLabelContext",
5081
+ "declaration": {
5082
+ "name": "AparteStepLabelContext",
5083
+ "module": "./config/index.js"
5084
+ }
5085
+ },
5022
5086
  {
5023
5087
  "kind": "js",
5024
5088
  "name": "AparteMarkdownProvider",
@@ -5243,6 +5307,22 @@
5243
5307
  "module": "./config/index.js"
5244
5308
  }
5245
5309
  },
5310
+ {
5311
+ "kind": "js",
5312
+ "name": "AparteLinkDecision",
5313
+ "declaration": {
5314
+ "name": "AparteLinkDecision",
5315
+ "module": "./config/index.js"
5316
+ }
5317
+ },
5318
+ {
5319
+ "kind": "js",
5320
+ "name": "AparteLinkTarget",
5321
+ "declaration": {
5322
+ "name": "AparteLinkTarget",
5323
+ "module": "./config/index.js"
5324
+ }
5325
+ },
5246
5326
  {
5247
5327
  "kind": "js",
5248
5328
  "name": "APARTE_DEFAULT_ICON_FALLBACKS",
@@ -6406,7 +6486,7 @@
6406
6486
  "name": "opts",
6407
6487
  "optional": true,
6408
6488
  "type": {
6409
- "text": "{\n temperature?: number;\n /** Resume a turn a server loop paused (a reload): skip the first run. */\n resume?: NonNullable<AparteRunResult['suspended']>;\n /**\n * Builds the messages of this request again, exactly as the caller built them the\n * first time (a send inlines its files as parts again). Called once the history\n * has become smaller — after a compactor wrote a checkpoint, before the request\n * goes out or after the model refused it as too long. Without it the turn cannot\n * be resent, so it neither waits for a compactor nor retries an overflow.\n */\n rebuild?: () => Promise<AparteChatMessage[]>;\n /** The files picked for this message, for a runner that uploads them itself. */\n files?: readonly File[];\n /** What goes in the request's `_meta` from the message that started this turn. */\n meta?: AparteRequestMeta;\n }"
6489
+ "text": "{\n temperature?: number;\n /** Resume a turn a server loop paused (a reload): skip the first run. */\n resume?: NonNullable<AparteRunResult['suspended']>;\n /**\n * Builds the messages of this request again, exactly as the caller built them the\n * first time (a send inlines its files as parts again). Called once the history\n * has become smaller — after a compactor wrote a checkpoint, before the request\n * goes out or after the model refused it as too long. Without it the turn cannot\n * be resent, so it neither waits for a compactor nor retries an overflow.\n */\n rebuild?: () => Promise<AparteChatMessage[]>;\n /** The files picked for this message, for a runner that uploads them itself. */\n files?: readonly File[];\n /** What goes in the request's `_meta` from the message that started this turn. */\n meta?: AparteRequestMeta;\n /**\n * The conversation open in the chat when the person acted, read by the caller\n * before its first await. Handed to the runner on every run of the turn, the\n * resume of a pause included.\n */\n conversationId?: string;\n }"
6410
6490
  }
6411
6491
  }
6412
6492
  ],
@@ -6897,6 +6977,13 @@
6897
6977
  "type": {
6898
6978
  "text": "readonly File[]"
6899
6979
  }
6980
+ },
6981
+ {
6982
+ "name": "conversationId",
6983
+ "optional": true,
6984
+ "type": {
6985
+ "text": "string"
6986
+ }
6900
6987
  }
6901
6988
  ],
6902
6989
  "description": "One run of the loop: its usage, and whether it paused (a server loop)."
@@ -6966,6 +7053,13 @@
6966
7053
  "type": {
6967
7054
  "text": "readonly File[]"
6968
7055
  }
7056
+ },
7057
+ {
7058
+ "name": "conversationId",
7059
+ "optional": true,
7060
+ "type": {
7061
+ "text": "string"
7062
+ }
6969
7063
  }
6970
7064
  ],
6971
7065
  "description": "Run the loop through a AparteStreamRunner — the engine's by default —\nrendering its DOM-free events through createStreamAdapter. Builds the\nrunner's dependencies from this client's config / provider / transport. The\nleading writes (status streaming, prefix segments) happen here; the runner's\n`run-start` re-asserts `streaming` idempotently. The call sequence this\nproduces is pinned by the `stream-parity` suite's snapshots, recorded while\nthe inline loop it replaced still ran beside it."
@@ -8304,6 +8398,15 @@
8304
8398
  "default": "false",
8305
8399
  "description": "Whether the app named an image policy, the default included; see `decideImage`."
8306
8400
  },
8401
+ {
8402
+ "kind": "field",
8403
+ "name": "_linkTarget",
8404
+ "type": {
8405
+ "text": "AparteLinkTarget"
8406
+ },
8407
+ "privacy": "private",
8408
+ "default": "'new-tab'"
8409
+ },
8307
8410
  {
8308
8411
  "kind": "field",
8309
8412
  "name": "_systemPromptTemplate",
@@ -8620,6 +8723,13 @@
8620
8723
  "default": "null",
8621
8724
  "description": "What a plugin says about a call, read after the app's display — see setToolLineProvider."
8622
8725
  },
8726
+ {
8727
+ "kind": "field",
8728
+ "name": "_stepLabels",
8729
+ "privacy": "private",
8730
+ "default": "new Map<string, { label: AparteStepLabel }>()",
8731
+ "description": "What a step is called on screen, by the name the run announces — see registerStepLabel. One entry per registration, so each remover takes back its own."
8732
+ },
8623
8733
  {
8624
8734
  "kind": "field",
8625
8735
  "name": "_streamBlocks",
@@ -9052,7 +9162,7 @@
9052
9162
  "description": "A sanitizer function, or `null` to DISABLE sanitization.\nDisabling exposes you to XSS from LLM-authored content — only do so for\ncontent you fully trust and have already sanitized upstream. `null` prints\na console warning, once."
9053
9163
  }
9054
9164
  ],
9055
- "description": "Replace or disable the HTML sanitizer applied to markdown/highlight\nprovider output before it is injected into the DOM. Defaults to a built-in\nzero-dependency allowlist sanitizer.\n\nThe function you pass REPLACES the built-in one, chat rules included: no\n`aparte-` classes, no layout styles, no form controls, external links in a new\ntab. DOMPurify's defaults hold none of the four, so chain it in front of\n`defaultSanitizer` rather than in its place (the example below).",
9165
+ "description": "Replace or disable the HTML sanitizer applied to markdown/highlight\nprovider output before it is injected into the DOM. Defaults to a built-in\nzero-dependency allowlist sanitizer.\n\nThe function you pass REPLACES the built-in one, chat rules included: no\n`aparte-` classes, no layout styles, no form controls. DOMPurify's defaults hold\nnone of the three, so chain it in front of `defaultSanitizer` rather than in its\nplace (the example below). Where a link opens (AparteConfig.setLinkTarget| setLinkTarget)\nand which pictures load (AparteConfig.setImagePolicy| setImagePolicy) are\napplied after it, whichever it is.",
9056
9166
  "examples": [
9057
9167
  "aparteGlobalConfig.setHtmlSanitizer((html) => defaultSanitizer(DOMPurify.sanitize(html)));"
9058
9168
  ]
@@ -9073,7 +9183,7 @@
9073
9183
  }
9074
9184
  }
9075
9185
  ],
9076
- "description": "Run the active sanitizer over provider-produced HTML, then the image policy\n(AparteConfig.setImagePolicy| setImagePolicy): a picture the policy does not let\nload comes back as a link that loads it on a click. Public so a streaming-markdown\nprovider (which appends DOM directly, bypassing `renderMarkdown`) can apply the same\nrules. The image policy runs whichever sanitizer is set, none included, so replacing it\ndoes not turn a reply's pictures back into requests the reader never made."
9186
+ "description": "Run the active sanitizer over provider-produced HTML, then the link target\n(AparteConfig.setLinkTarget| setLinkTarget): every link gets the `target` and\n`rel` it opens with; then the image policy (AparteConfig.setImagePolicy| setImagePolicy):\na picture the policy does not let load comes back as a link that loads it on a click.\nPublic so a streaming-markdown provider (which appends DOM directly, bypassing\n`renderMarkdown`) can apply the same rules. Both run whichever sanitizer is set, none\nincluded, so replacing it does not send a reply's links back into the chat's own frame,\nnor turn its pictures back into requests the reader never made."
9077
9187
  },
9078
9188
  {
9079
9189
  "kind": "method",
@@ -9163,6 +9273,58 @@
9163
9273
  },
9164
9274
  "description": "What a held picture says, in this config's language."
9165
9275
  },
9276
+ {
9277
+ "kind": "method",
9278
+ "name": "setLinkTarget",
9279
+ "return": {
9280
+ "type": {
9281
+ "text": "void"
9282
+ }
9283
+ },
9284
+ "parameters": [
9285
+ {
9286
+ "name": "mode",
9287
+ "type": {
9288
+ "text": "AparteLinkTarget"
9289
+ }
9290
+ }
9291
+ ],
9292
+ "description": "Where the links a reply holds open — in its Markdown, its sources, a document it wrote.\n`'new-tab'`, the default, opens every one in a new tab, same-site ones included;\n`'external-only'` opens a link to another site in a new tab and keeps a same-site one in\nthe page, as before 1.9. Either way a link to `#…`, `mailto:`, `tel:` or `sms:` is left as\nwritten, a new tab goes with `rel=\"noopener noreferrer\"`, and the `target` the model wrote\ndoes not choose. What is on screen is drawn again.\n\nIn a single-page app or an Electron window, a same-site link followed in place replaces\nthe whole app, the conversation with it. To route a link yourself — your router, a pane,\nthe system browser — cancel the chat's `aparte-link-click`, whichever mode is set.",
9293
+ "examples": [
9294
+ "aparteGlobalConfig.setLinkTarget('external-only');"
9295
+ ]
9296
+ },
9297
+ {
9298
+ "kind": "method",
9299
+ "name": "getLinkTarget",
9300
+ "return": {
9301
+ "type": {
9302
+ "text": "AparteLinkTarget"
9303
+ }
9304
+ },
9305
+ "description": "Where the links a reply holds open: AparteConfig.setLinkTarget| setLinkTarget's mode, `'new-tab'` by default."
9306
+ },
9307
+ {
9308
+ "kind": "method",
9309
+ "name": "decideLink",
9310
+ "return": {
9311
+ "type": {
9312
+ "text": "AparteLinkDecision"
9313
+ }
9314
+ },
9315
+ "parameters": [
9316
+ {
9317
+ "name": "href",
9318
+ "type": {
9319
+ "text": "string"
9320
+ }
9321
+ }
9322
+ ],
9323
+ "description": "Where a link to `href` opens under this config's link target: `{ target: '_blank', rel:\n'noopener noreferrer' }` for a new tab, `{}` for the page itself. For a plugin that draws\nlinks itself, as `@aparte/plugin-streaming-markdown` does: set what it returns, and no\n`target` of your own. It does not judge whether the address is safe to link —\n`isSafeUrl` does.",
9324
+ "examples": [
9325
+ "const link = document.createElement('a');\nlink.href = url;\nObject.assign(link, aparteGlobalConfig.decideLink(url));"
9326
+ ]
9327
+ },
9166
9328
  {
9167
9329
  "kind": "method",
9168
9330
  "name": "setSystemPrompt",
@@ -10618,6 +10780,52 @@
10618
10780
  ],
10619
10781
  "description": "The input formatter that applies to a tool named `toolName`, or undefined."
10620
10782
  },
10783
+ {
10784
+ "kind": "method",
10785
+ "name": "registerStepLabel",
10786
+ "return": {
10787
+ "type": {
10788
+ "text": "() => void"
10789
+ }
10790
+ },
10791
+ "parameters": [
10792
+ {
10793
+ "name": "name",
10794
+ "type": {
10795
+ "text": "string"
10796
+ }
10797
+ },
10798
+ {
10799
+ "name": "label",
10800
+ "type": {
10801
+ "text": "AparteStepLabel"
10802
+ }
10803
+ }
10804
+ ],
10805
+ "description": "Say how a step is called on screen, in place of the name a run announced. A server that\nstreams `step-start { name }` sends a stable key — `slot-wait`, `restore`, `reread` —\nand the page knows the person's language: this maps one to the other, wherever a step is\nshown (the waiting indicator, which a screen reader reads in place of \"Typing\", and a\nsub-agent's line). A name nobody labelled shows as it always did: itself, because core\nnever makes a label up.\n\nThe label is text, never HTML, or a function of the locale, asked at every draw and on\nevery config change — so a language switch changes the words of a step that is open.\nOne that throws, or says nothing, leaves the name. One label per name, per config:\nregistering a name again replaces its label, and a chat with a config of its own reads\nthat config's labels, as it reads its tool displays.\n\nOnly what is shown is labelled. The step keeps the name the run announced — for\nobserveRunEvents, for the target, for everything an app stores — and is never\nsaved with the reply. Registering tells the chats on the page, so a label reaches a step\nthat is open. Returns the function that takes the label off again (it changes nothing\nonce another registration has replaced it).",
10806
+ "examples": [
10807
+ "aparteGlobalConfig.registerStepLabel('slot-wait', 'Waiting for a free slot…');",
10808
+ "// In the person's language, and live: a switch of the locale relabels a step that is open.\naparteGlobalConfig.registerStepLabel('reread', ({ locale }) =>\n locale.tag?.startsWith('fr') ? 'Relecture de la conversation…' : 'Re-reading the conversation…');"
10809
+ ]
10810
+ },
10811
+ {
10812
+ "kind": "method",
10813
+ "name": "getStepLabel",
10814
+ "return": {
10815
+ "type": {
10816
+ "text": "string | undefined"
10817
+ }
10818
+ },
10819
+ "parameters": [
10820
+ {
10821
+ "name": "name",
10822
+ "type": {
10823
+ "text": "string"
10824
+ }
10825
+ }
10826
+ ],
10827
+ "description": "The words shown for a step named `name`, or `undefined` when none are registered, they\nsay nothing, or the function that gives them throws — then the name itself is shown. A\nfunction label is asked here, with the locale as it is now."
10828
+ },
10621
10829
  {
10622
10830
  "kind": "method",
10623
10831
  "name": "registerStreamBlock",
@@ -10863,7 +11071,7 @@
10863
11071
  "text": "void"
10864
11072
  }
10865
11073
  },
10866
- "description": "Put the configuration back to its defaults: the providers and the selected model,\nthe tools with their renderers and summaries, the tool-line provider, the renderers and render hooks, the\nMarkdown and highlight providers, the code-language renderers, the sanitizer, the system prompt, the locale, icons,\navatars, actions and host handlers, the conversation manager, the question presenters\nand their queue, the run-event observers. Three things stay: the transport, the key sources added with\nAparteConfig.registerKeyProvider| registerKeyProvider() (an `AparteClient`'s\n`keyResolver` among them), and the AparteConfig.subscribe| subscribe() listeners."
11074
+ "description": "Put the configuration back to its defaults: the providers and the selected model,\nthe tools with their renderers and summaries, the tool-line provider, the step labels, the renderers and render hooks, the\nMarkdown and highlight providers, the code-language renderers, the sanitizer, the system prompt, the locale, icons,\navatars, actions and host handlers, the conversation manager, the question presenters\nand their queue, the run-event observers. Three things stay: the transport, the key sources added with\nAparteConfig.registerKeyProvider| registerKeyProvider() (an `AparteClient`'s\n`keyResolver` among them), and the AparteConfig.subscribe| subscribe() listeners."
10867
11075
  },
10868
11076
  {
10869
11077
  "kind": "method",
@@ -11879,6 +12087,22 @@
11879
12087
  "module": "./image-policy.js"
11880
12088
  }
11881
12089
  },
12090
+ {
12091
+ "kind": "js",
12092
+ "name": "AparteLinkDecision",
12093
+ "declaration": {
12094
+ "name": "AparteLinkDecision",
12095
+ "module": "./link-target.js"
12096
+ }
12097
+ },
12098
+ {
12099
+ "kind": "js",
12100
+ "name": "AparteLinkTarget",
12101
+ "declaration": {
12102
+ "name": "AparteLinkTarget",
12103
+ "module": "./link-target.js"
12104
+ }
12105
+ },
11882
12106
  {
11883
12107
  "kind": "js",
11884
12108
  "name": "defaultSanitizer",
@@ -11999,6 +12223,22 @@
11999
12223
  "module": "./bubble-shell-renderer.js"
12000
12224
  }
12001
12225
  },
12226
+ {
12227
+ "kind": "js",
12228
+ "name": "AparteStepLabel",
12229
+ "declaration": {
12230
+ "name": "AparteStepLabel",
12231
+ "module": "./step-label.js"
12232
+ }
12233
+ },
12234
+ {
12235
+ "kind": "js",
12236
+ "name": "AparteStepLabelContext",
12237
+ "declaration": {
12238
+ "name": "AparteStepLabelContext",
12239
+ "module": "./step-label.js"
12240
+ }
12241
+ },
12002
12242
  {
12003
12243
  "kind": "js",
12004
12244
  "name": "AparteLocale",
@@ -12041,6 +12281,148 @@
12041
12281
  }
12042
12282
  ]
12043
12283
  },
12284
+ {
12285
+ "kind": "javascript-module",
12286
+ "path": "src/config/link-target.ts",
12287
+ "declarations": [
12288
+ {
12289
+ "kind": "function",
12290
+ "name": "linkTargetAttributes",
12291
+ "return": {
12292
+ "type": {
12293
+ "text": "ReadonlyArray<[string, string]>"
12294
+ }
12295
+ },
12296
+ "parameters": [
12297
+ {
12298
+ "name": "mode",
12299
+ "type": {
12300
+ "text": "AparteLinkTarget"
12301
+ }
12302
+ },
12303
+ {
12304
+ "name": "href",
12305
+ "type": {
12306
+ "text": "string"
12307
+ }
12308
+ },
12309
+ {
12310
+ "name": "wish",
12311
+ "type": {
12312
+ "text": "string"
12313
+ }
12314
+ }
12315
+ ],
12316
+ "description": "The `target` and `rel` a link to `href` gets under `mode`, `wish` being the `target` its markup\nasked for: a new tab, unless the mode is `'external-only'` or the link stays in the page or\nhands over to another app, which get the sanitizer's clamp."
12317
+ },
12318
+ {
12319
+ "kind": "function",
12320
+ "name": "linkDecision",
12321
+ "return": {
12322
+ "type": {
12323
+ "text": "AparteLinkDecision"
12324
+ }
12325
+ },
12326
+ "parameters": [
12327
+ {
12328
+ "name": "mode",
12329
+ "type": {
12330
+ "text": "AparteLinkTarget"
12331
+ }
12332
+ },
12333
+ {
12334
+ "name": "href",
12335
+ "type": {
12336
+ "text": "string"
12337
+ }
12338
+ }
12339
+ ],
12340
+ "description": "What a link to `href` sets under `mode`, asked for no target of its own: what `decideLink` answers."
12341
+ },
12342
+ {
12343
+ "kind": "function",
12344
+ "name": "applyLinkTarget",
12345
+ "return": {
12346
+ "type": {
12347
+ "text": "string"
12348
+ }
12349
+ },
12350
+ "parameters": [
12351
+ {
12352
+ "name": "html",
12353
+ "type": {
12354
+ "text": "string"
12355
+ }
12356
+ },
12357
+ {
12358
+ "name": "mode",
12359
+ "type": {
12360
+ "text": "AparteLinkTarget"
12361
+ }
12362
+ }
12363
+ ],
12364
+ "description": "Apply the link target to sanitized HTML. Every `<a href>` gets the `target`\n`linkTargetAttributes` decides from its address and the target it carries; one that opens a\nnew tab also gets `rel` holding what it had plus `noopener noreferrer` (never `opener`), and\none that stays in the page keeps its `rel` as written. Both are written after its other\nattributes so both paths build the same tree. HTML with nothing to\nchange comes back as it came: serialized again, it would be rewritten where the pass changed\nnothing, and `'external-only'` over the built-in sanitizer changes nothing at all.\n\nIn a browser it walks an inert `<template>`; without a DOM it reads the tags the way the\nsanitizer's own DOM-free path does."
12365
+ },
12366
+ {
12367
+ "kind": "function",
12368
+ "name": "applyLinkTargetWithoutDom",
12369
+ "return": {
12370
+ "type": {
12371
+ "text": "string"
12372
+ }
12373
+ },
12374
+ "parameters": [
12375
+ {
12376
+ "name": "html",
12377
+ "type": {
12378
+ "text": "string"
12379
+ }
12380
+ },
12381
+ {
12382
+ "name": "mode",
12383
+ "type": {
12384
+ "text": "AparteLinkTarget"
12385
+ }
12386
+ }
12387
+ ],
12388
+ "description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own reader,\nleaves comments and raw-text elements alone, and writes back only the tags it changed.\nExported for the parity suite; not from the package barrel."
12389
+ }
12390
+ ],
12391
+ "exports": [
12392
+ {
12393
+ "kind": "js",
12394
+ "name": "linkTargetAttributes",
12395
+ "declaration": {
12396
+ "name": "linkTargetAttributes",
12397
+ "module": "src/config/link-target.ts"
12398
+ }
12399
+ },
12400
+ {
12401
+ "kind": "js",
12402
+ "name": "linkDecision",
12403
+ "declaration": {
12404
+ "name": "linkDecision",
12405
+ "module": "src/config/link-target.ts"
12406
+ }
12407
+ },
12408
+ {
12409
+ "kind": "js",
12410
+ "name": "applyLinkTarget",
12411
+ "declaration": {
12412
+ "name": "applyLinkTarget",
12413
+ "module": "src/config/link-target.ts"
12414
+ }
12415
+ },
12416
+ {
12417
+ "kind": "js",
12418
+ "name": "applyLinkTargetWithoutDom",
12419
+ "declaration": {
12420
+ "name": "applyLinkTargetWithoutDom",
12421
+ "module": "src/config/link-target.ts"
12422
+ }
12423
+ }
12424
+ ]
12425
+ },
12044
12426
  {
12045
12427
  "kind": "javascript-module",
12046
12428
  "path": "src/config/locale.ts",
@@ -12076,6 +12458,12 @@
12076
12458
  "default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
12077
12459
  "description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
12078
12460
  },
12461
+ {
12462
+ "kind": "variable",
12463
+ "name": "CONTROL_WS",
12464
+ "default": "/[\\u0000-\\u0020]+/g",
12465
+ "description": "Whitespace + C0 control chars, used to obfuscate a scheme (e.g. \" javascript:\" or \"java\\tscript:\").\nExported for the link target's pass (`link-target.ts`), which reads an address the same way; not\nfrom the package barrel."
12466
+ },
12079
12467
  {
12080
12468
  "kind": "variable",
12081
12469
  "name": "RESERVED_ATTRIBUTES",
@@ -12132,6 +12520,30 @@
12132
12520
  }
12133
12521
  ]
12134
12522
  },
12523
+ {
12524
+ "kind": "function",
12525
+ "name": "linkAttributes",
12526
+ "return": {
12527
+ "type": {
12528
+ "text": "Array<[string, string]>"
12529
+ }
12530
+ },
12531
+ "parameters": [
12532
+ {
12533
+ "name": "href",
12534
+ "type": {
12535
+ "text": "string"
12536
+ }
12537
+ },
12538
+ {
12539
+ "name": "targetWish",
12540
+ "type": {
12541
+ "text": "string"
12542
+ }
12543
+ }
12544
+ ],
12545
+ "description": "The `target` and `rel` an `<a>` gets. The model's `target` is read as a WISH and clamped;\n`rel` is never copied. `href` is the one that was kept ('' when it was dropped).\n\nThis is the floor, and the whole of `setLinkTarget('external-only')`: the config's link pass\n(`link-target.ts`) applies it again after whichever sanitizer is set, and under the default,\n`'new-tab'`, opens a same-site link in a new tab on top of it. Exported for that pass; not\nfrom the package barrel."
12546
+ },
12135
12547
  {
12136
12548
  "kind": "function",
12137
12549
  "name": "readTag",
@@ -12154,7 +12566,7 @@
12154
12566
  }
12155
12567
  }
12156
12568
  ],
12157
- "description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the image policy's DOM-free pass (`image-policy.ts`), which has to find the same\ntags in the same text this scrub wrote; not from the package barrel."
12569
+ "description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the DOM-free passes of the image policy (`image-policy.ts`) and the link target\n(`link-target.ts`), which have to find the same tags in the same text this scrub wrote; not\nfrom the package barrel."
12158
12570
  },
12159
12571
  {
12160
12572
  "kind": "function",
@@ -12184,6 +12596,14 @@
12184
12596
  "module": "src/config/sanitize.ts"
12185
12597
  }
12186
12598
  },
12599
+ {
12600
+ "kind": "js",
12601
+ "name": "CONTROL_WS",
12602
+ "declaration": {
12603
+ "name": "CONTROL_WS",
12604
+ "module": "src/config/sanitize.ts"
12605
+ }
12606
+ },
12187
12607
  {
12188
12608
  "kind": "js",
12189
12609
  "name": "RESERVED_ATTRIBUTES",
@@ -12216,6 +12636,14 @@
12216
12636
  "module": "src/config/sanitize.ts"
12217
12637
  }
12218
12638
  },
12639
+ {
12640
+ "kind": "js",
12641
+ "name": "linkAttributes",
12642
+ "declaration": {
12643
+ "name": "linkAttributes",
12644
+ "module": "src/config/sanitize.ts"
12645
+ }
12646
+ },
12219
12647
  {
12220
12648
  "kind": "js",
12221
12649
  "name": "readTag",
@@ -12246,6 +12674,12 @@
12246
12674
  "declarations": [],
12247
12675
  "exports": []
12248
12676
  },
12677
+ {
12678
+ "kind": "javascript-module",
12679
+ "path": "src/config/step-label.ts",
12680
+ "declarations": [],
12681
+ "exports": []
12682
+ },
12249
12683
  {
12250
12684
  "kind": "javascript-module",
12251
12685
  "path": "src/config/tool-table.ts",
@@ -12903,7 +13337,7 @@
12903
13337
  "declarations": [
12904
13338
  {
12905
13339
  "kind": "class",
12906
- "description": "Connects an `AparteChatBinding` to a `AparteConversationManager`.\n\nResponsibilities:\n - Load messages when `setConversationId(id)` is called.\n - Lazily create a conversation on the first user `aparte-send` if none active.\n - Persist updates triggered by `aparte-path-changed` (branch nav, retry, edit).\n - Dispatch `aparte-abort` when the active conversation changes mid-stream.\n\nUsage:\n```ts\nconst controller = new AparteConversationController(binding);\nconst stop = controller.bind();\ncontroller.setConversationId('abc-123');\n// …\nstop();\n```",
13340
+ "description": "Connects an `AparteChatBinding` to a `AparteConversationManager`.\n\nResponsibilities:\n - Load messages when `setConversationId(id)` is called.\n - Lazily create a conversation on the first user `aparte-send` if none active.\n - Persist updates triggered by `aparte-path-changed` (branch nav, retry, edit).\n - Dispatch `aparte-abort` when the active conversation changes mid-stream.\n - Leave the open conversation readable on the host while bound, so `AparteClient` can say\n which conversation each turn belongs to (`StreamRunOptions.conversationId`).\n\nUsage:\n```ts\nconst controller = new AparteConversationController(binding);\nconst stop = controller.bind();\ncontroller.setConversationId('abc-123');\n// …\nstop();\n```",
12907
13341
  "name": "AparteConversationController",
12908
13342
  "members": [
12909
13343
  {
@@ -13125,6 +13559,17 @@
13125
13559
  "description": "The current active conversation id (null when none selected).",
13126
13560
  "readonly": true
13127
13561
  },
13562
+ {
13563
+ "kind": "method",
13564
+ "name": "_openId",
13565
+ "privacy": "private",
13566
+ "return": {
13567
+ "type": {
13568
+ "text": "string | null"
13569
+ }
13570
+ },
13571
+ "description": "The conversation a message sent now belongs to: the open one, or — for the first\nmessage of a chat — the one that send is creating. `createNew()` makes it the\nmanager's active conversation synchronously, so the client, which hears the send\nright after this controller does, already finds it there; this controller's own id\nfollows once the conversation is saved. `_ensureConversationAndPersist` reads the\nsame two places to decide where the message is saved, so a turn is carried to the\nconversation its message was written in."
13572
+ },
13128
13573
  {
13129
13574
  "kind": "method",
13130
13575
  "name": "_manager",
@@ -13212,6 +13657,16 @@
13212
13657
  },
13213
13658
  "description": "Attach event listeners to the binding host. Returns an unbind function."
13214
13659
  },
13660
+ {
13661
+ "kind": "field",
13662
+ "name": "_withdrawOpenConversation",
13663
+ "type": {
13664
+ "text": "(() => void) | null"
13665
+ },
13666
+ "privacy": "private",
13667
+ "default": "null",
13668
+ "description": "Takes the open-conversation reader off the host (see `bind`)."
13669
+ },
13215
13670
  {
13216
13671
  "kind": "field",
13217
13672
  "name": "_stopHydrationRetry",
@@ -14381,6 +14836,72 @@
14381
14836
  }
14382
14837
  ]
14383
14838
  },
14839
+ {
14840
+ "kind": "javascript-module",
14841
+ "path": "src/conversations/open-conversation.ts",
14842
+ "declarations": [
14843
+ {
14844
+ "kind": "function",
14845
+ "name": "offerOpenConversation",
14846
+ "return": {
14847
+ "type": {
14848
+ "text": "() => void"
14849
+ }
14850
+ },
14851
+ "parameters": [
14852
+ {
14853
+ "name": "host",
14854
+ "type": {
14855
+ "text": "HTMLElement"
14856
+ }
14857
+ },
14858
+ {
14859
+ "name": "read",
14860
+ "type": {
14861
+ "text": "() => string | null"
14862
+ }
14863
+ }
14864
+ ],
14865
+ "description": "Leave `read` on `host`, the chat's element, for openConversationOf. Returns what\ntakes it away again — and only if it is still the one that was left, so the teardown of a\ncontroller a framework has already replaced on the same element undoes nothing."
14866
+ },
14867
+ {
14868
+ "kind": "function",
14869
+ "name": "openConversationOf",
14870
+ "return": {
14871
+ "type": {
14872
+ "text": "string | null"
14873
+ }
14874
+ },
14875
+ "parameters": [
14876
+ {
14877
+ "name": "el",
14878
+ "type": {
14879
+ "text": "Element | null | undefined"
14880
+ }
14881
+ }
14882
+ ],
14883
+ "description": "The id of the conversation open in the chat `el` is in, as of this moment — `null` when\nthe chat has none open, or when nothing manages the chat's conversations at all.\n\nRead when the person acts, not before: it answers for now, and a conversation the person\nopens a moment later is another answer."
14884
+ }
14885
+ ],
14886
+ "exports": [
14887
+ {
14888
+ "kind": "js",
14889
+ "name": "offerOpenConversation",
14890
+ "declaration": {
14891
+ "name": "offerOpenConversation",
14892
+ "module": "src/conversations/open-conversation.ts"
14893
+ }
14894
+ },
14895
+ {
14896
+ "kind": "js",
14897
+ "name": "openConversationOf",
14898
+ "declaration": {
14899
+ "name": "openConversationOf",
14900
+ "module": "src/conversations/open-conversation.ts"
14901
+ }
14902
+ }
14903
+ ]
14904
+ },
14384
14905
  {
14385
14906
  "kind": "javascript-module",
14386
14907
  "path": "src/conversations/types.ts",
@@ -17771,6 +18292,10 @@
17771
18292
  ],
17772
18293
  "description": "Relabel the chips under `root` in the chat's current language."
17773
18294
  },
18295
+ {
18296
+ "kind": "variable",
18297
+ "name": "anchor"
18298
+ },
17774
18299
  {
17775
18300
  "kind": "function",
17776
18301
  "name": "renderSourceList",
@@ -21254,6 +21779,14 @@
21254
21779
  "module": "./element-attributes.js"
21255
21780
  }
21256
21781
  },
21782
+ {
21783
+ "kind": "js",
21784
+ "name": "AparteComposerSendAttributes",
21785
+ "declaration": {
21786
+ "name": "AparteComposerSendAttributes",
21787
+ "module": "./element-attributes.js"
21788
+ }
21789
+ },
21257
21790
  {
21258
21791
  "kind": "js",
21259
21792
  "name": "AparteComposerToolbarAttributes",
@@ -23444,6 +23977,16 @@
23444
23977
  "privacy": "private",
23445
23978
  "default": "false"
23446
23979
  },
23980
+ {
23981
+ "kind": "field",
23982
+ "name": "_clearingStreamingAttr",
23983
+ "type": {
23984
+ "text": "boolean"
23985
+ },
23986
+ "privacy": "private",
23987
+ "default": "false",
23988
+ "description": "The element is taking its own `streaming` attribute off: the change says what the state already does."
23989
+ },
23447
23990
  {
23448
23991
  "kind": "field",
23449
23992
  "name": "_segments",
@@ -24938,7 +25481,7 @@
24938
25481
  "kind": "field",
24939
25482
  "name": "_onLinkClick",
24940
25483
  "privacy": "private",
24941
- "description": "A link the MODEL wrote is about to be followed. Announced as a cancelable event\nbefore the browser acts, so a host can route it — an external browser, a\nconfirmation, an embedded view — without intercepting the DOM. With\nno listener the browser follows it, which the sanitizer has already made open in\na new tab for an external URL; `preventDefault()` on the event cancels the click.\n\nOnly anchors inside the message body: the action bar and the branch picker are\nbuttons, and an attachment tile is its own event."
25484
+ "description": "A link the MODEL wrote is about to be followed. Announced as a cancelable event\nbefore the browser acts, so a host can route it — an external browser, a\nconfirmation, an embedded view — without intercepting the DOM. With\nno listener the browser follows it, where the config's link target sent it (a new\ntab by default, `setLinkTarget`); `preventDefault()` on the event cancels the click.\n\nOnly anchors inside the message body: the action bar and the branch picker are\nbuttons, and an attachment tile is its own event."
24942
25485
  },
24943
25486
  {
24944
25487
  "kind": "field",
@@ -25185,6 +25728,17 @@
25185
25728
  }
25186
25729
  }
25187
25730
  ]
25731
+ },
25732
+ {
25733
+ "kind": "method",
25734
+ "name": "_dropStreamingAttribute",
25735
+ "privacy": "private",
25736
+ "return": {
25737
+ "type": {
25738
+ "text": "void"
25739
+ }
25740
+ },
25741
+ "description": "A reply in flight is declared with `streaming`, and it ends as `updateMessage({ status })`\n— which moved the state and left the attribute. A vanilla viewport writes it on the bubble\nit appends for a reply on its way and nothing took it off, so every finished reply of a\ntranscript still matched `[streaming]`. It comes off here, once the state is off.\n`streaming=\"false\"` is left alone: it already says so."
25188
25742
  }
25189
25743
  ],
25190
25744
  "events": [
@@ -25300,7 +25854,7 @@
25300
25854
  "type": {
25301
25855
  "text": "boolean"
25302
25856
  },
25303
- "description": "Hides the action bar and shows the caret while a reply is in flight."
25857
+ "description": "Hides the action bar and shows the caret while a reply is in flight. Whoever set it, the element takes it off when the reply ends, so `[streaming]` never matches a finished reply. A test asks `[aria-busy=\"true\"]` on the message instead, which every framework draws the same way."
25304
25858
  },
25305
25859
  {
25306
25860
  "name": "name",
@@ -25652,7 +26206,7 @@
25652
26206
  "declarations": [
25653
26207
  {
25654
26208
  "kind": "class",
25655
- "description": "AparteChat - The Shell\n\nThe container element for a chat. It lays out its Light DOM children as a flex\ncolumn: an `<aparte-chat-viewport>` takes the space left over (`flex: 1 1 auto`)\nand scrolls, an `<aparte-composer>` keeps its own height below it. Light DOM on\npurpose, so the page's own global CSS reaches inside.\n\nThe presence of an `<aparte-chat-viewport>` child at connect is the exact test for\n\"the author composed this\". Find one and the children are used as given — this\nelement moves none of them, so anything else you drop in (a header, a banner above\nthe composer) is simply another row of that column, in DOM order. Find none and\n`innerHTML` is OVERWRITTEN with a default composition — a viewport, an\n`<aparte-elicitation>` presenter, and a composer shell holding an input and a send\nbutton, plus the two attachment primitives when `attachments` is set — so children\nwritten without a viewport anywhere inside them are destroyed, that header included.\nThe test is a DESCENDANT query, so a viewport nested in a wrapper of your own still\ncounts — compose it yourself with the viewport somewhere in the tree, or leave the tag\nempty. Angular's wrapper sets `framework-managed` instead of relying on that test,\nbecause its children do not exist yet when this element upgrades; React, Vue and\nSvelte never create this element at all, so the question does not arise for them.\n\nBeing a component (not a bare `<div>`), it also owns behaviour a wrapper div\ncan't: it watches its own viewport and says whether the conversation is empty —\n`data-empty`, in the attribute list below, is that watcher's output — and with\n`center-empty` the stylesheet keeps the composer centered as a welcome state until\nthe first `<aparte-chat-bubble>` lands, then slides to the normal layout, with no\nexternal JavaScript. The watcher needs a viewport somewhere inside: hand-written\nmarkup always has one, because composing the default injects it, and Angular's\n`framework-managed` host gets its watcher once the template has rendered the\nviewport. The stylesheet centers through\n`aparte-chat[center-empty][data-empty]` and its DIRECT viewport child, so a\nframework-managed host that nests the viewport inside a container of its own gets\nnothing from the attribute — the wrappers ship their own centered layout.\n\nIt is also one of the anchors where core re-declares its derived CSS layer, so\noverriding a master — `--aparte-primary`, a surface, a text colour — on a single\n`<aparte-chat>` re-derives the values computed from it for that instance rather\nthan moving one button. That is per-instance theming. The literal palette is\ndeliberately not re-declared here, so a chat nested in a dark wrapper stays dark.\n\nPresentational only: it does NOT wire a transport/client. Attach an\n`AparteClient`, or handle `aparte-send` yourself, as with the primitives.\nSize the element via CSS (a height, or let it fill a sized parent).\n\nComposing it yourself is the other form, and the container still lays it out and still\nruns `center-empty`. It is written out here rather than as a second `@example` for a\nmechanical reason: every element-own example is concatenated into ONE live frame on the\ngenerated reference page, so a second `<aparte-chat>` there rendered as a second whole\nchat — two empty composers with 600px of nothing between them.\n\n```html\n<aparte-chat center-empty attachments style=\"height: 24rem\">\n <aparte-chat-viewport></aparte-chat-viewport>\n <aparte-composer>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n </aparte-composer>\n</aparte-chat>\n```",
26209
+ "description": "AparteChat - The Shell\n\nThe container element for a chat. It lays out its Light DOM children as a flex\ncolumn: an `<aparte-chat-viewport>` takes the space left over (`flex: 1 1 auto`)\nand scrolls, an `<aparte-composer>` keeps its own height below it. Light DOM on\npurpose, so the page's own global CSS reaches inside.\n\nThe presence of an `<aparte-chat-viewport>` child at connect is the exact test for\n\"the author composed this\". Find one and the children are used as given — this\nelement moves none of them, so anything else you drop in (a header, a banner above\nthe composer) is simply another row of that column, in DOM order. Find none and\n`innerHTML` is OVERWRITTEN with a default composition — a viewport, an\n`<aparte-elicitation>` presenter, and a composer shell holding an input and a send\nbutton, plus the two attachment primitives when `attachments` is set — so children\nwritten without a viewport anywhere inside them are destroyed, that header included.\nThe test is a DESCENDANT query, so a viewport nested in a wrapper of your own still\ncounts — compose it yourself with the viewport somewhere in the tree, or leave the tag\nempty. Angular's wrapper sets `framework-managed` instead of relying on that test,\nbecause its children do not exist yet when this element upgrades; React, Vue and\nSvelte never create this element at all, so the question does not arise for them.\n\nBeing a component (not a bare `<div>`), it also owns behaviour a wrapper div\ncan't: it watches its own viewport and says whether the conversation is empty —\n`data-empty`, in the attribute list below, is that watcher's output — and with\n`center-empty` the stylesheet keeps the composer centered as a welcome state until\nthe first `<aparte-chat-bubble>` lands, then slides to the normal layout, with no\nexternal JavaScript. The watcher needs a viewport somewhere inside: hand-written\nmarkup always has one, because composing the default injects it, and Angular's\n`framework-managed` host gets its watcher once the template has rendered the\nviewport. The stylesheet centers through\n`aparte-chat[center-empty][data-empty]` and its DIRECT viewport child, so a\nframework-managed host that nests the viewport inside a container of its own gets\nnothing from the attribute — the wrappers ship their own centered layout.\n\nIt is also one of the anchors where core re-declares its derived CSS layer, so\noverriding a master — `--aparte-primary`, a surface, a text colour — on a single\n`<aparte-chat>` re-derives the values computed from it for that instance rather\nthan moving one button. That is per-instance theming. The literal palette is\ndeliberately not re-declared here, so a chat nested in a dark wrapper stays dark.\n\nPresentational only: it does NOT wire a transport/client. Attach an\n`AparteClient`, or handle `aparte-send` yourself, as with the primitives.\nSize the element via CSS (a height, or let it fill a sized parent).\n\nEvery event listed below reaches a listener on this element: the composer's, the\ntranscript's and each message's bubble up from the parts, and the turn's lifecycle comes\nfrom the host that drives the chat (an `AparteClient`, or the framework host a wrapper\nruns). The page-wide ones go out on `window` instead — `aparte-abort`, `aparte-compact`,\n`aparte-config-change` — and a listener here never hears them.\n\nComposing it yourself is the other form, and the container still lays it out and still\nruns `center-empty`. It is written out here rather than as a second `@example` for a\nmechanical reason: every element-own example is concatenated into ONE live frame on the\ngenerated reference page, so a second `<aparte-chat>` there rendered as a second whole\nchat — two empty composers with 600px of nothing between them.\n\n```html\n<aparte-chat center-empty attachments style=\"height: 24rem\">\n <aparte-chat-viewport></aparte-chat-viewport>\n <aparte-composer>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n </aparte-composer>\n</aparte-chat>\n```",
25656
26210
  "name": "AparteChat",
25657
26211
  "cssProperties": [
25658
26212
  {
@@ -25843,6 +26397,169 @@
25843
26397
  "description": "Empty means no message AND none on its way. A viewport that says `loading` holds\nno bubble yet but does not count as empty, so the welcome and the centred composer\nstay hidden while a conversation is being fetched."
25844
26398
  }
25845
26399
  ],
26400
+ "events": [
26401
+ {
26402
+ "type": {
26403
+ "text": "CustomEvent<AparteSendEventDetail>"
26404
+ },
26405
+ "description": "A message was sent from the composer: its text, its attachments and the chat it is for. An `AparteClient` answers it; with none, your loop starts here. In a framework wrapper's chat the message is already in the thread when this fires: do not append it again.",
26406
+ "name": "aparte-send"
26407
+ },
26408
+ {
26409
+ "type": {
26410
+ "text": "CustomEvent"
26411
+ },
26412
+ "description": "Stop was pressed in the composer. No detail; the turn it stops ends with `aparte-message-aborted`.",
26413
+ "name": "aparte-cancel"
26414
+ },
26415
+ {
26416
+ "type": {
26417
+ "text": "CustomEvent<AparteComposerChangeEventDetail>"
26418
+ },
26419
+ "description": "The composer's state changed — its value, streaming, disabled, attachments or panel — folded into one event that carries all of it.",
26420
+ "name": "aparte-composer-change"
26421
+ },
26422
+ {
26423
+ "type": {
26424
+ "text": "CustomEvent<AparteActionClickEventDetail>"
26425
+ },
26426
+ "description": "A button your app placed in the composer (`<aparte-composer-action>`) was clicked; `detail.actionId` says which.",
26427
+ "name": "aparte-action-click"
26428
+ },
26429
+ {
26430
+ "type": {
26431
+ "text": "CustomEvent<AparteAttachmentPreviewEventDetail>"
26432
+ },
26433
+ "description": "An attachment was clicked — in a message, or in the composer's strip before sending — asking the app to open it. Sent only once `setHostHandlers` declared `attachmentPreview` (or `filePreview`, for a sent file).",
26434
+ "name": "aparte-attachment-preview"
26435
+ },
26436
+ {
26437
+ "type": {
26438
+ "text": "CustomEvent<AparteMessageStartEventDetail>"
26439
+ },
26440
+ "description": "A reply began, before its first token.",
26441
+ "name": "aparte-message-start"
26442
+ },
26443
+ {
26444
+ "type": {
26445
+ "text": "CustomEvent<AparteSegmentUpdateEventDetail>"
26446
+ },
26447
+ "description": "A segment of the reply grew or settled while it streamed.",
26448
+ "name": "aparte-segment-update"
26449
+ },
26450
+ {
26451
+ "type": {
26452
+ "text": "CustomEvent<AparteMessageDoneEventDetail>"
26453
+ },
26454
+ "description": "The reply finished: its token usage, and why the model stopped when the provider said (`finishReason: 'length'` is a reply cut off).",
26455
+ "name": "aparte-message-done"
26456
+ },
26457
+ {
26458
+ "type": {
26459
+ "text": "CustomEvent<AparteMessageErrorEventDetail>"
26460
+ },
26461
+ "description": "The turn failed; `detail.error` is the failure, with its `code`. The event to bind to show it.",
26462
+ "name": "aparte-message-error"
26463
+ },
26464
+ {
26465
+ "type": {
26466
+ "text": "CustomEvent<AparteMessageAbortedEventDetail>"
26467
+ },
26468
+ "description": "The turn ended early: Stop was pressed, or `abort()` was called.",
26469
+ "name": "aparte-message-aborted"
26470
+ },
26471
+ {
26472
+ "type": {
26473
+ "text": "CustomEvent<AparteMessagePausedEventDetail>"
26474
+ },
26475
+ "description": "A server loop paused the turn on calls only the page can answer — an approval, a browser tool. Not the end: the reply is worth saving now, and `aparte-message-resumed` follows the answer.",
26476
+ "name": "aparte-message-paused"
26477
+ },
26478
+ {
26479
+ "type": {
26480
+ "text": "CustomEvent<AparteMessageResumedEventDetail>"
26481
+ },
26482
+ "description": "A paused turn goes on, into the same reply, once the page answered its calls.",
26483
+ "name": "aparte-message-resumed"
26484
+ },
26485
+ {
26486
+ "type": {
26487
+ "text": "CustomEvent<AparteToolApprovalRequestDetail>"
26488
+ },
26489
+ "description": "A tool marked `needsApproval` is about to run and waits for a decision. Core's own gate asks in the composer; listen to present the decision yourself.",
26490
+ "name": "aparte-tool-approval-request"
26491
+ },
26492
+ {
26493
+ "type": {
26494
+ "text": "CustomEvent<AparteConversationLoadedDetail>"
26495
+ },
26496
+ "description": "A conversation's messages are on screen, after a load that succeeded and that nobody left meanwhile: the moment to scroll or to measure.",
26497
+ "name": "aparte-conversation-loaded"
26498
+ },
26499
+ {
26500
+ "type": {
26501
+ "text": "CustomEvent<ApartePathChangedEventDetail>"
26502
+ },
26503
+ "description": "The active branch changed — after a retry, an edit or a move in the `‹1/2›` picker — carrying the messages now on the path.",
26504
+ "name": "aparte-path-changed"
26505
+ },
26506
+ {
26507
+ "type": {
26508
+ "text": "CustomEvent"
26509
+ },
26510
+ "description": "The transcript was emptied (`clearAll()` finished). No detail.",
26511
+ "name": "aparte-reset-done"
26512
+ },
26513
+ {
26514
+ "type": {
26515
+ "text": "CustomEvent<AparteActionEventDetail>"
26516
+ },
26517
+ "description": "A custom button of a message's action bar, one `registerAction()` placed there, was pressed; `detail.actionId` says which.",
26518
+ "name": "aparte-action"
26519
+ },
26520
+ {
26521
+ "type": {
26522
+ "text": "CustomEvent<AparteRetryEventDetail>"
26523
+ },
26524
+ "description": "Retry was pressed on a reply; the host forks the turn.",
26525
+ "name": "aparte-retry"
26526
+ },
26527
+ {
26528
+ "type": {
26529
+ "text": "CustomEvent<AparteEditEventDetail>"
26530
+ },
26531
+ "description": "An edit of a message was saved; the host answers it again from there.",
26532
+ "name": "aparte-edit"
26533
+ },
26534
+ {
26535
+ "type": {
26536
+ "text": "CustomEvent<AparteFeedbackEventDetail>"
26537
+ },
26538
+ "description": "Thumbs up or down on a reply.",
26539
+ "name": "aparte-feedback"
26540
+ },
26541
+ {
26542
+ "type": {
26543
+ "text": "CustomEvent<AparteFeedbackReasonEventDetail>"
26544
+ },
26545
+ "description": "The reason picked after a thumbs-down.",
26546
+ "name": "aparte-feedback-reason"
26547
+ },
26548
+ {
26549
+ "type": {
26550
+ "text": "CustomEvent<AparteMessageInfoEventDetail>"
26551
+ },
26552
+ "description": "The info button of a reply was pressed; `detail.usage` carries its token usage when known.",
26553
+ "name": "aparte-message-info"
26554
+ },
26555
+ {
26556
+ "type": {
26557
+ "text": "CustomEvent<AparteLinkClickEventDetail>"
26558
+ },
26559
+ "description": "A link the model wrote is about to be followed. Cancelable: `preventDefault()` keeps the browser from navigating, so the app can route the link itself.",
26560
+ "name": "aparte-link-click"
26561
+ }
26562
+ ],
25846
26563
  "attributes": [
25847
26564
  {
25848
26565
  "name": "placeholder",
@@ -25879,6 +26596,13 @@
25879
26596
  },
25880
26597
  "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`."
25881
26598
  },
26599
+ {
26600
+ "type": {
26601
+ "text": "boolean"
26602
+ },
26603
+ "description": "Reflected BY the element once it is connected: the marker the React, Vue and Svelte wrappers put on the `<div>` they render in its place, and Angular's component on its host. `[data-aparte-chat]` finds the chat whatever the framework, which is the root a test starts from. Every rule core ships for `[data-aparte-chat]` names `aparte-chat` too, so the attribute restyles nothing. Read-only.",
26604
+ "name": "data-aparte-chat"
26605
+ },
25882
26606
  {
25883
26607
  "type": {
25884
26608
  "text": "boolean"
@@ -27384,7 +28108,7 @@
27384
28108
  "type": {
27385
28109
  "text": "string"
27386
28110
  },
27387
- "description": "Placeholder text (fallback: reads from aparte-composer)"
28111
+ "description": "Placeholder text (fallback: reads from aparte-composer). It is also the field's accessible name: the field is a `role=\"textbox\"` whose `aria-label` is this text, and it has no `placeholder` attribute, so a test finds it with `getByRole('textbox', { name })`, not `getByPlaceholder`."
27388
28112
  },
27389
28113
  {
27390
28114
  "name": "max-height",
@@ -27597,6 +28321,25 @@
27597
28321
  }
27598
28322
  ]
27599
28323
  },
28324
+ {
28325
+ "kind": "method",
28326
+ "name": "_setAct",
28327
+ "privacy": "private",
28328
+ "return": {
28329
+ "type": {
28330
+ "text": "void"
28331
+ }
28332
+ },
28333
+ "parameters": [
28334
+ {
28335
+ "name": "act",
28336
+ "type": {
28337
+ "text": "'send' | 'stop' | 'submit'"
28338
+ }
28339
+ }
28340
+ ],
28341
+ "description": "What a press does now, said on the button (where the stylesheet reads it) and on this\nelement (where a test does: it asks for the act, then presses the button inside).\nOne writer, so the two can never say different things."
28342
+ },
27600
28343
  {
27601
28344
  "kind": "method",
27602
28345
  "name": "_syncState",
@@ -27657,6 +28400,15 @@
27657
28400
  }
27658
28401
  }
27659
28402
  ],
28403
+ "attributes": [
28404
+ {
28405
+ "type": {
28406
+ "text": "string"
28407
+ },
28408
+ "description": "Reflected BY the element, from the button inside it: what a press does now. `send` at rest, `stop` while a reply streams, `submit` while a panel asks a question. A test reads it here and presses the `button` inside: `aparte-composer-send[data-act=\"stop\"] button`. Read-only.",
28409
+ "name": "data-act"
28410
+ }
28411
+ ],
27660
28412
  "superclass": {
27661
28413
  "name": "HTMLElement"
27662
28414
  },
@@ -34171,517 +34923,6 @@
34171
34923
  }
34172
34924
  ]
34173
34925
  },
34174
- {
34175
- "kind": "javascript-module",
34176
- "path": "src/components/suggestions/aparte-suggestions.ts",
34177
- "declarations": [
34178
- {
34179
- "kind": "class",
34180
- "description": "Prompt starters — a row of suggested prompts a reader clicks instead of typing.\n\nEvery chat product opens on three or four of these. This element is that pattern\ndone once, wearing the button recipe.\n\nA click goes THROUGH the composer — `setValue()` then `submit()` — never a synthetic\n`aparte-send`. The composer's `submit()` is where every gate lives (disabled, already\nstreaming, `requireModelSelection`), and a chip that bypassed them could send a\nrequest with an empty model id while the composer was visibly greyed out. So the\nelement needs a composer: the nearest `<aparte-composer>` ancestor, else the one\nserving the chat named by `target`, else the first one in the document.\n\nCore honours the click alone, so it is live by default. `aparte-suggestion` fires first and is cancelable — `preventDefault()`\nleaves the composer untouched, for an app that wants the prompt for itself.\n\nIt declares no custom property of its own: the gap comes from the global\n`--aparte-space-*` tokens and the chips from the `aparte-btn` recipe, so it inherits\na theme rather than exposing knobs to re-set.",
34181
- "name": "AparteSuggestions",
34182
- "members": [
34183
- {
34184
- "kind": "field",
34185
- "name": "_suggestions",
34186
- "type": {
34187
- "text": "AparteSuggestion[]"
34188
- },
34189
- "privacy": "private",
34190
- "default": "[]"
34191
- },
34192
- {
34193
- "kind": "field",
34194
- "name": "_composer",
34195
- "type": {
34196
- "text": "AparteComposer | null"
34197
- },
34198
- "privacy": "private",
34199
- "default": "null"
34200
- },
34201
- {
34202
- "kind": "field",
34203
- "name": "_transcript",
34204
- "type": {
34205
- "text": "Element | null"
34206
- },
34207
- "privacy": "private",
34208
- "default": "null",
34209
- "description": "The viewport of the chat this row serves, while `empty-only` follows it."
34210
- },
34211
- {
34212
- "kind": "field",
34213
- "name": "_transcriptObserver",
34214
- "type": {
34215
- "text": "MutationObserver | null"
34216
- },
34217
- "privacy": "private",
34218
- "default": "null"
34219
- },
34220
- {
34221
- "kind": "field",
34222
- "name": "_sent",
34223
- "type": {
34224
- "text": "boolean"
34225
- },
34226
- "privacy": "private",
34227
- "default": "false",
34228
- "description": "The composer sent since the transcript was last seen empty."
34229
- },
34230
- {
34231
- "kind": "field",
34232
- "name": "_wasEmpty",
34233
- "type": {
34234
- "text": "boolean"
34235
- },
34236
- "privacy": "private",
34237
- "default": "true"
34238
- },
34239
- {
34240
- "kind": "field",
34241
- "name": "_hidOwn",
34242
- "type": {
34243
- "text": "boolean"
34244
- },
34245
- "privacy": "private",
34246
- "default": "false",
34247
- "description": "`hidden` was written by this element, so it is this element's to lift."
34248
- },
34249
- {
34250
- "kind": "field",
34251
- "name": "_onSend",
34252
- "privacy": "private"
34253
- },
34254
- {
34255
- "kind": "field",
34256
- "name": "_applyEmptyOnly",
34257
- "privacy": "private"
34258
- },
34259
- {
34260
- "kind": "field",
34261
- "name": "_onConfigChange",
34262
- "privacy": "private"
34263
- },
34264
- {
34265
- "kind": "field",
34266
- "name": "suggestions",
34267
- "type": {
34268
- "text": "AparteSuggestion[]"
34269
- },
34270
- "description": "Takes the array, or the JSON string the attribute documents.\n\nBoth, because both arrive: React 19 and Svelte assign the PROPERTY whenever the\nelement has one of that name, so `<aparte-suggestions suggestions='[…]'>` — the\ndocumented spelling, typed valid by both wrappers — reaches this setter as a\nstring while the attribute (and so `attributeChangedCallback`) is never written."
34271
- },
34272
- {
34273
- "kind": "method",
34274
- "name": "_groupLabel",
34275
- "privacy": "private",
34276
- "return": {
34277
- "type": {
34278
- "text": "string"
34279
- }
34280
- }
34281
- },
34282
- {
34283
- "kind": "field",
34284
- "name": "_parsed",
34285
- "type": {
34286
- "text": "string | null"
34287
- },
34288
- "privacy": "private",
34289
- "default": "null"
34290
- },
34291
- {
34292
- "kind": "method",
34293
- "name": "_readAttribute",
34294
- "privacy": "private",
34295
- "return": {
34296
- "type": {
34297
- "text": "void"
34298
- }
34299
- },
34300
- "description": "Parse the `suggestions` attribute once per value. The attribute callback and\n`connectedCallback` both arrive for a parsed element, in an order the parser\ndecides; without this, an invalid value warned twice."
34301
- },
34302
- {
34303
- "kind": "method",
34304
- "name": "_resolveComposer",
34305
- "privacy": "private",
34306
- "return": {
34307
- "type": {
34308
- "text": "AparteComposer | null"
34309
- }
34310
- },
34311
- "description": "The composer the click goes through, resolved the way the composer's own parts\nresolve it — by ancestry first. Outside a composer, `target` names the chat and the\ncomposer serving it is either inside that chat or points at it; the first composer\non the page is the last resort, so the one-chat page needs no attribute at all."
34312
- },
34313
- {
34314
- "kind": "method",
34315
- "name": "_watchComposer",
34316
- "privacy": "private",
34317
- "return": {
34318
- "type": {
34319
- "text": "void"
34320
- }
34321
- }
34322
- },
34323
- {
34324
- "kind": "method",
34325
- "name": "_resolveTranscript",
34326
- "privacy": "private",
34327
- "return": {
34328
- "type": {
34329
- "text": "Element | null"
34330
- }
34331
- },
34332
- "description": "The transcript of the chat the click goes to: the chat around the composer, else\nthe one around this element, else the one `target` names (here, or on that\ncomposer). No last resort on the page, unlike the composer's: following another\nchat's transcript would be worse than following none, which falls back to the send."
34333
- },
34334
- {
34335
- "kind": "method",
34336
- "name": "_watchTranscript",
34337
- "privacy": "private",
34338
- "return": {
34339
- "type": {
34340
- "text": "void"
34341
- }
34342
- },
34343
- "description": "Follow the transcript while `empty-only` or `answers` is set, and stop following it when neither is."
34344
- },
34345
- {
34346
- "kind": "field",
34347
- "name": "_onTranscript",
34348
- "privacy": "private"
34349
- },
34350
- {
34351
- "kind": "method",
34352
- "name": "_applyAnswers",
34353
- "privacy": "private",
34354
- "return": {
34355
- "type": {
34356
- "text": "void"
34357
- }
34358
- },
34359
- "description": "`answers`: the replies the LAST message offered, written by a ```suggestions block\n(`setupSuggestionBlocks`) as a hidden `[data-aparte-suggestions]` mark in that\nmessage. A last message that is the person's, or that offers none, shows none: the\noffer was for the answer it came with."
34360
- },
34361
- {
34362
- "kind": "method",
34363
- "name": "_showAnswers",
34364
- "privacy": "private",
34365
- "return": {
34366
- "type": {
34367
- "text": "void"
34368
- }
34369
- },
34370
- "parameters": [
34371
- {
34372
- "name": "list",
34373
- "type": {
34374
- "text": "AparteSuggestion[]"
34375
- }
34376
- }
34377
- ],
34378
- "description": "Show these replies; the same ones already shown redraw nothing (a transcript mutation is frequent)."
34379
- },
34380
- {
34381
- "kind": "method",
34382
- "name": "_setHidden",
34383
- "privacy": "private",
34384
- "return": {
34385
- "type": {
34386
- "text": "void"
34387
- }
34388
- },
34389
- "parameters": [
34390
- {
34391
- "name": "hide",
34392
- "type": {
34393
- "text": "boolean"
34394
- }
34395
- }
34396
- ],
34397
- "description": "Set `hidden`, or lift it only when this element set it: a `hidden` the page wrote stays."
34398
- },
34399
- {
34400
- "kind": "method",
34401
- "name": "_render",
34402
- "privacy": "private",
34403
- "return": {
34404
- "type": {
34405
- "text": "void"
34406
- }
34407
- }
34408
- },
34409
- {
34410
- "kind": "field",
34411
- "name": "_sending",
34412
- "type": {
34413
- "text": "boolean"
34414
- },
34415
- "privacy": "private",
34416
- "default": "false"
34417
- },
34418
- {
34419
- "kind": "field",
34420
- "name": "_sendingTimer",
34421
- "type": {
34422
- "text": "ReturnType<typeof setTimeout> | undefined"
34423
- },
34424
- "privacy": "private"
34425
- },
34426
- {
34427
- "kind": "field",
34428
- "name": "_stopHolding",
34429
- "privacy": "private"
34430
- },
34431
- {
34432
- "kind": "field",
34433
- "name": "_onTurnStart",
34434
- "privacy": "private",
34435
- "description": "The latch ends when ITS chat's turn starts. Another chat's `aparte-message-start` crosses the\nwindow too, and must not release it: the second chip would then send a second message while the\nfirst is still being built. The composer's own rule: an event naming no chat is for every chat."
34436
- },
34437
- {
34438
- "kind": "method",
34439
- "name": "_ownChatId",
34440
- "privacy": "private",
34441
- "return": {
34442
- "type": {
34443
- "text": "string | undefined"
34444
- }
34445
- },
34446
- "description": "The chat the sending composer belongs to: its `target`, else the id of the chat host above it."
34447
- },
34448
- {
34449
- "kind": "method",
34450
- "name": "_holdUntilStreaming",
34451
- "privacy": "private",
34452
- "return": {
34453
- "type": {
34454
- "text": "void"
34455
- }
34456
- },
34457
- "description": "A chip sent: no other chip sends until the turn has started, or a second has passed without one."
34458
- },
34459
- {
34460
- "kind": "method",
34461
- "name": "_activate",
34462
- "privacy": "private",
34463
- "return": {
34464
- "type": {
34465
- "text": "void"
34466
- }
34467
- },
34468
- "parameters": [
34469
- {
34470
- "name": "suggestion",
34471
- "type": {
34472
- "text": "AparteSuggestion"
34473
- }
34474
- }
34475
- ]
34476
- }
34477
- ],
34478
- "events": [
34479
- {
34480
- "name": "aparte-suggestion",
34481
- "type": {
34482
- "text": "CustomEvent<AparteSuggestionEventDetail>"
34483
- },
34484
- "description": "A starter was clicked. Bubbles, and is cancelable: `preventDefault()` stops the composer from being filled or submitted."
34485
- }
34486
- ],
34487
- "attributes": [
34488
- {
34489
- "name": "suggestions",
34490
- "type": {
34491
- "text": "string"
34492
- },
34493
- "description": "The starters, as a JSON array: strings, or `{ \"label\", \"prompt\" }` objects when the visible label and the sent text differ. The `suggestions` PROPERTY takes the same shape without the JSON."
34494
- },
34495
- {
34496
- "name": "target",
34497
- "type": {
34498
- "text": "string"
34499
- },
34500
- "description": "The id of the `<aparte-chat>` whose composer should receive the click, when the element is not inside that composer."
34501
- },
34502
- {
34503
- "name": "empty-only",
34504
- "type": {
34505
- "text": "boolean"
34506
- },
34507
- "description": "Shows the row only while the conversation it serves is empty: hidden (`hidden`) once a message is in its transcript or on its way — a thread being loaded counts — and shown again when the transcript is cleared, by a new chat for instance. The composer's send hides it at once, before its message lands. The element sets and lifts `hidden` itself and never lifts one you set. With no transcript to read — a composer outside any chat — the first send hides it until the attribute is removed."
34508
- },
34509
- {
34510
- "name": "answers",
34511
- "type": {
34512
- "text": "boolean"
34513
- },
34514
- "description": "Shows the replies the LAST message offered instead of fixed starters: a code block in language `suggestions` in that answer (`setupSuggestionBlocks`), e.g. the free times a booking bot proposes. Written by the model, so a reply sends what its chip shows: its label, never a `prompt`. Empty until an answer offers some, emptied the moment a message is sent, and when the last message is the person's."
34515
- },
34516
- {
34517
- "type": {
34518
- "text": "string"
34519
- },
34520
- "description": "`send` (default): the click fills the composer and submits. `fill`: the click fills the composer and focuses it, so the reader edits first.",
34521
- "name": "mode"
34522
- },
34523
- {
34524
- "type": {
34525
- "text": "boolean"
34526
- },
34527
- "description": "Reflected BY the element while it has no suggestion to show; the stylesheet hides it then. Read-only, do not set it yourself.",
34528
- "name": "data-empty"
34529
- }
34530
- ],
34531
- "superclass": {
34532
- "name": "HTMLElement"
34533
- },
34534
- "tagName": "aparte-suggestions",
34535
- "customElement": true,
34536
- "examples": [
34537
- "<!-- The starters sit above the input, inside the composer; a click fills and sends. -->\n<aparte-composer>\n <aparte-suggestions empty-only\n suggestions='[\"What is aparté?\", {\"label\": \"Write a haiku\", \"prompt\": \"Write a haiku about web components.\"}]'>\n </aparte-suggestions>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n</aparte-composer>"
34538
- ]
34539
- }
34540
- ],
34541
- "exports": [
34542
- {
34543
- "kind": "js",
34544
- "name": "AparteSuggestions",
34545
- "declaration": {
34546
- "name": "AparteSuggestions",
34547
- "module": "src/components/suggestions/aparte-suggestions.ts"
34548
- }
34549
- },
34550
- {
34551
- "kind": "custom-element-definition",
34552
- "name": "aparte-suggestions",
34553
- "declaration": {
34554
- "name": "AparteSuggestions",
34555
- "module": "src/components/suggestions/aparte-suggestions.ts"
34556
- }
34557
- }
34558
- ]
34559
- },
34560
- {
34561
- "kind": "javascript-module",
34562
- "path": "src/components/suggestions/index.ts",
34563
- "declarations": [],
34564
- "exports": [
34565
- {
34566
- "kind": "js",
34567
- "name": "AparteSuggestions",
34568
- "declaration": {
34569
- "name": "AparteSuggestions",
34570
- "module": "./aparte-suggestions.js"
34571
- }
34572
- },
34573
- {
34574
- "kind": "js",
34575
- "name": "setupSuggestionBlocks",
34576
- "declaration": {
34577
- "name": "setupSuggestionBlocks",
34578
- "module": "./suggestion-blocks.js"
34579
- }
34580
- },
34581
- {
34582
- "kind": "js",
34583
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
34584
- "declaration": {
34585
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
34586
- "module": "./suggestion-blocks.js"
34587
- }
34588
- },
34589
- {
34590
- "kind": "js",
34591
- "name": "AparteSuggestion",
34592
- "declaration": {
34593
- "name": "AparteSuggestion",
34594
- "module": "./aparte-suggestions.js"
34595
- }
34596
- },
34597
- {
34598
- "kind": "js",
34599
- "name": "AparteSuggestionEventDetail",
34600
- "declaration": {
34601
- "name": "AparteSuggestionEventDetail",
34602
- "module": "./aparte-suggestions.js"
34603
- }
34604
- }
34605
- ]
34606
- },
34607
- {
34608
- "kind": "javascript-module",
34609
- "path": "src/components/suggestions/suggestion-blocks.ts",
34610
- "declarations": [
34611
- {
34612
- "kind": "variable",
34613
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
34614
- "type": {
34615
- "text": "string"
34616
- },
34617
- "default": "'suggestions'",
34618
- "description": "The language the block is written in."
34619
- },
34620
- {
34621
- "kind": "function",
34622
- "name": "visibleReply",
34623
- "return": {
34624
- "type": {
34625
- "text": "string | null"
34626
- }
34627
- },
34628
- "parameters": [
34629
- {
34630
- "name": "reply",
34631
- "type": {
34632
- "text": "Reply"
34633
- }
34634
- }
34635
- ],
34636
- "description": "A model-written reply, reduced to what its button shows: the label alone, never a `prompt`.\nRuns of whitespace collapse to one space. `null` for a reply with no label to see (blank),\na label with anything in it that draws nothing or reorders what is drawn (bidi controls,\ntag characters, variation selectors, stray joiners), and a label past 100 characters: what\nis sent must be exactly what the person can read on the chip."
34637
- },
34638
- {
34639
- "kind": "function",
34640
- "name": "setupSuggestionBlocks",
34641
- "return": {
34642
- "type": {
34643
- "text": "() => void"
34644
- }
34645
- },
34646
- "parameters": [
34647
- {
34648
- "name": "config",
34649
- "default": "aparteGlobalConfig",
34650
- "type": {
34651
- "text": "AparteConfig"
34652
- }
34653
- }
34654
- ],
34655
- "description": "Read the code blocks in language `suggestions` in replies as the replies that\n`<aparte-suggestions answers>` offers. Returns the function that stops it. Off until called: a block is then no longer\nshown as code, so it is the app's choice."
34656
- }
34657
- ],
34658
- "exports": [
34659
- {
34660
- "kind": "js",
34661
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
34662
- "declaration": {
34663
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
34664
- "module": "src/components/suggestions/suggestion-blocks.ts"
34665
- }
34666
- },
34667
- {
34668
- "kind": "js",
34669
- "name": "visibleReply",
34670
- "declaration": {
34671
- "name": "visibleReply",
34672
- "module": "src/components/suggestions/suggestion-blocks.ts"
34673
- }
34674
- },
34675
- {
34676
- "kind": "js",
34677
- "name": "setupSuggestionBlocks",
34678
- "declaration": {
34679
- "name": "setupSuggestionBlocks",
34680
- "module": "src/components/suggestions/suggestion-blocks.ts"
34681
- }
34682
- }
34683
- ]
34684
- },
34685
34926
  {
34686
34927
  "kind": "javascript-module",
34687
34928
  "path": "src/components/viewport/aparte-chat-viewport.ts",
@@ -36550,6 +36791,517 @@
36550
36791
  }
36551
36792
  ]
36552
36793
  },
36794
+ {
36795
+ "kind": "javascript-module",
36796
+ "path": "src/components/suggestions/aparte-suggestions.ts",
36797
+ "declarations": [
36798
+ {
36799
+ "kind": "class",
36800
+ "description": "Prompt starters — a row of suggested prompts a reader clicks instead of typing.\n\nEvery chat product opens on three or four of these. This element is that pattern\ndone once, wearing the button recipe.\n\nA click goes THROUGH the composer — `setValue()` then `submit()` — never a synthetic\n`aparte-send`. The composer's `submit()` is where every gate lives (disabled, already\nstreaming, `requireModelSelection`), and a chip that bypassed them could send a\nrequest with an empty model id while the composer was visibly greyed out. So the\nelement needs a composer: the nearest `<aparte-composer>` ancestor, else the one\nserving the chat named by `target`, else the first one in the document.\n\nCore honours the click alone, so it is live by default. `aparte-suggestion` fires first and is cancelable — `preventDefault()`\nleaves the composer untouched, for an app that wants the prompt for itself.\n\nIt declares no custom property of its own: the gap comes from the global\n`--aparte-space-*` tokens and the chips from the `aparte-btn` recipe, so it inherits\na theme rather than exposing knobs to re-set.",
36801
+ "name": "AparteSuggestions",
36802
+ "members": [
36803
+ {
36804
+ "kind": "field",
36805
+ "name": "_suggestions",
36806
+ "type": {
36807
+ "text": "AparteSuggestion[]"
36808
+ },
36809
+ "privacy": "private",
36810
+ "default": "[]"
36811
+ },
36812
+ {
36813
+ "kind": "field",
36814
+ "name": "_composer",
36815
+ "type": {
36816
+ "text": "AparteComposer | null"
36817
+ },
36818
+ "privacy": "private",
36819
+ "default": "null"
36820
+ },
36821
+ {
36822
+ "kind": "field",
36823
+ "name": "_transcript",
36824
+ "type": {
36825
+ "text": "Element | null"
36826
+ },
36827
+ "privacy": "private",
36828
+ "default": "null",
36829
+ "description": "The viewport of the chat this row serves, while `empty-only` follows it."
36830
+ },
36831
+ {
36832
+ "kind": "field",
36833
+ "name": "_transcriptObserver",
36834
+ "type": {
36835
+ "text": "MutationObserver | null"
36836
+ },
36837
+ "privacy": "private",
36838
+ "default": "null"
36839
+ },
36840
+ {
36841
+ "kind": "field",
36842
+ "name": "_sent",
36843
+ "type": {
36844
+ "text": "boolean"
36845
+ },
36846
+ "privacy": "private",
36847
+ "default": "false",
36848
+ "description": "The composer sent since the transcript was last seen empty."
36849
+ },
36850
+ {
36851
+ "kind": "field",
36852
+ "name": "_wasEmpty",
36853
+ "type": {
36854
+ "text": "boolean"
36855
+ },
36856
+ "privacy": "private",
36857
+ "default": "true"
36858
+ },
36859
+ {
36860
+ "kind": "field",
36861
+ "name": "_hidOwn",
36862
+ "type": {
36863
+ "text": "boolean"
36864
+ },
36865
+ "privacy": "private",
36866
+ "default": "false",
36867
+ "description": "`hidden` was written by this element, so it is this element's to lift."
36868
+ },
36869
+ {
36870
+ "kind": "field",
36871
+ "name": "_onSend",
36872
+ "privacy": "private"
36873
+ },
36874
+ {
36875
+ "kind": "field",
36876
+ "name": "_applyEmptyOnly",
36877
+ "privacy": "private"
36878
+ },
36879
+ {
36880
+ "kind": "field",
36881
+ "name": "_onConfigChange",
36882
+ "privacy": "private"
36883
+ },
36884
+ {
36885
+ "kind": "field",
36886
+ "name": "suggestions",
36887
+ "type": {
36888
+ "text": "AparteSuggestion[]"
36889
+ },
36890
+ "description": "Takes the array, or the JSON string the attribute documents.\n\nBoth, because both arrive: React 19 and Svelte assign the PROPERTY whenever the\nelement has one of that name, so `<aparte-suggestions suggestions='[…]'>` — the\ndocumented spelling, typed valid by both wrappers — reaches this setter as a\nstring while the attribute (and so `attributeChangedCallback`) is never written."
36891
+ },
36892
+ {
36893
+ "kind": "method",
36894
+ "name": "_groupLabel",
36895
+ "privacy": "private",
36896
+ "return": {
36897
+ "type": {
36898
+ "text": "string"
36899
+ }
36900
+ }
36901
+ },
36902
+ {
36903
+ "kind": "field",
36904
+ "name": "_parsed",
36905
+ "type": {
36906
+ "text": "string | null"
36907
+ },
36908
+ "privacy": "private",
36909
+ "default": "null"
36910
+ },
36911
+ {
36912
+ "kind": "method",
36913
+ "name": "_readAttribute",
36914
+ "privacy": "private",
36915
+ "return": {
36916
+ "type": {
36917
+ "text": "void"
36918
+ }
36919
+ },
36920
+ "description": "Parse the `suggestions` attribute once per value. The attribute callback and\n`connectedCallback` both arrive for a parsed element, in an order the parser\ndecides; without this, an invalid value warned twice."
36921
+ },
36922
+ {
36923
+ "kind": "method",
36924
+ "name": "_resolveComposer",
36925
+ "privacy": "private",
36926
+ "return": {
36927
+ "type": {
36928
+ "text": "AparteComposer | null"
36929
+ }
36930
+ },
36931
+ "description": "The composer the click goes through, resolved the way the composer's own parts\nresolve it — by ancestry first. Outside a composer, `target` names the chat and the\ncomposer serving it is either inside that chat or points at it; the first composer\non the page is the last resort, so the one-chat page needs no attribute at all."
36932
+ },
36933
+ {
36934
+ "kind": "method",
36935
+ "name": "_watchComposer",
36936
+ "privacy": "private",
36937
+ "return": {
36938
+ "type": {
36939
+ "text": "void"
36940
+ }
36941
+ }
36942
+ },
36943
+ {
36944
+ "kind": "method",
36945
+ "name": "_resolveTranscript",
36946
+ "privacy": "private",
36947
+ "return": {
36948
+ "type": {
36949
+ "text": "Element | null"
36950
+ }
36951
+ },
36952
+ "description": "The transcript of the chat the click goes to: the chat around the composer, else\nthe one around this element, else the one `target` names (here, or on that\ncomposer). No last resort on the page, unlike the composer's: following another\nchat's transcript would be worse than following none, which falls back to the send."
36953
+ },
36954
+ {
36955
+ "kind": "method",
36956
+ "name": "_watchTranscript",
36957
+ "privacy": "private",
36958
+ "return": {
36959
+ "type": {
36960
+ "text": "void"
36961
+ }
36962
+ },
36963
+ "description": "Follow the transcript while `empty-only` or `answers` is set, and stop following it when neither is."
36964
+ },
36965
+ {
36966
+ "kind": "field",
36967
+ "name": "_onTranscript",
36968
+ "privacy": "private"
36969
+ },
36970
+ {
36971
+ "kind": "method",
36972
+ "name": "_applyAnswers",
36973
+ "privacy": "private",
36974
+ "return": {
36975
+ "type": {
36976
+ "text": "void"
36977
+ }
36978
+ },
36979
+ "description": "`answers`: the replies the LAST message offered, written by a ```suggestions block\n(`setupSuggestionBlocks`) as a hidden `[data-aparte-suggestions]` mark in that\nmessage. A last message that is the person's, or that offers none, shows none: the\noffer was for the answer it came with."
36980
+ },
36981
+ {
36982
+ "kind": "method",
36983
+ "name": "_showAnswers",
36984
+ "privacy": "private",
36985
+ "return": {
36986
+ "type": {
36987
+ "text": "void"
36988
+ }
36989
+ },
36990
+ "parameters": [
36991
+ {
36992
+ "name": "list",
36993
+ "type": {
36994
+ "text": "AparteSuggestion[]"
36995
+ }
36996
+ }
36997
+ ],
36998
+ "description": "Show these replies; the same ones already shown redraw nothing (a transcript mutation is frequent)."
36999
+ },
37000
+ {
37001
+ "kind": "method",
37002
+ "name": "_setHidden",
37003
+ "privacy": "private",
37004
+ "return": {
37005
+ "type": {
37006
+ "text": "void"
37007
+ }
37008
+ },
37009
+ "parameters": [
37010
+ {
37011
+ "name": "hide",
37012
+ "type": {
37013
+ "text": "boolean"
37014
+ }
37015
+ }
37016
+ ],
37017
+ "description": "Set `hidden`, or lift it only when this element set it: a `hidden` the page wrote stays."
37018
+ },
37019
+ {
37020
+ "kind": "method",
37021
+ "name": "_render",
37022
+ "privacy": "private",
37023
+ "return": {
37024
+ "type": {
37025
+ "text": "void"
37026
+ }
37027
+ }
37028
+ },
37029
+ {
37030
+ "kind": "field",
37031
+ "name": "_sending",
37032
+ "type": {
37033
+ "text": "boolean"
37034
+ },
37035
+ "privacy": "private",
37036
+ "default": "false"
37037
+ },
37038
+ {
37039
+ "kind": "field",
37040
+ "name": "_sendingTimer",
37041
+ "type": {
37042
+ "text": "ReturnType<typeof setTimeout> | undefined"
37043
+ },
37044
+ "privacy": "private"
37045
+ },
37046
+ {
37047
+ "kind": "field",
37048
+ "name": "_stopHolding",
37049
+ "privacy": "private"
37050
+ },
37051
+ {
37052
+ "kind": "field",
37053
+ "name": "_onTurnStart",
37054
+ "privacy": "private",
37055
+ "description": "The latch ends when ITS chat's turn starts. Another chat's `aparte-message-start` crosses the\nwindow too, and must not release it: the second chip would then send a second message while the\nfirst is still being built. The composer's own rule: an event naming no chat is for every chat."
37056
+ },
37057
+ {
37058
+ "kind": "method",
37059
+ "name": "_ownChatId",
37060
+ "privacy": "private",
37061
+ "return": {
37062
+ "type": {
37063
+ "text": "string | undefined"
37064
+ }
37065
+ },
37066
+ "description": "The chat the sending composer belongs to: its `target`, else the id of the chat host above it."
37067
+ },
37068
+ {
37069
+ "kind": "method",
37070
+ "name": "_holdUntilStreaming",
37071
+ "privacy": "private",
37072
+ "return": {
37073
+ "type": {
37074
+ "text": "void"
37075
+ }
37076
+ },
37077
+ "description": "A chip sent: no other chip sends until the turn has started, or a second has passed without one."
37078
+ },
37079
+ {
37080
+ "kind": "method",
37081
+ "name": "_activate",
37082
+ "privacy": "private",
37083
+ "return": {
37084
+ "type": {
37085
+ "text": "void"
37086
+ }
37087
+ },
37088
+ "parameters": [
37089
+ {
37090
+ "name": "suggestion",
37091
+ "type": {
37092
+ "text": "AparteSuggestion"
37093
+ }
37094
+ }
37095
+ ]
37096
+ }
37097
+ ],
37098
+ "events": [
37099
+ {
37100
+ "name": "aparte-suggestion",
37101
+ "type": {
37102
+ "text": "CustomEvent<AparteSuggestionEventDetail>"
37103
+ },
37104
+ "description": "A starter was clicked. Bubbles, and is cancelable: `preventDefault()` stops the composer from being filled or submitted."
37105
+ }
37106
+ ],
37107
+ "attributes": [
37108
+ {
37109
+ "name": "suggestions",
37110
+ "type": {
37111
+ "text": "string"
37112
+ },
37113
+ "description": "The starters, as a JSON array: strings, or `{ \"label\", \"prompt\" }` objects when the visible label and the sent text differ. The `suggestions` PROPERTY takes the same shape without the JSON."
37114
+ },
37115
+ {
37116
+ "name": "target",
37117
+ "type": {
37118
+ "text": "string"
37119
+ },
37120
+ "description": "The id of the `<aparte-chat>` whose composer should receive the click, when the element is not inside that composer."
37121
+ },
37122
+ {
37123
+ "name": "empty-only",
37124
+ "type": {
37125
+ "text": "boolean"
37126
+ },
37127
+ "description": "Shows the row only while the conversation it serves is empty: hidden (`hidden`) once a message is in its transcript or on its way — a thread being loaded counts — and shown again when the transcript is cleared, by a new chat for instance. The composer's send hides it at once, before its message lands. The element sets and lifts `hidden` itself and never lifts one you set. With no transcript to read — a composer outside any chat — the first send hides it until the attribute is removed."
37128
+ },
37129
+ {
37130
+ "name": "answers",
37131
+ "type": {
37132
+ "text": "boolean"
37133
+ },
37134
+ "description": "Shows the replies the LAST message offered instead of fixed starters: a code block in language `suggestions` in that answer (`setupSuggestionBlocks`), e.g. the free times a booking bot proposes. Written by the model, so a reply sends what its chip shows: its label, never a `prompt`. Empty until an answer offers some, emptied the moment a message is sent, and when the last message is the person's."
37135
+ },
37136
+ {
37137
+ "type": {
37138
+ "text": "string"
37139
+ },
37140
+ "description": "`send` (default): the click fills the composer and submits. `fill`: the click fills the composer and focuses it, so the reader edits first.",
37141
+ "name": "mode"
37142
+ },
37143
+ {
37144
+ "type": {
37145
+ "text": "boolean"
37146
+ },
37147
+ "description": "Reflected BY the element while it has no suggestion to show; the stylesheet hides it then. Read-only, do not set it yourself.",
37148
+ "name": "data-empty"
37149
+ }
37150
+ ],
37151
+ "superclass": {
37152
+ "name": "HTMLElement"
37153
+ },
37154
+ "tagName": "aparte-suggestions",
37155
+ "customElement": true,
37156
+ "examples": [
37157
+ "<!-- The starters sit above the input, inside the composer; a click fills and sends. -->\n<aparte-composer>\n <aparte-suggestions empty-only\n suggestions='[\"What is aparté?\", {\"label\": \"Write a haiku\", \"prompt\": \"Write a haiku about web components.\"}]'>\n </aparte-suggestions>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n</aparte-composer>"
37158
+ ]
37159
+ }
37160
+ ],
37161
+ "exports": [
37162
+ {
37163
+ "kind": "js",
37164
+ "name": "AparteSuggestions",
37165
+ "declaration": {
37166
+ "name": "AparteSuggestions",
37167
+ "module": "src/components/suggestions/aparte-suggestions.ts"
37168
+ }
37169
+ },
37170
+ {
37171
+ "kind": "custom-element-definition",
37172
+ "name": "aparte-suggestions",
37173
+ "declaration": {
37174
+ "name": "AparteSuggestions",
37175
+ "module": "src/components/suggestions/aparte-suggestions.ts"
37176
+ }
37177
+ }
37178
+ ]
37179
+ },
37180
+ {
37181
+ "kind": "javascript-module",
37182
+ "path": "src/components/suggestions/index.ts",
37183
+ "declarations": [],
37184
+ "exports": [
37185
+ {
37186
+ "kind": "js",
37187
+ "name": "AparteSuggestions",
37188
+ "declaration": {
37189
+ "name": "AparteSuggestions",
37190
+ "module": "./aparte-suggestions.js"
37191
+ }
37192
+ },
37193
+ {
37194
+ "kind": "js",
37195
+ "name": "setupSuggestionBlocks",
37196
+ "declaration": {
37197
+ "name": "setupSuggestionBlocks",
37198
+ "module": "./suggestion-blocks.js"
37199
+ }
37200
+ },
37201
+ {
37202
+ "kind": "js",
37203
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
37204
+ "declaration": {
37205
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
37206
+ "module": "./suggestion-blocks.js"
37207
+ }
37208
+ },
37209
+ {
37210
+ "kind": "js",
37211
+ "name": "AparteSuggestion",
37212
+ "declaration": {
37213
+ "name": "AparteSuggestion",
37214
+ "module": "./aparte-suggestions.js"
37215
+ }
37216
+ },
37217
+ {
37218
+ "kind": "js",
37219
+ "name": "AparteSuggestionEventDetail",
37220
+ "declaration": {
37221
+ "name": "AparteSuggestionEventDetail",
37222
+ "module": "./aparte-suggestions.js"
37223
+ }
37224
+ }
37225
+ ]
37226
+ },
37227
+ {
37228
+ "kind": "javascript-module",
37229
+ "path": "src/components/suggestions/suggestion-blocks.ts",
37230
+ "declarations": [
37231
+ {
37232
+ "kind": "variable",
37233
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
37234
+ "type": {
37235
+ "text": "string"
37236
+ },
37237
+ "default": "'suggestions'",
37238
+ "description": "The language the block is written in."
37239
+ },
37240
+ {
37241
+ "kind": "function",
37242
+ "name": "visibleReply",
37243
+ "return": {
37244
+ "type": {
37245
+ "text": "string | null"
37246
+ }
37247
+ },
37248
+ "parameters": [
37249
+ {
37250
+ "name": "reply",
37251
+ "type": {
37252
+ "text": "Reply"
37253
+ }
37254
+ }
37255
+ ],
37256
+ "description": "A model-written reply, reduced to what its button shows: the label alone, never a `prompt`.\nRuns of whitespace collapse to one space. `null` for a reply with no label to see (blank),\na label with anything in it that draws nothing or reorders what is drawn (bidi controls,\ntag characters, variation selectors, stray joiners), and a label past 100 characters: what\nis sent must be exactly what the person can read on the chip."
37257
+ },
37258
+ {
37259
+ "kind": "function",
37260
+ "name": "setupSuggestionBlocks",
37261
+ "return": {
37262
+ "type": {
37263
+ "text": "() => void"
37264
+ }
37265
+ },
37266
+ "parameters": [
37267
+ {
37268
+ "name": "config",
37269
+ "default": "aparteGlobalConfig",
37270
+ "type": {
37271
+ "text": "AparteConfig"
37272
+ }
37273
+ }
37274
+ ],
37275
+ "description": "Read the code blocks in language `suggestions` in replies as the replies that\n`<aparte-suggestions answers>` offers. Returns the function that stops it. Off until called: a block is then no longer\nshown as code, so it is the app's choice."
37276
+ }
37277
+ ],
37278
+ "exports": [
37279
+ {
37280
+ "kind": "js",
37281
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
37282
+ "declaration": {
37283
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
37284
+ "module": "src/components/suggestions/suggestion-blocks.ts"
37285
+ }
37286
+ },
37287
+ {
37288
+ "kind": "js",
37289
+ "name": "visibleReply",
37290
+ "declaration": {
37291
+ "name": "visibleReply",
37292
+ "module": "src/components/suggestions/suggestion-blocks.ts"
37293
+ }
37294
+ },
37295
+ {
37296
+ "kind": "js",
37297
+ "name": "setupSuggestionBlocks",
37298
+ "declaration": {
37299
+ "name": "setupSuggestionBlocks",
37300
+ "module": "src/components/suggestions/suggestion-blocks.ts"
37301
+ }
37302
+ }
37303
+ ]
37304
+ },
36553
37305
  {
36554
37306
  "kind": "javascript-module",
36555
37307
  "path": "src/primitives/icon/aparte-icon.ts",