@inkeep/agents-ui-cloud 0.15.29 → 0.15.30
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@inkeep/agents-ui"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@inkeep/agents-ui"),l=require("../default-settings.cjs"),d=require("./use-user-properties.cjs"),g=require("../utils/transform-source/index.cjs"),S=i=>{const s=o.mergeProps(l.defaultInkeepBaseSettings,i??{}),a=d.useUserProperties(s),{analyticsApiBaseUrl:m,transformSource:u}=s,c={userProperties:a,async onEvent(e){["modal_opened","modal_closed"].includes(e.eventName)},transformSource(e,t,r){const n=g.transformInkeepSource?.(e,t,r)??e;return u?.(n,t,r)??n}};return o.mergeProps(s,c)};exports.useBaseSettings=S;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { mergeProps as
|
|
2
|
+
import { mergeProps as n } from "@inkeep/agents-ui";
|
|
3
3
|
import { defaultInkeepBaseSettings as c } from "../default-settings.js";
|
|
4
4
|
import { useUserProperties as p } from "./use-user-properties.js";
|
|
5
5
|
import { transformInkeepSource as u } from "../utils/transform-source/index.js";
|
|
6
|
-
const
|
|
7
|
-
const r =
|
|
6
|
+
const k = (a) => {
|
|
7
|
+
const r = n(
|
|
8
8
|
c,
|
|
9
9
|
a ?? {}
|
|
10
10
|
), i = p(r), {
|
|
@@ -13,24 +13,20 @@ const B = (a) => {
|
|
|
13
13
|
// env,
|
|
14
14
|
transformSource: m
|
|
15
15
|
} = r;
|
|
16
|
-
return
|
|
16
|
+
return n(
|
|
17
17
|
r,
|
|
18
18
|
{
|
|
19
19
|
userProperties: i,
|
|
20
20
|
async onEvent(e) {
|
|
21
21
|
["modal_opened", "modal_closed"].includes(e.eventName);
|
|
22
22
|
},
|
|
23
|
-
// we don't have this endpoint yet but we still want to show the feedback buttons
|
|
24
|
-
async onFeedback(e) {
|
|
25
|
-
return e;
|
|
26
|
-
},
|
|
27
23
|
transformSource(e, t, s) {
|
|
28
|
-
const
|
|
29
|
-
return m?.(
|
|
24
|
+
const o = u?.(e, t, s) ?? e;
|
|
25
|
+
return m?.(o, t, s) ?? o;
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
);
|
|
33
29
|
};
|
|
34
30
|
export {
|
|
35
|
-
|
|
31
|
+
k as useBaseSettings
|
|
36
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-ui-cloud",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
42
42
|
"lucide-react": "^0.503.0",
|
|
43
|
-
"@inkeep/agents-ui": "0.15.
|
|
43
|
+
"@inkeep/agents-ui": "0.15.30"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@biomejs/biome": "1.9.4",
|