@product7/product7-js 0.4.6 → 0.4.8
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/dist/product7-js.js
CHANGED
|
@@ -4215,7 +4215,7 @@
|
|
|
4215
4215
|
.messenger-prechat-form {
|
|
4216
4216
|
display: flex;
|
|
4217
4217
|
flex-direction: column;
|
|
4218
|
-
gap: var(--spacing-
|
|
4218
|
+
gap: var(--spacing-2);
|
|
4219
4219
|
}
|
|
4220
4220
|
|
|
4221
4221
|
.messenger-prechat-field {
|
|
@@ -4226,7 +4226,7 @@
|
|
|
4226
4226
|
|
|
4227
4227
|
.messenger-prechat-input {
|
|
4228
4228
|
width: 100%;
|
|
4229
|
-
padding: var(--spacing-
|
|
4229
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
4230
4230
|
border: 1px solid var(--msg-border);
|
|
4231
4231
|
border-radius: var(--radius-md);
|
|
4232
4232
|
font-size: var(--font-size-sm);
|
|
@@ -4256,7 +4256,7 @@
|
|
|
4256
4256
|
align-items: center;
|
|
4257
4257
|
justify-content: center;
|
|
4258
4258
|
gap: var(--spacing-2);
|
|
4259
|
-
padding: var(--spacing-
|
|
4259
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
4260
4260
|
border-radius: var(--radius-md);
|
|
4261
4261
|
font-size: var(--font-size-sm);
|
|
4262
4262
|
font-weight: var(--font-weight-medium);
|
|
@@ -13340,16 +13340,16 @@
|
|
|
13340
13340
|
};
|
|
13341
13341
|
|
|
13342
13342
|
try {
|
|
13343
|
-
if (this.surveyOptions.onSubmit) {
|
|
13344
|
-
this.surveyOptions.onSubmit(response);
|
|
13345
|
-
}
|
|
13346
|
-
|
|
13347
13343
|
const surveyId =
|
|
13348
13344
|
this.surveyOptions.surveyId || `local_${type}_${Date.now()}`;
|
|
13349
13345
|
await this.apiService.submitSurveyResponse(surveyId, responseData);
|
|
13350
13346
|
|
|
13351
13347
|
this.sdk.eventBus.emit('survey:submitted', { widget: this, response });
|
|
13352
13348
|
this._showThankYouScreen();
|
|
13349
|
+
|
|
13350
|
+
if (this.surveyOptions.onSubmit) {
|
|
13351
|
+
this.surveyOptions.onSubmit(response);
|
|
13352
|
+
}
|
|
13353
13353
|
} catch (error) {
|
|
13354
13354
|
console.error('[SurveyWidget] Failed to submit survey:', error);
|
|
13355
13355
|
this._showError('Something went wrong. Please try again.');
|