@limetech/lime-elements 37.17.1 → 37.17.3
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/CHANGELOG.md +20 -0
- package/dist/cjs/limel-markdown.cjs.entry.js +3 -6
- package/dist/cjs/limel-markdown.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -1
- package/dist/collection/components/markdown/markdown-parser.js +4 -6
- package/dist/collection/components/markdown/markdown-parser.js.map +1 -1
- package/dist/collection/components/markdown/markdown.css +61 -31
- package/dist/collection/components/text-editor/text-editor.css +61 -31
- package/dist/esm/limel-markdown.entry.js +3 -6
- package/dist/esm/limel-markdown.entry.js.map +1 -1
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/limel-text-editor.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-a44742d3.entry.js → p-6a0eac83.entry.js} +2 -2
- package/dist/lime-elements/{p-a44742d3.entry.js.map → p-6a0eac83.entry.js.map} +1 -1
- package/dist/lime-elements/{p-bc582bc6.entry.js → p-ad6b52f8.entry.js} +2 -2
- package/dist/lime-elements/{p-bc582bc6.entry.js.map → p-ad6b52f8.entry.js.map} +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [37.17.3](https://github.com/Lundalogik/lime-elements/compare/v37.17.2...v37.17.3) (2024-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **markdown:** fix sanitization accidentally removing images ([c452f30](https://github.com/Lundalogik/lime-elements/commit/c452f3076e1c7dbe36539adb83d684c046f86062)), closes [Lundalogik/limepkg-email#668](https://github.com/Lundalogik/limepkg-email/issues/668)
|
|
8
|
+
|
|
9
|
+
## [37.17.2](https://github.com/Lundalogik/lime-elements/compare/v37.17.1...v37.17.2) (2024-04-15)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* **markdown:** balance headings that are multiple lines ([9d5d19d](https://github.com/Lundalogik/lime-elements/commit/9d5d19d64260976d6a2706b05d5cd8b3b425f748))
|
|
16
|
+
* **markdown:** better heading styles ([f21bfe6](https://github.com/Lundalogik/lime-elements/commit/f21bfe61c8e0a98361fc7055a9d2003c2acda242))
|
|
17
|
+
* **markdown:** don't hard-code links' `font-size` ([360ef30](https://github.com/Lundalogik/lime-elements/commit/360ef308003f6ef8d6c43cc55f2c0e35d38e83f4))
|
|
18
|
+
* **markdown:** make it possible to see bold text in headings ([d5887c3](https://github.com/Lundalogik/lime-elements/commit/d5887c38638bdd2ab7fda09ee5508f597da15b03))
|
|
19
|
+
* **markdown:** prevent overflowing text caused by long words ([195d2b1](https://github.com/Lundalogik/lime-elements/commit/195d2b19453f58bd18d167314a7f03c4605de330))
|
|
20
|
+
|
|
1
21
|
## [37.17.1](https://github.com/Lundalogik/lime-elements/compare/v37.17.0...v37.17.1) (2024-04-12)
|
|
2
22
|
|
|
3
23
|
|
|
@@ -43698,12 +43698,9 @@ async function markdownToHTML(text, options) {
|
|
|
43698
43698
|
.use(remarkRehype, { allowDangerousHtml: true })
|
|
43699
43699
|
.use(rehypeExternalLinks, { target: '_blank' })
|
|
43700
43700
|
.use(rehypeRaw)
|
|
43701
|
-
.use(rehypeSanitize, {
|
|
43701
|
+
.use(rehypeSanitize, Object.assign(Object.assign({}, defaultSchema), {
|
|
43702
43702
|
// Allow the `style` attribute on all elements
|
|
43703
|
-
attributes: {
|
|
43704
|
-
'*': ['style'],
|
|
43705
|
-
},
|
|
43706
|
-
})
|
|
43703
|
+
attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { '*': ['style'] }) }))
|
|
43707
43704
|
.use(() => {
|
|
43708
43705
|
return (tree) => {
|
|
43709
43706
|
// Run the sanitizeStyle function on all elements, to sanitize
|
|
@@ -43716,7 +43713,7 @@ async function markdownToHTML(text, options) {
|
|
|
43716
43713
|
return file.toString();
|
|
43717
43714
|
}
|
|
43718
43715
|
|
|
43719
|
-
const markdownCss = "@charset \"UTF-8\";code{font-family:ui-monospace, \"Cascadia Code\", \"Source Code Pro\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace;font-size:0.8125rem;letter-spacing:-0.0125rem;color:rgb(var(--contrast-1300));-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;display:inline-block;border-radius:0.25rem;padding:0.03125rem 0.25rem;background-color:rgb(var(--contrast-600))}pre>code{display:block;margin:0.5rem 0;padding:0.5rem 0.75rem;overflow:auto;white-space:pre-wrap}h1{font-size:1.
|
|
43716
|
+
const markdownCss = "@charset \"UTF-8\";code{font-family:ui-monospace, \"Cascadia Code\", \"Source Code Pro\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace;font-size:0.8125rem;letter-spacing:-0.0125rem;color:rgb(var(--contrast-1300));-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;display:inline-block;border-radius:0.25rem;padding:0.03125rem 0.25rem;background-color:rgb(var(--contrast-600))}pre>code{display:block;margin:0.5rem 0;padding:0.5rem 0.75rem;overflow:auto;white-space:pre-wrap}h1{font-size:1.5rem}h2{font-size:1.25rem}h3{font-size:1.125rem}h4{font-size:1rem}h5{font-size:0.875rem}h6{font-size:0.75rem}h1,h2{margin-top:0.5rem;margin-bottom:0.5rem;letter-spacing:-0.03125rem;font-weight:500}h3,h4{margin-top:0.75rem;margin-bottom:0.25rem;font-weight:600}h5,h6{margin-top:0.5rem;margin-bottom:0.125rem;font-weight:600}h1,h2,h3,h4,h5,h6{word-break:break-word;hyphens:auto;-webkit-hyphens:auto}:not([contenteditable=true]) h1,:not([contenteditable=true]) h2,:not([contenteditable=true]) h3,:not([contenteditable=true]) h4,:not([contenteditable=true]) h5,:not([contenteditable=true]) h6{text-wrap:balance}[contenteditable=true] h1,[contenteditable=true] h2,[contenteditable=true] h3,[contenteditable=true] h4,[contenteditable=true] h5,[contenteditable=true] h6{text-wrap:initial}:host(limel-markdown.truncate-paragraphs) p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}p,li{font-size:0.875rem;word-break:break-word;hyphens:auto;-webkit-hyphens:auto}a{word-break:break-all}p{margin-top:0;margin-bottom:0.5rem}p:only-child{margin-bottom:0}a{transition:color 0.2s ease;color:var(--markdown-hyperlink-color, rgb(var(--color-blue-dark)));text-decoration:none}a:hover{color:var(--markdown-hyperlink-color--hovered, rgb(var(--color-blue-default)))}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--contrast-500))}ul{list-style:none}ul li{position:relative;margin-left:0.75rem}ul li:before{content:\"\";position:absolute;left:-0.5rem;top:0.5rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--contrast-700));display:block}ol{margin-top:0.25rem;padding-left:1rem}ul{margin-top:0.25rem;padding-left:0}ul ul,ul ol,ol ol,ol ul{margin-left:0}li{margin-bottom:0.25rem}:host(limel-markdown:not(.no-table-styles)) table{table-layout:auto;min-width:100%;border-collapse:collapse;border-spacing:0;background:transparent;margin:0.75rem 0;border:1px solid rgb(var(--contrast-400))}:host(limel-markdown:not(.no-table-styles)) th,:host(limel-markdown:not(.no-table-styles)) td{text-align:left;vertical-align:top;transition:background-color 0.2s ease;font-size:0.875rem}:host(limel-markdown:not(.no-table-styles)) td{padding:0.5rem 0.375rem 0.75rem 0.375rem}:host(limel-markdown:not(.no-table-styles)) tr th{background-color:rgb(var(--contrast-400));padding:0.25rem 0.375rem;font-weight:normal}:host(limel-markdown:not(.no-table-styles)) tr th:only-child{text-align:center}:host(limel-markdown:not(.no-table-styles)) tbody tr:nth-child(odd) td{background-color:rgb(var(--contrast-200))}:host(limel-markdown:not(.no-table-styles)) tbody tr:hover td{background-color:rgb(var(--contrast-300))}blockquote{position:relative;font-weight:100;font-size:0.875rem;max-width:100%;line-height:1.4;margin:0;padding:0.5rem 1.25rem;border-radius:0.05rem 0.75rem;background-color:rgb(var(--contrast-300))}blockquote:before,blockquote:after{position:absolute;font-size:2.75rem;opacity:0.4}blockquote:before{content:\"“\";left:0;top:-0.75rem}blockquote:after{content:\"”\";right:0;bottom:-2rem}dl{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;margin-bottom:2rem;border:1px solid rgb(var(--contrast-400));border-radius:0.375rem;background-color:rgb(var(--contrast-200))}dl dt,dl dd{padding:0.375rem 0.5rem;font-size:0.875rem;margin:0}dl dt:nth-of-type(even),dl dd:nth-of-type(even){background-color:rgb(var(--contrast-300))}dl dt:first-child{border-top-left-radius:0.375rem}dl dt:last-child{border-bottom-left-radius:0.375rem}dl dd:first-child{border-top-right-radius:0.375rem}dl dd:last-child{border-bottom-right-radius:0.375rem}hr{border-top:1px solid rgb(var(--contrast-700))}img{max-width:100%}";
|
|
43720
43717
|
|
|
43721
43718
|
const Markdown = class {
|
|
43722
43719
|
constructor(hostRef) {
|