Skip to content

Commit b585bf8

Browse files
committed
fix build
1 parent b7dd5e2 commit b585bf8

File tree

1 file changed

+29
-30
lines changed
  • packages/tiptap/src/components/OnyxTextEditor

1 file changed

+29
-30
lines changed

packages/tiptap/src/components/OnyxTextEditor/types.ts

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
11
import type { Extensions } from "@tiptap/vue-3";
2-
import type { Nullable, OnyxTextareaProps } from "sit-onyx";
2+
import type { Nullable, OnyxTextareaProps, SharedFormElementProps } from "sit-onyx";
33
import type { InjectionKey, Ref } from "vue";
44

55
// TODO: consider the following features if possible:
66
// required, min/max length, custom errors, autocapitalize
7-
export type OnyxTextEditorProps = Pick<
8-
OnyxTextareaProps,
9-
| "label"
10-
| "labelTooltip"
11-
| "disableManualResize"
12-
| "disabled"
13-
| "hideLabel"
14-
| "autosize"
15-
| "autofocus"
16-
| "message"
17-
| "success"
18-
| "density"
19-
| "placeholder"
20-
| "reserveMessageSpace"
21-
> & {
22-
/**
23-
* Current editor value.
24-
*/
25-
modelValue?: Nullable<string>;
26-
/**
27-
* Toolbar config.
28-
*/
29-
toolbar?: ToolbarOptions;
30-
/**
31-
* Tiptap extensions to use. Should not be changed dynamically.
32-
* If set, default extensions will be overridden. Use or configure the OnyxStarterKit in this case.
33-
*/
34-
extensions?: Extensions;
35-
};
7+
export type OnyxTextEditorProps = Pick<OnyxTextareaProps, "disableManualResize" | "autosize"> &
8+
Pick<
9+
SharedFormElementProps,
10+
| "label"
11+
| "labelTooltip"
12+
| "disabled"
13+
| "hideLabel"
14+
| "autofocus"
15+
| "message"
16+
| "success"
17+
| "density"
18+
| "placeholder"
19+
| "reserveMessageSpace"
20+
> & {
21+
/**
22+
* Current editor value.
23+
*/
24+
modelValue?: Nullable<string>;
25+
/**
26+
* Toolbar config.
27+
*/
28+
toolbar?: ToolbarOptions;
29+
/**
30+
* Tiptap extensions to use. Should not be changed dynamically.
31+
* If set, default extensions will be overridden. Use or configure the OnyxStarterKit in this case.
32+
*/
33+
extensions?: Extensions;
34+
};
3635

3736
export type ToolbarOptions = {
3837
/**

0 commit comments

Comments
 (0)