@elabs-ai/components-ai 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/{_audio-player-media-chrome-T3XVXWRZ.js → _audio-player-media-chrome.js} +1 -1
- package/dist/_code-block-theme.js +12 -0
- package/dist/_code-block-theme.js.map +1 -0
- package/dist/{_flow-boundary-SHNWLQG5.js → _flow-boundary.js} +1 -1
- package/dist/_flow-boundary.js.map +1 -0
- package/dist/_flow-lazy.js +8 -0
- package/dist/_flow-lazy.js.map +1 -0
- package/dist/_lazy-boundary-conformance.js +2 -0
- package/dist/_lazy-boundary-conformance.js.map +1 -0
- package/dist/_lazy-cjk.js +13 -0
- package/dist/_lazy-cjk.js.map +1 -0
- package/dist/_lazy-engine-boundary.js +9 -0
- package/dist/_lazy-engine-boundary.js.map +1 -0
- package/dist/_lazy-math.js +13 -0
- package/dist/_lazy-math.js.map +1 -0
- package/dist/_lazy-mermaid.js +12 -0
- package/dist/_lazy-mermaid.js.map +1 -0
- package/dist/_mermaid-error-panel.js +9 -0
- package/dist/_mermaid-error-panel.js.map +1 -0
- package/dist/{_persona-rive-JEG44YHX.js → _persona-rive.js} +19 -24
- package/dist/_persona-rive.js.map +1 -0
- package/dist/_streamdown-i18n.js +21 -0
- package/dist/_streamdown-i18n.js.map +1 -0
- package/dist/_streamdown-safety.js +10 -0
- package/dist/_streamdown-safety.js.map +1 -0
- package/dist/_theme-scope-store.js +13 -0
- package/dist/_theme-scope-store.js.map +1 -0
- package/dist/a2ui/a2ui-surface.js +17 -0
- package/dist/a2ui/a2ui-surface.js.map +1 -0
- package/dist/a2ui/core/catalog.generated.js +10 -0
- package/dist/a2ui/core/catalog.generated.js.map +1 -0
- package/dist/a2ui/core/complete-json.js +10 -0
- package/dist/a2ui/core/complete-json.js.map +1 -0
- package/dist/a2ui/core/index.js +37 -0
- package/dist/a2ui/core/index.js.map +1 -0
- package/dist/a2ui/core/schema.js +11 -0
- package/dist/a2ui/core/schema.js.map +1 -0
- package/dist/a2ui/core/spec.js +10 -0
- package/dist/a2ui/core/spec.js.map +1 -0
- package/dist/a2ui/core/validate.js +16 -0
- package/dist/a2ui/core/validate.js.map +1 -0
- package/dist/a2ui/index.js +54 -0
- package/dist/a2ui/index.js.map +1 -0
- package/dist/a2ui/ui-catalog.js +18 -0
- package/dist/a2ui/ui-catalog.js.map +1 -0
- package/dist/agent-event.js +10 -0
- package/dist/agent-event.js.map +1 -0
- package/dist/agent-timeline.js +11 -0
- package/dist/agent-timeline.js.map +1 -0
- package/dist/agent.js +25 -0
- package/dist/agent.js.map +1 -0
- package/dist/artifact.js +23 -0
- package/dist/artifact.js.map +1 -0
- package/dist/asset-preview.js +22 -0
- package/dist/asset-preview.js.map +1 -0
- package/dist/attachments.js +33 -0
- package/dist/attachments.js.map +1 -0
- package/dist/audio-player.js +30 -0
- package/dist/audio-player.js.map +1 -0
- package/dist/audio-visualizer.js +9 -0
- package/dist/audio-visualizer.js.map +1 -0
- package/dist/canvas.js +10 -0
- package/dist/canvas.js.map +1 -0
- package/dist/chain-of-thought.js +22 -0
- package/dist/chain-of-thought.js.map +1 -0
- package/dist/chat-greeting.js +8 -0
- package/dist/chat-greeting.js.map +1 -0
- package/dist/chat-shell.js +9 -0
- package/dist/chat-shell.js.map +1 -0
- package/dist/checkpoint.js +13 -0
- package/dist/checkpoint.js.map +1 -0
- package/dist/chunk-2XOIG5TG.js +72 -0
- package/dist/chunk-2XOIG5TG.js.map +1 -0
- package/dist/chunk-34CQ2VHM.js +172 -0
- package/dist/chunk-34CQ2VHM.js.map +1 -0
- package/dist/chunk-3TDHPXZZ.js +60 -0
- package/dist/chunk-3TDHPXZZ.js.map +1 -0
- package/dist/chunk-3XNPMDZY.js +478 -0
- package/dist/chunk-3XNPMDZY.js.map +1 -0
- package/dist/chunk-3YPT3V7L.js +56 -0
- package/dist/chunk-3YPT3V7L.js.map +1 -0
- package/dist/chunk-475UEU2Q.js +87 -0
- package/dist/chunk-475UEU2Q.js.map +1 -0
- package/dist/chunk-4CBTII2I.js +95 -0
- package/dist/chunk-4CBTII2I.js.map +1 -0
- package/dist/chunk-4XRNIZMG.js +22 -0
- package/dist/chunk-4XRNIZMG.js.map +1 -0
- package/dist/chunk-5NNWUKK5.js +2 -0
- package/dist/chunk-5NNWUKK5.js.map +1 -0
- package/dist/chunk-5UOMU27Z.js +164 -0
- package/dist/chunk-5UOMU27Z.js.map +1 -0
- package/dist/chunk-5VGYZ62I.js +264 -0
- package/dist/chunk-5VGYZ62I.js.map +1 -0
- package/dist/chunk-6IQPH2OS.js +21 -0
- package/dist/chunk-6IQPH2OS.js.map +1 -0
- package/dist/chunk-6PB2MXCI.js +482 -0
- package/dist/chunk-6PB2MXCI.js.map +1 -0
- package/dist/chunk-7FD5CZEU.js +215 -0
- package/dist/chunk-7FD5CZEU.js.map +1 -0
- package/dist/chunk-7RL6KZDF.js +266 -0
- package/dist/chunk-7RL6KZDF.js.map +1 -0
- package/dist/chunk-ADOYAGGK.js +482 -0
- package/dist/chunk-ADOYAGGK.js.map +1 -0
- package/dist/chunk-AXMNJMMH.js +984 -0
- package/dist/chunk-AXMNJMMH.js.map +1 -0
- package/dist/chunk-BA3AEMOU.js +21 -0
- package/dist/chunk-BA3AEMOU.js.map +1 -0
- package/dist/chunk-BBHFOYML.js +336 -0
- package/dist/chunk-BBHFOYML.js.map +1 -0
- package/dist/chunk-BHUVISIY.js +221 -0
- package/dist/chunk-BHUVISIY.js.map +1 -0
- package/dist/chunk-BM2LWERA.js +100 -0
- package/dist/chunk-BM2LWERA.js.map +1 -0
- package/dist/chunk-CMOYXNPJ.js +211 -0
- package/dist/chunk-CMOYXNPJ.js.map +1 -0
- package/dist/chunk-CZP3RHC4.js +74 -0
- package/dist/chunk-CZP3RHC4.js.map +1 -0
- package/dist/chunk-DDG5JHQT.js +112 -0
- package/dist/chunk-DDG5JHQT.js.map +1 -0
- package/dist/chunk-DJODXO7I.js +38 -0
- package/dist/chunk-DJODXO7I.js.map +1 -0
- package/dist/chunk-DWJDJLPU.js +192 -0
- package/dist/chunk-DWJDJLPU.js.map +1 -0
- package/dist/chunk-DZW6LM22.js +45 -0
- package/dist/chunk-DZW6LM22.js.map +1 -0
- package/dist/chunk-ELGCZLZF.js +305 -0
- package/dist/chunk-ELGCZLZF.js.map +1 -0
- package/dist/chunk-EV3U6ZZB.js +209 -0
- package/dist/chunk-EV3U6ZZB.js.map +1 -0
- package/dist/chunk-EY7LVUKQ.js +87 -0
- package/dist/chunk-EY7LVUKQ.js.map +1 -0
- package/dist/chunk-F4C74F7M.js +230 -0
- package/dist/chunk-F4C74F7M.js.map +1 -0
- package/dist/chunk-FERYDFZA.js +108 -0
- package/dist/chunk-FERYDFZA.js.map +1 -0
- package/dist/chunk-FUIYG2DS.js +166 -0
- package/dist/chunk-FUIYG2DS.js.map +1 -0
- package/dist/chunk-GKYZT3LA.js +136 -0
- package/dist/chunk-GKYZT3LA.js.map +1 -0
- package/dist/chunk-H42LRUQ4.js +102 -0
- package/dist/chunk-H42LRUQ4.js.map +1 -0
- package/dist/chunk-HVXM2G5F.js +222 -0
- package/dist/chunk-HVXM2G5F.js.map +1 -0
- package/dist/chunk-I4RDAGVY.js +53 -0
- package/dist/chunk-I4RDAGVY.js.map +1 -0
- package/dist/chunk-IQJG4IDX.js +208 -0
- package/dist/chunk-IQJG4IDX.js.map +1 -0
- package/dist/chunk-IX2PXG4Y.js +144 -0
- package/dist/chunk-IX2PXG4Y.js.map +1 -0
- package/dist/chunk-IXICSOOP.js +287 -0
- package/dist/chunk-IXICSOOP.js.map +1 -0
- package/dist/chunk-JY5HSN4D.js +84 -0
- package/dist/chunk-JY5HSN4D.js.map +1 -0
- package/dist/chunk-LMNSBOBG.js +19 -0
- package/dist/chunk-LMNSBOBG.js.map +1 -0
- package/dist/chunk-MBI7D6IL.js +42 -0
- package/dist/chunk-MBI7D6IL.js.map +1 -0
- package/dist/chunk-MLFMYCPH.js +192 -0
- package/dist/chunk-MLFMYCPH.js.map +1 -0
- package/dist/chunk-MOK66734.js +33 -0
- package/dist/chunk-MOK66734.js.map +1 -0
- package/dist/chunk-MXTAWPYM.js +196 -0
- package/dist/chunk-MXTAWPYM.js.map +1 -0
- package/dist/chunk-NCL2UZKI.js +96 -0
- package/dist/chunk-NCL2UZKI.js.map +1 -0
- package/dist/chunk-NET4YLRY.js +107 -0
- package/dist/chunk-NET4YLRY.js.map +1 -0
- package/dist/chunk-NIG67CFM.js +329 -0
- package/dist/chunk-NIG67CFM.js.map +1 -0
- package/dist/chunk-NMVNNO3L.js +10 -0
- package/dist/chunk-NMVNNO3L.js.map +1 -0
- package/dist/chunk-NP7VID4K.js +2 -0
- package/dist/chunk-NP7VID4K.js.map +1 -0
- package/dist/chunk-NPUCMAG2.js +382 -0
- package/dist/chunk-NPUCMAG2.js.map +1 -0
- package/dist/chunk-NSCLRHES.js +102 -0
- package/dist/chunk-NSCLRHES.js.map +1 -0
- package/dist/chunk-OEUXHVFW.js +86 -0
- package/dist/chunk-OEUXHVFW.js.map +1 -0
- package/dist/chunk-ONBHFIMZ.js +137 -0
- package/dist/chunk-ONBHFIMZ.js.map +1 -0
- package/dist/chunk-OPH2HHL2.js +228 -0
- package/dist/chunk-OPH2HHL2.js.map +1 -0
- package/dist/chunk-OQERHIQP.js +287 -0
- package/dist/chunk-OQERHIQP.js.map +1 -0
- package/dist/chunk-P6YJAZFG.js +103 -0
- package/dist/chunk-P6YJAZFG.js.map +1 -0
- package/dist/chunk-PG7ERDOD.js +65 -0
- package/dist/chunk-PG7ERDOD.js.map +1 -0
- package/dist/chunk-PIB5JBMA.js +90 -0
- package/dist/chunk-PIB5JBMA.js.map +1 -0
- package/dist/chunk-PQ5BPIWQ.js +22 -0
- package/dist/chunk-PQ5BPIWQ.js.map +1 -0
- package/dist/chunk-PQBF6ZIQ.js +55 -0
- package/dist/chunk-PQBF6ZIQ.js.map +1 -0
- package/dist/chunk-PTWCTSZL.js +173 -0
- package/dist/chunk-PTWCTSZL.js.map +1 -0
- package/dist/chunk-QJUNPVOS.js +101 -0
- package/dist/chunk-QJUNPVOS.js.map +1 -0
- package/dist/chunk-QUDZOTRV.js +43 -0
- package/dist/chunk-QUDZOTRV.js.map +1 -0
- package/dist/chunk-RB7G65JC.js +213 -0
- package/dist/chunk-RB7G65JC.js.map +1 -0
- package/dist/chunk-RPHAOR7P.js +45 -0
- package/dist/chunk-RPHAOR7P.js.map +1 -0
- package/dist/chunk-RTCSH2AN.js +331 -0
- package/dist/chunk-RTCSH2AN.js.map +1 -0
- package/dist/chunk-S3ISPW3A.js +28 -0
- package/dist/chunk-S3ISPW3A.js.map +1 -0
- package/dist/chunk-SEVN656N.js +36 -0
- package/dist/chunk-SEVN656N.js.map +1 -0
- package/dist/chunk-SKVG672B.js +64 -0
- package/dist/chunk-SKVG672B.js.map +1 -0
- package/dist/chunk-SPQIU7GA.js +236 -0
- package/dist/chunk-SPQIU7GA.js.map +1 -0
- package/dist/chunk-SSGJ6MEM.js +1076 -0
- package/dist/chunk-SSGJ6MEM.js.map +1 -0
- package/dist/chunk-SSKZ2AED.js +118 -0
- package/dist/chunk-SSKZ2AED.js.map +1 -0
- package/dist/chunk-T56JFGXI.js +561 -0
- package/dist/chunk-T56JFGXI.js.map +1 -0
- package/dist/chunk-TCB6O74A.js +137 -0
- package/dist/chunk-TCB6O74A.js.map +1 -0
- package/dist/chunk-TTEYPO6X.js +57 -0
- package/dist/chunk-TTEYPO6X.js.map +1 -0
- package/dist/chunk-TWPHAJNM.js +462 -0
- package/dist/chunk-TWPHAJNM.js.map +1 -0
- package/dist/chunk-TXJJLP4O.js +336 -0
- package/dist/chunk-TXJJLP4O.js.map +1 -0
- package/dist/chunk-TZ6TB7VM.js +245 -0
- package/dist/chunk-TZ6TB7VM.js.map +1 -0
- package/dist/chunk-UBLKJJ7K.js +278 -0
- package/dist/chunk-UBLKJJ7K.js.map +1 -0
- package/dist/chunk-UCJ6IUFS.js +52 -0
- package/dist/chunk-UCJ6IUFS.js.map +1 -0
- package/dist/chunk-UCKFJ3QF.js +197 -0
- package/dist/chunk-UCKFJ3QF.js.map +1 -0
- package/dist/chunk-UPXSLILN.js +20 -0
- package/dist/chunk-UPXSLILN.js.map +1 -0
- package/dist/chunk-V4DORGWJ.js +92 -0
- package/dist/chunk-V4DORGWJ.js.map +1 -0
- package/dist/chunk-V6E5DYZD.js +80 -0
- package/dist/chunk-V6E5DYZD.js.map +1 -0
- package/dist/chunk-VLLYKF3P.js +96 -0
- package/dist/chunk-VLLYKF3P.js.map +1 -0
- package/dist/chunk-VLNBTOH6.js +43 -0
- package/dist/chunk-VLNBTOH6.js.map +1 -0
- package/dist/chunk-WMDSMSPL.js +303 -0
- package/dist/chunk-WMDSMSPL.js.map +1 -0
- package/dist/chunk-WU5BLGTF.js +149 -0
- package/dist/chunk-WU5BLGTF.js.map +1 -0
- package/dist/chunk-WYTZVSGK.js +245 -0
- package/dist/chunk-WYTZVSGK.js.map +1 -0
- package/dist/chunk-X47QMM6K.js +187 -0
- package/dist/chunk-X47QMM6K.js.map +1 -0
- package/dist/chunk-XNBKO32Y.js +174 -0
- package/dist/chunk-XNBKO32Y.js.map +1 -0
- package/dist/chunk-YHUSW7D2.js +40 -0
- package/dist/chunk-YHUSW7D2.js.map +1 -0
- package/dist/chunk-YSKD7UXX.js +126 -0
- package/dist/chunk-YSKD7UXX.js.map +1 -0
- package/dist/chunk-YYRDGWOU.js +72 -0
- package/dist/chunk-YYRDGWOU.js.map +1 -0
- package/dist/chunk-ZIGZMWM7.js +19 -0
- package/dist/chunk-ZIGZMWM7.js.map +1 -0
- package/dist/chunk-ZKRTUKNP.js +40 -0
- package/dist/chunk-ZKRTUKNP.js.map +1 -0
- package/dist/code-block.js +38 -0
- package/dist/code-block.js.map +1 -0
- package/dist/commit.js +51 -0
- package/dist/commit.js.map +1 -0
- package/dist/composer.js +15 -0
- package/dist/composer.js.map +1 -0
- package/dist/confirmation.js +53 -0
- package/dist/confirmation.js.map +1 -0
- package/dist/connection.js +8 -0
- package/dist/connection.js.map +1 -0
- package/dist/context-panel.js +25 -0
- package/dist/context-panel.js.map +1 -0
- package/dist/controls.js +10 -0
- package/dist/controls.js.map +1 -0
- package/dist/conversation.js +19 -0
- package/dist/conversation.js.map +1 -0
- package/dist/diff-view.js +15 -0
- package/dist/diff-view.js.map +1 -0
- package/dist/edge.js +10 -0
- package/dist/edge.js.map +1 -0
- package/dist/environment-variables.js +29 -0
- package/dist/environment-variables.js.map +1 -0
- package/dist/file-tree.js +23 -0
- package/dist/file-tree.js.map +1 -0
- package/dist/gallery.js +9 -0
- package/dist/gallery.js.map +1 -0
- package/dist/grouped-parts.js +21 -0
- package/dist/grouped-parts.js.map +1 -0
- package/dist/image.js +9 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.ts +403 -108
- package/dist/index.js +671 -13205
- package/dist/index.js.map +1 -1
- package/dist/inline-citation.js +39 -0
- package/dist/inline-citation.js.map +1 -0
- package/dist/jsx-preview.js +17 -0
- package/dist/jsx-preview.js.map +1 -0
- package/dist/markdown-view.js +17 -0
- package/dist/markdown-view.js.map +1 -0
- package/dist/message-compare.js +12 -0
- package/dist/message-compare.js.map +1 -0
- package/dist/message-edit.js +19 -0
- package/dist/message-edit.js.map +1 -0
- package/dist/message-feedback.js +11 -0
- package/dist/message-feedback.js.map +1 -0
- package/dist/message-form-spec.js +38 -0
- package/dist/message-form-spec.js.map +1 -0
- package/dist/message-form.js +26 -0
- package/dist/message-form.js.map +1 -0
- package/dist/message-table-spec.js +26 -0
- package/dist/message-table-spec.js.map +1 -0
- package/dist/message-table.js +12 -0
- package/dist/message-table.js.map +1 -0
- package/dist/message.js +51 -0
- package/dist/message.js.map +1 -0
- package/dist/mic-selector.js +27 -0
- package/dist/mic-selector.js.map +1 -0
- package/dist/model-provider-logo.js +13 -0
- package/dist/model-provider-logo.js.map +1 -0
- package/dist/motion-config.js +9 -0
- package/dist/motion-config.js.map +1 -0
- package/dist/node.js +22 -0
- package/dist/node.js.map +1 -0
- package/dist/open-in-chat.js +31 -0
- package/dist/open-in-chat.js.map +1 -0
- package/dist/package-info.js +25 -0
- package/dist/package-info.js.map +1 -0
- package/dist/panel.js +10 -0
- package/dist/panel.js.map +1 -0
- package/dist/part-groups.js +18 -0
- package/dist/part-groups.js.map +1 -0
- package/dist/permission-mode-select.js +9 -0
- package/dist/permission-mode-select.js.map +1 -0
- package/dist/persona-sources.js +8 -0
- package/dist/persona-sources.js.map +1 -0
- package/dist/persona.js +14 -0
- package/dist/persona.js.map +1 -0
- package/dist/plan.js +32 -0
- package/dist/plan.js.map +1 -0
- package/dist/prompt-input-effort.js +9 -0
- package/dist/prompt-input-effort.js.map +1 -0
- package/dist/prompt-input-mode.js +10 -0
- package/dist/prompt-input-mode.js.map +1 -0
- package/dist/prompt-input-slash.js +12 -0
- package/dist/prompt-input-slash.js.map +1 -0
- package/dist/prompt-input.js +89 -0
- package/dist/prompt-input.js.map +1 -0
- package/dist/queue.js +37 -0
- package/dist/queue.js.map +1 -0
- package/dist/reasoning.js +23 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/sandbox.js +28 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/schema-display.js +33 -0
- package/dist/schema-display.js.map +1 -0
- package/dist/selection-toolbar.js +11 -0
- package/dist/selection-toolbar.js.map +1 -0
- package/dist/session-header.js +9 -0
- package/dist/session-header.js.map +1 -0
- package/dist/session-status-bar.js +9 -0
- package/dist/session-status-bar.js.map +1 -0
- package/dist/shimmer.js +9 -0
- package/dist/shimmer.js.map +1 -0
- package/dist/snippet.js +17 -0
- package/dist/snippet.js.map +1 -0
- package/dist/sources.js +17 -0
- package/dist/sources.js.map +1 -0
- package/dist/speech-input.js +9 -0
- package/dist/speech-input.js.map +1 -0
- package/dist/stack-trace.js +27 -0
- package/dist/stack-trace.js.map +1 -0
- package/dist/suggestion.js +16 -0
- package/dist/suggestion.js.map +1 -0
- package/dist/task.js +18 -0
- package/dist/task.js.map +1 -0
- package/dist/test-results.js +43 -0
- package/dist/test-results.js.map +1 -0
- package/dist/token-usage.js +27 -0
- package/dist/token-usage.js.map +1 -0
- package/dist/tool-result-card.js +9 -0
- package/dist/tool-result-card.js.map +1 -0
- package/dist/tool.js +27 -0
- package/dist/tool.js.map +1 -0
- package/dist/toolbar.js +10 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/transcription.js +11 -0
- package/dist/transcription.js.map +1 -0
- package/dist/turn-status.js +9 -0
- package/dist/turn-status.js.map +1 -0
- package/dist/use-audio-level.js +9 -0
- package/dist/use-audio-level.js.map +1 -0
- package/dist/voice-selector.js +47 -0
- package/dist/voice-selector.js.map +1 -0
- package/dist/web-preview.js +19 -0
- package/dist/web-preview.js.map +1 -0
- package/package.json +12 -10
- package/schemas/a2ui-surface.v1.schema.json +5425 -0
- package/src/__contract__/audio-visualizer.contract.test.tsx +49 -0
- package/src/__contract__/chat-shell.contract.test.tsx +49 -0
- package/src/__contract__/grouped-parts.contract.test.tsx +49 -0
- package/src/__contract__/image.contract.test.tsx +49 -0
- package/src/__contract__/markdown-view.contract.test.tsx +49 -0
- package/src/__contract__/message-feedback.contract.test.tsx +49 -0
- package/src/__contract__/message-form.contract.test.tsx +49 -0
- package/src/__contract__/message-table.contract.test.tsx +49 -0
- package/src/__contract__/model-provider-logo.contract.test.tsx +49 -0
- package/src/__contract__/persona.contract.test.tsx +49 -0
- package/src/__contract__/prompt-input-effort.contract.test.tsx +49 -0
- package/src/__contract__/prompt-input-mode.contract.test.tsx +49 -0
- package/src/_chat-shell-rail.tsx +4 -2
- package/src/_flow-boundary.tsx +2 -2
- package/src/_lazy-cjk.test.ts +43 -0
- package/src/_lazy-cjk.ts +73 -0
- package/src/_lazy-math.test.ts +63 -0
- package/src/_lazy-math.ts +90 -0
- package/src/_persona-rive.tsx +27 -41
- package/src/_streamdown-i18n.ts +73 -21
- package/src/_streamdown-safety.ts +2 -2
- package/src/_theme-scope-store.test.ts +83 -0
- package/src/_theme-scope-store.ts +103 -0
- package/src/a2ui/a2ui-surface.stories.tsx +662 -0
- package/src/a2ui/a2ui-surface.test.tsx +201 -0
- package/src/a2ui/a2ui-surface.tsx +354 -0
- package/src/a2ui/catalog.source.json +772 -0
- package/src/a2ui/core/a2ui-core.test.ts +178 -0
- package/src/a2ui/core/catalog.generated.ts +1006 -0
- package/src/a2ui/core/complete-json.ts +81 -0
- package/src/a2ui/core/index.ts +10 -0
- package/src/a2ui/core/schema.ts +111 -0
- package/src/a2ui/core/spec.ts +148 -0
- package/src/a2ui/core/validate.ts +266 -0
- package/src/a2ui/index.ts +7 -0
- package/src/a2ui/ui-catalog.tsx +225 -0
- package/src/a2ui/wave1-chart-spec.test.ts +87 -0
- package/src/a2ui/wave2-chart-spec.test.ts +108 -0
- package/src/agent-event.tsx +1 -1
- package/src/agent.tsx +18 -13
- package/src/agentic-workspace.stories.tsx +6 -45
- package/src/artifact.tsx +2 -2
- package/src/asset-preview.test.tsx +40 -0
- package/src/asset-preview.tsx +83 -12
- package/src/attachments.tsx +7 -4
- package/src/chat-shell.test.tsx +40 -10
- package/src/chat-shell.tsx +90 -44
- package/src/chat.stories.tsx +47 -42
- package/src/code-block.test.tsx +100 -1
- package/src/code-block.tsx +166 -103
- package/src/commit.tsx +30 -41
- package/src/composer.stories.tsx +4 -5
- package/src/composer.test.tsx +45 -0
- package/src/composer.tsx +104 -21
- package/src/confirmation.tsx +1 -1
- package/src/context-panel.stories.tsx +1 -1
- package/src/context-panel.tsx +2 -2
- package/src/conversation.stories.tsx +24 -0
- package/src/conversation.test.tsx +69 -0
- package/src/conversation.tsx +47 -8
- package/src/diff-view.stories.tsx +79 -0
- package/src/diff-view.test.tsx +52 -2
- package/src/diff-view.tsx +92 -36
- package/src/environment-variables.tsx +20 -37
- package/src/file-tree.test.tsx +21 -0
- package/src/file-tree.tsx +33 -16
- package/src/gallery.stories.tsx +42 -0
- package/src/gallery.tsx +2 -2
- package/src/grouped-parts.stories.tsx +23 -0
- package/src/grouped-parts.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/inline-citation.tsx +5 -5
- package/src/jsx-preview.tsx +151 -43
- package/src/markdown-view.test.tsx +7 -3
- package/src/markdown-view.tsx +8 -1
- package/src/message-compare.stories.tsx +40 -0
- package/src/message-compare.tsx +2 -1
- package/src/message-form.stories.tsx +36 -3
- package/src/message-form.test.tsx +8 -2
- package/src/message-form.tsx +16 -8
- package/src/message-table.stories.tsx +26 -2
- package/src/message-table.test.tsx +7 -0
- package/src/message-table.tsx +9 -5
- package/src/message.test.tsx +73 -3
- package/src/message.tsx +36 -12
- package/src/model-provider-logo.test.tsx +57 -3
- package/src/model-provider-logo.tsx +45 -11
- package/src/open-in-chat.tsx +50 -29
- package/src/package-info.tsx +23 -20
- package/src/prompt-input-slash.stories.tsx +1 -1
- package/src/prompt-input.test.tsx +67 -1
- package/src/prompt-input.tsx +42 -4
- package/src/queue.tsx +4 -4
- package/src/reasoning.stories.tsx +27 -0
- package/src/reasoning.tsx +17 -6
- package/src/sandbox.tsx +3 -3
- package/src/schema-display.test.tsx +56 -0
- package/src/schema-display.tsx +68 -37
- package/src/session-header.stories.tsx +35 -1
- package/src/session-header.tsx +1 -1
- package/src/snippet.test.tsx +6 -2
- package/src/snippet.tsx +14 -34
- package/src/sources.stories.tsx +30 -0
- package/src/sources.tsx +4 -1
- package/src/speech-input.test.tsx +109 -0
- package/src/speech-input.tsx +31 -3
- package/src/stack-trace.tsx +20 -36
- package/src/streamdown-i18n.test.tsx +23 -0
- package/src/templates-ai-assistant.stories.tsx +151 -87
- package/src/test-results.tsx +47 -27
- package/src/token-usage.tsx +6 -6
- package/src/tool.stories.tsx +39 -0
- package/src/tool.test.tsx +65 -0
- package/src/tool.tsx +61 -25
- package/src/toolbar.tsx +0 -10
- package/src/transcription.tsx +1 -1
- package/src/voice-selector.tsx +5 -5
- package/src/web-preview.test.tsx +51 -1
- package/src/web-preview.tsx +39 -8
- package/dist/_flow-boundary-SHNWLQG5.js.map +0 -1
- package/dist/_persona-rive-JEG44YHX.js.map +0 -1
- /package/dist/{_audio-player-media-chrome-T3XVXWRZ.js.map → _audio-player-media-chrome.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ComponentProps, ReactNode, HTMLAttributes, RefObject, FormEvent, PropsWithChildren, ImgHTMLAttributes, FC, ElementType, JSX } from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode, HTMLAttributes, RefObject, FormEvent, PropsWithChildren, ImgHTMLAttributes, ComponentType, FC, ElementType, JSX } from 'react';
|
|
3
3
|
import * as _elabs_ai_components_ui from '@elabs-ai/components-ui';
|
|
4
|
-
import { AccordionItem, Accordion, TimelineItemProps, Status, TimelineRootProps, AgentEventPhase, AgentEventOutcome, CheckSummary, CheckResult, Button, FileSource, HoverCard, HoverCardContent, HoverCardTrigger, CollapsibleContent, CollapsibleTrigger, Badge, HeadingLevel, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Collapsible, Avatar, InputGroupButton, DropdownMenuItem, DropdownMenu, DropdownMenuContent, TooltipContent, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, InputGroupAddon, InputGroupTextarea, EffortLevel, OperatingMode, SlashCommand, Alert, AlertDescription, ApprovalOption, Textarea, AlertTitle, DiffLine, Switch, Carousel, ProseHeadingLevel, ButtonGroup, Popover, PopoverContent, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, StatusBadge, ScrollArea, TabsContent, Tabs, TabsList, TabsTrigger, SessionCapability, SessionWhatsNewItem, SessionQuickAction, InputGroup, InputGroupInput, InputGroupText, Dialog, DialogContent, CommandDialog, CommandShortcut, DialogTrigger, Input } from '@elabs-ai/components-ui';
|
|
4
|
+
import { AccordionItem, Accordion, TimelineItemProps, Status, TimelineRootProps, AgentEventPhase, AgentEventOutcome, CheckSummary, CheckResult, Button, FileSource, HoverCard, HoverCardContent, HoverCardTrigger, CollapsibleContent, CollapsibleTrigger, Badge, HeadingLevel, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Collapsible, Avatar, InputGroupButton, DropdownMenuItem, DropdownMenu, DropdownMenuContent, TooltipContent, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, InputGroupAddon, InputGroupTextarea, EffortLevel, OperatingMode, SlashCommand, MentionOption, MentionValue, Alert, AlertDescription, ApprovalOption, Textarea, AlertTitle, DiffLine, Switch, Carousel, ProseHeadingLevel, ButtonGroup, Popover, PopoverContent, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, StatusBadge, ScrollArea, TabsContent, Tabs, TabsList, TabsTrigger, SessionCapability, SessionWhatsNewItem, SessionQuickAction, InputGroup, InputGroupInput, InputGroupText, Dialog, DialogContent, CommandDialog, CommandShortcut, DialogTrigger, Input } from '@elabs-ai/components-ui';
|
|
5
5
|
import * as ai from 'ai';
|
|
6
6
|
import { Tool as Tool$1, FileUIPart, SourceDocumentUIPart, Experimental_SpeechResult, ChatStatus, ToolUIPart, UIMessage, Experimental_GeneratedImage, LanguageModelUsage, DynamicToolUIPart, Experimental_TranscriptionResult } from 'ai';
|
|
7
7
|
import { LucideIcon, LucideProps, FileIcon } from 'lucide-react';
|
|
@@ -702,7 +702,7 @@ interface TokenizedCode {
|
|
|
702
702
|
fg: string;
|
|
703
703
|
bg: string;
|
|
704
704
|
}
|
|
705
|
-
declare const highlightCode: (code: string, language: BundledLanguage, callback?: (result: TokenizedCode) => void, el?: Element | null) => TokenizedCode | null;
|
|
705
|
+
declare const highlightCode: (code: string, language: BundledLanguage, callback?: (result: TokenizedCode) => void, el?: Element | null, skipCache?: boolean) => TokenizedCode | null;
|
|
706
706
|
declare const CodeBlockContainer: ({ className, language, style, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
707
707
|
language: string;
|
|
708
708
|
}) => react.JSX.Element;
|
|
@@ -710,11 +710,12 @@ declare const CodeBlockHeader: ({ children, className, ...props }: HTMLAttribute
|
|
|
710
710
|
declare const CodeBlockTitle: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
711
711
|
declare const CodeBlockFilename: ({ children, className, ...props }: HTMLAttributes<HTMLSpanElement>) => react.JSX.Element;
|
|
712
712
|
declare const CodeBlockActions: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
713
|
-
declare const CodeBlockContent: ({ code, language, showLineNumbers, wrap, }: {
|
|
713
|
+
declare const CodeBlockContent: ({ code, language, showLineNumbers, wrap, isStreaming, }: {
|
|
714
714
|
code: string;
|
|
715
715
|
language: BundledLanguage;
|
|
716
716
|
showLineNumbers?: boolean;
|
|
717
717
|
wrap?: boolean;
|
|
718
|
+
isStreaming?: boolean;
|
|
718
719
|
}) => react.JSX.Element;
|
|
719
720
|
declare const CodeBlock: ({ code, language, showLineNumbers, wrap, isStreaming, className, children, ...props }: CodeBlockProps) => react.JSX.Element;
|
|
720
721
|
type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
@@ -766,7 +767,7 @@ type CommitCopyButtonProps = ComponentProps<typeof Button> & {
|
|
|
766
767
|
onError?: (error: Error) => void;
|
|
767
768
|
timeout?: number;
|
|
768
769
|
};
|
|
769
|
-
declare const CommitCopyButton: ({ hash, onCopy, onError, timeout, children, className, ...props }: CommitCopyButtonProps) => react.JSX.Element;
|
|
770
|
+
declare const CommitCopyButton: ({ hash, onCopy, onError, timeout, children, className, "aria-label": ariaLabel, ...props }: CommitCopyButtonProps) => react.JSX.Element;
|
|
770
771
|
type CommitContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
771
772
|
declare const CommitContent: ({ className, children, ...props }: CommitContentProps) => react.JSX.Element;
|
|
772
773
|
type CommitFilesProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -1207,7 +1208,26 @@ interface ComposerShortcut {
|
|
|
1207
1208
|
/** What the key does, in a word or two, e.g. `"send"`, `"newline"`. */
|
|
1208
1209
|
label: string;
|
|
1209
1210
|
}
|
|
1210
|
-
|
|
1211
|
+
/**
|
|
1212
|
+
* An `@`-mention roster for the composer field (`MentionInput` from
|
|
1213
|
+
* `@elabs-ai/components-ui`). The field keeps its own submit contract; the
|
|
1214
|
+
* mentions ride alongside the text in a `MentionValue`.
|
|
1215
|
+
*
|
|
1216
|
+
* Read the mentions on submit from `value` (controlled) or from
|
|
1217
|
+
* `onValueChange`, and resolve them with `serializeMentions(value)`
|
|
1218
|
+
* (`{ text, mentionedIds }`). `Composer` resets the value to empty after a
|
|
1219
|
+
* submit it accepts — through `onValueChange`, so a controlled caller's state
|
|
1220
|
+
* clears too.
|
|
1221
|
+
*/
|
|
1222
|
+
interface ComposerMentions {
|
|
1223
|
+
/** Who (or what) can be mentioned. */
|
|
1224
|
+
options: MentionOption[];
|
|
1225
|
+
/** Controlled value. Omit for an uncontrolled roster. */
|
|
1226
|
+
value?: MentionValue;
|
|
1227
|
+
/** Fires on every edit, pick and post-submit reset. */
|
|
1228
|
+
onValueChange?: (value: MentionValue) => void;
|
|
1229
|
+
}
|
|
1230
|
+
interface ComposerBaseProps {
|
|
1211
1231
|
/** Submit handler — receives the assembled message (text + attachments). */
|
|
1212
1232
|
onSubmit?: PromptInputProps["onSubmit"];
|
|
1213
1233
|
/** Textarea placeholder. Default `"Ask me anything…"`. */
|
|
@@ -1241,20 +1261,6 @@ interface ComposerProps {
|
|
|
1241
1261
|
* and is entirely yours; `aria-label` names the scale.
|
|
1242
1262
|
*/
|
|
1243
1263
|
effort?: ComposerEffortProps;
|
|
1244
|
-
/**
|
|
1245
|
-
* Slash-command palette. When set (and non-empty) the textarea becomes a
|
|
1246
|
-
* `PromptInputSlashTextarea` wrapped in a `PromptInputSlash`, so typing `/`
|
|
1247
|
-
* at the start of a line opens a filtered command list — nothing else about
|
|
1248
|
-
* the composer changes.
|
|
1249
|
-
*
|
|
1250
|
-
* Note this makes the textarea REACT-CONTROLLED (the palette needs to read
|
|
1251
|
-
* and splice the text), which is why `Composer` clears its own copy of the
|
|
1252
|
-
* text on submit: `PromptInput`'s `form.reset()` reaches the DOM node, not
|
|
1253
|
-
* React state.
|
|
1254
|
-
*/
|
|
1255
|
-
slashCommands?: PromptInputSlashProps["commands"];
|
|
1256
|
-
/** Fires with the chosen slash command (alongside the text splice). */
|
|
1257
|
-
onSlashCommand?: PromptInputSlashProps["onSelect"];
|
|
1258
1264
|
/**
|
|
1259
1265
|
* Override the DEFAULT tool buttons (today: the attach button) — e.g. to add
|
|
1260
1266
|
* a web-search or connect-data control. Render `PromptInputButton`s /
|
|
@@ -1329,6 +1335,34 @@ interface ComposerProps {
|
|
|
1329
1335
|
/** Extra classes for the outer card frame. */
|
|
1330
1336
|
className?: string;
|
|
1331
1337
|
}
|
|
1338
|
+
/**
|
|
1339
|
+
* The field enhancements that each take over the textarea — a slash palette OR
|
|
1340
|
+
* a mention roster, never both. The union makes the impossible combination a
|
|
1341
|
+
* type error instead of a silent precedence rule.
|
|
1342
|
+
*/
|
|
1343
|
+
type ComposerFieldProps = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Slash-command palette. When set (and non-empty) the textarea becomes a
|
|
1346
|
+
* `PromptInputSlashTextarea` wrapped in a `PromptInputSlash`, so typing `/`
|
|
1347
|
+
* at the start of a line opens a filtered command list — nothing else about
|
|
1348
|
+
* the composer changes.
|
|
1349
|
+
*
|
|
1350
|
+
* Note this makes the textarea REACT-CONTROLLED (the palette needs to read
|
|
1351
|
+
* and splice the text), which is why `Composer` clears its own copy of the
|
|
1352
|
+
* text on submit: `PromptInput`'s `form.reset()` reaches the DOM node, not
|
|
1353
|
+
* React state.
|
|
1354
|
+
*/
|
|
1355
|
+
slashCommands?: PromptInputSlashProps["commands"];
|
|
1356
|
+
/** Fires with the chosen slash command (alongside the text splice). */
|
|
1357
|
+
onSlashCommand?: PromptInputSlashProps["onSelect"];
|
|
1358
|
+
mentions?: never;
|
|
1359
|
+
} | {
|
|
1360
|
+
/** `@`-mention roster on the field — see `ComposerMentions`. */
|
|
1361
|
+
mentions?: ComposerMentions;
|
|
1362
|
+
slashCommands?: never;
|
|
1363
|
+
onSlashCommand?: never;
|
|
1364
|
+
};
|
|
1365
|
+
type ComposerProps = ComposerBaseProps & ComposerFieldProps;
|
|
1332
1366
|
/**
|
|
1333
1367
|
* Composer — the standard brand-ui AI chat input.
|
|
1334
1368
|
*
|
|
@@ -1346,14 +1380,15 @@ interface ComposerProps {
|
|
|
1346
1380
|
*
|
|
1347
1381
|
* **Composer is the chat input. Every control the `PromptInput` family ships
|
|
1348
1382
|
* is reachable from a `Composer` prop; drop to `PromptInput` only for a
|
|
1349
|
-
* bespoke shell.** `modelPicker`, `mode`, `effort
|
|
1350
|
-
*
|
|
1351
|
-
* `PromptInputMode`, `PromptInputEffort
|
|
1383
|
+
* bespoke shell.** `modelPicker`, `mode`, `effort`, `slashCommands` and
|
|
1384
|
+
* `mentions` are the slots that make that true — they render `ModelPicker`,
|
|
1385
|
+
* `PromptInputMode`, `PromptInputEffort`, `PromptInputSlash` and
|
|
1386
|
+
* `MentionInput` respectively,
|
|
1352
1387
|
* in the footer order `attach · modelPicker · mode · effort │ voice · send`
|
|
1353
1388
|
* (the same left-to-right arrangement `TerminalComposer` uses, so the chat and
|
|
1354
1389
|
* console skins agree).
|
|
1355
1390
|
*/
|
|
1356
|
-
declare function Composer({ onSubmit, placeholder, status, modelPicker, mode, effort, slashCommands, onSlashCommand, tools, sendStatus, onStop, submitProps, shortcuts, cancelShortcut, suggestions, onSuggestionClick, showVoice, showAttach, tone, className, }: ComposerProps): react.JSX.Element;
|
|
1391
|
+
declare function Composer({ onSubmit, placeholder, status, modelPicker, mode, effort, slashCommands, onSlashCommand, mentions, tools, sendStatus, onStop, submitProps, shortcuts, cancelShortcut, suggestions, onSuggestionClick, showVoice, showAttach, tone, className, }: ComposerProps): react.JSX.Element;
|
|
1357
1392
|
|
|
1358
1393
|
type ToolUIPartApproval = {
|
|
1359
1394
|
id: string;
|
|
@@ -1490,8 +1525,19 @@ declare const Connection: ConnectionLineComponent;
|
|
|
1490
1525
|
type ControlsProps = ComponentProps<typeof Controls$1>;
|
|
1491
1526
|
declare const Controls: (props: ControlsProps) => react.JSX.Element;
|
|
1492
1527
|
|
|
1493
|
-
type ConversationProps = ComponentProps<typeof StickToBottom
|
|
1494
|
-
|
|
1528
|
+
type ConversationProps = ComponentProps<typeof StickToBottom> & {
|
|
1529
|
+
/**
|
|
1530
|
+
* The assistant response is still arriving (loading-states.md
|
|
1531
|
+
* `isStreaming`). `role="log"` otherwise announces every incoming token to
|
|
1532
|
+
* assistive tech as it streams in — deafening. While `true`, `aria-live`
|
|
1533
|
+
* is suppressed (`"off"`) and `aria-busy` is set; once streaming ends,
|
|
1534
|
+
* `aria-live` returns to `"polite"` so the settled content is what
|
|
1535
|
+
* actually gets announced.
|
|
1536
|
+
* @default false
|
|
1537
|
+
*/
|
|
1538
|
+
isStreaming?: boolean;
|
|
1539
|
+
};
|
|
1540
|
+
declare const Conversation: ({ className, isStreaming, ...props }: ConversationProps) => react.JSX.Element;
|
|
1495
1541
|
type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
|
|
1496
1542
|
declare const ConversationContent: ({ className, scrollClassName, ...props }: ConversationContentProps) => react.JSX.Element;
|
|
1497
1543
|
type ConversationEmptyStateProps = ComponentProps<"div"> & {
|
|
@@ -1590,7 +1636,7 @@ type EnvironmentVariableCopyButtonProps = ComponentProps<typeof Button> & {
|
|
|
1590
1636
|
timeout?: number;
|
|
1591
1637
|
copyFormat?: "name" | "value" | "export";
|
|
1592
1638
|
};
|
|
1593
|
-
declare const EnvironmentVariableCopyButton: ({ onCopy, onError, timeout, copyFormat, children, className, ...props }: EnvironmentVariableCopyButtonProps) => react.JSX.Element;
|
|
1639
|
+
declare const EnvironmentVariableCopyButton: ({ onCopy, onError, timeout, copyFormat, children, className, "aria-label": ariaLabel, ...props }: EnvironmentVariableCopyButtonProps) => react.JSX.Element;
|
|
1594
1640
|
type EnvironmentVariableRequiredProps = ComponentProps<typeof Badge>;
|
|
1595
1641
|
declare const EnvironmentVariableRequired: ({ className, children, ...props }: EnvironmentVariableRequiredProps) => react.JSX.Element;
|
|
1596
1642
|
|
|
@@ -1934,6 +1980,242 @@ declare const InlineCitationSource: ({ title, url, description, className, child
|
|
|
1934
1980
|
type InlineCitationQuoteProps = ComponentProps<"blockquote">;
|
|
1935
1981
|
declare const InlineCitationQuote: ({ children, className, ...props }: InlineCitationQuoteProps) => react.JSX.Element;
|
|
1936
1982
|
|
|
1983
|
+
/**
|
|
1984
|
+
* complete-json.ts — close a PARTIAL JSON document so a streaming surface can be
|
|
1985
|
+
* parsed and drawn before the model has finished (the A2UI counterpart of
|
|
1986
|
+
* `JSXPreview`'s `completeJsxTag`).
|
|
1987
|
+
*
|
|
1988
|
+
* Strategy: one linear scan tracking the bracket stack, string state and escape
|
|
1989
|
+
* state; then (1) close an open string, (2) drop a dangling `,` or supply `null`
|
|
1990
|
+
* for a dangling `"key":`, (3) close every open bracket in reverse. The result is
|
|
1991
|
+
* always syntactically valid JSON for any prefix of a valid document that has
|
|
1992
|
+
* passed its first `{`. Semantic gaps (a half-typed prop value, a node without
|
|
1993
|
+
* its `type` yet) are the validator's business — the renderer prunes what does
|
|
1994
|
+
* not validate while streaming and keeps the last good tree.
|
|
1995
|
+
*/
|
|
1996
|
+
declare function completeJson(text: string): string;
|
|
1997
|
+
/**
|
|
1998
|
+
* Parse `text`, completing it first when `partial`. Returns `null` (never throws)
|
|
1999
|
+
* when even the completed text is not JSON — the caller treats that as "no tree
|
|
2000
|
+
* yet".
|
|
2001
|
+
*/
|
|
2002
|
+
declare function parseSurfaceJson(text: string, partial?: boolean): unknown | null;
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* spec.ts — the A2UI surface protocol (D2, the generative-UI path: "the agent
|
|
2006
|
+
* describes a screen as DATA, validated against a catalog").
|
|
2007
|
+
*
|
|
2008
|
+
* An `A2uiSurface` is plain JSON an agent emits — a tree of catalog nodes. It is
|
|
2009
|
+
* NOT JSX (that is `JSXPreview`, the escape hatch) and it carries no code: every
|
|
2010
|
+
* `type` must exist in the catalog, every prop is checked against that type's
|
|
2011
|
+
* schema, and interaction is a named `on` binding the HOST app resolves
|
|
2012
|
+
* (`onAction`). brand-ui renders the tree; the app owns the model call and what
|
|
2013
|
+
* an action means (D5).
|
|
2014
|
+
*
|
|
2015
|
+
* Engine-free on purpose (no React import): `validateA2uiSurface` runs in the
|
|
2016
|
+
* browser, in Node, and — bundled by `pnpm gen` — inside the dependency-free
|
|
2017
|
+
* `brand-ui a2ui` CLI, so the CLI and `@elabs-ai/components-ai` can never
|
|
2018
|
+
* disagree about what a valid surface is.
|
|
2019
|
+
*/
|
|
2020
|
+
/** Protocol version this module understands (`"a2ui": "1"` on the root). */
|
|
2021
|
+
declare const A2UI_VERSION = "1";
|
|
2022
|
+
/**
|
|
2023
|
+
* A JSON value an agent may place in a prop. The `object` arm is there for
|
|
2024
|
+
* authoring: an app hands typed records (an interface for a KPI, a chart row) to
|
|
2025
|
+
* a spec literal without an index-signature cast; the runtime validator, not the
|
|
2026
|
+
* type, is what decides whether a value is acceptable.
|
|
2027
|
+
*/
|
|
2028
|
+
type A2uiJson = string | number | boolean | null | undefined | readonly A2uiJson[] | {
|
|
2029
|
+
readonly [key: string]: A2uiJson;
|
|
2030
|
+
} | object;
|
|
2031
|
+
/**
|
|
2032
|
+
* A node's prop value: a JSON value, or — for props the catalog types as `node`
|
|
2033
|
+
* (`title`, `description`, `actions`, …) — a nested node or list of nodes.
|
|
2034
|
+
*/
|
|
2035
|
+
type A2uiPropValue = A2uiJson | A2uiNode | A2uiNode[];
|
|
2036
|
+
/** What a bound event sends to the host: a NAME (the app's verb) and a payload. */
|
|
2037
|
+
interface A2uiAction {
|
|
2038
|
+
/** The host-side verb, e.g. `"approve"`, `"open-order"`. Never a code string. */
|
|
2039
|
+
name: string;
|
|
2040
|
+
/** Free JSON the agent attaches (an id, a row, a form draft). */
|
|
2041
|
+
payload?: A2uiJson;
|
|
2042
|
+
}
|
|
2043
|
+
/** An element node. Text nodes are plain strings inside `children`. */
|
|
2044
|
+
interface A2uiElement {
|
|
2045
|
+
/** A catalog type — `"Card"`, `"Button"`, `"Stack"`, … Unknown types are errors. */
|
|
2046
|
+
type: string;
|
|
2047
|
+
/** Optional stable id (→ `data-a2ui-id`), useful for the host to address a node. */
|
|
2048
|
+
id?: string;
|
|
2049
|
+
/** Props checked against the catalog entry's schema. */
|
|
2050
|
+
props?: Record<string, A2uiPropValue>;
|
|
2051
|
+
/** Child nodes — only for catalog types that accept children. */
|
|
2052
|
+
children?: A2uiNode[];
|
|
2053
|
+
/**
|
|
2054
|
+
* Event bindings by the catalog's event vocabulary (`click`, `change`, …) →
|
|
2055
|
+
* the action the host receives. The renderer wires the React handler.
|
|
2056
|
+
*/
|
|
2057
|
+
on?: Record<string, A2uiAction>;
|
|
2058
|
+
}
|
|
2059
|
+
type A2uiNode = string | A2uiElement;
|
|
2060
|
+
/** The document an agent emits (the whole tool-call result / message part). */
|
|
2061
|
+
interface A2uiSurfaceSpec {
|
|
2062
|
+
/** Protocol version — currently always `"1"`. */
|
|
2063
|
+
a2ui: string;
|
|
2064
|
+
/** Optional accessible name for the surface region. */
|
|
2065
|
+
title?: string;
|
|
2066
|
+
/** The root node — usually a `Stack`, `Grid` or `Card`. */
|
|
2067
|
+
root: A2uiNode;
|
|
2068
|
+
}
|
|
2069
|
+
/** The value shape of one prop in a catalog entry. */
|
|
2070
|
+
type A2uiPropType = "string" | "number" | "boolean" | "node" | "array" | "object" | "any";
|
|
2071
|
+
interface A2uiPropSchema {
|
|
2072
|
+
type: A2uiPropType;
|
|
2073
|
+
/** Closed set of allowed values (strings or numbers); `type` is then informational. */
|
|
2074
|
+
enum?: (string | number)[];
|
|
2075
|
+
required?: boolean;
|
|
2076
|
+
default?: A2uiJson;
|
|
2077
|
+
description?: string;
|
|
2078
|
+
}
|
|
2079
|
+
/** One catalog type — what an agent may emit for it. */
|
|
2080
|
+
interface A2uiCatalogTypeSchema {
|
|
2081
|
+
/** Drawn by the renderer itself (`Stack`, `Grid`), not a library component. */
|
|
2082
|
+
builtin?: boolean;
|
|
2083
|
+
/** May carry `children`. */
|
|
2084
|
+
children: boolean;
|
|
2085
|
+
/** One line for the agent (rendered by `brand-ui a2ui catalog`). */
|
|
2086
|
+
summary?: string;
|
|
2087
|
+
/** Prop name → schema. Anything not listed (and not in `A2UI_COMMON_PROPS`) is an error. */
|
|
2088
|
+
props: Record<string, A2uiPropSchema>;
|
|
2089
|
+
/** Event vocabulary → React handler prop (`click` → `onClick`). */
|
|
2090
|
+
events: Record<string, string>;
|
|
2091
|
+
/** Where the component comes from (`@elabs-ai/components-ui`) or `"builtin"`. */
|
|
2092
|
+
source: string;
|
|
2093
|
+
}
|
|
2094
|
+
type A2uiCatalogSchema = Record<string, A2uiCatalogTypeSchema>;
|
|
2095
|
+
/**
|
|
2096
|
+
* Props every non-builtin element accepts on top of its own schema: the DOM
|
|
2097
|
+
* attributes that are safe for an agent to set. Deliberately NO `className` or
|
|
2098
|
+
* `style` — a surface inherits the app's theme and tokens; it never restyles.
|
|
2099
|
+
*/
|
|
2100
|
+
declare const A2UI_COMMON_PROPS: Record<string, A2uiPropSchema>;
|
|
2101
|
+
/** Machine-readable problem codes from `validateA2uiSurface`. */
|
|
2102
|
+
type A2uiErrorCode = "invalid-root" | "unsupported-version" | "invalid-node" | "unknown-type" | "unknown-prop" | "missing-prop" | "invalid-value" | "children-not-allowed" | "unknown-event" | "invalid-action";
|
|
2103
|
+
interface A2uiError {
|
|
2104
|
+
/** JSON-pointer-ish path: `root.children[2].props.variant`. */
|
|
2105
|
+
path: string;
|
|
2106
|
+
/** The path of the NODE that owns the problem (`root.children[2]`) — what a streaming renderer prunes. */
|
|
2107
|
+
node: string;
|
|
2108
|
+
code: A2uiErrorCode;
|
|
2109
|
+
message: string;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
/** One renderable catalog type: its schema plus the component that draws it. */
|
|
2113
|
+
interface A2uiCatalogEntry {
|
|
2114
|
+
schema: A2uiCatalogTypeSchema;
|
|
2115
|
+
/** Absent for builtins (`Stack`, `Grid`), which the surface draws itself. */
|
|
2116
|
+
component?: ComponentType<Record<string, unknown>>;
|
|
2117
|
+
}
|
|
2118
|
+
type A2uiCatalog = Record<string, A2uiCatalogEntry>;
|
|
2119
|
+
type AnyComponent = ComponentType<any>;
|
|
2120
|
+
/** The `@elabs-ai/components-ui` bindings, one per non-builtin catalog type. */
|
|
2121
|
+
declare const UI_CATALOG_BINDINGS: Record<string, AnyComponent>;
|
|
2122
|
+
/**
|
|
2123
|
+
* Build a catalog from component bindings + a schema. Every schema type that is
|
|
2124
|
+
* not a builtin must have a binding; a binding without a schema is ignored (it
|
|
2125
|
+
* would be unvalidatable). Extend the shipped one:
|
|
2126
|
+
*
|
|
2127
|
+
* ```ts
|
|
2128
|
+
* const catalog = createA2uiCatalog(
|
|
2129
|
+
* { ...UI_CATALOG_BINDINGS, RevenueChart },
|
|
2130
|
+
* { ...A2UI_CATALOG_SCHEMA, RevenueChart: defineA2uiType({ props: { series: { type: "array", required: true } } }) },
|
|
2131
|
+
* );
|
|
2132
|
+
* ```
|
|
2133
|
+
*/
|
|
2134
|
+
declare function createA2uiCatalog(bindings: Record<string, AnyComponent>, schema?: A2uiCatalogSchema): A2uiCatalog;
|
|
2135
|
+
/** Author a schema entry for an app-provided type with sensible defaults. */
|
|
2136
|
+
declare function defineA2uiType(partial: Partial<A2uiCatalogTypeSchema> & {
|
|
2137
|
+
source?: string;
|
|
2138
|
+
}): A2uiCatalogTypeSchema;
|
|
2139
|
+
/** The schema half of a catalog (what `validateA2uiSurface` takes). */
|
|
2140
|
+
declare function catalogSchema(catalog: A2uiCatalog): A2uiCatalogSchema;
|
|
2141
|
+
/** The shipped catalog: builtins + every `@elabs-ai/components-ui` type above. */
|
|
2142
|
+
declare const uiCatalog: A2uiCatalog;
|
|
2143
|
+
|
|
2144
|
+
type A2uiSurfaceStatus = "idle" | "pending" | "ready" | "error";
|
|
2145
|
+
/** What `onAction` receives besides the action the agent named. */
|
|
2146
|
+
interface A2uiActionContext {
|
|
2147
|
+
/** The catalog event that fired (`click`, `change`, …). */
|
|
2148
|
+
event: string;
|
|
2149
|
+
/** The control's value for `change` events (text, checked, selected value…). */
|
|
2150
|
+
value?: unknown;
|
|
2151
|
+
/** The node that carried the binding, and its path in the spec. */
|
|
2152
|
+
node: A2uiElement;
|
|
2153
|
+
path: string;
|
|
2154
|
+
}
|
|
2155
|
+
type A2uiActionHandler = (action: A2uiAction, context: A2uiActionContext) => void;
|
|
2156
|
+
type A2uiSurfaceProps = Omit<ComponentProps<"div">, "children" | "onError"> & {
|
|
2157
|
+
/** The agent's surface: a parsed spec, or its JSON text (may be a streaming prefix). */
|
|
2158
|
+
surface: A2uiSurfaceSpec | string | null | undefined;
|
|
2159
|
+
/** Which types render, and how. Defaults to the shipped `uiCatalog`. */
|
|
2160
|
+
catalog?: A2uiCatalog;
|
|
2161
|
+
/** Receives every `on.<event>` binding the user triggers. */
|
|
2162
|
+
onAction?: A2uiActionHandler;
|
|
2163
|
+
/** Content is arriving incrementally — build up, suppress transient errors. */
|
|
2164
|
+
isStreaming?: boolean;
|
|
2165
|
+
/** No surface yet (fetch-then-show) — forces the skeleton. */
|
|
2166
|
+
loading?: boolean;
|
|
2167
|
+
/** Fires once per settled, invalid surface with the validation errors. */
|
|
2168
|
+
onError?: (errors: A2uiError[]) => void;
|
|
2169
|
+
/** Replace the default skeleton (shown before the first paint while pending). */
|
|
2170
|
+
skeleton?: ReactNode;
|
|
2171
|
+
};
|
|
2172
|
+
declare const A2uiSurface: react.ForwardRefExoticComponent<Omit<A2uiSurfaceProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* validate.ts — `validateA2uiSurface`: is this JSON a surface the catalog can
|
|
2176
|
+
* render? Never throws, never repairs; every problem is a typed `A2uiError` with
|
|
2177
|
+
* a path, so an agent can fix its own output from the message and a host can
|
|
2178
|
+
* prune the failing subtree while streaming (`invalidNodePaths`).
|
|
2179
|
+
*/
|
|
2180
|
+
|
|
2181
|
+
type A2uiValidation = {
|
|
2182
|
+
ok: true;
|
|
2183
|
+
spec: A2uiSurfaceSpec;
|
|
2184
|
+
errors: [];
|
|
2185
|
+
} | {
|
|
2186
|
+
ok: false;
|
|
2187
|
+
spec: A2uiSurfaceSpec | null;
|
|
2188
|
+
errors: A2uiError[];
|
|
2189
|
+
};
|
|
2190
|
+
/** An element-shaped value: an object with a string `type`. */
|
|
2191
|
+
declare const isA2uiElement: (v: unknown) => v is A2uiElement;
|
|
2192
|
+
/**
|
|
2193
|
+
* Validate an untrusted value (a parsed tool result, a streamed JSON prefix)
|
|
2194
|
+
* against `catalog`. `ok: false` carries every problem found, in document order.
|
|
2195
|
+
*/
|
|
2196
|
+
declare function validateA2uiSurface(input: unknown, catalog: A2uiCatalogSchema): A2uiValidation;
|
|
2197
|
+
/**
|
|
2198
|
+
* The set of NODE paths (`root`, `root.children[1]`, …) that own at least one
|
|
2199
|
+
* error — the renderer drops exactly those subtrees while a surface is still
|
|
2200
|
+
* streaming, so a half-arrived node never blanks its finished siblings.
|
|
2201
|
+
*/
|
|
2202
|
+
declare function invalidNodePaths(errors: A2uiError[]): Set<string>;
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* schema.ts — the A2UI surface as a JSON Schema (draft 2020-12), built from the
|
|
2206
|
+
* catalog so editors, structured-output modes and JSON-Schema validators see the
|
|
2207
|
+
* SAME contract `validateA2uiSurface` enforces. Published as
|
|
2208
|
+
* `@elabs-ai/components-ai/a2ui/schema.json` and printed by `brand-ui a2ui schema`.
|
|
2209
|
+
*/
|
|
2210
|
+
|
|
2211
|
+
declare const A2UI_SURFACE_SCHEMA_ID = "https://github.com/mreimitz/elabs-components/packages/ai/schemas/a2ui-surface.v1.schema.json";
|
|
2212
|
+
type JsonSchema = Record<string, unknown>;
|
|
2213
|
+
/** Build the JSON Schema document for `catalog`. Deterministic: sorted types. */
|
|
2214
|
+
declare function buildA2uiSurfaceSchema(catalog: A2uiCatalogSchema): JsonSchema;
|
|
2215
|
+
|
|
2216
|
+
declare const A2UI_CATALOG_VERSION = "1";
|
|
2217
|
+
declare const A2UI_CATALOG_SCHEMA: A2uiCatalogSchema;
|
|
2218
|
+
|
|
1937
2219
|
/**
|
|
1938
2220
|
* The readiness of the preview, derived from the input (see loading-states.md):
|
|
1939
2221
|
* - `idle` — nothing requested yet (empty input, never rendered). Renders nothing.
|
|
@@ -2239,7 +2521,7 @@ type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
2239
2521
|
};
|
|
2240
2522
|
declare const MessageBranch: ({ branch: branchProp, defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => react.JSX.Element;
|
|
2241
2523
|
type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
|
|
2242
|
-
declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => react.JSX.Element[];
|
|
2524
|
+
declare const MessageBranchContent: ({ children, id, ...props }: MessageBranchContentProps) => react.JSX.Element[];
|
|
2243
2525
|
type MessageBranchSelectorProps = ComponentProps<typeof ButtonGroup>;
|
|
2244
2526
|
declare const MessageBranchSelector: ({ className, ...props }: MessageBranchSelectorProps) => react.JSX.Element | null;
|
|
2245
2527
|
type MessageBranchPreviousProps = ComponentProps<typeof Button>;
|
|
@@ -2526,8 +2808,8 @@ declare const stringFieldSchema: z.ZodObject<{
|
|
|
2526
2808
|
}, "strip", z.ZodTypeAny, {
|
|
2527
2809
|
name: string;
|
|
2528
2810
|
type: "string";
|
|
2529
|
-
label?: string | undefined;
|
|
2530
2811
|
default?: string | undefined;
|
|
2812
|
+
label?: string | undefined;
|
|
2531
2813
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
2532
2814
|
pattern?: string | undefined;
|
|
2533
2815
|
maxLength?: number | undefined;
|
|
@@ -2538,8 +2820,8 @@ declare const stringFieldSchema: z.ZodObject<{
|
|
|
2538
2820
|
}, {
|
|
2539
2821
|
name: string;
|
|
2540
2822
|
type: "string";
|
|
2541
|
-
label?: string | undefined;
|
|
2542
2823
|
default?: string | undefined;
|
|
2824
|
+
label?: string | undefined;
|
|
2543
2825
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
2544
2826
|
pattern?: string | undefined;
|
|
2545
2827
|
maxLength?: number | undefined;
|
|
@@ -2566,8 +2848,8 @@ declare const numberFieldSchema: z.ZodObject<{
|
|
|
2566
2848
|
}, "strip", z.ZodTypeAny, {
|
|
2567
2849
|
name: string;
|
|
2568
2850
|
type: "number";
|
|
2569
|
-
label?: string | undefined;
|
|
2570
2851
|
default?: number | undefined;
|
|
2852
|
+
label?: string | undefined;
|
|
2571
2853
|
max?: number | undefined;
|
|
2572
2854
|
min?: number | undefined;
|
|
2573
2855
|
required?: boolean | undefined;
|
|
@@ -2575,8 +2857,8 @@ declare const numberFieldSchema: z.ZodObject<{
|
|
|
2575
2857
|
}, {
|
|
2576
2858
|
name: string;
|
|
2577
2859
|
type: "number";
|
|
2578
|
-
label?: string | undefined;
|
|
2579
2860
|
default?: number | undefined;
|
|
2861
|
+
label?: string | undefined;
|
|
2580
2862
|
max?: number | undefined;
|
|
2581
2863
|
min?: number | undefined;
|
|
2582
2864
|
required?: boolean | undefined;
|
|
@@ -2600,8 +2882,8 @@ declare const integerFieldSchema: z.ZodObject<{
|
|
|
2600
2882
|
}, "strip", z.ZodTypeAny, {
|
|
2601
2883
|
name: string;
|
|
2602
2884
|
type: "integer";
|
|
2603
|
-
label?: string | undefined;
|
|
2604
2885
|
default?: number | undefined;
|
|
2886
|
+
label?: string | undefined;
|
|
2605
2887
|
max?: number | undefined;
|
|
2606
2888
|
min?: number | undefined;
|
|
2607
2889
|
required?: boolean | undefined;
|
|
@@ -2609,8 +2891,8 @@ declare const integerFieldSchema: z.ZodObject<{
|
|
|
2609
2891
|
}, {
|
|
2610
2892
|
name: string;
|
|
2611
2893
|
type: "integer";
|
|
2612
|
-
label?: string | undefined;
|
|
2613
2894
|
default?: number | undefined;
|
|
2895
|
+
label?: string | undefined;
|
|
2614
2896
|
max?: number | undefined;
|
|
2615
2897
|
min?: number | undefined;
|
|
2616
2898
|
required?: boolean | undefined;
|
|
@@ -2632,15 +2914,15 @@ declare const booleanFieldSchema: z.ZodObject<{
|
|
|
2632
2914
|
}, "strip", z.ZodTypeAny, {
|
|
2633
2915
|
name: string;
|
|
2634
2916
|
type: "boolean";
|
|
2635
|
-
label?: string | undefined;
|
|
2636
2917
|
default?: boolean | undefined;
|
|
2918
|
+
label?: string | undefined;
|
|
2637
2919
|
required?: boolean | undefined;
|
|
2638
2920
|
description?: string | undefined;
|
|
2639
2921
|
}, {
|
|
2640
2922
|
name: string;
|
|
2641
2923
|
type: "boolean";
|
|
2642
|
-
label?: string | undefined;
|
|
2643
2924
|
default?: boolean | undefined;
|
|
2925
|
+
label?: string | undefined;
|
|
2644
2926
|
required?: boolean | undefined;
|
|
2645
2927
|
description?: string | undefined;
|
|
2646
2928
|
}>;
|
|
@@ -2674,8 +2956,8 @@ declare const enumFieldSchema: z.ZodObject<{
|
|
|
2674
2956
|
const: string;
|
|
2675
2957
|
title?: string | undefined;
|
|
2676
2958
|
})[];
|
|
2677
|
-
label?: string | undefined;
|
|
2678
2959
|
default?: string | undefined;
|
|
2960
|
+
label?: string | undefined;
|
|
2679
2961
|
required?: boolean | undefined;
|
|
2680
2962
|
description?: string | undefined;
|
|
2681
2963
|
}, {
|
|
@@ -2685,8 +2967,8 @@ declare const enumFieldSchema: z.ZodObject<{
|
|
|
2685
2967
|
const: string;
|
|
2686
2968
|
title?: string | undefined;
|
|
2687
2969
|
})[];
|
|
2688
|
-
label?: string | undefined;
|
|
2689
2970
|
default?: string | undefined;
|
|
2971
|
+
label?: string | undefined;
|
|
2690
2972
|
required?: boolean | undefined;
|
|
2691
2973
|
description?: string | undefined;
|
|
2692
2974
|
}>;
|
|
@@ -2720,8 +3002,8 @@ declare const multiEnumFieldSchema: z.ZodObject<{
|
|
|
2720
3002
|
const: string;
|
|
2721
3003
|
title?: string | undefined;
|
|
2722
3004
|
})[];
|
|
2723
|
-
label?: string | undefined;
|
|
2724
3005
|
default?: string[] | undefined;
|
|
3006
|
+
label?: string | undefined;
|
|
2725
3007
|
required?: boolean | undefined;
|
|
2726
3008
|
description?: string | undefined;
|
|
2727
3009
|
}, {
|
|
@@ -2731,8 +3013,8 @@ declare const multiEnumFieldSchema: z.ZodObject<{
|
|
|
2731
3013
|
const: string;
|
|
2732
3014
|
title?: string | undefined;
|
|
2733
3015
|
})[];
|
|
2734
|
-
label?: string | undefined;
|
|
2735
3016
|
default?: string[] | undefined;
|
|
3017
|
+
label?: string | undefined;
|
|
2736
3018
|
required?: boolean | undefined;
|
|
2737
3019
|
description?: string | undefined;
|
|
2738
3020
|
}>;
|
|
@@ -2759,8 +3041,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2759
3041
|
}, "strip", z.ZodTypeAny, {
|
|
2760
3042
|
name: string;
|
|
2761
3043
|
type: "string";
|
|
2762
|
-
label?: string | undefined;
|
|
2763
3044
|
default?: string | undefined;
|
|
3045
|
+
label?: string | undefined;
|
|
2764
3046
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
2765
3047
|
pattern?: string | undefined;
|
|
2766
3048
|
maxLength?: number | undefined;
|
|
@@ -2771,8 +3053,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2771
3053
|
}, {
|
|
2772
3054
|
name: string;
|
|
2773
3055
|
type: "string";
|
|
2774
|
-
label?: string | undefined;
|
|
2775
3056
|
default?: string | undefined;
|
|
3057
|
+
label?: string | undefined;
|
|
2776
3058
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
2777
3059
|
pattern?: string | undefined;
|
|
2778
3060
|
maxLength?: number | undefined;
|
|
@@ -2796,8 +3078,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2796
3078
|
}, "strip", z.ZodTypeAny, {
|
|
2797
3079
|
name: string;
|
|
2798
3080
|
type: "number";
|
|
2799
|
-
label?: string | undefined;
|
|
2800
3081
|
default?: number | undefined;
|
|
3082
|
+
label?: string | undefined;
|
|
2801
3083
|
max?: number | undefined;
|
|
2802
3084
|
min?: number | undefined;
|
|
2803
3085
|
required?: boolean | undefined;
|
|
@@ -2805,8 +3087,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2805
3087
|
}, {
|
|
2806
3088
|
name: string;
|
|
2807
3089
|
type: "number";
|
|
2808
|
-
label?: string | undefined;
|
|
2809
3090
|
default?: number | undefined;
|
|
3091
|
+
label?: string | undefined;
|
|
2810
3092
|
max?: number | undefined;
|
|
2811
3093
|
min?: number | undefined;
|
|
2812
3094
|
required?: boolean | undefined;
|
|
@@ -2827,8 +3109,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2827
3109
|
}, "strip", z.ZodTypeAny, {
|
|
2828
3110
|
name: string;
|
|
2829
3111
|
type: "integer";
|
|
2830
|
-
label?: string | undefined;
|
|
2831
3112
|
default?: number | undefined;
|
|
3113
|
+
label?: string | undefined;
|
|
2832
3114
|
max?: number | undefined;
|
|
2833
3115
|
min?: number | undefined;
|
|
2834
3116
|
required?: boolean | undefined;
|
|
@@ -2836,8 +3118,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2836
3118
|
}, {
|
|
2837
3119
|
name: string;
|
|
2838
3120
|
type: "integer";
|
|
2839
|
-
label?: string | undefined;
|
|
2840
3121
|
default?: number | undefined;
|
|
3122
|
+
label?: string | undefined;
|
|
2841
3123
|
max?: number | undefined;
|
|
2842
3124
|
min?: number | undefined;
|
|
2843
3125
|
required?: boolean | undefined;
|
|
@@ -2856,15 +3138,15 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2856
3138
|
}, "strip", z.ZodTypeAny, {
|
|
2857
3139
|
name: string;
|
|
2858
3140
|
type: "boolean";
|
|
2859
|
-
label?: string | undefined;
|
|
2860
3141
|
default?: boolean | undefined;
|
|
3142
|
+
label?: string | undefined;
|
|
2861
3143
|
required?: boolean | undefined;
|
|
2862
3144
|
description?: string | undefined;
|
|
2863
3145
|
}, {
|
|
2864
3146
|
name: string;
|
|
2865
3147
|
type: "boolean";
|
|
2866
|
-
label?: string | undefined;
|
|
2867
3148
|
default?: boolean | undefined;
|
|
3149
|
+
label?: string | undefined;
|
|
2868
3150
|
required?: boolean | undefined;
|
|
2869
3151
|
description?: string | undefined;
|
|
2870
3152
|
}>, z.ZodObject<{
|
|
@@ -2895,8 +3177,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2895
3177
|
const: string;
|
|
2896
3178
|
title?: string | undefined;
|
|
2897
3179
|
})[];
|
|
2898
|
-
label?: string | undefined;
|
|
2899
3180
|
default?: string | undefined;
|
|
3181
|
+
label?: string | undefined;
|
|
2900
3182
|
required?: boolean | undefined;
|
|
2901
3183
|
description?: string | undefined;
|
|
2902
3184
|
}, {
|
|
@@ -2906,8 +3188,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2906
3188
|
const: string;
|
|
2907
3189
|
title?: string | undefined;
|
|
2908
3190
|
})[];
|
|
2909
|
-
label?: string | undefined;
|
|
2910
3191
|
default?: string | undefined;
|
|
3192
|
+
label?: string | undefined;
|
|
2911
3193
|
required?: boolean | undefined;
|
|
2912
3194
|
description?: string | undefined;
|
|
2913
3195
|
}>, z.ZodObject<{
|
|
@@ -2938,8 +3220,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2938
3220
|
const: string;
|
|
2939
3221
|
title?: string | undefined;
|
|
2940
3222
|
})[];
|
|
2941
|
-
label?: string | undefined;
|
|
2942
3223
|
default?: string[] | undefined;
|
|
3224
|
+
label?: string | undefined;
|
|
2943
3225
|
required?: boolean | undefined;
|
|
2944
3226
|
description?: string | undefined;
|
|
2945
3227
|
}, {
|
|
@@ -2949,8 +3231,8 @@ declare const fieldSpecSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2949
3231
|
const: string;
|
|
2950
3232
|
title?: string | undefined;
|
|
2951
3233
|
})[];
|
|
2952
|
-
label?: string | undefined;
|
|
2953
3234
|
default?: string[] | undefined;
|
|
3235
|
+
label?: string | undefined;
|
|
2954
3236
|
required?: boolean | undefined;
|
|
2955
3237
|
description?: string | undefined;
|
|
2956
3238
|
}>]>;
|
|
@@ -2991,8 +3273,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
2991
3273
|
}, "strip", z.ZodTypeAny, {
|
|
2992
3274
|
name: string;
|
|
2993
3275
|
type: "string";
|
|
2994
|
-
label?: string | undefined;
|
|
2995
3276
|
default?: string | undefined;
|
|
3277
|
+
label?: string | undefined;
|
|
2996
3278
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
2997
3279
|
pattern?: string | undefined;
|
|
2998
3280
|
maxLength?: number | undefined;
|
|
@@ -3003,8 +3285,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3003
3285
|
}, {
|
|
3004
3286
|
name: string;
|
|
3005
3287
|
type: "string";
|
|
3006
|
-
label?: string | undefined;
|
|
3007
3288
|
default?: string | undefined;
|
|
3289
|
+
label?: string | undefined;
|
|
3008
3290
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
3009
3291
|
pattern?: string | undefined;
|
|
3010
3292
|
maxLength?: number | undefined;
|
|
@@ -3028,8 +3310,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3028
3310
|
}, "strip", z.ZodTypeAny, {
|
|
3029
3311
|
name: string;
|
|
3030
3312
|
type: "number";
|
|
3031
|
-
label?: string | undefined;
|
|
3032
3313
|
default?: number | undefined;
|
|
3314
|
+
label?: string | undefined;
|
|
3033
3315
|
max?: number | undefined;
|
|
3034
3316
|
min?: number | undefined;
|
|
3035
3317
|
required?: boolean | undefined;
|
|
@@ -3037,8 +3319,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3037
3319
|
}, {
|
|
3038
3320
|
name: string;
|
|
3039
3321
|
type: "number";
|
|
3040
|
-
label?: string | undefined;
|
|
3041
3322
|
default?: number | undefined;
|
|
3323
|
+
label?: string | undefined;
|
|
3042
3324
|
max?: number | undefined;
|
|
3043
3325
|
min?: number | undefined;
|
|
3044
3326
|
required?: boolean | undefined;
|
|
@@ -3059,8 +3341,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3059
3341
|
}, "strip", z.ZodTypeAny, {
|
|
3060
3342
|
name: string;
|
|
3061
3343
|
type: "integer";
|
|
3062
|
-
label?: string | undefined;
|
|
3063
3344
|
default?: number | undefined;
|
|
3345
|
+
label?: string | undefined;
|
|
3064
3346
|
max?: number | undefined;
|
|
3065
3347
|
min?: number | undefined;
|
|
3066
3348
|
required?: boolean | undefined;
|
|
@@ -3068,8 +3350,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3068
3350
|
}, {
|
|
3069
3351
|
name: string;
|
|
3070
3352
|
type: "integer";
|
|
3071
|
-
label?: string | undefined;
|
|
3072
3353
|
default?: number | undefined;
|
|
3354
|
+
label?: string | undefined;
|
|
3073
3355
|
max?: number | undefined;
|
|
3074
3356
|
min?: number | undefined;
|
|
3075
3357
|
required?: boolean | undefined;
|
|
@@ -3088,15 +3370,15 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3088
3370
|
}, "strip", z.ZodTypeAny, {
|
|
3089
3371
|
name: string;
|
|
3090
3372
|
type: "boolean";
|
|
3091
|
-
label?: string | undefined;
|
|
3092
3373
|
default?: boolean | undefined;
|
|
3374
|
+
label?: string | undefined;
|
|
3093
3375
|
required?: boolean | undefined;
|
|
3094
3376
|
description?: string | undefined;
|
|
3095
3377
|
}, {
|
|
3096
3378
|
name: string;
|
|
3097
3379
|
type: "boolean";
|
|
3098
|
-
label?: string | undefined;
|
|
3099
3380
|
default?: boolean | undefined;
|
|
3381
|
+
label?: string | undefined;
|
|
3100
3382
|
required?: boolean | undefined;
|
|
3101
3383
|
description?: string | undefined;
|
|
3102
3384
|
}>, z.ZodObject<{
|
|
@@ -3127,8 +3409,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3127
3409
|
const: string;
|
|
3128
3410
|
title?: string | undefined;
|
|
3129
3411
|
})[];
|
|
3130
|
-
label?: string | undefined;
|
|
3131
3412
|
default?: string | undefined;
|
|
3413
|
+
label?: string | undefined;
|
|
3132
3414
|
required?: boolean | undefined;
|
|
3133
3415
|
description?: string | undefined;
|
|
3134
3416
|
}, {
|
|
@@ -3138,8 +3420,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3138
3420
|
const: string;
|
|
3139
3421
|
title?: string | undefined;
|
|
3140
3422
|
})[];
|
|
3141
|
-
label?: string | undefined;
|
|
3142
3423
|
default?: string | undefined;
|
|
3424
|
+
label?: string | undefined;
|
|
3143
3425
|
required?: boolean | undefined;
|
|
3144
3426
|
description?: string | undefined;
|
|
3145
3427
|
}>, z.ZodObject<{
|
|
@@ -3170,8 +3452,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3170
3452
|
const: string;
|
|
3171
3453
|
title?: string | undefined;
|
|
3172
3454
|
})[];
|
|
3173
|
-
label?: string | undefined;
|
|
3174
3455
|
default?: string[] | undefined;
|
|
3456
|
+
label?: string | undefined;
|
|
3175
3457
|
required?: boolean | undefined;
|
|
3176
3458
|
description?: string | undefined;
|
|
3177
3459
|
}, {
|
|
@@ -3181,8 +3463,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3181
3463
|
const: string;
|
|
3182
3464
|
title?: string | undefined;
|
|
3183
3465
|
})[];
|
|
3184
|
-
label?: string | undefined;
|
|
3185
3466
|
default?: string[] | undefined;
|
|
3467
|
+
label?: string | undefined;
|
|
3186
3468
|
required?: boolean | undefined;
|
|
3187
3469
|
description?: string | undefined;
|
|
3188
3470
|
}>]>, "many">;
|
|
@@ -3192,8 +3474,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3192
3474
|
fields: ({
|
|
3193
3475
|
name: string;
|
|
3194
3476
|
type: "string";
|
|
3195
|
-
label?: string | undefined;
|
|
3196
3477
|
default?: string | undefined;
|
|
3478
|
+
label?: string | undefined;
|
|
3197
3479
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
3198
3480
|
pattern?: string | undefined;
|
|
3199
3481
|
maxLength?: number | undefined;
|
|
@@ -3204,8 +3486,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3204
3486
|
} | {
|
|
3205
3487
|
name: string;
|
|
3206
3488
|
type: "number";
|
|
3207
|
-
label?: string | undefined;
|
|
3208
3489
|
default?: number | undefined;
|
|
3490
|
+
label?: string | undefined;
|
|
3209
3491
|
max?: number | undefined;
|
|
3210
3492
|
min?: number | undefined;
|
|
3211
3493
|
required?: boolean | undefined;
|
|
@@ -3213,8 +3495,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3213
3495
|
} | {
|
|
3214
3496
|
name: string;
|
|
3215
3497
|
type: "integer";
|
|
3216
|
-
label?: string | undefined;
|
|
3217
3498
|
default?: number | undefined;
|
|
3499
|
+
label?: string | undefined;
|
|
3218
3500
|
max?: number | undefined;
|
|
3219
3501
|
min?: number | undefined;
|
|
3220
3502
|
required?: boolean | undefined;
|
|
@@ -3222,8 +3504,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3222
3504
|
} | {
|
|
3223
3505
|
name: string;
|
|
3224
3506
|
type: "boolean";
|
|
3225
|
-
label?: string | undefined;
|
|
3226
3507
|
default?: boolean | undefined;
|
|
3508
|
+
label?: string | undefined;
|
|
3227
3509
|
required?: boolean | undefined;
|
|
3228
3510
|
description?: string | undefined;
|
|
3229
3511
|
} | {
|
|
@@ -3233,8 +3515,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3233
3515
|
const: string;
|
|
3234
3516
|
title?: string | undefined;
|
|
3235
3517
|
})[];
|
|
3236
|
-
label?: string | undefined;
|
|
3237
3518
|
default?: string | undefined;
|
|
3519
|
+
label?: string | undefined;
|
|
3238
3520
|
required?: boolean | undefined;
|
|
3239
3521
|
description?: string | undefined;
|
|
3240
3522
|
} | {
|
|
@@ -3244,8 +3526,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3244
3526
|
const: string;
|
|
3245
3527
|
title?: string | undefined;
|
|
3246
3528
|
})[];
|
|
3247
|
-
label?: string | undefined;
|
|
3248
3529
|
default?: string[] | undefined;
|
|
3530
|
+
label?: string | undefined;
|
|
3249
3531
|
required?: boolean | undefined;
|
|
3250
3532
|
description?: string | undefined;
|
|
3251
3533
|
})[];
|
|
@@ -3257,8 +3539,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3257
3539
|
fields: ({
|
|
3258
3540
|
name: string;
|
|
3259
3541
|
type: "string";
|
|
3260
|
-
label?: string | undefined;
|
|
3261
3542
|
default?: string | undefined;
|
|
3543
|
+
label?: string | undefined;
|
|
3262
3544
|
format?: "email" | "date" | "uri" | "date-time" | undefined;
|
|
3263
3545
|
pattern?: string | undefined;
|
|
3264
3546
|
maxLength?: number | undefined;
|
|
@@ -3269,8 +3551,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3269
3551
|
} | {
|
|
3270
3552
|
name: string;
|
|
3271
3553
|
type: "number";
|
|
3272
|
-
label?: string | undefined;
|
|
3273
3554
|
default?: number | undefined;
|
|
3555
|
+
label?: string | undefined;
|
|
3274
3556
|
max?: number | undefined;
|
|
3275
3557
|
min?: number | undefined;
|
|
3276
3558
|
required?: boolean | undefined;
|
|
@@ -3278,8 +3560,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3278
3560
|
} | {
|
|
3279
3561
|
name: string;
|
|
3280
3562
|
type: "integer";
|
|
3281
|
-
label?: string | undefined;
|
|
3282
3563
|
default?: number | undefined;
|
|
3564
|
+
label?: string | undefined;
|
|
3283
3565
|
max?: number | undefined;
|
|
3284
3566
|
min?: number | undefined;
|
|
3285
3567
|
required?: boolean | undefined;
|
|
@@ -3287,8 +3569,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3287
3569
|
} | {
|
|
3288
3570
|
name: string;
|
|
3289
3571
|
type: "boolean";
|
|
3290
|
-
label?: string | undefined;
|
|
3291
3572
|
default?: boolean | undefined;
|
|
3573
|
+
label?: string | undefined;
|
|
3292
3574
|
required?: boolean | undefined;
|
|
3293
3575
|
description?: string | undefined;
|
|
3294
3576
|
} | {
|
|
@@ -3298,8 +3580,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3298
3580
|
const: string;
|
|
3299
3581
|
title?: string | undefined;
|
|
3300
3582
|
})[];
|
|
3301
|
-
label?: string | undefined;
|
|
3302
3583
|
default?: string | undefined;
|
|
3584
|
+
label?: string | undefined;
|
|
3303
3585
|
required?: boolean | undefined;
|
|
3304
3586
|
description?: string | undefined;
|
|
3305
3587
|
} | {
|
|
@@ -3309,8 +3591,8 @@ declare const formSpecSchema: z.ZodObject<{
|
|
|
3309
3591
|
const: string;
|
|
3310
3592
|
title?: string | undefined;
|
|
3311
3593
|
})[];
|
|
3312
|
-
label?: string | undefined;
|
|
3313
3594
|
default?: string[] | undefined;
|
|
3595
|
+
label?: string | undefined;
|
|
3314
3596
|
required?: boolean | undefined;
|
|
3315
3597
|
description?: string | undefined;
|
|
3316
3598
|
})[];
|
|
@@ -3386,6 +3668,8 @@ interface MessageFormProviderProps {
|
|
|
3386
3668
|
/** In-flight submit: controls disabled, the submit button shows a spinner. */
|
|
3387
3669
|
submitting?: boolean;
|
|
3388
3670
|
/** The spec is still streaming in (renders a skeleton when no fields yet). */
|
|
3671
|
+
isStreaming?: boolean;
|
|
3672
|
+
/** @deprecated Use `isStreaming`. */
|
|
3389
3673
|
streaming?: boolean;
|
|
3390
3674
|
children: ReactNode;
|
|
3391
3675
|
}
|
|
@@ -3393,7 +3677,7 @@ interface MessageFormProviderProps {
|
|
|
3393
3677
|
* Lifts the form values. Controlled (pass `values`) or uncontrolled.
|
|
3394
3678
|
* Derives `isControlled = values !== undefined` and never flips modes.
|
|
3395
3679
|
*/
|
|
3396
|
-
declare function MessageFormProvider({ spec, values: valuesProp, onChange, onSubmit, disabled, submitted, submitting, streaming, children, }: MessageFormProviderProps): react.JSX.Element;
|
|
3680
|
+
declare function MessageFormProvider({ spec, values: valuesProp, onChange, onSubmit, disabled, submitted, submitting, isStreaming, streaming, children, }: MessageFormProviderProps): react.JSX.Element;
|
|
3397
3681
|
interface MessageFormFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3398
3682
|
/** The field's `name` (its key in the spec + values). */
|
|
3399
3683
|
name: string;
|
|
@@ -3455,6 +3739,8 @@ interface MessageFormProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSubmi
|
|
|
3455
3739
|
/** In-flight submit: controls disabled, spinner on submit. */
|
|
3456
3740
|
submitting?: boolean;
|
|
3457
3741
|
/** The spec is still streaming (renders a skeleton when no fields yet). */
|
|
3742
|
+
isStreaming?: boolean;
|
|
3743
|
+
/** @deprecated Use `isStreaming`. */
|
|
3458
3744
|
streaming?: boolean;
|
|
3459
3745
|
}
|
|
3460
3746
|
/**
|
|
@@ -3497,11 +3783,11 @@ declare const columnSpecSchema: z.ZodObject<{
|
|
|
3497
3783
|
}, "strip", z.ZodTypeAny, {
|
|
3498
3784
|
key: string;
|
|
3499
3785
|
label?: string | undefined;
|
|
3500
|
-
format?: "number" | "text" | "
|
|
3786
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3501
3787
|
}, {
|
|
3502
3788
|
key: string;
|
|
3503
3789
|
label?: string | undefined;
|
|
3504
|
-
format?: "number" | "text" | "
|
|
3790
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3505
3791
|
}>;
|
|
3506
3792
|
type ColumnSpec = z.infer<typeof columnSpecSchema>;
|
|
3507
3793
|
/** A single row: an object keyed by column `key`. */
|
|
@@ -3524,11 +3810,11 @@ declare const tableSpecSchema: z.ZodObject<{
|
|
|
3524
3810
|
}, "strip", z.ZodTypeAny, {
|
|
3525
3811
|
key: string;
|
|
3526
3812
|
label?: string | undefined;
|
|
3527
|
-
format?: "number" | "text" | "
|
|
3813
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3528
3814
|
}, {
|
|
3529
3815
|
key: string;
|
|
3530
3816
|
label?: string | undefined;
|
|
3531
|
-
format?: "number" | "text" | "
|
|
3817
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3532
3818
|
}>, "many">;
|
|
3533
3819
|
/** Row objects keyed by column `key`. */
|
|
3534
3820
|
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
@@ -3538,7 +3824,7 @@ declare const tableSpecSchema: z.ZodObject<{
|
|
|
3538
3824
|
columns: {
|
|
3539
3825
|
key: string;
|
|
3540
3826
|
label?: string | undefined;
|
|
3541
|
-
format?: "number" | "text" | "
|
|
3827
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3542
3828
|
}[];
|
|
3543
3829
|
rows: Record<string, unknown>[];
|
|
3544
3830
|
title?: string | undefined;
|
|
@@ -3547,7 +3833,7 @@ declare const tableSpecSchema: z.ZodObject<{
|
|
|
3547
3833
|
columns: {
|
|
3548
3834
|
key: string;
|
|
3549
3835
|
label?: string | undefined;
|
|
3550
|
-
format?: "number" | "text" | "
|
|
3836
|
+
format?: "number" | "text" | "badge" | "percent" | "currency" | "date" | undefined;
|
|
3551
3837
|
}[];
|
|
3552
3838
|
rows: Record<string, unknown>[];
|
|
3553
3839
|
title?: string | undefined;
|
|
@@ -3627,6 +3913,8 @@ interface MessageTableProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
3627
3913
|
/** Per-cell render override for custom composition. */
|
|
3628
3914
|
renderCell?: RenderCell;
|
|
3629
3915
|
/** The spec is still streaming (columns-but-no-rows shows skeleton rows). */
|
|
3916
|
+
isStreaming?: boolean;
|
|
3917
|
+
/** @deprecated Use `isStreaming`. */
|
|
3630
3918
|
streaming?: boolean;
|
|
3631
3919
|
}
|
|
3632
3920
|
/**
|
|
@@ -4443,7 +4731,7 @@ type StackTraceCopyButtonProps = ComponentProps<typeof Button> & {
|
|
|
4443
4731
|
onError?: (error: Error) => void;
|
|
4444
4732
|
timeout?: number;
|
|
4445
4733
|
};
|
|
4446
|
-
declare const StackTraceCopyButton: react.MemoExoticComponent<({ onCopy, onError, timeout, className, children, ...props }: StackTraceCopyButtonProps) => react.JSX.Element>;
|
|
4734
|
+
declare const StackTraceCopyButton: react.MemoExoticComponent<({ onCopy, onError, timeout, className, children, "aria-label": ariaLabel, ...props }: StackTraceCopyButtonProps) => react.JSX.Element>;
|
|
4447
4735
|
type StackTraceExpandButtonProps = ComponentProps<"div">;
|
|
4448
4736
|
declare const StackTraceExpandButton: react.MemoExoticComponent<({ className, ...props }: StackTraceExpandButtonProps) => react.JSX.Element>;
|
|
4449
4737
|
type StackTraceContentProps = ComponentProps<typeof CollapsibleContent> & {
|
|
@@ -4743,14 +5031,6 @@ type NodeToolbarProps = ComponentProps<typeof NodeToolbar$1>;
|
|
|
4743
5031
|
* ambiguous at every call site.
|
|
4744
5032
|
*/
|
|
4745
5033
|
declare const NodeToolbar: (props: NodeToolbarProps) => react.JSX.Element;
|
|
4746
|
-
/**
|
|
4747
|
-
* @deprecated Renamed to {@link NodeToolbar}. `Toolbar` is now the WAI-ARIA
|
|
4748
|
-
* toolbar in `@elabs-ai/components-ui`. This alias will be removed in
|
|
4749
|
-
* the next major.
|
|
4750
|
-
*/
|
|
4751
|
-
declare const Toolbar: (props: NodeToolbarProps) => react.JSX.Element;
|
|
4752
|
-
/** @deprecated Renamed to {@link NodeToolbarProps}. */
|
|
4753
|
-
type ToolbarProps = NodeToolbarProps;
|
|
4754
5034
|
|
|
4755
5035
|
type TranscriptionProps = Omit<ComponentProps<"div">, "children"> & {
|
|
4756
5036
|
segments: TranscriptionSegment[];
|
|
@@ -4937,8 +5217,17 @@ type WebPreviewBodyProps = Omit<ComponentProps<"iframe">, "loading"> & {
|
|
|
4937
5217
|
* @default false
|
|
4938
5218
|
*/
|
|
4939
5219
|
loading?: boolean | ReactNode;
|
|
5220
|
+
/**
|
|
5221
|
+
* Adds `allow-same-origin` to the iframe sandbox. **Opt-in, off by
|
|
5222
|
+
* default**: combined with `allow-scripts`, a same-origin previewed page
|
|
5223
|
+
* can script its way out of the sandbox restrictions entirely (its own
|
|
5224
|
+
* `<iframe>` reads as unsandboxed once it shares the origin). Only enable
|
|
5225
|
+
* this for content you trust to be same-origin-safe.
|
|
5226
|
+
* @default false
|
|
5227
|
+
*/
|
|
5228
|
+
allowSameOrigin?: boolean;
|
|
4940
5229
|
};
|
|
4941
|
-
declare const WebPreviewBody: ({ className, loading, src, ...props }: WebPreviewBodyProps) => react.JSX.Element;
|
|
5230
|
+
declare const WebPreviewBody: ({ className, loading, src, allowSameOrigin, ...props }: WebPreviewBodyProps) => react.JSX.Element;
|
|
4942
5231
|
type WebPreviewConsoleProps = ComponentProps<"div"> & {
|
|
4943
5232
|
logs?: {
|
|
4944
5233
|
level: "log" | "warn" | "error";
|
|
@@ -4951,20 +5240,25 @@ declare const WebPreviewConsole: ({ className, logs, children, ...props }: WebPr
|
|
|
4951
5240
|
interface ChatShellProps {
|
|
4952
5241
|
/** Scrollable transcript — typically a <Conversation>. */
|
|
4953
5242
|
children: ReactNode;
|
|
4954
|
-
/**
|
|
5243
|
+
/**
|
|
5244
|
+
* Floating composer — typically a <Composer> (the standard chat input). It
|
|
5245
|
+
* floats, padded, over the bottom of the transcript, centred at
|
|
5246
|
+
* `--chat-composer-column` (default `--container-3xl`) under a transcript
|
|
5247
|
+
* column of `--chat-column` (default `--container-4xl`, read by
|
|
5248
|
+
* `ConversationContent`); turns scroll up behind it and fade out.
|
|
5249
|
+
*/
|
|
4955
5250
|
composer?: ReactNode;
|
|
4956
5251
|
/** Optional header row (title, model picker, actions). */
|
|
4957
5252
|
header?: ReactNode;
|
|
4958
5253
|
/** Optional right-side context rail (sources, files, memory). */
|
|
4959
5254
|
aside?: ReactNode;
|
|
4960
5255
|
/**
|
|
4961
|
-
*
|
|
4962
|
-
* - `"card"` (default) — a self-contained rounded, bordered chat card
|
|
4963
|
-
* when the shell sits on a page among other
|
|
4964
|
-
*
|
|
4965
|
-
*
|
|
4966
|
-
*
|
|
4967
|
-
* of a hard bordered bar. Use when the shell already lives inside a bounded
|
|
5256
|
+
* Frame treatment (the transcript/composer layout is the same in both):
|
|
5257
|
+
* - `"card"` (default) — a self-contained rounded, bordered chat card with a
|
|
5258
|
+
* divider under the header. Use when the shell sits on a page among other
|
|
5259
|
+
* content and needs its own frame.
|
|
5260
|
+
* - `"bare"` — an immersive pane that fills its container with NO frame and
|
|
5261
|
+
* no header divider. Use when the shell already lives inside a bounded
|
|
4968
5262
|
* region (an AppShell `SidebarInset`, a full-page workspace) so it doesn't
|
|
4969
5263
|
* draw a redundant second frame.
|
|
4970
5264
|
*/
|
|
@@ -4972,15 +5266,16 @@ interface ChatShellProps {
|
|
|
4972
5266
|
className?: string;
|
|
4973
5267
|
}
|
|
4974
5268
|
/**
|
|
4975
|
-
* Layout shell for an AI chat built from the AI Elements: a header, a
|
|
4976
|
-
* transcript (give it a <Conversation>, which is
|
|
4977
|
-
*
|
|
5269
|
+
* Layout shell for an AI chat built from the AI Elements: a header, a
|
|
5270
|
+
* full-height scrollable transcript (give it a <Conversation>, which is
|
|
5271
|
+
* `flex-1`), a composer floating over the transcript's bottom edge (a
|
|
5272
|
+
* <Composer>, the standard chat input), and an optional context rail. Fills
|
|
4978
5273
|
* its parent's height.
|
|
4979
5274
|
*
|
|
4980
|
-
* Two
|
|
4981
|
-
*
|
|
4982
|
-
*
|
|
5275
|
+
* Two frames (`variant`): a framed `"card"` for in-page use, and a frameless
|
|
5276
|
+
* `"bare"` immersive pane for when the shell already sits inside a bounded
|
|
5277
|
+
* region and a second frame would just read as boxy.
|
|
4983
5278
|
*/
|
|
4984
5279
|
declare function ChatShell({ children, composer, header, aside, variant, className, }: ChatShellProps): react.JSX.Element;
|
|
4985
5280
|
|
|
4986
|
-
export { Agent, AgentContent, type AgentContentProps, AgentEvent, type AgentEventProps, AgentHeader, type AgentHeaderProps, AgentInstructions, type AgentInstructionsProps, AgentMessage, type AgentMessageEmphasis, type AgentMessageProps, AgentOutput, type AgentOutputProps, type AgentProps, AgentStep, type AgentStepProps, AgentTimeline, type AgentTimelineProps, AgentTool, type AgentToolProps, AgentTools, type AgentToolsProps, ApprovalCard, ApprovalCardAccepted, type ApprovalCardAcceptedProps, ApprovalCardAction, type ApprovalCardActionProps, ApprovalCardActions, type ApprovalCardActionsProps, ApprovalCardApprove, type ApprovalCardApproveProps, ApprovalCardDeny, type ApprovalCardDenyProps, ApprovalCardDescription, type ApprovalCardDescriptionProps, ApprovalCardOptions, type ApprovalCardOptionsProps, type ApprovalCardProps, ApprovalCardReason, type ApprovalCardReasonProps, ApprovalCardRejected, type ApprovalCardRejectedProps, ApprovalCardRequest, type ApprovalCardRequestProps, ApprovalCardTarget, type ApprovalCardTargetProps, ApprovalCardTitle, type ApprovalCardTitleProps, Artifact, ArtifactAction, type ArtifactActionProps, ArtifactActions, type ArtifactActionsProps, ArtifactClose, type ArtifactCloseProps, ArtifactContent, type ArtifactContentProps, ArtifactDescription, type ArtifactDescriptionProps, ArtifactHeader, type ArtifactHeaderProps, type ArtifactProps, ArtifactTitle, type ArtifactTitleProps, AssetPreview, type AssetPreviewMode, type AssetPreviewProps, type AssetPreviewRenderer, Attachment, type AttachmentData, AttachmentEmpty, type AttachmentEmptyProps, AttachmentHoverCard, AttachmentHoverCardContent, type AttachmentHoverCardContentProps, type AttachmentHoverCardProps, AttachmentHoverCardTrigger, type AttachmentHoverCardTriggerProps, AttachmentInfo, type AttachmentInfoProps, type AttachmentMediaCategory, AttachmentPreview, type AttachmentPreviewProps, type AttachmentProps, AttachmentRemove, type AttachmentRemoveProps, type AttachmentVariant, Attachments, type AttachmentsContext, type AttachmentsProps, AudioPlayer, AudioPlayerControlBar, type AudioPlayerControlBarProps, AudioPlayerDurationDisplay, type AudioPlayerDurationDisplayProps, AudioPlayerElement, type AudioPlayerElementProps, AudioPlayerMuteButton, type AudioPlayerMuteButtonProps, type AudioPlayerPartProps, AudioPlayerPlayButton, type AudioPlayerPlayButtonProps, type AudioPlayerProps, AudioPlayerSeekBackwardButton, type AudioPlayerSeekBackwardButtonProps, AudioPlayerSeekForwardButton, type AudioPlayerSeekForwardButtonProps, AudioPlayerTimeDisplay, type AudioPlayerTimeDisplayProps, AudioPlayerTimeRange, type AudioPlayerTimeRangeProps, AudioPlayerVolumeRange, type AudioPlayerVolumeRangeProps, AudioVisualizer, type AudioVisualizerLevelState, type AudioVisualizerProps, type AudioVisualizerVariant, type BadgeTone, type BooleanFieldSpec, BrandMotionConfig, type BrandMotionConfigProps, Canvas, type CanvasProps, type CellFormat, ChainOfThought, ChainOfThoughtContent, type ChainOfThoughtContentProps, ChainOfThoughtHeader, type ChainOfThoughtHeaderProps, ChainOfThoughtImage, type ChainOfThoughtImageProps, type ChainOfThoughtProps, ChainOfThoughtSearchResult, type ChainOfThoughtSearchResultProps, ChainOfThoughtSearchResults, type ChainOfThoughtSearchResultsProps, ChainOfThoughtStep, type ChainOfThoughtStepProps, ChatGreeting, type ChatGreetingProps, ChatShell, type ChatShellProps, Checkpoint, CheckpointIcon, type CheckpointIconProps, type CheckpointProps, CheckpointTrigger, type CheckpointTriggerProps, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, type CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, type CodeBlockLanguageSelectorItemProps, type CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, type CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, type CodeBlockLanguageSelectorValueProps, type CodeBlockProps, CodeBlockTitle, type ColumnSpec, Commit, CommitActions, type CommitActionsProps, CommitAuthor, CommitAuthorAvatar, type CommitAuthorAvatarProps, type CommitAuthorProps, CommitContent, type CommitContentProps, CommitCopyButton, type CommitCopyButtonProps, CommitFile, CommitFileAdditions, type CommitFileAdditionsProps, CommitFileChanges, type CommitFileChangesProps, CommitFileDeletions, type CommitFileDeletionsProps, CommitFileIcon, type CommitFileIconProps, CommitFileInfo, type CommitFileInfoProps, CommitFilePath, type CommitFilePathProps, type CommitFileProps, CommitFileStatus, type CommitFileStatusProps, CommitFiles, type CommitFilesProps, CommitHash, type CommitHashProps, CommitHeader, type CommitHeaderProps, CommitInfo, type CommitInfoProps, CommitMessage, type CommitMessageProps, CommitMetadata, type CommitMetadataProps, type CommitProps, CommitSeparator, type CommitSeparatorProps, CommitTimestamp, type CommitTimestampProps, Composer, type ComposerEffortProps, type ComposerModeProps, type ComposerProps, type ComposerShortcut, Confirmation, ConfirmationAccepted, type ConfirmationAcceptedProps, ConfirmationAction, type ConfirmationActionProps, ConfirmationActions, type ConfirmationActionsProps, ConfirmationApprove, type ConfirmationApproveProps, ConfirmationDeny, type ConfirmationDenyProps, ConfirmationDescription, type ConfirmationDescriptionProps, type ConfirmationProps, ConfirmationRejected, type ConfirmationRejectedProps, ConfirmationRequest, type ConfirmationRequestProps, ConfirmationTitle, type ConfirmationTitleProps, Connection, type ContextAsset, type ContextAssetType, ContextPanel, ContextPanelBody, type ContextPanelBodyProps, type ContextPanelContextValue, ContextPanelDetail, type ContextPanelDetailProps, ContextPanelHeader, type ContextPanelHeaderProps, type ContextPanelProps, ContextPanelProvider, type ContextPanelProviderProps, ContextPanelSection, type ContextPanelSectionProps, ContextPanelTrigger, type ContextPanelTriggerProps, type ContextPanelView, Controls, type ControlsProps, Conversation, ConversationContent, type ConversationContentProps, ConversationDownload, type ConversationDownloadProps, ConversationEmptyState, type ConversationEmptyStateProps, type ConversationProps, ConversationScrollButton, type ConversationScrollButtonProps, DiffView, type DiffViewProps, EMPTY_CELL, Edge, type EnumFieldSpec, type EnumOption, EnvironmentVariable, EnvironmentVariableCopyButton, type EnvironmentVariableCopyButtonProps, EnvironmentVariableGroup, type EnvironmentVariableGroupProps, EnvironmentVariableName, type EnvironmentVariableNameProps, type EnvironmentVariableProps, EnvironmentVariableRequired, type EnvironmentVariableRequiredProps, EnvironmentVariableValue, type EnvironmentVariableValueProps, EnvironmentVariables, EnvironmentVariablesContent, type EnvironmentVariablesContentProps, EnvironmentVariablesHeader, type EnvironmentVariablesHeaderProps, type EnvironmentVariablesProps, EnvironmentVariablesTitle, type EnvironmentVariablesTitleProps, EnvironmentVariablesToggle, type EnvironmentVariablesToggleProps, EvidenceChip, type EvidenceChipProps, type FeedbackType, type FieldSpec, FileTree, FileTreeActions, type FileTreeActionsProps, FileTreeFile, type FileTreeFileProps, FileTreeFolder, type FileTreeFolderProps, FileTreeIcon, type FileTreeIconProps, FileTreeName, type FileTreeNameProps, type FileTreeProps, type FileTreeVariant, type FormSpec, type FormSubmitState, type FormValue, type FormValues, Gallery, type GalleryImage, type GalleryMetaItem, type GalleryProps, type GetPartStatus, type GroupBy, type GroupByContext, type GroupKey, type GroupPartByTypeOptions, type GroupStatus, type GroupablePart, type GroupedNode, type GroupedPartRenderArgs, type GroupedPartRenderer, GroupedParts, type GroupedPartsProps, Image, type ImageProps, InlineCitation, InlineCitationCard, InlineCitationCardBody, type InlineCitationCardBodyProps, type InlineCitationCardProps, InlineCitationCardTrigger, type InlineCitationCardTriggerProps, InlineCitationCarousel, InlineCitationCarouselContent, type InlineCitationCarouselContentProps, InlineCitationCarouselHeader, type InlineCitationCarouselHeaderProps, InlineCitationCarouselIndex, type InlineCitationCarouselIndexProps, InlineCitationCarouselItem, type InlineCitationCarouselItemProps, InlineCitationCarouselNext, type InlineCitationCarouselNextProps, InlineCitationCarouselPrev, type InlineCitationCarouselPrevProps, type InlineCitationCarouselProps, type InlineCitationProps, InlineCitationQuote, type InlineCitationQuoteProps, InlineCitationSource, type InlineCitationSourceProps, type InlineCitationSourceRef, InlineCitationText, type InlineCitationTextProps, type IntegerFieldSpec, JSXPreview, JSXPreviewContent, type JSXPreviewContentProps, JSXPreviewError, type JSXPreviewErrorProps, type JSXPreviewProps, JSXPreviewSkeleton, type JSXPreviewSkeletonProps, type JSXPreviewStatus, LocalReferencedSourcesContext, MODEL_PROVIDER_LOGO_BASE_URL, MarkdownView, type MarkdownViewProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageBranch, MessageBranchContent, type MessageBranchContentProps, MessageBranchNext, type MessageBranchNextProps, MessageBranchPage, type MessageBranchPageProps, MessageBranchPrevious, type MessageBranchPreviousProps, type MessageBranchProps, MessageBranchSelector, type MessageBranchSelectorProps, MessageCompare, MessageCompareColumn, type MessageCompareColumnProps, type MessageCompareColumnsCount, type MessageCompareModel, type MessageCompareProps, MessageContent, type MessageContentProps, MessageEdit, MessageEditContent, type MessageEditContentProps, MessageEditForm, type MessageEditFormProps, type MessageEditProps, MessageEditProvider, type MessageEditProviderProps, MessageEditTrigger, type MessageEditTriggerProps, MessageFeedback, type MessageFeedbackProps, MessageForm, MessageFormDescription, type MessageFormDescriptionProps, MessageFormFallback, type MessageFormFallbackProps, MessageFormField, type MessageFormFieldProps, MessageFormFields, type MessageFormFieldsProps, type MessageFormProps, MessageFormProvider, type MessageFormProviderProps, MessageFormRoot, type MessageFormRootProps, MessageFormSubmit, type MessageFormSubmitProps, MessageFormTitle, type MessageFormTitleProps, MessageHeader, type MessageHeaderProps, type MessageProps, MessageResponse, type MessageResponseProps, MessageTable, MessageTableFallback, type MessageTableFallbackProps, type MessageTableProps, MessageToolbar, type MessageToolbarProps, MicSelector, MicSelectorContent, type MicSelectorContentProps, MicSelectorEmpty, type MicSelectorEmptyProps, MicSelectorInput, type MicSelectorInputProps, MicSelectorItem, type MicSelectorItemProps, MicSelectorLabel, type MicSelectorLabelProps, MicSelectorList, type MicSelectorListProps, type MicSelectorProps, MicSelectorTrigger, type MicSelectorTriggerProps, MicSelectorValue, type MicSelectorValueProps, ModelProviderLogo, ModelProviderLogoGroup, type ModelProviderLogoGroupProps, type ModelProviderLogoProps, type MultiEnumFieldSpec, Node, NodeAction, type NodeActionProps, NodeContent, type NodeContentProps, NodeDescription, type NodeDescriptionProps, NodeFooter, type NodeFooterProps, NodeHeader, type NodeHeaderProps, type NodeProps, NodeTitle, type NodeTitleProps, NodeToolbar, type NodeToolbarProps, type NormalizedFormSpec, type NormalizedTableSpec, type NumberFieldSpec, OpenIn, OpenInChatGPT, type OpenInChatGPTProps, OpenInClaude, type OpenInClaudeProps, OpenInContent, type OpenInContentProps, OpenInCursor, type OpenInCursorProps, OpenInItem, type OpenInItemProps, OpenInLabel, type OpenInLabelProps, type OpenInProps, OpenInScira, type OpenInSciraProps, OpenInSeparator, type OpenInSeparatorProps, OpenInT3, type OpenInT3Props, OpenInTrigger, type OpenInTriggerProps, OpenInv0, type OpenInv0Props, PERSONA_SOURCES, PRODUCED_ASSET_ICONS, PackageInfo, PackageInfoChangeType, type PackageInfoChangeTypeProps, PackageInfoContent, type PackageInfoContentProps, PackageInfoDependencies, type PackageInfoDependenciesProps, PackageInfoDependency, type PackageInfoDependencyProps, PackageInfoDescription, type PackageInfoDescriptionProps, PackageInfoHeader, type PackageInfoHeaderProps, PackageInfoName, type PackageInfoNameProps, type PackageInfoProps, PackageInfoVersion, type PackageInfoVersionProps, Panel, type PanelProps, type PartDisplay, type PartGroupNode, type PermissionMode, PermissionModeSelect, type PermissionModeSelectProps, Persona, type PersonaProps, type PersonaRiveEvent, type PersonaRiveEventCallback, type PersonaState, type PersonaVariant, Plan, PlanAction, type PlanActionProps, PlanApprove, type PlanApproveProps, PlanComment, type PlanCommentProps, PlanContent, type PlanContentProps, type PlanDecisionActionProps, PlanDescription, type PlanDescriptionProps, PlanFooter, type PlanFooterProps, PlanHeader, type PlanHeaderProps, type PlanProps, PlanRequestChanges, type PlanRequestChangesProps, type PlanStatus, PlanStatusLine, type PlanStatusLineProps, PlanTitle, type PlanTitleProps, PlanTrigger, type PlanTriggerProps, ProducedAssetTree, type ProducedAssetTreeProps, PromptInput, PromptInputActionAddAttachments, type PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, type PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, type PromptInputActionMenuContentProps, PromptInputActionMenuItem, type PromptInputActionMenuItemProps, type PromptInputActionMenuProps, PromptInputActionMenuTrigger, type PromptInputActionMenuTriggerProps, PromptInputBody, type PromptInputBodyProps, PromptInputButton, type PromptInputButtonProps, type PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandEmpty, type PromptInputCommandEmptyProps, PromptInputCommandGroup, type PromptInputCommandGroupProps, PromptInputCommandInput, type PromptInputCommandInputProps, PromptInputCommandItem, type PromptInputCommandItemProps, PromptInputCommandList, type PromptInputCommandListProps, type PromptInputCommandProps, PromptInputCommandSeparator, type PromptInputCommandSeparatorProps, type PromptInputControllerProps, PromptInputEffort, type PromptInputEffortProps, PromptInputFooter, type PromptInputFooterProps, PromptInputHeader, type PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, type PromptInputHoverCardContentProps, type PromptInputHoverCardProps, PromptInputHoverCardTrigger, type PromptInputHoverCardTriggerProps, type PromptInputMessage, PromptInputMode, type PromptInputModeProps, type PromptInputProps, PromptInputProvider, type PromptInputProviderProps, PromptInputSelect, PromptInputSelectContent, type PromptInputSelectContentProps, PromptInputSelectItem, type PromptInputSelectItemProps, type PromptInputSelectProps, PromptInputSelectTrigger, type PromptInputSelectTriggerProps, PromptInputSelectValue, type PromptInputSelectValueProps, PromptInputSlash, type PromptInputSlashProps, PromptInputSlashTextarea, type PromptInputSlashTextareaProps, PromptInputStop, type PromptInputStopProps, PromptInputSubmit, type PromptInputSubmitAction, type PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, type PromptInputTabBodyProps, PromptInputTabItem, type PromptInputTabItemProps, PromptInputTabLabel, type PromptInputTabLabelProps, type PromptInputTabProps, PromptInputTabsList, type PromptInputTabsListProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTools, type PromptInputToolsProps, Queue, QueueItem, QueueItemAction, type QueueItemActionProps, QueueItemActions, type QueueItemActionsProps, QueueItemAttachment, type QueueItemAttachmentProps, QueueItemContent, type QueueItemContentProps, QueueItemDescription, type QueueItemDescriptionProps, QueueItemFile, type QueueItemFileProps, QueueItemImage, type QueueItemImageProps, QueueItemIndicator, type QueueItemIndicatorProps, type QueueItemProps, QueueList, type QueueListProps, type QueueMessage, type QueueMessagePart, type QueueProps, QueueSection, QueueSectionContent, type QueueSectionContentProps, QueueSectionLabel, type QueueSectionLabelProps, type QueueSectionProps, QueueSectionTrigger, type QueueSectionTriggerProps, type QueueTodo, Reasoning, ReasoningContent, type ReasoningContentProps, type ReasoningProps, ReasoningTrigger, type ReasoningTriggerProps, type ReferencedSourcesContext, type RenderCell, Sandbox, SandboxContent, type SandboxContentProps, SandboxHeader, type SandboxHeaderProps, type SandboxProps, type SandboxRootProps, SandboxTabContent, type SandboxTabContentProps, SandboxTabs, SandboxTabsBar, type SandboxTabsBarProps, SandboxTabsList, type SandboxTabsListProps, type SandboxTabsProps, SandboxTabsTrigger, type SandboxTabsTriggerProps, SchemaDisplay, SchemaDisplayBody, type SchemaDisplayBodyProps, SchemaDisplayContent, type SchemaDisplayContentProps, SchemaDisplayDescription, type SchemaDisplayDescriptionProps, SchemaDisplayExample, type SchemaDisplayExampleProps, SchemaDisplayHeader, type SchemaDisplayHeaderProps, SchemaDisplayMethod, type SchemaDisplayMethodProps, SchemaDisplayParameter, type SchemaDisplayParameterProps, SchemaDisplayParameters, type SchemaDisplayParametersProps, SchemaDisplayPath, type SchemaDisplayPathProps, SchemaDisplayProperty, type SchemaDisplayPropertyProps, type SchemaDisplayProps, SchemaDisplayRequest, type SchemaDisplayRequestProps, SchemaDisplayResponse, type SchemaDisplayResponseProps, type SelectionSnapshot, SelectionToolbar, type SelectionToolbarProps, SessionHeader, type SessionHeaderProps, SessionStatusBar, type SessionStatusBarConnections, type SessionStatusBarProps, Shimmer, Snippet, SnippetAddon, type SnippetAddonProps, SnippetCopyButton, type SnippetCopyButtonProps, SnippetInput, type SnippetInputProps, type SnippetProps, SnippetText, type SnippetTextProps, Source, SourceList, type SourceListItem, type SourceListProps, type SourceProps, Sources, SourcesContent, type SourcesContentProps, type SourcesProps, SourcesTrigger, type SourcesTriggerProps, SpeechInput, type SpeechInputProps, StackTrace, StackTraceActions, type StackTraceActionsProps, StackTraceContent, type StackTraceContentProps, StackTraceCopyButton, type StackTraceCopyButtonProps, StackTraceError, StackTraceErrorMessage, type StackTraceErrorMessageProps, type StackTraceErrorProps, StackTraceErrorType, type StackTraceErrorTypeProps, StackTraceExpandButton, type StackTraceExpandButtonProps, StackTraceFrames, type StackTraceFramesProps, StackTraceHeader, type StackTraceHeaderProps, type StackTraceProps, StreamingSuggestions, type StreamingSuggestionsProps, type StringFieldSpec, Suggestion, SuggestionLoading, type SuggestionLoadingProps, type SuggestionProps, Suggestions, type SuggestionsProps, type TableRowData, type TableSort, type TableSpec, Task, TaskContent, type TaskContentProps, TaskItem, TaskItemFile, type TaskItemFileProps, type TaskItemProps, type TaskProps, TaskTrigger, type TaskTriggerProps, Test, TestDuration, type TestDurationProps, TestError, TestErrorMessage, type TestErrorMessageProps, type TestErrorProps, TestErrorStack, type TestErrorStackProps, TestName, type TestNameProps, type TestProps, TestResults, TestResultsContent, type TestResultsContentProps, TestResultsDuration, type TestResultsDurationProps, TestResultsHeader, type TestResultsHeaderProps, TestResultsMeta, type TestResultsMetaProps, TestResultsProgress, type TestResultsProgressProps, type TestResultsProps, TestResultsSummary, type TestResultsSummaryProps, TestStatus, type TestStatusProps, TestSuite, TestSuiteContent, type TestSuiteContentProps, TestSuiteName, type TestSuiteNameProps, type TestSuiteProps, TestSuiteStats, type TestSuiteStatsProps, type TextInputContext, type TextShimmerProps, TokenUsage, TokenUsageCache, type TokenUsageCacheProps, TokenUsageContent, TokenUsageContentBody, type TokenUsageContentBodyProps, TokenUsageContentFooter, type TokenUsageContentFooterProps, TokenUsageContentHeader, type TokenUsageContentHeaderProps, type TokenUsageContentProps, TokenUsageInput, type TokenUsageInputProps, TokenUsageOutput, type TokenUsageOutputProps, type TokenUsageProps, TokenUsageReasoning, type TokenUsageReasoningProps, TokenUsageTrigger, type TokenUsageTriggerProps, Tool, ToolContent, type ToolContentProps, ToolDetails, type ToolDetailsProps, ToolHeader, type ToolHeaderProps, ToolInput, type ToolInputProps, ToolOutput, type ToolOutputProps, type ToolPart, type ToolProps, ToolResultCard, type ToolResultCardProps, Toolbar, type ToolbarProps, Transcription, type TranscriptionProps, TranscriptionSegment, type TranscriptionSegmentProps, TurnStatus, type TurnStatusProps, type TurnStatusTokens, type UseAudioLevelOptions, type UseAudioLevelResult, UserMessage, type UserMessageProps, VoiceSelector, VoiceSelectorAccent, type VoiceSelectorAccentProps, VoiceSelectorAge, type VoiceSelectorAgeProps, VoiceSelectorAttributes, type VoiceSelectorAttributesProps, VoiceSelectorBullet, type VoiceSelectorBulletProps, VoiceSelectorContent, type VoiceSelectorContentProps, VoiceSelectorDescription, type VoiceSelectorDescriptionProps, VoiceSelectorDialog, type VoiceSelectorDialogProps, VoiceSelectorEmpty, type VoiceSelectorEmptyProps, VoiceSelectorGender, type VoiceSelectorGenderProps, VoiceSelectorGroup, type VoiceSelectorGroupProps, VoiceSelectorInput, type VoiceSelectorInputProps, VoiceSelectorItem, type VoiceSelectorItemProps, VoiceSelectorList, type VoiceSelectorListProps, VoiceSelectorName, type VoiceSelectorNameProps, VoiceSelectorPreview, type VoiceSelectorPreviewProps, type VoiceSelectorProps, VoiceSelectorSeparator, type VoiceSelectorSeparatorProps, VoiceSelectorShortcut, type VoiceSelectorShortcutProps, VoiceSelectorTrigger, type VoiceSelectorTriggerProps, WebPreview, WebPreviewBody, type WebPreviewBodyProps, WebPreviewConsole, type WebPreviewConsoleProps, type WebPreviewContextValue, WebPreviewNavigation, WebPreviewNavigationButton, type WebPreviewNavigationButtonProps, type WebPreviewNavigationProps, type WebPreviewProps, WebPreviewUrl, type WebPreviewUrlProps, agentMessageVariants, badgeToneForValue, booleanFieldSchema, buildPartGroups, cellFormatSchema, columnSpecSchema, compareCellValues, createLazyMermaidPlugin, defaultPartStatus, diffRowVariants, enumFieldSchema, enumOptionSchema, fieldLabel, fieldSpecSchema, formSpecSchema, formatCellValue, getAttachmentLabel, getMediaCategory, getStatusBadge, groupPartByType, highlightCode, initialFormValues, inlineCitationSourceLabel, integerFieldSchema, isEmptyCell, isGroupNode, isNumericFormat, lazyMermaid, messageActionsVariants, messageFeedbackVariants, messagesToMarkdown, multiEnumFieldSchema, normalizeFormSpec, normalizeTableSpec, numberFieldSchema, optionLabel, optionValue, partsFingerprint, preloadMermaid, readSelectionWithin, rollupStatus, statusFromToolState, stringFieldSchema, tableSpecSchema, useAssetPreviewRenderer, useAttachmentContext, useAttachmentsContext, useAudioDevices, useAudioLevel, useContextPanel, useJSXPreview, useMessageEdit, usePromptInputAttachments, usePromptInputController, usePromptInputReferencedSources, useProviderAttachments, useReasoning, useVoiceSelector, validateField, validateForm };
|
|
5281
|
+
export { A2UI_CATALOG_SCHEMA, A2UI_CATALOG_VERSION, A2UI_COMMON_PROPS, A2UI_SURFACE_SCHEMA_ID, A2UI_VERSION, type A2uiAction, type A2uiActionContext, type A2uiActionHandler, type A2uiCatalog, type A2uiCatalogEntry, type A2uiCatalogSchema, type A2uiCatalogTypeSchema, type A2uiElement, type A2uiError, type A2uiErrorCode, type A2uiJson, type A2uiNode, type A2uiPropSchema, type A2uiPropType, type A2uiPropValue, A2uiSurface, type A2uiSurfaceProps, type A2uiSurfaceSpec, type A2uiSurfaceStatus, type A2uiValidation, Agent, AgentContent, type AgentContentProps, AgentEvent, type AgentEventProps, AgentHeader, type AgentHeaderProps, AgentInstructions, type AgentInstructionsProps, AgentMessage, type AgentMessageEmphasis, type AgentMessageProps, AgentOutput, type AgentOutputProps, type AgentProps, AgentStep, type AgentStepProps, AgentTimeline, type AgentTimelineProps, AgentTool, type AgentToolProps, AgentTools, type AgentToolsProps, ApprovalCard, ApprovalCardAccepted, type ApprovalCardAcceptedProps, ApprovalCardAction, type ApprovalCardActionProps, ApprovalCardActions, type ApprovalCardActionsProps, ApprovalCardApprove, type ApprovalCardApproveProps, ApprovalCardDeny, type ApprovalCardDenyProps, ApprovalCardDescription, type ApprovalCardDescriptionProps, ApprovalCardOptions, type ApprovalCardOptionsProps, type ApprovalCardProps, ApprovalCardReason, type ApprovalCardReasonProps, ApprovalCardRejected, type ApprovalCardRejectedProps, ApprovalCardRequest, type ApprovalCardRequestProps, ApprovalCardTarget, type ApprovalCardTargetProps, ApprovalCardTitle, type ApprovalCardTitleProps, Artifact, ArtifactAction, type ArtifactActionProps, ArtifactActions, type ArtifactActionsProps, ArtifactClose, type ArtifactCloseProps, ArtifactContent, type ArtifactContentProps, ArtifactDescription, type ArtifactDescriptionProps, ArtifactHeader, type ArtifactHeaderProps, type ArtifactProps, ArtifactTitle, type ArtifactTitleProps, AssetPreview, type AssetPreviewMode, type AssetPreviewProps, type AssetPreviewRenderer, Attachment, type AttachmentData, AttachmentEmpty, type AttachmentEmptyProps, AttachmentHoverCard, AttachmentHoverCardContent, type AttachmentHoverCardContentProps, type AttachmentHoverCardProps, AttachmentHoverCardTrigger, type AttachmentHoverCardTriggerProps, AttachmentInfo, type AttachmentInfoProps, type AttachmentMediaCategory, AttachmentPreview, type AttachmentPreviewProps, type AttachmentProps, AttachmentRemove, type AttachmentRemoveProps, type AttachmentVariant, Attachments, type AttachmentsContext, type AttachmentsProps, AudioPlayer, AudioPlayerControlBar, type AudioPlayerControlBarProps, AudioPlayerDurationDisplay, type AudioPlayerDurationDisplayProps, AudioPlayerElement, type AudioPlayerElementProps, AudioPlayerMuteButton, type AudioPlayerMuteButtonProps, type AudioPlayerPartProps, AudioPlayerPlayButton, type AudioPlayerPlayButtonProps, type AudioPlayerProps, AudioPlayerSeekBackwardButton, type AudioPlayerSeekBackwardButtonProps, AudioPlayerSeekForwardButton, type AudioPlayerSeekForwardButtonProps, AudioPlayerTimeDisplay, type AudioPlayerTimeDisplayProps, AudioPlayerTimeRange, type AudioPlayerTimeRangeProps, AudioPlayerVolumeRange, type AudioPlayerVolumeRangeProps, AudioVisualizer, type AudioVisualizerLevelState, type AudioVisualizerProps, type AudioVisualizerVariant, type BadgeTone, type BooleanFieldSpec, BrandMotionConfig, type BrandMotionConfigProps, Canvas, type CanvasProps, type CellFormat, ChainOfThought, ChainOfThoughtContent, type ChainOfThoughtContentProps, ChainOfThoughtHeader, type ChainOfThoughtHeaderProps, ChainOfThoughtImage, type ChainOfThoughtImageProps, type ChainOfThoughtProps, ChainOfThoughtSearchResult, type ChainOfThoughtSearchResultProps, ChainOfThoughtSearchResults, type ChainOfThoughtSearchResultsProps, ChainOfThoughtStep, type ChainOfThoughtStepProps, ChatGreeting, type ChatGreetingProps, ChatShell, type ChatShellProps, Checkpoint, CheckpointIcon, type CheckpointIconProps, type CheckpointProps, CheckpointTrigger, type CheckpointTriggerProps, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, type CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, type CodeBlockLanguageSelectorItemProps, type CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, type CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, type CodeBlockLanguageSelectorValueProps, type CodeBlockProps, CodeBlockTitle, type ColumnSpec, Commit, CommitActions, type CommitActionsProps, CommitAuthor, CommitAuthorAvatar, type CommitAuthorAvatarProps, type CommitAuthorProps, CommitContent, type CommitContentProps, CommitCopyButton, type CommitCopyButtonProps, CommitFile, CommitFileAdditions, type CommitFileAdditionsProps, CommitFileChanges, type CommitFileChangesProps, CommitFileDeletions, type CommitFileDeletionsProps, CommitFileIcon, type CommitFileIconProps, CommitFileInfo, type CommitFileInfoProps, CommitFilePath, type CommitFilePathProps, type CommitFileProps, CommitFileStatus, type CommitFileStatusProps, CommitFiles, type CommitFilesProps, CommitHash, type CommitHashProps, CommitHeader, type CommitHeaderProps, CommitInfo, type CommitInfoProps, CommitMessage, type CommitMessageProps, CommitMetadata, type CommitMetadataProps, type CommitProps, CommitSeparator, type CommitSeparatorProps, CommitTimestamp, type CommitTimestampProps, Composer, type ComposerBaseProps, type ComposerEffortProps, type ComposerFieldProps, type ComposerMentions, type ComposerModeProps, type ComposerProps, type ComposerShortcut, Confirmation, ConfirmationAccepted, type ConfirmationAcceptedProps, ConfirmationAction, type ConfirmationActionProps, ConfirmationActions, type ConfirmationActionsProps, ConfirmationApprove, type ConfirmationApproveProps, ConfirmationDeny, type ConfirmationDenyProps, ConfirmationDescription, type ConfirmationDescriptionProps, type ConfirmationProps, ConfirmationRejected, type ConfirmationRejectedProps, ConfirmationRequest, type ConfirmationRequestProps, ConfirmationTitle, type ConfirmationTitleProps, Connection, type ContextAsset, type ContextAssetType, ContextPanel, ContextPanelBody, type ContextPanelBodyProps, type ContextPanelContextValue, ContextPanelDetail, type ContextPanelDetailProps, ContextPanelHeader, type ContextPanelHeaderProps, type ContextPanelProps, ContextPanelProvider, type ContextPanelProviderProps, ContextPanelSection, type ContextPanelSectionProps, ContextPanelTrigger, type ContextPanelTriggerProps, type ContextPanelView, Controls, type ControlsProps, Conversation, ConversationContent, type ConversationContentProps, ConversationDownload, type ConversationDownloadProps, ConversationEmptyState, type ConversationEmptyStateProps, type ConversationProps, ConversationScrollButton, type ConversationScrollButtonProps, DiffView, type DiffViewProps, EMPTY_CELL, Edge, type EnumFieldSpec, type EnumOption, EnvironmentVariable, EnvironmentVariableCopyButton, type EnvironmentVariableCopyButtonProps, EnvironmentVariableGroup, type EnvironmentVariableGroupProps, EnvironmentVariableName, type EnvironmentVariableNameProps, type EnvironmentVariableProps, EnvironmentVariableRequired, type EnvironmentVariableRequiredProps, EnvironmentVariableValue, type EnvironmentVariableValueProps, EnvironmentVariables, EnvironmentVariablesContent, type EnvironmentVariablesContentProps, EnvironmentVariablesHeader, type EnvironmentVariablesHeaderProps, type EnvironmentVariablesProps, EnvironmentVariablesTitle, type EnvironmentVariablesTitleProps, EnvironmentVariablesToggle, type EnvironmentVariablesToggleProps, EvidenceChip, type EvidenceChipProps, type FeedbackType, type FieldSpec, FileTree, FileTreeActions, type FileTreeActionsProps, FileTreeFile, type FileTreeFileProps, FileTreeFolder, type FileTreeFolderProps, FileTreeIcon, type FileTreeIconProps, FileTreeName, type FileTreeNameProps, type FileTreeProps, type FileTreeVariant, type FormSpec, type FormSubmitState, type FormValue, type FormValues, Gallery, type GalleryImage, type GalleryMetaItem, type GalleryProps, type GetPartStatus, type GroupBy, type GroupByContext, type GroupKey, type GroupPartByTypeOptions, type GroupStatus, type GroupablePart, type GroupedNode, type GroupedPartRenderArgs, type GroupedPartRenderer, GroupedParts, type GroupedPartsProps, Image, type ImageProps, InlineCitation, InlineCitationCard, InlineCitationCardBody, type InlineCitationCardBodyProps, type InlineCitationCardProps, InlineCitationCardTrigger, type InlineCitationCardTriggerProps, InlineCitationCarousel, InlineCitationCarouselContent, type InlineCitationCarouselContentProps, InlineCitationCarouselHeader, type InlineCitationCarouselHeaderProps, InlineCitationCarouselIndex, type InlineCitationCarouselIndexProps, InlineCitationCarouselItem, type InlineCitationCarouselItemProps, InlineCitationCarouselNext, type InlineCitationCarouselNextProps, InlineCitationCarouselPrev, type InlineCitationCarouselPrevProps, type InlineCitationCarouselProps, type InlineCitationProps, InlineCitationQuote, type InlineCitationQuoteProps, InlineCitationSource, type InlineCitationSourceProps, type InlineCitationSourceRef, InlineCitationText, type InlineCitationTextProps, type IntegerFieldSpec, JSXPreview, JSXPreviewContent, type JSXPreviewContentProps, JSXPreviewError, type JSXPreviewErrorProps, type JSXPreviewProps, JSXPreviewSkeleton, type JSXPreviewSkeletonProps, type JSXPreviewStatus, LocalReferencedSourcesContext, MODEL_PROVIDER_LOGO_BASE_URL, MarkdownView, type MarkdownViewProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageBranch, MessageBranchContent, type MessageBranchContentProps, MessageBranchNext, type MessageBranchNextProps, MessageBranchPage, type MessageBranchPageProps, MessageBranchPrevious, type MessageBranchPreviousProps, type MessageBranchProps, MessageBranchSelector, type MessageBranchSelectorProps, MessageCompare, MessageCompareColumn, type MessageCompareColumnProps, type MessageCompareColumnsCount, type MessageCompareModel, type MessageCompareProps, MessageContent, type MessageContentProps, MessageEdit, MessageEditContent, type MessageEditContentProps, MessageEditForm, type MessageEditFormProps, type MessageEditProps, MessageEditProvider, type MessageEditProviderProps, MessageEditTrigger, type MessageEditTriggerProps, MessageFeedback, type MessageFeedbackProps, MessageForm, MessageFormDescription, type MessageFormDescriptionProps, MessageFormFallback, type MessageFormFallbackProps, MessageFormField, type MessageFormFieldProps, MessageFormFields, type MessageFormFieldsProps, type MessageFormProps, MessageFormProvider, type MessageFormProviderProps, MessageFormRoot, type MessageFormRootProps, MessageFormSubmit, type MessageFormSubmitProps, MessageFormTitle, type MessageFormTitleProps, MessageHeader, type MessageHeaderProps, type MessageProps, MessageResponse, type MessageResponseProps, MessageTable, MessageTableFallback, type MessageTableFallbackProps, type MessageTableProps, MessageToolbar, type MessageToolbarProps, MicSelector, MicSelectorContent, type MicSelectorContentProps, MicSelectorEmpty, type MicSelectorEmptyProps, MicSelectorInput, type MicSelectorInputProps, MicSelectorItem, type MicSelectorItemProps, MicSelectorLabel, type MicSelectorLabelProps, MicSelectorList, type MicSelectorListProps, type MicSelectorProps, MicSelectorTrigger, type MicSelectorTriggerProps, MicSelectorValue, type MicSelectorValueProps, ModelProviderLogo, ModelProviderLogoGroup, type ModelProviderLogoGroupProps, type ModelProviderLogoProps, type MultiEnumFieldSpec, Node, NodeAction, type NodeActionProps, NodeContent, type NodeContentProps, NodeDescription, type NodeDescriptionProps, NodeFooter, type NodeFooterProps, NodeHeader, type NodeHeaderProps, type NodeProps, NodeTitle, type NodeTitleProps, NodeToolbar, type NodeToolbarProps, type NormalizedFormSpec, type NormalizedTableSpec, type NumberFieldSpec, OpenIn, OpenInChatGPT, type OpenInChatGPTProps, OpenInClaude, type OpenInClaudeProps, OpenInContent, type OpenInContentProps, OpenInCursor, type OpenInCursorProps, OpenInItem, type OpenInItemProps, OpenInLabel, type OpenInLabelProps, type OpenInProps, OpenInScira, type OpenInSciraProps, OpenInSeparator, type OpenInSeparatorProps, OpenInT3, type OpenInT3Props, OpenInTrigger, type OpenInTriggerProps, OpenInv0, type OpenInv0Props, PERSONA_SOURCES, PRODUCED_ASSET_ICONS, PackageInfo, PackageInfoChangeType, type PackageInfoChangeTypeProps, PackageInfoContent, type PackageInfoContentProps, PackageInfoDependencies, type PackageInfoDependenciesProps, PackageInfoDependency, type PackageInfoDependencyProps, PackageInfoDescription, type PackageInfoDescriptionProps, PackageInfoHeader, type PackageInfoHeaderProps, PackageInfoName, type PackageInfoNameProps, type PackageInfoProps, PackageInfoVersion, type PackageInfoVersionProps, Panel, type PanelProps, type PartDisplay, type PartGroupNode, type PermissionMode, PermissionModeSelect, type PermissionModeSelectProps, Persona, type PersonaProps, type PersonaRiveEvent, type PersonaRiveEventCallback, type PersonaState, type PersonaVariant, Plan, PlanAction, type PlanActionProps, PlanApprove, type PlanApproveProps, PlanComment, type PlanCommentProps, PlanContent, type PlanContentProps, type PlanDecisionActionProps, PlanDescription, type PlanDescriptionProps, PlanFooter, type PlanFooterProps, PlanHeader, type PlanHeaderProps, type PlanProps, PlanRequestChanges, type PlanRequestChangesProps, type PlanStatus, PlanStatusLine, type PlanStatusLineProps, PlanTitle, type PlanTitleProps, PlanTrigger, type PlanTriggerProps, ProducedAssetTree, type ProducedAssetTreeProps, PromptInput, PromptInputActionAddAttachments, type PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, type PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, type PromptInputActionMenuContentProps, PromptInputActionMenuItem, type PromptInputActionMenuItemProps, type PromptInputActionMenuProps, PromptInputActionMenuTrigger, type PromptInputActionMenuTriggerProps, PromptInputBody, type PromptInputBodyProps, PromptInputButton, type PromptInputButtonProps, type PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandEmpty, type PromptInputCommandEmptyProps, PromptInputCommandGroup, type PromptInputCommandGroupProps, PromptInputCommandInput, type PromptInputCommandInputProps, PromptInputCommandItem, type PromptInputCommandItemProps, PromptInputCommandList, type PromptInputCommandListProps, type PromptInputCommandProps, PromptInputCommandSeparator, type PromptInputCommandSeparatorProps, type PromptInputControllerProps, PromptInputEffort, type PromptInputEffortProps, PromptInputFooter, type PromptInputFooterProps, PromptInputHeader, type PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, type PromptInputHoverCardContentProps, type PromptInputHoverCardProps, PromptInputHoverCardTrigger, type PromptInputHoverCardTriggerProps, type PromptInputMessage, PromptInputMode, type PromptInputModeProps, type PromptInputProps, PromptInputProvider, type PromptInputProviderProps, PromptInputSelect, PromptInputSelectContent, type PromptInputSelectContentProps, PromptInputSelectItem, type PromptInputSelectItemProps, type PromptInputSelectProps, PromptInputSelectTrigger, type PromptInputSelectTriggerProps, PromptInputSelectValue, type PromptInputSelectValueProps, PromptInputSlash, type PromptInputSlashProps, PromptInputSlashTextarea, type PromptInputSlashTextareaProps, PromptInputStop, type PromptInputStopProps, PromptInputSubmit, type PromptInputSubmitAction, type PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, type PromptInputTabBodyProps, PromptInputTabItem, type PromptInputTabItemProps, PromptInputTabLabel, type PromptInputTabLabelProps, type PromptInputTabProps, PromptInputTabsList, type PromptInputTabsListProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTools, type PromptInputToolsProps, Queue, QueueItem, QueueItemAction, type QueueItemActionProps, QueueItemActions, type QueueItemActionsProps, QueueItemAttachment, type QueueItemAttachmentProps, QueueItemContent, type QueueItemContentProps, QueueItemDescription, type QueueItemDescriptionProps, QueueItemFile, type QueueItemFileProps, QueueItemImage, type QueueItemImageProps, QueueItemIndicator, type QueueItemIndicatorProps, type QueueItemProps, QueueList, type QueueListProps, type QueueMessage, type QueueMessagePart, type QueueProps, QueueSection, QueueSectionContent, type QueueSectionContentProps, QueueSectionLabel, type QueueSectionLabelProps, type QueueSectionProps, QueueSectionTrigger, type QueueSectionTriggerProps, type QueueTodo, Reasoning, ReasoningContent, type ReasoningContentProps, type ReasoningProps, ReasoningTrigger, type ReasoningTriggerProps, type ReferencedSourcesContext, type RenderCell, Sandbox, SandboxContent, type SandboxContentProps, SandboxHeader, type SandboxHeaderProps, type SandboxProps, type SandboxRootProps, SandboxTabContent, type SandboxTabContentProps, SandboxTabs, SandboxTabsBar, type SandboxTabsBarProps, SandboxTabsList, type SandboxTabsListProps, type SandboxTabsProps, SandboxTabsTrigger, type SandboxTabsTriggerProps, SchemaDisplay, SchemaDisplayBody, type SchemaDisplayBodyProps, SchemaDisplayContent, type SchemaDisplayContentProps, SchemaDisplayDescription, type SchemaDisplayDescriptionProps, SchemaDisplayExample, type SchemaDisplayExampleProps, SchemaDisplayHeader, type SchemaDisplayHeaderProps, SchemaDisplayMethod, type SchemaDisplayMethodProps, SchemaDisplayParameter, type SchemaDisplayParameterProps, SchemaDisplayParameters, type SchemaDisplayParametersProps, SchemaDisplayPath, type SchemaDisplayPathProps, SchemaDisplayProperty, type SchemaDisplayPropertyProps, type SchemaDisplayProps, SchemaDisplayRequest, type SchemaDisplayRequestProps, SchemaDisplayResponse, type SchemaDisplayResponseProps, type SelectionSnapshot, SelectionToolbar, type SelectionToolbarProps, SessionHeader, type SessionHeaderProps, SessionStatusBar, type SessionStatusBarConnections, type SessionStatusBarProps, Shimmer, Snippet, SnippetAddon, type SnippetAddonProps, SnippetCopyButton, type SnippetCopyButtonProps, SnippetInput, type SnippetInputProps, type SnippetProps, SnippetText, type SnippetTextProps, Source, SourceList, type SourceListItem, type SourceListProps, type SourceProps, Sources, SourcesContent, type SourcesContentProps, type SourcesProps, SourcesTrigger, type SourcesTriggerProps, SpeechInput, type SpeechInputProps, StackTrace, StackTraceActions, type StackTraceActionsProps, StackTraceContent, type StackTraceContentProps, StackTraceCopyButton, type StackTraceCopyButtonProps, StackTraceError, StackTraceErrorMessage, type StackTraceErrorMessageProps, type StackTraceErrorProps, StackTraceErrorType, type StackTraceErrorTypeProps, StackTraceExpandButton, type StackTraceExpandButtonProps, StackTraceFrames, type StackTraceFramesProps, StackTraceHeader, type StackTraceHeaderProps, type StackTraceProps, StreamingSuggestions, type StreamingSuggestionsProps, type StringFieldSpec, Suggestion, SuggestionLoading, type SuggestionLoadingProps, type SuggestionProps, Suggestions, type SuggestionsProps, type TableRowData, type TableSort, type TableSpec, Task, TaskContent, type TaskContentProps, TaskItem, TaskItemFile, type TaskItemFileProps, type TaskItemProps, type TaskProps, TaskTrigger, type TaskTriggerProps, Test, TestDuration, type TestDurationProps, TestError, TestErrorMessage, type TestErrorMessageProps, type TestErrorProps, TestErrorStack, type TestErrorStackProps, TestName, type TestNameProps, type TestProps, TestResults, TestResultsContent, type TestResultsContentProps, TestResultsDuration, type TestResultsDurationProps, TestResultsHeader, type TestResultsHeaderProps, TestResultsMeta, type TestResultsMetaProps, TestResultsProgress, type TestResultsProgressProps, type TestResultsProps, TestResultsSummary, type TestResultsSummaryProps, TestStatus, type TestStatusProps, TestSuite, TestSuiteContent, type TestSuiteContentProps, TestSuiteName, type TestSuiteNameProps, type TestSuiteProps, TestSuiteStats, type TestSuiteStatsProps, type TextInputContext, type TextShimmerProps, TokenUsage, TokenUsageCache, type TokenUsageCacheProps, TokenUsageContent, TokenUsageContentBody, type TokenUsageContentBodyProps, TokenUsageContentFooter, type TokenUsageContentFooterProps, TokenUsageContentHeader, type TokenUsageContentHeaderProps, type TokenUsageContentProps, TokenUsageInput, type TokenUsageInputProps, TokenUsageOutput, type TokenUsageOutputProps, type TokenUsageProps, TokenUsageReasoning, type TokenUsageReasoningProps, TokenUsageTrigger, type TokenUsageTriggerProps, Tool, ToolContent, type ToolContentProps, ToolDetails, type ToolDetailsProps, ToolHeader, type ToolHeaderProps, ToolInput, type ToolInputProps, ToolOutput, type ToolOutputProps, type ToolPart, type ToolProps, ToolResultCard, type ToolResultCardProps, Transcription, type TranscriptionProps, TranscriptionSegment, type TranscriptionSegmentProps, TurnStatus, type TurnStatusProps, type TurnStatusTokens, UI_CATALOG_BINDINGS, type UseAudioLevelOptions, type UseAudioLevelResult, UserMessage, type UserMessageProps, VoiceSelector, VoiceSelectorAccent, type VoiceSelectorAccentProps, VoiceSelectorAge, type VoiceSelectorAgeProps, VoiceSelectorAttributes, type VoiceSelectorAttributesProps, VoiceSelectorBullet, type VoiceSelectorBulletProps, VoiceSelectorContent, type VoiceSelectorContentProps, VoiceSelectorDescription, type VoiceSelectorDescriptionProps, VoiceSelectorDialog, type VoiceSelectorDialogProps, VoiceSelectorEmpty, type VoiceSelectorEmptyProps, VoiceSelectorGender, type VoiceSelectorGenderProps, VoiceSelectorGroup, type VoiceSelectorGroupProps, VoiceSelectorInput, type VoiceSelectorInputProps, VoiceSelectorItem, type VoiceSelectorItemProps, VoiceSelectorList, type VoiceSelectorListProps, VoiceSelectorName, type VoiceSelectorNameProps, VoiceSelectorPreview, type VoiceSelectorPreviewProps, type VoiceSelectorProps, VoiceSelectorSeparator, type VoiceSelectorSeparatorProps, VoiceSelectorShortcut, type VoiceSelectorShortcutProps, VoiceSelectorTrigger, type VoiceSelectorTriggerProps, WebPreview, WebPreviewBody, type WebPreviewBodyProps, WebPreviewConsole, type WebPreviewConsoleProps, type WebPreviewContextValue, WebPreviewNavigation, WebPreviewNavigationButton, type WebPreviewNavigationButtonProps, type WebPreviewNavigationProps, type WebPreviewProps, WebPreviewUrl, type WebPreviewUrlProps, agentMessageVariants, badgeToneForValue, booleanFieldSchema, buildA2uiSurfaceSchema, buildPartGroups, catalogSchema, cellFormatSchema, columnSpecSchema, compareCellValues, completeJson, createA2uiCatalog, createLazyMermaidPlugin, defaultPartStatus, defineA2uiType, diffRowVariants, enumFieldSchema, enumOptionSchema, fieldLabel, fieldSpecSchema, formSpecSchema, formatCellValue, getAttachmentLabel, getMediaCategory, getStatusBadge, groupPartByType, highlightCode, initialFormValues, inlineCitationSourceLabel, integerFieldSchema, invalidNodePaths, isA2uiElement, isEmptyCell, isGroupNode, isNumericFormat, lazyMermaid, messageActionsVariants, messageFeedbackVariants, messagesToMarkdown, multiEnumFieldSchema, normalizeFormSpec, normalizeTableSpec, numberFieldSchema, optionLabel, optionValue, parseSurfaceJson, partsFingerprint, preloadMermaid, readSelectionWithin, rollupStatus, statusFromToolState, stringFieldSchema, tableSpecSchema, uiCatalog, useAssetPreviewRenderer, useAttachmentContext, useAttachmentsContext, useAudioDevices, useAudioLevel, useContextPanel, useJSXPreview, useMessageEdit, usePromptInputAttachments, usePromptInputController, usePromptInputReferencedSources, useProviderAttachments, useReasoning, useVoiceSelector, validateA2uiSurface, validateField, validateForm };
|