@ezychat/web 0.1.51 → 0.1.52

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.
@@ -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: {
@@ -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.52",
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.52",
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"