@editorcn/editor 0.5.0 → 0.5.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.
package/dist/index.d.cts CHANGED
@@ -191,7 +191,7 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
191
191
  displayName: string;
192
192
  };
193
193
  Content: ({ children, className, }: RichTextEditorContentProps) => react.JSX.Element;
194
- Control: ({ active, interactive: _interactive, className, children, onMouseDown, onClick, disabled, ...props }: RichTextEditorControlProps) => react.JSX.Element;
194
+ Control: react.ForwardRefExoticComponent<RichTextEditorControlProps & react.RefAttributes<HTMLButtonElement>>;
195
195
  ControlsGroup: ({ children, className, }: RichTextEditorControlsGroupProps) => react.JSX.Element;
196
196
  Footer: ({ children, className, sticky, stickyOffset, showWordCount, wordCountClassName, wordCountFormatter, }: RichTextEditorFooterProps) => react.JSX.Element | null;
197
197
  H1: {
@@ -280,8 +280,11 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
280
280
  displayName: string;
281
281
  };
282
282
  Toolbar: ({ children, className, sticky, stickyOffset, }: RichTextEditorToolbarProps) => react.JSX.Element | null;
283
- Tooltip: ({ children, label, }: {
284
- children: React.ReactElement;
283
+ Tooltip: ({ children, id, label, }: {
284
+ children: React.ReactElement<{
285
+ id?: string;
286
+ }>;
287
+ id?: string;
285
288
  label: string;
286
289
  }) => react.JSX.Element;
287
290
  TwitterEmbed: ({ className }: {
package/dist/index.d.ts CHANGED
@@ -191,7 +191,7 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
191
191
  displayName: string;
192
192
  };
193
193
  Content: ({ children, className, }: RichTextEditorContentProps) => react.JSX.Element;
194
- Control: ({ active, interactive: _interactive, className, children, onMouseDown, onClick, disabled, ...props }: RichTextEditorControlProps) => react.JSX.Element;
194
+ Control: react.ForwardRefExoticComponent<RichTextEditorControlProps & react.RefAttributes<HTMLButtonElement>>;
195
195
  ControlsGroup: ({ children, className, }: RichTextEditorControlsGroupProps) => react.JSX.Element;
196
196
  Footer: ({ children, className, sticky, stickyOffset, showWordCount, wordCountClassName, wordCountFormatter, }: RichTextEditorFooterProps) => react.JSX.Element | null;
197
197
  H1: {
@@ -280,8 +280,11 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
280
280
  displayName: string;
281
281
  };
282
282
  Toolbar: ({ children, className, sticky, stickyOffset, }: RichTextEditorToolbarProps) => react.JSX.Element | null;
283
- Tooltip: ({ children, label, }: {
284
- children: React.ReactElement;
283
+ Tooltip: ({ children, id, label, }: {
284
+ children: React.ReactElement<{
285
+ id?: string;
286
+ }>;
287
+ id?: string;
285
288
  label: string;
286
289
  }) => react.JSX.Element;
287
290
  TwitterEmbed: ({ className }: {