@limetech/lime-elements 37.61.9 → 37.62.0
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 +16 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +2 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-parser-c4a1ec47.js → markdown-parser-4fc5ca3e.js} +11 -7
- package/dist/cjs/{markdown-parser-c4a1ec47.js.map → markdown-parser-4fc5ca3e.js.map} +1 -1
- package/dist/collection/components/chip-set/chip-set.js +20 -1
- package/dist/collection/components/chip-set/chip-set.js.map +1 -1
- package/dist/collection/components/markdown/markdown-parser.js +5 -1
- package/dist/collection/components/markdown/markdown-parser.js.map +1 -1
- package/dist/collection/components/popover/popover.js +2 -8
- package/dist/collection/components/popover/popover.js.map +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +2 -1
- package/dist/esm/limel-chip_2.entry.js.map +1 -1
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js.map +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-parser-108384e8.js → markdown-parser-369b49f7.js} +11 -7
- package/dist/esm/{markdown-parser-108384e8.js.map → markdown-parser-369b49f7.js.map} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/{p-ee74cfff.entry.js → p-21441a76.entry.js} +2 -2
- package/dist/lime-elements/{p-a7fca1dd.js → p-3b715481.js} +2 -2
- package/dist/lime-elements/{p-a7fca1dd.js.map → p-3b715481.js.map} +1 -1
- package/dist/lime-elements/p-53fc6f0e.entry.js.map +1 -1
- package/dist/lime-elements/{p-ccc605fe.entry.js → p-8b8bcd00.entry.js} +2 -2
- package/dist/lime-elements/{p-1be3975a.entry.js → p-f8ca6b3e.entry.js} +2 -2
- package/dist/lime-elements/p-f8ca6b3e.entry.js.map +1 -0
- package/dist/types/components/chip-set/chip-set.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +2 -8
- package/dist/types/components.d.ts +16 -28
- package/package.json +5 -5
- package/dist/lime-elements/p-1be3975a.entry.js.map +0 -1
- /package/dist/lime-elements/{p-ee74cfff.entry.js.map → p-21441a76.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-ccc605fe.entry.js.map → p-8b8bcd00.entry.js.map} +0 -0
|
@@ -30601,9 +30601,9 @@ function all$3(parent) {
|
|
|
30601
30601
|
}
|
|
30602
30602
|
|
|
30603
30603
|
/**
|
|
30604
|
-
* @
|
|
30605
|
-
* @
|
|
30606
|
-
* @
|
|
30604
|
+
* @import {Root} from 'hast'
|
|
30605
|
+
* @import {Options} from 'hast-util-to-html'
|
|
30606
|
+
* @import {Compiler, Processor} from 'unified'
|
|
30607
30607
|
*/
|
|
30608
30608
|
|
|
30609
30609
|
/**
|
|
@@ -30615,7 +30615,7 @@ function all$3(parent) {
|
|
|
30615
30615
|
* Nothing.
|
|
30616
30616
|
*/
|
|
30617
30617
|
function rehypeStringify(options) {
|
|
30618
|
-
/** @type {
|
|
30618
|
+
/** @type {Processor<undefined, undefined, undefined, Root, string>} */
|
|
30619
30619
|
// @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.
|
|
30620
30620
|
const self = this;
|
|
30621
30621
|
const settings = {...self.data('settings'), ...options};
|
|
@@ -30623,7 +30623,7 @@ function rehypeStringify(options) {
|
|
|
30623
30623
|
self.compiler = compiler;
|
|
30624
30624
|
|
|
30625
30625
|
/**
|
|
30626
|
-
* @type {Compiler}
|
|
30626
|
+
* @type {Compiler<Root, string>}
|
|
30627
30627
|
*/
|
|
30628
30628
|
function compiler(tree) {
|
|
30629
30629
|
return toHtml(tree, settings)
|
|
@@ -44169,10 +44169,14 @@ async function markdownToHTML(text, options) {
|
|
|
44169
44169
|
return file.toString();
|
|
44170
44170
|
}
|
|
44171
44171
|
function getWhiteList(allowedComponents) {
|
|
44172
|
+
var _a, _b;
|
|
44172
44173
|
const whitelist = Object.assign(Object.assign({}, defaultSchema), { tagNames: [
|
|
44173
44174
|
...(defaultSchema.tagNames || []),
|
|
44174
44175
|
...allowedComponents.map((component) => component.tagName),
|
|
44175
|
-
], attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { p: [
|
|
44176
|
+
], attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { p: [
|
|
44177
|
+
...((_a = defaultSchema.attributes.p) !== null && _a !== void 0 ? _a : []),
|
|
44178
|
+
['className', 'MsoNormal'],
|
|
44179
|
+
], '*': [...((_b = defaultSchema.attributes['*']) !== null && _b !== void 0 ? _b : []), 'style'] }) });
|
|
44176
44180
|
for (const component of allowedComponents) {
|
|
44177
44181
|
whitelist.attributes[component.tagName] = component.attributes;
|
|
44178
44182
|
}
|
|
@@ -44181,4 +44185,4 @@ function getWhiteList(allowedComponents) {
|
|
|
44181
44185
|
|
|
44182
44186
|
export { decodeHTML as d, markdownToHTML as m };
|
|
44183
44187
|
|
|
44184
|
-
//# sourceMappingURL=markdown-parser-
|
|
44188
|
+
//# sourceMappingURL=markdown-parser-369b49f7.js.map
|