reachat 2.1.2 → 3.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.
Files changed (65) hide show
  1. package/dist/{CSVFileRenderer-DXI8PDqR.js → CSVFileRenderer-C2tuexJf.js} +2 -2
  2. package/dist/{CSVFileRenderer-DXI8PDqR.js.map → CSVFileRenderer-C2tuexJf.js.map} +1 -1
  3. package/dist/Chat.d.ts +12 -0
  4. package/dist/{Markdown/charts/ChartError.d.ts → ComponentCatalog/ComponentError.d.ts} +2 -2
  5. package/dist/ComponentCatalog/ComponentPre.d.ts +18 -0
  6. package/dist/ComponentCatalog/ComponentRenderer.d.ts +17 -0
  7. package/dist/ComponentCatalog/chartComponentDef.d.ts +36 -0
  8. package/dist/ComponentCatalog/componentCatalog.d.ts +44 -0
  9. package/dist/ComponentCatalog/componentCatalog.spec.d.ts +1 -0
  10. package/dist/ComponentCatalog/generatePrompt.d.ts +9 -0
  11. package/dist/ComponentCatalog/generatePrompt.spec.d.ts +1 -0
  12. package/dist/ComponentCatalog/index.d.ts +9 -0
  13. package/dist/ComponentCatalog/types.d.ts +108 -0
  14. package/dist/ComponentCatalog/validateSpec.d.ts +17 -0
  15. package/dist/ComponentCatalog/validateSpec.spec.d.ts +1 -0
  16. package/dist/{DefaultFileRenderer-Bi8LNDio.js → DefaultFileRenderer-CJ3jwiQa.js} +3 -3
  17. package/dist/{DefaultFileRenderer-Bi8LNDio.js.map → DefaultFileRenderer-CJ3jwiQa.js.map} +1 -1
  18. package/dist/Markdown/charts/ChartRenderer.d.ts +1 -1
  19. package/dist/Markdown/charts/ComponentError.d.ts +1 -0
  20. package/dist/Markdown/charts/index.d.ts +2 -6
  21. package/dist/Markdown/charts/types.d.ts +21 -0
  22. package/dist/Markdown/plugins/index.d.ts +3 -1
  23. package/dist/Markdown/plugins/redactMatchers.d.ts +21 -0
  24. package/dist/Markdown/plugins/remarkComponent.d.ts +27 -0
  25. package/dist/Markdown/plugins/remarkRedact.d.ts +37 -0
  26. package/dist/SessionMessages/SessionMessage/MessageActions.d.ts +2 -2
  27. package/dist/SessionMessages/SessionMessage/MessageFiles.d.ts +2 -2
  28. package/dist/SessionMessages/SessionMessage/MessageQuestion.d.ts +2 -2
  29. package/dist/SessionMessages/SessionMessage/MessageResponse.d.ts +2 -2
  30. package/dist/SessionMessages/SessionMessage/MessageSources.d.ts +2 -2
  31. package/dist/SessionMessages/SessionMessage/SessionMessage.d.ts +2 -2
  32. package/dist/SessionsList/SessionListItem.d.ts +2 -2
  33. package/dist/docs.json +264 -90
  34. package/dist/{index-CBHNcMyR.js → index-8tlsyFe-.js} +1224 -1576
  35. package/dist/index-8tlsyFe-.js.map +1 -0
  36. package/dist/index.css +32 -1
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.js +53 -46
  39. package/dist/index.umd.cjs +1220 -1574
  40. package/dist/index.umd.cjs.map +1 -1
  41. package/dist/stories/AgUi.stories.tsx +118 -0
  42. package/dist/stories/Charts.stories.tsx +118 -130
  43. package/dist/stories/Chat.stories.tsx +6 -1
  44. package/dist/stories/ChatSuggestions.stories.tsx +9 -81
  45. package/dist/stories/Companion.stories.tsx +7 -1
  46. package/dist/stories/ComponentCatalog.stories.tsx +509 -0
  47. package/dist/stories/{ChartError.stories.tsx → ComponentError.stories.tsx} +14 -11
  48. package/dist/stories/Console.stories.tsx +66 -21
  49. package/dist/stories/EnhancedInput.stories.tsx +7 -1
  50. package/dist/stories/Redact.stories.tsx +175 -0
  51. package/dist/stories/examples.ts +31 -0
  52. package/dist/theme.d.ts +3 -0
  53. package/dist/useAgUi/index.d.ts +4 -0
  54. package/dist/useAgUi/types.d.ts +157 -0
  55. package/dist/useAgUi/useAgUi.d.ts +119 -0
  56. package/dist/useAgUi/useAgUi.spec.d.ts +1 -0
  57. package/dist/utils/getChildText.d.ts +10 -0
  58. package/dist/utils/getChildText.spec.d.ts +1 -0
  59. package/package.json +6 -6
  60. package/dist/Markdown/charts/ChartPre.d.ts +0 -6
  61. package/dist/Markdown/charts/chartHelpers.d.ts +0 -40
  62. package/dist/Markdown/plugins/remarkChart.d.ts +0 -59
  63. package/dist/index-CBHNcMyR.js.map +0 -1
  64. package/dist/stories/Integration.stories.tsx +0 -312
  65. /package/dist/{Markdown/charts/chartHelpers.spec.d.ts → ComponentCatalog/chartComponentDef.spec.d.ts} +0 -0
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer theme, base, components, utilities;
4
4
  @layer theme {
@@ -45,6 +45,8 @@
45
45
  --color-blue-700: oklch(48.8% 0.243 264.376);
46
46
  --color-blue-900: oklch(37.9% 0.146 265.522);
47
47
  --color-blue-950: oklch(28.2% 0.091 267.935);
48
+ --color-indigo-600: oklch(51.1% 0.262 276.966);
49
+ --color-indigo-700: oklch(45.7% 0.24 277.023);
48
50
  --color-violet-500: oklch(60.6% 0.25 292.717);
49
51
  --color-purple-100: oklch(94.6% 0.033 307.174);
50
52
  --color-purple-300: oklch(82.7% 0.119 306.383);
@@ -85,9 +87,12 @@
85
87
  --text-2xl--line-height: calc(2 / 1.5);
86
88
  --text-3xl: 1.875rem;
87
89
  --text-3xl--line-height: calc(2.25 / 1.875);
90
+ --text-4xl: 2.25rem;
91
+ --text-4xl--line-height: calc(2.5 / 2.25);
88
92
  --text-5xl: 3rem;
89
93
  --text-5xl--line-height: 1;
90
94
  --font-weight-thin: 100;
95
+ --font-weight-light: 300;
91
96
  --font-weight-normal: 400;
92
97
  --font-weight-medium: 500;
93
98
  --font-weight-semibold: 600;
@@ -298,6 +303,9 @@
298
303
  .relative {
299
304
  position: relative;
300
305
  }
306
+ .static {
307
+ position: static;
308
+ }
301
309
  .sticky {
302
310
  position: sticky;
303
311
  }
@@ -559,6 +567,9 @@
559
567
  .mt-\[190px\] {
560
568
  margin-top: 190px;
561
569
  }
570
+ .mt-auto {
571
+ margin-top: auto;
572
+ }
562
573
  .mr-0 {
563
574
  margin-right: calc(var(--spacing) * 0);
564
575
  }
@@ -2055,6 +2066,10 @@
2055
2066
  }
2056
2067
  background-image: linear-gradient(var(--tw-gradient-stops));
2057
2068
  }
2069
+ .bg-gradient-to-br {
2070
+ --tw-gradient-position: to bottom right in oklab;
2071
+ background-image: linear-gradient(var(--tw-gradient-stops));
2072
+ }
2058
2073
  .bg-gradient-to-r {
2059
2074
  --tw-gradient-position: to right in oklab;
2060
2075
  background-image: linear-gradient(var(--tw-gradient-stops));
@@ -2074,6 +2089,10 @@
2074
2089
  .bg-none {
2075
2090
  background-image: none;
2076
2091
  }
2092
+ .from-blue-400 {
2093
+ --tw-gradient-from: var(--color-blue-400);
2094
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2095
+ }
2077
2096
  .from-blue-500 {
2078
2097
  --tw-gradient-from: var(--color-blue-500);
2079
2098
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -2126,6 +2145,10 @@
2126
2145
  }
2127
2146
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2128
2147
  }
2148
+ .to-blue-600 {
2149
+ --tw-gradient-to: var(--color-blue-600);
2150
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2151
+ }
2129
2152
  .to-fuchsia-500 {
2130
2153
  --tw-gradient-to: var(--color-fuchsia-500);
2131
2154
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -2607,6 +2630,10 @@
2607
2630
  font-size: var(--text-3xl);
2608
2631
  line-height: var(--tw-leading, var(--text-3xl--line-height));
2609
2632
  }
2633
+ .text-4xl {
2634
+ font-size: var(--text-4xl);
2635
+ line-height: var(--tw-leading, var(--text-4xl--line-height));
2636
+ }
2610
2637
  .text-5xl\! {
2611
2638
  font-size: var(--text-5xl) !important;
2612
2639
  line-height: var(--tw-leading, var(--text-5xl--line-height)) !important;
@@ -2736,6 +2763,10 @@
2736
2763
  --tw-font-weight: var(--font-weight-extrabold);
2737
2764
  font-weight: var(--font-weight-extrabold);
2738
2765
  }
2766
+ .font-light {
2767
+ --tw-font-weight: var(--font-weight-light);
2768
+ font-weight: var(--font-weight-light);
2769
+ }
2739
2770
  .font-medium {
2740
2771
  --tw-font-weight: var(--font-weight-medium);
2741
2772
  font-weight: var(--font-weight-medium);
package/dist/index.d.ts CHANGED
@@ -10,3 +10,5 @@ export * from './AppBar';
10
10
  export * from './ChatBubble';
11
11
  export * from './ChatSuggestions';
12
12
  export * from './MessageStatus';
13
+ export * from './useAgUi';
14
+ export * from './ComponentCatalog';