@vaadin/markdown 25.2.0-alpha1 → 25.2.0-alpha11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/markdown",
3
- "version": "25.2.0-alpha1",
3
+ "version": "25.2.0-alpha11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,23 +35,23 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/component-base": "25.2.0-alpha1",
39
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha1",
40
- "dompurify": "^3.3.1",
38
+ "@vaadin/component-base": "25.2.0-alpha11",
39
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha11",
40
+ "dompurify": "^3.4.0",
41
41
  "lit": "^3.0.0",
42
42
  "marked": "^16.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.2.0-alpha1",
46
- "@vaadin/chai-plugins": "25.2.0-alpha1",
47
- "@vaadin/test-runner-commands": "25.2.0-alpha1",
45
+ "@vaadin/aura": "25.2.0-alpha11",
46
+ "@vaadin/chai-plugins": "25.2.0-alpha11",
47
+ "@vaadin/test-runner-commands": "25.2.0-alpha11",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha1"
49
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha11"
50
50
  },
51
51
  "customElements": "custom-elements.json",
52
52
  "web-types": [
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "866f813f89655a351cbd25328eba1fcb317e267d"
56
+ "gitHead": "fdc37e932709f95491a027aeb2090911cb7528c6"
57
57
  }
@@ -4,7 +4,7 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import DOMPurify from 'dompurify';
7
- import { marked } from 'marked';
7
+ import { parse } from 'marked';
8
8
 
9
9
  /**
10
10
  * Synchronizes the attributes of a target element with those of a source element.
@@ -79,7 +79,7 @@ function synchronizeNodes(targetNode, sourceNode) {
79
79
  */
80
80
  export function renderMarkdownToElement(element, markdown) {
81
81
  const template = document.createElement('template');
82
- template.innerHTML = DOMPurify.sanitize(marked.parse(markdown || ''), {
82
+ template.innerHTML = DOMPurify.sanitize(parse(markdown || ''), {
83
83
  CUSTOM_ELEMENT_HANDLING: {
84
84
  tagNameCheck: (_tagName) => true,
85
85
  },
@@ -26,9 +26,6 @@ import { markdownSlotStyles } from './styles/vaadin-markdown-base-styles.js';
26
26
  *
27
27
  * @customElement vaadin-markdown
28
28
  * @extends HTMLElement
29
- * @mixes ElementMixin
30
- * @mixes ThemableMixin
31
- * @mixes SlotStylesMixin
32
29
  */
33
30
  class Markdown extends SlotStylesMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
34
31
  static get is() {
@@ -56,7 +53,6 @@ class Markdown extends SlotStylesMixin(ElementMixin(ThemableMixin(PolylitMixin(L
56
53
  return {
57
54
  /**
58
55
  * The Markdown content.
59
- *
60
56
  */
61
57
  content: {
62
58
  type: String,
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/markdown",
4
- "version": "25.2.0-alpha1",
4
+ "version": "25.2.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,9 +15,7 @@
15
15
  "description": "The Markdown content.",
16
16
  "value": {
17
17
  "type": [
18
- "string",
19
- "null",
20
- "undefined"
18
+ "string"
21
19
  ]
22
20
  }
23
21
  },
@@ -40,9 +38,7 @@
40
38
  "description": "The Markdown content.",
41
39
  "value": {
42
40
  "type": [
43
- "string",
44
- "null",
45
- "undefined"
41
+ "string"
46
42
  ]
47
43
  }
48
44
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/markdown",
4
- "version": "25.2.0-alpha1",
4
+ "version": "25.2.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {