@streamoid/agent 0.6.12 → 0.6.13
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -130937,7 +130937,7 @@ function extensionFor(e) {
|
|
|
130937
130937
|
}
|
|
130938
130938
|
function sampleUrl(e, t) {
|
|
130939
130939
|
const n = t.path || t.url;
|
|
130940
|
-
return /^https?:\/\//i.test(n) ? n :
|
|
130940
|
+
return /^https?:\/\//i.test(n) ? n : e(n.startsWith("/") ? n : `/${n}`);
|
|
130941
130941
|
}
|
|
130942
130942
|
async function fetchSampleFiles(e, t, n = ((o) => fetch(o))) {
|
|
130943
130943
|
const o = [];
|
|
@@ -135149,7 +135149,7 @@ function ChatScreen() {
|
|
|
135149
135149
|
}, [_t, Xt, st, Dl]);
|
|
135150
135150
|
const Uu = useCallback(
|
|
135151
135151
|
async (jt) => {
|
|
135152
|
-
const Yt = await fetchSampleFiles(jt,
|
|
135152
|
+
const Yt = await fetchSampleFiles(jt, apiUrl);
|
|
135153
135153
|
if (Yt === null) {
|
|
135154
135154
|
$n(jt.map((tn) => tn.url));
|
|
135155
135155
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamoid/agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
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",
|