@lexical/react 0.42.1-nightly.20260408.0 → 0.43.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.
@@ -7,7 +7,7 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- type Props = $ReadOnly<{
10
+ type Props = Readonly<{
11
11
  defaultSelection?: 'rootStart' | 'rootEnd',
12
12
  }>;
13
13
 
@@ -15,11 +15,11 @@ import type {
15
15
  NodeKey,
16
16
  } from 'lexical';
17
17
 
18
- type Props = $ReadOnly<{
18
+ type Props = Readonly<{
19
19
  children: React.Node,
20
20
  format: ?ElementFormatType,
21
21
  nodeKey: NodeKey,
22
- className: $ReadOnly<{
22
+ className: Readonly<{
23
23
  base: string,
24
24
  focus: string,
25
25
  }>,
@@ -7,7 +7,7 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- type Props = $ReadOnly<{
10
+ type Props = Readonly<{
11
11
  onClear?: () => void,
12
12
  }>;
13
13
 
@@ -28,7 +28,7 @@ type HTMLDivElementDOMProps = Readonly<{
28
28
  'aria-invalid'?: void | boolean,
29
29
  'aria-owns'?: void | string,
30
30
  'title'?: void | string,
31
- onClick?: void | ((e: SyntheticEvent<HTMLDivElement>) => mixed),
31
+ onClick?: void | ((e: SyntheticEvent<HTMLDivElement>) => unknown),
32
32
  autoCapitalize?: void | boolean,
33
33
  autoComplete?: void | boolean,
34
34
  autoCorrect?: void | boolean,
@@ -12,7 +12,7 @@ import type {LexicalEditor} from 'lexical';
12
12
  import type {TRefFor} from 'CoreTypes.flow';
13
13
 
14
14
 
15
- type Props = $ReadOnly<{
15
+ type Props = Readonly<{
16
16
  editorRef: TRefFor<LexicalEditor>,
17
17
  }>;
18
18
 
@@ -7,7 +7,7 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- export type LexicalErrorBoundaryProps = $ReadOnly<{
10
+ export type LexicalErrorBoundaryProps = Readonly<{
11
11
  children: React.Node,
12
12
  onError: (error: Error) => void,
13
13
  }>;
@@ -7,6 +7,6 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- type Props = $ReadOnly<{}>;
10
+ type Props = Readonly<{}>;
11
11
 
12
12
  declare export function HorizontalRulePlugin(props: Props): null;
@@ -13,7 +13,7 @@ type LinkAttributes = {
13
13
  title?: null | string;
14
14
  };
15
15
 
16
- type Props = $ReadOnly<{
16
+ type Props = Readonly<{
17
17
  validateUrl?: (url: string) => boolean,
18
18
  attributes?: LinkAttributes,
19
19
  }>;
@@ -18,7 +18,7 @@ export type LexicalNestedComposerProps = {
18
18
  children?: React.Node;
19
19
  initialEditor: LexicalEditor;
20
20
  initialTheme?: EditorThemeClasses;
21
- initialNodes?: $ReadOnlyArray<Class<LexicalNode> | LexicalNodeReplacement>;
21
+ initialNodes?: ReadonlyArray<Class<LexicalNode> | LexicalNodeReplacement>;
22
22
  skipCollabChecks?: void | true;
23
23
  skipEditableListener?: void | true;
24
24
  };
@@ -46,7 +46,7 @@ export type ReactConfig = {
46
46
  contentEditable: React.Node | null;
47
47
  ErrorBoundary: ErrorBoundaryType;
48
48
  EditorChildrenComponent: EditorChildrenComponentType;
49
- decorators: $ReadOnlyArray<DecoratorComponentType>;
49
+ decorators: ReadonlyArray<DecoratorComponentType>;
50
50
  };
51
51
 
52
52
  export type ReactOutputs = {
@@ -54,7 +54,7 @@ declare export function mountReactExtensionComponent<
54
54
  ): void;
55
55
 
56
56
  declare export function mountReactPluginComponent<
57
- P: {...} = {...},
57
+ P extends {...} = {...},
58
58
  >(
59
59
  editor: LexicalEditor,
60
60
  opts: {
@@ -7,7 +7,7 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- type Props = $ReadOnly<{
10
+ type Props = Readonly<{
11
11
  hasCellMerge?: boolean,
12
12
  hasCellBackgroundColor?: boolean,
13
13
  hasTabHandler?: boolean,
package/package.json CHANGED
@@ -8,26 +8,26 @@
8
8
  "rich-text"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.42.1-nightly.20260408.0",
11
+ "version": "0.43.0",
12
12
  "dependencies": {
13
13
  "@floating-ui/react": "^0.27.16",
14
- "@lexical/devtools-core": "0.42.1-nightly.20260408.0",
15
- "@lexical/dragon": "0.42.1-nightly.20260408.0",
16
- "@lexical/extension": "0.42.1-nightly.20260408.0",
17
- "@lexical/hashtag": "0.42.1-nightly.20260408.0",
18
- "@lexical/history": "0.42.1-nightly.20260408.0",
19
- "@lexical/link": "0.42.1-nightly.20260408.0",
20
- "@lexical/list": "0.42.1-nightly.20260408.0",
21
- "@lexical/mark": "0.42.1-nightly.20260408.0",
22
- "@lexical/markdown": "0.42.1-nightly.20260408.0",
23
- "@lexical/overflow": "0.42.1-nightly.20260408.0",
24
- "@lexical/plain-text": "0.42.1-nightly.20260408.0",
25
- "@lexical/rich-text": "0.42.1-nightly.20260408.0",
26
- "@lexical/table": "0.42.1-nightly.20260408.0",
27
- "@lexical/text": "0.42.1-nightly.20260408.0",
28
- "@lexical/utils": "0.42.1-nightly.20260408.0",
29
- "@lexical/yjs": "0.42.1-nightly.20260408.0",
30
- "lexical": "0.42.1-nightly.20260408.0",
14
+ "@lexical/devtools-core": "0.43.0",
15
+ "@lexical/dragon": "0.43.0",
16
+ "@lexical/extension": "0.43.0",
17
+ "@lexical/hashtag": "0.43.0",
18
+ "@lexical/history": "0.43.0",
19
+ "@lexical/link": "0.43.0",
20
+ "@lexical/list": "0.43.0",
21
+ "@lexical/mark": "0.43.0",
22
+ "@lexical/markdown": "0.43.0",
23
+ "@lexical/overflow": "0.43.0",
24
+ "@lexical/plain-text": "0.43.0",
25
+ "@lexical/rich-text": "0.43.0",
26
+ "@lexical/table": "0.43.0",
27
+ "@lexical/text": "0.43.0",
28
+ "@lexical/utils": "0.43.0",
29
+ "@lexical/yjs": "0.43.0",
30
+ "lexical": "0.43.0",
31
31
  "react-error-boundary": "^6.0.0"
32
32
  },
33
33
  "peerDependencies": {