@fluid-topics/ft-announcement 2.0.14 → 2.0.16

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.
@@ -4,10 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, html } from "lit";
7
+ import { css, html, } from "lit";
8
8
  import { FtAnnouncementComponent } from "../models/ft-announcement-component";
9
9
  import { property } from "lit/decorators.js";
10
- class FtAnnouncementLink extends FtAnnouncementComponent {
10
+ export class FtAnnouncementLink extends FtAnnouncementComponent {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  this.target = "_self";
@@ -35,4 +35,3 @@ FtAnnouncementLink.styles = css `
35
35
  __decorate([
36
36
  property()
37
37
  ], FtAnnouncementLink.prototype, "target", void 0);
38
- export { FtAnnouncementLink };
@@ -1,15 +1,15 @@
1
1
  import { html } from "lit";
2
2
  import { FtAnnouncementComponent } from "../models/ft-announcement-component";
3
- import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
4
- class FtAnnouncementText extends FtAnnouncementComponent {
3
+ import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
4
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
5
+ export class FtAnnouncementText extends FtAnnouncementComponent {
5
6
  render() {
6
7
  var _a;
7
8
  return html `
8
- <ft-typography variant="${FtTypographyVariants.body1}" part="text">${(_a = this.announcement) === null || _a === void 0 ? void 0 : _a.text}</ft-typography>
9
+ <ft-typography variant="${FtTypographyVariants.body1}" part="text">${unsafeHTML((_a = this.announcement) === null || _a === void 0 ? void 0 : _a.text)}</ft-typography>
9
10
  `;
10
11
  }
11
12
  }
12
13
  FtAnnouncementText.elementDefinitions = {
13
14
  "ft-typography": FtTypography,
14
15
  };
15
- export { FtAnnouncementText };
@@ -1,15 +1,15 @@
1
1
  import { html } from "lit";
2
2
  import { FtAnnouncementComponent } from "../models/ft-announcement-component";
3
- import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
4
- class FtAnnouncementTitle extends FtAnnouncementComponent {
3
+ import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
4
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
5
+ export class FtAnnouncementTitle extends FtAnnouncementComponent {
5
6
  render() {
6
7
  var _a;
7
8
  return html `
8
- <ft-typography variant="${FtTypographyVariants.title}" part="title">${(_a = this.announcement) === null || _a === void 0 ? void 0 : _a.title}</ft-typography>
9
+ <ft-typography variant="${FtTypographyVariants.title}" part="title">${unsafeHTML((_a = this.announcement) === null || _a === void 0 ? void 0 : _a.title)}</ft-typography>
9
10
  `;
10
11
  }
11
12
  }
12
13
  FtAnnouncementTitle.elementDefinitions = {
13
14
  "ft-typography": FtTypography,
14
15
  };
15
- export { FtAnnouncementTitle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-announcement",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "Components related to announcements",
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-wc-utils": "2.0.14",
23
- "@fluid-topics/public-api": "1.0.119",
22
+ "@fluid-topics/ft-wc-utils": "2.0.16",
23
+ "@fluid-topics/public-api": "1.0.120",
24
24
  "@lit/context": "1.1.6",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluid-topics/ft-wc-test-utils": "2.0.14"
28
+ "@fluid-topics/ft-wc-test-utils": "2.0.16"
29
29
  },
30
- "gitHead": "4c50289bffd5b4b58542856830adc1399b93a70f"
30
+ "gitHead": "a972b95acf70b2bfab648ae99cec9d9cbe77c86f"
31
31
  }