@streamoid/agent 0.6.37 → 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 +56 -42
- 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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamoid/agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.38",
|
|
4
4
|
"description": "Native (no-iframe) embeddable Streamoid agent chat panel. Host renders <AgentPanel adapters={\u2026}/>. Prebuilt bundle \u2014 source + build live in the stream-agent repo.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|