@sit-onyx/tiptap 0.2.0-dev-20260409093533 → 0.2.0-dev-20260409103041
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.
|
@@ -88,7 +88,7 @@ declare function __VLS_template(): {
|
|
|
88
88
|
popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
|
|
89
89
|
}> & Omit<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
|
|
90
90
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
91
|
-
}>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> &
|
|
91
|
+
}>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
92
92
|
$slots: Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots> & import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots;
|
|
93
93
|
}) | null;
|
|
94
94
|
nativeInput: HTMLInputElement;
|
|
@@ -188,7 +188,7 @@ declare const __VLS_component: import('@vue/runtime-core').DefineComponent<OnyxT
|
|
|
188
188
|
popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
|
|
189
189
|
}> & Omit<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
|
|
190
190
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
191
|
-
}>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> &
|
|
191
|
+
}>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
192
192
|
$slots: Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots> & import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots;
|
|
193
193
|
}) | null;
|
|
194
194
|
nativeInput: HTMLInputElement;
|
|
@@ -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
|
/**
|