@opencx/widget-react 5.1.0 → 5.3.0
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-yQQ21xSV.js → Chart.impl-C2mZFFw3.js} +2 -2
- package/dist/{Chart.impl-yQQ21xSV.js.map → Chart.impl-C2mZFFw3.js.map} +1 -1
- package/dist/{Chart.impl-BAZW1JIf.cjs → Chart.impl-D-zWNzAD.cjs} +2 -2
- package/dist/{Chart.impl-BAZW1JIf.cjs.map → Chart.impl-D-zWNzAD.cjs.map} +1 -1
- package/dist/{index-D_tSsyE7.js → index-B4ebVsXX.js} +1801 -1736
- package/dist/index-B4ebVsXX.js.map +1 -0
- package/dist/{index-BhDQakmD.cjs → index-bFvv5AK0.cjs} +41 -41
- package/dist/index-bFvv5AK0.cjs.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/components/MessageOptions.d.ts +12 -0
- package/dist/src/components/MessageOptions.d.ts.map +1 -0
- package/dist/src/components/custom-components/AgentMessageDefaultComponent.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatInput.d.ts.map +1 -1
- package/dist/src/screens/chat/usePageMarkComposer.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/index-BhDQakmD.cjs.map +0 -1
- package/dist/index-D_tSsyE7.js.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-bFvv5AK0.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-B4ebVsXX.js";
|
|
7
7
|
export {
|
|
8
8
|
s as HostedSpecRenderer,
|
|
9
9
|
n as Widget,
|
package/dist/package.json.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WidgetMessageOptions } from '@opencx/widget-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Only the first tap on the newest options message of an open session counts,
|
|
5
|
+
* so only it shows the options. After a tap only the picked one stays, as a
|
|
6
|
+
* receipt; options that can no longer be tapped are not shown.
|
|
7
|
+
*/
|
|
8
|
+
export declare function MessageOptions({ messageId, messageOptions, }: {
|
|
9
|
+
messageId: string;
|
|
10
|
+
messageOptions: WidgetMessageOptions;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=MessageOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageOptions.d.ts","sourceRoot":"","sources":["../../../src/components/MessageOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,cAAc,GACf,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,oBAAoB,CAAC;CACtC,4BAoEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentMessageDefaultComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/custom-components/AgentMessageDefaultComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentMessageDefaultComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/custom-components/AgentMessageDefaultComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAkB,MAAM,OAAO,CAAC;AAkCvC,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,oBAAoB,GAAG;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE;QACnB,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;QACxC,OAAO,CAAC,EAAE,oBAAoB,CAAC;KAChC,CAAC;IACF,UAAU,CAAC,EAAE;QACX,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,4BAmIF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAkD5E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,eAAe,EACf,WAAW,EACX,eAAe,EACf,QAAgB,GACjB,GAAE;IACD,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CACtB,
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAkD5E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,eAAe,EACf,WAAW,EACX,eAAe,EACf,QAAgB,GACjB,GAAE;IACD,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CACtB,qBAiuBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePageMarkComposer.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/usePageMarkComposer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACjD;;;;;;;;;;;;;2BAcgB,IAAI,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"usePageMarkComposer.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/usePageMarkComposer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACjD;;;;;;;;;;;;;2BAcgB,IAAI,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;EAyB7C"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencx/widget-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"tailwind-merge": "^2.4.0",
|
|
41
41
|
"tinycolor2": "^1.6.0",
|
|
42
42
|
"zod": "^4.3.6",
|
|
43
|
-
"@opencx/widget-core": "5.
|
|
44
|
-
"@opencx/widget-react-headless": "5.
|
|
43
|
+
"@opencx/widget-core": "5.3.0",
|
|
44
|
+
"@opencx/widget-react-headless": "5.3.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": ">=18 <20",
|