@blotoutio/providers-shop-gpt-sdk 0.68.1 → 0.68.2
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/index.cjs.js +6 -4
- package/index.js +6 -4
- package/index.mjs +6 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -317,6 +317,7 @@ const shopGPTStyles = () => i$2 `
|
|
317
317
|
left: 0;
|
318
318
|
height: 100%;
|
319
319
|
width: 100%;
|
320
|
+
z-index: 2147483647;
|
320
321
|
}
|
321
322
|
|
322
323
|
::-webkit-scrollbar {
|
@@ -1096,6 +1097,10 @@ let ShopGPT = class ShopGPT extends s {
|
|
1096
1097
|
this.chatWindowElement.style.maxHeight = 'calc(100vh - 221px)';
|
1097
1098
|
}
|
1098
1099
|
}
|
1100
|
+
async onSubmit(e) {
|
1101
|
+
var _a;
|
1102
|
+
await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim());
|
1103
|
+
}
|
1099
1104
|
render() {
|
1100
1105
|
return x `
|
1101
1106
|
<div class="container">
|
@@ -1330,10 +1335,7 @@ let ShopGPT = class ShopGPT extends s {
|
|
1330
1335
|
return x `
|
1331
1336
|
<div class="chatbot-section">
|
1332
1337
|
${this.chatWindow()} ${this.predefinedPrompts()}
|
1333
|
-
<form
|
1334
|
-
class="chat-input"
|
1335
|
-
@submit=${async (e) => { var _a; return await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim()); }}
|
1336
|
-
>
|
1338
|
+
<form class="chat-input" @submit=${this.onSubmit}>
|
1337
1339
|
<input
|
1338
1340
|
type="text"
|
1339
1341
|
.value=${this.userMessage}
|
package/index.js
CHANGED
@@ -318,6 +318,7 @@ var ProvidersShopGptSdk = (function () {
|
|
318
318
|
left: 0;
|
319
319
|
height: 100%;
|
320
320
|
width: 100%;
|
321
|
+
z-index: 2147483647;
|
321
322
|
}
|
322
323
|
|
323
324
|
::-webkit-scrollbar {
|
@@ -1097,6 +1098,10 @@ var ProvidersShopGptSdk = (function () {
|
|
1097
1098
|
this.chatWindowElement.style.maxHeight = 'calc(100vh - 221px)';
|
1098
1099
|
}
|
1099
1100
|
}
|
1101
|
+
async onSubmit(e) {
|
1102
|
+
var _a;
|
1103
|
+
await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim());
|
1104
|
+
}
|
1100
1105
|
render() {
|
1101
1106
|
return x `
|
1102
1107
|
<div class="container">
|
@@ -1331,10 +1336,7 @@ var ProvidersShopGptSdk = (function () {
|
|
1331
1336
|
return x `
|
1332
1337
|
<div class="chatbot-section">
|
1333
1338
|
${this.chatWindow()} ${this.predefinedPrompts()}
|
1334
|
-
<form
|
1335
|
-
class="chat-input"
|
1336
|
-
@submit=${async (e) => { var _a; return await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim()); }}
|
1337
|
-
>
|
1339
|
+
<form class="chat-input" @submit=${this.onSubmit}>
|
1338
1340
|
<input
|
1339
1341
|
type="text"
|
1340
1342
|
.value=${this.userMessage}
|
package/index.mjs
CHANGED
@@ -315,6 +315,7 @@ const shopGPTStyles = () => i$2 `
|
|
315
315
|
left: 0;
|
316
316
|
height: 100%;
|
317
317
|
width: 100%;
|
318
|
+
z-index: 2147483647;
|
318
319
|
}
|
319
320
|
|
320
321
|
::-webkit-scrollbar {
|
@@ -1094,6 +1095,10 @@ let ShopGPT = class ShopGPT extends s {
|
|
1094
1095
|
this.chatWindowElement.style.maxHeight = 'calc(100vh - 221px)';
|
1095
1096
|
}
|
1096
1097
|
}
|
1098
|
+
async onSubmit(e) {
|
1099
|
+
var _a;
|
1100
|
+
await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim());
|
1101
|
+
}
|
1097
1102
|
render() {
|
1098
1103
|
return x `
|
1099
1104
|
<div class="container">
|
@@ -1328,10 +1333,7 @@ let ShopGPT = class ShopGPT extends s {
|
|
1328
1333
|
return x `
|
1329
1334
|
<div class="chatbot-section">
|
1330
1335
|
${this.chatWindow()} ${this.predefinedPrompts()}
|
1331
|
-
<form
|
1332
|
-
class="chat-input"
|
1333
|
-
@submit=${async (e) => { var _a; return await this.sendMessageToServer(e, (_a = this.userMessage) === null || _a === void 0 ? void 0 : _a.trim()); }}
|
1334
|
-
>
|
1336
|
+
<form class="chat-input" @submit=${this.onSubmit}>
|
1335
1337
|
<input
|
1336
1338
|
type="text"
|
1337
1339
|
.value=${this.userMessage}
|