@iclips/ui 4.2.0 → 4.4.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.
- package/dist/components/ui/data/document-editor.cjs +1 -1
- package/dist/components/ui/data/document-editor.cjs.map +1 -1
- package/dist/components/ui/data/document-editor.js +175 -169
- package/dist/components/ui/data/document-editor.js.map +1 -1
- package/dist/components/ui/forms/month-range-picker.cjs +1 -1
- package/dist/components/ui/forms/month-range-picker.cjs.map +1 -1
- package/dist/components/ui/forms/month-range-picker.js +180 -155
- package/dist/components/ui/forms/month-range-picker.js.map +1 -1
- package/dist/components/ui/forms/number-input.cjs +1 -1
- package/dist/components/ui/forms/number-input.cjs.map +1 -1
- package/dist/components/ui/forms/number-input.js +123 -110
- package/dist/components/ui/forms/number-input.js.map +1 -1
- package/dist/editor.d.cts +9 -1
- package/dist/editor.d.ts +9 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/docs/formularios.md +1 -1
- package/package.json +1 -1
package/dist/editor.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyExtension } from '@tiptap/react';
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
2
3
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
4
|
import { JSX } from 'react/jsx-runtime';
|
|
4
5
|
import { RefAttributes } from 'react';
|
|
@@ -94,7 +95,7 @@ export declare interface CommentUser {
|
|
|
94
95
|
role: UserRole;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
export declare function DocumentEditor({ content, onChange, placeholder, variant, className, readOnly, label, onImageUpload, imageDefaults, imageAcceptedTypes, imageMaxBytes, imageHint, page, }: DocumentEditorProps): JSX.Element | null;
|
|
98
|
+
export declare function DocumentEditor({ content, onChange, placeholder, variant, className, readOnly, label, onImageUpload, imageDefaults, imageAcceptedTypes, imageMaxBytes, imageHint, page, onReady, }: DocumentEditorProps): JSX.Element | null;
|
|
98
99
|
|
|
99
100
|
declare interface DocumentEditorImageDefaults {
|
|
100
101
|
/** Largura, em px CSS, com que uma imagem recém-inserida entra (padrão: 5 cm). */
|
|
@@ -126,11 +127,18 @@ export declare interface DocumentEditorProps {
|
|
|
126
127
|
imageHint?: string;
|
|
127
128
|
/** Só no `full`. Desenha o documento como uma folha. */
|
|
128
129
|
page?: DocumentPage;
|
|
130
|
+
/**
|
|
131
|
+
* Chamado uma vez, com o editor Tiptap, assim que ele existe. Para a tela inserir conteúdo de fora
|
|
132
|
+
* (ex.: um tópico clicado ao lado do editor) ou levar o cursor a um ponto do texto.
|
|
133
|
+
*/
|
|
134
|
+
onReady?: (editor: Editor) => void;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
/** Formato de folha. Só vale no `variant="full"`; hoje existe apenas A4. */
|
|
132
138
|
declare type DocumentPage = 'a4';
|
|
133
139
|
|
|
140
|
+
export { Editor }
|
|
141
|
+
|
|
134
142
|
export declare function EditorialCalendar(props: BaseCalendarProps): JSX.Element;
|
|
135
143
|
|
|
136
144
|
export declare type EditorVariant = 'simple' | 'full';
|