@opencx/widget-react 4.0.52 → 4.0.54
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +754 -680
- package/dist/index.js.map +1 -1
- package/dist/src/components/AttachmentPreview.d.ts.map +1 -1
- package/dist/src/components/CsatSurvey.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/dist/src/utils/__tests__/attachment-kind.spec.d.ts +2 -0
- package/dist/src/utils/__tests__/attachment-kind.spec.d.ts.map +1 -0
- package/dist/src/utils/attachment-kind.d.ts +13 -0
- package/dist/src/utils/attachment-kind.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,qBAAqB,CAAC;CACnC,CAAC;AA0DF,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,qBAwGtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CsatSurvey.d.ts","sourceRoot":"","sources":["../../../src/components/CsatSurvey.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CsatSurvey.d.ts","sourceRoot":"","sources":["../../../src/components/CsatSurvey.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAmCxC,wBAAgB,UAAU,6BAgJzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8Y3D,wBAAgB,UAAU,sBA2CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-kind.spec.d.ts","sourceRoot":"","sources":["../../../../src/utils/__tests__/attachment-kind.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SpreadsheetKind = 'csv' | 'excel';
|
|
2
|
+
export type Spreadsheet = {
|
|
3
|
+
kind: SpreadsheetKind;
|
|
4
|
+
label: string;
|
|
5
|
+
mimes: string[];
|
|
6
|
+
extensions: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare const SPREADSHEET_ACCEPT: Record<string, string[]>;
|
|
9
|
+
export declare function getSpreadsheet({ type, name, }: {
|
|
10
|
+
type: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}): Spreadsheet | null;
|
|
13
|
+
//# sourceMappingURL=attachment-kind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-kind.d.ts","sourceRoot":"","sources":["../../../src/utils/attachment-kind.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAyBF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAIvD,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,IAAI,GACL,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,WAAW,GAAG,IAAI,CASrB"}
|
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.54",
|
|
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-
|
|
41
|
-
"@opencx/widget-
|
|
40
|
+
"@opencx/widget-core": "4.0.54",
|
|
41
|
+
"@opencx/widget-react-headless": "4.0.54"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@types/react": ">=18 <20",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"tailwindcss": "^3.4.6",
|
|
54
54
|
"tailwindcss-animate": "^1.0.7",
|
|
55
55
|
"vite-plugin-qrcode": "^0.3.0",
|
|
56
|
-
"@opencx/
|
|
57
|
-
"@opencx/
|
|
56
|
+
"@opencx/tsconfig": "0.0.2",
|
|
57
|
+
"@opencx/eslint-config": "0.0.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"clean": "rm -rf node_modules dist .turbo",
|