@hanzo/rooms 0.1.48 → 0.1.49
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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/rooms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
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",
|