@streamoid/agent 0.6.36 → 0.6.38
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.js +58 -44
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68862,48 +68862,62 @@ function DynamicForm(e) {
|
|
|
68862
68862
|
]
|
|
68863
68863
|
}
|
|
68864
68864
|
)
|
|
68865
|
-
] })
|
|
68866
|
-
|
|
68867
|
-
|
|
68868
|
-
|
|
68869
|
-
|
|
68870
|
-
|
|
68871
|
-
|
|
68872
|
-
|
|
68873
|
-
|
|
68874
|
-
|
|
68875
|
-
|
|
68876
|
-
|
|
68877
|
-
|
|
68878
|
-
|
|
68879
|
-
|
|
68880
|
-
|
|
68881
|
-
|
|
68882
|
-
|
|
68883
|
-
|
|
68884
|
-
|
|
68885
|
-
|
|
68886
|
-
),
|
|
68887
|
-
|
|
68888
|
-
|
|
68889
|
-
|
|
68890
|
-
|
|
68891
|
-
|
|
68892
|
-
|
|
68893
|
-
|
|
68894
|
-
|
|
68895
|
-
|
|
68896
|
-
|
|
68897
|
-
|
|
68898
|
-
|
|
68899
|
-
|
|
68900
|
-
|
|
68901
|
-
|
|
68902
|
-
|
|
68903
|
-
|
|
68904
|
-
|
|
68905
|
-
|
|
68906
|
-
|
|
68865
|
+
] });
|
|
68866
|
+
useEffect(() => {
|
|
68867
|
+
if (!ct) return;
|
|
68868
|
+
const wt = (Pt) => {
|
|
68869
|
+
Pt.key === "Escape" && We(null);
|
|
68870
|
+
};
|
|
68871
|
+
return document.addEventListener("keydown", wt), () => document.removeEventListener("keydown", wt);
|
|
68872
|
+
}, [ct]);
|
|
68873
|
+
const Ft = ct && typeof document < "u" && createPortal(
|
|
68874
|
+
/* @__PURE__ */ jsx(
|
|
68875
|
+
"div",
|
|
68876
|
+
{
|
|
68877
|
+
className: "sa-surface fixed inset-0 z-[120] bg-black/80 flex items-center justify-center p-4",
|
|
68878
|
+
role: "dialog",
|
|
68879
|
+
"aria-modal": "true",
|
|
68880
|
+
"aria-label": "Media preview",
|
|
68881
|
+
onClick: () => We(null),
|
|
68882
|
+
children: /* @__PURE__ */ jsxs(
|
|
68883
|
+
"div",
|
|
68884
|
+
{
|
|
68885
|
+
className: "relative w-full max-w-5xl max-h-[90vh] bg-background rounded-lg border border-border overflow-hidden",
|
|
68886
|
+
onClick: (wt) => wt.stopPropagation(),
|
|
68887
|
+
children: [
|
|
68888
|
+
/* @__PURE__ */ jsx(
|
|
68889
|
+
Button$2,
|
|
68890
|
+
{
|
|
68891
|
+
type: "button",
|
|
68892
|
+
variant: "ghost",
|
|
68893
|
+
size: "sm",
|
|
68894
|
+
onClick: () => We(null),
|
|
68895
|
+
className: "absolute right-2 top-2 z-10 bg-background/80 hover:bg-background",
|
|
68896
|
+
children: /* @__PURE__ */ jsx(X$3, { className: "w-4 h-4" })
|
|
68897
|
+
}
|
|
68898
|
+
),
|
|
68899
|
+
/* @__PURE__ */ jsx("div", { className: "w-full h-full p-2 flex items-center justify-center", children: ct.type === "video" ? /* @__PURE__ */ jsx(
|
|
68900
|
+
"video",
|
|
68901
|
+
{
|
|
68902
|
+
src: ct.url,
|
|
68903
|
+
controls: !0,
|
|
68904
|
+
autoPlay: !0,
|
|
68905
|
+
className: "max-w-full max-h-[84vh] object-contain bg-black rounded"
|
|
68906
|
+
}
|
|
68907
|
+
) : /* @__PURE__ */ jsx(
|
|
68908
|
+
"img",
|
|
68909
|
+
{
|
|
68910
|
+
src: ct.url,
|
|
68911
|
+
alt: "Full preview",
|
|
68912
|
+
className: "max-w-full max-h-[84vh] object-contain rounded"
|
|
68913
|
+
}
|
|
68914
|
+
) })
|
|
68915
|
+
]
|
|
68916
|
+
}
|
|
68917
|
+
)
|
|
68918
|
+
}
|
|
68919
|
+
),
|
|
68920
|
+
document.body
|
|
68907
68921
|
);
|
|
68908
68922
|
return R ? /* @__PURE__ */ jsxs(
|
|
68909
68923
|
"div",
|
|
@@ -130776,12 +130790,12 @@ function QuickPrompt({
|
|
|
130776
130790
|
"aria-describedby": s ? b : void 0,
|
|
130777
130791
|
onClick: () => c?.(h),
|
|
130778
130792
|
onKeyDown: R,
|
|
130779
|
-
className: `${CARD_CHROME} min-h-[64px] items-start justify-start
|
|
130793
|
+
className: `${CARD_CHROME} sa-suggestion-card min-h-[64px] items-start justify-start px-[14px] py-[12px] ${s ? "" : f}`,
|
|
130780
130794
|
children: /* @__PURE__ */ jsx("div", { "data-id": "suggested-card-body", className: "flex w-full flex-col items-start gap-[4px]", children: /* @__PURE__ */ jsx(
|
|
130781
130795
|
"p",
|
|
130782
130796
|
{
|
|
130783
130797
|
"data-id": "suggested-card-label",
|
|
130784
|
-
className: "w-full break-words text-left text-[14px] font-normal leading-[20px]
|
|
130798
|
+
className: "sa-suggestion-label w-full break-words text-left text-[14px] font-normal leading-[20px]",
|
|
130785
130799
|
children: g
|
|
130786
130800
|
}
|
|
130787
130801
|
) })
|