@ezychat/web 0.1.51 → 0.1.53

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.
@@ -762,6 +762,25 @@ export declare function usePatchMcpSettings(): import("@tanstack/react-query").U
762
762
  }, Error, {
763
763
  enabled: boolean;
764
764
  }, unknown>;
765
+ /** The approval page of the MCP sign-in: which app asks, and where it returns to. */
766
+ export declare function useOAuthRequest(search: string): import("@tanstack/react-query").UseQueryResult<{
767
+ clientName: string;
768
+ redirectHost: string;
769
+ }, Error>;
770
+ /** Approve or decline; the response says where to send the browser (back to the app). */
771
+ export declare function useOAuthDecision(): import("@tanstack/react-query").UseMutationResult<{
772
+ redirectTo: string;
773
+ }, Error, {
774
+ response_type: string;
775
+ client_id: string;
776
+ approve: boolean;
777
+ redirect_uri?: string | undefined;
778
+ code_challenge?: string | undefined;
779
+ code_challenge_method?: string | undefined;
780
+ state?: string | undefined;
781
+ scope?: string | undefined;
782
+ resource?: string | undefined;
783
+ }, unknown>;
765
784
  export declare function useApiTokens(): import("@tanstack/react-query").UseQueryResult<{
766
785
  id: number;
767
786
  userId: number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * /oauth/authorize: an AI assistant app (claude.ai, ChatGPT, …) sent the admin here to approve its
3
+ * connection to the inbox. Approve sends the browser back to the app with a one-time code; the
4
+ * server never redirects an unchecked request (bad requests stay on this page).
5
+ */
6
+ export declare function OAuthConsentPage(): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The "Upgrade to Enterprise" address, or null when the product hides it: Lite links
3
+ * ezychat.ai/#enterprise, another product passes `createInboxApp({ links: { upgrade: null } })`.
4
+ */
5
+ export declare function useUpgradeUrl(): string | null;
6
+ /** An outline button that opens the Enterprise page in the browser; nothing when hidden. */
7
+ export declare function UpgradeButton({ className }: {
8
+ className?: string;
9
+ }): import("react").JSX.Element | null;
10
+ /** A quiet row under a Lite limit: why Enterprise helps, and the upgrade button. */
11
+ export declare function UpgradeNote({ reason, className, }: {
12
+ reason: 'agents' | 'numbers';
13
+ className?: string;
14
+ }): import("react").JSX.Element | null;
@@ -79,6 +79,12 @@ export declare const enResources: {
79
79
  checkAgain: string;
80
80
  checking: string;
81
81
  };
82
+ upgrade: {
83
+ cta: string;
84
+ agents: string;
85
+ numbers: string;
86
+ about: string;
87
+ };
82
88
  };
83
89
  app: {
84
90
  about: {
@@ -303,6 +309,24 @@ export declare const enResources: {
303
309
  show: string;
304
310
  hide: string;
305
311
  };
312
+ oauth: {
313
+ title: string;
314
+ subtitle: string;
315
+ returnsTo: string;
316
+ canTitle: string;
317
+ canRead: string;
318
+ canSetup: string;
319
+ sendLater: string;
320
+ trust: string;
321
+ approve: string;
322
+ deny: string;
323
+ unnamedApp: string;
324
+ errorTitle: string;
325
+ adminOnly: string;
326
+ accessOff: string;
327
+ badRequest: string;
328
+ backToInbox: string;
329
+ };
306
330
  };
307
331
  inbox: {
308
332
  retrying: string;
@@ -1127,6 +1151,13 @@ export declare const enResources: {
1127
1151
  turnedOn: string;
1128
1152
  turnedOff: string;
1129
1153
  };
1154
+ connectApp: {
1155
+ title: string;
1156
+ description: string;
1157
+ address: string;
1158
+ copy: string;
1159
+ needsTunnel: string;
1160
+ };
1130
1161
  noTunnel: {
1131
1162
  title: string;
1132
1163
  body: string;
@@ -27,7 +27,11 @@ export interface AppLinks {
27
27
  feedback: (locale: string, version: string | null) => string;
28
28
  /** Support email address (mailto link where there is no report-issue page). */
29
29
  supportEmail: string | null;
30
+ /** "Upgrade to Enterprise" page (Lite's limits, account menu, About); null hides every upgrade link. */
31
+ upgrade: string | null;
30
32
  }
33
+ /** The EzyChat Enterprise section of the website. */
34
+ export declare const ENTERPRISE_UPGRADE_URL = "https://ezychat.ai/#enterprise";
31
35
  /** Lite's links: GitHub repository and issues, feedback on ezychat.ai. */
32
36
  export declare const LITE_APP_LINKS: Readonly<AppLinks>;
33
37
  /** Lite's links with the given overrides (an explicit `null` hides that link). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezychat/web",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "type": "module",
5
5
  "description": "EzyChat core: the team inbox web app (React) as a library, with createInboxApp and its extension API.",
6
6
  "license": "MIT",
@@ -40,15 +40,15 @@
40
40
  "build:lib": "node ../../scripts/build-web-lib.mjs"
41
41
  },
42
42
  "dependencies": {
43
- "@ezychat/shared": "0.1.51",
43
+ "@ezychat/shared": "0.1.53",
44
44
  "@fontsource-variable/inter": "^5.3.0",
45
- "@tanstack/react-query": "^5.104.4",
45
+ "@tanstack/react-query": "^5.104.5",
46
46
  "@types/react": "^19.3.0",
47
47
  "@types/react-dom": "^19.3.0",
48
48
  "class-variance-authority": "^0.7.1",
49
49
  "clsx": "^2.1.1",
50
50
  "cmdk": "^1.1.1",
51
- "cn": "^0.4.0",
51
+ "cn": "^0.5.0",
52
52
  "date-fns": "^4.4.0",
53
53
  "i18next": "^26.5.2",
54
54
  "lucide-react": "^1.59.0",
@@ -56,8 +56,8 @@
56
56
  "opus-recorder": "8.0.5",
57
57
  "qrcode.react": "^4.2.0",
58
58
  "radix-ui": "^1.8.1",
59
- "react": "^19.3.0",
60
- "react-dom": "^19.3.0",
59
+ "react": "^19.3.1",
60
+ "react-dom": "^19.3.1",
61
61
  "react-i18next": "^17.0.15",
62
62
  "react-router-dom": "^7.18.4",
63
63
  "socket.io-client": "^4.8.4",
@@ -75,7 +75,7 @@
75
75
  "@vitejs/plugin-react": "^6.1.2",
76
76
  "jsdom": "^30.1.3",
77
77
  "tailwindcss": "^4.3.3",
78
- "vite": "^8.3.4",
78
+ "vite": "^8.3.5",
79
79
  "vite-plugin-pwa": "^2.0.0",
80
80
  "workbox-precaching": "^7.4.1",
81
81
  "workbox-window": "^7.4.1"