@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.
@@ -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 { I18nProperty } from "@fluid-topics/ft-i18n";
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: I18nProperty;
13
- ratingSectionTitle: I18nProperty;
14
- feedbackSectionTitle: I18nProperty;
15
- dichotomousRatingSectionTitle: I18nProperty;
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
- isUsingMailLink ? this.onMailerFeedbackSent() : this.sendFeedback();
240
+ if (isUsingMailLink) {
241
+ this.onMailerFeedbackSent();
242
+ }
243
+ else {
244
+ this.sendFeedback();
245
+ }
241
246
  }
242
247
  validFromEmail() {
243
248
  var _a, _b, _c;