@lexical/react 0.35.0 → 0.35.1-nightly.20250908.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.
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- /// <reference types="react" />
9
8
  import type { Doc } from 'yjs';
10
9
  export type CollaborationContextType = {
11
10
  clientID: number;
@@ -45,7 +45,7 @@ function useYjsCollaboration(editor, id, provider, docMap, name, color, shouldBo
45
45
  const disconnect = React.useCallback(() => {
46
46
  try {
47
47
  provider.disconnect();
48
- } catch (e) {
48
+ } catch (_e) {
49
49
  // Do nothing
50
50
  }
51
51
  }, [provider]);
@@ -31,7 +31,7 @@ function useYjsCollaboration(editor, id, provider, docMap, name, color, shouldBo
31
31
  const disconnect = useCallback(() => {
32
32
  try {
33
33
  provider.disconnect();
34
- } catch (e) {
34
+ } catch (_e) {
35
35
  // Do nothing
36
36
  }
37
37
  }, [provider]);
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- /// <reference types="react" />
9
8
  import type { EditorThemeClasses, LexicalEditor } from 'lexical';
10
9
  export type LexicalComposerContextType = {
11
10
  getTheme: () => EditorThemeClasses | null | undefined;
@@ -19,7 +19,7 @@ export type ContentEditableProps = Omit<ContentEditableElementProps, 'editor'> &
19
19
  * @deprecated This type has been renamed to `ContentEditableProps` to provide a clearer and more descriptive name.
20
20
  * For backward compatibility, this type is still exported as `Props`, but it is recommended to migrate to using `ContentEditableProps` instead.
21
21
  *
22
- * @note This alias is maintained for compatibility purposes but may be removed in future versions.
22
+ * This alias is maintained for compatibility purposes but may be removed in future versions.
23
23
  * Please update your codebase to use `ContentEditableProps` to ensure long-term maintainability.
24
24
  */
25
25
  export type Props = ContentEditableProps;
@@ -187,7 +187,7 @@ function useCanShowPlaceholder(editor) {
187
187
  * @deprecated This type has been renamed to `ContentEditableProps` to provide a clearer and more descriptive name.
188
188
  * For backward compatibility, this type is still exported as `Props`, but it is recommended to migrate to using `ContentEditableProps` instead.
189
189
  *
190
- * @note This alias is maintained for compatibility purposes but may be removed in future versions.
190
+ * This alias is maintained for compatibility purposes but may be removed in future versions.
191
191
  * Please update your codebase to use `ContentEditableProps` to ensure long-term maintainability.
192
192
  */
193
193
 
@@ -185,7 +185,7 @@ function useCanShowPlaceholder(editor) {
185
185
  * @deprecated This type has been renamed to `ContentEditableProps` to provide a clearer and more descriptive name.
186
186
  * For backward compatibility, this type is still exported as `Props`, but it is recommended to migrate to using `ContentEditableProps` instead.
187
187
  *
188
- * @note This alias is maintained for compatibility purposes but may be removed in future versions.
188
+ * This alias is maintained for compatibility purposes but may be removed in future versions.
189
189
  * Please update your codebase to use `ContentEditableProps` to ensure long-term maintainability.
190
190
  */
191
191
 
@@ -464,7 +464,7 @@ function tryToPositionRange(leadOffset, range, editorWindow) {
464
464
  try {
465
465
  range.setStart(anchorNode, startOffset);
466
466
  range.setEnd(anchorNode, endOffset);
467
- } catch (error) {
467
+ } catch (_error) {
468
468
  return false;
469
469
  }
470
470
  return true;
@@ -462,7 +462,7 @@ function tryToPositionRange(leadOffset, range, editorWindow) {
462
462
  try {
463
463
  range.setStart(anchorNode, startOffset);
464
464
  range.setEnd(anchorNode, endOffset);
465
- } catch (error) {
465
+ } catch (_error) {
466
466
  return false;
467
467
  }
468
468
  return true;
package/package.json CHANGED
@@ -8,25 +8,25 @@
8
8
  "rich-text"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.35.0",
11
+ "version": "0.35.1-nightly.20250908.0",
12
12
  "dependencies": {
13
13
  "@floating-ui/react": "^0.27.8",
14
- "@lexical/devtools-core": "0.35.0",
15
- "@lexical/dragon": "0.35.0",
16
- "@lexical/hashtag": "0.35.0",
17
- "@lexical/history": "0.35.0",
18
- "@lexical/link": "0.35.0",
19
- "@lexical/list": "0.35.0",
20
- "@lexical/mark": "0.35.0",
21
- "@lexical/markdown": "0.35.0",
22
- "@lexical/overflow": "0.35.0",
23
- "@lexical/plain-text": "0.35.0",
24
- "@lexical/rich-text": "0.35.0",
25
- "@lexical/table": "0.35.0",
26
- "@lexical/text": "0.35.0",
27
- "@lexical/utils": "0.35.0",
28
- "@lexical/yjs": "0.35.0",
29
- "lexical": "0.35.0",
14
+ "@lexical/devtools-core": "0.35.1-nightly.20250908.0",
15
+ "@lexical/dragon": "0.35.1-nightly.20250908.0",
16
+ "@lexical/hashtag": "0.35.1-nightly.20250908.0",
17
+ "@lexical/history": "0.35.1-nightly.20250908.0",
18
+ "@lexical/link": "0.35.1-nightly.20250908.0",
19
+ "@lexical/list": "0.35.1-nightly.20250908.0",
20
+ "@lexical/mark": "0.35.1-nightly.20250908.0",
21
+ "@lexical/markdown": "0.35.1-nightly.20250908.0",
22
+ "@lexical/overflow": "0.35.1-nightly.20250908.0",
23
+ "@lexical/plain-text": "0.35.1-nightly.20250908.0",
24
+ "@lexical/rich-text": "0.35.1-nightly.20250908.0",
25
+ "@lexical/table": "0.35.1-nightly.20250908.0",
26
+ "@lexical/text": "0.35.1-nightly.20250908.0",
27
+ "@lexical/utils": "0.35.1-nightly.20250908.0",
28
+ "@lexical/yjs": "0.35.1-nightly.20250908.0",
29
+ "lexical": "0.35.1-nightly.20250908.0",
30
30
  "react-error-boundary": "^3.1.4"
31
31
  },
32
32
  "peerDependencies": {
@@ -26,18 +26,18 @@ export type ContentEditableElementProps = {
26
26
  } & Omit<React.AllHTMLAttributes<HTMLDivElement>, 'placeholder'>;
27
27
  export declare const ContentEditableElement: React.ForwardRefExoticComponent<{
28
28
  editor: LexicalEditor;
29
- ariaActiveDescendant?: React.AriaAttributes['aria-activedescendant'];
30
- ariaAutoComplete?: React.AriaAttributes['aria-autocomplete'];
31
- ariaControls?: React.AriaAttributes['aria-controls'];
32
- ariaDescribedBy?: React.AriaAttributes['aria-describedby'];
33
- ariaErrorMessage?: React.AriaAttributes['aria-errormessage'];
34
- ariaExpanded?: React.AriaAttributes['aria-expanded'];
35
- ariaInvalid?: React.AriaAttributes['aria-invalid'];
36
- ariaLabel?: React.AriaAttributes['aria-label'];
37
- ariaLabelledBy?: React.AriaAttributes['aria-labelledby'];
38
- ariaMultiline?: React.AriaAttributes['aria-multiline'];
39
- ariaOwns?: React.AriaAttributes['aria-owns'];
40
- ariaRequired?: React.AriaAttributes['aria-required'];
41
- autoCapitalize?: string | undefined;
29
+ ariaActiveDescendant?: React.AriaAttributes["aria-activedescendant"];
30
+ ariaAutoComplete?: React.AriaAttributes["aria-autocomplete"];
31
+ ariaControls?: React.AriaAttributes["aria-controls"];
32
+ ariaDescribedBy?: React.AriaAttributes["aria-describedby"];
33
+ ariaErrorMessage?: React.AriaAttributes["aria-errormessage"];
34
+ ariaExpanded?: React.AriaAttributes["aria-expanded"];
35
+ ariaInvalid?: React.AriaAttributes["aria-invalid"];
36
+ ariaLabel?: React.AriaAttributes["aria-label"];
37
+ ariaLabelledBy?: React.AriaAttributes["aria-labelledby"];
38
+ ariaMultiline?: React.AriaAttributes["aria-multiline"];
39
+ ariaOwns?: React.AriaAttributes["aria-owns"];
40
+ ariaRequired?: React.AriaAttributes["aria-required"];
41
+ autoCapitalize?: HTMLDivElement["autocapitalize"];
42
42
  'data-testid'?: string | null | undefined;
43
43
  } & Omit<React.AllHTMLAttributes<HTMLDivElement>, "placeholder"> & React.RefAttributes<HTMLDivElement>>;
@@ -5,5 +5,4 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- /// <reference types="react" />
9
8
  export declare function mergeRefs<T>(...refs: Array<React.MutableRefObject<T> | React.LegacyRef<T> | undefined | null>): React.RefCallback<T>;