@sit-onyx/tiptap 0.1.0-dev-20260224080800 → 0.1.0-dev-20260224235207

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.
@@ -1,6 +1,9 @@
1
1
  import { TextAlignOptions } from '@tiptap/extension-text-align';
2
2
  import { StarterKitOptions } from '@tiptap/starter-kit';
3
3
  import { Extension } from '@tiptap/vue-3';
4
+ export type OnyxStarterKitOptions = Partial<StarterKitOptions & {
5
+ textAlign: Partial<TextAlignOptions> | false;
6
+ }>;
4
7
  /**
5
8
  * Custom onyx starter kit for tiptap intended to be used with the `OnyxTextEditor` component.
6
9
  * Includes basic and commonly used extensions / options.
@@ -1,5 +1,6 @@
1
1
  import { Extensions } from '@tiptap/vue-3';
2
2
  import { Nullable, OnyxTextareaProps } from 'sit-onyx';
3
+ import { InjectionKey, Ref } from 'vue';
3
4
  export type OnyxTextEditorProps = Pick<OnyxTextareaProps, "label" | "labelTooltip" | "disableManualResize" | "disabled" | "hideLabel" | "autosize" | "autofocus" | "message" | "success" | "density" | "placeholder" | "reserveMessageSpace"> & {
4
5
  /**
5
6
  * Current editor value.
@@ -23,3 +24,9 @@ export type ToolbarOptions = {
23
24
  */
24
25
  position?: "top" | "bottom";
25
26
  };
27
+ export declare const TEXT_EDITOR_INJECTION_KEY: InjectionKey<{
28
+ /**
29
+ * Whether the text editor is disabled.
30
+ */
31
+ disabled: Ref<boolean>;
32
+ }>;
package/dist/index.d.ts CHANGED
@@ -6,4 +6,4 @@ export { default as OnyxEditorToolbarFlyout } from './components/OnyxEditorToolb
6
6
  export * from './components/OnyxEditorToolbarFlyout/types.js';
7
7
  export { default as OnyxEditorToolbarGroup } from './components/OnyxEditorToolbarGroup/OnyxEditorToolbarGroup.vue';
8
8
  export * from './components/OnyxTextEditor/extensions/index.js';
9
- export * from './composables/useEditorUtils.js';
9
+ export { useEditorUtils } from './composables/useEditorUtils.js';