@vaadin/message-input 25.1.0-beta2 → 25.1.0-beta3

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.
@@ -48,10 +48,12 @@
48
48
  {
49
49
  "kind": "field",
50
50
  "name": "i18n",
51
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\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```",
51
+ "privacy": "public",
52
52
  "type": {
53
53
  "text": "Object"
54
54
  },
55
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\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```",
56
+ "attribute": "i18n",
55
57
  "inheritedFrom": {
56
58
  "name": "I18nMixin",
57
59
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -87,6 +89,11 @@
87
89
  },
88
90
  {
89
91
  "name": "i18n",
92
+ "type": {
93
+ "text": "Object"
94
+ },
95
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
96
+ "fieldName": "i18n",
90
97
  "inheritedFrom": {
91
98
  "name": "I18nMixin",
92
99
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -164,10 +171,12 @@
164
171
  {
165
172
  "kind": "field",
166
173
  "name": "i18n",
167
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\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```",
174
+ "privacy": "public",
168
175
  "type": {
169
176
  "text": "Object"
170
177
  },
178
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\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```",
179
+ "attribute": "i18n",
171
180
  "inheritedFrom": {
172
181
  "name": "I18nMixin",
173
182
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -188,6 +197,19 @@
188
197
  }
189
198
  }
190
199
  ],
200
+ "events": [
201
+ {
202
+ "name": "submit",
203
+ "type": {
204
+ "text": "CustomEvent"
205
+ },
206
+ "description": "Fired when a new message is submitted, either by clicking the \"send\" button, or pressing the Enter key.",
207
+ "inheritedFrom": {
208
+ "name": "MessageInputMixin",
209
+ "module": "src/vaadin-message-input-mixin.js"
210
+ }
211
+ }
212
+ ],
191
213
  "mixins": [
192
214
  {
193
215
  "name": "MessageInputMixin",
@@ -231,6 +253,11 @@
231
253
  },
232
254
  {
233
255
  "name": "i18n",
256
+ "type": {
257
+ "text": "Object"
258
+ },
259
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
260
+ "fieldName": "i18n",
234
261
  "inheritedFrom": {
235
262
  "name": "I18nMixin",
236
263
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -248,18 +275,6 @@
248
275
  "module": "src/vaadin-message-input-mixin.js"
249
276
  }
250
277
  }
251
- ],
252
- "events": [
253
- {
254
- "name": "submit",
255
- "type": {
256
- "text": "CustomEvent"
257
- },
258
- "inheritedFrom": {
259
- "name": "MessageInputMixin",
260
- "module": "src/vaadin-message-input-mixin.js"
261
- }
262
- }
263
278
  ]
264
279
  }
265
280
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/message-input",
3
- "version": "25.1.0-beta2",
3
+ "version": "25.1.0-beta3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,24 +35,24 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/button": "25.1.0-beta2",
39
- "@vaadin/component-base": "25.1.0-beta2",
40
- "@vaadin/text-area": "25.1.0-beta2",
41
- "@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
38
+ "@vaadin/button": "25.1.0-beta3",
39
+ "@vaadin/component-base": "25.1.0-beta3",
40
+ "@vaadin/text-area": "25.1.0-beta3",
41
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.1.0-beta2",
46
- "@vaadin/chai-plugins": "25.1.0-beta2",
47
- "@vaadin/test-runner-commands": "25.1.0-beta2",
45
+ "@vaadin/aura": "25.1.0-beta3",
46
+ "@vaadin/chai-plugins": "25.1.0-beta3",
47
+ "@vaadin/test-runner-commands": "25.1.0-beta3",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
50
- "sinon": "^21.0.0"
49
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
50
+ "sinon": "^21.0.2"
51
51
  },
52
52
  "customElements": "custom-elements.json",
53
53
  "web-types": [
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
57
+ "gitHead": "4251850231a42298fda23b83928da588831cdb5d"
58
58
  }
@@ -51,6 +51,8 @@ export type MessageInputEventMap = HTMLElementEventMap & MessageInputCustomEvent
51
51
  * - `<vaadin-text-area>`
52
52
  *
53
53
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
54
+ *
55
+ * @fires {CustomEvent} submit - Fired when a new message is submitted, either by clicking the "send" button, or pressing the Enter key.
54
56
  */
55
57
  declare class MessageInput extends MessageInputMixin(ThemableMixin(ElementMixin(HTMLElement))) {
56
58
  addEventListener<K extends keyof MessageInputEventMap>(
@@ -45,6 +45,8 @@ import { MessageInputMixin } from './vaadin-message-input-mixin.js';
45
45
  *
46
46
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
47
47
  *
48
+ * @fires {CustomEvent} submit - Fired when a new message is submitted, either by clicking the "send" button, or pressing the Enter key.
49
+ *
48
50
  * @customElement vaadin-message-input
49
51
  * @extends HTMLElement
50
52
  * @mixes MessageInputMixin
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.1.0-beta2",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -21,6 +21,17 @@
21
21
  ]
22
22
  }
23
23
  },
24
+ {
25
+ "name": "i18n",
26
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
27
+ "value": {
28
+ "type": [
29
+ "Object",
30
+ "null",
31
+ "undefined"
32
+ ]
33
+ }
34
+ },
24
35
  {
25
36
  "name": "theme",
26
37
  "description": "The theme variants to apply to the component.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.1.0-beta2",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {