@opencx/widget-react 5.0.0 → 5.2.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--lw4WUeY.cjs → Chart.impl-BY-Rn08r.cjs} +2 -2
- package/dist/{Chart.impl--lw4WUeY.cjs.map → Chart.impl-BY-Rn08r.cjs.map} +1 -1
- package/dist/{Chart.impl-B5gmO6Us.js → Chart.impl-Bcv3wlQu.js} +2 -2
- package/dist/{Chart.impl-B5gmO6Us.js.map → Chart.impl-Bcv3wlQu.js.map} +1 -1
- package/dist/{index-rkpSpEfw.cjs → index-9Z5RGuSA.cjs} +26 -26
- package/dist/index-9Z5RGuSA.cjs.map +1 -0
- package/dist/{index-BiL9m1to.js → index-CqYheBap.js} +1177 -1118
- package/dist/index-CqYheBap.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/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/package.json +5 -5
- package/dist/index-BiL9m1to.js.map +0 -1
- package/dist/index-rkpSpEfw.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-9Z5RGuSA.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-CqYheBap.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"}
|
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.2.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.2.0",
|
|
44
|
+
"@opencx/widget-react-headless": "5.2.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": ">=18 <20",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"tailwindcss-animate": "^1.0.7",
|
|
64
64
|
"tsx": "^4.19.2",
|
|
65
65
|
"vite-plugin-qrcode": "^0.3.0",
|
|
66
|
-
"@opencx/
|
|
67
|
-
"@opencx/
|
|
66
|
+
"@opencx/tsconfig": "0.0.2",
|
|
67
|
+
"@opencx/eslint-config": "0.0.1"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"clean": "rm -rf node_modules dist .turbo",
|