@creaditor/business-ai 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.
- package/LICENSE +22 -0
- package/README.md +114 -0
- package/dist/business-ai.es.js +59187 -0
- package/dist/business-ai.umd.js +1365 -0
- package/dist/style.css +1 -0
- package/package.json +73 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._rightLayout_3sieb_1{background-color:#ececec;height:100vh;display:flex;justify-content:center;align-items:center;box-shadow:0 0 10px #0000001a;overflow:hidden}._logo_3sieb_11{width:100px;height:auto!important;object-fit:cover;position:absolute;top:10px;right:10px;z-index:100}._chatContainer_1rdf9_1{display:flex;flex-direction:column;height:100vh;background-color:#f5f5f5;position:relative;box-shadow:0 0 10px #0000001a}._chatHeader_1rdf9_10{padding:16px 20px;background-color:#fff;border-bottom:1px solid #e0e0e0;box-shadow:0 2px 4px #0000000d;z-index:10;height:30px}._chatTitle_1rdf9_19{margin:0;font-weight:600;color:#333}._messagesContainer_1rdf9_25{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}._messagesContainer_1rdf9_25::-webkit-scrollbar{width:6px}._messagesContainer_1rdf9_25::-webkit-scrollbar-track{background:transparent}._messagesContainer_1rdf9_25::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}._messagesContainer_1rdf9_25::-webkit-scrollbar-thumb:hover{background:#999}._messageWrapper_1rdf9_52{display:flex;width:100%;animation:_fadeIn_1rdf9_1 .3s ease-in}@keyframes _fadeIn_1rdf9_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._userMessage_1rdf9_69{justify-content:flex-end}._aiMessage_1rdf9_73{justify-content:flex-start}._messageBubble_1rdf9_77{max-width:75%;padding:12px 16px;word-wrap:break-word;position:relative}._userBubble_1rdf9_84{background:linear-gradient(-135deg,#667eea,#764ba2);color:#fff;border-radius:18px 18px 18px 4px}._aiBubble_1rdf9_90{background:#fff;color:#333;border-radius:18px 18px 4px;border:1px solid #e0e0e0}._messageText_1rdf9_97{margin:0 0 4px;line-height:1.5;white-space:pre-wrap}._userBubble_1rdf9_84 ._messageText_1rdf9_97{color:#fff}._aiBubble_1rdf9_90 ._messageText_1rdf9_97{color:#333}._messageTime_1rdf9_111{display:block;opacity:.7;font-size:.7rem;margin-top:4px}._userBubble_1rdf9_84 ._messageTime_1rdf9_111{color:#fffc}._aiBubble_1rdf9_90 ._messageTime_1rdf9_111{color:#666}._loadingSpinner_1rdf9_126{color:#667eea}._inputContainer_1rdf9_130{padding:16px 20px;background-color:#fff;border-top:1px solid #e0e0e0;box-shadow:0 -2px 4px #0000000d}._inputField_1rdf9_137{background-color:#f9f9f9}._inputField_1rdf9_137 .MuiOutlinedInput-root{border-radius:24px;padding-left:8px}._inputField_1rdf9_137 .MuiOutlinedInput-input{padding:12px 16px}._sendButton_1rdf9_150{margin-right:8px}._sendButton_1rdf9_150:disabled{opacity:.5}[data-lang=he] ._messageWrapper_1rdf9_52,[data-lang=ar] ._messageWrapper_1rdf9_52{direction:ltr}[data-lang=he] ._userBubble_1rdf9_84,[data-lang=ar] ._userBubble_1rdf9_84{border-radius:18px 18px 4px}[data-lang=he] ._aiBubble_1rdf9_90,[data-lang=ar] ._aiBubble_1rdf9_90{border-radius:18px 18px 18px 4px}._newsletterRoot_1rdf9_173{width:100%;height:100%;top:0;right:0;z-index:1000}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@creaditor/business-ai",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"description": "Business AI component with Shadow DOM support for embedding",
|
|
10
|
+
"main": "./dist/business-ai.umd.js",
|
|
11
|
+
"module": "./dist/business-ai.es.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"unpkg": "./dist/business-ai.umd.js",
|
|
14
|
+
"jsdelivr": "./dist/business-ai.umd.js",
|
|
15
|
+
"browser": "./dist/business-ai.umd.js",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "tsc -p tsconfig.build.json && vite build",
|
|
24
|
+
"preview": "vite preview",
|
|
25
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"web-components",
|
|
30
|
+
"shadow-dom",
|
|
31
|
+
"mui",
|
|
32
|
+
"material-ui",
|
|
33
|
+
"typescript",
|
|
34
|
+
"vite",
|
|
35
|
+
"business",
|
|
36
|
+
"ai",
|
|
37
|
+
"creaditor"
|
|
38
|
+
],
|
|
39
|
+
"author": "Creaditor",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/Creaditor/dropins.git",
|
|
44
|
+
"directory": "packages/business-ai"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/Creaditor/dropins#readme",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@creaditor/ai-prompt-textbox": "^1.0.13",
|
|
49
|
+
"@creaditor/newsletter-starterkit": "^1.0.3",
|
|
50
|
+
"@emotion/cache": "^11.11.0",
|
|
51
|
+
"@emotion/react": "^11.11.4",
|
|
52
|
+
"@emotion/styled": "^11.11.5",
|
|
53
|
+
"@mui/icons-material": "^5.15.15",
|
|
54
|
+
"@mui/material": "^5.15.15",
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0",
|
|
57
|
+
"stylis-plugin-rtl": "^2.1.1"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/react": "^18.2.66",
|
|
61
|
+
"@types/react-dom": "^18.2.22",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
63
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
64
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
65
|
+
"eslint": "^8.57.0",
|
|
66
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
67
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
68
|
+
"postcss": "^8.5.6",
|
|
69
|
+
"rtlcss": "^4.3.0",
|
|
70
|
+
"typescript": "^5.2.2",
|
|
71
|
+
"vite": "^5.2.0"
|
|
72
|
+
}
|
|
73
|
+
}
|