carbon-react 114.6.0 → 114.6.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.
@@ -259,7 +259,8 @@ const TextEditor = /*#__PURE__*/React.forwardRef(({
259
259
  ariaLabelledBy: labelId.current,
260
260
  ariaDescribedBy: labelId.current,
261
261
  blockStyleFn: blockStyleFn,
262
- keyBindingFn: keyBindingFn
262
+ keyBindingFn: keyBindingFn,
263
+ tabIndex: 0
263
264
  }), React.Children.map(previews, preview => {
264
265
  const {
265
266
  onClose
@@ -8,11 +8,11 @@ export interface TextEditorProps extends MarginProps {
8
8
  /** The text for the editor's label */
9
9
  labelText: string;
10
10
  /** onChange callback to control value updates */
11
- onChange: (event: Record<string, unknown>) => void;
11
+ onChange: (event: EditorState) => void;
12
12
  /** Additional elements to be rendered in the Editor Toolbar, e.g. Save and Cancel Button */
13
13
  toolbarElements?: React.ReactNode;
14
14
  /** The value of the input, this is an EditorState immutable object */
15
- value: Record<string, unknown>;
15
+ value: EditorState;
16
16
  /** Flag to configure component as mandatory */
17
17
  required?: boolean;
18
18
  /** Message to be displayed when there is an error */
@@ -291,7 +291,8 @@ const TextEditor = /*#__PURE__*/_react.default.forwardRef(({
291
291
  ariaLabelledBy: labelId.current,
292
292
  ariaDescribedBy: labelId.current,
293
293
  blockStyleFn: _utils.blockStyleFn,
294
- keyBindingFn: keyBindingFn
294
+ keyBindingFn: keyBindingFn,
295
+ tabIndex: 0
295
296
  }), _react.default.Children.map(previews, preview => {
296
297
  const {
297
298
  onClose
@@ -8,11 +8,11 @@ export interface TextEditorProps extends MarginProps {
8
8
  /** The text for the editor's label */
9
9
  labelText: string;
10
10
  /** onChange callback to control value updates */
11
- onChange: (event: Record<string, unknown>) => void;
11
+ onChange: (event: EditorState) => void;
12
12
  /** Additional elements to be rendered in the Editor Toolbar, e.g. Save and Cancel Button */
13
13
  toolbarElements?: React.ReactNode;
14
14
  /** The value of the input, this is an EditorState immutable object */
15
- value: Record<string, unknown>;
15
+ value: EditorState;
16
16
  /** Flag to configure component as mandatory */
17
17
  required?: boolean;
18
18
  /** Message to be displayed when there is an error */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "114.6.0",
3
+ "version": "114.6.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",