@26lights/orcha 0.42.69 → 0.42.70

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,4 +1,5 @@
1
1
  import type { User } from '../types';
2
+ type ToolbarVisibility = 'focus' | 'always';
2
3
  declare function submit(): void;
3
4
  declare function cancel(): void;
4
5
  declare function reset(): void;
@@ -20,6 +21,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
20
21
  type: import("vue").PropType<boolean>;
21
22
  default: boolean;
22
23
  };
24
+ toolbarVisibility: {
25
+ type: import("vue").PropType<ToolbarVisibility>;
26
+ default: string;
27
+ };
23
28
  }>, {
24
29
  submit: typeof submit;
25
30
  cancel: typeof cancel;
@@ -47,6 +52,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
47
52
  type: import("vue").PropType<boolean>;
48
53
  default: boolean;
49
54
  };
55
+ toolbarVisibility: {
56
+ type: import("vue").PropType<ToolbarVisibility>;
57
+ default: string;
58
+ };
50
59
  }>> & Readonly<{
51
60
  onBlur?: ((args_0?: void | undefined) => any) | undefined;
52
61
  onCancel?: ((args_0?: void | undefined) => any) | undefined;
@@ -57,6 +66,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
57
66
  initialMarkdown: string;
58
67
  mentionableUsers: User[];
59
68
  showSubmitButton: boolean;
69
+ toolbarVisibility: ToolbarVisibility;
60
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
71
  declare const _default: typeof __VLS_publicComponent;
62
72
  export default _default;
@@ -1,7 +1,7 @@
1
- import { type Ref } from 'vue';
1
+ import { type Ref, type ComputedRef } from 'vue';
2
2
  import { type LexicalEditor } from 'lexical';
3
3
  import type { User } from '../types';
4
- export declare function useLexicalMentions(editor: Ref<LexicalEditor | null>, mentionableUsers: Ref<User[]>): {
4
+ export declare function useLexicalMentions(editor: Ref<LexicalEditor | null> | ComputedRef<LexicalEditor | null>, mentionableUsers: Ref<User[]>): {
5
5
  mentionQuery: Ref<string, string>;
6
6
  showMentionList: Ref<boolean, boolean>;
7
7
  mentionListPosition: Ref<{
@@ -14,12 +14,11 @@ export declare function useLexicalMentions(editor: Ref<LexicalEditor | null>, me
14
14
  top: number;
15
15
  left: number;
16
16
  }>;
17
- filteredUsers: import("vue").ComputedRef<{
17
+ filteredUsers: ComputedRef<{
18
18
  id: string;
19
19
  name: string;
20
20
  }[]>;
21
21
  selectedIndex: Ref<number, number>;
22
- isActive: Ref<boolean, boolean>;
23
22
  selectUserMention: (userName: string) => void;
24
23
  handleKeydown: (event: KeyboardEvent) => boolean;
25
24
  closeMentionList: () => void;
@@ -1,6 +1,5 @@
1
- import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id } from './types';
1
+ import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User } from './types';
2
2
  import { type DraggableChangeEvent } from './types/utils';
3
- import { type Ref } from 'vue';
4
3
  /**
5
4
  * Formats minutes into a human-readable time format
6
5
  * @param minutes - Time in minutes
@@ -28,26 +27,12 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
28
27
  };
29
28
  export declare const getUserName: (user: User | undefined | null) => string;
30
29
  export declare function lightenColor(color: string, alpha?: number): string;
31
- export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
32
- showMentionList: Ref<boolean, boolean>;
33
- mentionListPosition: Ref<{
34
- top: number;
35
- left: number;
36
- }, {
37
- top: number;
38
- left: number;
39
- } | {
40
- top: number;
41
- left: number;
42
- }>;
43
- filteredUsers: import("vue").ComputedRef<{
44
- id: string;
45
- name: string;
46
- }[]>;
47
- mentionQuery: Ref<string, string>;
48
- handleInput: (event: Event) => void;
49
- handleKeydown: (event: KeyboardEvent) => void;
50
- selectUserMention: (name: string) => void;
51
- getMentionedUserIds: (message: string) => Id[];
52
- };
30
+ /**
31
+ * Generate a mention name from a user object.
32
+ * Converts "First Last" to "First_Last".
33
+ */
34
+ export declare function getMentionName(user: User): string;
35
+ /**
36
+ * Extract unique mentioned user IDs from a Markdown/plain-text message.
37
+ */
53
38
  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.69",
7
+ "version": "0.42.70",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],