@huyooo/ui 3.0.0 → 4.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 (64) hide show
  1. package/dist/{AuthkitAppSetting-DhLRYlL_.js → AuthkitAppSetting-Cg8j3nES.js} +41 -42
  2. package/dist/{Contact-CNLjyOCR.js → Contact-D9NRguTE.js} +4 -4
  3. package/dist/{CustomTable-B1KjkixL.js → CustomTable-C15Dgbks.js} +4 -4
  4. package/dist/{FeedbackItem-BP-SiJ2u.js → FeedbackItem-hnJ7YXdE.js} +1 -1
  5. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-Ddy1jcdL.js +1526 -0
  6. package/dist/{LandingPageSectionTabs-BEAnU8B0.js → LandingPageSectionTabs-BJQeq3V5.js} +515 -402
  7. package/dist/{LegalDocViewer-DkVW9tCh.js → LegalDocViewer-BuzKCAfO.js} +44 -45
  8. package/dist/{Menu-uCexrsKP.js → Menu-C6NA8hCs.js} +1 -1
  9. package/dist/{MessageHandle-BKMBtqZM.js → MessageHandle-Cu23QspL.js} +13 -14
  10. package/dist/{MessageList-BK4u5DCH.js → MessageList-DdDKl9wk.js} +6 -7
  11. package/dist/{PaySubscriptions-tJSQUmhE.js → PaySubscriptions-ZSvRTG2i.js} +14 -15
  12. package/dist/{PricingPlans-BhcDv8uk.js → PricingPlans-DTGJ-_us.js} +13 -14
  13. package/dist/{ReferrerReferees-QTZnOCJB.js → ReferrerReferees-gkKtDau-.js} +25 -26
  14. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CZjNlns_.js → Upload.vue_vue_type_script_setup_true_lang-C6B5_Hjo.js} +2 -2
  15. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BQgy_CeZ.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BH6l-SKs.js} +34 -35
  16. package/dist/{WidthContainer-BEeYYOat.js → WidthContainer-DXwIiG2x.js} +32 -32
  17. package/dist/{apiClients-8_c5cDW5.js → apiClients-5u4_uxFE.js} +47 -48
  18. package/dist/authkit.js +10 -10
  19. package/dist/common/globalConfig.d.ts +4 -4
  20. package/dist/common.js +3 -3
  21. package/dist/components/LandingPage/LandingPageHero.vue.d.ts +22 -0
  22. package/dist/components/Pay/PricingPlans.vue.d.ts +1 -1
  23. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +21 -0
  24. package/dist/composables/useAccessPosture.d.ts +31 -0
  25. package/dist/composables.d.ts +1 -0
  26. package/dist/composables.js +53 -49
  27. package/dist/feedback.js +3 -3
  28. package/dist/{fetchAuthPageAboutUs--dArFYk6.js → fetchAuthPageAboutUs-C-jQ44QK.js} +2 -2
  29. package/dist/{index-D9YtlhTa.js → index-5OR_BVTz.js} +4 -5
  30. package/dist/{index-D56hUMeD.js → index-BIxwv9Xs.js} +1 -1
  31. package/dist/landingPage.js +1 -1
  32. package/dist/legalDocs/constants.d.ts +1 -0
  33. package/dist/main.js +266 -262
  34. package/dist/message.js +36 -37
  35. package/dist/pay.js +5 -5
  36. package/dist/privateCom.js +1 -1
  37. package/dist/referrer.js +1 -1
  38. package/dist/{runtime-CDEl4QQl.js → runtime-B-tHI8-q.js} +191 -186
  39. package/dist/style.css +1 -1
  40. package/dist/types/api/auth.generated.d.ts +188 -37
  41. package/dist/types/api/ones.generated.d.ts +1512 -364
  42. package/dist/types/app.d.ts +9 -0
  43. package/dist/types/auth.d.ts +2 -1
  44. package/dist/upload.js +2 -2
  45. package/dist/useAccessPosture-DBNTLWQn.js +219 -0
  46. package/dist/{useAuthkitAppsAuthPageInfo-mv7hOnhi.js → useAuthkitAppsAuthPageInfo-CsivtUQH.js} +40 -33
  47. package/dist/{useAuthkitAuth-CO61XogP.js → useAuthkitAuth-CV60Hc3o.js} +56 -51
  48. package/dist/useAuthkitCreateAndUpdate-DJIn96EE.js +24 -0
  49. package/dist/{useAuthkitUsersProfile-CF7t2Y7T.js → useAuthkitUsersProfile-CQOLEAxC.js} +3 -3
  50. package/dist/{useBillingStatusOptions-C8fwW-AI.js → useBillingStatusOptions-BHVLZhEB.js} +1 -1
  51. package/dist/{useBillingSubscriptionSummary-C2E3p68U.js → useBillingSubscriptionSummary-DakAVL-3.js} +1 -1
  52. package/dist/{useEnsureAuthenticated-Q7EHguY4.js → useEnsureAuthenticated-BYGI2uYZ.js} +2 -2
  53. package/dist/{useLegalDocs-DUbab5R9.js → useLegalDocs-BrYWCDh3.js} +6 -5
  54. package/dist/{useMessageNotifications-BXimltcx.js → useMessageNotifications-Dcl8TXr-.js} +1 -1
  55. package/dist/{usePageSEO-D8CocvOJ.js → usePageSEO-BHYaXnDU.js} +12 -13
  56. package/dist/useRoutePermission-BkWHsFxN.js +212 -0
  57. package/dist/{useSubscriptionCheckout-Bic8vKgm.js → useSubscriptionCheckout-QSNro05_.js} +17 -18
  58. package/dist/user.js +1 -1
  59. package/dist/{userMenuModal-D-nDaYqM.js → userMenuModal-B4m4CHlW.js} +1 -1
  60. package/package.json +1 -1
  61. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-BXqxUXuu.js +0 -1516
  62. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  63. package/dist/useAuthkitCreateAndUpdate-CYIcEuub.js +0 -25
  64. package/dist/useRoutePermission-Bvn-J8bp.js +0 -249
@@ -1,8 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as c,
7
- l as g
8
- };
@@ -1,25 +0,0 @@
1
- /* empty css */
2
- import "./apiClients-8_c5cDW5.js";
3
- import { Message as u } from "@arco-design/web-vue";
4
- import { ref as e } from "vue";
5
- function h(o) {
6
- const n = e(!1), t = e(), s = e(!1), a = e(""), c = e("");
7
- function f(r) {
8
- u.success(r), s.value = !1, n.value = !1, o("confirm");
9
- }
10
- function l() {
11
- s.value = !1, o("cancel");
12
- }
13
- return {
14
- loading: n,
15
- formRef: t,
16
- submitSuccess: f,
17
- modelType: a,
18
- changeType: c,
19
- show: s,
20
- handleCancel: l
21
- };
22
- }
23
- export {
24
- h as u
25
- };
@@ -1,249 +0,0 @@
1
- import { computed as g, ref as T, watch as k } from "vue";
2
- import { useRouter as R, useRoute as $ } from "vue-router";
3
- import { u as w } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
4
- import { u as I } from "./useAuthkitUsersProfile-CF7t2Y7T.js";
5
- import { g as C } from "./runtime-CDEl4QQl.js";
6
- function j(e, r = "default") {
7
- const t = document;
8
- if (t && typeof t.startViewTransition == "function") {
9
- const n = document.body;
10
- n.classList.add(`vt-${r}`), t.startViewTransition(() => {
11
- try {
12
- e();
13
- } catch {
14
- }
15
- }).finished.finally(() => {
16
- n.classList.remove(`vt-${r}`);
17
- });
18
- } else
19
- e();
20
- }
21
- function E() {
22
- const {
23
- appsData: e,
24
- appsAuthPageInfoSuccess: r
25
- } = w(), t = R(), n = g(() => r.value), c = g(() => n.value && e.value.applicationLogoUrl || ""), a = g(() => n.value && e.value.name || "");
26
- function m() {
27
- j(() => {
28
- t.push("/"), window.scrollTo({
29
- top: 0,
30
- behavior: "smooth"
31
- });
32
- });
33
- }
34
- return {
35
- brandReady: n,
36
- brandLogoUrl: c,
37
- brandName: a,
38
- navigateToAppHome: m
39
- };
40
- }
41
- const A = T({
42
- key: "",
43
- name: ""
44
- });
45
- function F() {
46
- function e(r, t) {
47
- A.value.key = r, A.value.name = t;
48
- }
49
- return {
50
- activeDoc: A,
51
- setActiveDoc: e
52
- };
53
- }
54
- function x(e) {
55
- const r = /* @__PURE__ */ new Set();
56
- r.add(e);
57
- const t = e.split("/").filter(Boolean);
58
- for (let n = t.length - 1; n > 0; n--)
59
- r.add(`/${t.slice(0, n).join("/")}`);
60
- return [...r];
61
- }
62
- function M(e, r) {
63
- const t = new Set(r);
64
- return t.has("*") ? !0 : x(e).some((n) => t.has(n));
65
- }
66
- function O(e) {
67
- return e.filter((r) => U(r.publicMatch) === "exact").map((r) => r.permissionKey);
68
- }
69
- function U(e) {
70
- return e === "exact" ? "exact" : "prefix";
71
- }
72
- function L(e, r) {
73
- const t = r.map((a) => a.permissionKey);
74
- if (t.includes("*"))
75
- return !0;
76
- const n = new Set(t), c = new Set(O(r));
77
- return x(e).some((a) => !(!n.has(a) || c.has(a) && e !== a));
78
- }
79
- function W(e, r) {
80
- const t = e.endsWith("/") ? e.slice(0, -1) : e;
81
- return t === "" ? !1 : M(t, r) || r.some((n) => n === t ? !0 : n.startsWith(`${t}/`));
82
- }
83
- function D(e, r) {
84
- return Array.isArray(e == null ? void 0 : e.menuTypes) ? e.menuTypes.includes(r) : !1;
85
- }
86
- function q(e, r, t) {
87
- for (let n = e.length - 1; n >= 0; n--) {
88
- const c = e[n];
89
- if (D(c.meta, r))
90
- return c.path;
91
- }
92
- return t;
93
- }
94
- function b(e) {
95
- return e.split("?")[0].split("#")[0];
96
- }
97
- function G(e, r, t) {
98
- const n = b(r), c = (t == null ? void 0 : t.returnParentOnChildMatch) ?? !1;
99
- function a(f, p) {
100
- for (const l of f) {
101
- if (b(l.path) === p)
102
- return l.path;
103
- if (l.children && l.children.length > 0) {
104
- const o = a(l.children, p);
105
- if (o)
106
- return c ? l.path : o;
107
- }
108
- }
109
- return null;
110
- }
111
- const m = a(e, n);
112
- if (m)
113
- return m;
114
- for (const f of e) {
115
- const p = b(f.path);
116
- if (n.startsWith(p + "/") || n === p) {
117
- if (f.children && f.children.length > 0)
118
- for (const l of f.children) {
119
- const v = b(l.path);
120
- if (n.startsWith(v + "/") || n === v)
121
- return c ? f.path : l.path;
122
- }
123
- return f.path;
124
- }
125
- }
126
- return t != null && t.fallback ? t.fallback(n) : n;
127
- }
128
- function J(e) {
129
- const r = R(), {
130
- appsData: t
131
- } = w(), {
132
- isLoggedIn: n,
133
- userProfile: c
134
- } = I(), a = g(() => {
135
- var o;
136
- return !n.value || !c.value ? [] : ((o = c.value.permissions) == null ? void 0 : o.map((s) => s.permissionKey)) || [];
137
- });
138
- function m(o) {
139
- return L(o, t.value.publicRoutes || []);
140
- }
141
- function f(o) {
142
- return n.value ? M(o, a.value) : !1;
143
- }
144
- function p(o) {
145
- var s;
146
- return {
147
- path: o.path,
148
- name: o.name,
149
- meta: o.meta,
150
- children: (s = o.children) == null ? void 0 : s.map((d) => p(d))
151
- };
152
- }
153
- function l(o, s) {
154
- const d = [];
155
- for (const u of o) {
156
- if (u.path === "/" || u.path === "/:catchAll(.*)")
157
- continue;
158
- const i = u.meta;
159
- if (D(i, s)) {
160
- const P = u.path;
161
- if (m(P) || W(P, a.value)) {
162
- const h = {
163
- name: (i == null ? void 0 : i.menuName) || (i == null ? void 0 : i.title) || (typeof u.name == "string" ? u.name : u.path),
164
- path: u.path,
165
- icon: (i == null ? void 0 : i.menuIcon) || (i == null ? void 0 : i.icon),
166
- description: (i == null ? void 0 : i.menuDescription) || (i == null ? void 0 : i.description),
167
- hidden: i == null ? void 0 : i.hidden
168
- };
169
- if (u.children && u.children.length > 0) {
170
- const y = l(u.children, s);
171
- y.length > 0 && (h.children = y);
172
- }
173
- d.push(h);
174
- }
175
- } else if (u.children && u.children.length > 0) {
176
- const P = l(u.children, s);
177
- d.push(...P);
178
- }
179
- }
180
- return d;
181
- }
182
- return {
183
- menus: g(() => {
184
- if (!e)
185
- return [];
186
- const o = r.getRoutes(), s = o.find((h) => h.path === "/"), d = s != null && s.children ? s.children.map((h) => p(h)) : [], u = new Set(d.map((h) => h.path)), P = o.filter((h) => h.path === "/" || h.path === "/:catchAll(.*)" || u.has(h.path) ? !1 : h.path.split("/").filter((K) => K).length === 1).map(p), S = [...d, ...P];
187
- return l(S, e);
188
- }),
189
- isRoutePublic: m,
190
- hasPermission: (o) => m(o) ? !0 : f(o),
191
- isLoggedIn: n
192
- };
193
- }
194
- function Q() {
195
- const e = R(), r = $(), {
196
- appsData: t,
197
- appsAuthPageInfoSuccess: n
198
- } = w(), {
199
- userProfile: c,
200
- isLoggedIn: a,
201
- usersProfileReady: m
202
- } = I();
203
- function f() {
204
- return t.value.publicRoutes || [];
205
- }
206
- function p(s) {
207
- return L(s, f());
208
- }
209
- function l(s) {
210
- var u;
211
- if (!a.value || !c.value)
212
- return !1;
213
- const d = ((u = c.value.permissions) == null ? void 0 : u.map((i) => i.permissionKey)) || [];
214
- return M(s, d);
215
- }
216
- function v() {
217
- const s = C().config.accessDeniedUrl || "/";
218
- e.replace(s);
219
- }
220
- function o(s) {
221
- p(s) || !n.value || !m.value || (!a.value || !l(s)) && v();
222
- }
223
- return k([() => r.path, n, m, a, () => f().map((s) => `${s.permissionKey}:${s.publicMatch || "prefix"}`).join("|"), () => {
224
- var s;
225
- return (((s = c.value) == null ? void 0 : s.permissions) || []).map((d) => d.permissionKey).join("|");
226
- }], () => {
227
- o(r.path);
228
- }, {
229
- immediate: !0
230
- }), {
231
- isRoutePublic: p,
232
- hasPermission: l
233
- };
234
- }
235
- export {
236
- q as a,
237
- M as b,
238
- x as c,
239
- E as d,
240
- J as e,
241
- G as f,
242
- b as g,
243
- W as h,
244
- L as i,
245
- Q as j,
246
- O as r,
247
- F as u,
248
- j as w
249
- };