embeddedaichatux 1.0.0 → 1.0.1

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.
Files changed (104) hide show
  1. package/EmbeddedChat.js +7 -7
  2. package/bin/Debug/net7.0/AIChat.npm.deps.json +23 -0
  3. package/bin/Debug/net7.0/AIChat.npm.dll +0 -0
  4. package/bin/Debug/net7.0/AIChat.npm.exe +0 -0
  5. package/bin/Debug/net7.0/AIChat.npm.pdb +0 -0
  6. package/bin/Debug/net7.0/AIChat.npm.runtimeconfig.json +19 -0
  7. package/bin/Debug/net7.0/AIChat.npm.staticwebassets.runtime.json +1 -0
  8. package/bin/Debug/net7.0/appsettings.Development.json +9 -0
  9. package/bin/Debug/net7.0/appsettings.json +9 -0
  10. package/bin/Debug/net7.0/package.json +11 -0
  11. package/obj/Debug/net7.0/AIChat.npm.GeneratedMSBuildEditorConfig.editorconfig +0 -28
  12. package/obj/Debug/net7.0/AIChat.npm.MvcApplicationPartsAssemblyInfo.cache +0 -0
  13. package/obj/Debug/net7.0/AIChat.npm.csproj.CoreCompileInputs.cache +1 -0
  14. package/obj/Debug/net7.0/AIChat.npm.csproj.FileListAbsolute.txt +27 -0
  15. package/obj/Debug/net7.0/AIChat.npm.dll +0 -0
  16. package/obj/Debug/net7.0/AIChat.npm.genruntimeconfig.cache +1 -0
  17. package/obj/Debug/net7.0/AIChat.npm.pdb +0 -0
  18. package/obj/Debug/net7.0/apphost.exe +0 -0
  19. package/obj/Debug/net7.0/project.razor.vs.json +1 -1
  20. package/obj/Debug/net7.0/ref/AIChat.npm.dll +0 -0
  21. package/obj/Debug/net7.0/refint/AIChat.npm.dll +0 -0
  22. package/obj/Debug/net7.0/staticwebassets/msbuild.build.AIChat.npm.props +3 -0
  23. package/obj/Debug/net7.0/staticwebassets/msbuild.buildMultiTargeting.AIChat.npm.props +3 -0
  24. package/obj/Debug/net7.0/staticwebassets/msbuild.buildTransitive.AIChat.npm.props +3 -0
  25. package/obj/Debug/net7.0/staticwebassets.build.json +19 -0
  26. package/obj/Debug/net7.0/staticwebassets.development.json +1 -0
  27. package/obj/Release/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs +4 -0
  28. package/obj/Release/net7.0/AIChat.npm.AssemblyInfo.cs +23 -0
  29. package/obj/Release/net7.0/AIChat.npm.AssemblyInfoInputs.cache +1 -0
  30. package/obj/Release/net7.0/AIChat.npm.GeneratedMSBuildEditorConfig.editorconfig +17 -0
  31. package/obj/Release/net7.0/AIChat.npm.GlobalUsings.g.cs +17 -0
  32. package/obj/Release/net7.0/AIChat.npm.assets.cache +0 -0
  33. package/package.json +1 -1
  34. package/Pages/Error.cshtml +0 -26
  35. package/Pages/Error.cshtml.cs +0 -27
  36. package/Pages/Index.cshtml +0 -10
  37. package/Pages/Index.cshtml.cs +0 -20
  38. package/Pages/Privacy.cshtml +0 -8
  39. package/Pages/Privacy.cshtml.cs +0 -19
  40. package/Pages/Shared/_Layout.cshtml +0 -51
  41. package/Pages/Shared/_Layout.cshtml.css +0 -48
  42. package/Pages/Shared/_ValidationScriptsPartial.cshtml +0 -2
  43. package/Pages/_ViewImports.cshtml +0 -3
  44. package/Pages/_ViewStart.cshtml +0 -3
  45. package/wwwroot/css/site.css +0 -22
  46. package/wwwroot/favicon.ico +0 -0
  47. package/wwwroot/js/site.js +0 -4
  48. package/wwwroot/lib/bootstrap/LICENSE +0 -22
  49. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css +0 -4997
  50. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map +0 -1
  51. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css +0 -7
  52. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map +0 -1
  53. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css +0 -4996
  54. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map +0 -1
  55. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css +0 -7
  56. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map +0 -1
  57. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css +0 -427
  58. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map +0 -1
  59. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css +0 -8
  60. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map +0 -1
  61. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css +0 -424
  62. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map +0 -1
  63. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +0 -8
  64. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map +0 -1
  65. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css +0 -4866
  66. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map +0 -1
  67. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css +0 -7
  68. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map +0 -1
  69. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css +0 -4857
  70. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map +0 -1
  71. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +0 -7
  72. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map +0 -1
  73. package/wwwroot/lib/bootstrap/dist/css/bootstrap.css +0 -11221
  74. package/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map +0 -1
  75. package/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css +0 -7
  76. package/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map +0 -1
  77. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css +0 -11197
  78. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map +0 -1
  79. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css +0 -7
  80. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map +0 -1
  81. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js +0 -6780
  82. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map +0 -1
  83. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js +0 -7
  84. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map +0 -1
  85. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js +0 -4977
  86. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map +0 -1
  87. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js +0 -7
  88. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map +0 -1
  89. package/wwwroot/lib/bootstrap/dist/js/bootstrap.js +0 -5026
  90. package/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map +0 -1
  91. package/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js +0 -7
  92. package/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map +0 -1
  93. package/wwwroot/lib/jquery/LICENSE.txt +0 -21
  94. package/wwwroot/lib/jquery/dist/jquery.js +0 -10881
  95. package/wwwroot/lib/jquery/dist/jquery.min.js +0 -2
  96. package/wwwroot/lib/jquery/dist/jquery.min.map +0 -1
  97. package/wwwroot/lib/jquery-validation/LICENSE.md +0 -22
  98. package/wwwroot/lib/jquery-validation/dist/additional-methods.js +0 -1158
  99. package/wwwroot/lib/jquery-validation/dist/additional-methods.min.js +0 -4
  100. package/wwwroot/lib/jquery-validation/dist/jquery.validate.js +0 -1601
  101. package/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js +0 -4
  102. package/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt +0 -23
  103. package/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js +0 -435
  104. package/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +0 -8
package/EmbeddedChat.js CHANGED
@@ -1,4 +1,3 @@
1
- // embeddedChat.js
2
1
  class EmbeddedChat {
3
2
  constructor(containerDiv, chatId, options) {
4
3
  this.containerDiv = containerDiv;
@@ -7,17 +6,18 @@ class EmbeddedChat {
7
6
  this.avatarImage = this.options.avatarImage || '/img/avatar.jpg';
8
7
  this.isPreview = this.options.isPreview || false;
9
8
  this.previewParam = this.isPreview ? "?isPreview=true" : "";
9
+ this.positionStyle = this.containerDiv.dataset.position === 'in-place' ? 'width:100%; height:600px' : 'position: fixed; right: 0; bottom: 0; width: 300px; height: 600px';
10
10
  this.init();
11
11
  }
12
12
 
13
13
  init() {
14
14
  const iframeHtml = `
15
- <iframe id="embedded-chat" style="display: none; width:100%; border:none; overflow:hidden; position: fixed; right: 0; bottom: 0; width: 300px; height: 600px;" src="https://embedgpt.chat/ChatUX/${this.chatId}${this.previewParam}" frameborder="0" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
16
- <div id="embedded-chat-minimized" class="container" style="display: none;; color:#43636e;width:100%; position: fixed; right: 0; bottom: 0; width: 300px; height: 50px; padding-top: 10px;padding-left: 100px;">
17
- <img title="Chat" src="${this.avatarImage}" style="height:40px; border-radius: 50%;" />
18
- <button id="embedded-chat-now" class="btn btn-primary">Chat Now</button>
19
- </div>
20
- `;
15
+ <div id="embedded-chat-minimized" class="container" style="color:#43636e;width:100%; position: fixed; right: 0; bottom: 0; width: 300px; height: 50px; padding-top: 10px;padding-left: 100px;">
16
+ <img title="Chat" src="${this.avatarImage}" style="height:40px; border-radius: 50%;" />
17
+ <button id="embedded-chat-now" class="btn btn-primary">Chat Now</button>
18
+ </div>
19
+ <iframe id="embedded-chat" style="${this.positionStyle}; display: none; border:none; overflow:hidden;" frameborder="0" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="https://embedgpt.chat/ChatUX/${this.chatId}${this.previewParam}"></iframe>
20
+ `;
21
21
 
22
22
  this.containerDiv.innerHTML = iframeHtml;
23
23
  this.iframe = this.containerDiv.querySelector("#embedded-chat");
@@ -0,0 +1,23 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v7.0",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v7.0": {
9
+ "AIChat.npm/1.0.0": {
10
+ "runtime": {
11
+ "AIChat.npm.dll": {}
12
+ }
13
+ }
14
+ }
15
+ },
16
+ "libraries": {
17
+ "AIChat.npm/1.0.0": {
18
+ "type": "project",
19
+ "serviceable": false,
20
+ "sha512": ""
21
+ }
22
+ }
23
+ }
Binary file
Binary file
Binary file
@@ -0,0 +1,19 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net7.0",
4
+ "frameworks": [
5
+ {
6
+ "name": "Microsoft.NETCore.App",
7
+ "version": "7.0.0"
8
+ },
9
+ {
10
+ "name": "Microsoft.AspNetCore.App",
11
+ "version": "7.0.0"
12
+ }
13
+ ],
14
+ "configProperties": {
15
+ "System.GC.Server": true,
16
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
17
+ }
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ {"ContentRoots":["C:\\Git\\AIChat\\AIChat.npm\\wwwroot\\"],"Root":{"Children":null,"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}
@@ -0,0 +1,9 @@
1
+ {
2
+ "DetailedErrors": true,
3
+ "Logging": {
4
+ "LogLevel": {
5
+ "Default": "Information",
6
+ "Microsoft.AspNetCore": "Warning"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "Logging": {
3
+ "LogLevel": {
4
+ "Default": "Information",
5
+ "Microsoft.AspNetCore": "Warning"
6
+ }
7
+ },
8
+ "AllowedHosts": "*"
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "embeddedaichatux",
3
+ "version": "1.0.1",
4
+ "description": "A lightweight and customizable embedded AI chat UI component that seamlessly integrates into web applications, offering minimized and expanded views, with iframe-based content rendering.",
5
+ "main": "EmbeddedChat.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "EmbedGPT.chat, LLC",
10
+ "license": "MIT"
11
+ }
@@ -15,31 +15,3 @@ build_property.SupportLocalizedComponentNames =
15
15
  build_property.GenerateRazorMetadataSourceChecksumAttributes =
16
16
  build_property.MSBuildProjectDirectory = C:\Git\AIChat\AIChat.npm
17
17
  build_property._RazorSourceGeneratorDebug =
18
-
19
- [C:/Git/AIChat/AIChat.npm/Pages/Error.cshtml]
20
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcRXJyb3IuY3NodG1s
21
- build_metadata.AdditionalFiles.CssScope =
22
-
23
- [C:/Git/AIChat/AIChat.npm/Pages/Index.cshtml]
24
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcSW5kZXguY3NodG1s
25
- build_metadata.AdditionalFiles.CssScope =
26
-
27
- [C:/Git/AIChat/AIChat.npm/Pages/Privacy.cshtml]
28
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcUHJpdmFjeS5jc2h0bWw=
29
- build_metadata.AdditionalFiles.CssScope =
30
-
31
- [C:/Git/AIChat/AIChat.npm/Pages/Shared/_ValidationScriptsPartial.cshtml]
32
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcU2hhcmVkXF9WYWxpZGF0aW9uU2NyaXB0c1BhcnRpYWwuY3NodG1s
33
- build_metadata.AdditionalFiles.CssScope =
34
-
35
- [C:/Git/AIChat/AIChat.npm/Pages/_ViewImports.cshtml]
36
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcX1ZpZXdJbXBvcnRzLmNzaHRtbA==
37
- build_metadata.AdditionalFiles.CssScope =
38
-
39
- [C:/Git/AIChat/AIChat.npm/Pages/_ViewStart.cshtml]
40
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcX1ZpZXdTdGFydC5jc2h0bWw=
41
- build_metadata.AdditionalFiles.CssScope =
42
-
43
- [C:/Git/AIChat/AIChat.npm/Pages/Shared/_Layout.cshtml]
44
- build_metadata.AdditionalFiles.TargetPath = UGFnZXNcU2hhcmVkXF9MYXlvdXQuY3NodG1s
45
- build_metadata.AdditionalFiles.CssScope = b-awln15mgxz
@@ -0,0 +1 @@
1
+ 2a2fbdc06e3060ecc072244ebc14fc81cb280367
@@ -0,0 +1,27 @@
1
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\appsettings.Development.json
2
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\appsettings.json
3
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\package.json
4
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.staticwebassets.runtime.json
5
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.exe
6
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.deps.json
7
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.runtimeconfig.json
8
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.dll
9
+ C:\Git\AIChat\AIChat.npm\bin\Debug\net7.0\AIChat.npm.pdb
10
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.GeneratedMSBuildEditorConfig.editorconfig
11
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.AssemblyInfoInputs.cache
12
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.AssemblyInfo.cs
13
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.csproj.CoreCompileInputs.cache
14
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.MvcApplicationPartsAssemblyInfo.cache
15
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets\msbuild.AIChat.npm.Microsoft.AspNetCore.StaticWebAssets.props
16
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets\msbuild.build.AIChat.npm.props
17
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets\msbuild.buildMultiTargeting.AIChat.npm.props
18
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets\msbuild.buildTransitive.AIChat.npm.props
19
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets.pack.json
20
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets.build.json
21
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\staticwebassets.development.json
22
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\scopedcss\bundle\AIChat.npm.styles.css
23
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.dll
24
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\refint\AIChat.npm.dll
25
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.pdb
26
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\AIChat.npm.genruntimeconfig.cache
27
+ C:\Git\AIChat\AIChat.npm\obj\Debug\net7.0\ref\AIChat.npm.dll
Binary file
@@ -0,0 +1 @@
1
+ 217eab89b7f2a33f574c6a7af7227b8396c4f9d7
Binary file
Binary file