@ezychat/web 0.1.76 → 0.1.77
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-lib/chunks/{admin-CwS6ahLc.js → admin-BKiB8_GE.js} +5 -0
- package/dist-lib/chunks/{admin-p6QRa2DG.js → admin-DM8CrZrZ.js} +5 -0
- package/dist-lib/chunks/{common-DYK9ZVMh.js → common-6IvDd1Hx.js} +7 -0
- package/dist-lib/chunks/{common-CjI5LeVc.js → common-BB_u0f7c.js} +7 -0
- package/dist-lib/index.js +1062 -997
- package/dist-lib/types/admin/UsageStatsSwitch.d.ts +7 -0
- package/dist-lib/types/api/queries.d.ts +2 -0
- package/dist-lib/types/i18n/resources.d.ts +12 -0
- package/dist-lib/types/lib/links.d.ts +1 -1
- package/dist-lib/types/lib/tips.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "Share anonymous usage stats" (design: docs/superpowers/specs/2026-11-04-usage-stats-design.md): on by default, saved
|
|
3
|
+
* at once (admins only). The "?" lists exactly what is sent and what never is.
|
|
4
|
+
*/
|
|
5
|
+
export declare function UsageStatsSwitch(): import("react").JSX.Element;
|
|
6
|
+
/** Settings → General: the switch in its own card. */
|
|
7
|
+
export declare function UsageStatsCard(): import("react").JSX.Element;
|
|
@@ -887,6 +887,7 @@ export declare function useSettings(): import("@tanstack/react-query").UseQueryR
|
|
|
887
887
|
historyDays: number;
|
|
888
888
|
namedTunnelHostname: string | null;
|
|
889
889
|
hasTunnelToken: boolean;
|
|
890
|
+
usageStats: boolean;
|
|
890
891
|
}, Error>;
|
|
891
892
|
export interface PatchSettingsResult {
|
|
892
893
|
settings: Settings;
|
|
@@ -897,6 +898,7 @@ export declare function usePatchSettings(): import("@tanstack/react-query").UseM
|
|
|
897
898
|
lanEnabled?: boolean | undefined;
|
|
898
899
|
historyDays?: number | undefined;
|
|
899
900
|
namedTunnelHostname?: string | null | undefined;
|
|
901
|
+
usageStats?: boolean | undefined;
|
|
900
902
|
}, unknown>;
|
|
901
903
|
/** Audit log, newest first; `fetchNextPage()` loads older entries (cursor = last entry id). */
|
|
902
904
|
export declare function useAudit(limit?: number): import("@tanstack/react-query").UseInfiniteQueryResult<InfiniteData<{
|
|
@@ -200,6 +200,13 @@ export declare const enResources: {
|
|
|
200
200
|
step2: string;
|
|
201
201
|
step3: string;
|
|
202
202
|
};
|
|
203
|
+
usageStats: {
|
|
204
|
+
title: string;
|
|
205
|
+
body: string;
|
|
206
|
+
step1: string;
|
|
207
|
+
step2: string;
|
|
208
|
+
step3: string;
|
|
209
|
+
};
|
|
203
210
|
};
|
|
204
211
|
};
|
|
205
212
|
app: {
|
|
@@ -2136,6 +2143,11 @@ export declare const enResources: {
|
|
|
2136
2143
|
businessTitle_other: string;
|
|
2137
2144
|
businessHint: string;
|
|
2138
2145
|
};
|
|
2146
|
+
usageStats: {
|
|
2147
|
+
title: string;
|
|
2148
|
+
label: string;
|
|
2149
|
+
hint: string;
|
|
2150
|
+
};
|
|
2139
2151
|
};
|
|
2140
2152
|
resolveAll: {
|
|
2141
2153
|
title: string;
|
|
@@ -39,7 +39,7 @@ export interface AppLinks {
|
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* The EzyChat Enterprise section of the website. The campaign tag lets the website count upgrade
|
|
42
|
-
* visits from the app
|
|
42
|
+
* visits from the app. The app's only usage data is the anonymous usage stats (server `usage/`).
|
|
43
43
|
*/
|
|
44
44
|
export declare const ENTERPRISE_UPGRADE_URL = "https://ezychat.ai/?utm_source=ezychat-lite&utm_medium=app&utm_campaign=upgrade#enterprise";
|
|
45
45
|
/** The EzyChat team's WhatsApp number (the website's contact number) for connector requests. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* under `tips.<topic>` (`title`, `body`, `step1`…`stepN`, `action`); this file holds each tip's shape.
|
|
4
4
|
* Design: docs/features/concept-tips/design.md.
|
|
5
5
|
*/
|
|
6
|
-
export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "connectors", "safetyAi", "autoBlock", "lockedFiles", "reportNumber"];
|
|
6
|
+
export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "connectors", "safetyAi", "autoBlock", "lockedFiles", "reportNumber", "usageStats"];
|
|
7
7
|
export type TipTopic = (typeof TIP_TOPICS)[number];
|
|
8
8
|
/** The ezychat.ai guides a tip can link to (each exists in en, ms and zh). */
|
|
9
9
|
export type TipGuide = 'getting-started' | 'set-up-ai-agent' | 'connect-cloudflare' | 'connect-ai-assistant';
|
|
@@ -18,6 +18,6 @@ export interface TipShape {
|
|
|
18
18
|
export declare const TIPS: Readonly<Record<TipTopic, TipShape>>;
|
|
19
19
|
/**
|
|
20
20
|
* The guide on ezychat.ai in the app's language. The campaign tags let the website count visits
|
|
21
|
-
* from tips
|
|
21
|
+
* from tips. The app's only usage data is the anonymous usage stats (server `usage/`, switch in Settings).
|
|
22
22
|
*/
|
|
23
23
|
export declare function tipGuideUrl(guide: TipGuide, locale: string, topic: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.77",
|
|
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,7 +40,7 @@
|
|
|
40
40
|
"build:lib": "node ../../scripts/build-web-lib.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@ezychat/shared": "0.1.
|
|
43
|
+
"@ezychat/shared": "0.1.77",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.105.0",
|
|
46
46
|
"@types/react": "^19.3.0",
|