research-agent-ui 0.1.85 → 0.1.87

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 (27) hide show
  1. package/dist/components/ArticleReader/ArticleAIResponse.stories.d.ts +13 -0
  2. package/dist/components/ArticleReader/ArticleActionButtons.d.ts +58 -0
  3. package/dist/components/ArticleReader/ArticleActionButtons.stories.d.ts +21 -0
  4. package/dist/components/ArticleReader/ArticleFollowupQuestions.stories.d.ts +14 -0
  5. package/dist/components/ArticleReader/ArticlePanelHeader.stories.d.ts +10 -0
  6. package/dist/components/ArticleReader/ArticlePromptInput.stories.d.ts +13 -0
  7. package/dist/components/ArticleReader/index.d.ts +1 -0
  8. package/dist/components/ChatConversation/MessageBubble/ThinkTagProcessor.stories.d.ts +12 -0
  9. package/dist/components/ChatConversation/MessageReasoningPanel.stories.d.ts +14 -0
  10. package/dist/components/ChatHistoryDropdown/HistoryChatItem.stories.d.ts +9 -0
  11. package/dist/components/ConfigError.stories.d.ts +10 -0
  12. package/dist/components/Footer.stories.d.ts +13 -0
  13. package/dist/components/MessageActions/CopyMessageButton.stories.d.ts +11 -0
  14. package/dist/components/SearchResults/WebCitationBadge.stories.d.ts +15 -0
  15. package/dist/index.cjs +13 -13
  16. package/dist/index.mjs +1463 -1336
  17. package/dist/ui/Loader.stories.d.ts +15 -0
  18. package/dist/ui/badge.stories.d.ts +21 -0
  19. package/dist/ui/button.stories.d.ts +25 -0
  20. package/dist/ui/dialog.stories.d.ts +12 -0
  21. package/dist/ui/dropdown-menu.stories.d.ts +10 -0
  22. package/dist/ui/glowing-effect.stories.d.ts +13 -0
  23. package/dist/ui/live-waveform.stories.d.ts +15 -0
  24. package/dist/ui/popover.stories.d.ts +10 -0
  25. package/dist/ui/tooltip.stories.d.ts +15 -0
  26. package/dist/ui/visually-hidden.stories.d.ts +17 -0
  27. package/package.json +6 -6
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import Loader from './Loader';
3
+ /**
4
+ * `Loader` is the spinning SVG used as an inline loading indicator. It inherits
5
+ * its color from the surrounding text (`text-*`) and its size from `w-*`/`h-*`
6
+ * utility classes on a wrapper.
7
+ */
8
+ declare const meta: Meta<typeof Loader>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof Loader>;
11
+ export declare const Default: Story;
12
+ /** Recolored via a wrapper's text color. */
13
+ export declare const Colored: Story;
14
+ /** In context next to a label. */
15
+ export declare const WithLabel: Story;
@@ -0,0 +1,21 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Badge } from './badge';
3
+ /**
4
+ * `Badge` is a small inline label used for statuses, tags, and callouts
5
+ * ("New", "Beta", counts). It supports several color variants and can render
6
+ * `asChild` (e.g. as a link).
7
+ */
8
+ declare const meta: Meta<typeof Badge>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof Badge>;
11
+ export declare const Default: Story;
12
+ export declare const Secondary: Story;
13
+ export declare const Destructive: Story;
14
+ export declare const Outline: Story;
15
+ export declare const New: Story;
16
+ export declare const Beta: Story;
17
+ export declare const Highlight: Story;
18
+ /** Badge with a leading icon. */
19
+ export declare const WithIcon: Story;
20
+ /** All variants together. */
21
+ export declare const AllVariants: Story;
@@ -0,0 +1,25 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Button } from './button';
3
+ /**
4
+ * `Button` is the shadcn/Radix button primitive used across the UI. It supports
5
+ * six visual `variant`s and four `size`s, and can render `asChild` to project
6
+ * its styles onto a custom element (e.g. an anchor).
7
+ */
8
+ declare const meta: Meta<typeof Button>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof Button>;
11
+ export declare const Default: Story;
12
+ export declare const Secondary: Story;
13
+ export declare const Destructive: Story;
14
+ export declare const Outline: Story;
15
+ export declare const Ghost: Story;
16
+ export declare const Link: Story;
17
+ export declare const Disabled: Story;
18
+ /** Icon-only button (square). */
19
+ export declare const Icon: Story;
20
+ /** Icon + label. */
21
+ export declare const WithIcon: Story;
22
+ /** Every variant side by side. */
23
+ export declare const AllVariants: Story;
24
+ /** Every size side by side. */
25
+ export declare const AllSizes: Story;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Dialog } from './dialog';
3
+ /**
4
+ * `Dialog` (Radix) is the modal used for confirmations and settings. Compose it
5
+ * from `DialogTrigger`, `DialogContent`, and the header/footer helpers.
6
+ */
7
+ declare const meta: Meta<typeof Dialog>;
8
+ export default meta;
9
+ type Story = StoryObj<typeof Dialog>;
10
+ export declare const Default: Story;
11
+ /** Destructive confirmation flow. */
12
+ export declare const Destructive: Story;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { DropdownMenu } from './dropdown-menu';
3
+ /**
4
+ * `DropdownMenu` (Radix) is the popover action menu used for message actions,
5
+ * chat history items, and model selection.
6
+ */
7
+ declare const meta: Meta<typeof DropdownMenu>;
8
+ export default meta;
9
+ type Story = StoryObj<typeof DropdownMenu>;
10
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { GlowingEffect } from './glowing-effect';
3
+ /**
4
+ * `GlowingEffect` paints an animated conic-gradient border that tracks the
5
+ * pointer. It positions itself absolutely, so it must live inside a
6
+ * `relative`, rounded container. Set `disabled={false}` and `glow` to see the
7
+ * pointer-reactive glow.
8
+ */
9
+ declare const meta: Meta<typeof GlowingEffect>;
10
+ export default meta;
11
+ type Story = StoryObj<typeof GlowingEffect>;
12
+ /** Move the pointer near the card to activate the glow. */
13
+ export declare const OnCard: Story;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { LiveWaveform } from './live-waveform';
3
+ /**
4
+ * `LiveWaveform` renders an animated audio bar visualizer on a canvas. The
5
+ * `processing` mode animates a synthetic wave with no microphone access, so it
6
+ * is safe to demo in Storybook. The `active` mode requests microphone
7
+ * permission at runtime and is not exercised here.
8
+ */
9
+ declare const meta: Meta<typeof LiveWaveform>;
10
+ export default meta;
11
+ type Story = StoryObj<typeof LiveWaveform>;
12
+ /** Synthetic "thinking" animation — no mic required. */
13
+ export declare const Processing: Story;
14
+ /** Idle: nothing is drawn until `active` or `processing` is set. */
15
+ export declare const Idle: Story;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Popover } from './popover';
3
+ /**
4
+ * `Popover` (Radix) is the floating panel used for lightweight menus and
5
+ * inline settings that don't warrant a full modal.
6
+ */
7
+ declare const meta: Meta<typeof Popover>;
8
+ export default meta;
9
+ type Story = StoryObj<typeof Popover>;
10
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Tooltip } from './tooltip';
3
+ /**
4
+ * `Tooltip` (Radix) shows a short hint on hover/focus. The library default
5
+ * `delayDuration` is `0`, so tips appear immediately. Wrap a trigger with
6
+ * `TooltipTrigger asChild` to keep your own element as the anchor.
7
+ */
8
+ declare const meta: Meta<typeof Tooltip>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof Tooltip>;
11
+ export declare const OnButton: Story;
12
+ /** Tooltip with a keyboard-shortcut hint, mirroring the article toolbar. */
13
+ export declare const WithShortcut: Story;
14
+ /** Placement on all four sides. */
15
+ export declare const Sides: Story;
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { VisuallyHidden } from './visually-hidden';
3
+ /**
4
+ * `VisuallyHidden` hides content visually while keeping it available to screen
5
+ * readers. Use it to give icon-only controls an accessible name, or to label a
6
+ * dialog whose title is not shown.
7
+ */
8
+ declare const meta: Meta<typeof VisuallyHidden>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof VisuallyHidden>;
11
+ /**
12
+ * The icon button has no visible text, but screen readers announce
13
+ * "Close panel" from the visually-hidden label.
14
+ */
15
+ export declare const AccessibleIconButton: Story;
16
+ /** The text is present in the DOM (and read aloud) but not painted. */
17
+ export declare const HiddenText: Story;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "research-agent-ui",
3
3
  "description": "Chat research agent UI: conversation window, article reader, search config, file uploads, and chat history",
4
- "version": "0.1.85",
4
+ "version": "0.1.87",
5
5
  "author": "vtempest",
6
6
  "repository": {
7
7
  "type": "git",
@@ -66,19 +66,19 @@
66
66
  "@radix-ui/react-tooltip": "^1.2.9",
67
67
  "@ricky0123/vad-web": "^0.0.30",
68
68
  "ai": "^5.0.0",
69
- "chat-agent-toolkit": "^1.2.109",
70
- "domain-rank": "^0.1.98",
69
+ "chat-agent-toolkit": "^1.2.111",
70
+ "domain-rank": "^0.1.100",
71
71
  "drizzle-orm": "^0.45.2",
72
72
  "fuse.js": "^7.1.0",
73
73
  "class-variance-authority": "^0.7.1",
74
74
  "clsx": "^2.1.1",
75
75
  "dompurify": "^3.4.9",
76
- "extract-webpage": "^1.2.109",
77
- "search-web-api": "^1.0.67",
76
+ "extract-webpage": "^1.2.111",
77
+ "search-web-api": "^1.0.69",
78
78
  "framer-motion": "^12.40.0",
79
79
  "grab-url": "^1.6.22",
80
80
  "kokoro-js": "^1.2.1",
81
- "qwksearch-api-client": "^0.9.56",
81
+ "qwksearch-api-client": "^0.9.58",
82
82
  "html2canvas": "^1.4.1",
83
83
  "lucide-react": "^1.17.0",
84
84
  "markdown-to-jsx": "^9.8.2",