@athome-solution/feedjet 1.0.0

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.
@@ -0,0 +1,5 @@
1
+ export type MaybeFunction<T> = T | (() => T);
2
+ export interface UserType {
3
+ id: string;
4
+ fullName?: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ export declare function getBrowserInfo(): {
2
+ name: string;
3
+ version: string;
4
+ };
5
+ export declare function getScreenInfo(): {
6
+ resolution: string;
7
+ zoom: string;
8
+ };
9
+ export declare function getOSClient(): string;
10
+ export declare function captureScreenShot(): Promise<Blob | null>;
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@athome-solution/feedjet",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "description": "A library for feedback with form and screenshot support.",
6
+ "author": "Athome Solution",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "javascript",
10
+ "js",
11
+ "typescript",
12
+ "ts",
13
+ "cjs",
14
+ "esm",
15
+ "feedback",
16
+ "widget"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.esm.js",
22
+ "require": "./dist/index.umd.js"
23
+ },
24
+ "./*": "./dist/*"
25
+ },
26
+ "main": "./dist/index.umd.js",
27
+ "module": "./dist/index.esm.js",
28
+ "types": "./dist/index.d.ts",
29
+ "files": [
30
+ "dist",
31
+ "dist/css"
32
+ ],
33
+ "scripts": {
34
+ "lint:fix": "eslint --fix .",
35
+ "svgo": "svgo --recursive --input=./src/assets --output=./src/assets"
36
+ },
37
+ "devDependencies": {
38
+ "@antfu/eslint-config": "^3.12.1",
39
+ "@rollup/plugin-commonjs": "^28.0.2",
40
+ "@rollup/plugin-node-resolve": "^16.0.0",
41
+ "@rollup/plugin-terser": "^0.4.4",
42
+ "@rollup/pluginutils": "^5.1.4",
43
+ "@types/node": "^22.10.5",
44
+ "autoprefixer": "^10.4.20",
45
+ "eslint": "^9.17.0",
46
+ "eslint-plugin-format": "^0.1.3",
47
+ "eslint-plugin-github": "^5.1.4",
48
+ "html2canvas": "^1.4.1",
49
+ "magic-string": "^0.30.17",
50
+ "postcss": "^8.4.49",
51
+ "postcss-cli": "^11.0.0",
52
+ "rollup": "^4.30.0",
53
+ "rollup-plugin-dts": "^6.1.1",
54
+ "rollup-plugin-polyfill-node": "^0.13.0",
55
+ "rollup-plugin-string": "^3.0.0",
56
+ "rollup-plugin-typescript2": "^0.36.0",
57
+ "sass": "^1.83.1",
58
+ "svgo": "^3.3.2",
59
+ "typescript": "^5.7.2"
60
+ },
61
+ "browserslist": [
62
+ "defaults",
63
+ "> 0.25%",
64
+ "not dead"
65
+ ]
66
+ }