@mgamadeus/ddd-agents 0.1.0-alpha.51 → 0.1.0-alpha.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/chat.js +30 -29
  2. package/dist/chat.js.map +1 -1
  3. package/dist/chunks/{ConversationMessageInputComposerWidgets-CzQnpW0h.js → ConversationMessageInputComposerWidgets-CFU9Bxjr.js} +5 -5
  4. package/dist/chunks/ConversationMessageInputComposerWidgets-CFU9Bxjr.js.map +1 -0
  5. package/dist/chunks/{WebSearchResultsConversationWidget-tDhawe9f.js → WebSearchResultsConversationWidget-H6cbTapV.js} +85 -83
  6. package/dist/chunks/WebSearchResultsConversationWidget-H6cbTapV.js.map +1 -0
  7. package/dist/chunks/{canvas-reducers-BdIPZW_6.js → canvas-reducers-Cdxt8yDF.js} +2 -2
  8. package/dist/chunks/canvas-reducers-Cdxt8yDF.js.map +1 -0
  9. package/dist/chunks/{canvasBodies-BiUt8MUG.js → canvasBodies-BY1uT2og.js} +4 -4
  10. package/dist/chunks/{canvasBodies-BiUt8MUG.js.map → canvasBodies-BY1uT2og.js.map} +1 -1
  11. package/dist/chunks/{widget-click-signal-sources-BR82QygL.js → widget-click-signal-sources-DOpjIWdO.js} +3 -3
  12. package/dist/chunks/{widget-click-signal-sources-BR82QygL.js.map → widget-click-signal-sources-DOpjIWdO.js.map} +1 -1
  13. package/dist/chunks/{widget-name-resolver-BaxKaRa3.js → widget-name-resolver-BFHZuaYL.js} +4 -4
  14. package/dist/chunks/{widget-name-resolver-BaxKaRa3.js.map → widget-name-resolver-BFHZuaYL.js.map} +1 -1
  15. package/dist/client-testing.js +3 -3
  16. package/dist/image-render.js +7 -7
  17. package/dist/index.js +3 -3
  18. package/dist/kit.js +2 -2
  19. package/dist/preview.js +5 -5
  20. package/dist/preview.js.map +1 -1
  21. package/dist/renderer.js +8 -7
  22. package/dist/styles.css +50 -50
  23. package/dist/types/chat/{ConversationErrorCard/ConversationErrorCard.d.ts → ConversationErrorWidget/ConversationErrorWidget.d.ts} +2 -2
  24. package/dist/types/chat/{ConversationIntroCard/ConversationIntroCard.d.ts → ConversationIntroWidget/ConversationIntroWidget.d.ts} +2 -2
  25. package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/{ConversationMessageInputAttachmentPreviewCard.d.ts → ConversationMessageInputAttachmentPreviewWidget.d.ts} +2 -2
  26. package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentsPreviewStrip.d.ts +1 -1
  27. package/dist/types/chat/ConversationSuggestionWidget/ConversationSuggestionWidget.d.ts +7 -0
  28. package/dist/types/entries/chat.d.ts +4 -2
  29. package/dist/types/entries/widgets.d.ts +10 -6
  30. package/dist/types/preview/widget-preview-hydration.d.ts +1 -1
  31. package/dist/types/renderer/ConversationWidgetCallbacksContext.d.ts +1 -1
  32. package/dist/types/renderer/canvas/canvas-state.d.ts +4 -2
  33. package/dist/types/renderer/canvas/decide-canvas-open.d.ts +1 -1
  34. package/dist/types/widgets/{CanvasWidgetCard/CanvasWidgetCard.d.ts → CanvasLauncherWidget/CanvasLauncherWidget.d.ts} +4 -4
  35. package/dist/types/widgets/{CanvasWidgetCard → CanvasLauncherWidget}/CanvasWidgetSwitch.d.ts +8 -8
  36. package/dist/types/widgets/{CanvasWidgetCard → CanvasLauncherWidget}/canvas-for-message-widget.d.ts +2 -2
  37. package/dist/types/widgets/EntityMentionConversationWidget/{EntityMentionCard/EntityMentionCard.d.ts → EntityMentionWidgetBody/EntityMentionWidgetBody.d.ts} +2 -2
  38. package/dist/types/widgets/_shared/{CardFooter.d.ts → WidgetFooter.d.ts} +1 -1
  39. package/dist/widgets.js +40 -38
  40. package/dist/widgets.js.map +1 -1
  41. package/package.json +1 -1
  42. package/public-api.json +18 -11
  43. package/dist/chunks/ConversationMessageInputComposerWidgets-CzQnpW0h.js.map +0 -1
  44. package/dist/chunks/WebSearchResultsConversationWidget-tDhawe9f.js.map +0 -1
  45. package/dist/chunks/canvas-reducers-BdIPZW_6.js.map +0 -1
  46. package/dist/types/chat/ConversationSuggestionCard/ConversationSuggestionCard.d.ts +0 -7
  47. /package/dist/types/widgets/{CanvasWidgetCard → CanvasLauncherWidget}/use-canvas-viable.d.ts +0 -0
package/dist/styles.css CHANGED
@@ -536,7 +536,7 @@
536
536
  .agents_staticPreviewIcon_YIgGKQ {
537
537
  flex-shrink: 0;
538
538
  color: var(--agents-fg-light);
539
- }.agents_card_KTMmRF {
539
+ }.agents_card_lwSH33 {
540
540
  display: flex;
541
541
  align-items: center;
542
542
  gap: 0.5rem;
@@ -548,7 +548,7 @@
548
548
  box-shadow: 0 0.125rem 0.125rem rgba(var(--agents-shadow-rgb), 0.08), 0 0.25rem 0.5rem rgba(var(--agents-shadow-rgb), 0.05), 0 0.5rem 1.5rem rgba(var(--agents-shadow-rgb), 0.03);
549
549
  }
550
550
 
551
- .agents_iconTile_IzuQLE {
551
+ .agents_iconTile_8LLt9b {
552
552
  display: inline-flex;
553
553
  align-items: center;
554
554
  justify-content: center;
@@ -559,17 +559,17 @@
559
559
  background: var(--agents-bg-var);
560
560
  }
561
561
 
562
- .agents_text_2mYg4- {
562
+ .agents_text_IBPWXe {
563
563
  display: flex;
564
564
  flex-direction: column;
565
565
  min-width: 0;
566
566
  }
567
567
 
568
- .agents_caption_FlRm-k {
568
+ .agents_caption_Rqoy-c {
569
569
  display: block;
570
570
  }
571
571
 
572
- .agents_label_qxEeK1 {
572
+ .agents_label_rk7rVc {
573
573
  display: block;
574
574
  min-width: 0;
575
575
  overflow: hidden;
@@ -893,30 +893,30 @@
893
893
 
894
894
  .agents_pillLabel_mhrrx9 {
895
895
  color: var(--agents-fg);
896
- }.agents_cardSurface_8sTLZN {
896
+ }.agents_cardSurface_E22fRs {
897
897
  width: fit-content;
898
898
  max-width: 100%;
899
899
  border-radius: 1rem;
900
900
  box-shadow: 0 0.125rem 0.125rem rgba(var(--agents-shadow-rgb), 0.08), 0 0.25rem 0.5rem rgba(var(--agents-shadow-rgb), 0.05), 0 0.5rem 1.5rem rgba(var(--agents-shadow-rgb), 0.03);
901
901
  background: var(--agents-bg-surface);
902
902
  }
903
- .agents_cardSurface_8sTLZN:hover .agents_leadingIconBadge_Yo678f {
903
+ .agents_cardSurface_E22fRs:hover .agents_leadingIconBadge_CUGLsX {
904
904
  background: rgba(var(--agents-fg-cta-rgb), 0.18);
905
905
  }
906
- .agents_cardSurface_8sTLZN:hover .agents_openAffordance_ynmY3I {
906
+ .agents_cardSurface_E22fRs:hover .agents_openAffordance_2cG57Y {
907
907
  transform: translateX(0.25rem);
908
908
  background: rgba(var(--agents-fg-cta-rgb), 0.12);
909
909
  border-color: transparent;
910
910
  }
911
- .agents_cardSurface_8sTLZN:hover .agents_openIcon_v9T2Hq,
912
- .agents_cardSurface_8sTLZN:hover .agents_richOpenIcon_N8aTfi {
911
+ .agents_cardSurface_E22fRs:hover .agents_openIcon_H-1FgN,
912
+ .agents_cardSurface_E22fRs:hover .agents_richOpenIcon_T3LYOK {
913
913
  color: var(--agents-fg-cta);
914
914
  }
915
- .agents_cardSurface_8sTLZN:hover .agents_richOpenIcon_N8aTfi {
915
+ .agents_cardSurface_E22fRs:hover .agents_richOpenIcon_T3LYOK {
916
916
  transform: translateX(0.25rem);
917
917
  }
918
918
 
919
- .agents_cardButton_Nv81x4 {
919
+ .agents_cardButton_UYBiR- {
920
920
  display: flex;
921
921
  align-items: center;
922
922
  gap: 0.75rem;
@@ -929,18 +929,18 @@
929
929
  cursor: pointer;
930
930
  text-align: left;
931
931
  }
932
- .agents_cardButton_Nv81x4:focus-visible {
932
+ .agents_cardButton_UYBiR-:focus-visible {
933
933
  outline: 0.125rem solid var(--agents-fg-cta);
934
934
  outline-offset: -0.125rem;
935
935
  border-radius: 1rem;
936
936
  }
937
937
 
938
- .agents_body_WH79As {
938
+ .agents_body_TW-9Nf {
939
939
  flex: 1;
940
940
  min-width: 0;
941
941
  }
942
942
 
943
- .agents_leadingIconBadge_Yo678f {
943
+ .agents_leadingIconBadge_CUGLsX {
944
944
  flex-shrink: 0;
945
945
  display: flex;
946
946
  align-items: center;
@@ -954,7 +954,7 @@
954
954
  transition: background 0.15s ease;
955
955
  }
956
956
 
957
- .agents_openAffordance_ynmY3I {
957
+ .agents_openAffordance_2cG57Y {
958
958
  flex-shrink: 0;
959
959
  display: flex;
960
960
  align-items: center;
@@ -967,12 +967,12 @@
967
967
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
968
968
  }
969
969
 
970
- .agents_openIcon_v9T2Hq {
970
+ .agents_openIcon_H-1FgN {
971
971
  color: var(--agents-fg-lightest);
972
972
  transition: color 0.15s ease;
973
973
  }
974
974
 
975
- .agents_cardOfAnotherBusiness_Ja5FPP {
975
+ .agents_cardOfAnotherBusiness_AJijSp {
976
976
  display: flex;
977
977
  flex-direction: column;
978
978
  align-items: flex-end;
@@ -980,41 +980,41 @@
980
980
  width: 100%;
981
981
  }
982
982
 
983
- .agents_richCard_9dV6bE {
983
+ .agents_richCard_DdWUXA {
984
984
  width: fit-content;
985
985
  max-width: 100%;
986
986
  border-radius: 1rem;
987
987
  box-shadow: 0 0.125rem 0.125rem rgba(var(--agents-shadow-rgb), 0.08), 0 0.25rem 0.5rem rgba(var(--agents-shadow-rgb), 0.05), 0 0.5rem 1.5rem rgba(var(--agents-shadow-rgb), 0.03);
988
988
  background: var(--agents-bg-surface);
989
989
  }
990
- .agents_richCard_9dV6bE:hover .agents_richOpenIcon_N8aTfi {
990
+ .agents_richCard_DdWUXA:hover .agents_richOpenIcon_T3LYOK {
991
991
  color: var(--agents-fg-cta);
992
992
  transform: translateX(0.25rem);
993
993
  }
994
994
 
995
995
  @container chatPane (max-width: 768px) {
996
- .agents_cardSurface_8sTLZN {
996
+ .agents_cardSurface_E22fRs {
997
997
  width: 100%;
998
998
  }
999
999
  }
1000
1000
  @media (max-width: 768px) {
1001
- .agents_cardSurface_8sTLZN {
1001
+ .agents_cardSurface_E22fRs {
1002
1002
  width: 100%;
1003
1003
  }
1004
1004
  }
1005
- .agents_richCardSurface_x-0dGw {
1005
+ .agents_richCardSurface_Tp7fVx {
1006
1006
  border-radius: 1.25rem;
1007
1007
  }
1008
1008
 
1009
- .agents_richCardButton_ybdXEK {
1009
+ .agents_richCardButton_Xql1T3 {
1010
1010
  gap: 1rem;
1011
1011
  padding: 0.5rem;
1012
1012
  }
1013
- .agents_richCardButton_ybdXEK:focus-visible {
1013
+ .agents_richCardButton_Xql1T3:focus-visible {
1014
1014
  border-radius: 1.25rem;
1015
1015
  }
1016
1016
 
1017
- .agents_thumbnail_zydmG1 {
1017
+ .agents_thumbnail_9eN6G1 {
1018
1018
  flex-shrink: 0;
1019
1019
  position: relative;
1020
1020
  width: 6rem;
@@ -1024,13 +1024,13 @@
1024
1024
  background: var(--agents-bg-var);
1025
1025
  }
1026
1026
 
1027
- .agents_richOpenIcon_N8aTfi {
1027
+ .agents_richOpenIcon_T3LYOK {
1028
1028
  flex-shrink: 0;
1029
1029
  color: var(--agents-fg-light);
1030
1030
  transition: color 0.15s ease, transform 0.15s ease;
1031
1031
  }
1032
1032
 
1033
- .agents_mobile_G13kW9 {
1033
+ .agents_mobile_Jmo-Gy {
1034
1034
  display: flex;
1035
1035
  flex-direction: column;
1036
1036
  gap: 1rem;
@@ -5219,7 +5219,7 @@ thead + tbody .agents_row_VBlQR-:first-child {
5219
5219
  }.agents_widgetLabel_WecWAw {
5220
5220
  text-transform: uppercase;
5221
5221
  letter-spacing: 0.08em;
5222
- }.agents_cardFooter_mobDKj {
5222
+ }.agents_cardFooter_7HSIGK {
5223
5223
  display: flex;
5224
5224
  justify-content: space-between;
5225
5225
  align-items: center;
@@ -5228,7 +5228,7 @@ thead + tbody .agents_row_VBlQR-:first-child {
5228
5228
  }
5229
5229
 
5230
5230
  @container chatPane (max-width: 900px) {
5231
- .agents_cardFooter_mobDKj {
5231
+ .agents_cardFooter_7HSIGK {
5232
5232
  flex-wrap: wrap;
5233
5233
  }
5234
5234
  }.agents_stripReveal_6XAjCM {
@@ -6366,7 +6366,7 @@ thead + tbody .agents_row_VBlQR-:first-child {
6366
6366
  transform: translateY(-0.375rem);
6367
6367
  opacity: 1;
6368
6368
  }
6369
- }.agents_errorMessageContainer_uzjMdt {
6369
+ }.agents_errorMessageContainer_SW0BKU {
6370
6370
  display: flex;
6371
6371
  flex-direction: column;
6372
6372
  background-color: var(--agents-bg-surface);
@@ -6376,24 +6376,24 @@ thead + tbody .agents_row_VBlQR-:first-child {
6376
6376
  gap: 1.25rem;
6377
6377
  }
6378
6378
  @media (min-width: 767px) {
6379
- .agents_errorMessageContainer_uzjMdt {
6379
+ .agents_errorMessageContainer_SW0BKU {
6380
6380
  flex-direction: row;
6381
6381
  align-items: center;
6382
6382
  gap: 1.5rem;
6383
6383
  }
6384
6384
  }
6385
6385
  @media (min-width: 1025px) {
6386
- .agents_errorMessageContainer_uzjMdt {
6386
+ .agents_errorMessageContainer_SW0BKU {
6387
6387
  gap: 3rem;
6388
6388
  }
6389
6389
  }
6390
6390
 
6391
- .agents_errorMessageTitle_ftGnjl {
6391
+ .agents_errorMessageTitle_c--G2K {
6392
6392
  display: flex;
6393
6393
  align-items: center;
6394
6394
  gap: 0.5rem;
6395
6395
  margin-bottom: 0.5rem;
6396
- }.agents_suggestionCard_y2VMpF {
6396
+ }.agents_suggestionCard_mrCOnL {
6397
6397
  position: relative;
6398
6398
  border-radius: 1rem;
6399
6399
  box-shadow: 0 0.125rem 0.125rem rgba(var(--agents-shadow-rgb), 0.08), 0 0.25rem 0.5rem rgba(var(--agents-shadow-rgb), 0.05), 0 0.5rem 1.5rem rgba(var(--agents-shadow-rgb), 0.03);
@@ -6403,11 +6403,11 @@ thead + tbody .agents_row_VBlQR-:first-child {
6403
6403
  max-width: 20rem;
6404
6404
  min-height: 9.5rem;
6405
6405
  }
6406
- .agents_suggestionCard_y2VMpF svg path {
6406
+ .agents_suggestionCard_mrCOnL svg path {
6407
6407
  fill: currentColor;
6408
6408
  }
6409
6409
 
6410
- .agents_suggestionCardButton_Pt4757 {
6410
+ .agents_suggestionCardButton_Vs0fh3 {
6411
6411
  position: relative;
6412
6412
  display: flex;
6413
6413
  flex-direction: row;
@@ -6425,13 +6425,13 @@ thead + tbody .agents_row_VBlQR-:first-child {
6425
6425
  text-align: left;
6426
6426
  cursor: pointer;
6427
6427
  }
6428
- .agents_suggestionCardButton_Pt4757:focus-visible {
6428
+ .agents_suggestionCardButton_Vs0fh3:focus-visible {
6429
6429
  outline: 0.125rem solid var(--agents-fg-on-dark);
6430
6430
  outline-offset: -0.125rem;
6431
6431
  border-radius: 1rem;
6432
6432
  }
6433
6433
 
6434
- .agents_arrowIcon_WW31X0 {
6434
+ .agents_arrowIcon_KmN-nZ {
6435
6435
  position: absolute;
6436
6436
  right: 1rem;
6437
6437
  bottom: 1rem;
@@ -6746,24 +6746,24 @@ thead + tbody .agents_row_VBlQR-:first-child {
6746
6746
  gap: 1.25rem;
6747
6747
  padding: 1rem 1rem 0.5rem 0;
6748
6748
  overflow-x: auto;
6749
- }.agents_card_p3-j6e {
6749
+ }.agents_card_8HbjAG {
6750
6750
  position: relative;
6751
6751
  flex: 0 0 auto;
6752
6752
  border-radius: 0.5rem;
6753
6753
  background: rgba(var(--agents-neutral-500-rgb), 0.1);
6754
6754
  }
6755
6755
 
6756
- .agents_cardFailed_Yk3H4I {
6756
+ .agents_cardFailed_zXTTsv {
6757
6757
  box-shadow: 0 0 0 1px var(--agents-danger-500);
6758
6758
  }
6759
6759
 
6760
- .agents_cardGenericFile_2hOJ-- {
6760
+ .agents_cardGenericFile_YOIBnL {
6761
6761
  display: flex;
6762
6762
  align-items: center;
6763
6763
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
6764
6764
  }
6765
6765
 
6766
- .agents_thumbnail_faItfA {
6766
+ .agents_thumbnail_Qrdw5j {
6767
6767
  display: block;
6768
6768
  width: 8rem;
6769
6769
  height: 8rem;
@@ -6771,14 +6771,14 @@ thead + tbody .agents_row_VBlQR-:first-child {
6771
6771
  border-radius: 0.5rem;
6772
6772
  }
6773
6773
 
6774
- .agents_fileFacts_EurBXS {
6774
+ .agents_fileFacts_QpffpE {
6775
6775
  display: flex;
6776
6776
  flex-direction: column;
6777
6777
  gap: 0.125rem;
6778
6778
  min-width: 0;
6779
6779
  }
6780
6780
 
6781
- .agents_uploadProgress_3-EnvR {
6781
+ .agents_uploadProgress_QuqyPG {
6782
6782
  position: absolute;
6783
6783
  left: 0.25rem;
6784
6784
  right: 0.25rem;
@@ -6788,17 +6788,17 @@ thead + tbody .agents_row_VBlQR-:first-child {
6788
6788
  gap: 0.25rem;
6789
6789
  }
6790
6790
 
6791
- .agents_uploadStatusCaption_04a2S3 {
6791
+ .agents_uploadStatusCaption_ztIZur {
6792
6792
  text-shadow: 0 1px 3px rgba(var(--agents-neutral-900-rgb), 0.8), 0 0 0.5rem rgba(var(--agents-neutral-900-rgb), 0.6);
6793
6793
  }
6794
6794
 
6795
- .agents_failedCaption_OgtR4u {
6795
+ .agents_failedCaption_kuj3Gv {
6796
6796
  position: absolute;
6797
6797
  left: 0.25rem;
6798
6798
  bottom: 0.25rem;
6799
6799
  }
6800
6800
 
6801
- .agents_removeButtonHolder_ZNOOQE {
6801
+ .agents_removeButtonHolder_Ik959X {
6802
6802
  position: absolute;
6803
6803
  top: 0;
6804
6804
  right: 0;
@@ -6807,10 +6807,10 @@ thead + tbody .agents_row_VBlQR-:first-child {
6807
6807
  opacity: 0;
6808
6808
  transition: opacity 150ms ease;
6809
6809
  }
6810
- .agents_removeButtonHolder_ZNOOQE:focus-within {
6810
+ .agents_removeButtonHolder_Ik959X:focus-within {
6811
6811
  opacity: 1;
6812
6812
  }
6813
6813
 
6814
- .agents_card_p3-j6e:hover .agents_removeButtonHolder_ZNOOQE {
6814
+ .agents_card_8HbjAG:hover .agents_removeButtonHolder_Ik959X {
6815
6815
  opacity: 1;
6816
6816
  }
@@ -1,5 +1,5 @@
1
1
  import { ConversationErrorType } from "../store/conversation-error-type";
2
- export interface ConversationErrorCardProps {
2
+ export interface ConversationErrorWidgetProps {
3
3
  errorType: ConversationErrorType;
4
4
  /** Retry-After seconds of the 429 — only meaningful for RATE_LIMIT; picks the "try again in …" wording. */
5
5
  rateLimitRetryAfterSeconds?: number | null;
@@ -10,4 +10,4 @@ export interface ConversationErrorCardProps {
10
10
  */
11
11
  onRetry?: () => Promise<void>;
12
12
  }
13
- export declare const ConversationErrorCard: (props: ConversationErrorCardProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ConversationErrorWidget: (props: ConversationErrorWidgetProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import type { ChatAssistantIdentity, ChatAssistantOpening } from "../chat-assistant-identity";
2
- interface ConversationIntroCardProps {
2
+ interface ConversationIntroWidgetProps {
3
3
  aiPromptExtension: ChatAssistantIdentity;
4
4
  /** The icon class of the extension, an icon of the app's icon set. */
5
5
  aiPromptExtensionIcon: string;
6
6
  suggestions?: ChatAssistantOpening[];
7
7
  onSuggestionClick: (text: string) => void;
8
8
  }
9
- export declare const ConversationIntroCard: ({ aiPromptExtension, aiPromptExtensionIcon, suggestions, onSuggestionClick, }: ConversationIntroCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const ConversationIntroWidget: ({ aiPromptExtension, aiPromptExtensionIcon, suggestions, onSuggestionClick, }: ConversationIntroWidgetProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -15,7 +15,7 @@ export type ConversationMessageInputAttachmentPreview = {
15
15
  /** 0-100; only meaningful while `uploadStatus` is "uploading". */
16
16
  uploadProgressPercent: number;
17
17
  };
18
- export interface ConversationMessageInputAttachmentPreviewCardProps {
18
+ export interface ConversationMessageInputAttachmentPreviewWidgetProps {
19
19
  attachment: ConversationMessageInputAttachmentPreview;
20
20
  /** The card's ✕ — the host drops the attachment (and discards its in-flight upload result). */
21
21
  onRemove: () => void;
@@ -31,4 +31,4 @@ export interface ConversationMessageInputAttachmentPreviewCardProps {
31
31
  * (progress 100%) but the media-library call hasn't resolved — the bar goes indeterminate for that
32
32
  * stretch. Both disappear when the upload settles.
33
33
  */
34
- export declare const ConversationMessageInputAttachmentPreviewCard: (props: ConversationMessageInputAttachmentPreviewCardProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const ConversationMessageInputAttachmentPreviewWidget: (props: ConversationMessageInputAttachmentPreviewWidgetProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ConversationMessageInputAttachmentPreview } from "./ConversationMessageInputAttachmentPreviewCard";
1
+ import { ConversationMessageInputAttachmentPreview } from "./ConversationMessageInputAttachmentPreviewWidget";
2
2
  export interface ConversationMessageInputAttachmentsPreviewStripProps {
3
3
  attachments: ConversationMessageInputAttachmentPreview[];
4
4
  onRemoveAttachment: (attachmentId: string) => void;
@@ -0,0 +1,7 @@
1
+ import type { ChatAssistantOpening } from "../chat-assistant-identity";
2
+ export interface ConversationSuggestionWidgetProps {
3
+ suggestion: ChatAssistantOpening;
4
+ onClick?: () => void;
5
+ testId?: string;
6
+ }
7
+ export declare const ConversationSuggestionWidget: (props: ConversationSuggestionWidgetProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,7 +13,9 @@ export type { ChatMessage } from "../chat/chat-message";
13
13
  export type { ChatAssistantCategory, ChatAssistantIdentity, ChatAssistantOpening } from "../chat/chat-assistant-identity";
14
14
  export type { SendMessageHandler, SendMessageOptions } from "../chat/conversation-send-message";
15
15
  export { ConversationView, type ConversationViewProps } from "../chat/ConversationView";
16
- export { ConversationErrorCard, type ConversationErrorCardProps } from "../chat/ConversationErrorCard/ConversationErrorCard";
16
+ export { ConversationErrorWidget, type ConversationErrorWidgetProps } from "../chat/ConversationErrorWidget/ConversationErrorWidget";
17
+ /** @deprecated Renamed to `ConversationErrorWidget` (and `ConversationErrorWidgetProps`). */
18
+ export { ConversationErrorWidget as ConversationErrorCard, type ConversationErrorWidgetProps as ConversationErrorCardProps, } from "../chat/ConversationErrorWidget/ConversationErrorWidget";
17
19
  export { ConversationMessageInputAttachmentsErrorBox } from "../chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentsErrorBox";
18
20
  export { ConversationMessageInputAttachmentsPreviewStrip } from "../chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentsPreviewStrip";
19
21
  export { normalizeServerMessageToMarkdown } from "../chat/normalize-server-message-to-markdown";
@@ -27,7 +29,7 @@ export { ConversationMessageUser, type ConversationMessageUserProps, type Conver
27
29
  export { ConversationMessageWidgets, type ConversationMessageWidgetsProps, } from "../chat/ConversationMessage/ConversationMessageWidgets/ConversationMessageWidgets";
28
30
  export { ConversationMessageSystem, type ConversationMessageSystemProps, } from "../chat/ConversationMessage/ConversationMessageSystem/ConversationMessageSystem";
29
31
  export { ConversationMessageInput, MAX_MESSAGE_LENGTH, type ConversationMessageInputHandle, type ConversationMessageInputProps, } from "../chat/ConversationMessageInput/ConversationMessageInput";
30
- export type { ConversationMessageInputAttachmentPreview, ConversationMessageInputAttachmentUploadStatus, } from "../chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentPreviewCard";
32
+ export type { ConversationMessageInputAttachmentPreview, ConversationMessageInputAttachmentUploadStatus, } from "../chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentPreviewWidget";
31
33
  export type { AssistantServerMessagePayload } from "../chat/normalize-server-message-to-markdown";
32
34
  export { useActivityTicker, SUCCESS_BEAT_MS } from "../chat/controller/use-activity-ticker";
33
35
  export { formatElapsedClock, isStepStillRunning, type ActivityTickerLine } from "../chat/controller/activity-ticker";
@@ -1,6 +1,8 @@
1
- export { CanvasWidgetCard, type CanvasWidgetCardProps } from "../widgets/CanvasWidgetCard/CanvasWidgetCard";
2
- export { CanvasWidgetSwitch } from "../widgets/CanvasWidgetCard/CanvasWidgetSwitch";
3
- export { canvasForMessageWidget } from "../widgets/CanvasWidgetCard/canvas-for-message-widget";
1
+ export { CanvasLauncherWidget, type CanvasLauncherWidgetProps } from "../widgets/CanvasLauncherWidget/CanvasLauncherWidget";
2
+ /** @deprecated Renamed to `CanvasLauncherWidget` (and `CanvasLauncherWidgetProps`, `CanvasLauncherWidgetCanvas`). */
3
+ export { CanvasLauncherWidget as CanvasWidgetCard, type CanvasLauncherWidgetProps as CanvasWidgetCardProps, type CanvasLauncherWidgetCanvas as CanvasWidgetCardCanvas, } from "../widgets/CanvasLauncherWidget/CanvasLauncherWidget";
4
+ export { CanvasWidgetSwitch } from "../widgets/CanvasLauncherWidget/CanvasWidgetSwitch";
5
+ export { canvasForMessageWidget } from "../widgets/CanvasLauncherWidget/canvas-for-message-widget";
4
6
  export { ClockConversationWidget } from "../widgets/ClockConversationWidget/ClockConversationWidget";
5
7
  export { ConceptExplainerConversationWidget } from "../widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget";
6
8
  export { ConversationSearchResultsConversationWidget } from "../widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget";
@@ -15,10 +17,12 @@ export { ToolTraceConversationWidget } from "../widgets/ToolTraceConversationWid
15
17
  export { WebSearchResultsConversationWidget } from "../widgets/WebSearchResultsConversationWidget/WebSearchResultsConversationWidget";
16
18
  export { WritingDraftConversationWidget } from "../widgets/WritingDraftConversationWidget/WritingDraftConversationWidget";
17
19
  export * from "../widgets/_shared/modern";
18
- export type { CanvasWidgetCardCanvas } from "../widgets/CanvasWidgetCard/CanvasWidgetCard";
19
- export { CANVAS_VIABLE_MIN_WIDTH, useCanvasViable } from "../widgets/CanvasWidgetCard/use-canvas-viable";
20
+ export type { CanvasLauncherWidgetCanvas } from "../widgets/CanvasLauncherWidget/CanvasLauncherWidget";
21
+ export { CANVAS_VIABLE_MIN_WIDTH, useCanvasViable } from "../widgets/CanvasLauncherWidget/use-canvas-viable";
20
22
  export { WidgetLabel } from "../widgets/_shared/WidgetLabel";
21
- export { CardFooter } from "../widgets/_shared/CardFooter";
23
+ export { WidgetFooter } from "../widgets/_shared/WidgetFooter";
24
+ /** @deprecated Renamed to `WidgetFooter`. */
25
+ export { WidgetFooter as CardFooter } from "../widgets/_shared/WidgetFooter";
22
26
  export { DonePill } from "../widgets/_shared/DonePill";
23
27
  export { SkeletonCircle, SkeletonLine, SkeletonPill, SkeletonWidgetLabel } from "../widgets/_shared/skeleton-primitives";
24
28
  export { pickAllowed, pickAllowedValue, pickReviewExternalId, pickSafeAlias, pickSafeAliases, pickText, } from "../widgets/_shared/widget-payload-validation";
@@ -4,7 +4,7 @@ import type { WidgetPreviewResponse } from "./widget-preview.types";
4
4
  * one that answers from the fixture's `hydration` (by derived key, else by type) and otherwise runs the real hydrator,
5
5
  * whose requests the request transport answers from `responses`. The widget therefore runs its live code path —
6
6
  * `useWidgetHydration` with the store's hydration slice, no frozen capture context — so a self-hydrating canvas widget
7
- * auto-opens its canvas like in the chat (`CanvasWidgetCard`). The `email` mode keeps the capture's frozen hydration.
7
+ * auto-opens its canvas like in the chat (`CanvasLauncherWidget`). The `email` mode keeps the capture's frozen hydration.
8
8
  * Returns the disposer that puts the real hydrators back.
9
9
  */
10
10
  export declare const installWidgetPreviewHydration: (hydration: Record<string, WidgetPreviewResponse>, onFailedRequest: (requestKey: string) => void) => (() => void);
@@ -86,7 +86,7 @@ export interface ConversationWidgetCallbacks {
86
86
  openCanvas: (request: CanvasOpenRequestFromOpener) => void;
87
87
  closeCanvas: (byCustomer: boolean) => void;
88
88
  /**
89
- * Re-open `lastClosedCanvas` as a customer action (origin `cardClick`): the canvas toggle button on the divider, the
89
+ * Re-open `lastClosedCanvas` as a customer action (origin `widgetClick`): the canvas toggle button on the divider, the
90
90
  * narrow-viewport re-open control, the compact → expand path. No-op when nothing was closed.
91
91
  */
92
92
  reopenLastClosedCanvas: () => void;
@@ -20,13 +20,15 @@ export type CanvasAnchor = {
20
20
  /**
21
21
  * How a canvas came to be open — the one question the opening rule asks (`decide-canvas-open.ts`):
22
22
  * - `deliveredInMessage` a canvas widget in a message delivered live (`justDelivered`); replay never opens one
23
- * - `cardClick` the customer clicked a card in the transcript, or the canvas toggle button on the divider
23
+ * - `widgetClick` the customer clicked a widget in the transcript, or the canvas toggle button on the divider
24
24
  * - `openedByPage` a page handed the tool over (`openAgentWithWidget` / `?agentWidget=`)
25
25
  * - `restoredAfterReload` the pointer stored for this conversation, on the mount of the conversation
26
26
  * A restored or page-opened canvas never runs a body's creation side effects (a post editor with no created entity
27
27
  * renders its empty state instead of creating a draft).
28
28
  */
29
- export type CanvasOrigin = "deliveredInMessage" | "cardClick" | "openedByPage" | "restoredAfterReload";
29
+ /** @deprecated The former name of the `widgetClick` origin; an app's call that still passes it opens like `widgetClick`. */
30
+ export declare const LEGACY_CARD_CLICK_ORIGIN = "cardClick";
31
+ export type CanvasOrigin = "deliveredInMessage" | "widgetClick" | "openedByPage" | "restoredAfterReload" | typeof LEGACY_CARD_CLICK_ORIGIN;
30
32
  /** The identity of a canvas: WHICH canvas, and which instance of it. Two canvases with the same identity are one. */
31
33
  export interface CanvasIdentity {
32
34
  readonly canvasId: CanvasId;
@@ -26,7 +26,7 @@ export type CanvasOpenDecision = {
26
26
  * is a fresh Accept (remount), and the refresh contract of a pinned work surface is a value the body derives from the
27
27
  * message list, not a reducer merge.
28
28
  *
29
- * A `cardClick`, an `openedByPage` and a `restoredAfterReload` request always open (the customer, the page or the
29
+ * A `widgetClick`, an `openedByPage` and a `restoredAfterReload` request always open (the customer, the page or the
30
30
  * stored pointer decided); only `deliveredInMessage` is judged.
31
31
  */
32
32
  export declare const decideCanvasOpen: (behaviour: CanvasBehaviour | undefined, openCanvas: CanvasState | null, lastClosedCanvas: LastClosedCanvas | null, request: CanvasOpenRequest) => CanvasOpenDecision;
@@ -7,12 +7,12 @@ import { CanvasAnchor } from "../../renderer/canvas/canvas-state";
7
7
  * `canvasBodies` and re-reads its payload from the anchor message — the card carries no rendered node. Layout
8
8
  * (width, narrow-viewport rule, full bleed) is the canvas's behaviour (`canvas-behaviours.ts`), not a card prop.
9
9
  */
10
- export interface CanvasWidgetCardCanvas {
10
+ export interface CanvasLauncherWidgetCanvas {
11
11
  canvasId: CanvasId;
12
12
  instanceId: string;
13
13
  anchor: CanvasAnchor;
14
14
  }
15
- export interface CanvasWidgetCardProps {
15
+ export interface CanvasLauncherWidgetProps {
16
16
  /**
17
17
  * Headline shown on the inline card (e.g. "Search results for 'X'"). Rendered through the component library's `Text`, so
18
18
  * it auto-translates: keep dynamic values out of the string and pass them via `titleReplacements` (`%token%`).
@@ -42,7 +42,7 @@ export interface CanvasWidgetCardProps {
42
42
  * The canvas this card opens (`canvasForMessageWidget`). Undefined while the widget does not know its message (the
43
43
  * reply is still streaming, a composer echo): the card renders but opens nothing.
44
44
  */
45
- canvas?: CanvasWidgetCardCanvas;
45
+ canvas?: CanvasLauncherWidgetCanvas;
46
46
  /**
47
47
  * The other agent space the canvas shows, when it is not the active one. The named card shows that agent space's chip on
48
48
  * a row above it: floating over the card's corner, the chip would cover the open affordance, and inside the card
@@ -76,4 +76,4 @@ export interface CanvasWidgetCardProps {
76
76
  * - without a `preview` (the canvas is the widget's only surface, behaviour `narrowViewport: "overlay"`): the same
77
77
  * named card as on the wide viewport, so closing the canvas leaves a card to re-open.
78
78
  */
79
- export declare const CanvasWidgetCard: ({ title, titleReplacements, translateTitle, subtitle, subtitleReplacements, translateSubtitle, icon, thumbnail, justDelivered, canvas, anotherAgentSpaceKey, preview, testId, }: CanvasWidgetCardProps) => import("react/jsx-runtime").JSX.Element;
79
+ export declare const CanvasLauncherWidget: ({ title, titleReplacements, translateTitle, subtitle, subtitleReplacements, translateSubtitle, icon, thumbnail, justDelivered, canvas, anotherAgentSpaceKey, preview, testId, }: CanvasLauncherWidgetProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { type AgentsIconName } from "../../provider/components";
2
2
  import { ReactNode } from "react";
3
- import { CanvasWidgetCardCanvas } from "./CanvasWidgetCard";
3
+ import { CanvasLauncherWidgetCanvas } from "./CanvasLauncherWidget";
4
4
  export interface CanvasWidgetInlineRenderOptions {
5
5
  /**
6
- * True only when the inline render is the narrow-viewport preview inside the {@link CanvasWidgetCard}, above its
6
+ * True only when the inline render is the narrow-viewport preview inside the {@link CanvasLauncherWidget}, above its
7
7
  * "Open in canvas" button, so the canvas holds the full content. False in the chat's inline branch and in email /
8
8
  * image renders, where no canvas exists and the inline render is the whole widget: never shorten it there.
9
9
  */
@@ -35,26 +35,26 @@ export interface CanvasWidgetSwitchProps {
35
35
  icon?: AgentsIconName;
36
36
  /** True when the host message was delivered live right now — auto-opens the canvas once. Never true after a reload or on history replay. */
37
37
  justDelivered?: boolean;
38
- /** The canvas the card opens (see {@link CanvasWidgetCardProps.canvas}). */
39
- canvas?: CanvasWidgetCardCanvas;
38
+ /** The canvas the card opens (see {@link CanvasLauncherWidgetProps.canvas}). */
39
+ canvas?: CanvasLauncherWidgetCanvas;
40
40
  /**
41
41
  * The other agent space the content belongs to, when it is not the active one: the named card shows its chip (see
42
- * {@link CanvasWidgetCardProps.anotherAgentSpaceKey}). The inline render names it itself.
42
+ * {@link CanvasLauncherWidgetProps.anotherAgentSpaceKey}). The inline render names it itself.
43
43
  */
44
44
  anotherAgentSpaceKey?: number;
45
45
  /**
46
46
  * The inline render of the widget. Shown directly in the chat when the content is small enough to stay inline, and
47
- * reused by the {@link CanvasWidgetCard} as the narrow-viewport inline render below its card. Called once per render.
47
+ * reused by the {@link CanvasLauncherWidget} as the narrow-viewport inline render below its card. Called once per render.
48
48
  * A widget that shortens its content for the widget preview does so only when `isWidgetPreview` is true.
49
49
  */
50
50
  renderInline: (options: CanvasWidgetInlineRenderOptions) => ReactNode;
51
- /** The widget's root test id (`<kebab wire name>-widget`), handed to the {@link CanvasWidgetCard}. */
51
+ /** The widget's root test id (`<kebab wire name>-widget`), handed to the {@link CanvasLauncherWidget}. */
52
52
  testId?: string;
53
53
  }
54
54
  /**
55
55
  * The single switch shared by every canvas widget. It owns the one decision — is this a CANVAS widget at all: the
56
56
  * agent forced it (`display`) or the content exceeds the widget's inline limit. Small content renders inline in the
57
- * chat. A canvas widget hands off to {@link CanvasWidgetCard}, which itself decides the viewport-dependent shape: on a
57
+ * chat. A canvas widget hands off to {@link CanvasLauncherWidget}, which itself decides the viewport-dependent shape: on a
58
58
  * wide viewport a clickable card (opens the side split), on a narrow viewport the inline render plus an "Open in
59
59
  * canvas" CTA (opens over the chat). Centralising this here keeps all widgets consistent and free of the branch.
60
60
  */
@@ -1,8 +1,8 @@
1
1
  import type { CanvasId } from "../../renderer/canvas/canvas-behaviours";
2
- import type { CanvasWidgetCardCanvas } from "./CanvasWidgetCard";
2
+ import type { CanvasLauncherWidgetCanvas } from "./CanvasLauncherWidget";
3
3
  /**
4
4
  * The canvas a payload widget in a message opens: anchored on the host message, one instance per message + payload.
5
5
  * Undefined while the widget does not know its message (the reply is still streaming, a composer echo, a story that
6
6
  * mounts the widget without a message) — the card then renders but opens nothing.
7
7
  */
8
- export declare const canvasForMessageWidget: (canvasId: CanvasId, messageId: string | number | undefined, payload: string) => CanvasWidgetCardCanvas | undefined;
8
+ export declare const canvasForMessageWidget: (canvasId: CanvasId, messageId: string | number | undefined, payload: string) => CanvasLauncherWidgetCanvas | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { EntityMentionFields } from "../shared/entity-mention";
2
- export interface EntityMentionCardProps {
2
+ export interface EntityMentionWidgetBodyProps {
3
3
  mention: EntityMentionFields;
4
4
  testId?: string;
5
5
  }
@@ -8,4 +8,4 @@ export interface EntityMentionCardProps {
8
8
  * type's icon in a rounded tile, the caption "Asking about" and the entity's name below it. The name is business
9
9
  * content (`ModelText`: never translated, never parsed as markup); without one the line names the type ("This review").
10
10
  */
11
- export declare const EntityMentionCard: (props: EntityMentionCardProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const EntityMentionWidgetBody: (props: EntityMentionWidgetBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare const CardFooter: (props: {
2
+ export declare const WidgetFooter: (props: {
3
3
  children: React.ReactNode;
4
4
  actionOnly?: boolean;
5
5
  className?: string;