@gitlab/ui 88.0.0 → 88.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/components/experimental/duo/chat/duo_chat.js +9 -1
  3. package/dist/index.css +2 -2
  4. package/dist/index.css.map +1 -1
  5. package/dist/tokens/build/js/tokens.dark.js +120 -1
  6. package/dist/tokens/build/js/tokens.js +120 -1
  7. package/dist/tokens/css/tokens.css +119 -0
  8. package/dist/tokens/css/tokens.dark.css +119 -0
  9. package/dist/tokens/js/tokens.dark.js +119 -0
  10. package/dist/tokens/js/tokens.js +119 -0
  11. package/dist/tokens/json/tokens.dark.json +2878 -0
  12. package/dist/tokens/json/tokens.json +2878 -0
  13. package/dist/tokens/scss/_tokens.dark.scss +119 -0
  14. package/dist/tokens/scss/_tokens.scss +119 -0
  15. package/dist/tokens/scss/_tokens_custom_properties.scss +119 -0
  16. package/package.json +2 -2
  17. package/src/components/base/button/button.scss +273 -258
  18. package/src/components/base/keyset_pagination/keyset_pagination.scss +0 -7
  19. package/src/components/base/search_box_by_click/search_box_by_click.scss +2 -3
  20. package/src/components/experimental/duo/chat/duo_chat.vue +8 -1
  21. package/src/tokens/build/css/tokens.css +119 -0
  22. package/src/tokens/build/css/tokens.dark.css +119 -0
  23. package/src/tokens/build/js/tokens.dark.js +119 -0
  24. package/src/tokens/build/js/tokens.js +119 -0
  25. package/src/tokens/build/json/tokens.dark.json +2878 -0
  26. package/src/tokens/build/json/tokens.json +2878 -0
  27. package/src/tokens/build/scss/_tokens.dark.scss +119 -0
  28. package/src/tokens/build/scss/_tokens.scss +119 -0
  29. package/src/tokens/build/scss/_tokens_custom_properties.scss +119 -0
  30. package/src/tokens/contextual/button.tokens.json +883 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [88.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v88.1.0...v88.2.0) (2024-08-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlDuoChat:** provide hooks for consumer to focus + scroll ([3bba19f](https://gitlab.com/gitlab-org/gitlab-ui/commit/3bba19fce1cab5eef641fc7b838fc207a0641275))
7
+
8
+ # [88.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v88.0.0...v88.1.0) (2024-08-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * **DesignTokens:** add button design tokens ([a23d383](https://gitlab.com/gitlab-org/gitlab-ui/commit/a23d3833c6426a26561b2a846bdee01adab49a3a))
14
+ * **GlButton:** add design tokens to GlButton ([5bd4cd3](https://gitlab.com/gitlab-org/gitlab-ui/commit/5bd4cd3f2e0766663e0e907374603748e5511b1e))
15
+
1
16
  # [88.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v87.8.0...v88.0.0) (2024-08-06)
2
17
 
3
18
 
@@ -331,9 +331,17 @@ var script = {
331
331
  },
332
332
  async scrollToBottom() {
333
333
  var _this$$refs$anchor, _this$$refs$anchor$sc;
334
+ // This method is also called directly by consumers of this component
335
+ // https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/3269f6200dc3821c62a3992b40c971dd9ee55d87/webviews/vue2/gitlab_duo_chat/src/App.vue#L97
334
336
  await this.$nextTick();
335
337
  (_this$$refs$anchor = this.$refs.anchor) === null || _this$$refs$anchor === void 0 ? void 0 : (_this$$refs$anchor$sc = _this$$refs$anchor.scrollIntoView) === null || _this$$refs$anchor$sc === void 0 ? void 0 : _this$$refs$anchor$sc.call(_this$$refs$anchor);
336
338
  },
339
+ focusChatInput() {
340
+ var _this$$refs$prompt, _this$$refs$prompt$$e;
341
+ // This method is also called directly by consumers of this component
342
+ // https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/dae2d4669ab4da327921492a2962beae8a05c290/webviews/vue2/gitlab_duo_chat/src/App.vue#L109
343
+ (_this$$refs$prompt = this.$refs.prompt) === null || _this$$refs$prompt === void 0 ? void 0 : (_this$$refs$prompt$$e = _this$$refs$prompt.$el) === null || _this$$refs$prompt$$e === void 0 ? void 0 : _this$$refs$prompt$$e.focus();
344
+ },
337
345
  onTrackFeedback(event) {
338
346
  /**
339
347
  * Notify listeners about the feedback form submission on a response message.
@@ -392,7 +400,7 @@ var script = {
392
400
  let prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
393
401
  this.prompt = prompt;
394
402
  await this.$nextTick();
395
- this.$refs.prompt.$el.focus();
403
+ this.focusChatInput();
396
404
  },
397
405
  selectSlashCommand(index) {
398
406
  const command = this.filteredSlashCommands[index];