@hanzo/app 0.3.58 → 0.3.59
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/Gate.js +4 -4
- package/package.json +1 -1
package/dist/Gate.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
27
27
|
// a team without a live plan is offered that plan, a personal organization on
|
|
28
28
|
// Free is offered a team, and an open one is sent on (`forward`). Behind the
|
|
29
29
|
// door, and only there, nothing opens without a live plan.
|
|
30
|
-
import { dev } from './lib/host.js';
|
|
30
|
+
import { CHAT, chat, dev } from './lib/host.js';
|
|
31
31
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
32
32
|
import { useIam } from '@hanzo/iam/react';
|
|
33
33
|
import { phrase, english } from '@hanzo/i18n';
|
|
@@ -62,14 +62,14 @@ const SETUP = 'hanzo:org:template';
|
|
|
62
62
|
/** Checkout for a plan, coming back to this page. */
|
|
63
63
|
function checkout(plan) {
|
|
64
64
|
const origin = typeof window !== 'undefined' ? window.location.origin : 'https://hanzo.app';
|
|
65
|
-
const path = typeof window !== 'undefined' ? window.location.pathname :
|
|
65
|
+
const path = typeof window !== 'undefined' ? window.location.pathname : chat();
|
|
66
66
|
return checkoutUrl(plan.id, `${origin}${path}`);
|
|
67
67
|
}
|
|
68
|
-
/** Whether the current
|
|
68
|
+
/** Whether the current Chat navigation is an anonymous preview session. */
|
|
69
69
|
function isAnonChat() {
|
|
70
70
|
if (typeof window === 'undefined' || hasSession())
|
|
71
71
|
return false;
|
|
72
|
-
if (window.location.pathname !==
|
|
72
|
+
if (window.location.pathname !== CHAT && window.location.pathname !== chat())
|
|
73
73
|
return false;
|
|
74
74
|
const win = window;
|
|
75
75
|
const q = new URLSearchParams(window.location.search);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.59",
|
|
4
4
|
"description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|