@vaadin/message-input 23.2.0-dev.53560527d → 23.2.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
@@ -2,13 +2,13 @@
2
2
 
3
3
  A web component that allows users to author and send messages.
4
4
 
5
- [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/message-input)
5
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/message-input)
6
6
 
7
7
  ```html
8
8
  <vaadin-message-input></vaadin-message-input>
9
9
  ```
10
10
 
11
- [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/message-input/screenshot.png" width="656" alt="Screenshot of vaadin-message-input">](https://vaadin.com/docs/latest/ds/components/message-input)
11
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/message-input/screenshot.png" width="656" alt="Screenshot of vaadin-message-input">](https://vaadin.com/docs/latest/components/message-input)
12
12
 
13
13
  ## Installation
14
14
 
@@ -26,7 +26,7 @@ import '@vaadin/message-input';
26
26
 
27
27
  ## Themes
28
28
 
29
- Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
29
+ Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
30
30
  The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/message-input/vaadin-message-input.js) of the package uses the Lumo theme.
31
31
 
32
32
  To use the Material theme, import the component from the `theme/material` folder:
@@ -49,7 +49,7 @@ import '@vaadin/message-input/src/vaadin-message-input.js';
49
49
 
50
50
  ## Contributing
51
51
 
52
- Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
52
+ Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
53
53
 
54
54
  ## License
55
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/message-input",
3
- "version": "23.2.0-dev.53560527d",
3
+ "version": "23.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,9 @@
23
23
  "src",
24
24
  "theme",
25
25
  "vaadin-*.d.ts",
26
- "vaadin-*.js"
26
+ "vaadin-*.js",
27
+ "web-types.json",
28
+ "web-types.lit.json"
27
29
  ],
28
30
  "keywords": [
29
31
  "Vaadin",
@@ -34,17 +36,21 @@
34
36
  ],
35
37
  "dependencies": {
36
38
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/button": "23.2.0-dev.53560527d",
38
- "@vaadin/component-base": "23.2.0-dev.53560527d",
39
- "@vaadin/text-area": "23.2.0-dev.53560527d",
40
- "@vaadin/vaadin-lumo-styles": "23.2.0-dev.53560527d",
41
- "@vaadin/vaadin-material-styles": "23.2.0-dev.53560527d",
42
- "@vaadin/vaadin-themable-mixin": "23.2.0-dev.53560527d"
39
+ "@vaadin/button": "^23.2.0",
40
+ "@vaadin/component-base": "^23.2.0",
41
+ "@vaadin/text-area": "^23.2.0",
42
+ "@vaadin/vaadin-lumo-styles": "^23.2.0",
43
+ "@vaadin/vaadin-material-styles": "^23.2.0",
44
+ "@vaadin/vaadin-themable-mixin": "^23.2.0"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@esm-bundle/chai": "^4.3.4",
46
48
  "@vaadin/testing-helpers": "^0.3.2",
47
49
  "sinon": "^13.0.2"
48
50
  },
49
- "gitHead": "6c5c18369b09e22e76365d8a8a5e4bbb220f969b"
51
+ "web-types": [
52
+ "web-types.json",
53
+ "web-types.lit.json"
54
+ ],
55
+ "gitHead": "8b1f5941f26ac41ca038e75e24c8584e331bc7a8"
50
56
  }
@@ -68,13 +68,13 @@ declare class MessageInput extends ThemableMixin(ElementMixin(HTMLElement)) {
68
68
  addEventListener<K extends keyof MessageInputEventMap>(
69
69
  type: K,
70
70
  listener: (this: MessageInput, ev: MessageInputEventMap[K]) => void,
71
- options?: boolean | AddEventListenerOptions,
71
+ options?: AddEventListenerOptions | boolean,
72
72
  ): void;
73
73
 
74
74
  removeEventListener<K extends keyof MessageInputEventMap>(
75
75
  type: K,
76
76
  listener: (this: MessageInput, ev: MessageInputEventMap[K]) => void,
77
- options?: boolean | EventListenerOptions,
77
+ options?: EventListenerOptions | boolean,
78
78
  ): void;
79
79
  }
80
80
 
package/web-types.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/message-input",
4
+ "version": "23.2.0",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "vaadin-message-input",
11
+ "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```\n\n### Internal components\n\nIn addition to `<vaadin-message-input>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-message-input-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/23.2.0/#/elements/vaadin-button).\n- `<vaadin-message-input-text-area>` - has the same API as [`<vaadin-text-area>`](https://cdn.vaadin.com/vaadin-web-components/23.2.0/#/elements/vaadin-text-area).",
12
+ "attributes": [
13
+ {
14
+ "name": "value",
15
+ "description": "Current content of the text input field",
16
+ "value": {
17
+ "type": [
18
+ "string",
19
+ "null",
20
+ "undefined"
21
+ ]
22
+ }
23
+ },
24
+ {
25
+ "name": "disabled",
26
+ "description": "Set to true to disable this element.",
27
+ "value": {
28
+ "type": [
29
+ "boolean"
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "name": "theme",
35
+ "description": "The theme variants to apply to the component.",
36
+ "value": {
37
+ "type": [
38
+ "string",
39
+ "null",
40
+ "undefined"
41
+ ]
42
+ }
43
+ }
44
+ ],
45
+ "js": {
46
+ "properties": [
47
+ {
48
+ "name": "value",
49
+ "description": "Current content of the text input field",
50
+ "value": {
51
+ "type": [
52
+ "string",
53
+ "null",
54
+ "undefined"
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "name": "i18n",
60
+ "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n`i18n` object.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
61
+ "value": {
62
+ "type": [
63
+ "MessageInputI18n"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "name": "disabled",
69
+ "description": "Set to true to disable this element.",
70
+ "value": {
71
+ "type": [
72
+ "boolean"
73
+ ]
74
+ }
75
+ }
76
+ ],
77
+ "events": []
78
+ }
79
+ }
80
+ ]
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/message-input",
4
+ "version": "23.2.0",
5
+ "description-markup": "markdown",
6
+ "framework": "lit",
7
+ "framework-config": {
8
+ "enable-when": {
9
+ "node-packages": [
10
+ "lit"
11
+ ]
12
+ }
13
+ },
14
+ "contributions": {
15
+ "html": {
16
+ "elements": [
17
+ {
18
+ "name": "vaadin-message-input",
19
+ "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```\n\n### Internal components\n\nIn addition to `<vaadin-message-input>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-message-input-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/23.2.0/#/elements/vaadin-button).\n- `<vaadin-message-input-text-area>` - has the same API as [`<vaadin-text-area>`](https://cdn.vaadin.com/vaadin-web-components/23.2.0/#/elements/vaadin-text-area).",
20
+ "extension": true,
21
+ "attributes": [
22
+ {
23
+ "name": "?disabled",
24
+ "description": "Set to true to disable this element.",
25
+ "value": {
26
+ "kind": "expression"
27
+ }
28
+ },
29
+ {
30
+ "name": ".value",
31
+ "description": "Current content of the text input field",
32
+ "value": {
33
+ "kind": "expression"
34
+ }
35
+ },
36
+ {
37
+ "name": ".i18n",
38
+ "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n`i18n` object.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
39
+ "value": {
40
+ "kind": "expression"
41
+ }
42
+ }
43
+ ]
44
+ }
45
+ ]
46
+ }
47
+ }
48
+ }