@opencx/widget-react 5.16.0 → 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/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-CdukcwHL.cjs");exports.HostedSpecRenderer=e.HostedSpecRenderer;exports.Widget=e.Widget;exports.segmentContent=e.segmentContent;
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-fXZfP77e.js";
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,2 @@
1
+ export * from './src/voice/load-voice-sdk'
2
+ export {}
@@ -0,0 +1,7 @@
1
+ function o() {
2
+ return import("@opencx/voice");
3
+ }
4
+ export {
5
+ o as loadVoiceSdk
6
+ };
7
+ //# sourceMappingURL=load-voice-sdk.js.map
@@ -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;"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "@opencx/widget-react",
3
3
  "private": false,
4
- "version": "5.16.0",
4
+ "version": "5.16.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "rm -rf node_modules dist .turbo",
@@ -1 +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;AAEf,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,4EAA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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,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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opencx/widget-react",
3
3
  "private": false,
4
- "version": "5.16.0",
4
+ "version": "5.16.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -37,8 +37,8 @@
37
37
  "tailwind-merge": "^2.4.0",
38
38
  "tinycolor2": "^1.6.0",
39
39
  "zod": "^4.6.7",
40
- "@opencx/widget-core": "5.16.0",
41
- "@opencx/widget-react-headless": "5.16.0"
40
+ "@opencx/widget-core": "5.16.1",
41
+ "@opencx/widget-react-headless": "5.16.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@types/react": ">=18 <20",
@@ -60,8 +60,8 @@
60
60
  "tailwindcss-animate": "^1.0.7",
61
61
  "tsx": "^4.19.2",
62
62
  "vite-plugin-qrcode": "^0.3.0",
63
- "@opencx/eslint-config": "0.0.1",
64
- "@opencx/tsconfig": "0.0.2"
63
+ "@opencx/tsconfig": "0.0.2",
64
+ "@opencx/eslint-config": "0.0.1"
65
65
  },
66
66
  "scripts": {
67
67
  "clean": "rm -rf node_modules dist .turbo",