@cloudscape-design/chat-components 1.0.8 → 1.0.9
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/avatar/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IconProps } from "@cloudscape-design/components/icon";
|
|
2
3
|
export interface AvatarProps {
|
|
3
4
|
/**
|
|
4
5
|
* Determines the color of the avatar.
|
|
@@ -54,7 +55,3 @@ export interface AvatarProps {
|
|
|
54
55
|
export declare namespace AvatarProps {
|
|
55
56
|
type Color = "default" | "gen-ai";
|
|
56
57
|
}
|
|
57
|
-
declare namespace IconProps {
|
|
58
|
-
type Name = "add-plus" | "anchor-link" | "angle-left-double" | "angle-left" | "angle-right-double" | "angle-right" | "angle-up" | "angle-down" | "arrow-left" | "arrow-right" | "audio-full" | "audio-half" | "audio-off" | "bug" | "call" | "calendar" | "caret-down-filled" | "caret-down" | "caret-left-filled" | "caret-right-filled" | "caret-up-filled" | "caret-up" | "check" | "contact" | "close" | "copy" | "delete-marker" | "download" | "drag-indicator" | "edit" | "ellipsis" | "envelope" | "expand" | "external" | "file-open" | "file" | "filter" | "flag" | "folder-open" | "folder" | "gen-ai" | "group-active" | "group" | "heart" | "heart-filled" | "insert-row" | "key" | "keyboard" | "lock-private" | "menu" | "microphone" | "microphone-off" | "multiscreen" | "notification" | "redo" | "refresh" | "remove" | "resize-area" | "script" | "search" | "security" | "settings" | "send" | "share" | "shrink" | "star-filled" | "star-half" | "star" | "status-in-progress" | "status-info" | "status-negative" | "status-pending" | "status-positive" | "status-stopped" | "status-warning" | "subtract-minus" | "suggestions" | "thumbs-down-filled" | "thumbs-down" | "thumbs-up-filled" | "thumbs-up" | "ticket" | "treeview-collapse" | "treeview-expand" | "undo" | "unlocked" | "upload-download" | "upload" | "user-profile-active" | "user-profile" | "video-off" | "video-on" | "video-unavailable" | "view-full" | "view-horizontal" | "view-vertical" | "zoom-in" | "zoom-out" | "zoom-to-fit";
|
|
59
|
-
}
|
|
60
|
-
export {};
|
package/avatar/interfaces.js
CHANGED
package/avatar/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/avatar/interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/avatar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { IconProps } from \"@cloudscape-design/components/icon\";\n\nexport interface AvatarProps {\n /**\n * Determines the color of the avatar.\n * Use `gen-ai` for AI assistants and `default` otherwise.\n */\n color?: AvatarProps.Color;\n\n /**\n * The text content shown in the avatar's tooltip.\n *\n * When you use this property, make sure to include it in the `ariaLabel`.\n */\n tooltipText?: string;\n\n /**\n * The text content shown directly in the avatar's body.\n * Can be 1 or 2 symbols long, every subsequent symbol is ignored.\n * Use it to define initials that uniquely identify the avatar's owner.\n */\n initials?: string;\n\n /**\n * When set to true, a loading indicator is shown in avatar.\n */\n loading?: boolean;\n\n /**\n * Text to describe the avatar for assistive technology.\n * When more than one avatar is used, provide a unique label for each.\n * For example, \"Avatar of John Doe\" or \"Avatar of generative AI assistant\".\n *\n * If `tooltipText` is used make sure to include it in the `ariaLabel`.\n */\n ariaLabel: string;\n\n /**\n * Specifies the icon to be displayed as Avatar.\n * Use `gen-ai` icon for AI assistants. By default `user-profile` icon is used.\n *\n * If you set both `iconName` and `initials`, `initials` will take precedence.\n */\n iconName?: IconProps.Name;\n\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available, and your custom icon can't be an SVG.\n * For SVG icons, use the `iconSvg` slot instead.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if the icon you want isn't available.\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconSvg?: React.ReactNode;\n}\n\nexport namespace AvatarProps {\n export type Color = \"default\" | \"gen-ai\";\n}\n"]}
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED