embeddedaichatux 1.1.1 → 1.2.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.
package/EmbeddedChat.js CHANGED
@@ -11,7 +11,7 @@ class EmbeddedChat {
11
11
  this.previewParam = this.isPreview ? "?isPreview=true" : "";
12
12
  this.serverUrl = this.options.serverUrl || 'https://embedgpt.chat/';
13
13
  this.positionStyle = this.containerDiv.dataset.position === 'in-place' ? 'width:100%; height:600px' : 'position: fixed; right: 0; bottom: 0; width: 300px; height: 600px; z-index: 100000';
14
- this.mode = this.options.mode || 'Chat'; // default to 'Chat' if mode isn't provided
14
+ this.mode = options.mode || 'Chat'; // default to 'chat' if mode isn't provided
15
15
  if (this.mode === 'ContactForm') {
16
16
  // Adjust position style for contact form if mode is 'ContactForm'
17
17
  this.positionStyle = 'width:100%; height:600px';
@@ -71,14 +71,7 @@ init() {
71
71
  });
72
72
  }
73
73
 
74
- showChat() {
75
- if (this.iframe) {
76
- this.iframe.style.display = "block";
77
- }
78
- if (this.minimizedIframe) {
79
- this.minimizedIframe.style.display = "block";
80
- }
81
- }
74
+
82
75
 
83
76
  createChatContainer() {
84
77
  const chatContainer = document.createElement('div');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embeddedaichatux",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
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
5
  "main": "EmbeddedChat.js",
6
6
  "scripts": {
@@ -1,4 +0,0 @@
1
- // <autogenerated />
2
- using System;
3
- using System.Reflection;
4
- [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
@@ -1,23 +0,0 @@
1
- //------------------------------------------------------------------------------
2
- // <auto-generated>
3
- // This code was generated by a tool.
4
- // Runtime Version:4.0.30319.42000
5
- //
6
- // Changes to this file may cause incorrect behavior and will be lost if
7
- // the code is regenerated.
8
- // </auto-generated>
9
- //------------------------------------------------------------------------------
10
-
11
- using System;
12
- using System.Reflection;
13
-
14
- [assembly: System.Reflection.AssemblyCompanyAttribute("AIChat.npm")]
15
- [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16
- [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18
- [assembly: System.Reflection.AssemblyProductAttribute("AIChat.npm")]
19
- [assembly: System.Reflection.AssemblyTitleAttribute("AIChat.npm")]
20
- [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21
-
22
- // Generated by the MSBuild WriteCodeFragment class.
23
-
@@ -1 +0,0 @@
1
- ab3110831e63c044b8c5f7f8e204a490bedaa709
@@ -1,17 +0,0 @@
1
- is_global = true
2
- build_property.TargetFramework = net7.0
3
- build_property.TargetPlatformMinVersion =
4
- build_property.UsingMicrosoftNETSdkWeb = true
5
- build_property.ProjectTypeGuids =
6
- build_property.InvariantGlobalization =
7
- build_property.PlatformNeutralAssembly =
8
- build_property.EnforceExtendedAnalyzerRules =
9
- build_property._SupportedPlatformList = Linux,macOS,Windows
10
- build_property.RootNamespace = AIChat.npm
11
- build_property.RootNamespace = AIChat.npm
12
- build_property.ProjectDir = C:\Git\AIChat\AIChat.npm\
13
- build_property.RazorLangVersion = 7.0
14
- build_property.SupportLocalizedComponentNames =
15
- build_property.GenerateRazorMetadataSourceChecksumAttributes =
16
- build_property.MSBuildProjectDirectory = C:\Git\AIChat\AIChat.npm
17
- build_property._RazorSourceGeneratorDebug =
@@ -1,17 +0,0 @@
1
- // <auto-generated/>
2
- global using global::Microsoft.AspNetCore.Builder;
3
- global using global::Microsoft.AspNetCore.Hosting;
4
- global using global::Microsoft.AspNetCore.Http;
5
- global using global::Microsoft.AspNetCore.Routing;
6
- global using global::Microsoft.Extensions.Configuration;
7
- global using global::Microsoft.Extensions.DependencyInjection;
8
- global using global::Microsoft.Extensions.Hosting;
9
- global using global::Microsoft.Extensions.Logging;
10
- global using global::System;
11
- global using global::System.Collections.Generic;
12
- global using global::System.IO;
13
- global using global::System.Linq;
14
- global using global::System.Net.Http;
15
- global using global::System.Net.Http.Json;
16
- global using global::System.Threading;
17
- global using global::System.Threading.Tasks;