@orangesix/react 1.0.6 → 1.0.9

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/editor/index.d.ts CHANGED
@@ -65,28 +65,47 @@ interface ApiFieldComponentProps {
65
65
  interface EditorProps extends ApiComponentProps, ApiFieldComponentProps {
66
66
 
67
67
  /**
68
- * Define o valor de entrada do campo
68
+ * Valor inicial do editor de texto
69
69
  */
70
- value: any
70
+ value: string;
71
71
 
72
72
  /**
73
- * Atualiza state com valor digitado no campo
73
+ * Define quais opção será renderizada no editor de texto
74
74
  */
75
- onChange(value: any): void
75
+ options?: EditorOptions | "basic" | "full"
76
76
 
77
77
  /**
78
- * Define o tipo de editor de texto que será renderizado
78
+ * Define a altura minima do editor
79
79
  */
80
- module?: "basic" | "complete"
80
+ height?: number
81
+
82
+ /**
83
+ * Método responsável por alterar o valor do state inicial
84
+ */
85
+ onChange(value: string): void
86
+ }
87
+
88
+ interface EditorOptions {
89
+ text: boolean
90
+ bold: boolean;
91
+ italic: boolean;
92
+ color: boolean
93
+ strike: boolean;
94
+ underline: boolean;
95
+ code: boolean;
96
+ highlight: boolean;
97
+ bulletlist: boolean
98
+ orderlist: boolean
99
+ link: boolean
100
+ image: boolean
81
101
  }
82
102
 
83
103
  /**
84
104
  * Componente - `Editor`
85
105
  *
86
- * Um componente versátil que pode ser utilizado para criar um palco de edição de texto.
106
+ * Um componente versátil que pode ser utilizado para criar container de edição de texto.
107
+ * Permite personalizar o estilo e o conteúdo através de propriedades.
87
108
  */
88
- declare const Editor: ({ iconPrefix, module, ...props }: EditorProps) => React.JSX.Element;
89
-
90
- type IEditorProps = EditorProps;
109
+ declare const Editor: ({ options, iconPrefix, ...props }: EditorProps) => React.JSX.Element | null;
91
110
 
92
- export { Editor, type IEditorProps };
111
+ export { Editor };