@hanzo/ui 5.3.36 → 5.3.39

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 (186) hide show
  1. package/dist/assets/crypto.d.ts.map +1 -1
  2. package/dist/assets/file.d.ts.map +1 -1
  3. package/dist/assets/general.d.ts.map +1 -1
  4. package/dist/assets/hanzo-logo.d.ts.map +1 -1
  5. package/dist/assets/llm-provider.d.ts.map +1 -1
  6. package/dist/components/cal-embed.d.ts.map +1 -1
  7. package/dist/frameworks/react/hooks/index.d.ts.map +1 -1
  8. package/dist/frameworks/react-native/utils.d.ts.map +1 -1
  9. package/dist/frameworks/svelte/utils.d.ts.map +1 -1
  10. package/dist/frameworks/vue/utils.d.ts.map +1 -1
  11. package/dist/helpers/file.d.ts.map +1 -1
  12. package/dist/helpers/memoization.d.ts.map +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/index.mjs +2 -2
  15. package/dist/models/index.js +35 -0
  16. package/dist/models/index.mjs +35 -0
  17. package/dist/navigation/index.js +2 -1
  18. package/dist/navigation/index.mjs +2 -1
  19. package/dist/primitives/alert.d.ts +1 -1
  20. package/dist/primitives/cal-embed.d.ts.map +1 -1
  21. package/dist/primitives/chart.d.ts.map +1 -1
  22. package/dist/primitives/chat/chat-input.d.ts.map +1 -1
  23. package/dist/primitives/combobox.d.ts.map +1 -1
  24. package/dist/primitives/command.d.ts.map +1 -1
  25. package/dist/primitives/copy-to-clipboard-icon.d.ts.map +1 -1
  26. package/dist/primitives/dots-loader.d.ts.map +1 -1
  27. package/dist/primitives/error-message.d.ts.map +1 -1
  28. package/dist/primitives/file-uploader.d.ts.map +1 -1
  29. package/dist/primitives/form.d.ts.map +1 -1
  30. package/dist/primitives/input-otp.d.ts.map +1 -1
  31. package/dist/primitives/markdown-preview.d.ts.map +1 -1
  32. package/dist/primitives/pretty-json-print.d.ts.map +1 -1
  33. package/dist/primitives/resizable.d.ts +4 -20
  34. package/dist/primitives/resizable.d.ts.map +1 -1
  35. package/dist/primitives/resizable.js +4 -4
  36. package/dist/primitives/sonner.d.ts.map +1 -1
  37. package/dist/primitives/text-link.d.ts.map +1 -1
  38. package/dist/primitives/textfield.d.ts.map +1 -1
  39. package/dist/primitives/toast.d.ts.map +1 -1
  40. package/dist/resizable.js +1 -1
  41. package/dist/resizable.mjs +1 -1
  42. package/dist/src/billing/components/account-members.d.ts +10 -0
  43. package/dist/src/billing/components/account-members.d.ts.map +1 -0
  44. package/dist/src/billing/components/account-members.js +63 -0
  45. package/dist/src/billing/components/account-switcher.d.ts +9 -0
  46. package/dist/src/billing/components/account-switcher.d.ts.map +1 -0
  47. package/dist/src/billing/components/account-switcher.js +52 -0
  48. package/dist/src/billing/components/animated-card.d.ts +9 -0
  49. package/dist/src/billing/components/animated-card.d.ts.map +1 -0
  50. package/dist/src/billing/components/animated-card.js +161 -0
  51. package/dist/src/billing/components/billing-settings.d.ts +26 -0
  52. package/dist/src/billing/components/billing-settings.d.ts.map +1 -0
  53. package/dist/src/billing/components/billing-settings.js +23 -0
  54. package/dist/src/billing/components/business-profile-panel.d.ts.map +1 -1
  55. package/dist/src/billing/components/business-profile-panel.js +9 -8
  56. package/dist/src/billing/components/card-form.d.ts +18 -0
  57. package/dist/src/billing/components/card-form.d.ts.map +1 -0
  58. package/dist/src/billing/components/card-form.js +139 -0
  59. package/dist/src/billing/components/cost-explorer.d.ts +7 -0
  60. package/dist/src/billing/components/cost-explorer.d.ts.map +1 -0
  61. package/dist/src/billing/components/cost-explorer.js +73 -0
  62. package/dist/src/billing/components/credits-panel.d.ts +8 -0
  63. package/dist/src/billing/components/credits-panel.d.ts.map +1 -0
  64. package/dist/src/billing/components/credits-panel.js +58 -0
  65. package/dist/src/billing/components/guided-setup.d.ts +13 -0
  66. package/dist/src/billing/components/guided-setup.d.ts.map +1 -0
  67. package/dist/src/billing/components/guided-setup.js +44 -0
  68. package/dist/src/billing/components/index.d.ts +34 -0
  69. package/dist/src/billing/components/index.d.ts.map +1 -1
  70. package/dist/src/billing/components/index.js +17 -0
  71. package/dist/src/billing/components/invoice-manager.js +13 -13
  72. package/dist/src/billing/components/invoices-payments.d.ts +7 -0
  73. package/dist/src/billing/components/invoices-payments.d.ts.map +1 -0
  74. package/dist/src/billing/components/invoices-payments.js +44 -0
  75. package/dist/src/billing/components/overview-dashboard.d.ts +31 -0
  76. package/dist/src/billing/components/overview-dashboard.d.ts.map +1 -0
  77. package/dist/src/billing/components/overview-dashboard.js +105 -0
  78. package/dist/src/billing/components/payment-manager.d.ts.map +1 -1
  79. package/dist/src/billing/components/payment-manager.js +267 -83
  80. package/dist/src/billing/components/promotions-panel.d.ts +7 -0
  81. package/dist/src/billing/components/promotions-panel.d.ts.map +1 -0
  82. package/dist/src/billing/components/promotions-panel.js +48 -0
  83. package/dist/src/billing/components/spend-alerts.d.ts +9 -0
  84. package/dist/src/billing/components/spend-alerts.d.ts.map +1 -0
  85. package/dist/src/billing/components/spend-alerts.js +99 -0
  86. package/dist/src/billing/components/square-card-form.d.ts +32 -0
  87. package/dist/src/billing/components/square-card-form.d.ts.map +1 -0
  88. package/dist/src/billing/components/square-card-form.js +179 -0
  89. package/dist/src/billing/components/status-bar.d.ts +12 -0
  90. package/dist/src/billing/components/status-bar.d.ts.map +1 -0
  91. package/dist/src/billing/components/status-bar.js +32 -0
  92. package/dist/src/billing/components/subscription-portal.d.ts +2 -1
  93. package/dist/src/billing/components/subscription-portal.d.ts.map +1 -1
  94. package/dist/src/billing/components/subscription-portal.js +123 -26
  95. package/dist/src/billing/components/support-tiers-panel.d.ts +6 -0
  96. package/dist/src/billing/components/support-tiers-panel.d.ts.map +1 -0
  97. package/dist/src/billing/components/support-tiers-panel.js +90 -0
  98. package/dist/src/billing/components/tax-compliance-panel.js +5 -5
  99. package/dist/src/billing/components/transactions-panel.d.ts +8 -0
  100. package/dist/src/billing/components/transactions-panel.d.ts.map +1 -0
  101. package/dist/src/billing/components/transactions-panel.js +64 -0
  102. package/dist/src/billing/components/usage-panel.d.ts +7 -0
  103. package/dist/src/billing/components/usage-panel.d.ts.map +1 -0
  104. package/dist/src/billing/components/usage-panel.js +64 -0
  105. package/dist/src/billing/types/index.d.ts +136 -1
  106. package/dist/src/billing/types/index.d.ts.map +1 -1
  107. package/dist/src/form/form.d.ts.map +1 -1
  108. package/dist/src/hooks/use-copy-clipboard.d.ts.map +1 -1
  109. package/dist/src/hooks/use-fill-ids.d.ts.map +1 -1
  110. package/dist/src/hooks/use-scroll-restoration.d.ts.map +1 -1
  111. package/dist/src/models/ModelCard.d.ts +25 -0
  112. package/dist/src/models/ModelCard.d.ts.map +1 -0
  113. package/dist/src/models/ModelCard.js +73 -0
  114. package/dist/src/models/ModelLibrary.d.ts +41 -0
  115. package/dist/src/models/ModelLibrary.d.ts.map +1 -0
  116. package/dist/src/models/ModelLibrary.js +63 -0
  117. package/dist/src/models/ModelTable.d.ts +17 -0
  118. package/dist/src/models/ModelTable.d.ts.map +1 -0
  119. package/dist/src/models/ModelTable.js +35 -0
  120. package/dist/src/models/ZenEnso.d.ts +17 -0
  121. package/dist/src/models/ZenEnso.d.ts.map +1 -0
  122. package/dist/src/models/ZenEnso.js +50 -0
  123. package/dist/src/models/index.d.ts +23 -0
  124. package/dist/src/models/index.d.ts.map +1 -0
  125. package/dist/src/models/index.js +18 -0
  126. package/dist/src/models/types.d.ts +40 -0
  127. package/dist/src/models/types.d.ts.map +1 -0
  128. package/dist/src/models/types.js +7 -0
  129. package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts +8 -0
  130. package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts.map +1 -0
  131. package/dist/src/navigation/hanzo-shell/AppSwitcher.js +19 -0
  132. package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts +9 -0
  133. package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts.map +1 -0
  134. package/dist/src/navigation/hanzo-shell/BeamAvatar.js +38 -0
  135. package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts +28 -0
  136. package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts.map +1 -0
  137. package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.js +124 -0
  138. package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts +37 -0
  139. package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts.map +1 -0
  140. package/dist/src/navigation/hanzo-shell/HanzoHeader.js +43 -0
  141. package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts +17 -0
  142. package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts.map +1 -0
  143. package/dist/src/navigation/hanzo-shell/HanzoMark.js +57 -0
  144. package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts +15 -0
  145. package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts.map +1 -0
  146. package/dist/src/navigation/hanzo-shell/UserAvatar.js +44 -0
  147. package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts +11 -0
  148. package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts.map +1 -0
  149. package/dist/src/navigation/hanzo-shell/UserOrgDropdown.js +26 -0
  150. package/dist/src/navigation/hanzo-shell/index.d.ts +14 -0
  151. package/dist/src/navigation/hanzo-shell/index.d.ts.map +1 -0
  152. package/dist/src/navigation/hanzo-shell/index.js +9 -0
  153. package/dist/src/navigation/hanzo-shell/types.d.ts +49 -0
  154. package/dist/src/navigation/hanzo-shell/types.d.ts.map +1 -0
  155. package/dist/src/navigation/hanzo-shell/types.js +32 -0
  156. package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts +16 -0
  157. package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts.map +1 -0
  158. package/dist/src/navigation/hanzo-shell/useHanzoAuth.js +93 -0
  159. package/dist/src/navigation/index.d.ts +2 -0
  160. package/dist/src/navigation/index.d.ts.map +1 -1
  161. package/dist/src/navigation/index.js +2 -0
  162. package/dist/src/ui/banner.d.ts +1 -1
  163. package/dist/util/blob.d.ts.map +1 -1
  164. package/dist/util/blob.js +1 -1
  165. package/dist/util/date.d.ts.map +1 -1
  166. package/dist/util/debounce.d.ts.map +1 -1
  167. package/dist/util/file.d.ts.map +1 -1
  168. package/dist/util/format-and-abbreviate-as-currency.d.ts +7 -1
  169. package/dist/util/format-and-abbreviate-as-currency.d.ts.map +1 -1
  170. package/dist/util/format-text.d.ts.map +1 -1
  171. package/dist/util/format-to-max-char.d.ts +7 -1
  172. package/dist/util/format-to-max-char.d.ts.map +1 -1
  173. package/dist/util/index.mjs +1 -1
  174. package/dist/util/number-abbreviate.d.ts.map +1 -1
  175. package/dist/util/specifier.d.ts.map +1 -1
  176. package/dist/util/step-animation.d.ts.map +1 -1
  177. package/package.json +20 -7
  178. package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts +0 -595
  179. package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts.map +0 -1
  180. package/dist/tailwind/typo-plugin/get-plugin-styles.js +0 -661
  181. package/dist/tailwind/typo-plugin/index.d.ts +0 -3
  182. package/dist/tailwind/typo-plugin/index.d.ts.map +0 -1
  183. package/dist/tailwind/typo-plugin/index.js +0 -102
  184. package/dist/tailwind/typo-plugin/utils.d.ts +0 -6
  185. package/dist/tailwind/typo-plugin/utils.d.ts.map +0 -1
  186. package/dist/tailwind/typo-plugin/utils.js +0 -47
@@ -0,0 +1,49 @@
1
+ export type HanzoApp = {
2
+ id: string;
3
+ label: string;
4
+ href: string;
5
+ icon?: React.ReactNode;
6
+ description?: string;
7
+ };
8
+ export type HanzoOrg = {
9
+ id: string;
10
+ name: string;
11
+ slug: string;
12
+ role?: string;
13
+ };
14
+ export type HanzoUser = {
15
+ id?: string;
16
+ name?: string;
17
+ email: string;
18
+ avatar?: string;
19
+ };
20
+ export type HanzoMarkProps = {
21
+ size?: number;
22
+ className?: string;
23
+ brandMenu?: boolean;
24
+ animate?: boolean;
25
+ };
26
+ export type HanzoShellProps = {
27
+ /** Current app name shown in breadcrumb */
28
+ currentApp: string;
29
+ /** Current app id – used to suppress showing current app in switcher */
30
+ currentAppId?: string;
31
+ /** User from IAM */
32
+ user?: HanzoUser;
33
+ /** Orgs the user belongs to */
34
+ organizations?: HanzoOrg[];
35
+ /** Currently active org id */
36
+ currentOrgId?: string;
37
+ /** Called when user selects a different org */
38
+ onOrgSwitch?: (orgId: string) => void;
39
+ /** Called when user clicks sign out */
40
+ onSignOut?: () => void;
41
+ /** Override the default Hanzo apps list */
42
+ apps?: HanzoApp[];
43
+ /** Extra content rendered in header right-side */
44
+ headerRight?: React.ReactNode;
45
+ /** Sidebar content */
46
+ children?: React.ReactNode;
47
+ };
48
+ export declare const DEFAULT_HANZO_APPS: HanzoApp[];
49
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/hanzo-shell/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,+BAA+B;IAC/B,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAA;IAC1B,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAA;IACjB,kDAAkD;IAClD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,QAAQ,EA+BxC,CAAA"}
@@ -0,0 +1,32 @@
1
+ export const DEFAULT_HANZO_APPS = [
2
+ {
3
+ id: 'account',
4
+ label: 'Account',
5
+ href: 'https://hanzo.id/account',
6
+ description: 'Profile, orgs & referrals',
7
+ },
8
+ {
9
+ id: 'billing',
10
+ label: 'Billing',
11
+ href: 'https://billing.hanzo.ai',
12
+ description: 'Subscriptions & usage',
13
+ },
14
+ {
15
+ id: 'console',
16
+ label: 'Console',
17
+ href: 'https://console.hanzo.ai',
18
+ description: 'API keys & projects',
19
+ },
20
+ {
21
+ id: 'chat',
22
+ label: 'Chat',
23
+ href: 'https://chat.hanzo.ai',
24
+ description: 'AI chat & models',
25
+ },
26
+ {
27
+ id: 'platform',
28
+ label: 'Platform',
29
+ href: 'https://platform.hanzo.ai',
30
+ description: 'Deploy & scale services',
31
+ },
32
+ ];
@@ -0,0 +1,16 @@
1
+ import type { HanzoUser, HanzoOrg } from './types';
2
+ /**
3
+ * Reads IAM auth from localStorage (shared across all hanzo.* apps) and fetches
4
+ * current user info + orgs from iam.hanzo.ai. Zero-dependency hook — works in
5
+ * billing.hanzo.ai, hanzo.id/account, console.hanzo.ai, etc.
6
+ */
7
+ export declare function useHanzoAuth(): {
8
+ user: HanzoUser | undefined;
9
+ organizations: HanzoOrg[];
10
+ currentOrgId: string | undefined;
11
+ token: string | null;
12
+ loading: boolean;
13
+ signOut: () => void;
14
+ switchOrg: (orgId: string) => void;
15
+ };
16
+ //# sourceMappingURL=useHanzoAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHanzoAuth.d.ts","sourceRoot":"","sources":["../../../../src/navigation/hanzo-shell/useHanzoAuth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAclD;;;;GAIG;AACH,wBAAgB,YAAY;;;;;;;uBAgFY,MAAM;EAK7C"}
@@ -0,0 +1,93 @@
1
+ 'use client';
2
+ import { useState, useEffect, useCallback } from 'react';
3
+ const TOKEN_KEY = 'hanzo-auth-token';
4
+ const USER_KEY = 'hanzo-user';
5
+ const EXPIRES_KEY = 'hanzo-auth-expires';
6
+ const IAM_ENDPOINT = 'https://iam.hanzo.ai';
7
+ const ORG_MAP = {
8
+ hanzo: { name: 'Hanzo AI', slug: 'hanzo' },
9
+ lux: { name: 'Lux Network', slug: 'lux' },
10
+ zoo: { name: 'Zoo Labs', slug: 'zoo' },
11
+ pars: { name: 'Pars', slug: 'pars' },
12
+ };
13
+ /**
14
+ * Reads IAM auth from localStorage (shared across all hanzo.* apps) and fetches
15
+ * current user info + orgs from iam.hanzo.ai. Zero-dependency hook — works in
16
+ * billing.hanzo.ai, hanzo.id/account, console.hanzo.ai, etc.
17
+ */
18
+ export function useHanzoAuth() {
19
+ const [user, setUser] = useState(undefined);
20
+ const [organizations, setOrganizations] = useState([]);
21
+ const [currentOrgId, setCurrentOrgId] = useState(undefined);
22
+ const [token, setToken] = useState(null);
23
+ const [loading, setLoading] = useState(true);
24
+ const load = useCallback(async () => {
25
+ try {
26
+ const storedToken = localStorage.getItem(TOKEN_KEY);
27
+ const expires = localStorage.getItem(EXPIRES_KEY);
28
+ if (!storedToken || (expires && Date.now() > Number(expires))) {
29
+ setLoading(false);
30
+ return;
31
+ }
32
+ setToken(storedToken);
33
+ // Try to get from cache first for instant render
34
+ const cached = localStorage.getItem(USER_KEY);
35
+ if (cached) {
36
+ try {
37
+ const u = JSON.parse(cached);
38
+ if (u?.email) {
39
+ setUser({ id: u.id, name: u.displayName || u.name, email: u.email, avatar: u.avatar });
40
+ }
41
+ }
42
+ catch { /* ignore */ }
43
+ }
44
+ // Fetch fresh from IAM
45
+ const res = await fetch(`${IAM_ENDPOINT}/api/userinfo`, {
46
+ headers: { Authorization: `Bearer ${storedToken}` },
47
+ });
48
+ if (res.ok) {
49
+ const info = await res.json();
50
+ const u = {
51
+ id: info.sub || info.id,
52
+ name: info.name || info.displayName,
53
+ email: info.email,
54
+ avatar: info.picture || info.avatar,
55
+ };
56
+ setUser(u);
57
+ localStorage.setItem(USER_KEY, JSON.stringify(info));
58
+ // Build orgs from IAM groups
59
+ const groups = info.groups || [];
60
+ const orgs = groups
61
+ .map((g) => {
62
+ const slug = g.toLowerCase().replace(/^\//, '');
63
+ const meta = ORG_MAP[slug];
64
+ return meta ? { id: slug, name: meta.name, slug: meta.slug } : null;
65
+ })
66
+ .filter(Boolean);
67
+ // Default: always include at least a personal org
68
+ if (orgs.length === 0 && u.email) {
69
+ orgs.push({ id: 'personal', name: 'Personal', slug: 'personal' });
70
+ }
71
+ setOrganizations(orgs);
72
+ setCurrentOrgId(orgs[0]?.id);
73
+ }
74
+ }
75
+ catch { /* silently fail */ }
76
+ finally {
77
+ setLoading(false);
78
+ }
79
+ }, []);
80
+ useEffect(() => {
81
+ load();
82
+ }, [load]);
83
+ const signOut = useCallback(() => {
84
+ localStorage.removeItem(TOKEN_KEY);
85
+ localStorage.removeItem(USER_KEY);
86
+ localStorage.removeItem(EXPIRES_KEY);
87
+ window.location.href = 'https://hanzo.id';
88
+ }, []);
89
+ const switchOrg = useCallback((orgId) => {
90
+ setCurrentOrgId(orgId);
91
+ }, []);
92
+ return { user, organizations, currentOrgId, token, loading, signOut, switchOrg };
93
+ }
@@ -1,3 +1,5 @@
1
+ export { HanzoHeader, AppSwitcher, UserOrgDropdown, useHanzoAuth, HanzoCommandPalette, DEFAULT_HANZO_APPS } from './hanzo-shell';
2
+ export type { HanzoApp, HanzoOrg, HanzoUser, HanzoShellProps, HanzoCommandItem, HanzoCommandPaletteProps } from './hanzo-shell';
1
3
  export { default as AdvancedNavigationBar } from "./advanced-navigation-bar";
2
4
  export { default as AIModelSelectorNavigationBar } from "./ai-model-selector-navigation-bar";
3
5
  export { default as AppSwitcherNavigationBar } from "./app-switcher-navigation-bar";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,yCAAyC,CAAA;AACtG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAChF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAChI,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAG/H,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,yCAAyC,CAAA;AACtG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAChF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAA"}
@@ -1,3 +1,5 @@
1
+ // Hanzo Shell – shared header/nav for billing, account, console, chat, platform
2
+ export { HanzoHeader, AppSwitcher, UserOrgDropdown, useHanzoAuth, HanzoCommandPalette, DEFAULT_HANZO_APPS } from './hanzo-shell';
1
3
  // Navigation bar components
2
4
  export { default as AdvancedNavigationBar } from "./advanced-navigation-bar";
3
5
  export { default as AIModelSelectorNavigationBar } from "./ai-model-selector-navigation-bar";
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const bannerVariants: (props?: ({
4
- variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
4
+ variant?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface BannerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
7
7
  onClose?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../util/blob.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,SAAU,IAAI,KAAG,OAAO,CAAC,MAAM,CAQvD,CAAC;AAEF,eAAO,MAAM,aAAa,YACf,MAAM,YACL,MAAM,KACf,IAAI,GAAG,SAYT,CAAC"}
1
+ {"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../util/blob.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI,KAAG,OAAO,CAAC,MAAM,CAQvD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,SAAS,MAAM,EACf,UAAU,MAAM,KACf,IAAI,GAAG,SAYT,CAAC"}
package/dist/util/blob.js CHANGED
@@ -19,5 +19,5 @@ export const dataUrlToFile = (dataUrl, filename) => {
19
19
  }
20
20
  const mime = mimeArr[1];
21
21
  const buff = Buffer.from(arr[1], 'base64');
22
- return new File([buff], filename, { type: mime });
22
+ return new File([new Uint8Array(buff)], filename, { type: mime });
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../util/date.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,EAAE,CAAC;KACL,CAAC;CACH,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,uBAAuB,EAAE,CAAC;AAElE,eAAO,MAAM,0BAA0B,SAAU,IAAI,GAAG,SAAS,WAOhE,CAAC;AACF,eAAO,MAAM,gCAAgC,SAAU,IAAI,GAAG,SAAS,WAStE,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,IAAI,KAAG,MAWjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,gBAAgB,EAAE,uCAU/D,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,IAAI,KAAG,MAgBpD,CAAC"}
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../util/date.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,EAAE,CAAC;KACL,CAAC;CACH,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,uBAAuB,EAAE,CAAC;AAElE,eAAO,MAAM,0BAA0B,GAAI,MAAM,IAAI,GAAG,SAAS,WAOhE,CAAC;AACF,eAAO,MAAM,gCAAgC,GAAI,MAAM,IAAI,GAAG,SAAS,WAStE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,MAWjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,gBAAgB,EAAE,uCAU/D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,KAAG,MAgBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../util/debounce.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,SAAU,QAAQ,SAAS,MAAM,eAEnC,GAAG,EAAE,SAQvB,CAAC"}
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../util/debounce.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAE5C,GAAG,MAAM,GAAG,EAAE,SAQvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../util/file.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,aAAc,MAAM,KAAG,MAG9C,CAAC;AACF,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,MAG7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,IAAI,KAAG,OAKjD,CAAC"}
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../util/file.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,KAAG,MAG9C,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,MAG7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,OAKjD,CAAC"}
@@ -3,7 +3,13 @@ interface FormatThreshold {
3
3
  from: number;
4
4
  use: QuantityAbbrSymbol;
5
5
  }
6
- declare const formatAndAbbreviateAsCurrency: (n: number | null, thresholds?: FormatThreshold[], roundingAdds?: number, maxDecimal?: number) => {
6
+ declare const formatAndAbbreviateAsCurrency: (n: number | null, thresholds?: FormatThreshold[],
7
+ /**
8
+ * Chars that will be added by ui if the number is rounded.
9
+ * For example, if the desired output for 10.15 is "~10.1",
10
+ * the tilda counts as 1 char.
11
+ */
12
+ roundingAdds?: number, maxDecimal?: number) => {
7
13
  full: string;
8
14
  result: string;
9
15
  change: "rounded" | "none" | "abbr" | "empty";
@@ -1 +1 @@
1
- {"version":3,"file":"format-and-abbreviate-as-currency.d.ts","sourceRoot":"","sources":["../../util/format-and-abbreviate-as-currency.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,kBAAkB,EAAsB,MAAM,qBAAqB,CAAA;AAElF,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,kBAAkB,CAAA;CACxB;AAaD,QAAA,MAAM,6BAA6B,MAC9B,MAAM,GAAG,IAAI,eACJ,eAAe,EAAE,iBASf,MAAM,eACR,MAAM,KACjB;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAoF9C,CAAA;AAED,OAAO,EACL,6BAA6B,IAAI,OAAO,EACxC,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,CAAA"}
1
+ {"version":3,"file":"format-and-abbreviate-as-currency.d.ts","sourceRoot":"","sources":["../../util/format-and-abbreviate-as-currency.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,kBAAkB,EAAsB,MAAM,qBAAqB,CAAA;AAElF,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,kBAAkB,CAAA;CACxB;AAaD,QAAA,MAAM,6BAA6B,GACjC,GAAG,MAAM,GAAG,IAAI,EAChB,aAAY,eAAe,EAGzB;AACA;;;;GAIG;AACL,eAAc,MAAU,EACxB,aAAY,MAAU,KACrB;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAoF9C,CAAA;AAED,OAAO,EACL,6BAA6B,IAAI,OAAO,EACxC,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"format-text.d.ts","sourceRoot":"","sources":["../../util/format-text.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,WAOtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,WAU/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,kBAAmB,eAAe,WAShE,CAAC"}
1
+ {"version":3,"file":"format-text.d.ts","sourceRoot":"","sources":["../../util/format-text.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,WAOtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,WAU/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,eAAe,eAAe,WAShE,CAAC"}
@@ -1,4 +1,10 @@
1
- declare const formatToMaxChar: (n: number | null, maxChars: number, roundingAdds?: number) => {
1
+ declare const formatToMaxChar: (n: number | null, maxChars: number,
2
+ /**
3
+ * Chars that will be added by ui if the number is rounded.
4
+ * For example, if the desired output for 10.15 is "~10.1",
5
+ * the tilda counts as 1 char.
6
+ */
7
+ roundingAdds?: number) => {
2
8
  result: string;
3
9
  change: "rounded" | "none" | "abbr" | "empty";
4
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"format-to-max-char.d.ts","sourceRoot":"","sources":["../../util/format-to-max-char.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,eAAe,MAChB,MAAM,GAAG,IAAI,YACN,MAAM,iBAMF,MAAM,KACnB;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAkD9C,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"format-to-max-char.d.ts","sourceRoot":"","sources":["../../util/format-to-max-char.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,eAAe,GACnB,GAAG,MAAM,GAAG,IAAI,EAChB,UAAU,MAAM;AACd;;;;GAIG;AACL,eAAc,MAAU,KACvB;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAkD9C,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1 +1 @@
1
- import {createRoot}from'react-dom/client';import {Buffer}from'buffer';import {toast}from'sonner';import {jsx}from'react/jsx-runtime';import*as a from'react';import {useRef,useEffect}from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {reaction,computed,makeObservable,action,observable}from'mobx';var d=Object.defineProperty;var r=(e,t)=>d(e,"name",{value:t,configurable:true});var P=r(e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"numeric",day:"numeric"}):"-","formatDateToUSLocaleString"),E=r(e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}):"-","formatDateToLocaleStringWithTime"),N=r(e=>{let t=new Date,n=new Date;return n.setDate(t.getDate()-1),e.toDateString()===t.toDateString()?"today":e.toDateString()===n.toDateString()?"yesterday":e.toDateString()},"getRelativeDateLabel"),U=r(e=>{let t={};for(let n of e){let o=new Date(n.createdAt??"").toDateString();t[o]||(t[o]=[]),t[o].push(n);}return t},"groupMessagesByDate"),F=r(e=>{let t=new Date;if(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())return e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:true});let n=e.getMonth()+1,o=e.getDate();return `${n}/${o}`},"formatDateToMonthAndDay");var B=r(e=>e.split(".").slice(0,-1).join("."),"getFileName"),I=r(e=>e.split(".").pop()||"","getFileExt"),H=r(e=>e?e?.type.startsWith("image/")||e?.type.startsWith("application/pdf"):false,"isFileTypeImageOrPdf");function V(e,t){let n=document.createElement(e),o=n.attachShadow({mode:"open"}),i=new CSSStyleSheet;return i.replaceSync(t),o.adoptedStyleSheets=[i],document.querySelector("html").prepend(n),createRoot(o)}r(V,"createShadowRoot");function q(e=1e3){return new Promise(t=>setTimeout(t,e))}r(q,"delay");var K=r(e=>{let t=new FileReader;return t.readAsDataURL(e),new Promise(n=>{t.onloadend=()=>{n(t.result);};})},"blobToBase64"),X=r((e,t)=>{let n=e.split(",");if(n.length<2)return;let o=n[0].match(/:(.*?);/);if(!o||o.length<2)return;let i=o[1],s=Buffer.from(n[1],"base64");return new File([s],t,{type:i})},"dataUrlToFile");async function re(e){try{await navigator.clipboard.writeText(e);}catch{let t=document.createElement("textarea");t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",t.innerText=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),t.remove();}}r(re,"copyToClipboard");var ie=r(e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" "),"formatText"),se=r(e=>{let o=e.split(/(?=[A-Z])/).map(i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()).join(" ");return o.charAt(0).toUpperCase()+o.slice(1)},"formatCamelCaseText"),ae=r(e=>{if(e.version)return e.version;let t=e.name.split(":::");return t.length===4?t[3]:"latest"},"getVersionFromTool");var me=r(()=>toast.error(jsx("div",{children:"Your Hanzo Node is currently locked by existing keys, please restore your connection or reset your Hanzo Node Storage"}),{position:"bottom-center"}),"submitRegistrationNoCodeNonPristineError"),le=r(()=>toast.error(jsx("div",{children:"Error connecting to your Hanzo Node"}),{position:"bottom-center"}),"submitRegistrationNoCodeError");var he=r((e,t)=>{let n=null;return (...o)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...o);},t);}},"debounce");function b(e){let t=[],n="scale"in e?e.scale:void 0;if(n)if(typeof n=="number")t.push(`scale(${n})`);else if(Array.isArray(n)&&n.length==2&&typeof n[0]=="number")t.push(`scale(${n[0]}, ${n[1]})`);else throw new Error("parsing MediaTransform: Unrecognized value for 'scale'!");return t.length>0?{transform:t.join(" ")}:{}}r(b,"spreadToTransform");var y=b;var Te=r((e,t)=>e.split(" ").find(o=>o.startsWith(`${t}-`)),"getPrimaryStartingWith"),we=r(e=>{let t=e.split("-");return t[t.length-1]},"getTShirtSize"),De=r(e=>{let t=e.split("-");return t[t.length-1]},"getTypographySize"),_e=r(e=>{let t=e.split("-");if(t[t.length-1]){let o=e.split("x");return o?{w:Number(o[0]),h:Number(o[1])}:void 0}},"getDim");function ve(e,t,n,o){let i=t(e);return i?n(i)??o:o??void 0}r(ve,"getSpecifierData");var Ce=["K","M","B","T"];var u=768;function Le(){let[e,t]=a.useState(void 0);return a.useEffect(()=>{let n=window.matchMedia(`(max-width: ${u-1}px)`),o=r(()=>{t(window.innerWidth<u);},"onChange");return n.addEventListener("change",o),t(window.innerWidth<u),()=>n.removeEventListener("change",o)},[]),!!e}r(Le,"useIsMobile");function T(...e){return twMerge(clsx(e))}r(T,"cn");function w(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}r(w,"formatDate");function D(e){return `${process.env.NEXT_PUBLIC_APP_URL||""}${e}`}r(D,"absoluteUrl");function $e(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Math.min(Math.max(e,t),n);if(typeof e=="object"&&typeof t=="object"){let o=e,i=t,s=o.w/o.h,f=i.w/i.h;return s>f?{w:i.w,h:i.w/s}:{w:i.h*s,h:i.h}}throw new Error("Invalid parameters for constrain function")}r($e,"constrain");function Be(e){return Math.round(e*100)/100}r(Be,"round");function Ie(e,t=16){return `${e/t}rem`}r(Ie,"pxToRem");function He(e,t=16){return `${e/t}em`}r(He,"pxToEm");function We(e,t){return e?e.toLowerCase().includes(t.toLowerCase()):false}r(We,"containsToken");function je(...e){let t={};for(let n of e)n&&typeof n=="object"&&Object.assign(t,n);return t}r(je,"ldMerge");function Qe(e,t=0){let n=Number(e);return isNaN(n)?t:n}r(Qe,"asNum");function Ve(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}r(Ve,"capitalize");var p=class p{constructor(t,n){this._step=-1;this._reactionDisposer=void 0;this.initialize=r(()=>{let t=r(()=>{this._setStep(this._step+1),this._step<=this._intervals.length&&setTimeout(()=>{t();},this._intervals[this._step-1]);},"fireNext");this._reactionDisposer=reaction(this._initialStep,n=>{n&&this._step===-1?this._setStep(0):this._step===0&&t();});},"initialize");this._setStep=r(t=>{this._step=t;},"_setStep");this.dispose=r(()=>{this._reactionDisposer&&this._reactionDisposer();},"dispose");this.notPast=r(t=>computed(()=>this._step>-1&&this._step<=t).get(),"notPast");this._initialStep=t,this._intervals=n,makeObservable(this,{_step:observable,_setStep:action});}};r(p,"MyStepAnimation");var c=p,ft=r((e,t)=>{let n=useRef(new c(e,t));return useEffect(()=>(n.current.initialize(),n.current.dispose),[]),n.current},"useStepAnimation");export{Ce as ABBR_SYMBOLS_ARRAY,D as absoluteUrl,Qe as asNum,K as blobToBase64,Ve as capitalize,T as cn,$e as constrain,We as containsToken,re as copyToClipboard,V as createShadowRoot,X as dataUrlToFile,he as debounce,q as delay,se as formatCamelCaseText,w as formatDate,E as formatDateToLocaleStringWithTime,F as formatDateToMonthAndDay,P as formatDateToUSLocaleString,ie as formatText,_e as getDim,I as getFileExt,B as getFileName,Te as getPrimaryStartingWith,N as getRelativeDateLabel,ve as getSpecifierData,we as getTShirtSize,De as getTypographySize,ae as getVersionFromTool,U as groupMessagesByDate,H as isFileTypeImageOrPdf,je as ldMerge,He as pxToEm,Ie as pxToRem,Be as round,y as spreadToTransform,le as submitRegistrationNoCodeError,me as submitRegistrationNoCodeNonPristineError,Le as useIsMobile,ft as useStepAnimation};
1
+ import {createRoot}from'react-dom/client';import {Buffer}from'buffer';import {toast}from'sonner';import {jsx}from'react/jsx-runtime';import*as a from'react';import {useRef,useEffect}from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {reaction,computed,makeObservable,action,observable}from'mobx';var d=Object.defineProperty;var r=(e,t)=>d(e,"name",{value:t,configurable:true});var P=r(e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"numeric",day:"numeric"}):"-","formatDateToUSLocaleString"),E=r(e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}):"-","formatDateToLocaleStringWithTime"),U=r(e=>{let t=new Date,n=new Date;return n.setDate(t.getDate()-1),e.toDateString()===t.toDateString()?"today":e.toDateString()===n.toDateString()?"yesterday":e.toDateString()},"getRelativeDateLabel"),N=r(e=>{let t={};for(let n of e){let o=new Date(n.createdAt??"").toDateString();t[o]||(t[o]=[]),t[o].push(n);}return t},"groupMessagesByDate"),F=r(e=>{let t=new Date;if(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())return e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:true});let n=e.getMonth()+1,o=e.getDate();return `${n}/${o}`},"formatDateToMonthAndDay");var B=r(e=>e.split(".").slice(0,-1).join("."),"getFileName"),I=r(e=>e.split(".").pop()||"","getFileExt"),H=r(e=>e?e?.type.startsWith("image/")||e?.type.startsWith("application/pdf"):false,"isFileTypeImageOrPdf");function V(e,t){let n=document.createElement(e),o=n.attachShadow({mode:"open"}),i=new CSSStyleSheet;return i.replaceSync(t),o.adoptedStyleSheets=[i],document.querySelector("html").prepend(n),createRoot(o)}r(V,"createShadowRoot");function q(e=1e3){return new Promise(t=>setTimeout(t,e))}r(q,"delay");var K=r(e=>{let t=new FileReader;return t.readAsDataURL(e),new Promise(n=>{t.onloadend=()=>{n(t.result);};})},"blobToBase64"),X=r((e,t)=>{let n=e.split(",");if(n.length<2)return;let o=n[0].match(/:(.*?);/);if(!o||o.length<2)return;let i=o[1],s=Buffer.from(n[1],"base64");return new File([new Uint8Array(s)],t,{type:i})},"dataUrlToFile");async function re(e){try{await navigator.clipboard.writeText(e);}catch{let t=document.createElement("textarea");t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",t.innerText=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),t.remove();}}r(re,"copyToClipboard");var ie=r(e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" "),"formatText"),se=r(e=>{let o=e.split(/(?=[A-Z])/).map(i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()).join(" ");return o.charAt(0).toUpperCase()+o.slice(1)},"formatCamelCaseText"),ae=r(e=>{if(e.version)return e.version;let t=e.name.split(":::");return t.length===4?t[3]:"latest"},"getVersionFromTool");var me=r(()=>toast.error(jsx("div",{children:"Your Hanzo Node is currently locked by existing keys, please restore your connection or reset your Hanzo Node Storage"}),{position:"bottom-center"}),"submitRegistrationNoCodeNonPristineError"),le=r(()=>toast.error(jsx("div",{children:"Error connecting to your Hanzo Node"}),{position:"bottom-center"}),"submitRegistrationNoCodeError");var he=r((e,t)=>{let n=null;return (...o)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...o);},t);}},"debounce");function b(e){let t=[],n="scale"in e?e.scale:void 0;if(n)if(typeof n=="number")t.push(`scale(${n})`);else if(Array.isArray(n)&&n.length==2&&typeof n[0]=="number")t.push(`scale(${n[0]}, ${n[1]})`);else throw new Error("parsing MediaTransform: Unrecognized value for 'scale'!");return t.length>0?{transform:t.join(" ")}:{}}r(b,"spreadToTransform");var y=b;var Te=r((e,t)=>e.split(" ").find(o=>o.startsWith(`${t}-`)),"getPrimaryStartingWith"),we=r(e=>{let t=e.split("-");return t[t.length-1]},"getTShirtSize"),De=r(e=>{let t=e.split("-");return t[t.length-1]},"getTypographySize"),_e=r(e=>{let t=e.split("-");if(t[t.length-1]){let o=e.split("x");return o?{w:Number(o[0]),h:Number(o[1])}:void 0}},"getDim");function Ae(e,t,n,o){let i=t(e);return i?n(i)??o:o??void 0}r(Ae,"getSpecifierData");var Ce=["K","M","B","T"];var u=768;function Le(){let[e,t]=a.useState(void 0);return a.useEffect(()=>{let n=window.matchMedia(`(max-width: ${u-1}px)`),o=r(()=>{t(window.innerWidth<u);},"onChange");return n.addEventListener("change",o),t(window.innerWidth<u),()=>n.removeEventListener("change",o)},[]),!!e}r(Le,"useIsMobile");function T(...e){return twMerge(clsx(e))}r(T,"cn");function w(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}r(w,"formatDate");function D(e){return `${process.env.NEXT_PUBLIC_APP_URL||""}${e}`}r(D,"absoluteUrl");function $e(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Math.min(Math.max(e,t),n);if(typeof e=="object"&&typeof t=="object"){let o=e,i=t,s=o.w/o.h,f=i.w/i.h;return s>f?{w:i.w,h:i.w/s}:{w:i.h*s,h:i.h}}throw new Error("Invalid parameters for constrain function")}r($e,"constrain");function Be(e){return Math.round(e*100)/100}r(Be,"round");function Ie(e,t=16){return `${e/t}rem`}r(Ie,"pxToRem");function He(e,t=16){return `${e/t}em`}r(He,"pxToEm");function We(e,t){return e?e.toLowerCase().includes(t.toLowerCase()):false}r(We,"containsToken");function je(...e){let t={};for(let n of e)n&&typeof n=="object"&&Object.assign(t,n);return t}r(je,"ldMerge");function Qe(e,t=0){let n=Number(e);return isNaN(n)?t:n}r(Qe,"asNum");function Ve(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}r(Ve,"capitalize");var p=class p{constructor(t,n){this._step=-1;this._reactionDisposer=void 0;this.initialize=r(()=>{let t=r(()=>{this._setStep(this._step+1),this._step<=this._intervals.length&&setTimeout(()=>{t();},this._intervals[this._step-1]);},"fireNext");this._reactionDisposer=reaction(this._initialStep,n=>{n&&this._step===-1?this._setStep(0):this._step===0&&t();});},"initialize");this._setStep=r(t=>{this._step=t;},"_setStep");this.dispose=r(()=>{this._reactionDisposer&&this._reactionDisposer();},"dispose");this.notPast=r(t=>computed(()=>this._step>-1&&this._step<=t).get(),"notPast");this._initialStep=t,this._intervals=n,makeObservable(this,{_step:observable,_setStep:action});}};r(p,"MyStepAnimation");var c=p,ft=r((e,t)=>{let n=useRef(new c(e,t));return useEffect(()=>(n.current.initialize(),n.current.dispose),[]),n.current},"useStepAnimation");export{Ce as ABBR_SYMBOLS_ARRAY,D as absoluteUrl,Qe as asNum,K as blobToBase64,Ve as capitalize,T as cn,$e as constrain,We as containsToken,re as copyToClipboard,V as createShadowRoot,X as dataUrlToFile,he as debounce,q as delay,se as formatCamelCaseText,w as formatDate,E as formatDateToLocaleStringWithTime,F as formatDateToMonthAndDay,P as formatDateToUSLocaleString,ie as formatText,_e as getDim,I as getFileExt,B as getFileName,Te as getPrimaryStartingWith,U as getRelativeDateLabel,Ae as getSpecifierData,we as getTShirtSize,De as getTypographySize,ae as getVersionFromTool,N as groupMessagesByDate,H as isFileTypeImageOrPdf,je as ldMerge,He as pxToEm,Ie as pxToRem,Be as round,y as spreadToTransform,le as submitRegistrationNoCodeError,me as submitRegistrationNoCodeNonPristineError,Le as useIsMobile,ft as useStepAnimation};
@@ -1 +1 @@
1
- {"version":3,"file":"number-abbreviate.d.ts","sourceRoot":"","sources":["../../util/number-abbreviate.ts"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAC/C,QAAA,MAAM,kBAAkB,2BAAsD,CAAA;AAE9E,cAAM,iBAAiB;IAErB,OAAO,CAAC,MAAM,CAAsB;gBAExB,KAAK,CAAC,EAAE,kBAAkB,EAAE;IAIxC,OAAO,CAAC,WAAW,CAuBlB;IAED,UAAU,MAAO,MAAM,aAAa,MAAM,QAAO,OAAO,YAGvD;CACF;AAED,OAAO,EACL,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,iBAAiB,IAAI,OAAO,EAC7B,CAAA"}
1
+ {"version":3,"file":"number-abbreviate.d.ts","sourceRoot":"","sources":["../../util/number-abbreviate.ts"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAC/C,QAAA,MAAM,kBAAkB,2BAAsD,CAAA;AAE9E,cAAM,iBAAiB;IAErB,OAAO,CAAC,MAAM,CAAsB;gBAExB,KAAK,CAAC,EAAE,kBAAkB,EAAE;IAIxC,OAAO,CAAC,WAAW,CAuBlB;IAED,UAAU,GAAI,GAAG,MAAM,EAAE,WAAW,MAAM,EAAE,MAAK,OAAe,YAG/D;CACF;AAED,OAAO,EACL,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,iBAAiB,IAAI,OAAO,EAC7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"specifier.d.ts","sourceRoot":"","sources":["../../util/specifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAO,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,eAAO,MAAM,sBAAsB,MAAO,MAAM,UAAU,MAAM,uBAG/D,CAAA;AAED,eAAO,MAAM,aAAa,MAAO,MAAM,KAAG,UAAU,GAAG,SAGtD,CAAA;AAED,eAAO,MAAM,iBAAiB,MAAO,MAAM,KAAG,cAAc,GAAG,SAG9D,CAAA;AAED,eAAO,MAAM,MAAM,MAAO,MAAM,KAAG,UAAU,GAAG,SAW/C,CAAA;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EAC7C,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,EACrC,GAAG,CAAC,EAAE,CAAC,GACN,CAAC,GAAG,SAAS,CAMf"}
1
+ {"version":3,"file":"specifier.d.ts","sourceRoot":"","sources":["../../util/specifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAO,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,eAAO,MAAM,sBAAsB,GAAI,GAAG,MAAM,EAAE,QAAQ,MAAM,uBAG/D,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,GAAG,MAAM,KAAG,UAAU,GAAG,SAGtD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,GAAG,MAAM,KAAG,cAAc,GAAG,SAG9D,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,UAAU,GAAG,SAW/C,CAAA;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EAC7C,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,EACrC,GAAG,CAAC,EAAE,CAAC,GACN,CAAC,GAAG,SAAS,CAMf"}
@@ -1 +1 @@
1
- {"version":3,"file":"step-animation.d.ts","sourceRoot":"","sources":["../../util/step-animation.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC/B;AAsED,QAAA,MAAM,gBAAgB,gBAAiB,MAAM,OAAO,aAAa,MAAM,EAAE,KAAG,aAS3E,CAAA;AAED,OAAO,EACL,KAAK,aAAa,EAClB,gBAAgB,EACjB,CAAA"}
1
+ {"version":3,"file":"step-animation.d.ts","sourceRoot":"","sources":["../../util/step-animation.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC/B;AAsED,QAAA,MAAM,gBAAgB,GAAI,aAAa,MAAM,OAAO,EAAE,WAAW,MAAM,EAAE,KAAG,aAS3E,CAAA;AAED,OAAO,EACL,KAAK,aAAa,EAClB,gBAAgB,EACjB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "5.3.36",
3
+ "version": "5.3.39",
4
4
  "description": "Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -414,6 +414,11 @@
414
414
  "import": "./dist/src/mcp/index.mjs",
415
415
  "require": "./dist/src/mcp/index.js"
416
416
  },
417
+ "./models": {
418
+ "types": "./dist/src/models/index.d.ts",
419
+ "import": "./dist/models/index.mjs",
420
+ "require": "./dist/models/index.js"
421
+ },
417
422
  "./react": {
418
423
  "types": "./dist/frameworks/react/index.d.ts",
419
424
  "import": "./dist/frameworks/react/index.mjs",
@@ -676,11 +681,11 @@
676
681
  "lodash.castarray": "^4.4.0",
677
682
  "lodash.isplainobject": "^4.0.6",
678
683
  "lodash.merge": "^4.6.2",
679
- "postcss-selector-parser": "^6.0.16",
684
+ "postcss-selector-parser": "^7.0.0",
680
685
  "react-intersection-observer": "^9.8.2",
681
- "sonner": "^1.3.1",
686
+ "sonner": "^2.0.0",
682
687
  "svg-pan-zoom": "^3.6.2",
683
- "tailwind-merge": "^2.6.0",
688
+ "tailwind-merge": "^3.0.0",
684
689
  "tailwindcss-animate": "^1.0.7",
685
690
  "tailwindcss-interaction-media": "^0.1.0",
686
691
  "vaul": "^1.1.2",
@@ -688,6 +693,8 @@
688
693
  "zod-to-json-schema": "^3.23.2"
689
694
  },
690
695
  "peerDependencies": {
696
+ "@rainbow-me/rainbowkit": "^2.0.0",
697
+ "wagmi": "^2.0.0",
691
698
  "@dnd-kit/core": "^6.0.0",
692
699
  "@dnd-kit/modifiers": "^9.0.0",
693
700
  "@dnd-kit/sortable": "^10.0.0",
@@ -700,7 +707,7 @@
700
707
  "chrono-node": "^2.0.0",
701
708
  "date-fns": "^3.0.0",
702
709
  "framer-motion": "^11.0.0",
703
- "lucide-react": "0.456.0",
710
+ "lucide-react": ">=0.456.0",
704
711
  "mermaid": "^10.0.0",
705
712
  "mobx": "^6.12.3",
706
713
  "next": ">=14.2.16",
@@ -710,7 +717,7 @@
710
717
  "react-dom": "^18.0.0 || ^19.0.0",
711
718
  "react-hook-form": "^7.0.0",
712
719
  "react-qrcode-logo": "^2.0.0",
713
- "react-resizable-panels": "^1.0.0",
720
+ "react-resizable-panels": "^3.0.0 || ^4.0.0",
714
721
  "recharts": "^2.0.0",
715
722
  "sql.js": "^1.0.0",
716
723
  "styled-components": "^6.0.0",
@@ -791,6 +798,12 @@
791
798
  },
792
799
  "vaul": {
793
800
  "optional": true
801
+ },
802
+ "@rainbow-me/rainbowkit": {
803
+ "optional": true
804
+ },
805
+ "wagmi": {
806
+ "optional": true
794
807
  }
795
808
  },
796
809
  "devDependencies": {
@@ -828,7 +841,7 @@
828
841
  "tailwindcss": "^4.1.16",
829
842
  "tsup": "^8.5.0",
830
843
  "tw-animate-css": "^1.2.9",
831
- "typescript": "5.6.3",
844
+ "typescript": "^5.9.3",
832
845
  "vitest": "4.0.6"
833
846
  }
834
847
  }