@opencx/widget-core 4.0.0 → 4.0.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.
@@ -111,6 +111,12 @@ export type HeaderButtonU = (HeaderButtonBase & {
111
111
  shrinkIcon?: IconNameU;
112
112
  }) | (HeaderButtonBase & {
113
113
  functionality: 'close-widget';
114
+ /**
115
+ * A side effect to be executed when the button is clicked.
116
+ * This will override the default behavior of closing the widget.
117
+ * This is useful If opening and closing the widget is externally controlled.
118
+ */
119
+ handleClick?: () => void;
114
120
  }) | (HeaderButtonBase & {
115
121
  functionality: 'resolve-session';
116
122
  /**
@@ -160,7 +166,7 @@ export interface WidgetConfig {
160
166
  /**
161
167
  * The language of the widget.
162
168
  * Translations are available in the default non-headless widget.
163
- * Check available translations in `src/designs/translation`
169
+ * Check available translations in `packages/react/src/translation`
164
170
  * @default en
165
171
  */
166
172
  language?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opencx/widget-core",
3
3
  "private": false,
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "@types/lodash.isequal": "^4.5.8",
27
27
  "lucide": "^0.525.0",
28
28
  "openapi-typescript": "^7.5.2",
29
- "@opencx/eslint-config": "0.0.0",
30
- "@opencx/tsconfig": "0.0.0"
29
+ "@opencx/tsconfig": "0.0.0",
30
+ "@opencx/eslint-config": "0.0.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@types/react": ">=18 <20",