@sit-onyx/tiptap 0.2.0-dev-20260409100058 → 0.2.0-dev-20260409155058
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/OnyxTextEditor/types.d.ts +11 -1
- package/dist/index.js +1814 -1778
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Extensions } from '@tiptap/vue-3';
|
|
2
2
|
import { Nullable, OnyxFormElementV2Props, OnyxTextareaProps, SharedFormElementProps } from 'sit-onyx';
|
|
3
3
|
import { InjectionKey, Ref } from 'vue';
|
|
4
|
-
export type OnyxTextEditorProps = Omit<OnyxFormElementV2Props, "open" | "popoverOptions" | "id"> & Pick<SharedFormElementProps, "disabled" | "autofocus" | "placeholder"> & Pick<OnyxTextareaProps, "disableManualResize" | "autosize"> & {
|
|
4
|
+
export type OnyxTextEditorProps = Omit<OnyxFormElementV2Props, "open" | "popoverOptions" | "id"> & Pick<SharedFormElementProps, "disabled" | "autofocus" | "placeholder"> & Pick<OnyxTextareaProps, "disableManualResize" | "autosize" | "withCounter"> & {
|
|
5
5
|
/**
|
|
6
6
|
* Current editor value.
|
|
7
7
|
*/
|
|
@@ -15,6 +15,16 @@ export type OnyxTextEditorProps = Omit<OnyxFormElementV2Props, "open" | "popover
|
|
|
15
15
|
* If set, default extensions will be overridden. Use or configure the OnyxStarterKit in this case.
|
|
16
16
|
*/
|
|
17
17
|
extensions?: Extensions;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum number of characters that have to to be entered.
|
|
20
|
+
* Character count is determined using Tiptap's [CharacterCount extension](https://tiptap.dev/docs/editor/extensions/functionality/character-count).
|
|
21
|
+
*/
|
|
22
|
+
minlength?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum number of characters that are allowed to be entered.
|
|
25
|
+
* Character count is determined using Tiptap's [CharacterCount extension](https://tiptap.dev/docs/editor/extensions/functionality/character-count).
|
|
26
|
+
*/
|
|
27
|
+
maxlength?: number;
|
|
18
28
|
};
|
|
19
29
|
export type ToolbarOptions = {
|
|
20
30
|
/**
|