@gitlab/ui 80.19.0 → 80.19.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [80.19.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.19.0...v80.19.1) (2024-06-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **duochat:** Don't submit on enter if composing in IME ([ef57dec](https://gitlab.com/gitlab-org/gitlab-ui/commit/ef57dece9dac129dc2cd77d23d2be5ac7e5d072e)), closes [/gitlab.com/gitlab-org/gitlab-ui/-/issues/2537#note_1938464119](https://gitlab.com//gitlab.com/gitlab-org/gitlab-ui/-/issues/2537/issues/note_1938464119)
7
+
1
8
  # [80.19.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.18.0...v80.19.0) (2024-06-05)
2
9
 
3
10
 
@@ -302,7 +302,8 @@ var script = {
302
302
  metaKey,
303
303
  ctrlKey,
304
304
  altKey,
305
- shiftKey
305
+ shiftKey,
306
+ isComposing
306
307
  } = e;
307
308
  if (this.shouldShowSlashCommands) {
308
309
  e.preventDefault();
@@ -315,7 +316,7 @@ var script = {
315
316
  } else {
316
317
  this.activeCommandIndex = 0;
317
318
  }
318
- } else if (e.key === 'Enter' && !(metaKey || ctrlKey || altKey || shiftKey)) {
319
+ } else if (e.key === 'Enter' && !isComposing && !(metaKey || ctrlKey || altKey || shiftKey)) {
319
320
  e.preventDefault();
320
321
  this.sendChatPrompt();
321
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "80.19.0",
3
+ "version": "80.19.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -16,24 +16,6 @@ The current page's value should be bound using `v-model`, e.g.:
16
16
  </template>
17
17
  ```
18
18
 
19
- ## Compact pagination
20
-
21
- In some cases, you might not be able to provide the total items count because your API doesn't
22
- support it or because of performance concerns. For such cases, the pagination component supports a
23
- compact mode, where only the previous and next buttons are displayed.
24
-
25
- To enable the compact mode, you'll need to provide the previous and/or next page numbers via the
26
- `prev-page` and `next-page` props respectively.
27
-
28
- > NOTE: If one of the props is omitted, the corresponding button will be disabled. If both
29
- > properties are omitted the pagination won't render at all.
30
-
31
- ```html
32
- <template>
33
- <gl-pagination :value="2" :prev-page="1" :next-page="3" />
34
- </template>
35
- ```
36
-
37
19
  ## Limits
38
20
 
39
21
  The `limits` prop is used to define pagination link limits based on Bootstrap's breakpoint sizes.
@@ -313,7 +313,7 @@ export default {
313
313
  this.$emit('track-feedback', event);
314
314
  },
315
315
  onInputKeyup(e) {
316
- const { metaKey, ctrlKey, altKey, shiftKey } = e;
316
+ const { metaKey, ctrlKey, altKey, shiftKey, isComposing } = e;
317
317
 
318
318
  if (this.shouldShowSlashCommands) {
319
319
  e.preventDefault();
@@ -327,8 +327,9 @@ export default {
327
327
  } else {
328
328
  this.activeCommandIndex = 0;
329
329
  }
330
- } else if (e.key === 'Enter' && !(metaKey || ctrlKey || altKey || shiftKey)) {
330
+ } else if (e.key === 'Enter' && !isComposing && !(metaKey || ctrlKey || altKey || shiftKey)) {
331
331
  e.preventDefault();
332
+
332
333
  this.sendChatPrompt();
333
334
  }
334
335
  },