@fluid-topics/ft-reader-feedback 1.1.32 → 1.1.34
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/build/ft-reader-feedback.d.ts +5 -5
- package/build/ft-reader-feedback.js +6 -1
- package/build/ft-reader-feedback.light.js +50 -50
- package/build/ft-reader-feedback.min.js +50 -50
- package/build/utils/events.d.ts +4 -2
- package/build/utils/events.js +2 -2
- package/build/utils/mail.d.ts +2 -1
- package/build/utils/mail.js +10 -4
- package/package.json +6 -6
|
@@ -6,13 +6,13 @@ import type { FtPublicationRatingSummary, FtSession } from "@fluid-topics/public
|
|
|
6
6
|
import { FtReaderFeedbackConfiguration } from "@fluid-topics/public-api";
|
|
7
7
|
import { FtTextArea } from "@fluid-topics/ft-text-area";
|
|
8
8
|
import { FtIconVariants } from "@fluid-topics/ft-icon/build/ft-icon.properties";
|
|
9
|
-
import {
|
|
9
|
+
import { I18nPropertyInit } from "@fluid-topics/ft-i18n";
|
|
10
10
|
import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
|
|
11
11
|
export interface FeedbackI18nProperties {
|
|
12
|
-
feedbackMainTitle:
|
|
13
|
-
ratingSectionTitle:
|
|
14
|
-
feedbackSectionTitle:
|
|
15
|
-
dichotomousRatingSectionTitle:
|
|
12
|
+
feedbackMainTitle: I18nPropertyInit;
|
|
13
|
+
ratingSectionTitle: I18nPropertyInit;
|
|
14
|
+
feedbackSectionTitle: I18nPropertyInit;
|
|
15
|
+
dichotomousRatingSectionTitle: I18nPropertyInit;
|
|
16
16
|
}
|
|
17
17
|
declare const FtReaderFeedback_base: typeof FtReaderComponent & import("@fluid-topics/ft-wc-utils").Constructor<import("@fluid-topics/ft-i18n").FtLitElementWithI18nInterface>;
|
|
18
18
|
export declare class FtReaderFeedback extends FtReaderFeedback_base implements FtReaderFeedbackProperties {
|
|
@@ -237,7 +237,12 @@ class FtReaderFeedback extends withI18n(FtReaderComponent) {
|
|
|
237
237
|
}
|
|
238
238
|
onFormSubmitEvent(event, isUsingMailLink) {
|
|
239
239
|
event.preventDefault();
|
|
240
|
-
|
|
240
|
+
if (isUsingMailLink) {
|
|
241
|
+
this.onMailerFeedbackSent();
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
this.sendFeedback();
|
|
245
|
+
}
|
|
241
246
|
}
|
|
242
247
|
validFromEmail() {
|
|
243
248
|
var _a, _b, _c;
|