@athenaintel/react 0.13.0 → 0.15.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 (62) hide show
  1. package/dist/chat/ComposerEditorContext.d.ts +6 -0
  2. package/dist/chat-ui/auth/sign-in-card.d.ts +57 -0
  3. package/dist/chat-ui/composer/composer-action.d.ts +12 -0
  4. package/dist/chat-ui/composer/pending-attachment-uploads.d.ts +5 -0
  5. package/dist/chat-ui/composer/tiptap-composer.d.ts +35 -0
  6. package/dist/chat-ui/index.d.ts +34 -0
  7. package/dist/chat-ui/lib/asset-urls.d.ts +6 -0
  8. package/dist/chat-ui/mentions/mention-chip.d.ts +38 -0
  9. package/dist/chat-ui/mentions/mention-extension.d.ts +35 -0
  10. package/dist/chat-ui/mentions/suggestions/components/get-scope-name.d.ts +15 -0
  11. package/dist/chat-ui/mentions/suggestions/components/mention-icon.d.ts +10 -0
  12. package/dist/chat-ui/mentions/suggestions/components/mention-suggestion-list.d.ts +22 -0
  13. package/dist/chat-ui/mentions/suggestions/components/mention-suggestion-popup.d.ts +9 -0
  14. package/dist/chat-ui/mentions/suggestions/components/menu-breadcrumbs.d.ts +10 -0
  15. package/dist/chat-ui/mentions/suggestions/components/menu-item.d.ts +12 -0
  16. package/dist/chat-ui/mentions/suggestions/components/menu-list.d.ts +13 -0
  17. package/dist/chat-ui/mentions/suggestions/components/menu-skeleton.d.ts +4 -0
  18. package/dist/chat-ui/mentions/suggestions/components/menu-summary.d.ts +13 -0
  19. package/dist/chat-ui/mentions/suggestions/components/use-keyboard-navigation.d.ts +19 -0
  20. package/dist/chat-ui/mentions/suggestions/components/use-menu-navigation.d.ts +64 -0
  21. package/dist/chat-ui/mentions/suggestions/components/utils.d.ts +8 -0
  22. package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +41 -0
  23. package/dist/chat-ui/mentions/suggestions/data/item-cache.d.ts +76 -0
  24. package/dist/chat-ui/mentions/suggestions/data/orchestrator.d.ts +29 -0
  25. package/dist/chat-ui/mentions/suggestions/data/scope-registry.d.ts +105 -0
  26. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.d.ts +25 -0
  27. package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +59 -0
  28. package/dist/chat-ui/mentions/suggestions/data/types.d.ts +156 -0
  29. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +37 -0
  30. package/dist/chat-ui/mentions/suggestions/data/use-menu-items.d.ts +34 -0
  31. package/dist/chat-ui/mentions/suggestions/data/utils/filter-items.d.ts +13 -0
  32. package/dist/chat-ui/mentions/suggestions/data/utils/match-query.d.ts +5 -0
  33. package/dist/chat-ui/mentions/suggestions/data/utils/score-match.d.ts +5 -0
  34. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.d.ts +25 -0
  35. package/dist/chat-ui/mentions/suggestions/shims.d.ts +19 -0
  36. package/dist/chat-ui/messages/message-components.d.ts +58 -0
  37. package/dist/chat-ui/messages/running-indicator.d.ts +10 -0
  38. package/dist/chat-ui/thread/chat-composer-dock.d.ts +34 -0
  39. package/dist/chat-ui/thread/chat-thread-shell.d.ts +97 -0
  40. package/dist/chat-ui/thread/composer-send-or-stop.d.ts +67 -0
  41. package/dist/chat-ui.cjs +2084 -0
  42. package/dist/chat-ui.cjs.map +1 -0
  43. package/dist/chat-ui.js +2085 -0
  44. package/dist/chat-ui.js.map +1 -0
  45. package/dist/composer-send-or-stop-C5AVmcwO.js +32733 -0
  46. package/dist/composer-send-or-stop-C5AVmcwO.js.map +1 -0
  47. package/dist/composer-send-or-stop-RPudYkWR.cjs +32748 -0
  48. package/dist/composer-send-or-stop-RPudYkWR.cjs.map +1 -0
  49. package/dist/index.cjs +8968 -36580
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.js +8485 -36097
  52. package/dist/index.js.map +1 -1
  53. package/dist/mentions/mention-suggestion-list.d.ts +1 -1
  54. package/dist/mentions/use-mention-suggestions.d.ts +3 -2
  55. package/dist/styles.css +1 -1
  56. package/dist/threads/api.d.ts +1 -0
  57. package/dist/threads/conversation-list-fetcher.d.ts +40 -0
  58. package/package.json +17 -5
  59. package/src/chat-ui/styles/theme.css +30 -0
  60. package/src/chat-ui/tailwind-preset.js +57 -0
  61. package/dist/mentions/scope-registry.d.ts +0 -21
  62. package/dist/mentions/types.d.ts +0 -39
@@ -0,0 +1,57 @@
1
+ import typography from "@tailwindcss/typography";
2
+
3
+ /**
4
+ * Tailwind preset for Athena chat surfaces. Colors resolve against the CSS
5
+ * variables in src/styles/theme.css, which hosts must import.
6
+ *
7
+ * @type {import('tailwindcss').Config}
8
+ */
9
+ export default {
10
+ content: [],
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ background: "hsl(var(--background))",
15
+ foreground: "hsl(var(--foreground))",
16
+ muted: {
17
+ DEFAULT: "hsl(var(--muted))",
18
+ foreground: "hsl(var(--muted-foreground))",
19
+ },
20
+ primary: {
21
+ DEFAULT: "hsl(var(--primary))",
22
+ foreground: "hsl(var(--primary-foreground))",
23
+ },
24
+ accent: {
25
+ DEFAULT: "hsl(var(--accent))",
26
+ foreground: "hsl(var(--accent-foreground))",
27
+ },
28
+ destructive: {
29
+ DEFAULT: "hsl(var(--destructive))",
30
+ foreground: "hsl(var(--destructive-foreground))",
31
+ },
32
+ border: "hsl(var(--border))",
33
+ ring: "hsl(var(--ring))",
34
+ popover: {
35
+ DEFAULT: "hsl(var(--popover))",
36
+ foreground: "hsl(var(--popover-foreground))",
37
+ },
38
+ },
39
+ // Drives the shared thinking indicator (same keyframes as Olympus).
40
+ keyframes: {
41
+ "shimmer-ltr": {
42
+ "0%": { backgroundPosition: "200%" },
43
+ "100%": { backgroundPosition: "-200%" },
44
+ },
45
+ },
46
+ animation: {
47
+ "shimmer-ltr": "shimmer-ltr 2.5s infinite linear",
48
+ },
49
+ borderRadius: {
50
+ lg: "var(--radius)",
51
+ md: "calc(var(--radius) - 2px)",
52
+ sm: "calc(var(--radius) - 4px)",
53
+ },
54
+ },
55
+ },
56
+ plugins: [typography],
57
+ };
@@ -1,21 +0,0 @@
1
- import type { FetchState, MenuItem, MenuScope, SourceFn } from "./types";
2
- export interface ScopeRegistryEntry {
3
- sourceFn: SourceFn;
4
- fetchStates: Map<string, FetchState>;
5
- }
6
- export interface ScopeRegistry {
7
- entries: Map<MenuScope, ScopeRegistryEntry>;
8
- }
9
- export declare function createScopeRegistry(): ScopeRegistry;
10
- export declare function registerSource(registry: ScopeRegistry, scope: MenuScope, sourceFn: SourceFn): void;
11
- export declare function getEntry(registry: ScopeRegistry, scope: MenuScope): ScopeRegistryEntry | undefined;
12
- export declare function getFetchState(registry: ScopeRegistry, scope: MenuScope, query: string): FetchState | undefined;
13
- export declare function updateFetchState(registry: ScopeRegistry, scope: MenuScope, query: string, state: FetchState): void;
14
- /** Item cache: deduplicates items by ID, tracks scope membership */
15
- export interface ItemCache {
16
- items: Map<string, MenuItem>;
17
- }
18
- export declare function createItemCache(): ItemCache;
19
- export declare function addItems(cache: ItemCache, items: MenuItem[], scope: MenuScope): void;
20
- export declare function getFilteredItems(cache: ItemCache, scope: MenuScope, query: string): MenuItem[];
21
- export declare function clearScope(cache: ItemCache, scope: MenuScope): void;
@@ -1,39 +0,0 @@
1
- /**
2
- * Core types for mention suggestions data layer
3
- * Simplified from Olympus — only Tool and Toolkit types
4
- */
5
- export type MenuScope = string;
6
- export interface MenuItem {
7
- id: string;
8
- name: string;
9
- type: "menu" | "tool" | "toolkit";
10
- fallbackIcon: string;
11
- description?: string;
12
- visibleInScopes: Set<MenuScope>;
13
- navigatesToScope?: MenuScope;
14
- isNavigationOnly?: boolean;
15
- }
16
- export interface MenuItemsSelector {
17
- items: MenuItem[];
18
- isFetching: boolean;
19
- hasMore: boolean;
20
- }
21
- export interface FetchState {
22
- isFetching: boolean;
23
- hasNextPage: boolean;
24
- error: Error | null;
25
- meta: unknown;
26
- }
27
- export interface SourceResult {
28
- items: MenuItem[];
29
- pagination?: {
30
- hasMore: boolean;
31
- totalCount?: number;
32
- };
33
- }
34
- export interface SourceContext {
35
- scope: MenuScope;
36
- query: string;
37
- fetchState: FetchState;
38
- }
39
- export type SourceFn = (context: SourceContext) => Promise<SourceResult>;