@huyooo/ui 0.4.28 → 0.4.30

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.
Files changed (38) hide show
  1. package/dist/{AuthkitAppSetting-BFCdC1j2.js → AuthkitAppSetting-CipV7oA1.js} +634 -646
  2. package/dist/{AuthkitAuthorize-p0mbjzzG.js → AuthkitAuthorize-f_yAVn7e.js} +1 -1
  3. package/dist/{FeedbackItem-CFVbxhcl.js → FeedbackItem-DMGML7hp.js} +97 -127
  4. package/dist/FeedbackModal-BD-uiUaK.js +1077 -0
  5. package/dist/Upload.vue_vue_type_script_setup_true_lang-DGZiaQGY.js +70 -0
  6. package/dist/UserPanel-D9qYROiu.js +535 -0
  7. package/dist/api/Buckets/Files.d.ts +7 -7
  8. package/dist/authkit.d.ts +0 -1
  9. package/dist/authkit.js +13 -14
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +19 -20
  12. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -41
  13. package/dist/components/Feedback/FeedbackList.vue.d.ts +2 -44
  14. package/dist/components/Feedback/FeedbackModal.vue.d.ts +2 -44
  15. package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -48
  16. package/dist/components/Upload/Upload.vue.d.ts +0 -40
  17. package/dist/components/User/UserPanel.vue.d.ts +2 -44
  18. package/dist/composables/Upload/useUploadCos.d.ts +1 -8
  19. package/dist/composables/{useUserPanelProps.d.ts → useGlobalConfig.d.ts} +2 -11
  20. package/dist/composables.d.ts +1 -2
  21. package/dist/composables.js +15 -17
  22. package/dist/feedback.js +2 -2
  23. package/dist/index.js +117 -119
  24. package/dist/style.css +1 -1
  25. package/dist/upload.js +2 -2
  26. package/dist/{useAuthkitProps-CW3Jem_o.js → useAuthkitAuthModal-OkUKCIWR.js} +18 -65
  27. package/dist/{useUploadCos-B8D9lYIk.js → useUploadCos-ByBVD4yB.js} +2529 -2373
  28. package/dist/user.d.ts +1 -1
  29. package/dist/user.js +5 -5
  30. package/dist/utils/mimeTypeHelper.d.ts +13 -0
  31. package/package.json +7 -6
  32. package/README.md +0 -5
  33. package/dist/FeedbackModal-DHWHALct.js +0 -1164
  34. package/dist/Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js +0 -96
  35. package/dist/UserPanel-B9y5Hs2k.js +0 -545
  36. package/dist/composables/Authkit/useAuthkitProps.d.ts +0 -12
  37. package/dist/useUserPanelProps-C5W72fZJ.js +0 -54
  38. package/dist/utils/configHelper.d.ts +0 -17
package/dist/common.js CHANGED
@@ -1,18 +1,17 @@
1
- import { C as o, a as s } from "./CollapseItem-Cw1vcdLu.js";
1
+ import { C as e, a as s } from "./CollapseItem-Cw1vcdLu.js";
2
2
  import { C as t, G as n, S as p, W as m } from "./WidthContainer-D795bWdT.js";
3
3
  import { C as i, E as u } from "./CustomTable-KSnj5x8U.js";
4
4
  import { I as x } from "./MessageHandle-DN_JsQb2.js";
5
- import { M as d, a as U } from "./Menu-Cxo8Rpu3.js";
6
- import { S as I, b, c as S, a as g, U as v } from "./UserPanel-B9y5Hs2k.js";
5
+ import { M as d, a as c } from "./Menu-Cxo8Rpu3.js";
6
+ import { S as b, b as I, c as S, a as g, U as v } from "./UserPanel-D9qYROiu.js";
7
7
  import { S as B } from "./PaySubscriptions-u3gwyezu.js";
8
- import { R as P } from "./ReferrerReferees-D2NqWvol.js";
9
- import { _ as G } from "./Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js";
10
- import { u as R } from "./useUserPanelProps-C5W72fZJ.js";
11
- import { a as W, u as h } from "./useActiveDoc-BWHkOJhJ.js";
12
- import { u as D } from "./useTableHandle-DKUIdSSh.js";
13
- import { u as _ } from "./useUploadCos-B8D9lYIk.js";
8
+ import { R as M } from "./ReferrerReferees-D2NqWvol.js";
9
+ import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-DGZiaQGY.js";
10
+ import { u as T, a as W } from "./useUploadCos-ByBVD4yB.js";
11
+ import { a as k, u as D } from "./useActiveDoc-BWHkOJhJ.js";
12
+ import { u as P } from "./useTableHandle-DKUIdSSh.js";
14
13
  export {
15
- o as Collapse,
14
+ e as Collapse,
16
15
  s as CollapseItem,
17
16
  t as ContentHead,
18
17
  i as CustomTable,
@@ -20,20 +19,20 @@ export {
20
19
  n as Gradientbackground,
21
20
  x as InfiniteLoading,
22
21
  d as Menu,
23
- U as MenuItem,
24
- P as Referees,
25
- I as SubscriptionBaseInformation,
22
+ c as MenuItem,
23
+ M as Referees,
24
+ b as SubscriptionBaseInformation,
26
25
  B as Subscriptions,
27
26
  p as SvgIcon,
28
- G as Upload,
29
- b as UserAvatar,
27
+ H as Upload,
28
+ I as UserAvatar,
30
29
  S as UserBasicInformation,
31
30
  g as UserButton,
32
31
  v as UserPanel,
33
32
  m as WidthContainer,
34
- W as useActiveDoc,
35
- h as useCommonCreateAndUpdate,
36
- D as useTableHandle,
37
- _ as useUploadCos,
38
- R as useUserPanelProps
33
+ k as useActiveDoc,
34
+ D as useCommonCreateAndUpdate,
35
+ T as useGlobalConfig,
36
+ P as useTableHandle,
37
+ W as useUploadCos
39
38
  };
@@ -5,26 +5,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
5
5
  required: true;
6
6
  default: () => string;
7
7
  };
8
- appId: {
9
- type: StringConstructor;
10
- required: true;
11
- };
12
- prefixUrl: {
13
- type: StringConstructor;
14
- required: true;
15
- };
16
- bucketId: {
17
- type: StringConstructor;
18
- required: true;
19
- };
20
- bucket: {
21
- type: StringConstructor;
22
- required: true;
23
- };
24
- region: {
25
- type: StringConstructor;
26
- required: true;
27
- };
28
8
  senderRole: {
29
9
  type: StringConstructor;
30
10
  required: true;
@@ -36,26 +16,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
16
  required: true;
37
17
  default: () => string;
38
18
  };
39
- appId: {
40
- type: StringConstructor;
41
- required: true;
42
- };
43
- prefixUrl: {
44
- type: StringConstructor;
45
- required: true;
46
- };
47
- bucketId: {
48
- type: StringConstructor;
49
- required: true;
50
- };
51
- bucket: {
52
- type: StringConstructor;
53
- required: true;
54
- };
55
- region: {
56
- type: StringConstructor;
57
- required: true;
58
- };
59
19
  senderRole: {
60
20
  type: StringConstructor;
61
21
  required: true;
@@ -154,7 +114,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
154
114
  };
155
115
  $forceUpdate: () => void;
156
116
  $nextTick: typeof nextTick;
157
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
117
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof BubbleStart, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
158
118
  } & Readonly<{}> & Omit<Readonly<import('ant-design-x-vue').SenderProps> & Readonly<{
159
119
  "onUpdate:value"?: (value: string) => any;
160
120
  }>, "blur" | "focus" | "nativeElement"> & import('vue').ShallowUnwrapRef<{
@@ -1,48 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- appId: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- prefixUrl: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- bucketId: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- bucket: {
15
- type: StringConstructor;
16
- required: true;
17
- };
18
- region: {
19
- type: StringConstructor;
20
- required: true;
21
- };
22
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
2
  toDetail: (...args: any[]) => void;
24
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
- appId: {
26
- type: StringConstructor;
27
- required: true;
28
- };
29
- prefixUrl: {
30
- type: StringConstructor;
31
- required: true;
32
- };
33
- bucketId: {
34
- type: StringConstructor;
35
- required: true;
36
- };
37
- bucket: {
38
- type: StringConstructor;
39
- required: true;
40
- };
41
- region: {
42
- type: StringConstructor;
43
- required: true;
44
- };
45
- }>> & Readonly<{
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
46
4
  onToDetail?: ((...args: any[]) => any) | undefined;
47
5
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
48
6
  export default _default;
@@ -1,52 +1,10 @@
1
1
  declare function setData(state: boolean): void;
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- appId: {
4
- type: StringConstructor;
5
- required: true;
6
- };
7
- prefixUrl: {
8
- type: StringConstructor;
9
- required: true;
10
- };
11
- bucketId: {
12
- type: StringConstructor;
13
- required: true;
14
- };
15
- bucket: {
16
- type: StringConstructor;
17
- required: true;
18
- };
19
- region: {
20
- type: StringConstructor;
21
- required: true;
22
- };
23
- }>, {
2
+ declare const _default: import('vue').DefineComponent<{}, {
24
3
  setData: typeof setData;
25
4
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
5
  confirm: (...args: any[]) => void;
27
6
  cancel: (...args: any[]) => void;
28
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
- appId: {
30
- type: StringConstructor;
31
- required: true;
32
- };
33
- prefixUrl: {
34
- type: StringConstructor;
35
- required: true;
36
- };
37
- bucketId: {
38
- type: StringConstructor;
39
- required: true;
40
- };
41
- bucket: {
42
- type: StringConstructor;
43
- required: true;
44
- };
45
- region: {
46
- type: StringConstructor;
47
- required: true;
48
- };
49
- }>> & Readonly<{
7
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
50
8
  onConfirm?: ((...args: any[]) => any) | undefined;
51
9
  onCancel?: ((...args: any[]) => any) | undefined;
52
10
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,29 +1,5 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- appId: {
4
- type: StringConstructor;
5
- required: true;
6
- };
7
- bucketId: {
8
- type: StringConstructor;
9
- required: true;
10
- };
11
- baseURL: {
12
- type: StringConstructor;
13
- required: true;
14
- };
15
- bucket: {
16
- type: StringConstructor;
17
- required: true;
18
- };
19
- region: {
20
- type: StringConstructor;
21
- required: true;
22
- };
23
- prefixUrl: {
24
- type: StringConstructor;
25
- required: true;
26
- };
27
3
  urls: {
28
4
  type: PropType<string[]>;
29
5
  required: true;
@@ -31,30 +7,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
31
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
8
  change: (...args: any[]) => void;
33
9
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
- appId: {
35
- type: StringConstructor;
36
- required: true;
37
- };
38
- bucketId: {
39
- type: StringConstructor;
40
- required: true;
41
- };
42
- baseURL: {
43
- type: StringConstructor;
44
- required: true;
45
- };
46
- bucket: {
47
- type: StringConstructor;
48
- required: true;
49
- };
50
- region: {
51
- type: StringConstructor;
52
- required: true;
53
- };
54
- prefixUrl: {
55
- type: StringConstructor;
56
- required: true;
57
- };
58
10
  urls: {
59
11
  type: PropType<string[]>;
60
12
  required: true;
@@ -9,61 +9,21 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
- bucketId: {
13
- type: StringConstructor;
14
- required: true;
15
- };
16
- appId: {
17
- type: StringConstructor;
18
- required: true;
19
- };
20
- bucket: {
21
- type: StringConstructor;
22
- required: true;
23
- };
24
- region: {
25
- type: StringConstructor;
26
- required: true;
27
- };
28
12
  options: {
29
13
  type: ObjectConstructor;
30
14
  required: false;
31
15
  default: () => null;
32
16
  };
33
- baseURL: {
34
- type: StringConstructor;
35
- required: true;
36
- };
37
17
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
18
  fail: (...args: any[]) => void;
39
19
  progress: (...args: any[]) => void;
40
20
  fileFinish: (...args: any[]) => void;
41
21
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
- bucketId: {
43
- type: StringConstructor;
44
- required: true;
45
- };
46
- appId: {
47
- type: StringConstructor;
48
- required: true;
49
- };
50
- bucket: {
51
- type: StringConstructor;
52
- required: true;
53
- };
54
- region: {
55
- type: StringConstructor;
56
- required: true;
57
- };
58
22
  options: {
59
23
  type: ObjectConstructor;
60
24
  required: false;
61
25
  default: () => null;
62
26
  };
63
- baseURL: {
64
- type: StringConstructor;
65
- required: true;
66
- };
67
27
  }>> & Readonly<{
68
28
  onFail?: ((...args: any[]) => any) | undefined;
69
29
  onProgress?: ((...args: any[]) => any) | undefined;
@@ -233,28 +233,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
233
233
  }>> & Readonly<{}>, {
234
234
  openNotification: () => void;
235
235
  }, {}, {}, {}, {}> | null;
236
- FeedBackModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
237
- appId: {
238
- type: StringConstructor;
239
- required: true;
240
- };
241
- prefixUrl: {
242
- type: StringConstructor;
243
- required: true;
244
- };
245
- bucketId: {
246
- type: StringConstructor;
247
- required: true;
248
- };
249
- bucket: {
250
- type: StringConstructor;
251
- required: true;
252
- };
253
- region: {
254
- type: StringConstructor;
255
- required: true;
256
- };
257
- }>> & Readonly<{
236
+ FeedBackModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
258
237
  onConfirm?: ((...args: any[]) => any) | undefined;
259
238
  onCancel?: ((...args: any[]) => any) | undefined;
260
239
  }>, {
@@ -269,28 +248,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
269
248
  C: {};
270
249
  M: {};
271
250
  Defaults: {};
272
- }, Readonly<import('vue').ExtractPropTypes<{
273
- appId: {
274
- type: StringConstructor;
275
- required: true;
276
- };
277
- prefixUrl: {
278
- type: StringConstructor;
279
- required: true;
280
- };
281
- bucketId: {
282
- type: StringConstructor;
283
- required: true;
284
- };
285
- bucket: {
286
- type: StringConstructor;
287
- required: true;
288
- };
289
- region: {
290
- type: StringConstructor;
291
- required: true;
292
- };
293
- }>> & Readonly<{
251
+ }, Readonly<{}> & Readonly<{
294
252
  onConfirm?: ((...args: any[]) => any) | undefined;
295
253
  onCancel?: ((...args: any[]) => any) | undefined;
296
254
  }>, {
@@ -1,18 +1,11 @@
1
1
  import { default as COS } from 'cos-js-sdk-v5';
2
- interface CosType {
3
- appId: string;
4
- bucketId: string;
5
- baseURL: string;
6
- bucket: string;
7
- region: string;
8
- }
9
2
  interface UploadType {
10
3
  file: File;
11
4
  onProgress?: (info: COS.ProgressInfo) => void;
12
5
  onFileFinish?: COS.onFileFinish;
13
6
  onError?: (error: COS.CosSdkError) => void;
14
7
  }
15
- export declare function useUploadCos({ appId, bucketId, baseURL, bucket, region, }: CosType): {
8
+ export declare function useUploadCos(): {
16
9
  uploadFile: ({ file, onProgress, onFileFinish, onError }: UploadType) => void;
17
10
  };
18
11
  export {};
@@ -10,20 +10,11 @@ export interface HuyoooUIConfig {
10
10
  /** 地域 - 默认 'ap-beijing' */
11
11
  region: string;
12
12
  }
13
- export interface ConfigValidation {
14
- isValid: boolean;
15
- missingFields: (keyof HuyoooUIConfig)[];
16
- errors: string[];
17
- }
18
- export declare function useUserPanelProps(): {
13
+ export declare function useGlobalConfig(): {
19
14
  appId: import('vue').Ref<string, string>;
20
15
  bucketId: import('vue').Ref<string, string>;
21
16
  prefixUrl: import('vue').Ref<string, string>;
22
17
  bucket: import('vue').Ref<string, string>;
23
18
  region: import('vue').Ref<string, string>;
24
- config: import('vue').ComputedRef<Partial<HuyoooUIConfig>>;
25
- validation: import('vue').ComputedRef<ConfigValidation>;
26
- setConfig: (newConfig: Partial<HuyoooUIConfig>) => void;
27
- resetConfig: () => void;
28
- getRequiredConfig: () => HuyoooUIConfig;
19
+ setConfig: (newConfig: HuyoooUIConfig) => void;
29
20
  };
@@ -1,11 +1,10 @@
1
1
  export { useAuthkitAuth } from './composables/Authkit/useAuthkitAuth';
2
2
  export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
3
- export { useAuthkitProps } from './composables/Authkit/useAuthkitProps';
4
3
  export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
5
4
  export { UseAuthkitAppsAuthPageInfo } from './composables/Authkit/useAuthkitAppsAuthPageInfo';
6
5
  export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
7
6
  export { useMessageNotifications } from './composables/useMessageNotifications';
8
- export { useUserPanelProps } from './composables/useUserPanelProps';
7
+ export { useGlobalConfig } from './composables/useGlobalConfig';
9
8
  export { useCreateAndUpdate } from './composables/useCreateAndUpdate';
10
9
  export { useTableHandle } from './composables/useTableHandle';
11
10
  export { useActiveDoc } from './composables/useActiveDoc';
@@ -1,22 +1,20 @@
1
- import { u as t, a as u } from "./useAuthkitUsersProfile-Diituvy1.js";
2
- import { U as o, u as r, a as p } from "./useAuthkitProps-CW3Jem_o.js";
3
- import { u as f } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
4
- import { u as h } from "./useMessageNotifications-lmP0vJDM.js";
5
- import { u as x } from "./useUserPanelProps-C5W72fZJ.js";
6
- import { a as U, u as k } from "./useActiveDoc-BWHkOJhJ.js";
7
- import { u as n } from "./useTableHandle-DKUIdSSh.js";
8
- import { u as c } from "./useUploadCos-B8D9lYIk.js";
1
+ import { u as t, a } from "./useAuthkitUsersProfile-Diituvy1.js";
2
+ import { U as o, u as r } from "./useAuthkitAuthModal-OkUKCIWR.js";
3
+ import { u as A } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
4
+ import { u as i } from "./useMessageNotifications-lmP0vJDM.js";
5
+ import { u as d, a as l } from "./useUploadCos-ByBVD4yB.js";
6
+ import { a as x, u as n } from "./useActiveDoc-BWHkOJhJ.js";
7
+ import { u as k } from "./useTableHandle-DKUIdSSh.js";
9
8
  export {
10
9
  o as UseAuthkitAppsAuthPageInfo,
11
- U as useActiveDoc,
10
+ x as useActiveDoc,
12
11
  t as useAuthkitAuth,
13
12
  r as useAuthkitAuthModal,
14
- f as useAuthkitCreateAndUpdate,
15
- p as useAuthkitProps,
16
- u as useAuthkitUsersProfile,
17
- k as useCreateAndUpdate,
18
- h as useMessageNotifications,
19
- n as useTableHandle,
20
- c as useUploadCos,
21
- x as useUserPanelProps
13
+ A as useAuthkitCreateAndUpdate,
14
+ a as useAuthkitUsersProfile,
15
+ n as useCreateAndUpdate,
16
+ d as useGlobalConfig,
17
+ i as useMessageNotifications,
18
+ k as useTableHandle,
19
+ l as useUploadCos
22
20
  };
package/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-DHWHALct.js";
1
+ import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-BD-uiUaK.js";
2
2
  import { C as r } from "./Clipboard-Bful1lNJ.js";
3
- import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-CFVbxhcl.js";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-DMGML7hp.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,