@opencx/widget-react 4.0.16 → 4.0.18

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.
@@ -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":"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,15 +1,14 @@
1
1
  {
2
2
  "name": "@opencx/widget-react",
3
3
  "private": false,
4
- "version": "4.0.16",
4
+ "version": "4.0.18",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/openchatai/widget"
9
9
  },
10
10
  "files": [
11
- "dist",
12
- "dist-embed"
11
+ "dist"
13
12
  ],
14
13
  "exports": {
15
14
  ".": {
@@ -38,8 +37,8 @@
38
37
  "tailwind-merge": "^2.4.0",
39
38
  "tinycolor2": "^1.6.0",
40
39
  "zod": "^3.23.8",
41
- "@opencx/widget-core": "4.0.16",
42
- "@opencx/widget-react-headless": "4.0.16"
40
+ "@opencx/widget-core": "4.0.18",
41
+ "@opencx/widget-react-headless": "4.0.18"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "@types/react": ">=18 <20",
@@ -53,16 +52,14 @@
53
52
  "postcss": "^8.4.41",
54
53
  "tailwindcss": "^3.4.6",
55
54
  "tailwindcss-animate": "^1.0.7",
56
- "@opencx/eslint-config": "0.0.0",
57
- "@opencx/tsconfig": "0.0.1"
55
+ "@opencx/tsconfig": "0.0.1",
56
+ "@opencx/eslint-config": "0.0.0"
58
57
  },
59
58
  "scripts": {
60
59
  "clean": "rm -rf node_modules dist .turbo",
61
- "clean:dist": "rm -rf dist dist-embed .turbo",
60
+ "clean:dist": "rm -rf dist .turbo",
62
61
  "dev": "vite --host",
63
- "build:lib": "vite build -c vite.config.ts",
64
- "build:embed": "vite build -c vite.embed.config.ts",
65
- "build": "pnpm build:lib && pnpm build:embed",
62
+ "build": "vite build -c vite.config.ts",
66
63
  "test": "vitest run",
67
64
  "cs": "changeset",
68
65
  "csv": "changeset version",
@@ -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"}