@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.
- package/README.md +8 -8
- package/dist/{Me.d.ts → Account.d.ts} +1 -1
- package/dist/{Me.js → Account.js} +3 -3
- package/dist/App.d.ts +2 -2
- package/dist/App.js +18 -15
- package/dist/{Top.d.ts → Bar.d.ts} +1 -1
- package/dist/{Top.js → Bar.js} +3 -3
- package/dist/Betas.js +1 -1
- package/dist/Board.js +4 -4
- package/dist/Chat.d.ts +4 -4
- package/dist/Chat.js +96 -96
- package/dist/Contacts.js +17 -15
- package/dist/Directory.js +7 -21
- package/dist/Drive.js +6 -6
- package/dist/{Orgs.d.ts → Gate.d.ts} +1 -1
- package/dist/{Orgs.js → Gate.js} +32 -32
- package/dist/{Chrome.d.ts → Header.d.ts} +1 -1
- package/dist/{Chrome.js → Header.js} +1 -1
- package/dist/Home.d.ts +3 -3
- package/dist/Home.js +30 -30
- package/dist/Inbox.js +29 -33
- package/dist/Meet.js +22 -22
- package/dist/Rail.js +6 -6
- package/dist/RightPane.js +2 -2
- package/dist/{Palette.d.ts → Search.d.ts} +1 -1
- package/dist/{Palette.js → Search.js} +1 -1
- package/dist/Settings.d.ts +3 -3
- package/dist/Settings.js +5 -5
- package/dist/SettingsPane.d.ts +2 -2
- package/dist/SettingsPane.js +5 -5
- package/dist/Setup.js +2 -2
- package/dist/Shell.d.ts +22 -31
- package/dist/Shell.js +167 -114
- package/dist/{Column.d.ts → Sidebar.d.ts} +1 -1
- package/dist/{Column.js → Sidebar.js} +5 -5
- package/dist/Support.js +2 -2
- package/dist/Talk.d.ts +3 -3
- package/dist/Talk.js +18 -18
- package/dist/TeamPreview.js +26 -26
- package/dist/TeamStory.js +1 -1
- package/dist/Usage.js +2 -2
- package/dist/Work.js +2 -2
- package/dist/bots/Bots.js +2 -2
- package/dist/bots/Lights.d.ts +1 -1
- package/dist/bots/Lights.js +1 -1
- package/dist/bots/api.d.ts +8 -7
- package/dist/bots/api.js +4 -4
- package/dist/bots/ink.js +3 -3
- package/dist/bots/kit.d.ts +2 -2
- package/dist/bots/kit.js +4 -4
- package/dist/bots/runtime.js +12 -12
- package/dist/cast.d.ts +14 -14
- package/dist/cast.js +12 -12
- package/dist/channels.d.ts +132 -0
- package/dist/{rooms.js → channels.js} +56 -55
- package/dist/conversations.d.ts +8 -8
- package/dist/conversations.js +18 -17
- package/dist/crew.d.ts +1 -1
- package/dist/crew.js +12 -12
- package/dist/dev.js +6 -6
- package/dist/failure.d.ts +2 -2
- package/dist/failure.js +6 -6
- package/dist/ground.d.ts +1 -1
- package/dist/ground.js +1 -1
- package/dist/help.d.ts +1 -1
- package/dist/help.js +2 -2
- package/dist/hint.d.ts +1 -1
- package/dist/hint.js +1 -1
- package/dist/host.d.ts +15 -15
- package/dist/host.js +13 -13
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/lib/ai.js +1 -1
- package/dist/lib/api.d.ts +1 -1
- package/dist/lib/api.js +1 -1
- package/dist/lib/destination.d.ts +3 -3
- package/dist/lib/destination.js +3 -3
- package/dist/lib/home.d.ts +2 -2
- package/dist/lib/home.js +2 -2
- package/dist/lib/host.d.ts +17 -16
- package/dist/lib/host.js +19 -18
- package/dist/lib/hostname.d.ts +1 -1
- package/dist/lib/hostname.js +1 -1
- package/dist/lib/list.d.ts +1 -1
- package/dist/lib/list.js +1 -1
- package/dist/lib/models.js +1 -1
- package/dist/lib/org.d.ts +1 -1
- package/dist/lib/org.js +1 -1
- package/dist/lib/orgname.d.ts +1 -1
- package/dist/lib/orgname.js +1 -1
- package/dist/lib/session.d.ts +4 -4
- package/dist/lib/session.js +6 -6
- package/dist/lib/tier.d.ts +4 -4
- package/dist/lib/tier.js +5 -5
- package/dist/lib/tiers.d.ts +1 -1
- package/dist/lib/tiers.js +10 -10
- package/dist/lib/web.d.ts +1 -1
- package/dist/lib/web.js +1 -1
- package/dist/network.d.ts +18 -18
- package/dist/network.js +28 -28
- package/dist/open.d.ts +24 -22
- package/dist/open.js +19 -19
- package/dist/pane.d.ts +6 -6
- package/dist/pane.js +10 -10
- package/dist/roster.d.ts +2 -2
- package/dist/roster.js +1 -1
- package/dist/seek.js +1 -1
- package/dist/slide.d.ts +1 -1
- package/dist/slide.js +1 -1
- package/dist/span.js +1 -1
- package/dist/stars.d.ts +4 -4
- package/dist/stars.js +8 -10
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/team.js +1 -1
- package/dist/thread.d.ts +3 -3
- package/dist/thread.js +4 -4
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1 -1
- package/dist/where.d.ts +7 -7
- package/dist/where.js +2 -2
- package/dist/workday.d.ts +26 -26
- package/dist/workday.js +187 -187
- package/package.json +3 -3
- package/dist/Room.d.ts +0 -8
- package/dist/Room.js +0 -51
- package/dist/rooms.d.ts +0 -131
- /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
|
-
*
|
|
13
|
+
* The shell at one app, under the host's router, behind the gate.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
48
|
-
* while `useOpen().aside` names one, and `
|
|
49
|
-
* the app at `/` lay
|
|
50
|
-
* `swap` stands in the pane in the
|
|
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.
|
|
62
|
-
* the paper ladder instead. In the
|
|
63
|
-
* `side` grid areas. `bare` leaves the framed pane uncut, for a
|
|
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
|
|
57
|
+
export declare function Split({ children, swap, framed, bare, }: {
|
|
67
58
|
children: ReactNode;
|
|
68
59
|
swap?: ReactNode;
|
|
69
60
|
framed?: boolean;
|