@huyooo/ui 0.4.72 → 0.4.74

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 (37) hide show
  1. package/dist/{AuthkitAppSetting-CX3_9Jcg.js → AuthkitAuthModal-A8HqP1Bw.js} +1441 -1439
  2. package/dist/{AuthkitAuthorize-CA0jmnjq.js → AuthkitAuthorize-BlEC4PlY.js} +1 -1
  3. package/dist/{FeedbackItem-C5WqFEqH.js → FeedbackItem-B_EUApFA.js} +1 -1
  4. package/dist/{FeedbackModal-BDPw2tu7.js → FeedbackModal-D1htK7xY.js} +34 -33
  5. package/dist/{MessageHandle-BelPivb3.js → MessageHandle-DkNum5-u.js} +3 -2
  6. package/dist/UserAccountMenu-C7LQIjwT.js +610 -0
  7. package/dist/authkit.js +3 -3
  8. package/dist/common.d.ts +0 -14
  9. package/dist/common.js +13 -37
  10. package/dist/components/Authkit/Auth/AuthkitAuthContainer.vue.d.ts +1 -1
  11. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
  12. package/dist/components/Authkit/Auth/AuthkitOAuthItem.vue.d.ts +1 -1
  13. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +4 -4
  14. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
  15. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
  16. package/dist/components/Gradientbackground.vue.d.ts +1 -1
  17. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +2 -2
  18. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  19. package/dist/components/User/UserPanel.vue.d.ts +6 -6
  20. package/dist/composables.d.ts +2 -2
  21. package/dist/composables.js +21 -35
  22. package/dist/feedback.js +2 -2
  23. package/dist/index.js +154 -159
  24. package/dist/main.d.ts +1 -4
  25. package/dist/message.js +1 -1
  26. package/dist/pay.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/{useAuthkitAuthModal-hxivJw_U.js → useAuthkitAppsAuthPageInfo-COeq29Tn.js} +13 -13
  30. package/dist/user.js +6 -7
  31. package/dist/viewTransitions-C-ZLwiJ0.js +55 -0
  32. package/package.json +1 -1
  33. package/dist/UserAccountMenu-BD8F9vEK.js +0 -40
  34. package/dist/UserPanel-CaaTu1mu.js +0 -576
  35. package/dist/useActiveDoc-BWHkOJhJ.js +0 -39
  36. /package/dist/{PaySubscriptions-BRWvLeed.js → PaySubscriptions-l6VlqvBy.js} +0 -0
  37. /package/dist/{ReferrerReferees-BVj9o5kG.js → ReferrerReferees-BclAtmgX.js} +0 -0
@@ -1,14 +1,20 @@
1
1
  import { ref as t } from "vue";
2
2
  import { api as i } from "@huyooo/api";
3
3
  import { g as r } from "./globalConfig-DZIhLe1R.js";
4
- function f(a) {
4
+ const l = t(!1);
5
+ function f() {
6
+ return {
7
+ show: l
8
+ };
9
+ }
10
+ function g(a) {
5
11
  return i({
6
12
  url: `${r.authPrefixUrl}/restfulApi/apps/findOne`,
7
13
  method: "post",
8
14
  data: a
9
15
  });
10
16
  }
11
- function l() {
17
+ function p() {
12
18
  return i({
13
19
  url: `${r.authPrefixUrl}/restfulApi/apps/authPageInfo`,
14
20
  method: "post"
@@ -86,9 +92,9 @@ const o = t({
86
92
  backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
87
93
  }
88
94
  });
89
- function g() {
95
+ function h() {
90
96
  function a(n) {
91
- l().then(({
97
+ p().then(({
92
98
  data: e
93
99
  }) => {
94
100
  o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand, n && n();
@@ -101,14 +107,8 @@ function g() {
101
107
  appsAuthPageInfoApi: a
102
108
  };
103
109
  }
104
- const p = t(!1);
105
- function h() {
106
- return {
107
- show: p
108
- };
109
- }
110
110
  export {
111
- g as U,
112
- f as a,
113
- h as u
111
+ h as U,
112
+ g as a,
113
+ f as u
114
114
  };
package/dist/user.js CHANGED
@@ -1,10 +1,9 @@
1
- import { b as r, c as e, a as o, U as n, S as t } from "./UserPanel-CaaTu1mu.js";
2
- import { U as c } from "./UserAccountMenu-BD8F9vEK.js";
1
+ import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-C7LQIjwT.js";
3
2
  export {
4
- c as UserAccountMenu,
5
- r as UserAvatar,
6
- e as UserBasicInformation,
3
+ r as UserAccountMenu,
4
+ e as UserAvatar,
5
+ n as UserBasicInformation,
7
6
  o as UserButton,
8
- n as UserPanel,
9
- t as UserSubscriptionBaseInformation
7
+ t as UserPanel,
8
+ U as UserSubscriptionBaseInformation
10
9
  };
@@ -0,0 +1,55 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { Message as u } from "@arco-design/web-vue";
4
+ import { ref as s } from "vue";
5
+ function y(e) {
6
+ const t = s(!1), n = s(), o = s(!1), a = s(""), i = s("");
7
+ function l(r) {
8
+ u.success(r), o.value = !1, t.value = !1, e("confirm");
9
+ }
10
+ function f() {
11
+ o.value = !1, console.log("handleClose"), e("cancel");
12
+ }
13
+ return {
14
+ loading: t,
15
+ formRef: n,
16
+ submitSuccess: l,
17
+ modelType: a,
18
+ changeType: i,
19
+ show: o,
20
+ handleCancel: f
21
+ };
22
+ }
23
+ const c = s({
24
+ key: "",
25
+ name: ""
26
+ });
27
+ function h() {
28
+ function e(t, n) {
29
+ c.value.key = t, c.value.name = n;
30
+ }
31
+ return {
32
+ activeDoc: c,
33
+ setActiveDoc: e
34
+ };
35
+ }
36
+ function w(e, t = "default") {
37
+ const n = document;
38
+ if (n && typeof n.startViewTransition == "function") {
39
+ const o = document.body;
40
+ o.classList.add(`vt-${t}`), n.startViewTransition(() => {
41
+ try {
42
+ e();
43
+ } catch {
44
+ }
45
+ }).finished.finally(() => {
46
+ o.classList.remove(`vt-${t}`);
47
+ });
48
+ } else
49
+ e();
50
+ }
51
+ export {
52
+ h as a,
53
+ y as u,
54
+ w
55
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.4.72",
3
+ "version": "0.4.74",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,40 +0,0 @@
1
- import { defineComponent as _, createElementBlock as d, openBlock as m, createElementVNode as e, renderSlot as u, toDisplayString as r, unref as o, createVNode as p } from "vue";
2
- import { Icon as f } from "@iconify/vue";
3
- import { a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
4
- import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const k = {
6
- class: "UserAccountMenu"
7
- }, w = {
8
- class: "avatar"
9
- }, A = {
10
- class: "meta"
11
- }, C = {
12
- class: "name"
13
- }, U = {
14
- class: "email"
15
- }, M = /* @__PURE__ */ _({
16
- __name: "UserAccountMenu",
17
- emits: ["arrowClick"],
18
- setup(x, {
19
- emit: n
20
- }) {
21
- const {
22
- userProfile: t
23
- } = v(), i = n;
24
- function a() {
25
- i("arrowClick");
26
- }
27
- return (l, B) => {
28
- var s, c;
29
- return m(), d("div", k, [e("div", w, [u(l.$slots, "avatar", {}, void 0, !0)]), e("div", A, [e("div", C, r(((s = o(t)) == null ? void 0 : s.nickname) || ""), 1), e("div", U, r(((c = o(t)) == null ? void 0 : c.email) || ""), 1)]), e("div", {
30
- class: "arrow",
31
- onClick: a
32
- }, [p(o(f), {
33
- icon: "lucide:chevrons-up-down"
34
- })])]);
35
- };
36
- }
37
- }), S = /* @__PURE__ */ h(M, [["__scopeId", "data-v-b801e222"]]);
38
- export {
39
- S as U
40
- };