@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.
- package/build/ft-reader-feedback.js +14 -14
- package/build/ft-reader-feedback.light.js +55 -55
- package/build/ft-reader-feedback.min.js +40 -40
- package/build/ft-reader-feedback.styles.js +2 -2
- package/build/utils/InDesignerFeedbackComponentMessages.js +2 -2
- package/build/utils/IntegratedFeedbackComponentMessages.js +1 -1
- package/build/utils/ServerMessages.js +1 -1
- package/build/utils/events.js +5 -5
- package/build/utils/mail.js +4 -4
- package/package.json +6 -6
|
@@ -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,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");
|
package/build/utils/events.js
CHANGED
|
@@ -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
|
}
|
package/build/utils/mail.js
CHANGED
|
@@ -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.
|
|
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.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "2.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "2.1.
|
|
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.
|
|
28
|
+
"@fluid-topics/public-api": "1.0.136"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "77e9f03085f977dde887e175b964bf66b862253f"
|
|
31
31
|
}
|