@hanzo/rooms 0.1.48 → 0.1.50
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/Upgrade.js +8 -7
- package/dist/lib/signout.js +4 -2
- package/package.json +1 -1
package/dist/Upgrade.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
// says who is on Free; `Upgrade` draws the ask it is handed and nothing when it
|
|
9
9
|
// is handed none. A refusal's ask is read by `planRequired` in `failure.ts`.
|
|
10
10
|
import { useEffect, useState } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { Gauge, Sparkles, Users, Workflow, X } from 'lucide-react';
|
|
12
12
|
import { Anchor, Box, Dialog, DialogContent, DialogTitle, Text, ToggleGroup, ToggleGroupItem, XStack, YStack } from '@hanzo/ui';
|
|
13
13
|
import { track } from './lib/tags.js';
|
|
14
14
|
import { org } from './lib/session.js';
|
|
@@ -22,12 +22,13 @@ export function useFree(signedIn) {
|
|
|
22
22
|
const { tier } = useTier(signedIn, org());
|
|
23
23
|
return signedIn && tier?.tier?.name === FREE;
|
|
24
24
|
}
|
|
25
|
+
// What the first paid personal plan adds to Free, in the words of the plan
|
|
26
|
+
// catalog (@hanzo/plans subscription.json, the `dev` plan's features).
|
|
25
27
|
const ROWS = [
|
|
26
|
-
[Gauge, '
|
|
27
|
-
[Sparkles, '
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[ListChecks, 'Power through tasks with Hanzo Team'],
|
|
28
|
+
[Gauge, 'Usage included on every model'],
|
|
29
|
+
[Sparkles, 'Every model, including Enso Ultra and Kai'],
|
|
30
|
+
[Users, 'Hanzo Team: chat, meetings, calendar and contacts'],
|
|
31
|
+
[Workflow, 'Automations, with daily runs included'],
|
|
31
32
|
];
|
|
32
33
|
/** The page checkout returns to: this one, query and all. */
|
|
33
34
|
function here() {
|
|
@@ -71,5 +72,5 @@ export function Upgrade({ ask, onClose }) {
|
|
|
71
72
|
}, disableDeactivation: true, "aria-label": "Billing term", ...{ width: '100%', p: 4, rounded: 9999, bg: 'var(--surface-2)' }, children: [
|
|
72
73
|
['month', 'Monthly'],
|
|
73
74
|
['year', `Yearly · Save ${save}%`],
|
|
74
|
-
].map(([value, name]) => (_jsx(ToggleGroupItem, { value: value, variant: "outline", flex: 1, rounded: "$10", borderColor: "transparent", children: name }, value))) })), _jsxs(YStack, { gap: "$3", children: [_jsx(Anchor, { href: href, onPress: buy, "data-ga": true, bg: "var(--primary)", color: "var(--primary-foreground)", rounded: "$4", py: "$3", px: "$4", fontSize: "$4", fontWeight: "500", text: "center", textDecorationLine: "none", hoverStyle: { bg: 'var(--primary-hover)' }, children: label }), _jsxs(XStack, { justify: "center", gap: "$5", children: [_jsx(Anchor, { href: site("/pricing"), fontSize: "$3", color: "$soft", hoverStyle: { color: '$ink' }, children: "See all plans" }), _jsx(Box, { render: "button", onClick: onClose, bg: "transparent", borderWidth: 0, p: 0, cursor: "pointer", children: _jsx(Text, { fontSize: "$3", color: "$soft", hoverStyle: { color: '$ink' }, children: "Not now" }) })] })] })
|
|
75
|
+
].map(([value, name]) => (_jsx(ToggleGroupItem, { value: value, variant: "outline", flex: 1, rounded: "$10", borderColor: "transparent", children: name }, value))) })), _jsxs(YStack, { gap: "$3", children: [_jsx(Anchor, { href: href, onPress: buy, "data-ga": true, bg: "var(--primary)", color: "var(--primary-foreground)", rounded: "$4", py: "$3", px: "$4", fontSize: "$4", fontWeight: "500", text: "center", textDecorationLine: "none", hoverStyle: { bg: 'var(--primary-hover)' }, children: label }), _jsxs(XStack, { justify: "center", gap: "$5", children: [_jsx(Anchor, { href: site("/pricing"), fontSize: "$3", color: "$soft", hoverStyle: { color: '$ink' }, children: "See all plans" }), _jsx(Box, { render: "button", onClick: onClose, bg: "transparent", borderWidth: 0, p: 0, cursor: "pointer", children: _jsx(Text, { fontSize: "$3", color: "$soft", hoverStyle: { color: '$ink' }, children: "Not now" }) })] })] })] }) }));
|
|
75
76
|
}
|
package/dist/lib/signout.js
CHANGED
|
@@ -16,9 +16,11 @@ import { APEX } from './host.js';
|
|
|
16
16
|
/**
|
|
17
17
|
* The hosts that answer IAM's sign-in and sign-out calls on their own origin:
|
|
18
18
|
* every host this export is served on and signs in at (universe static-sites
|
|
19
|
-
* `iam-on-hanzo-ai`
|
|
19
|
+
* `iam-on-hanzo-ai` and cloud.yaml `iam-signin`), each network's own
|
|
20
|
+
* (test.hanzo.ai for testnet, dev.hanzo.ai for devnet), and the dev server's
|
|
21
|
+
* /v1 proxy.
|
|
20
22
|
*/
|
|
21
|
-
const HOSTS = new Set([...APEX, 'cloud.hanzo.ai', 'hanzo.bot', 'bot.hanzo.ai', 'localhost', '127.0.0.1']);
|
|
23
|
+
const HOSTS = new Set([...APEX, 'cloud.hanzo.ai', 'hanzo.bot', 'bot.hanzo.ai', 'test.hanzo.ai', 'dev.hanzo.ai', 'localhost', '127.0.0.1']);
|
|
22
24
|
/** Whether the page in front of us is on such an origin. */
|
|
23
25
|
export const here = () => typeof window !== 'undefined' && HOSTS.has(window.location.hostname);
|
|
24
26
|
/** The IAM client for this page; the token exchange at the callback shares its PKCE store. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/rooms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
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",
|