@opencx/widget-react 4.0.17 → 4.0.19
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/README.md +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +751 -889
- package/dist/index.js.map +1 -1
- package/dist/src/components/MightSolveUserIssueSuggestedReplies.d.ts.map +1 -1
- package/dist/src/hooks/useTranslation.d.ts +2 -2
- package/dist/src/hooks/useTranslation.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooterItems.d.ts +3 -0
- package/dist/src/screens/chat/ChatFooterItems.d.ts.map +1 -0
- package/dist/src/screens/welcome/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/src/translation/ar.d.ts +0 -3
- package/dist/src/translation/ar.d.ts.map +0 -1
- package/dist/src/translation/de.d.ts +0 -3
- package/dist/src/translation/de.d.ts.map +0 -1
- package/dist/src/translation/en.d.ts +0 -3
- package/dist/src/translation/en.d.ts.map +0 -1
- package/dist/src/translation/es.d.ts +0 -3
- package/dist/src/translation/es.d.ts.map +0 -1
- package/dist/src/translation/fr.d.ts +0 -3
- package/dist/src/translation/fr.d.ts.map +0 -1
- package/dist/src/translation/index.d.ts +0 -17
- package/dist/src/translation/index.d.ts.map +0 -1
- package/dist/src/translation/nl.d.ts +0 -3
- package/dist/src/translation/nl.d.ts.map +0 -1
- package/dist/src/translation/pt.d.ts +0 -3
- package/dist/src/translation/pt.d.ts.map +0 -1
- package/dist/src/translation/tr.d.ts +0 -3
- package/dist/src/translation/tr.d.ts.map +0 -1
- package/dist/src/translation/translation.types.d.ts +0 -5
- package/dist/src/translation/translation.types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MightSolveUserIssueSuggestedReplies.d.ts","sourceRoot":"","sources":["../../../src/components/MightSolveUserIssueSuggestedReplies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,mCAAmC,
|
|
1
|
+
{"version":3,"file":"MightSolveUserIssueSuggestedReplies.d.ts","sourceRoot":"","sources":["../../../src/components/MightSolveUserIssueSuggestedReplies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,mCAAmC,sBAkBlD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TranslationKeyU } from '@opencx/widget-core';
|
|
2
2
|
export declare function useTranslation(): {
|
|
3
|
-
t: (key:
|
|
3
|
+
t: (key: TranslationKeyU) => string;
|
|
4
4
|
language: "tr" | "fr" | "en" | "ar" | "nl" | "de" | "pt" | "es";
|
|
5
5
|
dir: string;
|
|
6
6
|
hostDocumentDir: import('@opencx/widget-core').StringOrLiteral<"ltr" | "rtl">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,cAAc;aASf,eAAe;;;;EAM7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8X3D,wBAAgB,UAAU,sBA2CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatFooterItems.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooterItems.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,eAAe,sBA2B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/welcome/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAmBxC,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/welcome/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAmBxC,wBAAgB,aAAa,sBA+J5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencx/widget-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tailwind-merge": "^2.4.0",
|
|
38
38
|
"tinycolor2": "^1.6.0",
|
|
39
39
|
"zod": "^3.23.8",
|
|
40
|
-
"@opencx/widget-core": "4.0.
|
|
41
|
-
"@opencx/widget-react-headless": "4.0.
|
|
40
|
+
"@opencx/widget-core": "4.0.19",
|
|
41
|
+
"@opencx/widget-react-headless": "4.0.19"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@types/react": ">=18 <20",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"postcss": "^8.4.41",
|
|
53
53
|
"tailwindcss": "^3.4.6",
|
|
54
54
|
"tailwindcss-animate": "^1.0.7",
|
|
55
|
-
"@opencx/
|
|
56
|
-
"@opencx/
|
|
55
|
+
"@opencx/tsconfig": "0.0.1",
|
|
56
|
+
"@opencx/eslint-config": "0.0.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"clean": "rm -rf node_modules dist .turbo",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/translation/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/translation/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translation/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/translation/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/translation/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TranslationKeysU } from './translation.types';
|
|
2
|
-
declare const languages: {
|
|
3
|
-
readonly en: import('./translation.types').TranslationInterface;
|
|
4
|
-
readonly ar: import('./translation.types').TranslationInterface;
|
|
5
|
-
readonly nl: import('./translation.types').TranslationInterface;
|
|
6
|
-
readonly fr: import('./translation.types').TranslationInterface;
|
|
7
|
-
readonly de: import('./translation.types').TranslationInterface;
|
|
8
|
-
readonly pt: import('./translation.types').TranslationInterface;
|
|
9
|
-
readonly es: import('./translation.types').TranslationInterface;
|
|
10
|
-
readonly tr: import('./translation.types').TranslationInterface;
|
|
11
|
-
};
|
|
12
|
-
export declare const LANGUAGES: (keyof typeof languages)[];
|
|
13
|
-
export type Language = (typeof LANGUAGES)[number];
|
|
14
|
-
export declare function isSupportedLanguage(lang: string | null | undefined): lang is Language;
|
|
15
|
-
export declare function getTranslation(key: TranslationKeysU, lang: Language): string;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translation/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,QAAA,MAAM,SAAS;;;;;;;;;CASL,CAAC;AAEX,eAAO,MAAM,SAAS,EAA6B,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAC9E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,IAAI,IAAI,QAAQ,CAElB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,CAG5E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../src/translation/nl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../src/translation/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../src/translation/tr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,eAAO,MAAM,UAAU,EAAE,oBAiBxB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type TranslationKeysU = 'i-need-more-help' | 'this-was-helpful' | 'write-a-message' | 'session-closed-lead' | 'new-conversation' | 'back-to-conversations' | 'closed-conversations' | 'no-conversations-yet' | 'welcome-title' | 'welcome-description' | 'your-name' | 'your-email' | 'optional' | 'start-chat' | 'starting-chat';
|
|
2
|
-
export type TranslationInterface = {
|
|
3
|
-
[K in TranslationKeysU]: string;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=translation.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.types.d.ts","sourceRoot":"","sources":["../../../src/translation/translation.types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GACxB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,eAAe,GACf,qBAAqB,GACrB,WAAW,GACX,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,eAAe,CAAC;AAEpB,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,gBAAgB,GAAG,MAAM;CAChC,CAAC"}
|