@aws/mynah-ui 4.16.0-beta.1 → 4.16.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/.eslintrc.js +36 -49
- package/.husky/pre-push +3 -1
- package/.prettierignore +9 -0
- package/.prettierrc +8 -0
- package/README.md +3 -2
- package/dist/components/chat-item/chat-prompt-input.d.ts +3 -1
- package/dist/components/chat-item/prompt-input/prompt-text-input.d.ts +1 -0
- package/dist/components/icon.d.ts +8 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +2 -0
- package/docs/CONFIG.md +18 -0
- package/docs/img/characterLimitWarning.png +0 -0
- package/package.json +91 -100
- package/postinstall.js +5 -5
- package/ui-tests/dist/27f62b53b93858475a7f.ttf +0 -0
- package/ui-tests/dist/d50a80138ec4f2fb5e9f.ttf +0 -0
- package/ui-tests/dist/index.html +9 -0
- package/ui-tests/dist/main.js +1344 -0
- package/ui-tests/dist/main.js.map +1 -0
- package/ui-tests/jest.config.js +10 -1
- package/ui-tests/package.json +3 -4
- package/ui-tests/test-results/.last-run.json +4 -0
- package/ui-tests/jest.image.ts +0 -8
package/.eslintrc.js
CHANGED
|
@@ -1,50 +1,37 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
"multiline": {
|
|
40
|
-
"delimiter": "semi",
|
|
41
|
-
"requireLast": true
|
|
42
|
-
},
|
|
43
|
-
"singleline": {
|
|
44
|
-
"delimiter": "semi",
|
|
45
|
-
"requireLast": false
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es2021: true,
|
|
5
|
+
node: true,
|
|
6
|
+
},
|
|
7
|
+
extends: ['standard-with-typescript'],
|
|
8
|
+
parser: '@typescript-eslint/parser',
|
|
9
|
+
parserOptions: {
|
|
10
|
+
tsconfigRootDir: __dirname,
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
project: ['./tsconfig.json', './ui-tests/tsconfig.json'],
|
|
14
|
+
},
|
|
15
|
+
plugins: ['@typescript-eslint', 'prettier'],
|
|
16
|
+
rules: {
|
|
17
|
+
'no-case-declarations': 'off',
|
|
18
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
19
|
+
'@typescript-eslint/semi': [2, 'always'],
|
|
20
|
+
'comma-dangle': [2, 'only-multiline'],
|
|
21
|
+
'array-bracket-spacing': [2, 'always'],
|
|
22
|
+
'no-useless-call': 'off',
|
|
23
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
24
|
+
'error',
|
|
25
|
+
{
|
|
26
|
+
multiline: {
|
|
27
|
+
delimiter: 'semi',
|
|
28
|
+
requireLast: true,
|
|
29
|
+
},
|
|
30
|
+
singleline: {
|
|
31
|
+
delimiter: 'semi',
|
|
32
|
+
requireLast: false,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|
package/.husky/pre-push
CHANGED
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/README.md
CHANGED
|
@@ -30,9 +30,10 @@ Mynah UI operates independently of any framework or UI library, enabling seamles
|
|
|
30
30
|
> Local environment quick start
|
|
31
31
|
```console
|
|
32
32
|
git clone git@github.com:aws/mynah-ui.git
|
|
33
|
-
cd mynah-ui
|
|
34
|
-
npm
|
|
33
|
+
cd mynah-ui && npm install
|
|
34
|
+
cd example && npm install
|
|
35
35
|
```
|
|
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.
|
|
36
37
|
|
|
37
38
|
#### Guides and documentation
|
|
38
39
|
Please refer to the following guides:
|
|
@@ -6,6 +6,7 @@ import { ExtendedHTMLElement } from '../../helper/dom';
|
|
|
6
6
|
import { PromptAttachmentType } from '../../static';
|
|
7
7
|
export declare const MAX_USER_INPUT_THRESHOLD = 96;
|
|
8
8
|
export declare const MAX_USER_INPUT: () => number;
|
|
9
|
+
export declare const INPUT_LENGTH_WARNING_THRESHOLD: () => number;
|
|
9
10
|
export interface ChatPromptInputProps {
|
|
10
11
|
tabId: string;
|
|
11
12
|
}
|
|
@@ -15,10 +16,11 @@ export declare class ChatPromptInput {
|
|
|
15
16
|
private readonly attachmentWrapper;
|
|
16
17
|
private readonly promptTextInput;
|
|
17
18
|
private readonly promptTextInputCommand;
|
|
18
|
-
private readonly remainingCharsIndicator;
|
|
19
19
|
private readonly sendButton;
|
|
20
20
|
private readonly progressIndicator;
|
|
21
21
|
private readonly promptAttachment;
|
|
22
|
+
private readonly chatPrompt;
|
|
23
|
+
private remainingCharsOverlay;
|
|
22
24
|
private quickPickTriggerIndex;
|
|
23
25
|
private quickPickType;
|
|
24
26
|
private textAfter;
|
|
@@ -55,7 +55,14 @@ export declare enum MynahIcons {
|
|
|
55
55
|
CURSOR_INSERT = "cursor-insert",
|
|
56
56
|
TEXT_SELECT = "text-select",
|
|
57
57
|
REVERT = "revert",
|
|
58
|
-
ASTERISK = "asterisk"
|
|
58
|
+
ASTERISK = "asterisk",
|
|
59
|
+
BUG = "bug",
|
|
60
|
+
CHECK_LIST = "check-list",
|
|
61
|
+
DEPLOY = "deploy",
|
|
62
|
+
HELP = "help",
|
|
63
|
+
MESSAGE = "message",
|
|
64
|
+
TRASH = "trash",
|
|
65
|
+
TRANSFORM = "transform"
|
|
59
66
|
}
|
|
60
67
|
export interface IconProps {
|
|
61
68
|
icon: MynahIcons;
|