@hanzo/app 0.3.94 → 0.3.96

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 (110) hide show
  1. package/dist/Account.d.ts +9 -3
  2. package/dist/Account.js +142 -141
  3. package/dist/App.js +71 -37
  4. package/dist/Bar.js +1 -1
  5. package/dist/Betas.d.ts +1 -1
  6. package/dist/Betas.js +16 -22
  7. package/dist/Board.js +114 -48
  8. package/dist/CalScheduler.d.ts +1 -0
  9. package/dist/CalScheduler.js +223 -57
  10. package/dist/Chat.js +432 -153
  11. package/dist/Contacts.js +35 -31
  12. package/dist/ContextMenu.js +126 -42
  13. package/dist/Directory.js +1 -1
  14. package/dist/Drawer.js +1 -1
  15. package/dist/Drive.js +351 -119
  16. package/dist/Gate.js +156 -13
  17. package/dist/Home.js +31 -53
  18. package/dist/Inbox.js +29 -15
  19. package/dist/InlineRename.d.ts +6 -0
  20. package/dist/InlineRename.js +41 -0
  21. package/dist/Learning.js +132 -13
  22. package/dist/Market.js +13 -9
  23. package/dist/Meet.d.ts +5 -0
  24. package/dist/Meet.js +75 -51
  25. package/dist/MoreMenu.d.ts +19 -0
  26. package/dist/MoreMenu.js +33 -0
  27. package/dist/NeedMoreUsage.js +2 -2
  28. package/dist/OrgSwitcher.js +6 -2
  29. package/dist/PreferencesDialog.js +5 -2
  30. package/dist/Rail.d.ts +73 -7
  31. package/dist/Rail.js +372 -111
  32. package/dist/Recents.js +77 -24
  33. package/dist/RightPane.js +2 -2
  34. package/dist/Search.d.ts +13 -1
  35. package/dist/Search.js +366 -50
  36. package/dist/Setup.js +34 -5
  37. package/dist/Shared.js +12 -12
  38. package/dist/Shell.d.ts +10 -0
  39. package/dist/Shell.js +258 -158
  40. package/dist/Sidebar.d.ts +14 -3
  41. package/dist/Sidebar.js +411 -129
  42. package/dist/SkipLink.d.ts +8 -0
  43. package/dist/SkipLink.js +11 -0
  44. package/dist/Start.js +51 -52
  45. package/dist/Terminals.js +159 -11
  46. package/dist/ToBottom.js +1 -1
  47. package/dist/Upgrade.d.ts +8 -3
  48. package/dist/Upgrade.js +194 -103
  49. package/dist/Usage.d.ts +1 -1
  50. package/dist/Usage.js +186 -82
  51. package/dist/WalletPill.js +8 -2
  52. package/dist/Work.js +162 -53
  53. package/dist/archive.d.ts +8 -0
  54. package/dist/archive.js +16 -0
  55. package/dist/bots/Bots.js +16 -1
  56. package/dist/bots/ComputerDialog.js +53 -26
  57. package/dist/bots/ConnectorsDialog.js +34 -15
  58. package/dist/bots/Make.js +5 -1
  59. package/dist/bots/Panel.js +37 -31
  60. package/dist/bots/Roster.d.ts +4 -1
  61. package/dist/bots/Roster.js +71 -25
  62. package/dist/bots/Thread.js +54 -27
  63. package/dist/bots/face.js +9 -3
  64. package/dist/bots/grid.d.ts +36 -0
  65. package/dist/bots/grid.js +91 -0
  66. package/dist/bots/ink.d.ts +1 -1
  67. package/dist/bots/ink.js +1 -1
  68. package/dist/bots/kit.d.ts +9 -4
  69. package/dist/bots/kit.js +3 -2
  70. package/dist/chord.d.ts +13 -0
  71. package/dist/chord.js +30 -1
  72. package/dist/crew.js +47 -4
  73. package/dist/ground.d.ts +2 -2
  74. package/dist/ground.js +3 -3
  75. package/dist/help.d.ts +7 -3
  76. package/dist/help.js +19 -14
  77. package/dist/keys.d.ts +28 -0
  78. package/dist/keys.js +58 -0
  79. package/dist/lib/arrival.d.ts +5 -0
  80. package/dist/lib/arrival.js +10 -0
  81. package/dist/lib/betas.d.ts +2 -0
  82. package/dist/lib/betas.js +10 -0
  83. package/dist/lib/branch.d.ts +11 -0
  84. package/dist/lib/branch.js +11 -0
  85. package/dist/lib/chatPreferences.d.ts +1 -1
  86. package/dist/lib/chatPreferences.js +1 -1
  87. package/dist/lib/dev-mode.d.ts +18 -0
  88. package/dist/lib/dev-mode.js +102 -0
  89. package/dist/lib/durable.d.ts +1 -1
  90. package/dist/lib/durable.js +1 -1
  91. package/dist/lib/info-hint.d.ts +7 -0
  92. package/dist/lib/info-hint.js +8 -0
  93. package/dist/lib/model-picker.d.ts +2 -0
  94. package/dist/lib/model-picker.js +12 -0
  95. package/dist/lib/owners.d.ts +5 -0
  96. package/dist/lib/owners.js +15 -0
  97. package/dist/lib/pay.d.ts +2 -0
  98. package/dist/lib/pay.js +4 -0
  99. package/dist/lib/todo.d.ts +7 -1
  100. package/dist/lib/todo.js +41 -29
  101. package/dist/look.js +39 -8
  102. package/dist/rail-open.d.ts +9 -0
  103. package/dist/rail-open.js +34 -0
  104. package/dist/renaming.d.ts +10 -0
  105. package/dist/renaming.js +25 -0
  106. package/dist/seek.d.ts +6 -1
  107. package/dist/seek.js +13 -0
  108. package/dist/thread.d.ts +2 -1
  109. package/dist/thread.js +85 -44
  110. package/package.json +11 -11
package/dist/Rail.d.ts CHANGED
@@ -3,6 +3,22 @@ import { type Host } from '@hanzo/build';
3
3
  import { MARK } from './ground.js';
4
4
  import { type Place } from './lib/host.js';
5
5
  export { MARK };
6
+ export declare const RAIL_FOLDED = 52;
7
+ /** Where the pinned apps are kept: on the account (`usePref`), under the key this browser has always used, so earlier pins stay. */
8
+ export declare const NAV_PINNED_KEY = "hanzo.nav.pinned";
9
+ export declare const DEFAULT_PINNED_NAV: readonly string[];
10
+ /** The reader's own order, with all 5 core apps (Chat, Dev, Design, Library, Tabs) anchored at the top and never dropped into More. */
11
+ export declare function normalizePinnedNav(list: readonly string[]): string[];
12
+ /** `list` with `id` pinned or unpinned; the core apps stay. */
13
+ export declare function toggledPinnedNav(list: readonly string[], id: string): string[];
14
+ /** `list` with `sourceId` moved to where `targetId` stands. */
15
+ export declare function reorderedPinnedNav(list: readonly string[], sourceId: string, targetId: string): string[];
16
+ /** What `usePinnedNav` answers, held once by the surface and handed to the Rail and the Sidebar, so a pin made in one is in the other. */
17
+ export type Pins = ReturnType<typeof usePinnedNav>;
18
+ /** `list` with `id` swapped with its neighbour one place up (-1) or down (1) among `visible`, the pins the reader sees (one may be hidden): the keyboard's way to the order a drag makes. */
19
+ export declare function shiftedPinnedNav(list: readonly string[], id: string, delta: -1 | 1, visible?: readonly string[]): string[];
20
+ /** The pinned apps, a toggle for one, a reorder and a move, kept on the account. */
21
+ export declare function usePinnedNav(): [string[], (id: string) => void, (sourceId: string, targetId: string) => void, (id: string, delta: -1 | 1, visible?: readonly string[]) => void];
6
22
  /** The places the rail holds beside the products, by the builder address each opens. */
7
23
  export declare const RAISED: {
8
24
  readonly library: '-/artifacts';
@@ -10,25 +26,71 @@ export declare const RAISED: {
10
26
  readonly customize: '-/customize';
11
27
  };
12
28
  export type Raised = keyof typeof RAISED;
13
- /** Which of them a builder address stands on, if any, and so takes the sidebar: an agent's page is Customize's, an automation Scheduled tasks'. */
29
+ /** Which of them a builder address stands on, if any, and so takes the sidebar. */
14
30
  export declare function raised(at: string | null): Raised | null;
15
- /** One mark: an icon button named for where it goes (`label`, already in the reader's language), its name its tooltip, lit where the reader is. */
16
- export declare function Mark({ label, on, onPress, children, ...rest }: {
31
+ export declare const fullNavUrl: (href: string) => string;
32
+ export interface NavEntry {
33
+ id: string;
34
+ slot: string;
35
+ label: string;
36
+ href: string;
37
+ external?: boolean;
38
+ pinnable?: boolean;
39
+ on: boolean;
40
+ icon: ReactNode;
41
+ onPress: () => void;
42
+ }
43
+ export declare function useNavEntries({ host, mode, at, inside, onChat, onDev, onDesign, onStudio, onTabs, go, pins, }: {
44
+ host: Host;
45
+ mode: Place['mode'];
46
+ at: string | null;
47
+ inside?: string | null;
48
+ pins: Pins;
49
+ onChat: () => void;
50
+ onDev: () => void;
51
+ onDesign?: () => void;
52
+ onStudio: () => void;
53
+ onTabs: () => void;
54
+ go: (address: string) => void;
55
+ }): {
56
+ anon: boolean;
57
+ devMode: boolean;
58
+ team: boolean;
59
+ here: "customize" | "library" | "scheduled";
60
+ apps: import("./lib/hosted.js").Hosted[];
61
+ granted: import("./lib/betas.js").Beta[];
62
+ pinnedIds: string[];
63
+ pinnedSet: Set<string>;
64
+ togglePin: (id: string) => void;
65
+ allEntries: NavEntry[];
66
+ externalEntries: NavEntry[];
67
+ pinnedEntries: NavEntry[];
68
+ moreEntries: NavEntry[];
69
+ shownInPrimary: Set<string>;
70
+ reach: (address: string) => void;
71
+ };
72
+ /** One mark: an icon button named for where it goes (`label`), with optional instant Tooltip when folded. */
73
+ export declare function Mark({ label, on, tooltip, onPress, onClick, children, ...rest }: {
17
74
  label: string;
18
75
  /** The reader is there. */
19
76
  on?: boolean;
77
+ /** Render a styled Hanzo Tooltip when used in the folded icon rail. */
78
+ tooltip?: boolean;
20
79
  onPress?: () => void;
80
+ onClick?: () => void;
21
81
  children: ReactNode;
22
82
  [attribute: `data-${string}` | `aria-${string}`]: unknown;
23
83
  }): import("react").JSX.Element;
24
- /** The sidebar's toggle: the same mark wherever a host draws it. Its icon is the sidebar at the start edge, mirrored right to left. */
84
+ /** The sidebar's toggle: the same mark wherever a host draws it. */
25
85
  export declare function Toggle({ open, onPress, label }: {
26
86
  open: boolean;
27
87
  onPress: () => void;
28
88
  label?: string;
29
89
  }): import("react").JSX.Element;
30
- export declare function Rail({ host, mode, at, open, toggle, inside, rows, onChat, onDev, onDesign, onStudio, onTabs, go, onOrg, }: {
90
+ export declare function Rail({ host, mode, at, open, toggle, onOpen, onNew, compact, inside, onChat, onDev, onDesign, onStudio, onTabs, go, onOrg, pins, }: {
31
91
  host: Host;
92
+ /** The pinned apps, held by the surface. */
93
+ pins: Pins;
32
94
  mode: Place['mode'];
33
95
  /** Dev's builder address, or null outside Dev. */
34
96
  at: string | null;
@@ -36,10 +98,14 @@ export declare function Rail({ host, mode, at, open, toggle, inside, rows, onCha
36
98
  open: boolean;
37
99
  /** Lead with the sidebar's toggle; absent where the host's bar holds it. */
38
100
  toggle?: () => void;
101
+ /** Expand the folded rail back into the unified sidebar. */
102
+ onOpen?: () => void;
103
+ /** Primary + New action when folded. */
104
+ onNew?: () => void;
105
+ /** Force compact icons-only layout without expand header (e.g. inside narrow phone drawer). */
106
+ compact?: boolean;
39
107
  /** The hosted app (lib/hosted) the reader is in, if any. */
40
108
  inside?: string | null;
41
- /** Listed as rows in a phone's menu rather than marks down the window's edge. */
42
- rows?: boolean;
43
109
  /** To Chat, Dev, Design and Studio, each where the reader left it. */
44
110
  onChat: () => void;
45
111
  onDev: () => void;