@26lights/orcha 0.41.101 → 0.41.103

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.
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
17
17
  isEditable: {
18
18
  type: import("vue").PropType<boolean>;
19
19
  };
20
+ mentionableUsers: {
21
+ type: import("vue").PropType<User[]>;
22
+ required: true;
23
+ };
20
24
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
25
  edit: (value: string) => void;
22
26
  remove: (args_0: void) => void;
@@ -38,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
38
42
  isEditable: {
39
43
  type: import("vue").PropType<boolean>;
40
44
  };
45
+ mentionableUsers: {
46
+ type: import("vue").PropType<User[]>;
47
+ required: true;
48
+ };
41
49
  }>> & {
42
50
  onRemove?: ((args_0?: void | undefined) => any) | undefined;
43
51
  onEdit?: ((value: string) => any) | undefined;
@@ -1,5 +1,6 @@
1
- import { type Activity, type ActivityStatus, type Milestone, MilestoneStatus, Ordered, type Phase, User } from './types';
2
- import { DraggableChangeEvent } from './types/utils';
1
+ import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id } from './types';
2
+ import { type DraggableChangeEvent } from './types/utils';
3
+ import { type Ref } from 'vue';
3
4
  export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
4
5
  export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
5
6
  export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
@@ -14,3 +15,19 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
14
15
  };
15
16
  export declare const getUserName: (user: User | undefined | null) => string;
16
17
  export declare function lightenColor(color: string, alpha?: number): string;
18
+ export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
19
+ showMentionList: Ref<boolean>;
20
+ mentionListPosition: Ref<{
21
+ top: number;
22
+ left: number;
23
+ }>;
24
+ filteredUsers: import("vue").ComputedRef<{
25
+ id: string;
26
+ name: string;
27
+ }[]>;
28
+ mentionQuery: Ref<string>;
29
+ handleInput: (event: Event) => void;
30
+ handleKeydown: (event: KeyboardEvent) => void;
31
+ selectUserMention: (name: string) => void;
32
+ getMentionedUserIds: (message: string) => Id[];
33
+ };
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.41.101",
7
+ "version": "0.41.103",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],
@@ -28,7 +28,7 @@
28
28
  "vuedraggable": "~4.1.0"
29
29
  },
30
30
  "dependencies": {
31
- "@26lights/orcha": "^0.41.101",
31
+ "@26lights/orcha": "^0.41.103",
32
32
  "@floating-ui/dom": "^1.5.3",
33
33
  "@vueform/multiselect": "^2.6.6",
34
34
  "@vueuse/core": "^10.8.0",