@huyooo/ui 2.0.0 → 2.0.1

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 (50) hide show
  1. package/dist/{AuthkitAppSetting-rtYZcSAR.js → AuthkitAppSetting-DCQH9IpU.js} +151 -150
  2. package/dist/{Contact-CcWf3UEZ.js → Contact-C7ROEqe-.js} +3 -3
  3. package/dist/{CustomTable-HDwqEcmB.js → CustomTable-GgvDEidl.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +1531 -0
  5. package/dist/{LegalDocViewer-C0tsIbz9.js → LegalDocViewer-D_QUh0uf.js} +10 -10
  6. package/dist/{MessageHandle-BUufez4S.js → MessageHandle-DKoySsCG.js} +3 -3
  7. package/dist/{MessageList-rttvPmxV.js → MessageList-HSiKkUoD.js} +1 -1
  8. package/dist/{PaySubscriptions-p75aBnHm.js → PaySubscriptions-NcATVJGm.js} +6 -6
  9. package/dist/{PricingPlans-CQ0qk9Hb.js → PricingPlans-CZn6eJby.js} +4 -4
  10. package/dist/{ReferrerReferees-BU9IEQgz.js → ReferrerReferees-BoOQIssE.js} +4 -4
  11. package/dist/Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js +83 -0
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js} +9 -9
  13. package/dist/{WidthContainer-DSE4QbW0.js → WidthContainer-BJLdZfzF.js} +10 -10
  14. package/dist/{apiClients-Ctcq8NZs.js → apiClients-CR-hEwog.js} +5 -5
  15. package/dist/authkit.js +10 -10
  16. package/dist/common.js +2 -2
  17. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +11 -0
  18. package/dist/components/Upload/Upload.vue.d.ts +3 -2
  19. package/dist/composables/uploadFeedbackAttachment.d.ts +7 -1
  20. package/dist/composables.js +13 -13
  21. package/dist/feedback.js +2 -2
  22. package/dist/{fetchAuthPageAboutUs-DiCqMUX3.js → fetchAuthPageAboutUs-BnKWq_TL.js} +2 -2
  23. package/dist/{index-Cn6LcfZO.js → index-BhVwozr0.js} +1 -1
  24. package/dist/main.js +30 -30
  25. package/dist/message.js +5 -5
  26. package/dist/pay.js +4 -4
  27. package/dist/privateCom.js +1 -1
  28. package/dist/referrer.js +1 -1
  29. package/dist/{runtime-BzCSCUNv.js → runtime-DMCyhVcI.js} +1344 -1327
  30. package/dist/runtime.d.ts +6 -2
  31. package/dist/style.css +1 -1
  32. package/dist/upload/browserCosTransport.d.ts +2 -5
  33. package/dist/upload/browserUploadService.d.ts +5 -4
  34. package/dist/upload.d.ts +2 -2
  35. package/dist/upload.js +2 -2
  36. package/dist/{useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js → useAuthkitAppsAuthPageInfo-Byu0yvrx.js} +1 -1
  37. package/dist/{useAuthkitAuth-BPTZUSkM.js → useAuthkitAuth-M2vTpEcb.js} +2 -2
  38. package/dist/{useAuthkitCreateAndUpdate-Bbv7vZZn.js → useAuthkitCreateAndUpdate-D2_Bdazi.js} +1 -1
  39. package/dist/{useAuthkitUsersProfile-CW_exa7E.js → useAuthkitUsersProfile-DdUAENic.js} +2 -2
  40. package/dist/{useBillingStatusOptions-Br-iL77Z.js → useBillingStatusOptions-Jq6Wqfxb.js} +1 -1
  41. package/dist/{useEnsureAuthenticated-CncOvj2H.js → useEnsureAuthenticated-Hel8hWLJ.js} +2 -2
  42. package/dist/{useLegalDocs-D44qU_q0.js → useLegalDocs-BOjqYRyQ.js} +2 -2
  43. package/dist/{useMessageNotifications-D9uikt21.js → useMessageNotifications-AznFeFMD.js} +1 -1
  44. package/dist/{useRoutePermission-BrQX7NTq.js → useRoutePermission-BmUXTwQc.js} +2 -2
  45. package/dist/{useSEO-_TNouXE_.js → useSEO-Chz4Zxuu.js} +2 -2
  46. package/dist/{useSubscriptionCheckout-BDDCRxSs.js → useSubscriptionCheckout-3ivcOcgC.js} +3 -3
  47. package/dist/user.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DpOmbAg-.js +0 -1491
  50. package/dist/Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js +0 -78
@@ -13,13 +13,10 @@ export interface BrowserCosTransferInput {
13
13
  key: string;
14
14
  credentials: BrowserCosCredentials;
15
15
  onProgress?: (progress: COS.ProgressInfo) => void;
16
- }
17
- export interface BrowserCosTransferTask {
18
- result: Promise<COS.UploadFileResult>;
19
- abort: () => void;
16
+ signal?: AbortSignal;
20
17
  }
21
18
  /** 只负责浏览器文件到 COS 的传输,不参与业务文件登记。 */
22
19
  export declare function createBrowserCosTransport(): {
23
- upload: (input: BrowserCosTransferInput) => BrowserCosTransferTask;
20
+ upload: (input: BrowserCosTransferInput) => Promise<COS.UploadFileResult>;
24
21
  };
25
22
  export type BrowserCosTransport = ReturnType<typeof createBrowserCosTransport>;
@@ -4,17 +4,18 @@ export interface BrowserUploadInput {
4
4
  file: File;
5
5
  bucketId: string;
6
6
  onProgress?: (percent: number) => void;
7
+ signal?: AbortSignal;
7
8
  }
8
9
  export interface BrowserUploadResult {
9
10
  file: unknown;
10
11
  key: string;
11
12
  }
12
- export interface BrowserUploadTask {
13
- result: Promise<BrowserUploadResult>;
14
- abort: () => Promise<void>;
13
+ export interface BrowserUploadResponse {
14
+ data: BrowserUploadResult | null;
15
+ error: Error | null;
15
16
  }
16
17
  /** 复用现有无状态接口:获取凭证 → 浏览器直传 COS → 登记文件。 */
17
18
  export declare function createBrowserUploadService(api: ApiClients, transport?: BrowserCosTransport): {
18
- upload: (input: BrowserUploadInput) => BrowserUploadTask;
19
+ upload: (input: BrowserUploadInput) => Promise<BrowserUploadResponse>;
19
20
  };
20
21
  export type BrowserUploadService = ReturnType<typeof createBrowserUploadService>;
package/dist/upload.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { default as Upload } from './components/Upload/Upload.vue';
2
- export { createBrowserCosTransport, type BrowserCosCredentials, type BrowserCosTransferInput, type BrowserCosTransferTask, type BrowserCosTransport, } from './upload/browserCosTransport';
3
- export { createBrowserUploadService, type BrowserUploadInput, type BrowserUploadResult, type BrowserUploadService, type BrowserUploadTask, } from './upload/browserUploadService';
2
+ export { createBrowserCosTransport, type BrowserCosCredentials, type BrowserCosTransferInput, type BrowserCosTransport, } from './upload/browserCosTransport';
3
+ export { createBrowserUploadService, type BrowserUploadInput, type BrowserUploadResponse, type BrowserUploadResult, type BrowserUploadService, } from './upload/browserUploadService';
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js";
2
- import { e as s, f as p } from "./runtime-BzCSCUNv.js";
1
+ import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js";
2
+ import { e as s, f as p } from "./runtime-DMCyhVcI.js";
3
3
  export {
4
4
  o as Upload,
5
5
  s as createBrowserCosTransport,
@@ -1,5 +1,5 @@
1
1
  import { ref as r } from "vue";
2
- import { g as s } from "./apiClients-Ctcq8NZs.js";
2
+ import { g as s } from "./apiClients-CR-hEwog.js";
3
3
  function i() {
4
4
  return {
5
5
  type: "doc",
@@ -1,6 +1,6 @@
1
1
  import { ref as u, computed as p, nextTick as _, readonly as x } from "vue";
2
- import { o as M, g as m, r as $, s as E } from "./apiClients-Ctcq8NZs.js";
3
- import { u as D } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
2
+ import { o as M, g as m, r as $, s as E } from "./apiClients-CR-hEwog.js";
3
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
4
4
  const g = u(!1), w = u(!1);
5
5
  let I;
6
6
  const G = "请先阅读并同意用户协议与隐私政策", K = {
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-Ctcq8NZs.js";
2
+ import "./apiClients-CR-hEwog.js";
3
3
  import { Message as u } from "@arco-design/web-vue";
4
4
  import { ref as e } from "vue";
5
5
  function h(o) {
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as r } from "vue";
2
- import { g as f } from "./apiClients-Ctcq8NZs.js";
3
- import { u as c } from "./useAuthkitAuth-BPTZUSkM.js";
2
+ import { g as f } from "./apiClients-CR-hEwog.js";
3
+ import { u as c } from "./useAuthkitAuth-M2vTpEcb.js";
4
4
  const t = l(null), u = l(!1), o = l(!1), v = r(() => !!t.value);
5
5
  async function p() {
6
6
  const {
@@ -1,4 +1,4 @@
1
- import { g as s } from "./apiClients-Ctcq8NZs.js";
1
+ import { g as s } from "./apiClients-CR-hEwog.js";
2
2
  import { ref as c } from "vue";
3
3
  const v = {
4
4
  async productOptions() {
@@ -1,6 +1,6 @@
1
1
  import { computed as f } from "vue";
2
- import { u as r } from "./useAuthkitAuth-BPTZUSkM.js";
3
- import { u as d } from "./apiClients-Ctcq8NZs.js";
2
+ import { u as r } from "./useAuthkitAuth-M2vTpEcb.js";
3
+ import { u as d } from "./apiClients-CR-hEwog.js";
4
4
  const A = "jwtToken";
5
5
  let e = null, i = !1;
6
6
  async function h(n) {
@@ -1,6 +1,6 @@
1
1
  import { computed as f } from "vue";
2
- import { u as d } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
3
- import { g as L } from "./runtime-BzCSCUNv.js";
2
+ import { u as d } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
3
+ import { g as L } from "./runtime-DMCyhVcI.js";
4
4
  const c = {
5
5
  userServiceAgreement: "用户服务协议",
6
6
  privacyPolicy: "隐私协议",
@@ -1,5 +1,5 @@
1
1
  import { ref as a, computed as y } from "vue";
2
- import { g as f } from "./apiClients-Ctcq8NZs.js";
2
+ import { g as f } from "./apiClients-CR-hEwog.js";
3
3
  function z() {
4
4
  const n = a(!0), d = a(""), i = a(!1), g = a(!1), o = a([]), t = a({
5
5
  total: 0,
@@ -1,7 +1,7 @@
1
1
  import { ref as I, computed as w, watch as S } from "vue";
2
2
  import { useRouter as M, useRoute as T } from "vue-router";
3
- import { u as k } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
4
- import { u as L } from "./useAuthkitUsersProfile-CW_exa7E.js";
3
+ import { u as k } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
4
+ import { u as L } from "./useAuthkitUsersProfile-DdUAENic.js";
5
5
  const y = I({
6
6
  key: "",
7
7
  name: ""
@@ -1,8 +1,8 @@
1
1
  /* empty css */
2
- import "./apiClients-Ctcq8NZs.js";
2
+ import "./apiClients-CR-hEwog.js";
3
3
  import { Message as y } from "@arco-design/web-vue";
4
4
  import { ref as a, getCurrentInstance as I, computed as i } from "vue";
5
- import { u as L } from "./runtime-BzCSCUNv.js";
5
+ import { u as L } from "./runtime-DMCyhVcI.js";
6
6
  import { useHead as v, useSeoMeta as p } from "@unhead/vue";
7
7
  import { useRoute as P } from "vue-router";
8
8
  function M(s) {
@@ -1,9 +1,9 @@
1
1
  import { ref as g, computed as q } from "vue";
2
- import { d as z } from "./useBillingStatusOptions-Br-iL77Z.js";
3
- import { g as $ } from "./apiClients-Ctcq8NZs.js";
2
+ import { d as z } from "./useBillingStatusOptions-Jq6Wqfxb.js";
3
+ import { g as $ } from "./apiClients-CR-hEwog.js";
4
4
  /* empty css */
5
5
  import { Message as h } from "@arco-design/web-vue";
6
- import { u as H } from "./useEnsureAuthenticated-CncOvj2H.js";
6
+ import { u as H } from "./useEnsureAuthenticated-Hel8hWLJ.js";
7
7
  function D(e) {
8
8
  var i;
9
9
  const r = (i = e == null ? void 0 : e.metadata) == null ? void 0 : i.originalPrice;
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-DG4AuHiO.js";
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-BrNx6JWe.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [