@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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs +10 -10
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +751 -889
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/components/MightSolveUserIssueSuggestedReplies.d.ts.map +1 -1
  7. package/dist/src/hooks/useTranslation.d.ts +2 -2
  8. package/dist/src/hooks/useTranslation.d.ts.map +1 -1
  9. package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
  10. package/dist/src/screens/chat/ChatFooterItems.d.ts +3 -0
  11. package/dist/src/screens/chat/ChatFooterItems.d.ts.map +1 -0
  12. package/dist/src/screens/welcome/index.d.ts.map +1 -1
  13. package/package.json +5 -5
  14. package/dist/src/translation/ar.d.ts +0 -3
  15. package/dist/src/translation/ar.d.ts.map +0 -1
  16. package/dist/src/translation/de.d.ts +0 -3
  17. package/dist/src/translation/de.d.ts.map +0 -1
  18. package/dist/src/translation/en.d.ts +0 -3
  19. package/dist/src/translation/en.d.ts.map +0 -1
  20. package/dist/src/translation/es.d.ts +0 -3
  21. package/dist/src/translation/es.d.ts.map +0 -1
  22. package/dist/src/translation/fr.d.ts +0 -3
  23. package/dist/src/translation/fr.d.ts.map +0 -1
  24. package/dist/src/translation/index.d.ts +0 -17
  25. package/dist/src/translation/index.d.ts.map +0 -1
  26. package/dist/src/translation/nl.d.ts +0 -3
  27. package/dist/src/translation/nl.d.ts.map +0 -1
  28. package/dist/src/translation/pt.d.ts +0 -3
  29. package/dist/src/translation/pt.d.ts.map +0 -1
  30. package/dist/src/translation/tr.d.ts +0 -3
  31. package/dist/src/translation/tr.d.ts.map +0 -1
  32. package/dist/src/translation/translation.types.d.ts +0 -5
  33. 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,sBAqBlD"}
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 { TranslationKeysU } from '../translation/translation.types';
1
+ import { TranslationKeyU } from '@opencx/widget-core';
2
2
  export declare function useTranslation(): {
3
- t: (key: TranslationKeysU) => string;
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":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,wBAAgB,cAAc;aASf,gBAAgB;;;;EAM9B"}
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;AA6X3D,wBAAgB,UAAU,sBA2CzB"}
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,3 @@
1
+ import { default as React } from 'react';
2
+ export declare function ChatFooterItems(): React.JSX.Element;
3
+ //# sourceMappingURL=ChatFooterItems.d.ts.map
@@ -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,sBA4J5B"}
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.17",
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.17",
41
- "@opencx/widget-react-headless": "4.0.17"
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/eslint-config": "0.0.0",
56
- "@opencx/tsconfig": "0.0.1"
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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const arLanguage: TranslationInterface;
3
- //# sourceMappingURL=ar.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const deLanguage: TranslationInterface;
3
- //# sourceMappingURL=de.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const enLanguage: TranslationInterface;
3
- //# sourceMappingURL=en.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const esLanguage: TranslationInterface;
3
- //# sourceMappingURL=es.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const frLanguage: TranslationInterface;
3
- //# sourceMappingURL=fr.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const nlLanguage: TranslationInterface;
3
- //# sourceMappingURL=nl.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const ptLanguage: TranslationInterface;
3
- //# sourceMappingURL=pt.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TranslationInterface } from './translation.types';
2
- export declare const trLanguage: TranslationInterface;
3
- //# sourceMappingURL=tr.d.ts.map
@@ -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"}