@hanzo/rooms 0.1.41 → 0.1.42
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/dist/Column.js +9 -9
- package/dist/lib/host.d.ts +2 -2
- package/dist/lib/host.js +2 -2
- package/package.json +1 -1
package/dist/Column.js
CHANGED
|
@@ -7,8 +7,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
7
7
|
// Dev's places are @hanzo/build's `nav`, the one list every rail draws, each a
|
|
8
8
|
// row of its own under a quiet group label: nothing waits behind a More.
|
|
9
9
|
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
10
|
+
// Tabs sits under New in both modes. Hanzo Tabs lives at tabs.hanzo.ai, so the
|
|
11
|
+
// row is a link there, in a tab of its own.
|
|
12
12
|
//
|
|
13
13
|
// It is a pane on the frame's ground (app/_web.tsx), sized by the edge in the
|
|
14
14
|
// gutter to its right: dragged, keyed or double-clicked back (@hanzo/build's
|
|
@@ -30,7 +30,7 @@ import { empty } from './open.js';
|
|
|
30
30
|
import { useSpan } from './span.js';
|
|
31
31
|
import { pane } from './ground.js';
|
|
32
32
|
import { pick } from './lib/session.js';
|
|
33
|
-
import { app,
|
|
33
|
+
import { app, TABS, talk } from './lib/host.js';
|
|
34
34
|
import { brand } from './where.js';
|
|
35
35
|
/** The grip stands in the gutter between the column and the pane. gui carries a `calc()` to the page unchanged; its
|
|
36
36
|
* types only name custom properties. */
|
|
@@ -57,12 +57,12 @@ const keys = (press) => ({
|
|
|
57
57
|
});
|
|
58
58
|
/** A row of the column: a pill, lit where the reader is. Compact, so every place fits a laptop's height with Recents under them. */
|
|
59
59
|
const ROW = { rounded: '$4', minH: 30, py: 0 };
|
|
60
|
-
/**
|
|
61
|
-
const OUT = { 'data-slot': 'app-
|
|
62
|
-
/**
|
|
63
|
-
const Mark = () => (_jsx(SidebarIconButton, { label: "
|
|
64
|
-
/**
|
|
65
|
-
const Row = () => (_jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { ...ROW, icon: _jsx(SquareTerminal, { size: 16, "aria-hidden": true }), ...OUT, children: "
|
|
60
|
+
/** Tabs, a row drawn as a link out: another origin, its own tab, no handle back to this page. */
|
|
61
|
+
const OUT = { 'data-slot': 'app-tabs', role: 'link', render: _jsx("a", { href: TABS, target: "_blank", rel: "noopener noreferrer" }) };
|
|
62
|
+
/** Tabs in the rail, as its mark. */
|
|
63
|
+
const Mark = () => (_jsx(SidebarIconButton, { label: "Tabs", width: 36, height: 32, rounded: 999, ...OUT, children: _jsx(SquareTerminal, { size: 16 }) }));
|
|
64
|
+
/** Tabs in the column, as a row. */
|
|
65
|
+
const Row = () => (_jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { ...ROW, icon: _jsx(SquareTerminal, { size: 16, "aria-hidden": true }), ...OUT, children: "Tabs" }) }));
|
|
66
66
|
export function Column({ host, mode, thread, onChat, onDev, go, drawer = false, }) {
|
|
67
67
|
const [kept, setCollapsed] = useKept('hanzo.build.rail', false);
|
|
68
68
|
const collapsed = kept && !drawer;
|
package/dist/lib/host.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export declare const ENTRY = "https://hanzo.team/?signin";
|
|
|
30
30
|
* team's session has to live.
|
|
31
31
|
*/
|
|
32
32
|
export declare const START = "https://hanzo.team/start";
|
|
33
|
-
/**
|
|
34
|
-
export declare const
|
|
33
|
+
/** Hanzo Tabs, its own origin, opened from the column in a tab of its own. */
|
|
34
|
+
export declare const TABS = "https://tabs.hanzo.ai";
|
|
35
35
|
/**
|
|
36
36
|
* THE APP'S ADDRESSES ARE PATHS, in two modes at two roots. Chat is /chat, a
|
|
37
37
|
* new conversation, and /chat/<id> one of the reader's. Dev is /dev, Dev's New,
|
package/dist/lib/host.js
CHANGED
|
@@ -33,8 +33,8 @@ export const ENTRY = `${WORKSPACE}/?signin`;
|
|
|
33
33
|
* team's session has to live.
|
|
34
34
|
*/
|
|
35
35
|
export const START = `${WORKSPACE}/start`;
|
|
36
|
-
/**
|
|
37
|
-
export const
|
|
36
|
+
/** Hanzo Tabs, its own origin, opened from the column in a tab of its own. */
|
|
37
|
+
export const TABS = 'https://tabs.hanzo.ai';
|
|
38
38
|
/**
|
|
39
39
|
* THE APP'S ADDRESSES ARE PATHS, in two modes at two roots. Chat is /chat, a
|
|
40
40
|
* new conversation, and /chat/<id> one of the reader's. Dev is /dev, Dev's New,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/rooms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "The workspace rooms — Home, Chat, Inbox, Contacts, Meet, Cal, Drive, Board, Work, Bots — and the frame that holds them, once, for every Hanzo surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|