@athome-solution/feedjet 2.1.5 → 2.1.6
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/css/feedback.css +1 -1
- package/dist/css/feedback.css.map +1 -1
- package/dist/css/feedbot.css +1 -1
- package/dist/css/feedbot.css.map +1 -1
- package/dist/css/integration-test.css +3 -0
- package/dist/css/integration-test.css.map +1 -0
- package/dist/feedback.d.ts +6 -6
- package/dist/feedbot.d.ts +5 -6
- package/dist/i18n.d.ts +5 -0
- package/dist/index.d.ts +12 -13
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/integration-test.d.ts +32 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +8 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type IntegrationStatus = 'pending' | 'ok' | 'ko';
|
|
2
|
+
export type ConnectivityError = 'communication_error' | 'no_subscription' | null;
|
|
3
|
+
export interface IntegrationTestConfig {
|
|
4
|
+
modalId: string;
|
|
5
|
+
bodyOpenClass: string;
|
|
6
|
+
toggleHtmlClass: boolean;
|
|
7
|
+
btnPrimaryClasses: string;
|
|
8
|
+
btnOutlineClasses: string;
|
|
9
|
+
btnLoadingClass: string;
|
|
10
|
+
pendingTitleKey: string;
|
|
11
|
+
pendingTextKey: string;
|
|
12
|
+
checkingTextKey: string;
|
|
13
|
+
cancelLabelKey: string;
|
|
14
|
+
connectivityCheckUrl: string;
|
|
15
|
+
connectivityCheckBody: Record<string, unknown>;
|
|
16
|
+
onSuccess: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare class IntegrationTest {
|
|
19
|
+
private _connectivityError;
|
|
20
|
+
private _integrationStatus;
|
|
21
|
+
private config;
|
|
22
|
+
constructor(config: IntegrationTestConfig);
|
|
23
|
+
get connectivityError(): ConnectivityError;
|
|
24
|
+
get integrationStatus(): IntegrationStatus;
|
|
25
|
+
setStatus(status: IntegrationStatus, error?: ConnectivityError): void;
|
|
26
|
+
handleIntegrationStatus(): boolean;
|
|
27
|
+
closeModal(): void;
|
|
28
|
+
private checkConnectivity;
|
|
29
|
+
private openModal;
|
|
30
|
+
private renderError;
|
|
31
|
+
private renderPendingTest;
|
|
32
|
+
}
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athome-solution/feedjet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.6",
|
|
5
5
|
"description": "A library for feedback with form and screenshot support.",
|
|
6
6
|
"author": "Athome Solution",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"@antfu/eslint-config": "^3.12.1",
|
|
35
35
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
36
36
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
37
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
37
38
|
"@rollup/plugin-terser": "^0.4.4",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
38
40
|
"@rollup/pluginutils": "^5.1.4",
|
|
39
41
|
"@types/node": "^22.10.5",
|
|
40
42
|
"autoprefixer": "^10.4.20",
|
|
@@ -49,10 +51,11 @@
|
|
|
49
51
|
"rollup-plugin-dts": "^6.1.1",
|
|
50
52
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
51
53
|
"rollup-plugin-string": "^3.0.0",
|
|
52
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
53
54
|
"sass": "^1.83.1",
|
|
54
55
|
"svgo": "^3.3.2",
|
|
55
|
-
"
|
|
56
|
+
"tslib": "^2.8.1",
|
|
57
|
+
"typescript": "^5.7.2",
|
|
58
|
+
"vite": "^6.1.0"
|
|
56
59
|
},
|
|
57
60
|
"browserslist": [
|
|
58
61
|
"defaults",
|
|
@@ -61,6 +64,7 @@
|
|
|
61
64
|
],
|
|
62
65
|
"scripts": {
|
|
63
66
|
"lint:fix": "eslint --fix .",
|
|
64
|
-
"
|
|
67
|
+
"svg": "svgo --recursive --input=./src/assets --output=./src/assets",
|
|
68
|
+
"playground": "vite --open"
|
|
65
69
|
}
|
|
66
70
|
}
|