@hanzo/app 0.2.57 → 0.3.0

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 (128) hide show
  1. package/README.md +8 -8
  2. package/dist/{Me.d.ts → Account.d.ts} +1 -1
  3. package/dist/{Me.js → Account.js} +3 -3
  4. package/dist/App.d.ts +2 -2
  5. package/dist/App.js +18 -15
  6. package/dist/{Top.d.ts → Bar.d.ts} +1 -1
  7. package/dist/{Top.js → Bar.js} +3 -3
  8. package/dist/Betas.js +1 -1
  9. package/dist/Board.js +4 -4
  10. package/dist/Chat.d.ts +4 -4
  11. package/dist/Chat.js +96 -96
  12. package/dist/Contacts.js +17 -15
  13. package/dist/Directory.js +7 -21
  14. package/dist/Drive.js +6 -6
  15. package/dist/{Orgs.d.ts → Gate.d.ts} +1 -1
  16. package/dist/{Orgs.js → Gate.js} +32 -32
  17. package/dist/{Chrome.d.ts → Header.d.ts} +1 -1
  18. package/dist/{Chrome.js → Header.js} +1 -1
  19. package/dist/Home.d.ts +3 -3
  20. package/dist/Home.js +30 -30
  21. package/dist/Inbox.js +29 -33
  22. package/dist/Meet.js +22 -22
  23. package/dist/Rail.js +6 -6
  24. package/dist/RightPane.js +2 -2
  25. package/dist/{Palette.d.ts → Search.d.ts} +1 -1
  26. package/dist/{Palette.js → Search.js} +1 -1
  27. package/dist/Settings.d.ts +3 -3
  28. package/dist/Settings.js +5 -5
  29. package/dist/SettingsPane.d.ts +2 -2
  30. package/dist/SettingsPane.js +5 -5
  31. package/dist/Setup.js +2 -2
  32. package/dist/Shell.d.ts +22 -31
  33. package/dist/Shell.js +167 -114
  34. package/dist/{Column.d.ts → Sidebar.d.ts} +1 -1
  35. package/dist/{Column.js → Sidebar.js} +5 -5
  36. package/dist/Support.js +2 -2
  37. package/dist/Talk.d.ts +3 -3
  38. package/dist/Talk.js +18 -18
  39. package/dist/TeamPreview.js +26 -26
  40. package/dist/TeamStory.js +1 -1
  41. package/dist/Usage.js +2 -2
  42. package/dist/Work.js +2 -2
  43. package/dist/bots/Bots.js +2 -2
  44. package/dist/bots/Lights.d.ts +1 -1
  45. package/dist/bots/Lights.js +1 -1
  46. package/dist/bots/api.d.ts +8 -7
  47. package/dist/bots/api.js +4 -4
  48. package/dist/bots/ink.js +3 -3
  49. package/dist/bots/kit.d.ts +2 -2
  50. package/dist/bots/kit.js +4 -4
  51. package/dist/bots/runtime.js +12 -12
  52. package/dist/cast.d.ts +14 -14
  53. package/dist/cast.js +12 -12
  54. package/dist/channels.d.ts +132 -0
  55. package/dist/{rooms.js → channels.js} +56 -55
  56. package/dist/conversations.d.ts +8 -8
  57. package/dist/conversations.js +18 -17
  58. package/dist/crew.d.ts +1 -1
  59. package/dist/crew.js +12 -12
  60. package/dist/dev.js +6 -6
  61. package/dist/failure.d.ts +2 -2
  62. package/dist/failure.js +6 -6
  63. package/dist/ground.d.ts +1 -1
  64. package/dist/ground.js +1 -1
  65. package/dist/help.d.ts +1 -1
  66. package/dist/help.js +2 -2
  67. package/dist/hint.d.ts +1 -1
  68. package/dist/hint.js +1 -1
  69. package/dist/host.d.ts +15 -15
  70. package/dist/host.js +13 -13
  71. package/dist/index.d.ts +5 -5
  72. package/dist/index.js +4 -4
  73. package/dist/lib/ai.js +1 -1
  74. package/dist/lib/api.d.ts +1 -1
  75. package/dist/lib/api.js +1 -1
  76. package/dist/lib/destination.d.ts +3 -3
  77. package/dist/lib/destination.js +3 -3
  78. package/dist/lib/home.d.ts +2 -2
  79. package/dist/lib/home.js +2 -2
  80. package/dist/lib/host.d.ts +17 -16
  81. package/dist/lib/host.js +19 -18
  82. package/dist/lib/hostname.d.ts +1 -1
  83. package/dist/lib/hostname.js +1 -1
  84. package/dist/lib/list.d.ts +1 -1
  85. package/dist/lib/list.js +1 -1
  86. package/dist/lib/models.js +1 -1
  87. package/dist/lib/org.d.ts +1 -1
  88. package/dist/lib/org.js +1 -1
  89. package/dist/lib/orgname.d.ts +1 -1
  90. package/dist/lib/orgname.js +1 -1
  91. package/dist/lib/session.d.ts +4 -4
  92. package/dist/lib/session.js +6 -6
  93. package/dist/lib/tier.d.ts +4 -4
  94. package/dist/lib/tier.js +5 -5
  95. package/dist/lib/tiers.d.ts +1 -1
  96. package/dist/lib/tiers.js +10 -10
  97. package/dist/lib/web.d.ts +1 -1
  98. package/dist/lib/web.js +1 -1
  99. package/dist/network.d.ts +18 -18
  100. package/dist/network.js +28 -28
  101. package/dist/open.d.ts +24 -22
  102. package/dist/open.js +19 -19
  103. package/dist/pane.d.ts +6 -6
  104. package/dist/pane.js +10 -10
  105. package/dist/roster.d.ts +2 -2
  106. package/dist/roster.js +1 -1
  107. package/dist/seek.js +1 -1
  108. package/dist/slide.d.ts +1 -1
  109. package/dist/slide.js +1 -1
  110. package/dist/span.js +1 -1
  111. package/dist/stars.d.ts +4 -4
  112. package/dist/stars.js +8 -10
  113. package/dist/tabs.d.ts +1 -1
  114. package/dist/tabs.js +1 -1
  115. package/dist/team.js +1 -1
  116. package/dist/thread.d.ts +3 -3
  117. package/dist/thread.js +4 -4
  118. package/dist/ui.d.ts +1 -1
  119. package/dist/ui.js +1 -1
  120. package/dist/where.d.ts +7 -7
  121. package/dist/where.js +2 -2
  122. package/dist/workday.d.ts +26 -26
  123. package/dist/workday.js +187 -187
  124. package/package.json +3 -3
  125. package/dist/Room.d.ts +0 -8
  126. package/dist/Room.js +0 -51
  127. package/dist/rooms.d.ts +0 -131
  128. /package/dist/lib/{rooms.json → routes.json} +0 -0
package/dist/Shell.d.ts CHANGED
@@ -10,44 +10,35 @@ export interface ConsoleProduct {
10
10
  }
11
11
  export declare const CONSOLE_PRODUCTS: ConsoleProduct[];
12
12
  /**
13
- * WHERE "GO THERE" COMES FROM, and why it is a prop.
13
+ * The shell at one app, under the host's router, behind the gate.
14
14
  *
15
- * The rail moves between rooms, which is the one thing in this shell only the
16
- * HOST can do: a Next route pushes through its router, a Tauri window swaps a
17
- * view, an embedded surface may refuse to navigate at all. Taking `navigate`
18
- * as a prop is what leaves this file — and every component under it — with no
19
- * import from any framework, so the same shell mounts under Next, under Vite
20
- * in a desktop webview, or under a test that just records where it was asked
21
- * to go.
22
- *
23
- * Measured before the change: `next/navigation` here and `next/link` in
24
- * `Chat.tsx` were the ONLY two framework imports in the whole /chat + /dev
25
- * surface — 13 files, all `'use client'`, no RSC. Those two were the entire
26
- * cost of the port, and this removes one of them.
15
+ * THE ROUTER LIVES HERE, and only here. The frame takes navigation as props
16
+ * rather than importing a router, so everything under it names no framework —
17
+ * the same shell mounts under Next, under Vite in a desktop webview, or under a
18
+ * test that records where it was asked to go. That binding used to be written
19
+ * in each route file, and four of six never wrote it: /board, /drive, /inbox and
20
+ * /work mounted the frame with no `navigate`, so the rail rendered and did
21
+ * nothing. One copy cannot be forgotten in four places.
27
22
  */
28
- export declare function Workspace({ mode, children, navigate, back, forward, }: {
23
+ export declare function Shell({ mode, front, children, }: {
29
24
  mode: Mode;
25
+ /** Home at `/` on a workspace rooted there: a stranger meets the host's Landing (`Gate`). */
26
+ front?: boolean;
30
27
  children: ReactNode;
31
- /** Take the reader to a route. Absent, the rail's places do not navigate. */
32
- navigate?: (route: string) => void;
33
- /** Step back through this reader's own history. Absent, the arrows are not drawn. */
34
- back?: () => void;
35
- /** And forward again. */
36
- forward?: () => void;
37
28
  }): import("react").JSX.Element;
38
- /** Whether the room is drawn in the app's frame (`Paned framed`), where what
29
+ /** Whether the pane is drawn in the app's frame (`Split framed`), where what
39
30
  * floats on the frame's ground is cut as a pane. */
40
31
  export declare const Framed: import("react").Context<boolean>;
41
- /** Puts its children in the column beside the room. Draws nothing where the
32
+ /** Puts its children in the column beside the pane. Draws nothing where the
42
33
  * frame has no column open. */
43
- export declare function Beside({ children }: {
34
+ export declare function Side({ children }: {
44
35
  children: ReactNode;
45
36
  }): import("react").ReactPortal;
46
37
  /**
47
- * A PANE AND THE COLUMN BESIDE IT. The room draws the pane; the column is open
48
- * while `useOpen().aside` names one, and `Beside` fills it. The rooms' frame and
49
- * the app at `/` lay a room out with this, so a room's column is one mechanism.
50
- * `swap` stands in the pane in the room's place (a chosen Settings row).
38
+ * A PANE AND THE COLUMN BESIDE IT. The app draws the pane; the column is open
39
+ * while `useOpen().aside` names one, and `Side` fills it. The shell and
40
+ * the app at `/` lay an app out with this, so an app's column is one mechanism.
41
+ * `swap` stands in the pane in the app's place (a chosen Settings row).
51
42
  *
52
43
  * The column is @hanzo/build's (`useSplit`), the one Dev's runs stand their
53
44
  * panel in: its edge, the width the person drags (kept in their preferences
@@ -58,12 +49,12 @@ export declare function Beside({ children }: {
58
49
  *
59
50
  * `framed` is the app at `/`: both are panes floating on the frame's ground
60
51
  * (app/_web.tsx), filled with `--pane-fill` and cut by `pane()`, and the edge
61
- * that sizes the column sits in the gutter between them. In a room they lie on
62
- * the paper ladder instead. In the rooms' shell the two are its `pane` and
63
- * `side` grid areas. `bare` leaves the framed pane uncut, for a room that floats
52
+ * that sizes the column sits in the gutter between them. Unframed they lie on
53
+ * the paper ladder instead. In the shell the two are its `pane` and
54
+ * `side` grid areas. `bare` leaves the framed pane uncut, for a view that floats
64
55
  * panes of its own: a Dev run, which @hanzo/build draws as two.
65
56
  */
66
- export declare function Paned({ children, swap, framed, bare, }: {
57
+ export declare function Split({ children, swap, framed, bare, }: {
67
58
  children: ReactNode;
68
59
  swap?: ReactNode;
69
60
  framed?: boolean;