reachat 2.2.0 → 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 (44) hide show
  1. package/dist/{CSVFileRenderer-BOdL4Jte.js → CSVFileRenderer-C2tuexJf.js} +2 -2
  2. package/dist/{CSVFileRenderer-BOdL4Jte.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-C2MsQ9wz.js → DefaultFileRenderer-CJ3jwiQa.js} +2 -2
  17. package/dist/{DefaultFileRenderer-C2MsQ9wz.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 +1 -1
  23. package/dist/Markdown/plugins/remarkComponent.d.ts +27 -0
  24. package/dist/docs.json +259 -77
  25. package/dist/{index-DdRyk11n.js → index-8tlsyFe-.js} +470 -147
  26. package/dist/index-8tlsyFe-.js.map +1 -0
  27. package/dist/index.css +26 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +22 -22
  30. package/dist/index.umd.cjs +454 -131
  31. package/dist/index.umd.cjs.map +1 -1
  32. package/dist/stories/Charts.stories.tsx +118 -130
  33. package/dist/stories/ComponentCatalog.stories.tsx +509 -0
  34. package/dist/stories/{ChartError.stories.tsx → ComponentError.stories.tsx} +14 -11
  35. package/dist/theme.d.ts +3 -0
  36. package/dist/utils/getChildText.d.ts +10 -0
  37. package/dist/utils/getChildText.spec.d.ts +1 -0
  38. package/package.json +4 -6
  39. package/dist/Markdown/charts/ChartPre.d.ts +0 -6
  40. package/dist/Markdown/charts/chartHelpers.d.ts +0 -40
  41. package/dist/Markdown/plugins/remarkChart.d.ts +0 -59
  42. package/dist/index-DdRyk11n.js.map +0 -1
  43. package/dist/stories/Integration.stories.tsx +0 -312
  44. /package/dist/{Markdown/charts/chartHelpers.spec.d.ts → ComponentCatalog/chartComponentDef.spec.d.ts} +0 -0
package/dist/index.css CHANGED
@@ -87,9 +87,12 @@
87
87
  --text-2xl--line-height: calc(2 / 1.5);
88
88
  --text-3xl: 1.875rem;
89
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);
90
92
  --text-5xl: 3rem;
91
93
  --text-5xl--line-height: 1;
92
94
  --font-weight-thin: 100;
95
+ --font-weight-light: 300;
93
96
  --font-weight-normal: 400;
94
97
  --font-weight-medium: 500;
95
98
  --font-weight-semibold: 600;
@@ -300,6 +303,9 @@
300
303
  .relative {
301
304
  position: relative;
302
305
  }
306
+ .static {
307
+ position: static;
308
+ }
303
309
  .sticky {
304
310
  position: sticky;
305
311
  }
@@ -2060,6 +2066,10 @@
2060
2066
  }
2061
2067
  background-image: linear-gradient(var(--tw-gradient-stops));
2062
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
+ }
2063
2073
  .bg-gradient-to-r {
2064
2074
  --tw-gradient-position: to right in oklab;
2065
2075
  background-image: linear-gradient(var(--tw-gradient-stops));
@@ -2079,6 +2089,10 @@
2079
2089
  .bg-none {
2080
2090
  background-image: none;
2081
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
+ }
2082
2096
  .from-blue-500 {
2083
2097
  --tw-gradient-from: var(--color-blue-500);
2084
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));
@@ -2131,6 +2145,10 @@
2131
2145
  }
2132
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));
2133
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
+ }
2134
2152
  .to-fuchsia-500 {
2135
2153
  --tw-gradient-to: var(--color-fuchsia-500);
2136
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));
@@ -2612,6 +2630,10 @@
2612
2630
  font-size: var(--text-3xl);
2613
2631
  line-height: var(--tw-leading, var(--text-3xl--line-height));
2614
2632
  }
2633
+ .text-4xl {
2634
+ font-size: var(--text-4xl);
2635
+ line-height: var(--tw-leading, var(--text-4xl--line-height));
2636
+ }
2615
2637
  .text-5xl\! {
2616
2638
  font-size: var(--text-5xl) !important;
2617
2639
  line-height: var(--tw-leading, var(--text-5xl--line-height)) !important;
@@ -2741,6 +2763,10 @@
2741
2763
  --tw-font-weight: var(--font-weight-extrabold);
2742
2764
  font-weight: var(--font-weight-extrabold);
2743
2765
  }
2766
+ .font-light {
2767
+ --tw-font-weight: var(--font-weight-light);
2768
+ font-weight: var(--font-weight-light);
2769
+ }
2744
2770
  .font-medium {
2745
2771
  --tw-font-weight: var(--font-weight-medium);
2746
2772
  font-weight: var(--font-weight-medium);
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './ChatBubble';
11
11
  export * from './ChatSuggestions';
12
12
  export * from './MessageStatus';
13
13
  export * from './useAgUi';
14
+ export * from './ComponentCatalog';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  console.error("vite-plugin-css-injected-by-js", e);
11
11
  }
12
12
  })();
13
- import { A, b, C, c, d, e, f, g, h, i, j, k, F, M, l, m, n, o, p, q, r, s, t, u, N, R, v, w, x, y, z, B, D, E, G, H, T, I, J, K, L, O, P, Q, U, V, W, X, Y, Z, _, $, a0, a1, a2 } from "./index-DdRyk11n.js";
13
+ import { A, b, C, c, d, e, f, g, h, i, j, k, F, M, l, m, n, o, p, q, r, s, t, u, N, R, v, w, x, y, z, B, D, E, G, H, T, I, J, K, L, O, P, Q, U, V, W, X, Y, Z, _, $, a0, a1, a2 } from "./index-8tlsyFe-.js";
14
14
  import "react/jsx-runtime";
15
15
  import "react";
16
16
  import "reablocks";
@@ -18,16 +18,16 @@ import "motion/react";
18
18
  export {
19
19
  A as AgUiEventType,
20
20
  b as AppBar,
21
- C as ChartError,
22
- c as ChartPre,
23
- d as ChartRenderer,
24
- e as Chat,
25
- f as ChatBubble,
26
- g as ChatContext,
27
- h as ChatInput,
28
- i as ChatSuggestion,
29
- j as ChatSuggestions,
30
- k as CodeHighlighter,
21
+ C as ChartRenderer,
22
+ c as Chat,
23
+ d as ChatBubble,
24
+ e as ChatContext,
25
+ f as ChatInput,
26
+ g as ChatSuggestion,
27
+ h as ChatSuggestions,
28
+ i as CodeHighlighter,
29
+ j as ComponentError,
30
+ k as ComponentRenderer,
31
31
  F as FileInput,
32
32
  M as Markdown,
33
33
  l as MentionList,
@@ -56,20 +56,20 @@ export {
56
56
  I as TableDataCell,
57
57
  J as TableHeaderCell,
58
58
  K as bitcoinMatcher,
59
- L as chartComponents,
60
- O as chatTheme,
61
- P as commonRedactMatchers,
62
- Q as creditCardMatcher,
63
- U as dark,
64
- V as getChildText,
65
- W as isChartClassName,
66
- X as light,
67
- Y as parseChartConfig,
68
- Z as remarkChart,
59
+ L as chatTheme,
60
+ O as commonRedactMatchers,
61
+ P as componentCatalog,
62
+ Q as createChartComponentDef,
63
+ U as createComponentPre,
64
+ V as creditCardMatcher,
65
+ W as dark,
66
+ X as generatePrompt,
67
+ Y as light,
68
+ Z as remarkComponent,
69
69
  _ as remarkCve,
70
70
  $ as remarkRedact,
71
71
  a0 as ssnMatcher,
72
72
  a1 as useAgUi,
73
- a2 as validateChartData
73
+ a2 as validateSpec
74
74
  };
75
75
  //# sourceMappingURL=index.js.map