@huyooo/ui 0.4.28 → 0.4.29

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 (33) 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-ooh4blcU.js} +97 -127
  4. package/dist/{FeedbackModal-DHWHALct.js → FeedbackModal-CYHs8PS1.js} +257 -277
  5. package/dist/Upload.vue_vue_type_script_setup_true_lang-DGZiaQGY.js +70 -0
  6. package/dist/UserPanel-D3rp3ILE.js +544 -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/FeedbackScreenshots.vue.d.ts +0 -48
  13. package/dist/components/Upload/Upload.vue.d.ts +0 -40
  14. package/dist/composables/Upload/useUploadCos.d.ts +1 -8
  15. package/dist/composables/{useUserPanelProps.d.ts → useGlobalConfig.d.ts} +2 -11
  16. package/dist/composables.d.ts +1 -2
  17. package/dist/composables.js +15 -17
  18. package/dist/feedback.js +2 -2
  19. package/dist/index.js +117 -119
  20. package/dist/style.css +1 -1
  21. package/dist/upload.js +2 -2
  22. package/dist/{useAuthkitProps-CW3Jem_o.js → useAuthkitAuthModal-OkUKCIWR.js} +18 -65
  23. package/dist/{useUploadCos-B8D9lYIk.js → useUploadCos-ByBVD4yB.js} +2529 -2373
  24. package/dist/user.d.ts +1 -1
  25. package/dist/user.js +5 -5
  26. package/dist/utils/mimeTypeHelper.d.ts +13 -0
  27. package/package.json +7 -6
  28. package/README.md +0 -5
  29. package/dist/Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js +0 -96
  30. package/dist/UserPanel-B9y5Hs2k.js +0 -545
  31. package/dist/composables/Authkit/useAuthkitProps.d.ts +0 -12
  32. package/dist/useUserPanelProps-C5W72fZJ.js +0 -54
  33. package/dist/utils/configHelper.d.ts +0 -17
package/dist/user.d.ts CHANGED
@@ -3,5 +3,5 @@ export { default as UserAvatar } from './components/User/UserAvatar.vue';
3
3
  export { default as UserBasicInformation } from './components/User/UserBasicInformation.vue';
4
4
  export { default as UserButton } from './components/User/UserButton.vue';
5
5
  export { default as UserPanel } from './components/User/UserPanel.vue';
6
- export { useUserPanelProps } from './composables/useUserPanelProps';
6
+ export { useGlobalConfig } from './composables/useGlobalConfig';
7
7
  export type * from './types/users';
package/dist/user.js CHANGED
@@ -1,10 +1,10 @@
1
- import { b as r, c as e, a as o, U as n, S as t } from "./UserPanel-B9y5Hs2k.js";
2
- import { u as i } from "./useUserPanelProps-C5W72fZJ.js";
1
+ import { b as r, c as o, a as e, U as n, S as t } from "./UserPanel-D3rp3ILE.js";
2
+ import { u as U } from "./useUploadCos-ByBVD4yB.js";
3
3
  export {
4
4
  r as UserAvatar,
5
- e as UserBasicInformation,
6
- o as UserButton,
5
+ o as UserBasicInformation,
6
+ e as UserButton,
7
7
  n as UserPanel,
8
8
  t as UserSubscriptionBaseInformation,
9
- i as useUserPanelProps
9
+ U as useGlobalConfig
10
10
  };
@@ -0,0 +1,13 @@
1
+ export declare function getMimeType(filename: string): string;
2
+ export declare function isImage(filename: string): boolean;
3
+ export declare function isVideo(filename: string): boolean;
4
+ export declare function isAudio(filename: string): boolean;
5
+ export declare function isDocument(filename: string): boolean;
6
+ export declare function isText(filename: string): boolean;
7
+ export declare function isCode(filename: string): boolean;
8
+ export declare function isArchive(filename: string): boolean;
9
+ export declare function isEbook(filename: string): boolean;
10
+ export declare function getFileCategory(filename: string): string;
11
+ export declare function getExtensionMimeType(extension: string): string;
12
+ export declare function getMimeTypeExtension(mimeType: string): string;
13
+ export declare function isValidMimeType(mimeType: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.4.28",
3
+ "version": "0.4.29",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -77,17 +77,17 @@
77
77
  "peerDependencies": {
78
78
  "@arco-design/web-vue": "^2.56.3",
79
79
  "@huyooo/api": "*",
80
- "@iconify/vue": "^4.1.2",
81
- "vue": "^3.4.37",
82
80
  "@huyooo/vue-tiptap": "^0.3.25",
81
+ "@iconify/vue": "^4.1.2",
83
82
  "@vueuse/core": "^11.3.0",
84
- "ant-design-x-vue": "^1.2.6"
83
+ "ant-design-x-vue": "^1.2.6",
84
+ "vue": "^3.4.37"
85
85
  },
86
86
  "dependencies": {
87
+ "cos-js-sdk-v5": "^1.10.1",
87
88
  "json-bigint": "^1.0.0",
88
89
  "uuid": "^11.1.0",
89
- "vue-clipboard3": "^2.0.0",
90
- "cos-js-sdk-v5": "^1.10.1"
90
+ "vue-clipboard3": "^2.0.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@arco-plugins/vite-vue": "^1.4.5",
@@ -95,6 +95,7 @@
95
95
  "@types/node": "^22.5.1",
96
96
  "@vitejs/plugin-vue": "^5.1.2",
97
97
  "bumpp": "^10.2.0",
98
+ "eslint": "^9.32.0",
98
99
  "less": "^4.2.0",
99
100
  "tsdown": "^0.12.8",
100
101
  "typescript": "^5.5.3",
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Vue 3 + TypeScript + Vite
2
-
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
@@ -1,96 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- import { defineComponent as k, createBlock as q, openBlock as y, unref as S, mergeProps as I, createSlots as F, withCtx as p, renderSlot as u } from "vue";
7
- import { Upload as U } from "@arco-design/web-vue";
8
- import { u as h } from "./useUploadCos-B8D9lYIk.js";
9
- const j = /* @__PURE__ */ k({
10
- __name: "Upload",
11
- props: {
12
- bucketId: {
13
- type: String,
14
- required: !0
15
- },
16
- appId: {
17
- type: String,
18
- required: !0
19
- },
20
- bucket: {
21
- type: String,
22
- required: !0
23
- },
24
- region: {
25
- type: String,
26
- required: !0
27
- },
28
- options: {
29
- type: Object,
30
- required: !1,
31
- default: () => null
32
- },
33
- baseURL: {
34
- type: String,
35
- required: !0
36
- }
37
- },
38
- emits: ["progress", "fileFinish", "fail"],
39
- setup(l, {
40
- emit: a
41
- }) {
42
- const i = a, e = l, {
43
- uploadFile: d
44
- } = h({
45
- appId: e.appId,
46
- bucketId: e.bucketId,
47
- baseURL: e.baseURL,
48
- bucket: e.bucket,
49
- region: e.region
50
- });
51
- function m(t) {
52
- const {
53
- onProgress: s,
54
- onError: c,
55
- onSuccess: f,
56
- fileItem: n
57
- } = t;
58
- if (n.file) {
59
- const b = n.file;
60
- d({
61
- file: b,
62
- onProgress(o) {
63
- i("progress", o);
64
- const r = (o.percent * 100).toFixed(2);
65
- s(Number(r));
66
- },
67
- onFileFinish(o, r, g) {
68
- i("fileFinish", o, r, g), f(r);
69
- },
70
- onError: c
71
- });
72
- }
73
- return {
74
- abort() {
75
- return "";
76
- }
77
- };
78
- }
79
- return (t, s) => (y(), q(S(U), I({
80
- "custom-request": m
81
- }, e.options), F({
82
- _: 2
83
- }, [t.$slots["upload-button"] ? {
84
- name: "upload-button",
85
- fn: p(() => [u(t.$slots, "upload-button")]),
86
- key: "0"
87
- } : void 0, t.$slots["upload-item"] ? {
88
- name: "upload-item",
89
- fn: p(() => [u(t.$slots, "upload-item")]),
90
- key: "1"
91
- } : void 0]), 1040));
92
- }
93
- });
94
- export {
95
- j as _
96
- };