asma-ui-richeditor 0.1.30 → 0.2.7

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.
@@ -13,6 +13,14 @@ export interface IRichInput extends UseEditorOptions {
13
13
  id?: string;
14
14
  title?: string;
15
15
  placeholder?: string;
16
+ /**
17
+ * @description Use this to pass a dynamic placeholder that requires some derived state like isFocused
18
+ */
19
+ placeholderCallback?: (PlaceholderProps: {
20
+ editor: Editor;
21
+ pos: number;
22
+ hasAnchor: boolean;
23
+ }) => string;
16
24
  className?: string;
17
25
  editorClassName?: string;
18
26
  disabled?: boolean;