@aws/mynah-ui 4.6.0 → 4.6.2
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.
|
@@ -17,6 +17,7 @@ export declare class ChatWrapper {
|
|
|
17
17
|
private readonly promptInfo;
|
|
18
18
|
private readonly promptStickyCard;
|
|
19
19
|
private lastChatItemCard;
|
|
20
|
+
private lastChatItemMessageId;
|
|
20
21
|
private allRenderedChatItems;
|
|
21
22
|
render: ExtendedHTMLElement;
|
|
22
23
|
constructor(props: ChatWrapperProps);
|
|
@@ -27,6 +28,7 @@ export declare class ChatWrapper {
|
|
|
27
28
|
render: ExtendedHTMLElement | HTMLElement;
|
|
28
29
|
renderDetails: CardRenderDetails;
|
|
29
30
|
} | undefined;
|
|
31
|
+
endStreamWithMessageId: (messageId: string, updateWith: Partial<ChatItem>) => void;
|
|
30
32
|
updateChatAnswerWithMessageId: (messageId: string, updateWith: Partial<ChatItem>) => void;
|
|
31
33
|
addToPrompt: (textToAdd: string) => void;
|
|
32
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
export declare const AllowedTags: readonly ["a", "audio", "b", "blockquote", "br", "hr", "canvas", "code", "col", "colgroup", "data", "div", "em", "embed", "figcaption", "figure", "h1", "h2", "h3", "h4", "h5", "h6", "i", "iframe", "img", "li", "map", "mark", "object", "ol", "p", "pre", "q", "s", "small", "source", "span", "strong", "sub", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "track", "u", "ul", "video"];
|
|
6
|
-
export declare const AllowedAttributes: readonly ["accept", "accept-charset", "accesskey", "align", "allow", "allowfullscreen", "alt", "as", "async", "autocapitalize", "autoplay", "charset", "class", "cols", "colspan", "controls", "crossorigin", "data", "data-*", "datetime", "decoding", "default", "dir", "download", "headers", "hidden", "high", "href", "hreflang", "id", "ismap", "itemprop", "kind", "lang", "language", "loop", "low", "media", "muted", "optimum", "ping", "playsinline", "poster", "preload", "referrerpolicy", "rel", "reversed", "role", "rowspan", "sandbox", "scope", "shape", "size", "sizes", "slot", "span", "spellcheck", "src", "srcdoc", "srclang", "srcset", "start", "target", "title", "translate", "usemap", "wrap", "aspect-ratio"];
|
|
6
|
+
export declare const AllowedAttributes: readonly ["accept", "accept-charset", "accesskey", "align", "allow", "allowfullscreen", "alt", "as", "async", "autocapitalize", "autoplay", "charset", "class", "cols", "colspan", "controls", "crossorigin", "data", "data-*", "datetime", "decoding", "default", "dir", "download", "headers", "hidden", "high", "href", "hreflang", "id", "ismap", "itemprop", "kind", "lang", "language", "loop", "low", "media", "muted", "optimum", "ping", "playsinline", "poster", "preload", "referrerpolicy", "rel", "reversed", "role", "rowspan", "sandbox", "scope", "shape", "size", "sizes", "slot", "span", "spellcheck", "src", "srcdoc", "srclang", "srcset", "start", "style", "target", "title", "translate", "usemap", "wrap", "aspect-ratio"];
|
|
7
7
|
export type AllowedTagsInCustomRenderer = (typeof AllowedTags)[number];
|
|
8
8
|
export type AllowedAttributesInCustomRenderer = (typeof AllowedAttributes)[number];
|
|
9
9
|
export declare const cleanHtml: (dirty: string) => string;
|