@fluid-topics/ft-reader-feedback 2.1.18 → 2.1.20

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.
@@ -1,8 +1,8 @@
1
1
  import { css } from "lit";
2
- import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
2
+ import { designSystemVariables, FtCssVariableFactory, setVariable, } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtButtonCssVariables } from "@fluid-topics/ft-button/build/ft-button.styles";
4
4
  import { FtSwitchCssVariables } from "@fluid-topics/ft-switch/build/ft-switch.styles";
5
- import { FtTypographyTitleCssVariables, FtTypographyTitleDenseCssVariables } from "@fluid-topics/ft-typography/build/ft-typography.styles";
5
+ import { FtTypographyTitleCssVariables, FtTypographyTitleDenseCssVariables, } from "@fluid-topics/ft-typography/build/ft-typography.styles";
6
6
  export const FtReaderFeedbackCssVariables = {
7
7
  feedbackInputMinWidth: FtCssVariableFactory.create("--ft-reader-feedback-input-min-width", "", "SIZE", "300px"),
8
8
  ratedDateColor: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceMedium, "Design system"),
@@ -1,5 +1,5 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n";
2
2
  export const designer = I18nMessageContext.build("inDesignerFeedbackComponent");
3
3
  export const defaultDesignerMessages = {
4
- feedbackAndRatingDisabledInEditor: "Feedback and ratings performed here are not taken into account."
4
+ feedbackAndRatingDisabledInEditor: "Feedback and ratings performed here are not taken into account.",
5
5
  };
@@ -1,4 +1,4 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n";
2
2
  export const feedback = I18nMessageContext.build("integratedFeedbackComponent");
3
3
  export const defaultMessages = {
4
4
  starsRating: "{0} stars",
@@ -1,2 +1,2 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n";
2
2
  export const server = I18nMessageContext.fromGwt("server");
@@ -1,7 +1,7 @@
1
1
  export class SendFeedbackEvent extends CustomEvent {
2
2
  constructor(detail) {
3
3
  super("send-feedback", {
4
- detail
4
+ detail,
5
5
  });
6
6
  }
7
7
  }
@@ -10,7 +10,7 @@ export class OpenTopicFeedbackDrawerEvent extends CustomEvent {
10
10
  super("ft-reader-topic-feedback", {
11
11
  composed: true,
12
12
  bubbles: true,
13
- detail
13
+ detail,
14
14
  });
15
15
  }
16
16
  }
@@ -19,7 +19,7 @@ export class OpenMapFeedbackDrawerEvent extends CustomEvent {
19
19
  super("ft-reader-feedback", {
20
20
  composed: true,
21
21
  bubbles: true,
22
- detail
22
+ detail,
23
23
  });
24
24
  }
25
25
  }
@@ -28,7 +28,7 @@ export class SendMailerTopicFeedbackEvent extends CustomEvent {
28
28
  super("ft-reader-mailer-topic-feedback", {
29
29
  composed: true,
30
30
  bubbles: true,
31
- detail: { topic }
31
+ detail: { topic },
32
32
  });
33
33
  }
34
34
  }
@@ -36,7 +36,7 @@ export class SendMailerMapFeedbackEvent extends CustomEvent {
36
36
  constructor() {
37
37
  super("ft-reader-mailer-map-feedback", {
38
38
  composed: true,
39
- bubbles: true
39
+ bubbles: true,
40
40
  });
41
41
  }
42
42
  }
@@ -14,15 +14,15 @@ export class FeedbackMailLinkBuilder {
14
14
  this.configuration = configuration;
15
15
  this.isAuthenticated = isAuthenticated;
16
16
  this.subjectMetadata = this.filterMetadata(metadata, configuration.subjectMetadataIds)
17
- .map(m => "[" + m.values[m.values.length - 1] + "]")
17
+ .map((m) => "[" + m.values[m.values.length - 1] + "]")
18
18
  .join("");
19
19
  this.bodyMetadata = this.filterMetadata(metadata, (_a = configuration.bodyMetadataIds) !== null && _a !== void 0 ? _a : [])
20
- .map(m => "[" + m.values.join(", ") + "]")
20
+ .map((m) => "[" + m.values.join(", ") + "]")
21
21
  .join(" ");
22
22
  }
23
23
  filterMetadata(metadata, metadataIds) {
24
- return metadataIds.map(key => metadata.find(m => m.key === key))
25
- .filter(m => m != null && m.values.length > 0);
24
+ return metadataIds.map((key) => metadata.find((m) => m.key === key))
25
+ .filter((m) => m != null && m.values.length > 0);
26
26
  }
27
27
  shouldUseMailer() {
28
28
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "2.1.18",
23
- "@fluid-topics/ft-reader-context": "2.1.18",
24
- "@fluid-topics/ft-wc-utils": "2.1.18",
22
+ "@fluid-topics/ft-app-context": "2.1.20",
23
+ "@fluid-topics/ft-reader-context": "2.1.20",
24
+ "@fluid-topics/ft-wc-utils": "2.1.20",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluid-topics/public-api": "1.0.132"
28
+ "@fluid-topics/public-api": "1.0.136"
29
29
  },
30
- "gitHead": "2effe252f9ab22ede85f961b8464ec8aa4d27870"
30
+ "gitHead": "77e9f03085f977dde887e175b964bf66b862253f"
31
31
  }