@kapaai/support-form-deflector 0.7.1 → 0.7.3
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/answer/answer-box.d.ts.map +1 -1
- package/dist/answer/cancelled-indicator.d.ts +4 -0
- package/dist/answer/cancelled-indicator.d.ts.map +1 -0
- package/dist/answer/index.d.ts.map +1 -1
- package/dist/answer/loading-indicator.d.ts +1 -1
- package/dist/answer/loading-indicator.d.ts.map +1 -1
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/style-parser.d.ts +1 -1
- package/dist/config/style-parser.d.ts.map +1 -1
- package/dist/config/types.d.ts +9 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/kapa-support-form-deflector.bundle.js +1 -1
- package/dist/kapa-support-form-deflector.bundle.js.LICENSE.txt +17 -0
- package/dist/state.d.ts +3 -2
- package/dist/state.d.ts.map +1 -1
- package/dist/utils/toggle-button-disabled.d.ts.map +1 -1
- package/package.json +4 -11
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Determine if an object is a Buffer
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
/*! Bundled license information:
|
|
2
9
|
|
|
3
10
|
prismjs/prism.js:
|
|
@@ -21,6 +28,16 @@ prismjs/prism.js:
|
|
|
21
28
|
* LICENSE file in the root directory of this source tree.
|
|
22
29
|
*/
|
|
23
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-is.production.min.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
|
|
24
41
|
/**
|
|
25
42
|
* @license React
|
|
26
43
|
* react-jsx-runtime.production.min.js
|
package/dist/state.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type DeflectorState = "loading" | "error" | "not_triggered" | "success";
|
|
2
|
+
export type DeflectorState = "loading" | "loading_longer" | "error" | "not_triggered" | "cancelled" | "success";
|
|
3
3
|
type GlobalState = {
|
|
4
4
|
state: DeflectorState;
|
|
5
|
+
abortController?: AbortController;
|
|
5
6
|
answer?: {
|
|
6
7
|
answer: string;
|
|
7
8
|
thread_id: string;
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
type GlobalAction = {
|
|
11
|
-
type: "LOADING" | "SUCCESS" | "ERROR";
|
|
12
|
+
type: "LOADING" | "LOADING_LONGER" | "SUCCESS" | "ERROR" | "CANCELLED";
|
|
12
13
|
data: any;
|
|
13
14
|
};
|
|
14
15
|
export declare const DeflectorProvider: React.FC<{
|
package/dist/state.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,gBAAgB,GAChB,OAAO,GACP,eAAe,GACf,WAAW,GACX,SAAS,CAAC;AACd,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,cAAc,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,MAAM,CAAC,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAQF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,GAAG,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACvE,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AA6DF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CA6dA,CAAC;AAEF,eAAO,MAAM,YAAY;WA1eZ,WAAW;cACR,MAAM,QAAQ,CAAC,YAAY,CAAC;CA+e3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button-disabled.d.ts","sourceRoot":"","sources":["../../src/utils/toggle-button-disabled.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,aACrB,MAAM,GAAG,SAAS,YAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"toggle-button-disabled.d.ts","sourceRoot":"","sources":["../../src/utils/toggle-button-disabled.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,aACrB,MAAM,GAAG,SAAS,YAClB,OAAO,SA6BlB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kapaai/support-form-deflector",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -45,14 +45,13 @@
|
|
|
45
45
|
"scripts": {
|
|
46
46
|
"dev": "webpack serve --mode development",
|
|
47
47
|
"build": "webpack --mode production",
|
|
48
|
-
"test": "
|
|
48
|
+
"test": "vitest",
|
|
49
49
|
"eject": "react-scripts eject",
|
|
50
50
|
"postpublish": "node scripts/post-publish-gcs.js"
|
|
51
51
|
},
|
|
52
52
|
"eslintConfig": {
|
|
53
53
|
"extends": [
|
|
54
|
-
"react-app"
|
|
55
|
-
"react-app/jest"
|
|
54
|
+
"react-app"
|
|
56
55
|
]
|
|
57
56
|
},
|
|
58
57
|
"browserslist": {
|
|
@@ -70,11 +69,7 @@
|
|
|
70
69
|
"devDependencies": {
|
|
71
70
|
"@google-cloud/storage": "^7.11.3",
|
|
72
71
|
"@kapaai/tsconfig": "*",
|
|
73
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
74
|
-
"@testing-library/react": "^13.4.0",
|
|
75
|
-
"@testing-library/user-event": "^13.5.0",
|
|
76
72
|
"@types/chroma-js": "^2.4.0",
|
|
77
|
-
"@types/jest": "^27.5.2",
|
|
78
73
|
"@types/node": "^16.18.23",
|
|
79
74
|
"@types/react": "^18.0.35",
|
|
80
75
|
"@types/react-dom": "^18.0.11",
|
|
@@ -82,9 +77,7 @@
|
|
|
82
77
|
"@types/react-syntax-highlighter": "^15.5.6",
|
|
83
78
|
"@types/turndown": "^5.0.5",
|
|
84
79
|
"html-webpack-plugin": "^5.5.0",
|
|
85
|
-
"
|
|
86
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
87
|
-
"ts-jest": "^29.1.0",
|
|
80
|
+
"vitest": "^2.1.5",
|
|
88
81
|
"web-vitals": "^2.1.4",
|
|
89
82
|
"webpack": "^5.79.0",
|
|
90
83
|
"webpack-cli": "^5.0.1",
|