@kubex/zinc 1.1.176 → 1.1.178
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 +79 -79
- package/dist/vscode.html-custom-data.json +13 -13
- package/dist/web-types.json +26 -26
- package/dist/zn.d.ts +15 -10
- package/dist/zn.min.js +766 -764
- package/package.json +2 -1
- package/src/components/chat-message/chat-message.component.ts +3 -7
- package/src/components/chat-message/chat-message.test.ts +72 -0
- package/src/components/chat-message/clean-message.ts +10 -42
- package/src/components/chip/chip.component.ts +2 -2
- package/src/components/chip/chip.scss +1 -1
- package/src/components/chip/chip.test.ts +17 -0
- package/src/components/content-block/content-block.component.ts +2 -1
- package/src/components/content-block/html-text.ts +19 -0
- package/src/utilities/sanitize-html.ts +52 -0
- package/src/components/content-block/sanitize-html.ts +0 -96
|
@@ -56,6 +56,79 @@
|
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "javascript-module",
|
|
61
|
+
"path": "components/action-bar/action-bar.js",
|
|
62
|
+
"declarations": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "class",
|
|
65
|
+
"description": "",
|
|
66
|
+
"name": "ZnActionBar",
|
|
67
|
+
"cssProperties": [
|
|
68
|
+
{
|
|
69
|
+
"description": "An example CSS custom property.",
|
|
70
|
+
"name": "--example"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"cssParts": [
|
|
74
|
+
{
|
|
75
|
+
"description": "The component's base wrapper.",
|
|
76
|
+
"name": "base"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"slots": [
|
|
80
|
+
{
|
|
81
|
+
"description": "The default slot.",
|
|
82
|
+
"name": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"description": "An example slot.",
|
|
86
|
+
"name": "example"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"members": [
|
|
90
|
+
{
|
|
91
|
+
"kind": "field",
|
|
92
|
+
"name": "localize",
|
|
93
|
+
"privacy": "private",
|
|
94
|
+
"readonly": true,
|
|
95
|
+
"default": "new LocalizeController(this)"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"events": [
|
|
99
|
+
{
|
|
100
|
+
"description": "Emitted as an example.",
|
|
101
|
+
"name": "zn-event-name"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"superclass": {
|
|
105
|
+
"name": "ZincElement",
|
|
106
|
+
"module": "/src/internal/zinc-element"
|
|
107
|
+
},
|
|
108
|
+
"summary": "Short summary of the component's intended use.",
|
|
109
|
+
"tagNameWithoutPrefix": "action-bar",
|
|
110
|
+
"tagName": "zn-action-bar",
|
|
111
|
+
"customElement": true,
|
|
112
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
113
|
+
"documentation": "https://zinc.style/components/action-bar",
|
|
114
|
+
"status": "experimental",
|
|
115
|
+
"since": "1.0",
|
|
116
|
+
"dependencies": [
|
|
117
|
+
"zn-example"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"exports": [
|
|
122
|
+
{
|
|
123
|
+
"kind": "js",
|
|
124
|
+
"name": "default",
|
|
125
|
+
"declaration": {
|
|
126
|
+
"name": "ZnActionBar",
|
|
127
|
+
"module": "components/action-bar/action-bar.js"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
59
132
|
{
|
|
60
133
|
"kind": "javascript-module",
|
|
61
134
|
"path": "components/alert/alert.js",
|
|
@@ -250,79 +323,6 @@
|
|
|
250
323
|
}
|
|
251
324
|
]
|
|
252
325
|
},
|
|
253
|
-
{
|
|
254
|
-
"kind": "javascript-module",
|
|
255
|
-
"path": "components/action-bar/action-bar.js",
|
|
256
|
-
"declarations": [
|
|
257
|
-
{
|
|
258
|
-
"kind": "class",
|
|
259
|
-
"description": "",
|
|
260
|
-
"name": "ZnActionBar",
|
|
261
|
-
"cssProperties": [
|
|
262
|
-
{
|
|
263
|
-
"description": "An example CSS custom property.",
|
|
264
|
-
"name": "--example"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"cssParts": [
|
|
268
|
-
{
|
|
269
|
-
"description": "The component's base wrapper.",
|
|
270
|
-
"name": "base"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"slots": [
|
|
274
|
-
{
|
|
275
|
-
"description": "The default slot.",
|
|
276
|
-
"name": ""
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"description": "An example slot.",
|
|
280
|
-
"name": "example"
|
|
281
|
-
}
|
|
282
|
-
],
|
|
283
|
-
"members": [
|
|
284
|
-
{
|
|
285
|
-
"kind": "field",
|
|
286
|
-
"name": "localize",
|
|
287
|
-
"privacy": "private",
|
|
288
|
-
"readonly": true,
|
|
289
|
-
"default": "new LocalizeController(this)"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"events": [
|
|
293
|
-
{
|
|
294
|
-
"description": "Emitted as an example.",
|
|
295
|
-
"name": "zn-event-name"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"superclass": {
|
|
299
|
-
"name": "ZincElement",
|
|
300
|
-
"module": "/src/internal/zinc-element"
|
|
301
|
-
},
|
|
302
|
-
"summary": "Short summary of the component's intended use.",
|
|
303
|
-
"tagNameWithoutPrefix": "action-bar",
|
|
304
|
-
"tagName": "zn-action-bar",
|
|
305
|
-
"customElement": true,
|
|
306
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
307
|
-
"documentation": "https://zinc.style/components/action-bar",
|
|
308
|
-
"status": "experimental",
|
|
309
|
-
"since": "1.0",
|
|
310
|
-
"dependencies": [
|
|
311
|
-
"zn-example"
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"exports": [
|
|
316
|
-
{
|
|
317
|
-
"kind": "js",
|
|
318
|
-
"name": "default",
|
|
319
|
-
"declaration": {
|
|
320
|
-
"name": "ZnActionBar",
|
|
321
|
-
"module": "components/action-bar/action-bar.js"
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "javascript-module",
|
|
328
328
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -4113,7 +4113,7 @@
|
|
|
4113
4113
|
"text": "string"
|
|
4114
4114
|
},
|
|
4115
4115
|
"default": "''",
|
|
4116
|
-
"description": "The message body as an HTML string. When set, it is sanitized
|
|
4116
|
+
"description": "The message body as an HTML string. When set, it is sanitized down to formatting tags and\nhttp(s) or mailto links, newlines become line breaks and bare URLs become links. When\nomitted the default slot is rendered instead.",
|
|
4117
4117
|
"attribute": "message"
|
|
4118
4118
|
},
|
|
4119
4119
|
{
|
|
@@ -4254,7 +4254,7 @@
|
|
|
4254
4254
|
"text": "string"
|
|
4255
4255
|
},
|
|
4256
4256
|
"default": "''",
|
|
4257
|
-
"description": "The message body as an HTML string. When set, it is sanitized
|
|
4257
|
+
"description": "The message body as an HTML string. When set, it is sanitized down to formatting tags and\nhttp(s) or mailto links, newlines become line breaks and bare URLs become links. When\nomitted the default slot is rendered instead.",
|
|
4258
4258
|
"fieldName": "message"
|
|
4259
4259
|
},
|
|
4260
4260
|
{
|
|
@@ -5887,8 +5887,8 @@
|
|
|
5887
5887
|
"name": "ZnChip",
|
|
5888
5888
|
"cssProperties": [
|
|
5889
5889
|
{
|
|
5890
|
-
"description": "
|
|
5891
|
-
"name": "--
|
|
5890
|
+
"description": "The text, icon and tinted background colour of a `custom` chip.",
|
|
5891
|
+
"name": "--chip-color-override"
|
|
5892
5892
|
}
|
|
5893
5893
|
],
|
|
5894
5894
|
"cssParts": [
|
|
@@ -6054,7 +6054,7 @@
|
|
|
6054
6054
|
"tagNameWithoutPrefix": "chip",
|
|
6055
6055
|
"tagName": "zn-chip",
|
|
6056
6056
|
"customElement": true,
|
|
6057
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/chip\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --
|
|
6057
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/chip\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --chip-color-override - The text, icon and tinted background colour of a `custom` chip.\n */",
|
|
6058
6058
|
"documentation": "https://zinc.style/components/chip",
|
|
6059
6059
|
"status": "experimental",
|
|
6060
6060
|
"since": "1.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.178",
|
|
53940
53940
|
"author": "",
|
|
53941
53941
|
"license": "MIT"
|
|
53942
53942
|
}
|
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"name": "zn-action-bar",
|
|
18
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
19
|
+
"attributes": [],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Documentation",
|
|
23
|
+
"url": "https://zinc.style/components/action-bar"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
28
|
"name": "zn-alert",
|
|
18
29
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -53,17 +64,6 @@
|
|
|
53
64
|
}
|
|
54
65
|
]
|
|
55
66
|
},
|
|
56
|
-
{
|
|
57
|
-
"name": "zn-action-bar",
|
|
58
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
59
|
-
"attributes": [],
|
|
60
|
-
"references": [
|
|
61
|
-
{
|
|
62
|
-
"name": "Documentation",
|
|
63
|
-
"url": "https://zinc.style/components/action-bar"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
67
|
{
|
|
68
68
|
"name": "zn-animated-button",
|
|
69
69
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
559
|
"name": "message",
|
|
560
|
-
"description": "The message body as an HTML string. When set, it is sanitized
|
|
560
|
+
"description": "The message body as an HTML string. When set, it is sanitized down to formatting tags and\nhttp(s) or mailto links, newlines become line breaks and bare URLs become links. When\nomitted the default slot is rendered instead.",
|
|
561
561
|
"values": []
|
|
562
562
|
},
|
|
563
563
|
{
|
|
@@ -857,7 +857,7 @@
|
|
|
857
857
|
},
|
|
858
858
|
{
|
|
859
859
|
"name": "zn-chip",
|
|
860
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--
|
|
860
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--chip-color-override** - The text, icon and tinted background colour of a `custom` chip. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
861
861
|
"attributes": [
|
|
862
862
|
{ "name": "icon", "values": [] },
|
|
863
863
|
{ "name": "caption", "values": [] },
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.178",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,6 +15,28 @@
|
|
|
15
15
|
"events": [],
|
|
16
16
|
"js": { "properties": [], "events": [] }
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "zn-action-bar",
|
|
20
|
+
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
21
|
+
"doc-url": "",
|
|
22
|
+
"attributes": [],
|
|
23
|
+
"slots": [
|
|
24
|
+
{ "name": "", "description": "The default slot." },
|
|
25
|
+
{ "name": "example", "description": "An example slot." }
|
|
26
|
+
],
|
|
27
|
+
"events": [
|
|
28
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
29
|
+
],
|
|
30
|
+
"js": {
|
|
31
|
+
"properties": [],
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"name": "zn-event-name",
|
|
35
|
+
"description": "Emitted as an example."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
18
40
|
{
|
|
19
41
|
"name": "zn-alert",
|
|
20
42
|
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -1148,7 +1148,7 @@
|
|
|
1148
1148
|
},
|
|
1149
1149
|
{
|
|
1150
1150
|
"name": "message",
|
|
1151
|
-
"description": "The message body as an HTML string. When set, it is sanitized
|
|
1151
|
+
"description": "The message body as an HTML string. When set, it is sanitized down to formatting tags and\nhttp(s) or mailto links, newlines become line breaks and bare URLs become links. When\nomitted the default slot is rendered instead.",
|
|
1152
1152
|
"value": { "type": "string", "default": "''" }
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
@@ -1214,7 +1214,7 @@
|
|
|
1214
1214
|
},
|
|
1215
1215
|
{
|
|
1216
1216
|
"name": "message",
|
|
1217
|
-
"description": "The message body as an HTML string. When set, it is sanitized
|
|
1217
|
+
"description": "The message body as an HTML string. When set, it is sanitized down to formatting tags and\nhttp(s) or mailto links, newlines become line breaks and bare URLs become links. When\nomitted the default slot is rendered instead.",
|
|
1218
1218
|
"type": "string"
|
|
1219
1219
|
},
|
|
1220
1220
|
{
|
|
@@ -1862,7 +1862,7 @@
|
|
|
1862
1862
|
},
|
|
1863
1863
|
{
|
|
1864
1864
|
"name": "zn-chip",
|
|
1865
|
-
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--
|
|
1865
|
+
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--chip-color-override** - The text, icon and tinted background colour of a `custom` chip. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1866
1866
|
"doc-url": "",
|
|
1867
1867
|
"attributes": [
|
|
1868
1868
|
{ "name": "icon", "value": { "type": "string", "default": "''" } },
|
package/dist/zn.d.ts
CHANGED
|
@@ -1568,8 +1568,18 @@ declare module "components/button-group/index" {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
+
declare module "utilities/sanitize-html" {
|
|
1572
|
+
/**
|
|
1573
|
+
* Sanitizes untrusted HTML down to formatting tags, keeping only a link's href when it is http(s) or mailto.
|
|
1574
|
+
* Tags in `keep` are allowed as they are, so a block such as `pre` isn't turned into a paragraph.
|
|
1575
|
+
*/
|
|
1576
|
+
export function sanitizeHtml(source: string, keep?: string[]): string;
|
|
1577
|
+
}
|
|
1571
1578
|
declare module "components/chat-message/clean-message" {
|
|
1572
|
-
/**
|
|
1579
|
+
/**
|
|
1580
|
+
* Sanitizes an untrusted chat message, turning newlines into breaks and bare URLs into links first so the
|
|
1581
|
+
* links are vetted too.
|
|
1582
|
+
*/
|
|
1573
1583
|
export function cleanHTML(message: string): string;
|
|
1574
1584
|
}
|
|
1575
1585
|
declare module "components/chat-message/chat-message.component" {
|
|
@@ -1615,8 +1625,8 @@ declare module "components/chat-message/chat-message.component" {
|
|
|
1615
1625
|
/** The sender's name, also used for the avatar. */
|
|
1616
1626
|
sender: string;
|
|
1617
1627
|
/**
|
|
1618
|
-
* The message body as an HTML string. When set, it is sanitized
|
|
1619
|
-
*
|
|
1628
|
+
* The message body as an HTML string. When set, it is sanitized down to formatting tags and
|
|
1629
|
+
* http(s) or mailto links, newlines become line breaks and bare URLs become links. When
|
|
1620
1630
|
* omitted the default slot is rendered instead.
|
|
1621
1631
|
*/
|
|
1622
1632
|
message: string;
|
|
@@ -1733,7 +1743,7 @@ declare module "components/chip/chip.component" {
|
|
|
1733
1743
|
*
|
|
1734
1744
|
* @csspart base - The component's base wrapper.
|
|
1735
1745
|
*
|
|
1736
|
-
* @cssproperty --
|
|
1746
|
+
* @cssproperty --chip-color-override - The text, icon and tinted background colour of a `custom` chip.
|
|
1737
1747
|
*/
|
|
1738
1748
|
export default class ZnChip extends ZincElement {
|
|
1739
1749
|
static styles: CSSResultGroup;
|
|
@@ -8936,14 +8946,9 @@ declare module "components/split-button/index" {
|
|
|
8936
8946
|
}
|
|
8937
8947
|
}
|
|
8938
8948
|
}
|
|
8939
|
-
declare module "components/content-block/
|
|
8949
|
+
declare module "components/content-block/html-text" {
|
|
8940
8950
|
/** Whether a plain-text body is really HTML source. `<br>` alone doesn't count. */
|
|
8941
8951
|
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
8952
|
/** Plain text of a body that may be HTML source or text holding encoded entities like ` `. */
|
|
8948
8953
|
export function htmlToText(source: string): string;
|
|
8949
8954
|
}
|