@aws/mynah-ui 4.16.1-beta.1 → 4.17.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/README.md CHANGED
@@ -24,16 +24,23 @@ Mynah UI operates independently of any framework or UI library, enabling seamles
24
24
  * [Live Demo](https://aws.github.io/mynah-ui/)
25
25
  * [API Docs](https://aws.github.io/mynah-ui/api-doc/index.html)
26
26
 
27
+
27
28
  ### Setup, configuration and use
28
29
 
29
- >[!TIP]
30
- > Local environment quick start
31
- ```console
32
- git clone git@github.com:aws/mynah-ui.git
33
- cd mynah-ui && npm install
34
- cd example && npm install
30
+ To set up your local development environment quickly, run the following command:
31
+
32
+ ```bash
33
+ npm run dev
35
34
  ```
36
- Now run `npm watch` in both the `mynah-ui` and the `example` directories, and open `mynah-ui/example/dist/index.html` in a browser of choice.
35
+
36
+ This command will:
37
+ 1. **Clean**: Remove existing `dist` and `node_modules` directories to ensure you're working with a fresh environment.
38
+ 2. **Install**: Reinstall all necessary dependencies for both the main project and the example project.
39
+ 3. **Build**: Compile the project using Webpack in production mode.
40
+ 4. **Start Example**: Install dependencies and build the example project, then start the development server with `watch` mode enabled. The project will be served on `localhost:9000` using `live-server`.
41
+ 5. **Watch**: Start the main project in `watch` mode.
42
+ After running this command, any changes you make will automatically rebuild and refresh your development environment, allowing you to work seamlessly.
43
+
37
44
 
38
45
  #### Guides and documentation
39
46
  Please refer to the following guides:
@@ -17,6 +17,7 @@ export declare class ChatItemCard {
17
17
  private readonly updateStack;
18
18
  private readonly initialSpinner;
19
19
  private cardFooter;
20
+ private informationCard;
20
21
  private cardIcon;
21
22
  private contentBody;
22
23
  private chatAvatar;
@@ -0,0 +1,22 @@
1
+ import { ExtendedHTMLElement } from '../../helper/dom';
2
+ import { ChatItemContent, Status } from '../../static';
3
+ import { MynahIcons } from '../icon';
4
+ export interface ChatItemInformationCardProps {
5
+ tabId: string;
6
+ messageId: string | undefined;
7
+ informationCard: {
8
+ title?: string;
9
+ status?: {
10
+ status?: Status;
11
+ icon?: MynahIcons;
12
+ body?: string;
13
+ };
14
+ description?: string;
15
+ icon?: MynahIcons;
16
+ content: ChatItemContent;
17
+ };
18
+ }
19
+ export declare class ChatItemInformationCard {
20
+ render: ExtendedHTMLElement;
21
+ constructor(props: ChatItemInformationCardProps);
22
+ }
@@ -75,4 +75,5 @@ export declare class DomBuilder {
75
75
  }
76
76
  export declare const htmlDecode: (input: string) => string;
77
77
  export declare const getTypewriterPartsCss: (typewriterId: string, lastVisibleItemIndex: number, totalNumberOfItems: number, timeForEach: number) => ExtendedHTMLElement;
78
+ export declare const cleanupElement: (elm: HTMLElement) => void;
78
79
  export {};
@@ -2,7 +2,7 @@
2
2
  * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
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"];
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", "input", "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
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];