@hanzo/rooms 0.1.59 → 0.1.61
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/Chat.js +4 -1
- package/dist/lib/invite.d.ts +3 -0
- package/dist/lib/invite.js +4 -1
- package/package.json +2 -2
package/dist/Chat.js
CHANGED
|
@@ -507,7 +507,8 @@ function Thread({ placeholder = message(), initial, anonymous = false, heading,
|
|
|
507
507
|
// THE SIDE PANEL (@hanzo/build `Panel`), the one Dev's runs open too: open or
|
|
508
508
|
// shut as Chat was left on a laptop, a sheet asked for on a phone, its tabs
|
|
509
509
|
// kept per conversation. The header's Panel button and ⌘. move it.
|
|
510
|
-
const
|
|
510
|
+
const media = useMedia();
|
|
511
|
+
const wide = media.lg;
|
|
511
512
|
const [panel, setPanel] = usePanel("chat", false, wide);
|
|
512
513
|
const deck = useDeck(`chat:${at}`, SEED);
|
|
513
514
|
// The org's sites, which an empty tab suggests.
|
|
@@ -1346,6 +1347,8 @@ function Thread({ placeholder = message(), initial, anonymous = false, heading,
|
|
|
1346
1347
|
placeholder: room.length ? `Message ${join(room)}` : placeholder,
|
|
1347
1348
|
label: ASK,
|
|
1348
1349
|
note: caution(),
|
|
1350
|
+
// A phone's pill is the tall one: the field across the top, the controls under it.
|
|
1351
|
+
narrow: !media.sm,
|
|
1349
1352
|
// In the app's frame the composer floats on the pane as a pane of its own.
|
|
1350
1353
|
framed,
|
|
1351
1354
|
// A file or an image pasted into the field is held like a picked one;
|
package/dist/lib/invite.d.ts
CHANGED
|
@@ -55,6 +55,9 @@ export declare function createInvitation(org: string, email?: string, quota?: nu
|
|
|
55
55
|
*
|
|
56
56
|
* The organization is named as `?owner=`, the one input IAM's list reads. A
|
|
57
57
|
* read that names none is authorized against no organization and refused.
|
|
58
|
+
*
|
|
59
|
+
* A listed invitation carries no code: IAM shows a code once, in the answer to
|
|
60
|
+
* `createInvitation`. A row is an invitation by its name.
|
|
58
61
|
*/
|
|
59
62
|
export declare function listInvitations(org: string): Promise<Invitation[]>;
|
|
60
63
|
/**
|
package/dist/lib/invite.js
CHANGED
|
@@ -87,10 +87,13 @@ export async function createInvitation(org, email, quota = 1) {
|
|
|
87
87
|
*
|
|
88
88
|
* The organization is named as `?owner=`, the one input IAM's list reads. A
|
|
89
89
|
* read that names none is authorized against no organization and refused.
|
|
90
|
+
*
|
|
91
|
+
* A listed invitation carries no code: IAM shows a code once, in the answer to
|
|
92
|
+
* `createInvitation`. A row is an invitation by its name.
|
|
90
93
|
*/
|
|
91
94
|
export async function listInvitations(org) {
|
|
92
95
|
const body = (await call(`/v1/iam/invitations?owner=${encodeURIComponent(org)}`));
|
|
93
|
-
return (body.invitations ?? []).filter((r) => r && r.
|
|
96
|
+
return (body.invitations ?? []).filter((r) => r && r.name);
|
|
94
97
|
}
|
|
95
98
|
/**
|
|
96
99
|
* Emails the join link to the address an invitation is pinned to, and returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/rooms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.61",
|
|
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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@hanzo/ai": "0.6.23",
|
|
68
68
|
"@hanzo/appearance": "0.2.8",
|
|
69
|
-
"@hanzo/build": "0.2.
|
|
69
|
+
"@hanzo/build": "0.2.56",
|
|
70
70
|
"@hanzo/composer": "0.2.0",
|
|
71
71
|
"@hanzo/design": "0.5.34",
|
|
72
72
|
"@hanzo/event": "0.3.56",
|