@editorcn/editor 0.3.7 → 0.3.8

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
@@ -1,6 +1,7 @@
1
1
  import { Editor } from '@tiptap/react';
2
2
  import * as react from 'react';
3
3
  import react__default from 'react';
4
+ import { Tooltip } from '@base-ui/react/tooltip';
4
5
  import * as _tiptap_core from '@tiptap/core';
5
6
  import { Node } from '@tiptap/core';
6
7
  import * as _tiptap_extension_link from '@tiptap/extension-link';
@@ -278,6 +279,10 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
278
279
  displayName: string;
279
280
  };
280
281
  Toolbar: ({ children, className, sticky, stickyOffset, }: RichTextEditorToolbarProps) => react.JSX.Element | null;
282
+ Tooltip: ({ children, label, }: {
283
+ children: React.ReactElement;
284
+ label: string;
285
+ }) => react.JSX.Element;
281
286
  TwitterEmbed: ({ className }: {
282
287
  className?: string;
283
288
  }) => react.JSX.Element;
@@ -310,6 +315,7 @@ interface RichTextEditorContextValue {
310
315
  icons: RichTextEditorIcons;
311
316
  variant: RichTextEditorVariant;
312
317
  editable: boolean;
318
+ tooltip: Tooltip.Handle<string>;
313
319
  }
314
320
  declare const useRichTextEditorContext: () => RichTextEditorContextValue;
315
321
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Editor } from '@tiptap/react';
2
2
  import * as react from 'react';
3
3
  import react__default from 'react';
4
+ import { Tooltip } from '@base-ui/react/tooltip';
4
5
  import * as _tiptap_core from '@tiptap/core';
5
6
  import { Node } from '@tiptap/core';
6
7
  import * as _tiptap_extension_link from '@tiptap/extension-link';
@@ -278,6 +279,10 @@ declare const RichTextEditor: (({ editor, children, className, labels, icons, va
278
279
  displayName: string;
279
280
  };
280
281
  Toolbar: ({ children, className, sticky, stickyOffset, }: RichTextEditorToolbarProps) => react.JSX.Element | null;
282
+ Tooltip: ({ children, label, }: {
283
+ children: React.ReactElement;
284
+ label: string;
285
+ }) => react.JSX.Element;
281
286
  TwitterEmbed: ({ className }: {
282
287
  className?: string;
283
288
  }) => react.JSX.Element;
@@ -310,6 +315,7 @@ interface RichTextEditorContextValue {
310
315
  icons: RichTextEditorIcons;
311
316
  variant: RichTextEditorVariant;
312
317
  editable: boolean;
318
+ tooltip: Tooltip.Handle<string>;
313
319
  }
314
320
  declare const useRichTextEditorContext: () => RichTextEditorContextValue;
315
321