research-agent-ui 0.1.58 → 0.1.59
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.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./config.cjs");let n=require("react");n=e.t(n,1);let r=require("next/navigation"),i=require("clsx"),a=require("tailwind-merge"),o=require("markdown-to-jsx");o=e.t(o,1);let s=require("lucide-react");s=e.t(s,1);let c=require("qwksearch-api-client"),l=require("extract-webpage/html-to-content/html-utils"),u=require("motion/react"),d=require("react/jsx-runtime"),f=require("grab-url");f=e.t(f,1);let p=require("
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./config.cjs");let n=require("react");n=e.t(n,1);let r=require("next/navigation"),i=require("clsx"),a=require("tailwind-merge"),o=require("markdown-to-jsx");o=e.t(o,1);let s=require("lucide-react");s=e.t(s,1);let c=require("qwksearch-api-client"),l=require("extract-webpage/html-to-content/html-utils"),u=require("motion/react"),d=require("react/jsx-runtime"),f=require("grab-url");f=e.t(f,1);let p=require("kokoro-js"),m=require("sonner"),h=require("@radix-ui/react-tooltip");h=e.t(h,1);let g=require("@radix-ui/react-dropdown-menu");g=e.t(g,1);let _=require("@radix-ui/react-popover");_=e.t(_,1);let v=require("html2canvas");v=e.t(v,1);let y=require("turndown");y=e.t(y,1);let b=require("@radix-ui/react-slot"),x=require("class-variance-authority"),S=require("quantum-sphere-loading-icon/react");S=e.t(S,1);let C=require("@radix-ui/react-dialog");C=e.t(C,1);let w=require("dompurify");w=e.t(w,1);let T=require("next/link");T=e.t(T,1);let E=require("streamdown");function D(...e){return(0,a.twMerge)((0,i.clsx)(e))}var O=(e,t)=>{e=new Date(e),t=new Date(t);let n=Math.floor(Math.abs(t.getTime()-e.getTime())/1e3);return n<60?`${n} second${n===1?``:`s`}`:n<3600?`${Math.floor(n/60)} minute${Math.floor(n/60)===1?``:`s`}`:n<86400?`${Math.floor(n/3600)} hour${Math.floor(n/3600)===1?``:`s`}`:n<31536e3?`${Math.floor(n/86400)} day${Math.floor(n/86400)===1?``:`s`}`:`${Math.floor(n/31536e3)} year${Math.floor(n/31536e3)===1?``:`s`}`},k=(0,n.memo)(({blur:e=0,inactiveZone:t=.7,proximity:r=0,spread:i=20,variant:a=`default`,glow:o=!1,className:s,movementDuration:c=2,borderWidth:l=1,disabled:f=!0})=>{let p=(0,n.useRef)(null),m=(0,n.useRef)({x:0,y:0}),h=(0,n.useRef)(0),g=(0,n.useCallback)(e=>{p.current&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{let n=p.current;if(!n)return;let{left:i,top:a,width:o,height:s}=n.getBoundingClientRect(),l=e?.x??m.current.x,d=e?.y??m.current.y;e&&(m.current={x:l,y:d});let f=[i+o*.5,a+s*.5];if(Math.hypot(l-f[0],d-f[1])<.5*Math.min(o,s)*t){n.style.setProperty(`--active`,`0`);return}let h=l>i-r&&l<i+o+r&&d>a-r&&d<a+s+r;if(n.style.setProperty(`--active`,h?`1`:`0`),!h)return;let g=parseFloat(n.style.getPropertyValue(`--start`))||0;(0,u.animate)(g,g+((180*Math.atan2(d-f[1],l-f[0])/Math.PI+90-g+180)%360-180),{duration:c,ease:[.16,1,.3,1],onUpdate:e=>{n.style.setProperty(`--start`,String(e))}})}))},[t,r,c]);return(0,n.useEffect)(()=>{if(f)return;let e=()=>g(),t=e=>g(e);return window.addEventListener(`scroll`,e,{passive:!0}),document.body.addEventListener(`pointermove`,t,{passive:!0}),()=>{h.current&&cancelAnimationFrame(h.current),window.removeEventListener(`scroll`,e),document.body.removeEventListener(`pointermove`,t)}},[g,f]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:D(`pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 transition-opacity`,o&&`opacity-100`,a===`white`&&`border-white`,f&&`!block`)}),(0,d.jsx)(`div`,{ref:p,style:{"--blur":`${e}px`,"--spread":i,"--start":`0`,"--active":`0`,"--glowingeffect-border-width":`${l}px`,"--repeating-conic-gradient-times":`5`,"--gradient":a===`white`?`repeating-conic-gradient(
|
|
2
2
|
from 236.84deg at 50% 50%,
|
|
3
3
|
var(--black),
|
|
4
4
|
var(--black) calc(25% / var(--repeating-conic-gradient-times))
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { convertURLSafeHTMLToHTML as ot } from "extract-webpage/html-to-content/
|
|
|
14
14
|
import { AnimatePresence as st, animate as ct, motion as lt } from "motion/react";
|
|
15
15
|
import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
16
16
|
import ut from "grab-url";
|
|
17
|
-
import { KokoroTTS as dt } from "
|
|
17
|
+
import { KokoroTTS as dt } from "kokoro-js";
|
|
18
18
|
import { toast as K } from "sonner";
|
|
19
19
|
import * as ft from "@radix-ui/react-tooltip";
|
|
20
20
|
import * as q from "@radix-ui/react-dropdown-menu";
|
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.
|
|
4
|
+
"version": "0.1.59",
|
|
5
5
|
"author": "vtempest",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
"@radix-ui/react-slot": "^1.2.5",
|
|
64
64
|
"@radix-ui/react-tooltip": "^1.2.9",
|
|
65
65
|
"@ricky0123/vad-web": "^0.0.30",
|
|
66
|
-
"chat-agent-toolkit": "^1.2.
|
|
67
|
-
"domain-rank": "^0.1.
|
|
66
|
+
"chat-agent-toolkit": "^1.2.81",
|
|
67
|
+
"domain-rank": "^0.1.70",
|
|
68
68
|
"drizzle-orm": "^0.45.2",
|
|
69
69
|
"fuse.js": "^7.1.0",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
72
|
"dompurify": "^3.4.9",
|
|
73
|
-
"extract-webpage": "^1.2.
|
|
74
|
-
"search-web-api": "^1.0.
|
|
73
|
+
"extract-webpage": "^1.2.82",
|
|
74
|
+
"search-web-api": "^1.0.41",
|
|
75
75
|
"framer-motion": "^12.40.0",
|
|
76
76
|
"grab-url": "^1.6.22",
|
|
77
77
|
"kokoro-js": "^1.2.1",
|
|
78
|
-
"qwksearch-api-client": "^0.9.
|
|
78
|
+
"qwksearch-api-client": "^0.9.30",
|
|
79
79
|
"html2canvas": "^1.4.1",
|
|
80
80
|
"lucide-react": "^1.17.0",
|
|
81
81
|
"markdown-to-jsx": "^9.8.2",
|