@kubex/zinc 1.1.171 → 1.1.173
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/dist/custom-elements.json +1 -1
- package/dist/web-types.json +1 -1
- package/dist/zn.d.ts +11 -0
- package/dist/zn.min.js +283 -283
- package/package.json +1 -1
- package/src/components/content-block/content-block.component.ts +12 -1
- package/src/components/content-block/content-block.test.ts +34 -2
- package/src/components/content-block/sanitize-html.ts +85 -0
- package/src/components/split-pane/split-pane.scss +4 -0
|
@@ -53936,7 +53936,7 @@
|
|
|
53936
53936
|
"package": {
|
|
53937
53937
|
"name": "@kubex/zinc",
|
|
53938
53938
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
53939
|
-
"version": "1.1.
|
|
53939
|
+
"version": "1.1.173",
|
|
53940
53940
|
"author": "",
|
|
53941
53941
|
"license": "MIT"
|
|
53942
53942
|
}
|
package/dist/web-types.json
CHANGED
package/dist/zn.d.ts
CHANGED
|
@@ -8936,12 +8936,23 @@ declare module "components/split-button/index" {
|
|
|
8936
8936
|
}
|
|
8937
8937
|
}
|
|
8938
8938
|
}
|
|
8939
|
+
declare module "components/content-block/sanitize-html" {
|
|
8940
|
+
/** Whether a plain-text body is really HTML source. `<br>` alone doesn't count. */
|
|
8941
|
+
export function looksLikeHtml(text: string): boolean;
|
|
8942
|
+
/**
|
|
8943
|
+
* Rebuilds untrusted HTML from an allowlist of formatting tags. Attributes are never copied,
|
|
8944
|
+
* except a link's href when it is http(s) or mailto.
|
|
8945
|
+
*/
|
|
8946
|
+
export function sanitizeHtml(source: string): string;
|
|
8947
|
+
}
|
|
8939
8948
|
declare module "components/content-block/content-block.component" {
|
|
8940
8949
|
import ZincElement from "internal/zinc-element";
|
|
8941
8950
|
import type { PropertyValues } from 'lit';
|
|
8942
8951
|
interface TextRow {
|
|
8943
8952
|
lines: string[];
|
|
8944
8953
|
type: 'reply' | 'text';
|
|
8954
|
+
/** `lines` holds a single sanitized HTML string. */
|
|
8955
|
+
html?: boolean;
|
|
8945
8956
|
}
|
|
8946
8957
|
/**
|
|
8947
8958
|
* @summary Short summary of the component's intended use.
|