@huyooo/ui 0.15.2 → 0.16.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.
- package/dist/{AuthkitAppSetting-Ds7mYFV5.js → AuthkitAppSetting-v80fEiq0.js} +1 -1
- package/dist/{AuthkitGithubBinding-LVDS1PNQ.js → AuthkitGithubBinding-CVhCM6AX.js} +1 -1
- package/dist/{FeedbackItem-DkvSQT33.js → FeedbackItem-BP-SiJ2u.js} +98 -184
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-CAGBbiZD.js +1396 -0
- package/dist/{MessageHandle-CEQtGyVZ.js → MessageHandle-BMhGWVHD.js} +54 -54
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-87v_RIQa.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-ByB_YaVb.js} +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DLKSHzxG.js → Upload.vue_vue_type_script_setup_true_lang-CXr8D4VG.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-6xQNhFk3.js} +16 -16
- package/dist/{WidthContainer-DKasAIgU.js → WidthContainer-DVZQV6sM.js} +2 -2
- package/dist/authkit.js +2 -2
- package/dist/common.js +1 -1
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +11 -14
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -14
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -0
- package/dist/components/Feedback/FeedbackForm.vue.d.ts +1 -0
- package/dist/components/Feedback/FeedbackMessageAttachments.vue.d.ts +15 -0
- package/dist/components/Feedback/FeedbackVideoPreview.vue.d.ts +33 -0
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +1 -1
- package/dist/composables/feedbackAttachmentPolicy.d.ts +6 -0
- package/dist/composables/uploadFeedbackAttachment.d.ts +9 -0
- package/dist/composables/useFeedbackPendingAttachments.d.ts +98 -0
- package/dist/composables.js +1 -1
- package/dist/feedback.d.ts +0 -1
- package/dist/feedback.js +8 -9
- package/dist/main.js +118 -119
- package/dist/message.js +3 -3
- package/dist/style.css +1 -1
- package/dist/types/api/ones.generated.d.ts +46 -8
- package/dist/types/feedback.d.ts +12 -44
- package/dist/upload.js +2 -2
- package/dist/{useUploadCos-CvG6EL5Q.js → useUploadCos-DOHnz2MP.js} +5 -3
- package/dist/user.js +1 -1
- package/dist/utils/feedbackMessage.d.ts +8 -0
- package/package.json +1 -1
- package/dist/FeedbackModal-C45pNoiw.js +0 -1050
- package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -19
|
@@ -760,6 +760,13 @@ export type Api = {
|
|
|
760
760
|
type: "bugReports" | "featureSuggestions" | "technicalSupportRequests" | "generalOpinions";
|
|
761
761
|
description: string;
|
|
762
762
|
priority?: "urgent" | "high" | "normal" | "low";
|
|
763
|
+
attachments?: {
|
|
764
|
+
key: string;
|
|
765
|
+
name: string;
|
|
766
|
+
size: number;
|
|
767
|
+
mimeType: string;
|
|
768
|
+
kind: "image" | "video" | "file";
|
|
769
|
+
}[];
|
|
763
770
|
};
|
|
764
771
|
return: any;
|
|
765
772
|
};
|
|
@@ -800,9 +807,15 @@ export type Api = {
|
|
|
800
807
|
body: {
|
|
801
808
|
id: string;
|
|
802
809
|
message: {
|
|
803
|
-
type: "text"
|
|
810
|
+
type: "text";
|
|
804
811
|
content?: string;
|
|
805
|
-
|
|
812
|
+
attachments?: {
|
|
813
|
+
key: string;
|
|
814
|
+
name: string;
|
|
815
|
+
size: number;
|
|
816
|
+
mimeType: string;
|
|
817
|
+
kind: "image" | "video" | "file";
|
|
818
|
+
}[];
|
|
806
819
|
senderRole: "user" | "support" | "system";
|
|
807
820
|
};
|
|
808
821
|
};
|
|
@@ -892,9 +905,15 @@ export type Api = {
|
|
|
892
905
|
body: {
|
|
893
906
|
conversationId: string;
|
|
894
907
|
message: {
|
|
895
|
-
type: "text"
|
|
908
|
+
type: "text";
|
|
896
909
|
content?: string;
|
|
897
|
-
|
|
910
|
+
attachments?: {
|
|
911
|
+
key: string;
|
|
912
|
+
name: string;
|
|
913
|
+
size: number;
|
|
914
|
+
mimeType: string;
|
|
915
|
+
kind: "image" | "video" | "file";
|
|
916
|
+
}[];
|
|
898
917
|
senderRole: "user" | "support" | "system";
|
|
899
918
|
};
|
|
900
919
|
};
|
|
@@ -1782,6 +1801,13 @@ export interface ApiClient {
|
|
|
1782
1801
|
type: "bugReports" | "featureSuggestions" | "technicalSupportRequests" | "generalOpinions";
|
|
1783
1802
|
description: string;
|
|
1784
1803
|
priority?: "urgent" | "high" | "normal" | "low";
|
|
1804
|
+
attachments?: {
|
|
1805
|
+
key: string;
|
|
1806
|
+
name: string;
|
|
1807
|
+
size: number;
|
|
1808
|
+
mimeType: string;
|
|
1809
|
+
kind: "image" | "video" | "file";
|
|
1810
|
+
}[];
|
|
1785
1811
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1786
1812
|
};
|
|
1787
1813
|
delete: {
|
|
@@ -1810,9 +1836,15 @@ export interface ApiClient {
|
|
|
1810
1836
|
post: (body: {
|
|
1811
1837
|
id: string;
|
|
1812
1838
|
message: {
|
|
1813
|
-
type: "text"
|
|
1839
|
+
type: "text";
|
|
1814
1840
|
content?: string;
|
|
1815
|
-
|
|
1841
|
+
attachments?: {
|
|
1842
|
+
key: string;
|
|
1843
|
+
name: string;
|
|
1844
|
+
size: number;
|
|
1845
|
+
mimeType: string;
|
|
1846
|
+
kind: "image" | "video" | "file";
|
|
1847
|
+
}[];
|
|
1816
1848
|
senderRole: "user" | "support" | "system";
|
|
1817
1849
|
};
|
|
1818
1850
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -1879,9 +1911,15 @@ export interface ApiClient {
|
|
|
1879
1911
|
post: (body: {
|
|
1880
1912
|
conversationId: string;
|
|
1881
1913
|
message: {
|
|
1882
|
-
type: "text"
|
|
1914
|
+
type: "text";
|
|
1883
1915
|
content?: string;
|
|
1884
|
-
|
|
1916
|
+
attachments?: {
|
|
1917
|
+
key: string;
|
|
1918
|
+
name: string;
|
|
1919
|
+
size: number;
|
|
1920
|
+
mimeType: string;
|
|
1921
|
+
kind: "image" | "video" | "file";
|
|
1922
|
+
}[];
|
|
1885
1923
|
senderRole: "user" | "support" | "system";
|
|
1886
1924
|
};
|
|
1887
1925
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
package/dist/types/feedback.d.ts
CHANGED
|
@@ -22,55 +22,23 @@ export interface ShouldShowProps {
|
|
|
22
22
|
from?: number;
|
|
23
23
|
to?: number;
|
|
24
24
|
}
|
|
25
|
-
type
|
|
26
|
-
|
|
27
|
-
senderRole: string;
|
|
28
|
-
type: 'text';
|
|
29
|
-
content: string;
|
|
30
|
-
ext?: any;
|
|
31
|
-
senderInfo?: any;
|
|
32
|
-
};
|
|
33
|
-
type MessageImage = {
|
|
34
|
-
messageId: string;
|
|
35
|
-
senderRole: string;
|
|
36
|
-
type: 'image';
|
|
37
|
-
key: string;
|
|
38
|
-
url?: string;
|
|
39
|
-
thumbUrl?: string;
|
|
40
|
-
ext?: any;
|
|
41
|
-
senderInfo?: any;
|
|
42
|
-
};
|
|
43
|
-
type MessageFile = {
|
|
44
|
-
messageId: string;
|
|
45
|
-
senderRole: string;
|
|
46
|
-
type: 'file';
|
|
47
|
-
key: string;
|
|
48
|
-
url?: string;
|
|
49
|
-
fileName: string;
|
|
50
|
-
fileSize: number;
|
|
51
|
-
ext?: any;
|
|
52
|
-
senderInfo?: any;
|
|
53
|
-
};
|
|
54
|
-
type MessageAudio = {
|
|
55
|
-
messageId: string;
|
|
56
|
-
senderRole: string;
|
|
57
|
-
type: 'audio';
|
|
25
|
+
export type FeedbackAttachmentKind = 'image' | 'video' | 'file';
|
|
26
|
+
export type FeedbackMessageAttachment = {
|
|
58
27
|
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
size: number;
|
|
30
|
+
mimeType: string;
|
|
31
|
+
kind: FeedbackAttachmentKind;
|
|
59
32
|
url?: string;
|
|
60
|
-
duration: number;
|
|
61
|
-
ext?: any;
|
|
62
|
-
senderInfo?: any;
|
|
63
33
|
};
|
|
64
|
-
type
|
|
34
|
+
export type MessageType = {
|
|
65
35
|
messageId: string;
|
|
66
36
|
senderRole: string;
|
|
67
|
-
type: '
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
37
|
+
type: 'text';
|
|
38
|
+
content: string;
|
|
39
|
+
attachments?: FeedbackMessageAttachment[];
|
|
40
|
+
seq?: number;
|
|
41
|
+
createAt?: string;
|
|
72
42
|
ext?: any;
|
|
73
43
|
senderInfo?: any;
|
|
74
44
|
};
|
|
75
|
-
export type MessageType = MessageText | MessageImage | MessageFile | MessageAudio | MessageVideo;
|
|
76
|
-
export {};
|
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as s } from "./useUploadCos-
|
|
1
|
+
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CXr8D4VG.js";
|
|
2
|
+
import { u as s } from "./useUploadCos-DOHnz2MP.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Upload,
|
|
5
5
|
s as useUploadCos
|
|
@@ -7323,6 +7323,7 @@ function Mt(je, ot) {
|
|
|
7323
7323
|
function Kt(je) {
|
|
7324
7324
|
return je.type && je.type !== "application/octet-stream" && je.type !== "" ? je.type : Mt(je.name);
|
|
7325
7325
|
}
|
|
7326
|
+
const _t = 1024 * 1024 * 5;
|
|
7326
7327
|
function At(je, ot, H) {
|
|
7327
7328
|
je && je({
|
|
7328
7329
|
code: "501",
|
|
@@ -7332,7 +7333,7 @@ function At(je, ot, H) {
|
|
|
7332
7333
|
method: "post"
|
|
7333
7334
|
});
|
|
7334
7335
|
}
|
|
7335
|
-
function
|
|
7336
|
+
function Vt() {
|
|
7336
7337
|
let je;
|
|
7337
7338
|
async function ot({
|
|
7338
7339
|
file: H,
|
|
@@ -7376,7 +7377,7 @@ function zt() {
|
|
|
7376
7377
|
Key: C,
|
|
7377
7378
|
// 使用服务端返回的 Key
|
|
7378
7379
|
Body: H,
|
|
7379
|
-
SliceSize:
|
|
7380
|
+
SliceSize: _t,
|
|
7380
7381
|
onProgress(f) {
|
|
7381
7382
|
se && se(f);
|
|
7382
7383
|
},
|
|
@@ -7413,5 +7414,6 @@ function zt() {
|
|
|
7413
7414
|
};
|
|
7414
7415
|
}
|
|
7415
7416
|
export {
|
|
7416
|
-
|
|
7417
|
+
Kt as g,
|
|
7418
|
+
Vt as u
|
|
7417
7419
|
};
|
package/dist/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-6xQNhFk3.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeedbackMessageAttachment, MessageType } from '../types/feedback';
|
|
2
|
+
export type MessageDisplay = {
|
|
3
|
+
text: string;
|
|
4
|
+
attachments: FeedbackMessageAttachment[];
|
|
5
|
+
};
|
|
6
|
+
/** 将消息结构统一为气泡展示所需的文本与图片 URL 列表 */
|
|
7
|
+
export declare function getMessageDisplay(message: MessageType): MessageDisplay;
|
|
8
|
+
export declare function hasMessageContent(display: MessageDisplay): boolean;
|