@opencx/widget-react 5.11.0 → 5.12.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/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-CcE7410P.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-Cq6ml-Tf.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-BdjYf3YD.js";
6
+ import { H as s, W as n, s as a } from "./index-OfNVb8Ka.js";
7
7
  export {
8
8
  s as HostedSpecRenderer,
9
9
  n as Widget,
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "@opencx/widget-react",
3
3
  "private": false,
4
- "version": "5.11.0",
4
+ "version": "5.12.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "rm -rf node_modules dist .turbo",
@@ -4,7 +4,7 @@ import { default as React } from 'react';
4
4
  * Exported so companion's quick-ask state renders the exact same composer
5
5
  * (not a bespoke bar), inheriting every customization automatically.
6
6
  */
7
- export declare function ChatInput({ trailingActions, placeholder, hideAttachTools, disabled: disabledByParent, }?: {
7
+ type ChatInputProps = {
8
8
  /** Keep the composer visible while a required starter must be chosen. */
9
9
  disabled?: boolean;
10
10
  /**
@@ -25,5 +25,12 @@ export declare function ChatInput({ trailingActions, placeholder, hideAttachTool
25
25
  * the full tool row lives in the expanded chat panel.
26
26
  */
27
27
  hideAttachTools?: boolean;
28
- }): React.JSX.Element;
28
+ };
29
+ /**
30
+ * The composer, or, once a host-supplied user token expired with no
31
+ * replacement, a notice in its place: the transcript stays readable and
32
+ * nothing can be sent until the host sets a new `user.token`.
33
+ */
34
+ export declare function ChatInput(props?: ChatInputProps): React.JSX.Element;
35
+ export {};
29
36
  //# sourceMappingURL=ChatInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAoD5E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,eAAe,EACf,WAAW,EACX,eAAe,EACf,QAAQ,EAAE,gBAAwB,GACnC,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,qBAyvBL"}
1
+ {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAoD5E;;;;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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opencx/widget-react",
3
3
  "private": false,
4
- "version": "5.11.0",
4
+ "version": "5.12.0",
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.11.0",
40
- "@opencx/widget-react-headless": "5.11.0"
39
+ "@opencx/widget-core": "5.12.0",
40
+ "@opencx/widget-react-headless": "5.12.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@types/react": ">=18 <20",