@26lights/orcha 0.7.34 → 0.7.35

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.
@@ -16,12 +16,17 @@ declare const _default: import("vue").DefineComponent<{
16
16
  required: true;
17
17
  };
18
18
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- createComment: (v: string) => void;
19
+ createComment: (payload: {
20
+ authorId: string;
21
+ message: string;
22
+ }) => void;
20
23
  updateComment: (payload: {
21
24
  id: string;
22
- content: string;
25
+ message: string;
26
+ }) => void;
27
+ removeComment: (payload: {
28
+ id: string;
23
29
  }) => void;
24
- removeComment: (id: string) => void;
25
30
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
31
  users: {
27
32
  type: import("vue").PropType<User[]>;
@@ -39,12 +44,17 @@ declare const _default: import("vue").DefineComponent<{
39
44
  required: true;
40
45
  };
41
46
  }>> & {
42
- onCreateComment?: ((v: string) => any) | undefined;
47
+ onCreateComment?: ((payload: {
48
+ authorId: string;
49
+ message: string;
50
+ }) => any) | undefined;
43
51
  onUpdateComment?: ((payload: {
44
52
  id: string;
45
- content: string;
53
+ message: string;
54
+ }) => any) | undefined;
55
+ onRemoveComment?: ((payload: {
56
+ id: string;
46
57
  }) => any) | undefined;
47
- onRemoveComment?: ((id: string) => any) | undefined;
48
58
  }, {
49
59
  comments: Comment[];
50
60
  }, {}>;
@@ -6,3 +6,4 @@ export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
6
6
  export declare function getInitialLetters(name: string): string;
7
7
  export declare function computeNewRank<T extends Ordered>(event: DraggableChangeEvent<T>, list: T[]): string | undefined;
8
8
  export declare function generateRank<T extends Ordered>(items: T[], oldIndex: number, index: number): string;
9
+ export declare function formatDate(value: string | null | undefined, pattern?: string): string;
@@ -108,10 +108,10 @@ export interface Subtask extends Entity, Ordered {
108
108
  isDone?: boolean;
109
109
  }
110
110
  export interface Comment extends Entity {
111
- userId: Id;
112
- content: string;
111
+ author: User;
112
+ message: string;
113
113
  createdAt: string;
114
- editedAt?: string;
114
+ updatedAt?: string;
115
115
  }
116
116
  export interface FileLike extends Entity {
117
117
  name: string;
@@ -447,14 +447,13 @@ export type RemoveFilePayload = {
447
447
  };
448
448
  export type AddCommentPayload = {
449
449
  activityId: Id;
450
- comment: string;
450
+ authorId: Id;
451
+ message: string;
451
452
  };
452
453
  export type UpdateCommentPayload = {
453
- activityId: Id;
454
454
  id: Id;
455
- content: string;
455
+ message: string;
456
456
  };
457
457
  export type RemoveCommentPayload = {
458
- activityId: Id;
459
458
  id: Id;
460
459
  };
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.7.34",
7
+ "version": "0.7.35",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@vueform/multiselect": "^2.6.2",
31
31
  "@vueuse/core": "^10.2.1",
32
+ "date-fns": "^2.30.0",
32
33
  "i18next": "^23.2.8",
33
34
  "i18next-http-backend": "^2.2.1",
34
35
  "i18next-vue": "^2.2.1",