@sit-onyx/tiptap 0.2.0 → 0.3.0-dev-20260529080515

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.
@@ -0,0 +1 @@
1
+ [{"exportName":"default","displayName":"OnyxEditorToolbarFlyout","type":1,"props":[{"name":"label","global":false,"description":"Label for the flyout button.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},{"name":"icon","global":false,"description":"Icon for the flyout button.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},{"name":"options","global":false,"description":"List of available options.","tags":[],"required":true,"type":"EditorToolbarFlyoutOption[]","schema":"EditorToolbarFlyoutOption[]","declarations":[]}],"events":[],"slots":[],"exposed":[]},{"exportName":"default","displayName":"OnyxEditorToolbarAction","type":1,"props":[{"name":"label","global":false,"description":"Button label / text to show. Is always required (even if `icon` is set) for screen readers / accessibility.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},{"name":"disabled","global":false,"description":"If the button should be disabled or not.","tags":[],"required":false,"type":"FormInjected<boolean> | undefined","schema":{"kind":"enum","type":"FormInjected<boolean> | undefined","schema":["undefined","false","true","symbol"]},"declarations":[]},{"name":"icon","global":false,"description":"Icon to show. Will visually hide the label if set.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},{"name":"active","global":false,"description":"Whether the action is currently active.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]}],"events":[],"slots":[{"name":"default","type":"any","description":"Optional slot to override the button content.","tags":[],"schema":"any","declarations":[]}],"exposed":[]},{"exportName":"default","displayName":"OnyxEditorToolbarGroup","type":1,"props":[],"events":[],"slots":[{"name":"default","type":"any","description":"Toolbar actions related to this group.","tags":[],"schema":"any","declarations":[]}],"exposed":[]},{"exportName":"default","displayName":"OnyxTextEditor","type":1,"props":[{"name":"label","global":false,"description":"Label to show for the element. Required due to accessibility / screen readers.\nIf you want to visually hide the label, use the `label.hidden` property.","tags":[],"required":true,"type":"string | FormElementV2LabelOptions","schema":{"kind":"enum","type":"string | FormElementV2LabelOptions","schema":["string",{"kind":"object","type":"FormElementV2LabelOptions","schema":{"label":{"name":"label","global":false,"description":"Label displayed outside of the tooltip.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},"tooltipText":{"name":"tooltipText","global":false,"description":"Actual tooltip text.","tags":[],"required":false,"type":"string | undefined","schema":{"kind":"enum","type":"string | undefined","schema":["undefined","string"]},"declarations":[]},"position":{"name":"position","global":false,"description":"How to position the label relative to the main content.","tags":[],"required":false,"type":"\"top\" | \"left\" | \"right\" | undefined","schema":{"kind":"enum","type":"\"top\" | \"left\" | \"right\" | undefined","schema":["undefined","\"top\"","\"left\"","\"right\""]},"declarations":[]},"hidden":{"name":"hidden","global":false,"description":"If `true`, the label will be visually hidden.\nFor accessibility / screen readers, the aria-label will still be set.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]}}}]},"declarations":[]},{"name":"skeleton","global":false,"default":"SKELETON_INJECTED_SYMBOL","description":"Whether to show as skeleton.","tags":[],"required":false,"type":"SkeletonInjected | undefined","schema":{"kind":"enum","type":"SkeletonInjected | undefined","schema":["undefined","number","false","true","symbol"]},"declarations":[]},{"name":"requiredMarker","global":false,"default":"FORM_INJECTED_SYMBOL","description":"How to display the required / optional marker.\n- optional: will show an `(optional)` text after the label for optional form elements.\n- required: will show an `*` indicator for required inputs after the label instead.\n\nNo marker will be visible if the label is hidden.","tags":[{"name":"default","text":"Inherits value from closest `<OnyxForm>` component or `required` if none exists"}],"required":false,"type":"FormInjected<\"required\" | \"optional\"> | undefined","schema":{"kind":"enum","type":"FormInjected<\"required\" | \"optional\"> | undefined","schema":["undefined","symbol","\"required\"","\"optional\""]},"declarations":[]},{"name":"reserveMessageSpace","global":false,"default":"FORM_INJECTED_SYMBOL","description":"Always reserves the space required to show `error` or other messages.\nSubsequently this will increase the height of the form element permanently.\nWe recommend to enable this to avoid layout shifts.","tags":[{"name":"default","text":"Inherits value from closest `<OnyxForm>` component, defaults to `false` otherwise"}],"required":false,"type":"FormInjected<boolean> | undefined","schema":{"kind":"enum","type":"FormInjected<boolean> | undefined","schema":["undefined","false","true","symbol"]},"declarations":[]},{"name":"showError","global":false,"default":"FORM_INJECTED_SYMBOL","description":"Configures if and when errors are shown.\n- `true`: errors will be shown initially.\n- `false`: errors will never be shown. ⚠️ Only the displaying of the error is effected! An error can still block submission!\n- \"touched\": only shows an error *after* a user has significantly interacted with the input, see [\\:user-invalid](https://drafts.csswg.org/selectors/#user-invalid-pseudo)","tags":[{"name":"default","text":"Inherits value from closest `<OnyxForm>` component or `touched` if none exists"}],"required":false,"type":"FormInjected<ShowErrorMode> | undefined","schema":{"kind":"enum","type":"FormInjected<ShowErrorMode> | undefined","schema":["undefined","false","true","symbol","\"touched\""]},"declarations":[]},{"name":"density","global":false,"description":"Density defines the amount of vertical white space a component has and the height of the main (interactive) element of a component.","tags":[{"name":"default","text":"undefined By default the parents setting is used, if none is defined on any parent `default` is the default."}],"required":false,"type":"\"default\" | \"compact\" | \"cozy\" | undefined","schema":{"kind":"enum","type":"\"default\" | \"compact\" | \"cozy\" | undefined","schema":["undefined","\"default\"","\"compact\"","\"cozy\""]},"declarations":[]},{"name":"message","global":false,"description":"Optional message to show below the form element.","tags":[],"required":false,"type":"string | FormElementV2Tooltip | undefined","schema":{"kind":"enum","type":"string | FormElementV2Tooltip | undefined","schema":["undefined","string",{"kind":"object","type":"FormElementV2Tooltip","schema":{"label":{"name":"label","global":false,"description":"Label displayed outside of the tooltip.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},"tooltipText":{"name":"tooltipText","global":false,"description":"Actual tooltip text.","tags":[],"required":false,"type":"string | undefined","schema":{"kind":"enum","type":"string | undefined","schema":["undefined","string"]},"declarations":[]}}}]},"declarations":[]},{"name":"error","global":false,"description":"Optional error message to show below the form element.","tags":[],"required":false,"type":"string | FormElementV2Tooltip | undefined","schema":{"kind":"enum","type":"string | FormElementV2Tooltip | undefined","schema":["undefined","string",{"kind":"object","type":"FormElementV2Tooltip","schema":{"label":{"name":"label","global":false,"description":"Label displayed outside of the tooltip.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},"tooltipText":{"name":"tooltipText","global":false,"description":"Actual tooltip text.","tags":[],"required":false,"type":"string | undefined","schema":{"kind":"enum","type":"string | undefined","schema":["undefined","string"]},"declarations":[]}}}]},"declarations":[]},{"name":"success","global":false,"description":"Optional success message to show below the form element.","tags":[],"required":false,"type":"string | FormElementV2Tooltip | undefined","schema":{"kind":"enum","type":"string | FormElementV2Tooltip | undefined","schema":["undefined","string",{"kind":"object","type":"FormElementV2Tooltip","schema":{"label":{"name":"label","global":false,"description":"Label displayed outside of the tooltip.","tags":[],"required":true,"type":"string","schema":"string","declarations":[]},"tooltipText":{"name":"tooltipText","global":false,"description":"Actual tooltip text.","tags":[],"required":false,"type":"string | undefined","schema":{"kind":"enum","type":"string | undefined","schema":["undefined","string"]},"declarations":[]}}}]},"declarations":[]},{"name":"required","global":false,"description":"Whether the a value for this form element is required.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]},{"name":"loading","global":false,"description":"Whether a loading indicator should be shown.\nWill hide the `leadingIcons` slot if set.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]},{"name":"disabled","global":false,"default":"FORM_INJECTED_SYMBOL","description":"Whether the input should be disabled and prevent the user from interacting with it.\nDisabled makes the element not mutable, focusable, or even submitted with the form.\nIt will also not be validated.","tags":[{"name":"default","text":"Inherits value from closest `<OnyxForm>` component, defaults to `false` otherwise"}],"required":false,"type":"FormInjected<boolean> | undefined","schema":{"kind":"enum","type":"FormInjected<boolean> | undefined","schema":["undefined","false","true","symbol"]},"declarations":[]},{"name":"autofocus","global":false,"description":"Whether to focus the component on page load or inside a dialog/popover once it opens.\nCan only be enabled for one element inside a page/dialog/popover.\nNote: Has no effect when set after the component has been mounted.\n\n**UX / Accessibility**: autofocus should be used carefully since it can reduce usability and accessibility for users.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]},{"name":"placeholder","global":false,"description":"Placeholder to show when the value is empty.","tags":[],"required":false,"type":"string | undefined","schema":{"kind":"enum","type":"string | undefined","schema":["undefined","string"]},"declarations":[]},{"name":"withCounter","global":false,"description":"If `true`, a character counter will be displayed if `maxLength` is set.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]},{"name":"disableManualResize","global":false,"description":"If `true`, the user will not be able to manually resize the textarea by dragging the bottom right corner.","tags":[],"required":false,"type":"boolean | undefined","schema":{"kind":"enum","type":"boolean | undefined","schema":["undefined","false","true"]},"declarations":[]},{"name":"autosize","global":false,"description":"Override the default autosize behavior (height adjusts based on the current value).\nBy default, the textarea will autosize while maintaining at least 3 and at most 10 rows.\nIf the user resizes the textarea manually, the autosize will no longer work and the height\nset by the user is used.","tags":[],"required":false,"type":"TextareaAutosize | undefined","schema":{"kind":"enum","type":"TextareaAutosize | undefined","schema":["undefined",{"kind":"object","type":"TextareaAutosize","schema":{"min":{"name":"min","global":false,"description":"Sets the min height to the given number of rows/lines.\nMust be `>= 2`. Will also be considered if the user resizes manually.","tags":[],"required":false,"type":"number | undefined","schema":{"kind":"enum","type":"number | undefined","schema":["undefined","number"]},"declarations":[]},"max":{"name":"max","global":false,"description":"Sets the max height to the given number of rows/lines.\nIf omitted, the textarea can grow unlimited.\nWill be ignored if the user resizes manually.","tags":[],"required":false,"type":"number | undefined","schema":"number | undefined","declarations":[]}}}]},"declarations":[]},{"name":"modelValue","global":false,"description":"Current editor value.","tags":[],"required":false,"type":"Nullable<string>","schema":{"kind":"enum","type":"Nullable<string>","schema":["undefined","null","string"]},"declarations":[]},{"name":"toolbar","global":false,"default":"{ position: \"top\" }","description":"Toolbar config.","tags":[],"required":false,"type":"ToolbarOptions | undefined","schema":{"kind":"enum","type":"ToolbarOptions | undefined","schema":["undefined",{"kind":"object","type":"ToolbarOptions","schema":{"position":{"name":"position","global":false,"description":"How to position the toolbar.","tags":[{"name":"default","text":"\"top\""}],"required":false,"type":"\"top\" | \"bottom\" | undefined","schema":{"kind":"enum","type":"\"top\" | \"bottom\" | undefined","schema":["undefined","\"top\"","\"bottom\""]},"declarations":[]}}}]},"declarations":[]},{"name":"extensions","global":false,"default":"[OnyxStarterKit]","description":"Tiptap extensions to use. Should not be changed dynamically.\nIf set, default extensions will be overridden. Use or configure the OnyxStarterKit in this case.","tags":[],"required":false,"type":"Extensions | undefined","schema":{"kind":"enum","type":"Extensions | undefined","schema":["undefined","Extensions"]},"declarations":[]},{"name":"minlength","global":false,"description":"Minimum number of characters that have to to be entered.\nCharacter count is determined using Tiptap's [CharacterCount extension](https://tiptap.dev/docs/editor/extensions/functionality/character-count).","tags":[],"required":false,"type":"number | undefined","schema":{"kind":"enum","type":"number | undefined","schema":["undefined","number"]},"declarations":[]},{"name":"maxlength","global":false,"description":"Maximum number of characters that are allowed to be entered.\nCharacter count is determined using Tiptap's [CharacterCount extension](https://tiptap.dev/docs/editor/extensions/functionality/character-count).","tags":[],"required":false,"type":"number | undefined","schema":{"kind":"enum","type":"number | undefined","schema":["undefined","number"]},"declarations":[]}],"events":[{"name":"update:modelValue","description":"Emitted when the value of the editor changes.","tags":[],"type":"[value: string]","signature":"(event: \"update:modelValue\", value: string): void","schema":["string"],"declarations":[]}],"slots":[{"name":"actions","type":"any","description":"Optional slot to add custom actions to the toolbar.","tags":[],"schema":"any","declarations":[]}],"exposed":[{"name":"editor","type":"Editor | undefined","description":"Tiptap editor instance.","tags":[],"schema":{"kind":"enum","type":"Editor | undefined","schema":["undefined","Editor"]},"declarations":[]}]},{"exportName":"default","displayName":"EditorToolbar","type":1,"props":[{"name":"editor","global":false,"description":"","tags":[],"required":false,"type":"Editor | undefined","schema":{"kind":"enum","type":"Editor | undefined","schema":["undefined","Editor"]},"declarations":[]}],"events":[],"slots":[{"name":"default","type":"any","description":"Optional slot to add custom actions to the toolbar.","tags":[],"schema":"any","declarations":[]}],"exposed":[]},{"exportName":"default","displayName":"HeadingToolbarAction","type":1,"props":[{"name":"editor","global":false,"description":"","tags":[],"required":false,"type":"Editor | undefined","schema":{"kind":"enum","type":"Editor | undefined","schema":["undefined","Editor"]},"declarations":[]}],"events":[],"slots":[],"exposed":[]},{"exportName":"default","displayName":"ListToolbarAction","type":1,"props":[{"name":"editor","global":false,"description":"","tags":[],"required":false,"type":"Editor | undefined","schema":{"kind":"enum","type":"Editor | undefined","schema":["undefined","Editor"]},"declarations":[]}],"events":[],"slots":[],"exposed":[]},{"exportName":"default","displayName":"LinkToolbarAction","type":1,"props":[{"name":"editor","global":false,"description":"","tags":[],"required":false,"type":"Editor | undefined","schema":{"kind":"enum","type":"Editor | undefined","schema":["undefined","Editor"]},"declarations":[]}],"events":[],"slots":[],"exposed":[]}]
@@ -1,25 +1,15 @@
1
1
  import { OnyxEditorToolbarActionProps } from './types.js';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Optional slot to override the button content.
7
- */
8
- default?(): unknown;
9
- }> & {
10
- /**
11
- * Optional slot to override the button content.
12
- */
13
- default?(): unknown;
14
- };
15
- refs: {};
16
- rootEl: any;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Optional slot to override the button content.
5
+ */
6
+ default?(): unknown;
17
7
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import('@vue/runtime-core').DefineComponent<OnyxEditorToolbarActionProps, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<OnyxEditorToolbarActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: import('@vue/runtime-core').DefineComponent<OnyxEditorToolbarActionProps, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<OnyxEditorToolbarActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
21
11
  export default _default;
22
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
23
13
  new (): {
24
14
  $slots: S;
25
15
  };
@@ -1,3 +1,4 @@
1
1
  import { OnyxEditorToolbarFlyoutProps } from './types.js';
2
- declare const _default: import('@vue/runtime-core').DefineComponent<OnyxEditorToolbarFlyoutProps, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<OnyxEditorToolbarFlyoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import('@vue/runtime-core').DefineComponent<OnyxEditorToolbarFlyoutProps, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<OnyxEditorToolbarFlyoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
3
4
  export default _default;
@@ -1,24 +1,14 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: Readonly<{
4
- /**
5
- * Toolbar actions related to this group.
6
- */
7
- default(): unknown;
8
- }> & {
9
- /**
10
- * Toolbar actions related to this group.
11
- */
12
- default(): unknown;
13
- };
14
- refs: {};
15
- rootEl: HTMLDivElement;
1
+ type __VLS_Slots = {
2
+ /**
3
+ * Toolbar actions related to this group.
4
+ */
5
+ default(): unknown;
16
6
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLDivElement>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
+ declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
20
10
  export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
11
+ type __VLS_WithSlots<T, S> = T & {
22
12
  new (): {
23
13
  $slots: S;
24
14
  };
@@ -2,27 +2,17 @@ import { Editor } from '@tiptap/vue-3';
2
2
  type __VLS_Props = {
3
3
  editor?: Editor;
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- /**
9
- * Optional slot to add custom actions to the toolbar.
10
- */
11
- default?(): unknown;
12
- }> & {
13
- /**
14
- * Optional slot to add custom actions to the toolbar.
15
- */
16
- default?(): unknown;
17
- };
18
- refs: {};
19
- rootEl: HTMLDivElement;
5
+ type __VLS_Slots = {
6
+ /**
7
+ * Optional slot to add custom actions to the toolbar.
8
+ */
9
+ default?(): unknown;
20
10
  };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
24
14
  export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
15
+ type __VLS_WithSlots<T, S> = T & {
26
16
  new (): {
27
17
  $slots: S;
28
18
  };
@@ -1,102 +1,11 @@
1
- import { FormElementV2Tooltip } from 'sit-onyx';
2
1
  import { OnyxTextEditorProps } from './types.js';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- /**
7
- * Optional slot to add custom actions to the toolbar.
8
- */
9
- actions?(): unknown;
10
- }> & {
11
- /**
12
- * Optional slot to add custom actions to the toolbar.
13
- */
14
- actions?(): unknown;
15
- };
16
- refs: {
17
- formElement: ({
18
- $: import('@vue/runtime-core').ComponentInternalInstance;
19
- $data: {};
20
- $props: {
21
- readonly density?: import('sit-onyx', { with: { "resolution-mode": "import" } }).Density | undefined;
22
- readonly requiredMarker?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType> | undefined;
23
- readonly reserveMessageSpace?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean> | undefined;
24
- readonly showError?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode> | undefined;
25
- readonly id?: string | undefined;
26
- readonly label: string | import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2LabelOptions;
27
- readonly skeleton?: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected | undefined;
28
- readonly message?: (string | FormElementV2Tooltip) | undefined;
29
- readonly error?: (string | FormElementV2Tooltip) | undefined;
30
- readonly success?: (string | FormElementV2Tooltip) | undefined;
31
- readonly required?: boolean | undefined;
32
- readonly loading?: boolean | undefined;
33
- readonly open?: import('sit-onyx', { with: { "resolution-mode": "import" } }).Nullable<boolean>;
34
- readonly popoverOptions?: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions | undefined;
35
- readonly "onUpdate:open"?: ((open: boolean) => any) | undefined | undefined;
36
- } & import('@vue/runtime-core').VNodeProps & import('@vue/runtime-core').AllowedComponentProps & import('@vue/runtime-core').ComponentCustomProps;
37
- $attrs: import('@vue/runtime-core').Attrs;
38
- $refs: {
39
- [x: string]: unknown;
40
- };
41
- $slots: Readonly<{
42
- [name: string]: import('@vue/runtime-core').Slot<any> | undefined;
43
- }>;
44
- $root: import('@vue/runtime-core').ComponentPublicInstance | null;
45
- $parent: import('@vue/runtime-core').ComponentPublicInstance | null;
46
- $host: Element | null;
47
- $emit: (event: "update:open", open: boolean) => void;
48
- $el: HTMLDivElement;
49
- $options: import('@vue/runtime-core').ComponentOptionsBase<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
50
- "onUpdate:open"?: ((open: boolean) => any) | undefined;
51
- }>, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {
52
- "update:open": (open: boolean) => any;
53
- }, string, {
54
- skeleton: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected;
55
- showError: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
56
- requiredMarker: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType>;
57
- reserveMessageSpace: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
58
- id: string;
59
- open: boolean | null;
60
- popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
61
- }, {}, string, {}, import('@vue/runtime-core').GlobalComponents, import('@vue/runtime-core').GlobalDirectives, string, import('@vue/runtime-core').ComponentProvideOptions> & {
62
- beforeCreate?: (() => void) | (() => void)[];
63
- created?: (() => void) | (() => void)[];
64
- beforeMount?: (() => void) | (() => void)[];
65
- mounted?: (() => void) | (() => void)[];
66
- beforeUpdate?: (() => void) | (() => void)[];
67
- updated?: (() => void) | (() => void)[];
68
- activated?: (() => void) | (() => void)[];
69
- deactivated?: (() => void) | (() => void)[];
70
- beforeDestroy?: (() => void) | (() => void)[];
71
- beforeUnmount?: (() => void) | (() => void)[];
72
- destroyed?: (() => void) | (() => void)[];
73
- unmounted?: (() => void) | (() => void)[];
74
- renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
75
- renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
76
- errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
77
- };
78
- $forceUpdate: () => void;
79
- $nextTick: typeof import('@vue/runtime-core').nextTick;
80
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('@vue/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
81
- } & Readonly<{
82
- skeleton: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected;
83
- showError: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
84
- requiredMarker: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType>;
85
- reserveMessageSpace: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
86
- id: string;
87
- open: boolean | null;
88
- popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
89
- }> & Omit<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
90
- "onUpdate:open"?: ((open: boolean) => any) | undefined;
91
- }>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
92
- $slots: Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots> & import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots;
93
- }) | null;
94
- nativeInput: HTMLInputElement;
95
- };
96
- rootEl: HTMLDivElement;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Optional slot to add custom actions to the toolbar.
5
+ */
6
+ actions?(): unknown;
97
7
  };
98
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
99
- declare const __VLS_component: import('@vue/runtime-core').DefineComponent<OnyxTextEditorProps, {
8
+ declare const __VLS_base: import('@vue/runtime-core').DefineComponent<OnyxTextEditorProps, {
100
9
  /**
101
10
  * Tiptap editor instance.
102
11
  */
@@ -113,89 +22,11 @@ declare const __VLS_component: import('@vue/runtime-core').DefineComponent<OnyxT
113
22
  disabled: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
114
23
  toolbar: import('./types.js', { with: { "resolution-mode": "import" } }).ToolbarOptions;
115
24
  extensions: import('@tiptap/core', { with: { "resolution-mode": "import" } }).Extensions;
116
- }, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {
117
- formElement: ({
118
- $: import('@vue/runtime-core').ComponentInternalInstance;
119
- $data: {};
120
- $props: {
121
- readonly density?: import('sit-onyx', { with: { "resolution-mode": "import" } }).Density | undefined;
122
- readonly requiredMarker?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType> | undefined;
123
- readonly reserveMessageSpace?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean> | undefined;
124
- readonly showError?: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode> | undefined;
125
- readonly id?: string | undefined;
126
- readonly label: string | import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2LabelOptions;
127
- readonly skeleton?: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected | undefined;
128
- readonly message?: (string | FormElementV2Tooltip) | undefined;
129
- readonly error?: (string | FormElementV2Tooltip) | undefined;
130
- readonly success?: (string | FormElementV2Tooltip) | undefined;
131
- readonly required?: boolean | undefined;
132
- readonly loading?: boolean | undefined;
133
- readonly open?: import('sit-onyx', { with: { "resolution-mode": "import" } }).Nullable<boolean>;
134
- readonly popoverOptions?: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions | undefined;
135
- readonly "onUpdate:open"?: ((open: boolean) => any) | undefined | undefined;
136
- } & import('@vue/runtime-core').VNodeProps & import('@vue/runtime-core').AllowedComponentProps & import('@vue/runtime-core').ComponentCustomProps;
137
- $attrs: import('@vue/runtime-core').Attrs;
138
- $refs: {
139
- [x: string]: unknown;
140
- };
141
- $slots: Readonly<{
142
- [name: string]: import('@vue/runtime-core').Slot<any> | undefined;
143
- }>;
144
- $root: import('@vue/runtime-core').ComponentPublicInstance | null;
145
- $parent: import('@vue/runtime-core').ComponentPublicInstance | null;
146
- $host: Element | null;
147
- $emit: (event: "update:open", open: boolean) => void;
148
- $el: HTMLDivElement;
149
- $options: import('@vue/runtime-core').ComponentOptionsBase<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
150
- "onUpdate:open"?: ((open: boolean) => any) | undefined;
151
- }>, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {
152
- "update:open": (open: boolean) => any;
153
- }, string, {
154
- skeleton: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected;
155
- showError: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
156
- requiredMarker: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType>;
157
- reserveMessageSpace: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
158
- id: string;
159
- open: boolean | null;
160
- popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
161
- }, {}, string, {}, import('@vue/runtime-core').GlobalComponents, import('@vue/runtime-core').GlobalDirectives, string, import('@vue/runtime-core').ComponentProvideOptions> & {
162
- beforeCreate?: (() => void) | (() => void)[];
163
- created?: (() => void) | (() => void)[];
164
- beforeMount?: (() => void) | (() => void)[];
165
- mounted?: (() => void) | (() => void)[];
166
- beforeUpdate?: (() => void) | (() => void)[];
167
- updated?: (() => void) | (() => void)[];
168
- activated?: (() => void) | (() => void)[];
169
- deactivated?: (() => void) | (() => void)[];
170
- beforeDestroy?: (() => void) | (() => void)[];
171
- beforeUnmount?: (() => void) | (() => void)[];
172
- destroyed?: (() => void) | (() => void)[];
173
- unmounted?: (() => void) | (() => void)[];
174
- renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
175
- renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
176
- errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
177
- };
178
- $forceUpdate: () => void;
179
- $nextTick: typeof import('@vue/runtime-core').nextTick;
180
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('@vue/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
181
- } & Readonly<{
182
- skeleton: import('sit-onyx', { with: { "resolution-mode": "import" } }).SkeletonInjected;
183
- showError: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
184
- requiredMarker: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('sit-onyx/dist/composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType>;
185
- reserveMessageSpace: import('sit-onyx/dist/components/OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
186
- id: string;
187
- open: boolean | null;
188
- popoverOptions: import('sit-onyx', { with: { "resolution-mode": "import" } }).FormElementV2PopoverOptions;
189
- }> & Omit<Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Props> & Readonly<{
190
- "onUpdate:open"?: ((open: boolean) => any) | undefined;
191
- }>, "requiredMarker" | "reserveMessageSpace" | "showError" | "open" | "popoverOptions" | "id" | "skeleton"> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
192
- $slots: Readonly<import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots> & import('sit-onyx', { with: { "resolution-mode": "import" } }).OnyxFormElementV2Slots;
193
- }) | null;
194
- nativeInput: HTMLInputElement;
195
- }, HTMLDivElement>;
196
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ }, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
197
28
  export default _default;
198
- type __VLS_WithTemplateSlots<T, S> = T & {
29
+ type __VLS_WithSlots<T, S> = T & {
199
30
  new (): {
200
31
  $slots: S;
201
32
  };
@@ -2,5 +2,6 @@ import { Editor } from '@tiptap/vue-3';
2
2
  type __VLS_Props = {
3
3
  editor?: Editor;
4
4
  };
5
- declare const _default: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -2,5 +2,6 @@ import { Editor } from '@tiptap/vue-3';
2
2
  type __VLS_Props = {
3
3
  editor?: Editor;
4
4
  };
5
- declare const _default: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ declare const __VLS_export: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -2,5 +2,6 @@ import { Editor } from '@tiptap/vue-3';
2
2
  type __VLS_Props = {
3
3
  editor?: Editor;
4
4
  };
5
- declare const _default: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;