@limetech/lime-elements 38.1.4 → 38.1.5
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 +10 -0
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
- package/dist/collection/components/markdown/markdown.css +77 -0
- package/dist/collection/components/markdown/markdown.js +1 -0
- package/dist/collection/components/markdown/markdown.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.css +82 -0
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-markdown.entry.js.map +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-3451ab63.entry.js → p-261cc6f1.entry.js} +2 -2
- package/dist/lime-elements/p-261cc6f1.entry.js.map +1 -0
- package/dist/lime-elements/p-fdfd3e5a.entry.js +2 -0
- package/dist/lime-elements/{p-ca0fabc2.entry.js.map → p-fdfd3e5a.entry.js.map} +1 -1
- package/dist/types/components/markdown/markdown.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +2 -2
- package/dist/lime-elements/p-3451ab63.entry.js.map +0 -1
- package/dist/lime-elements/p-ca0fabc2.entry.js +0 -2
|
@@ -12,6 +12,7 @@ import { CustomElementDefinition } from '../../global/shared-types/custom-elemen
|
|
|
12
12
|
* @exampleComponent limel-example-markdown-footnotes
|
|
13
13
|
* @exampleComponent limel-example-markdown-tables
|
|
14
14
|
* @exampleComponent limel-example-markdown-html
|
|
15
|
+
* @exampleComponent limel-example-markdown-keys
|
|
15
16
|
* @exampleComponent limel-example-markdown-blockquotes
|
|
16
17
|
* @exampleComponent limel-example-markdown-horizontal-rule
|
|
17
18
|
* @exampleComponent limel-example-markdown-composite
|
|
@@ -1879,6 +1879,7 @@ export namespace Components {
|
|
|
1879
1879
|
* @exampleComponent limel-example-markdown-footnotes
|
|
1880
1880
|
* @exampleComponent limel-example-markdown-tables
|
|
1881
1881
|
* @exampleComponent limel-example-markdown-html
|
|
1882
|
+
* @exampleComponent limel-example-markdown-keys
|
|
1882
1883
|
* @exampleComponent limel-example-markdown-blockquotes
|
|
1883
1884
|
* @exampleComponent limel-example-markdown-horizontal-rule
|
|
1884
1885
|
* @exampleComponent limel-example-markdown-composite
|
|
@@ -4011,6 +4012,7 @@ declare global {
|
|
|
4011
4012
|
* @exampleComponent limel-example-markdown-footnotes
|
|
4012
4013
|
* @exampleComponent limel-example-markdown-tables
|
|
4013
4014
|
* @exampleComponent limel-example-markdown-html
|
|
4015
|
+
* @exampleComponent limel-example-markdown-keys
|
|
4014
4016
|
* @exampleComponent limel-example-markdown-blockquotes
|
|
4015
4017
|
* @exampleComponent limel-example-markdown-horizontal-rule
|
|
4016
4018
|
* @exampleComponent limel-example-markdown-composite
|
|
@@ -6521,6 +6523,7 @@ declare namespace LocalJSX {
|
|
|
6521
6523
|
* @exampleComponent limel-example-markdown-footnotes
|
|
6522
6524
|
* @exampleComponent limel-example-markdown-tables
|
|
6523
6525
|
* @exampleComponent limel-example-markdown-html
|
|
6526
|
+
* @exampleComponent limel-example-markdown-keys
|
|
6524
6527
|
* @exampleComponent limel-example-markdown-blockquotes
|
|
6525
6528
|
* @exampleComponent limel-example-markdown-horizontal-rule
|
|
6526
6529
|
* @exampleComponent limel-example-markdown-composite
|
|
@@ -8464,6 +8467,7 @@ declare module "@stencil/core" {
|
|
|
8464
8467
|
* @exampleComponent limel-example-markdown-footnotes
|
|
8465
8468
|
* @exampleComponent limel-example-markdown-tables
|
|
8466
8469
|
* @exampleComponent limel-example-markdown-html
|
|
8470
|
+
* @exampleComponent limel-example-markdown-keys
|
|
8467
8471
|
* @exampleComponent limel-example-markdown-blockquotes
|
|
8468
8472
|
* @exampleComponent limel-example-markdown-horizontal-rule
|
|
8469
8473
|
* @exampleComponent limel-example-markdown-composite
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "38.1.
|
|
3
|
+
"version": "38.1.5",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@commitlint/config-conventional": "^19.7.1",
|
|
47
47
|
"@eslint/eslintrc": "^3.2.0",
|
|
48
|
-
"@eslint/js": "^9.
|
|
48
|
+
"@eslint/js": "^9.21.0",
|
|
49
49
|
"@microsoft/api-extractor": "^7.50.0",
|
|
50
50
|
"@popperjs/core": "^2.11.8",
|
|
51
51
|
"@rjsf/core": "^2.4.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["markdownCss","Markdown","globalConfig","markdownWhitelist","async","html","markdownToHTML","this","value","forceHardLineBreaks","whitelist","_a","rootElement","innerHTML","error","console","textChanged","render","h","id","ref","el"],"sources":["./src/components/markdown/markdown.scss?tag=limel-markdown&encapsulation=shadow","./src/components/markdown/markdown.tsx"],"sourcesContent":["/**\n* @prop --markdown-hyperlink-color: color of text for hyperlinks. Defaults to `--color-blue-dark`;\n* @prop --markdown-hyperlink-color--hovered: color of text for hyperlinks when hovered. Defaults to `--color-blue-default`;\n*/\n\n@import './partial-styles/pre-code';\n@import './partial-styles/headings';\n@import './partial-styles/body-text';\n@import './partial-styles/lists';\n@import './partial-styles/tables';\n@import './partial-styles/blockquotes';\n@import './partial-styles/definition-lists';\n@import './partial-styles/img';\n@import './partial-styles/_adjust-for-table-cell';\n\n// body-text\nhr {\n border-top: 1px solid rgb(var(--contrast-700));\n}\n\n.MsoNormal {\n margin: 0;\n}\n","import { Component, h, Prop, Watch } from '@stencil/core';\nimport { markdownToHTML } from './markdown-parser';\nimport { globalConfig } from '../../global/config';\nimport { CustomElementDefinition } from '../../global/shared-types/custom-element.types';\n\n/**\n * The Markdown component receives markdown syntax\n * and renders it as HTML.\n *\n * @exampleComponent limel-example-markdown-headings\n * @exampleComponent limel-example-markdown-emphasis\n * @exampleComponent limel-example-markdown-lists\n * @exampleComponent limel-example-markdown-links\n * @exampleComponent limel-example-markdown-images\n * @exampleComponent limel-example-markdown-code\n * @exampleComponent limel-example-markdown-footnotes\n * @exampleComponent limel-example-markdown-tables\n * @exampleComponent limel-example-markdown-html\n * @exampleComponent limel-example-markdown-blockquotes\n * @exampleComponent limel-example-markdown-horizontal-rule\n * @exampleComponent limel-example-markdown-composite\n * @exampleComponent limel-example-markdown-custom-component\n */\n@Component({\n tag: 'limel-markdown',\n styleUrl: 'markdown.scss',\n shadow: true,\n})\nexport class Markdown {\n /**\n * The input text. Treated as GitHub Flavored Markdown, with the addition\n * that any included HTML will be parsed and rendered as HTML, rather than\n * as text.\n */\n @Prop()\n public value: string;\n\n /**\n * Whitelisted html elements.\n *\n * Any custom element added here will not be sanitized and thus rendered.\n * Can also be set via `limel-config`. Setting this property will override\n * the global config.\n * @alpha\n */\n @Prop()\n public whitelist?: CustomElementDefinition[] =\n globalConfig.markdownWhitelist;\n\n @Watch('value')\n public async textChanged() {\n try {\n const html = await markdownToHTML(this.value, {\n forceHardLineBreaks: true,\n whitelist: this.whitelist ?? [],\n });\n this.rootElement.innerHTML = html;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n }\n }\n\n public async componentDidLoad() {\n this.textChanged();\n }\n\n private rootElement: HTMLDivElement;\n\n public render() {\n return [\n <div\n id=\"markdown\"\n ref={(el) => (this.rootElement = el as HTMLDivElement)}\n />,\n ];\n }\n}\n"],"mappings":"2IAAA,MAAMA,EAAc,26L,MC4BPC,EAAQ,M,6DAmBbC,EAAaC,iB,CAGVC,oB,MACH,IACI,MAAMC,QAAaC,EAAeC,KAAKC,MAAO,CAC1CC,oBAAqB,KACrBC,WAAWC,EAAAJ,KAAKG,aAAS,MAAAC,SAAA,EAAAA,EAAI,KAEjCJ,KAAKK,YAAYC,UAAYR,C,CAC/B,MAAOS,GAELC,QAAQD,MAAMA,E,EAIfV,yBACHG,KAAKS,a,CAKFC,SACH,MAAO,CACHC,EAAA,OACIC,GAAG,WACHC,IAAMC,GAAQd,KAAKK,YAAcS,I"}
|