@ezychat/web 0.1.92 → 0.1.94
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-PCeCUotx.js → admin-B8BiTWSb.js} +7 -1
- package/dist-lib/chunks/{admin-DA-ZeETJ.js → admin-DMvYlfc_.js} +7 -1
- package/dist-lib/index.js +1705 -1651
- package/dist-lib/types/i18n/resources.d.ts +6 -0
- package/dist-lib/types/wa/wa-error.d.ts +15 -0
- package/package.json +2 -2
|
@@ -2773,6 +2773,12 @@ export declare const enResources: {
|
|
|
2773
2773
|
hint: string;
|
|
2774
2774
|
};
|
|
2775
2775
|
};
|
|
2776
|
+
error: {
|
|
2777
|
+
qrExpired: string;
|
|
2778
|
+
versionRefused: string;
|
|
2779
|
+
authCorrupt: string;
|
|
2780
|
+
};
|
|
2781
|
+
showNewQr: string;
|
|
2776
2782
|
};
|
|
2777
2783
|
tunnel: {
|
|
2778
2784
|
title: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** WhatsApp `lastError` codes the adapter sets (`WA_ERROR` in @ezychat/wa) → `admin` catalog keys. */
|
|
2
|
+
export declare const WA_ERROR_KEY: {
|
|
3
|
+
readonly qr_expired: "whatsapp.error.qrExpired";
|
|
4
|
+
readonly version_refused: "whatsapp.error.versionRefused";
|
|
5
|
+
readonly auth_corrupt: "whatsapp.error.authCorrupt";
|
|
6
|
+
};
|
|
7
|
+
export type WaErrorCode = keyof typeof WA_ERROR_KEY;
|
|
8
|
+
export declare function isWaErrorCode(value: string | null | undefined): value is WaErrorCode;
|
|
9
|
+
/** The status's last error in plain words: a known code is translated, anything else is shown as sent. */
|
|
10
|
+
export declare function useWaErrorText(): (lastError: string | null | undefined) => string | null;
|
|
11
|
+
/** Stopped after unscanned QR codes: the adapter waits for a person to ask for a new one. */
|
|
12
|
+
export declare const isQrExpired: (s: {
|
|
13
|
+
state: string;
|
|
14
|
+
lastError: string | null;
|
|
15
|
+
} | undefined) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.94",
|
|
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.94",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.107.1",
|
|
46
46
|
"@types/react": "^19.3.0",
|