@opencx/widget-react 5.15.3 → 5.16.1
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-2YWCdHAu.js → Chart.impl-BV-FDx2F.js} +2 -2
- package/dist/{Chart.impl-2YWCdHAu.js.map → Chart.impl-BV-FDx2F.js.map} +1 -1
- package/dist/{Chart.impl-BFdGxrv2.cjs → Chart.impl-D9ZC6NM1.cjs} +2 -2
- package/dist/{Chart.impl-BFdGxrv2.cjs.map → Chart.impl-D9ZC6NM1.cjs.map} +1 -1
- package/dist/index-B5DF6TVa.cjs +460 -0
- package/dist/index-B5DF6TVa.cjs.map +1 -0
- package/dist/{index-DlDapUIF.js → index-ZDE0vbgt.js} +6235 -5154
- package/dist/index-ZDE0vbgt.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/load-voice-sdk.cjs +2 -0
- package/dist/load-voice-sdk.cjs.map +1 -0
- package/dist/load-voice-sdk.d.ts +2 -0
- package/dist/load-voice-sdk.js +7 -0
- package/dist/load-voice-sdk.js.map +1 -0
- package/dist/package.json.d.ts +2 -1
- package/dist/src/WidgetImperativeHandler.d.ts +6 -0
- package/dist/src/WidgetImperativeHandler.d.ts.map +1 -1
- package/dist/src/WidgetPopoverContent.d.ts.map +1 -1
- package/dist/src/companion/CompanionContent.d.ts.map +1 -1
- package/dist/src/companion/WidgetCompanion.d.ts.map +1 -1
- package/dist/src/companion/useCompanionHostEffects.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatInput.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/dist/src/screens/chat/agent/AgentChatMain.d.ts.map +1 -1
- package/dist/src/voice/VoiceCallButton.d.ts +4 -0
- package/dist/src/voice/VoiceCallButton.d.ts.map +1 -0
- package/dist/src/voice/VoiceCallCard.d.ts +11 -0
- package/dist/src/voice/VoiceCallCard.d.ts.map +1 -0
- package/dist/src/voice/VoiceCallProvider.d.ts +64 -0
- package/dist/src/voice/VoiceCallProvider.d.ts.map +1 -0
- package/dist/src/voice/VoiceCallScreen.d.ts +9 -0
- package/dist/src/voice/VoiceCallScreen.d.ts.map +1 -0
- package/dist/src/voice/VoiceOrb.d.ts +19 -0
- package/dist/src/voice/VoiceOrb.d.ts.map +1 -0
- package/dist/src/voice/VoiceTranscript.d.ts +14 -0
- package/dist/src/voice/VoiceTranscript.d.ts.map +1 -0
- package/dist/src/voice/load-voice-sdk.d.ts +10 -0
- package/dist/src/voice/load-voice-sdk.d.ts.map +1 -0
- package/dist/src/voice/orb/LiquidOrb.d.ts +13 -0
- package/dist/src/voice/orb/LiquidOrb.d.ts.map +1 -0
- package/dist/src/voice/orb/renderer.d.ts +12 -0
- package/dist/src/voice/orb/renderer.d.ts.map +1 -0
- package/dist/src/voice/spoken-text.d.ts +8 -0
- package/dist/src/voice/spoken-text.d.ts.map +1 -0
- package/dist/src/voice/voice-call-placement.d.ts +9 -0
- package/dist/src/voice/voice-call-placement.d.ts.map +1 -0
- package/dist/src/voice/voice-copy.d.ts +40 -0
- package/dist/src/voice/voice-copy.d.ts.map +1 -0
- package/package.json +6 -5
- package/dist/index-Cv8Wst3d.cjs +0 -390
- package/dist/index-Cv8Wst3d.cjs.map +0 -1
- package/dist/index-DlDapUIF.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-B5DF6TVa.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-ZDE0vbgt.js";
|
|
7
7
|
export {
|
|
8
8
|
s as HostedSpecRenderer,
|
|
9
9
|
n as Widget,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var c=Object.create;var d=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty;var S=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of n(o))!a.call(e,i)&&i!==t&&d(e,i,{get:()=>o[i],enumerable:!(r=l(o,i))||r.enumerable});return e};var b=(e,o,t)=>(t=e!=null?c(u(e)):{},S(o||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(){return import("@opencx/voice")}exports.loadVoiceSdk=f;
|
|
2
|
+
//# sourceMappingURL=load-voice-sdk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-voice-sdk.cjs","sources":["../src/voice/load-voice-sdk.ts"],"sourcesContent":["import type * as VoiceSdkModule from '@opencx/voice';\n\nexport type VoiceSdk = typeof VoiceSdkModule;\n\n/**\n * Loads the voice SDK on the first call; bundlers split it into its own\n * chunk. Its own build entry (vite.config.ts) so the script embed can swap\n * this file for one that loads `dist-embed/voice.js` instead: the embed has\n * no chunks, and inlining the SDK would grow every page that embeds it.\n */\nexport function loadVoiceSdk(): Promise<VoiceSdk> {\n return import('@opencx/voice');\n}\n"],"names":["loadVoiceSdk"],"mappings":"2hBAUO,SAASA,GAAkC,CAChD,MAAO,QAAO,eAAe,CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-voice-sdk.js","sources":["../src/voice/load-voice-sdk.ts"],"sourcesContent":["import type * as VoiceSdkModule from '@opencx/voice';\n\nexport type VoiceSdk = typeof VoiceSdkModule;\n\n/**\n * Loads the voice SDK on the first call; bundlers split it into its own\n * chunk. Its own build entry (vite.config.ts) so the script embed can swap\n * this file for one that loads `dist-embed/voice.js` instead: the embed has\n * no chunks, and inlining the SDK would grow every page that embeds it.\n */\nexport function loadVoiceSdk(): Promise<VoiceSdk> {\n return import('@opencx/voice');\n}\n"],"names":["loadVoiceSdk"],"mappings":"AAUO,SAASA,IAAkC;AAChD,SAAO,OAAO,eAAe;AAC/B;"}
|
package/dist/package.json.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@opencx/widget-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.16.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "rm -rf node_modules dist .turbo",
|
|
@@ -28,6 +28,7 @@ declare const _default: {
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@opencx/widget-core": "workspace:*",
|
|
30
30
|
"@opencx/widget-react-headless": "workspace:*",
|
|
31
|
+
"@opencx/voice": "0.3.0",
|
|
31
32
|
"@radix-ui/react-avatar": "^1.1.0",
|
|
32
33
|
"@radix-ui/react-menu": "^2.1.24",
|
|
33
34
|
"@radix-ui/react-popover": "^1.1.2",
|
|
@@ -16,6 +16,12 @@ export type WidgetRef = {
|
|
|
16
16
|
* remounted widget starts from `options.user.token` again.
|
|
17
17
|
*/
|
|
18
18
|
renewUserToken: (token: string) => RenewUserTokenResult;
|
|
19
|
+
/**
|
|
20
|
+
* Open the widget on its voice screen and start a call. Needs `voice` in
|
|
21
|
+
* the options; call it from a user gesture so the microphone prompt and
|
|
22
|
+
* audio playback are allowed.
|
|
23
|
+
*/
|
|
24
|
+
startVoiceCall: () => Promise<void>;
|
|
19
25
|
};
|
|
20
26
|
export declare function WidgetImperativeHandler({ widgetRef, }: {
|
|
21
27
|
widgetRef: React.Ref<WidgetRef>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetImperativeHandler.d.ts","sourceRoot":"","sources":["../../src/WidgetImperativeHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetImperativeHandler.d.ts","sourceRoot":"","sources":["../../src/WidgetImperativeHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,MAAM,SAAS,GAAG;IACtB,qFAAqF;IACrF,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D;;;;;;;;;OASG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,oBAAoB,CAAC;IACxD;;;;OAIG;IACH,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,GACV,EAAE;IACD,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;CACjC,QA2CA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetPopoverContent.d.ts","sourceRoot":"","sources":["../../src/WidgetPopoverContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetPopoverContent.d.ts","sourceRoot":"","sources":["../../src/WidgetPopoverContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA2BzC,wBAAgB,aAAa,sBAqF5B;AAED,wBAAgB,oBAAoB,sBAmCnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanionContent.d.ts","sourceRoot":"","sources":["../../../src/companion/CompanionContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAclE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CompanionContent.d.ts","sourceRoot":"","sources":["../../../src/companion/CompanionContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAclE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAqFlE,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,mBAAmB,GACpB,EAAE;IACD,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB;iDAC6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,yDAAyD;IACzD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,4EAA4E;IAC5E,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,4EAA4E;IAC5E,cAAc,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACzD,gEAAgE;IAChE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,qBAwLA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetCompanion.d.ts","sourceRoot":"","sources":["../../../src/companion/WidgetCompanion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetCompanion.d.ts","sourceRoot":"","sources":["../../../src/companion/WidgetCompanion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAgEf,wBAAgB,eAAe,6BA+wB9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompanionHostEffects.d.ts","sourceRoot":"","sources":["../../../src/companion/useCompanionHostEffects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAML,KAAK,MAAM,EAEZ,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCompanionHostEffects.d.ts","sourceRoot":"","sources":["../../../src/companion/useCompanionHostEffects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAML,KAAK,MAAM,EAEZ,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,mBAAmB,GAAG,IAAI,CAC7B,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EACpC,0BAA0B,GAAG,0BAA0B,CACxD,CAAC;AASF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,WAAW,GACZ,EAAE;IACD,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,0BAA0B,CAAC;IACxC,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;;;;;;;;;;;+BA2DW,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;+BASlC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;6BAQlC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;iCAclC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;2BAWlC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC;;EA0G9C"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAavC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAavC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,2BAA2B,CAAC;AA+EnC,QAAA,MAAM,MAAM;aAGC,YAAY;iBACR,mBAAmB,EAAE;uBACf,KAAK,CAAC,SAAS;qBACjB,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS;mCA6DpD,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB;;;;;GAKG;AACH,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,SAAS,GACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAuD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAuD5E;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB,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;CAC3B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,GAAE,cAAmB,qBAGnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMain.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatMain.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMain.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatMain.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAgBpE,wBAAgB,QAAQ,sBAoHvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentChatMain.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/agent/AgentChatMain.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentChatMain.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/agent/AgentChatMain.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAuBvC;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,sBAyO5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceCallButton.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceCallButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,4DAA4D;AAC5D,wBAAgB,eAAe,6BAmB9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VoiceCallRecord } from './VoiceCallProvider';
|
|
3
|
+
/**
|
|
4
|
+
* A finished voice call in the chat thread: when it was and how long it ran,
|
|
5
|
+
* then everything said in it as chat messages, so the conversation reads as
|
|
6
|
+
* one that continued by voice.
|
|
7
|
+
*/
|
|
8
|
+
export declare function VoiceCallCard({ call }: {
|
|
9
|
+
call: VoiceCallRecord;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=VoiceCallCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceCallCard.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceCallCard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAyE3D;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,qBAmFhE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { WidgetCtx } from '@opencx/widget-core';
|
|
2
|
+
import { VoiceLevels, VoiceState, VoiceTranscriptSegment } from '@opencx/voice';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export type VoiceCallError = {
|
|
5
|
+
code: string;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/** The chat a finished call belongs to: its card renders in that thread only. */
|
|
9
|
+
type VoiceCallThread = {
|
|
10
|
+
ctx: WidgetCtx;
|
|
11
|
+
/** Null for a chat with no session yet; it adopts the session the chat creates. */
|
|
12
|
+
sessionId: string | null;
|
|
13
|
+
};
|
|
14
|
+
/** A finished call, shown as a card in the chat it returned to. */
|
|
15
|
+
export type VoiceCallRecord = {
|
|
16
|
+
id: number;
|
|
17
|
+
/** When the agent first became ready; orders the card among the messages. */
|
|
18
|
+
startedAt: number;
|
|
19
|
+
durationMs: number;
|
|
20
|
+
/** Every line of the call, oldest first, including one cut off by the hang-up. */
|
|
21
|
+
transcript: VoiceTranscriptSegment[];
|
|
22
|
+
/** Nothing arrived live, so the call's session history is being fetched. */
|
|
23
|
+
transcriptLoading: boolean;
|
|
24
|
+
/** The call's own session: a thread that shows it already has these lines. */
|
|
25
|
+
voiceSessionId: string | null;
|
|
26
|
+
thread: VoiceCallThread;
|
|
27
|
+
};
|
|
28
|
+
type VoiceCallContextValue = {
|
|
29
|
+
/** The embed configured `voice`; false renders no voice UI anywhere. */
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
/** The full-panel voice screen is showing. */
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
state: VoiceState;
|
|
34
|
+
error: VoiceCallError | null;
|
|
35
|
+
audioBlocked: boolean;
|
|
36
|
+
muted: boolean;
|
|
37
|
+
/** When the agent first became ready, for the elapsed timer. */
|
|
38
|
+
connectedAt: number | null;
|
|
39
|
+
/** Smoothed in the screen's frame loop; written here without re-renders. */
|
|
40
|
+
levelsRef: React.RefObject<VoiceLevels>;
|
|
41
|
+
/**
|
|
42
|
+
* The finished calls of the chat on screen, oldest first. A thread that is
|
|
43
|
+
* the call's own session already shows its lines as messages: no card.
|
|
44
|
+
*/
|
|
45
|
+
threadCalls: VoiceCallRecord[];
|
|
46
|
+
/** The live call's transcript, oldest first; interim lines have `final: false`. */
|
|
47
|
+
transcript: VoiceTranscriptSegment[];
|
|
48
|
+
start: () => Promise<void>;
|
|
49
|
+
end: () => Promise<void>;
|
|
50
|
+
toggleMute: () => void;
|
|
51
|
+
resumeAudio: () => void;
|
|
52
|
+
close: () => void;
|
|
53
|
+
};
|
|
54
|
+
export declare function useVoiceCall(): VoiceCallContextValue;
|
|
55
|
+
/**
|
|
56
|
+
* Owns the voice call for the whole widget, above every shell, so the call
|
|
57
|
+
* survives the screens it is shown on (companion layout morphs, the popover
|
|
58
|
+
* closing). The SDK loads on the first call only.
|
|
59
|
+
*/
|
|
60
|
+
export declare function VoiceCallProvider({ children }: {
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
}): React.JSX.Element;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=VoiceCallProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceCallProvider.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceCallProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAM1D,OAAO,KAAK,EAGV,WAAW,EACX,UAAU,EAEV,sBAAsB,EACvB,MAAM,eAAe,CAAC;AACvB,OAAO,KAQN,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,iFAAiF;AACjF,KAAK,eAAe,GAAG;IACrB,GAAG,EAAE,SAAS,CAAC;IACf,mFAAmF;IACnF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,4EAA4E;IAC5E,iBAAiB,EAAE,OAAO,CAAC;IAC3B,8EAA8E;IAC9E,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AA2CF,KAAK,qBAAqB,GAAG;IAC3B,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,4EAA4E;IAC5E,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC;;;OAGG;IACH,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,mFAAmF;IACnF,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,GAAG,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAwBF,wBAAgB,YAAY,IAAI,qBAAqB,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBA0R5E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The in-widget voice call: a full-panel stage over the chat, with the orb at
|
|
4
|
+
* its centre, a live caption under it and the call controls at the thumb.
|
|
5
|
+
* Mounted by each shell inside its iframe document; the call itself lives in
|
|
6
|
+
* `VoiceCallProvider`, so this can unmount mid-call without dropping it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function VoiceCallScreen(): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=VoiceCallScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceCallScreen.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceCallScreen.tsx"],"names":[],"mappings":"AASA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA6C3D;;;;;GAKG;AACH,wBAAgB,eAAe,sBAyP9B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VoiceLevels, VoiceState } from '@opencx/voice';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The living voice orb: a grainy liquid sphere (beui.dev voice orb) whose surface
|
|
5
|
+
* follows the call. The SDK's levels are read through a ref every frame (no React
|
|
6
|
+
* render per frame) into one activity value:
|
|
7
|
+
* - waiting a slow breath
|
|
8
|
+
* - agent swells with `remote`
|
|
9
|
+
* - visitor follows `local`, a little quieter than the agent
|
|
10
|
+
* Reduced motion keeps the surface still.
|
|
11
|
+
*/
|
|
12
|
+
export declare function VoiceOrb({ levelsRef, state, muted, reducedMotion, onSpeakingChange, }: {
|
|
13
|
+
levelsRef: React.RefObject<VoiceLevels>;
|
|
14
|
+
state: VoiceState;
|
|
15
|
+
muted: boolean;
|
|
16
|
+
reducedMotion: boolean;
|
|
17
|
+
onSpeakingChange: (speaking: boolean) => void;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=VoiceOrb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceOrb.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceOrb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAsC,MAAM,OAAO,CAAC;AA+C3D;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,KAAK,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,GACjB,EAAE;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,qBAgEA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VoiceTranscriptSegment } from '@opencx/voice';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The call as a conversation: the agent's words as plain text at the start,
|
|
5
|
+
* the caller's in a soft bubble at the end, newest at the bottom. Lines still
|
|
6
|
+
* being heard or spoken shimmer. Each line takes its direction from its own
|
|
7
|
+
* script (`dir="auto"`), so Arabic and English lines sit right in one list.
|
|
8
|
+
*/
|
|
9
|
+
export declare function VoiceTranscript({ segments, className, style, }: {
|
|
10
|
+
segments: VoiceTranscriptSegment[];
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=VoiceTranscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceTranscript.d.ts","sourceRoot":"","sources":["../../../src/voice/VoiceTranscript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAkC,MAAM,OAAO,CAAC;AAQvD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,qBAqDA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as VoiceSdkModule from '@opencx/voice';
|
|
2
|
+
export type VoiceSdk = typeof VoiceSdkModule;
|
|
3
|
+
/**
|
|
4
|
+
* Loads the voice SDK on the first call; bundlers split it into its own
|
|
5
|
+
* chunk. Its own build entry (vite.config.ts) so the script embed can swap
|
|
6
|
+
* this file for one that loads `dist-embed/voice.js` instead: the embed has
|
|
7
|
+
* no chunks, and inlining the SDK would grow every page that embeds it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function loadVoiceSdk(): Promise<VoiceSdk>;
|
|
10
|
+
//# sourceMappingURL=load-voice-sdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-voice-sdk.d.ts","sourceRoot":"","sources":["../../../src/voice/load-voice-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc,MAAM,eAAe,CAAC;AAErD,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAAC,QAAQ,CAAC,CAEhD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MotionValue } from 'framer-motion';
|
|
2
|
+
import { default as React, ComponentProps } from 'react';
|
|
3
|
+
export type LiquidOrbProps = Omit<ComponentProps<'div'>, 'children' | 'onError'> & {
|
|
4
|
+
/** Normalized activity, from 0 to 1. A MotionValue avoids React render loops. */
|
|
5
|
+
activity?: number | MotionValue<number>;
|
|
6
|
+
/** Base pigment, highlight and shadow, as #RGB or #RRGGBB hex colors. */
|
|
7
|
+
colors: readonly [string, string, string];
|
|
8
|
+
/** Pause the material while keeping the current surface visible. */
|
|
9
|
+
active?: boolean;
|
|
10
|
+
speed?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function LiquidOrb({ activity, colors, active, speed, className, style, ...props }: LiquidOrbProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LiquidOrb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiquidOrb.d.ts","sourceRoot":"","sources":["../../../../src/voice/orb/LiquidOrb.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,WAAW,EAKjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,EACZ,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAOf,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,SAAS,CACvB,GAAG;IACF,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,yEAAyE;IACzE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAKF,wBAAgB,SAAS,CAAC,EACxB,QAAY,EACZ,MAAM,EACN,MAAa,EACb,KAAS,EACT,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,qBA+FhB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type OrbFrame = {
|
|
2
|
+
activity: number;
|
|
3
|
+
colors: readonly [string, string, string];
|
|
4
|
+
speed: number;
|
|
5
|
+
animated: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** Owns only GPU resources and draw scheduling; it never opens an audio source. */
|
|
8
|
+
export declare function createOrbRenderer(canvas: HTMLCanvasElement, read: () => OrbFrame, onError: (error: Error) => void): {
|
|
9
|
+
requestDraw: () => void;
|
|
10
|
+
dispose: () => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/voice/orb/renderer.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA6FF,mFAAmF;AACnF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,MAAM,QAAQ,EACpB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;EAmMhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text for display from what a voice agent spoke. Agent replies carry speech
|
|
3
|
+
* markup for the voice engine (SSML such as `<break time="0.3s" />`); a
|
|
4
|
+
* transcript shows the words only. A tag still streaming in (`<break time=`)
|
|
5
|
+
* is dropped too, so it never flashes on screen.
|
|
6
|
+
*/
|
|
7
|
+
export declare function cleanSpokenText(text: string): string;
|
|
8
|
+
//# sourceMappingURL=spoken-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spoken-text.d.ts","sourceRoot":"","sources":["../../../src/voice/spoken-text.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** When a message was sent; one still sending is the newest. */
|
|
2
|
+
export declare function messageTime(message: {
|
|
3
|
+
timestamp: string | null;
|
|
4
|
+
}): number;
|
|
5
|
+
/** Removes and returns, oldest first, the calls at the front of `queue` that started before `time`. */
|
|
6
|
+
export declare function takeVoiceCallsBefore<Call extends {
|
|
7
|
+
startedAt: number;
|
|
8
|
+
}>(queue: Call[], time: number): Call[];
|
|
9
|
+
//# sourceMappingURL=voice-call-placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-call-placement.d.ts","sourceRoot":"","sources":["../../../src/voice/voice-call-placement.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,wBAAgB,WAAW,CAAC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,MAAM,CAKzE;AAED,uGAAuG;AACvG,wBAAgB,oBAAoB,CAAC,IAAI,SAAS;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EACrE,KAAK,EAAE,IAAI,EAAE,EACb,IAAI,EAAE,MAAM,GACX,IAAI,EAAE,CAGR"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice-call strings. English and Arabic only for now; every other language
|
|
3
|
+
* reads English. Kept beside the feature rather than in the 39 widget
|
|
4
|
+
* translation tables until the voice mode graduates from the demo branch.
|
|
5
|
+
*/
|
|
6
|
+
declare const en: {
|
|
7
|
+
start_call: string;
|
|
8
|
+
connecting: string;
|
|
9
|
+
waiting: string;
|
|
10
|
+
queued: string;
|
|
11
|
+
listening: string;
|
|
12
|
+
speaking: string;
|
|
13
|
+
reconnecting: string;
|
|
14
|
+
ended: string;
|
|
15
|
+
mute: string;
|
|
16
|
+
unmute: string;
|
|
17
|
+
end_call: string;
|
|
18
|
+
tap_to_hear: string;
|
|
19
|
+
back_to_chat: string;
|
|
20
|
+
try_again: string;
|
|
21
|
+
muted_hint: string;
|
|
22
|
+
call_card_title: string;
|
|
23
|
+
show_full_transcript: string;
|
|
24
|
+
show_less: string;
|
|
25
|
+
transcript_loading: string;
|
|
26
|
+
transcript_empty: string;
|
|
27
|
+
default_agent: string;
|
|
28
|
+
error_generic: string;
|
|
29
|
+
error_timeout: string;
|
|
30
|
+
error_busy: string;
|
|
31
|
+
};
|
|
32
|
+
type VoiceCopy = typeof en;
|
|
33
|
+
export type VoiceCopyKey = keyof VoiceCopy;
|
|
34
|
+
export declare function voiceCopy(language: string, key: VoiceCopyKey, params?: Record<string, string>): string;
|
|
35
|
+
/** The hour a call started, in the widget's language with Latin digits. */
|
|
36
|
+
export declare function formatCallTime(language: string, at: number): string;
|
|
37
|
+
/** 0:07, 2:31, 1:02:09 — Latin digits in every language, like a clock. */
|
|
38
|
+
export declare function formatCallDuration(ms: number): string;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=voice-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-copy.d.ts","sourceRoot":"","sources":["../../../src/voice/voice-copy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;CA0BP,CAAC;AAEF,KAAK,SAAS,GAAG,OAAO,EAAE,CAAC;AA6B3B,MAAM,MAAM,YAAY,GAAG,MAAM,SAAS,CAAC;AAE3C,wBAAgB,SAAS,CACvB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,EACjB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAClC,MAAM,CAMR;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAYnE;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAQrD"}
|
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.16.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@opencx/voice": "0.3.0",
|
|
17
18
|
"@radix-ui/react-avatar": "^1.1.0",
|
|
18
19
|
"@radix-ui/react-menu": "^2.1.24",
|
|
19
20
|
"@radix-ui/react-popover": "^1.1.2",
|
|
@@ -36,8 +37,8 @@
|
|
|
36
37
|
"tailwind-merge": "^2.4.0",
|
|
37
38
|
"tinycolor2": "^1.6.0",
|
|
38
39
|
"zod": "^4.6.7",
|
|
39
|
-
"@opencx/widget-core": "5.
|
|
40
|
-
"@opencx/widget-react-headless": "5.
|
|
40
|
+
"@opencx/widget-core": "5.16.1",
|
|
41
|
+
"@opencx/widget-react-headless": "5.16.1"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
44
|
"@types/react": ">=18 <20",
|
|
@@ -59,8 +60,8 @@
|
|
|
59
60
|
"tailwindcss-animate": "^1.0.7",
|
|
60
61
|
"tsx": "^4.19.2",
|
|
61
62
|
"vite-plugin-qrcode": "^0.3.0",
|
|
62
|
-
"@opencx/
|
|
63
|
-
"@opencx/
|
|
63
|
+
"@opencx/tsconfig": "0.0.2",
|
|
64
|
+
"@opencx/eslint-config": "0.0.1"
|
|
64
65
|
},
|
|
65
66
|
"scripts": {
|
|
66
67
|
"clean": "rm -rf node_modules dist .turbo",
|