@kapaai/support-form-deflector 0.1.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.
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Kapa Support Form Deflector
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/example.test.tsx"],"names":[],"mappings":""}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,IAAI,CAAC;AAIvB,eAAO,MAAM,oBAAoB,QAAS,MAAM,WAE/C,CAAC"}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="%PUBLIC_URL%/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/><link rel="manifest" href="%PUBLIC_URL%/manifest.json"/><title>React App</title><script defer="defer" src="kapa-deflector.bundle.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KapaDeflector=t():e.KapaDeflector=t()}(self,(()=>(()=>{"use strict";var e={151:(e,t,o)=>{o.r(t),o.d(t,{TimeoutError:()=>c,executeWithTimeout:()=>p,getButtonPosition:()=>i,getFaviconUrl:()=>n,makeBgColorImportant:()=>a,parseJsonField:()=>u,strip:()=>s});var r=(e,t,o)=>new Promise(((r,n)=>{var i=e=>{try{s(o.next(e))}catch(e){n(e)}},u=e=>{try{s(o.throw(e))}catch(e){n(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,u);s((o=o.apply(e,t)).next())})),n=e=>`https://www.google.com/s2/favicons?sz=128&domain=${new URL(e).hostname}`,i=e=>{const{buttonPositionTop:t,buttonPositionRight:o,buttonPositionBottom:r,buttonPositionLeft:n}=e,i={top:t,right:o,bottom:r,left:n};return Object.entries(i).reduce(((e,[t,o])=>(void 0!==o&&(e[t]=o),e)),{bottom:"20px",right:"20px"})};function u(e){if(e)return JSON.parse(e)}function s(e,t){const o=new RegExp(`^[${t}]+|[${t}]+$`,"g");return e.replace(o,"")}function a(e){return e?`${e} !important`:void 0}var c=class e extends Error{constructor(t){super(t),this.name="TimeoutError",Object.setPrototypeOf(this,e.prototype)}};function p(e,t){return r(this,null,(function*(){return new Promise(((o,r)=>{const n=setTimeout((()=>{r(new c("Promise timed out."))}),t);e.then((e=>{clearTimeout(n),o(e)})).catch((e=>{clearTimeout(n),r(e)}))}))}))}}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.getFaviconUrlExample=e.dummy=void 0,e.dummy=1;const t=o(151);e.getFaviconUrlExample=e=>(0,t.getFaviconUrl)(e)})(),r})()));
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kapaai/support-form-deflector",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/esm/index.js",
|
|
6
|
+
"types": "./dist/esm/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/kapa-ai/kapa-js"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/esm/index.js",
|
|
19
|
+
"require": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@kapaai/utils": "*",
|
|
24
|
+
"@emotion/react": "^11.10.6",
|
|
25
|
+
"@emotion/styled": "^11.10.6",
|
|
26
|
+
"@fingerprintjs/fingerprintjs-pro-react": "^2.6.3",
|
|
27
|
+
"@mantine/core": "^6.0.8",
|
|
28
|
+
"@mantine/form": "^7.1.2",
|
|
29
|
+
"@mantine/hooks": "^6.0.8",
|
|
30
|
+
"@tabler/icons-react": "^2.16.0",
|
|
31
|
+
"chroma-js": "^2.4.2",
|
|
32
|
+
"framer-motion": "^10.12.4",
|
|
33
|
+
"prism-react-renderer": "^2.3.0",
|
|
34
|
+
"prismjs": "^1.29.0",
|
|
35
|
+
"react": "^18.2.0",
|
|
36
|
+
"react-dom": "^18.2.0",
|
|
37
|
+
"react-google-recaptcha": "^2.1.0",
|
|
38
|
+
"react-markdown": "^8.0.7",
|
|
39
|
+
"react-scripts": "5.0.1",
|
|
40
|
+
"remark-gfm": "^3.0.1",
|
|
41
|
+
"ts-loader": "^9.4.2",
|
|
42
|
+
"typescript": "^4.9.5"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"dev": "webpack serve --mode development",
|
|
46
|
+
"build": "webpack --mode production",
|
|
47
|
+
"test": "jest",
|
|
48
|
+
"eject": "react-scripts eject"
|
|
49
|
+
},
|
|
50
|
+
"eslintConfig": {
|
|
51
|
+
"extends": [
|
|
52
|
+
"react-app",
|
|
53
|
+
"react-app/jest"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"browserslist": {
|
|
57
|
+
"production": [
|
|
58
|
+
">0.2%",
|
|
59
|
+
"not dead",
|
|
60
|
+
"not op_mini all"
|
|
61
|
+
],
|
|
62
|
+
"development": [
|
|
63
|
+
"last 1 chrome version",
|
|
64
|
+
"last 1 firefox version",
|
|
65
|
+
"last 1 safari version"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@kapa/tsconfig": "*",
|
|
70
|
+
"@google-cloud/storage": "^7.11.3",
|
|
71
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
72
|
+
"@testing-library/react": "^13.4.0",
|
|
73
|
+
"@testing-library/user-event": "^13.5.0",
|
|
74
|
+
"@types/chroma-js": "^2.4.0",
|
|
75
|
+
"@types/jest": "^27.5.2",
|
|
76
|
+
"@types/node": "^16.18.23",
|
|
77
|
+
"@types/react": "^18.0.35",
|
|
78
|
+
"@types/react-dom": "^18.0.11",
|
|
79
|
+
"@types/react-google-recaptcha": "^2.1.5",
|
|
80
|
+
"@types/react-syntax-highlighter": "^15.5.6",
|
|
81
|
+
"html-webpack-plugin": "^5.5.0",
|
|
82
|
+
"jest": "^29.7.0",
|
|
83
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
84
|
+
"ts-jest": "^29.1.0",
|
|
85
|
+
"web-vitals": "^2.1.4",
|
|
86
|
+
"webpack": "^5.79.0",
|
|
87
|
+
"webpack-cli": "^5.0.1",
|
|
88
|
+
"webpack-dev-server": "^4.13.2"
|
|
89
|
+
},
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public"
|
|
92
|
+
}
|
|
93
|
+
}
|