@opencx/widget-react 5.15.0 → 5.15.2
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/{Chart.impl-1tLZ016z.cjs → Chart.impl-CCjTrndm.cjs} +2 -2
- package/dist/{Chart.impl-1tLZ016z.cjs.map → Chart.impl-CCjTrndm.cjs.map} +1 -1
- package/dist/{Chart.impl-BURnFwHb.js → Chart.impl-DYYFh9b6.js} +2 -2
- package/dist/{Chart.impl-BURnFwHb.js.map → Chart.impl-DYYFh9b6.js.map} +1 -1
- package/dist/{index-zggs8o0o.cjs → index-5nVUCv1r.cjs} +6 -6
- package/dist/index-5nVUCv1r.cjs.map +1 -0
- package/dist/{index-BDJTS5VH.js → index-BpieUU7p.js} +25 -22
- package/dist/index-BpieUU7p.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/src/hooks/useStickyQuestions.d.ts +4 -2
- package/dist/src/hooks/useStickyQuestions.d.ts.map +1 -1
- package/dist/src/page-marks/mark-source.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/index-BDJTS5VH.js.map +0 -1
- package/dist/index-zggs8o0o.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("@radix-ui/react-popover");require("framer-motion");require("react");require("@opencx/widget-react-headless");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("@radix-ui/react-popover");require("framer-motion");require("react");require("@opencx/widget-react-headless");const e=require("./index-5nVUCv1r.cjs");exports.HostedSpecRenderer=e.HostedSpecRenderer;exports.Widget=e.Widget;exports.segmentContent=e.segmentContent;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@radix-ui/react-popover";
|
|
|
3
3
|
import "framer-motion";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@opencx/widget-react-headless";
|
|
6
|
-
import { H as s, W as n, s as a } from "./index-
|
|
6
|
+
import { H as s, W as n, s as a } from "./index-BpieUU7p.js";
|
|
7
7
|
export {
|
|
8
8
|
s as HostedSpecRenderer,
|
|
9
9
|
n as Widget,
|
package/dist/package.json.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ export declare const STICKY_QUESTIONS_DELAY_MS = 5000;
|
|
|
5
5
|
* The configured `stickyQuestions` to show above the composer right now, or
|
|
6
6
|
* an empty list. They come back {@link STICKY_QUESTIONS_DELAY_MS} after the
|
|
7
7
|
* AI's latest reply (system checkpoints after it don't count as a reply, and a
|
|
8
|
-
* failed reply's error bubble doesn't start the timer)
|
|
8
|
+
* failed reply's error bubble doesn't start the timer). They stay hidden once
|
|
9
|
+
* the session is handed off to the team, and
|
|
9
10
|
* yield while a reply streams, while the visitor is typing, and while another
|
|
10
11
|
* row of suggestions is up.
|
|
11
12
|
*/
|
|
12
|
-
export declare function useStickyQuestions({ stickyQuestions, messages, isStreaming, isTyping, otherSuggestionsShowing, }: {
|
|
13
|
+
export declare function useStickyQuestions({ stickyQuestions, messages, isHandedOff, isStreaming, isTyping, otherSuggestionsShowing, }: {
|
|
13
14
|
stickyQuestions: string[] | undefined;
|
|
14
15
|
messages: WidgetMessageU[];
|
|
16
|
+
isHandedOff: boolean;
|
|
15
17
|
isStreaming: boolean;
|
|
16
18
|
isTyping: boolean;
|
|
17
19
|
otherSuggestionsShowing: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStickyQuestions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStickyQuestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,uEAAuE;AACvE,eAAO,MAAM,yBAAyB,OAAQ,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"useStickyQuestions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStickyQuestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,uEAAuE;AACvE,eAAO,MAAM,yBAAyB,OAAQ,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,eAAe,EACf,QAAQ,EACR,WAAW,EACX,WAAW,EACX,QAAQ,EACR,uBAAuB,GACxB,EAAE;IACD,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,EAAE,OAAO,CAAC;CAClC,GAAG,MAAM,EAAE,CA8BX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mark-source.d.ts","sourceRoot":"","sources":["../../../src/page-marks/mark-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAa5C,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,SAAS,WAAW,EAAE,QAGjC;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAa3D;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"mark-source.d.ts","sourceRoot":"","sources":["../../../src/page-marks/mark-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAa5C,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,SAAS,WAAW,EAAE,QAGjC;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAa3D;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAkB/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6E1B,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6E1B,wBAAgB,UAAU,sBA+FzB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencx/widget-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.15.
|
|
4
|
+
"version": "5.15.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"tailwind-merge": "^2.4.0",
|
|
37
37
|
"tinycolor2": "^1.6.0",
|
|
38
38
|
"zod": "^4.6.7",
|
|
39
|
-
"@opencx/widget-core": "5.15.
|
|
40
|
-
"@opencx/widget-react-headless": "5.15.
|
|
39
|
+
"@opencx/widget-core": "5.15.2",
|
|
40
|
+
"@opencx/widget-react-headless": "5.15.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@types/react": ">=18 <20",
|