@26lights/orcha 0.41.105 → 0.42.0

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.
@@ -20,12 +20,10 @@ declare const _default: import("vue").DefineComponent<{
20
20
  createComment: (payload: {
21
21
  authorId: string;
22
22
  message: string;
23
- mentionedUserIds: string[];
24
23
  }) => void;
25
24
  updateComment: (payload: {
26
25
  id: string;
27
26
  message: string;
28
- mentionedUserIds: string[];
29
27
  }) => void;
30
28
  removeComment: (payload: {
31
29
  id: string;
@@ -51,12 +49,10 @@ declare const _default: import("vue").DefineComponent<{
51
49
  onCreateComment?: ((payload: {
52
50
  authorId: string;
53
51
  message: string;
54
- mentionedUserIds: string[];
55
52
  }) => any) | undefined;
56
53
  onUpdateComment?: ((payload: {
57
54
  id: string;
58
55
  message: string;
59
- mentionedUserIds: string[];
60
56
  }) => any) | undefined;
61
57
  onRemoveComment?: ((payload: {
62
58
  id: string;
@@ -17,10 +17,6 @@ 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
- };
24
20
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
21
  edit: (value: string) => void;
26
22
  remove: (args_0: void) => void;
@@ -42,10 +38,6 @@ declare const _default: import("vue").DefineComponent<{
42
38
  isEditable: {
43
39
  type: import("vue").PropType<boolean>;
44
40
  };
45
- mentionableUsers: {
46
- type: import("vue").PropType<User[]>;
47
- required: true;
48
- };
49
41
  }>> & {
50
42
  onRemove?: ((args_0?: void | undefined) => any) | undefined;
51
43
  onEdit?: ((value: string) => any) | undefined;
@@ -1,6 +1,5 @@
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';
1
+ import { type Activity, type ActivityStatus, type Milestone, MilestoneStatus, Ordered, type Phase, User } from './types';
2
+ import { DraggableChangeEvent } from './types/utils';
4
3
  export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
5
4
  export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
6
5
  export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
@@ -15,19 +14,3 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
15
14
  };
16
15
  export declare const getUserName: (user: User | undefined | null) => string;
17
16
  export declare function lightenColor(color: string, alpha?: number): string;
18
- export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | 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
- };
@@ -445,12 +445,10 @@ export type AddCommentPayload = {
445
445
  activityId: Id;
446
446
  authorId: Id;
447
447
  message: string;
448
- mentionedUserIds: Id[];
449
448
  };
450
449
  export type UpdateCommentPayload = {
451
450
  id: Id;
452
451
  message: string;
453
- mentionedUserIds: Id[];
454
452
  };
455
453
  export type RemoveCommentPayload = {
456
454
  id: 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.41.105",
7
+ "version": "0.42.0",
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.105",
31
+ "@26lights/orcha": "^0.42.0",
32
32
  "@floating-ui/dom": "^1.5.3",
33
33
  "@vueform/multiselect": "^2.6.6",
34
34
  "@vueuse/core": "^10.8.0",