@26lights/orcha 0.42.75 → 0.42.77

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,4 @@
1
- import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type Id, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus, type AddCommentPayload, type RemoveCommentPayload, type UpdateCommentPayload, type ActivityType, type Project, type TimeTracking } from '../types/index';
1
+ import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type Id, type User, type AddFilesPayload, type Attachment, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus, type AddCommentPayload, type RemoveCommentPayload, type UpdateCommentPayload, type ActivityType, type Project, type TimeTracking } from '../types/index';
2
2
  declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  isEditable: {
4
4
  type: import("vue").PropType<boolean | "only-own">;
@@ -51,6 +51,9 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
51
51
  timeTrackingData: {
52
52
  type: import("vue").PropType<Record<string, TimeTracking>>;
53
53
  };
54
+ loadAttachmentPreview: {
55
+ type: import("vue").PropType<(attachment: Attachment) => Promise<Blob>>;
56
+ };
54
57
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
58
  'update:activity': (payload: UpdateActivityPayload) => void;
56
59
  close: (args_0: void) => void;
@@ -117,6 +120,9 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
117
120
  timeTrackingData: {
118
121
  type: import("vue").PropType<Record<string, TimeTracking>>;
119
122
  };
123
+ loadAttachmentPreview: {
124
+ type: import("vue").PropType<(attachment: Attachment) => Promise<Blob>>;
125
+ };
120
126
  }>> & Readonly<{
121
127
  onClose?: ((args_0?: void | undefined) => any) | undefined;
122
128
  onDeleteSubtask?: ((payload: {
@@ -1,28 +1,26 @@
1
1
  import { type Attachment } from '../types';
2
2
  declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  attachments: {
4
- type: import("vue").PropType<[] | Attachment[] | undefined>;
5
- required: true;
4
+ type: import("vue").PropType<Attachment[]>;
6
5
  };
7
6
  isEditable: {
8
7
  type: import("vue").PropType<boolean>;
9
8
  };
10
9
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- add: (value: [] | File[]) => void;
10
+ add: (value: File[]) => void;
12
11
  toggleIsDropActive: (value: boolean) => void;
13
12
  remove: (value: Attachment) => void;
14
13
  preview: (value: number) => void;
15
14
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
15
  attachments: {
17
- type: import("vue").PropType<[] | Attachment[] | undefined>;
18
- required: true;
16
+ type: import("vue").PropType<Attachment[]>;
19
17
  };
20
18
  isEditable: {
21
19
  type: import("vue").PropType<boolean>;
22
20
  };
23
21
  }>> & Readonly<{
24
22
  onRemove?: ((value: Attachment) => any) | undefined;
25
- onAdd?: ((value: [] | File[]) => any) | undefined;
23
+ onAdd?: ((value: File[]) => any) | undefined;
26
24
  onPreview?: ((value: number) => any) | undefined;
27
25
  onToggleIsDropActive?: ((value: boolean) => any) | undefined;
28
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,5 @@
1
1
  import { type Attachment } from '../types';
2
+ export type AttachmentPreviewLoader = (attachment: Attachment) => Promise<Blob>;
2
3
  declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
4
  attachments: {
4
5
  type: import("vue").PropType<Attachment[]>;
@@ -8,6 +9,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
8
9
  type: import("vue").PropType<number>;
9
10
  required: true;
10
11
  };
12
+ loadPreview: {
13
+ type: import("vue").PropType<AttachmentPreviewLoader>;
14
+ required: true;
15
+ };
11
16
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
17
  "update:currentIndex": (value: number) => void;
13
18
  close: () => void;
@@ -20,6 +25,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
20
25
  type: import("vue").PropType<number>;
21
26
  required: true;
22
27
  };
28
+ loadPreview: {
29
+ type: import("vue").PropType<AttachmentPreviewLoader>;
30
+ required: true;
31
+ };
23
32
  }>> & Readonly<{
24
33
  onClose?: (() => any) | undefined;
25
34
  "onUpdate:currentIndex"?: ((value: number) => any) | undefined;
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.75",
7
+ "version": "0.42.77",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],