@huyooo/ui 1.0.2 → 1.0.4

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 (182) hide show
  1. package/dist/AuthkitAppSetting-BN8-xgNq.js +2674 -0
  2. package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
  3. package/dist/CustomTable-BzGfaAVH.js +276 -0
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
  5. package/dist/LandingPageDescription-BczWZHKy.js +12 -0
  6. package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
  7. package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
  8. package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
  9. package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
  10. package/dist/Menu-uCexrsKP.js +199 -0
  11. package/dist/MessageHandle-mEkCsv9e.js +1173 -0
  12. package/dist/MessageList-Ce-_LNTk.js +244 -0
  13. package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
  14. package/dist/PricingPlans-DoWP5aX7.js +427 -0
  15. package/dist/ReferrerReferees-DgygiIiE.js +237 -0
  16. package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
  17. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
  18. package/dist/WidthContainer-PeWkCK0p.js +721 -0
  19. package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
  20. package/dist/authkit.d.ts +6 -2
  21. package/dist/authkit.js +53 -44
  22. package/dist/common/authProviderIcons.d.ts +12 -0
  23. package/dist/common/globalConfig.d.ts +5 -0
  24. package/dist/common/tableColumnWidths.d.ts +11 -0
  25. package/dist/common.js +3 -3
  26. package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
  27. package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
  28. package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
  29. package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
  30. package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
  31. package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
  32. package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
  33. package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
  34. package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
  35. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
  36. package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
  37. package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
  38. package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
  39. package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
  40. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
  41. package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
  42. package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
  43. package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
  44. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
  45. package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
  46. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
  47. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
  48. package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
  49. package/dist/components/CustomTable.vue.d.ts +27 -1
  50. package/dist/components/Ellipsis.vue.d.ts +2 -6
  51. package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
  52. package/dist/components/Gradientbackground.vue.d.ts +2 -2
  53. package/dist/components/HeaderMenus.vue.d.ts +4 -1
  54. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  55. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
  56. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
  57. package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
  58. package/dist/components/Menu.vue.d.ts +2 -1
  59. package/dist/components/MenuItem.vue.d.ts +3 -1
  60. package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
  61. package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
  62. package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
  63. package/dist/components/Message/MessageList.vue.d.ts +4 -3
  64. package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
  65. package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
  66. package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
  67. package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
  68. package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
  69. package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
  70. package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
  71. package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
  72. package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
  73. package/dist/components/Message/messageBody/types.d.ts +7 -0
  74. package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
  75. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
  76. package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
  77. package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
  78. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
  79. package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
  80. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
  81. package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
  82. package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
  83. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
  84. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  85. package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
  86. package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
  87. package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
  88. package/dist/composables/Authkit/useOauth.d.ts +17 -4
  89. package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
  90. package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
  91. package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
  92. package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
  93. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
  94. package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
  95. package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
  96. package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
  97. package/dist/composables/useInfiniteList.d.ts +19 -0
  98. package/dist/composables/useMessageNotifications.d.ts +3 -6
  99. package/dist/composables.d.ts +4 -2
  100. package/dist/composables.js +50 -45
  101. package/dist/feedback.d.ts +1 -0
  102. package/dist/feedback.js +12 -11
  103. package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
  104. package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
  105. package/dist/landingPage.js +21 -21
  106. package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
  107. package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
  108. package/dist/legalDocs/index.d.ts +7 -0
  109. package/dist/legalDocs/isConfigured.d.ts +7 -0
  110. package/dist/legalDocs/open.d.ts +3 -0
  111. package/dist/legalDocs/resolveAppId.d.ts +8 -0
  112. package/dist/legalDocs/resolveTarget.d.ts +4 -0
  113. package/dist/legalDocs/types.d.ts +12 -0
  114. package/dist/main.js +320 -308
  115. package/dist/message.d.ts +3 -0
  116. package/dist/message.js +301 -21
  117. package/dist/pay.d.ts +1 -1
  118. package/dist/pay.js +14 -17
  119. package/dist/privateCom.js +1 -1
  120. package/dist/referrer.js +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/types/api/auth.generated.d.ts +1385 -328
  123. package/dist/types/api/billing.generated.d.ts +907 -76
  124. package/dist/types/api/ones.generated.d.ts +131 -2
  125. package/dist/types/api.d.ts +1 -0
  126. package/dist/types/app.d.ts +10 -0
  127. package/dist/types/user.d.ts +1 -0
  128. package/dist/upload.js +2 -2
  129. package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
  130. package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
  131. package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
  132. package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
  133. package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
  134. package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
  135. package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
  136. package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
  137. package/dist/useRoutePermission-CEiya9AM.js +218 -0
  138. package/dist/useSEO-CDWxbk8B.js +221 -0
  139. package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
  140. package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
  141. package/dist/user.js +1 -1
  142. package/dist/userMenuModal-D-nDaYqM.js +66 -0
  143. package/dist/utils/apiMiddlewares.d.ts +5 -5
  144. package/dist/utils/apiResponse.d.ts +11 -0
  145. package/dist/utils/authProviderIcon.d.ts +3 -0
  146. package/dist/utils/authkit.d.ts +20 -7
  147. package/dist/utils/formatPoints.d.ts +8 -0
  148. package/dist/utils/messageNotificationContent.d.ts +4 -0
  149. package/dist/utils/messageTextLink.d.ts +9 -0
  150. package/dist/utils/passkeySupport.d.ts +8 -0
  151. package/dist/utils/pointsFlowTypes.d.ts +10 -0
  152. package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
  153. package/dist/utils/refundStatusDisplay.d.ts +1 -0
  154. package/dist/utils/subscriptionDisplay.d.ts +7 -0
  155. package/dist/utils/userDisplay.d.ts +41 -0
  156. package/package.json +11 -3
  157. package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
  158. package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
  159. package/dist/CustomTable-CCOQxfxr.js +0 -279
  160. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
  161. package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
  162. package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
  163. package/dist/Menu-Cy2ZPeaz.js +0 -170
  164. package/dist/MessageHandle-BG12aX0i.js +0 -924
  165. package/dist/MessageList-CrCF8mU6.js +0 -233
  166. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
  167. package/dist/PaySubscriptions-C3KiTsQS.js +0 -1241
  168. package/dist/PricingPlans-uwlFiiJx.js +0 -404
  169. package/dist/ReferrerReferees-Zb5Bd-_e.js +0 -106
  170. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js +0 -520
  171. package/dist/WidthContainer-BVBk0kJN.js +0 -688
  172. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
  173. package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
  174. package/dist/index-D3Kp6R4z.js +0 -4
  175. package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
  176. package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
  177. package/dist/useLegalLinks-Cwr45PBT.js +0 -60
  178. package/dist/useRoutePermission-CaWtjLRA.js +0 -212
  179. package/dist/useSEO-BSMQdBR9.js +0 -158
  180. package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
  181. package/dist/useTableHandle-BdujaiNX.js +0 -69
  182. /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
package/dist/feedback.js CHANGED
@@ -1,17 +1,18 @@
1
- import { B as b, a as s, F, b as d, _ as c, c as o, R as t } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js";
2
- import { C as r } from "./Clipboard-Bo7gdpR6.js";
3
- import { F as m, a as f, b as i, c as n } from "./FeedbackItem-BP-SiJ2u.js";
1
+ import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js";
2
+ import { C as i } from "./index-BkLvw1PU.js";
3
+ import { F as m, a as f, b as n, c as p } from "./FeedbackItem-BP-SiJ2u.js";
4
4
  export {
5
- r as Clipboard,
5
+ i as Clipboard,
6
6
  b as FeedbackBubbleEnd,
7
7
  s as FeedbackBubbleStart,
8
8
  m as FeedbackContainer,
9
9
  f as FeedbackCustomTabs,
10
- F as FeedbackDetails,
11
- i as FeedbackFloatButton,
12
- d as FeedbackForm,
13
- n as FeedbackItem,
14
- c as FeedbackList,
15
- o as FeedbackModal,
16
- t as FeedbackRefresh
10
+ d as FeedbackDetails,
11
+ n as FeedbackFloatButton,
12
+ F as FeedbackForm,
13
+ p as FeedbackItem,
14
+ o as FeedbackList,
15
+ c as FeedbackModal,
16
+ t as FeedbackRefresh,
17
+ r as VideoPreview
17
18
  };
@@ -0,0 +1,25 @@
1
+ import { g as r } from "./apiClients-BcXOLuYu.js";
2
+ import { n as a } from "./useAuthkitAppsAuthPageInfo-CNudJd04.js";
3
+ async function i(n) {
4
+ if (!n)
5
+ return null;
6
+ try {
7
+ const e = await fetch(`${r.authPrefixUrl}/apps/authPageInfo`, {
8
+ method: "POST",
9
+ headers: {
10
+ "Content-Type": "application/json",
11
+ "app-id": n
12
+ },
13
+ body: "{}"
14
+ });
15
+ if (!e.ok)
16
+ return null;
17
+ const t = await e.json(), o = t == null ? void 0 : t.aboutUs;
18
+ return !o || typeof o != "object" ? null : a(o);
19
+ } catch {
20
+ return null;
21
+ }
22
+ }
23
+ export {
24
+ i as f
25
+ };
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-DrGX2iJy.js";
2
+ import "./apiClients-BcXOLuYu.js";
3
3
  import { defineComponent as X, ref as J, openBlock as K, createBlock as Q, unref as W } from "vue";
4
4
  import { Message as Z } from "@arco-design/web-vue";
5
5
  import { Icon as $ } from "@iconify/vue";
@@ -1,22 +1,22 @@
1
- import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as T, n as F, o as f, p as S, q as l, r as b, s as k, t as x, u as B, T as D, v as G, w as H, x as h, y, z as A, P as I } from "./LandingPageSectionTabs-Ce3_Rc2L.js";
2
- import { L as v, a as w } from "./LandingPageFAQ-CZJXvor9.js";
3
- import { L as z, a as M, b as Q, c as E, D as J, d as K, e as N, f as O, g as R, h as U, i as V, j as W, k as X } from "./LandingPageLinkGroup-DDNRivMt.js";
4
- import { D as Z, L as _ } from "./LandingPageSectionHeader-D_74W4My.js";
1
+ import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as T, n as F, o as f, p as S, q as b, r as l, s as k, t as x, u as B, T as D, v as G, w as H, x as h, y, z as A, P as I } from "./LandingPageSectionTabs-DhKpOj5F.js";
2
+ import { L as v, a as w, b as q } from "./LandingPageSectionHeader-CVAqc7bx.js";
3
+ import { L as M, a as Q, b as E, c as J, D as K, d as N, e as O, f as R, g as U, h as V, i as W, j as X, k as Y } from "./LandingPageLinkGroup-r-t3H1X0.js";
4
+ import { D as _ } from "./LandingPageDescription-BczWZHKy.js";
5
5
  import { L as aa } from "./Logo-D7fyXyB-.js";
6
6
  export {
7
7
  g as LandingPageAbout,
8
8
  e as LandingPageAside,
9
9
  i as LandingPageBlockHeader,
10
10
  v as LandingPageBlockLayout,
11
- z as LandingPageBrandInfo,
11
+ M as LandingPageBrandInfo,
12
12
  s as LandingPageButton,
13
13
  d as LandingPageCard,
14
- M as LandingPageContact,
15
- Q as LandingPageContactForm,
16
- E as LandingPageContainer,
14
+ Q as LandingPageContact,
15
+ E as LandingPageContactForm,
16
+ J as LandingPageContainer,
17
17
  L as LandingPageCta,
18
- Z as LandingPageDescription,
19
- J as LandingPageDivider,
18
+ _ as LandingPageDescription,
19
+ K as LandingPageDivider,
20
20
  w as LandingPageFAQ,
21
21
  P as LandingPageFeatureCard,
22
22
  o as LandingPageFeatureSectionHeader,
@@ -24,29 +24,29 @@ export {
24
24
  r as LandingPageFeatures2,
25
25
  c as LandingPageFeaturesGrid,
26
26
  u as LandingPageFooter,
27
- K as LandingPageFooterContact,
28
- N as LandingPageFooterLayout,
27
+ N as LandingPageFooterContact,
28
+ O as LandingPageFooterLayout,
29
29
  m as LandingPageHero,
30
- O as LandingPageLink,
31
- R as LandingPageLinkGroup,
32
- U as LandingPageListItem,
30
+ R as LandingPageLink,
31
+ U as LandingPageLinkGroup,
32
+ V as LandingPageListItem,
33
33
  aa as LandingPageLogo,
34
34
  C as LandingPageLogos,
35
- V as LandingPageMission,
35
+ W as LandingPageMission,
36
36
  p as LandingPagePageContent,
37
37
  T as LandingPagePriceGroup,
38
38
  F as LandingPagePricingCard,
39
39
  f as LandingPagePricingGrid,
40
- _ as LandingPageSectionHeader,
40
+ q as LandingPageSectionHeader,
41
41
  S as LandingPageSectionTabs,
42
- l as LandingPageSections,
43
- b as LandingPageShowcase,
42
+ b as LandingPageSections,
43
+ l as LandingPageShowcase,
44
44
  k as LandingPageStats,
45
45
  x as LandingPageSteps,
46
46
  B as LandingPageSubTitle,
47
47
  D as LandingPageTabs,
48
- W as LandingPageTeamInfo,
49
- X as LandingPageTeamList,
48
+ X as LandingPageTeamInfo,
49
+ Y as LandingPageTeamList,
50
50
  G as LandingPageTestimonial,
51
51
  H as LandingPageTestimonialCard,
52
52
  h as LandingPageTips,
@@ -0,0 +1,3 @@
1
+ import { LegalDocKey } from './constants';
2
+ /** 内置法律文档详情页 URL:同域 /AboutUsDetails?type=&appId= */
3
+ export declare function buildBuiltinLegalDocUrl(type: LegalDocKey, appId: string): string;
@@ -1,9 +1,5 @@
1
1
  /**
2
2
  * 法律 / 协议类文档字典:将后端 aboutUs 的字段名映射到中文标签。
3
- * 维护此处即可同步更新所有展示位(登录页底部、用户面板、关于我们等)。
4
- *
5
- * key ↔ aboutUs 字段名(保持与后端 schema 一致)
6
- * label ↔ UI 展示文案
7
3
  */
8
4
  export declare const LEGAL_DOCS: {
9
5
  readonly userServiceAgreement: "用户服务协议";
@@ -14,9 +10,3 @@ export declare const LEGAL_DOCS: {
14
10
  };
15
11
  export type LegalDocKey = keyof typeof LEGAL_DOCS;
16
12
  export declare const LEGAL_DOC_KEYS: LegalDocKey[];
17
- /**
18
- * 构造法律文档外链。
19
- * @param type 文档类型(与 aboutUs 字段名一致)
20
- * @param appId 当前应用 ID(来自 globalConfig.appId)
21
- */
22
- export declare function buildLegalLinkUrl(type: LegalDocKey, appId: string): string;
@@ -0,0 +1,7 @@
1
+ export { LEGAL_DOCS, LEGAL_DOC_KEYS, type LegalDocKey } from './constants';
2
+ export { buildBuiltinLegalDocUrl } from './buildBuiltinUrl';
3
+ export { isLegalDocConfigured } from './isConfigured';
4
+ export { resolveLegalAppId } from './resolveAppId';
5
+ export { resolveLegalDocTargetFromData } from './resolveTarget';
6
+ export { openInNewTab, openLegalDocTarget } from './open';
7
+ export type { LegalDocTarget, LegalDocSource, LegalDocsMode } from './types';
@@ -0,0 +1,7 @@
1
+ /** TipTap / JSON 文档最小结构 */
2
+ export interface LegalDocContent {
3
+ type?: string;
4
+ content?: unknown[];
5
+ }
6
+ /** 判断内置 TipTap 文档是否已配置有效内容 */
7
+ export declare function isLegalDocConfigured(doc: LegalDocContent | null | undefined): boolean;
@@ -0,0 +1,3 @@
1
+ import { LegalDocTarget } from './types';
2
+ export declare function openInNewTab(url: string): void;
3
+ export declare function openLegalDocTarget(target: LegalDocTarget): void;
@@ -0,0 +1,8 @@
1
+ export interface ResolveLegalAppIdOptions {
2
+ appId?: string;
3
+ route?: {
4
+ query: Record<string, unknown>;
5
+ };
6
+ }
7
+ /** 解析法律文档所属租户 appId:显式参数 → 路由 query → globalConfig */
8
+ export declare function resolveLegalAppId(options?: ResolveLegalAppIdOptions): string;
@@ -0,0 +1,4 @@
1
+ import { LegalDocKey } from './constants';
2
+ import { LegalDocSource, LegalDocTarget } from './types';
3
+ /** 根据 aboutUs 内容解析内置法律文档打开目标 */
4
+ export declare function resolveLegalDocTargetFromData(key: LegalDocKey, data: LegalDocSource, appId: string): LegalDocTarget | undefined;
@@ -0,0 +1,12 @@
1
+ import { LegalDocKey } from './constants';
2
+ import { LegalDocContent } from './isConfigured';
3
+ export interface LegalDocTarget {
4
+ key: LegalDocKey;
5
+ label: string;
6
+ url: string;
7
+ configured: boolean;
8
+ }
9
+ export interface LegalDocSource {
10
+ aboutUs?: Partial<Record<LegalDocKey, LegalDocContent>>;
11
+ }
12
+ export type LegalDocsMode = 'builtin' | 'delegate';