@26lights/orcha 0.42.60 → 0.42.62

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,62 @@
1
+ import type { User } from '../types';
2
+ declare function submit(): void;
3
+ declare function cancel(): void;
4
+ declare function reset(): void;
5
+ declare function focusEditor(): void;
6
+ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ placeholder: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ initialMarkdown: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ mentionableUsers: {
16
+ type: import("vue").PropType<User[]>;
17
+ default: () => never[];
18
+ };
19
+ toolbarVisibility: {
20
+ type: import("vue").PropType<"focus" | "always">;
21
+ default: string;
22
+ };
23
+ }>, {
24
+ submit: typeof submit;
25
+ cancel: typeof cancel;
26
+ reset: typeof reset;
27
+ focus: typeof focusEditor;
28
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ submit: (markdown: string) => void;
30
+ cancel: (args_0: void) => void;
31
+ focus: (args_0: void) => void;
32
+ blur: (args_0: void) => void;
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ placeholder: {
35
+ type: import("vue").PropType<string>;
36
+ default: string;
37
+ };
38
+ initialMarkdown: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ mentionableUsers: {
43
+ type: import("vue").PropType<User[]>;
44
+ default: () => never[];
45
+ };
46
+ toolbarVisibility: {
47
+ type: import("vue").PropType<"focus" | "always">;
48
+ default: string;
49
+ };
50
+ }>> & Readonly<{
51
+ onBlur?: ((args_0?: void | undefined) => any) | undefined;
52
+ onCancel?: ((args_0?: void | undefined) => any) | undefined;
53
+ onFocus?: ((args_0?: void | undefined) => any) | undefined;
54
+ onSubmit?: ((markdown: string) => any) | undefined;
55
+ }>, {
56
+ placeholder: string;
57
+ initialMarkdown: string;
58
+ mentionableUsers: User[];
59
+ toolbarVisibility: "focus" | "always";
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
+ declare const _default: typeof __VLS_publicComponent;
62
+ export default _default;
@@ -0,0 +1,71 @@
1
+ import { type LexicalEditor } from 'lexical';
2
+ export type BlockStyle = 'paragraph' | 'h1' | 'h2' | 'h3' | 'code';
3
+ declare function toggleBold(): void;
4
+ declare function toggleItalic(): void;
5
+ declare function toggleStrikethrough(): void;
6
+ declare function toggleInlineCode(): void;
7
+ declare function insertBulletList(): void;
8
+ declare function insertNumberedList(): void;
9
+ declare function setBlockStyle(style: BlockStyle): void;
10
+ declare function getMarkdown(): string;
11
+ declare function clear(): void;
12
+ declare function focus(): void;
13
+ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
+ variant: {
15
+ type: import("vue").PropType<"default" | "compact">;
16
+ default: string;
17
+ };
18
+ placeholder: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ initialMarkdown: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ }>, {
27
+ toggleBold: typeof toggleBold;
28
+ toggleItalic: typeof toggleItalic;
29
+ toggleStrikethrough: typeof toggleStrikethrough;
30
+ toggleInlineCode: typeof toggleInlineCode;
31
+ insertBulletList: typeof insertBulletList;
32
+ insertNumberedList: typeof insertNumberedList;
33
+ setBlockStyle: typeof setBlockStyle;
34
+ getMarkdown: typeof getMarkdown;
35
+ clear: typeof clear;
36
+ focus: typeof focus;
37
+ blockStyle: import("vue").Ref<BlockStyle, BlockStyle>;
38
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ ready: (editor: LexicalEditor) => void;
40
+ keydown: (event: KeyboardEvent) => void;
41
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ variant: {
43
+ type: import("vue").PropType<"default" | "compact">;
44
+ default: string;
45
+ };
46
+ placeholder: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ initialMarkdown: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{
55
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
56
+ onReady?: ((editor: LexicalEditor) => any) | undefined;
57
+ }>, {
58
+ variant: "default" | "compact";
59
+ placeholder: string;
60
+ initialMarkdown: string;
61
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
62
+ declare function __VLS_template(): {
63
+ toolbar?(_: {}): any;
64
+ };
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_publicComponent, ReturnType<typeof __VLS_template>>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,6 @@
1
+ import { type Transformer } from '@lexical/markdown';
2
+ /**
3
+ * Shared Markdown transformer configuration for both Description and Comment editors.
4
+ * Contains all supported formatting options including headings for markdown shortcuts.
5
+ */
6
+ export declare const MARKDOWN_TRANSFORMERS: Transformer[];
@@ -0,0 +1,27 @@
1
+ import { type Ref } from 'vue';
2
+ import { type LexicalEditor } from 'lexical';
3
+ import type { User } from '../types';
4
+ export declare function useLexicalMentions(editor: Ref<LexicalEditor | null>, mentionableUsers: Ref<User[]>): {
5
+ mentionQuery: Ref<string, string>;
6
+ showMentionList: Ref<boolean, boolean>;
7
+ mentionListPosition: Ref<{
8
+ top: number;
9
+ left: number;
10
+ }, {
11
+ top: number;
12
+ left: number;
13
+ } | {
14
+ top: number;
15
+ left: number;
16
+ }>;
17
+ filteredUsers: import("vue").ComputedRef<{
18
+ id: string;
19
+ name: string;
20
+ }[]>;
21
+ selectedIndex: Ref<number, number>;
22
+ isActive: Ref<boolean, boolean>;
23
+ selectUserMention: (userName: string) => void;
24
+ handleKeydown: (event: KeyboardEvent) => boolean;
25
+ closeMentionList: () => void;
26
+ setupMentionTracking: () => (() => void) | undefined;
27
+ };
@@ -50,3 +50,4 @@ export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null
50
50
  selectUserMention: (name: string) => void;
51
51
  getMentionedUserIds: (message: string) => Id[];
52
52
  };
53
+ export declare function extractMentionedUserIds(message: string, users: User[]): Id[];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "26lights <dev@26lights.com> (https://www.26lights.com)",
7
- "version": "0.42.60",
7
+ "version": "0.42.62",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],