@gitlab/ui 101.16.0 → 102.1.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 (115) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/components/experimental/duo/chat/components/duo_chat_context/constants.js +9 -0
  3. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.js +11 -0
  4. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.js +8 -0
  5. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.js +8 -0
  6. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.js +8 -0
  7. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.js +8 -0
  8. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.js +8 -0
  9. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.js +8 -0
  10. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.js +8 -0
  11. package/dist/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +8 -0
  12. package/dist/components/experimental/duo/chat/components/duo_chat_context/utils.js +8 -0
  13. package/dist/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.js +8 -0
  14. package/dist/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.js +8 -0
  15. package/dist/components/experimental/duo/chat/components/duo_chat_message/buttons_utils.js +8 -0
  16. package/dist/components/experimental/duo/chat/components/duo_chat_message/constants.js +9 -0
  17. package/dist/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js +8 -0
  18. package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +8 -0
  19. package/dist/components/experimental/duo/chat/components/duo_chat_message/utils.js +9 -0
  20. package/dist/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.js +8 -0
  21. package/dist/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.js +8 -0
  22. package/dist/components/experimental/duo/chat/constants.js +9 -0
  23. package/dist/components/experimental/duo/chat/duo_chat.js +8 -0
  24. package/dist/components/experimental/duo/chat/markdown_renderer.js +8 -1
  25. package/dist/components/experimental/duo/chat/mock_data.js +8 -0
  26. package/dist/components/experimental/duo/user_feedback/user_feedback.js +8 -0
  27. package/dist/components/experimental/duo/user_feedback/user_feedback_modal.js +1 -0
  28. package/dist/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.js +8 -0
  29. package/dist/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.js +8 -0
  30. package/dist/index.css +1 -1
  31. package/dist/index.css.map +1 -1
  32. package/dist/vendor/bootstrap-vue/src/components/button/button.js +0 -4
  33. package/dist/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -2
  34. package/dist/vendor/bootstrap-vue/src/components/nav/nav.js +6 -9
  35. package/dist/vendor/bootstrap-vue/src/components/tabs/tabs.js +6 -30
  36. package/dist/vendor/bootstrap-vue/src/constants/env.js +1 -10
  37. package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +1 -2
  38. package/dist/vendor/bootstrap-vue/src/index.js +1 -11
  39. package/dist/vendor/bootstrap-vue/src/mixins/form-radio-check-group.js +2 -16
  40. package/dist/vendor/bootstrap-vue/src/mixins/form-radio-check.js +14 -104
  41. package/dist/vendor/bootstrap-vue/src/utils/plugins.js +1 -41
  42. package/package.json +1 -1
  43. package/src/components/experimental/duo/chat/components/duo_chat_context/constants.js +9 -0
  44. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.vue +12 -0
  45. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.md +12 -3
  46. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +9 -0
  47. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.vue +9 -0
  48. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.vue +9 -0
  49. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.vue +9 -0
  50. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.vue +9 -0
  51. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +9 -0
  52. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +9 -0
  53. package/src/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +9 -0
  54. package/src/components/experimental/duo/chat/components/duo_chat_context/utils.js +9 -0
  55. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.md +9 -0
  56. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.vue +9 -0
  57. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.md +9 -0
  58. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +9 -0
  59. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +9 -0
  60. package/src/components/experimental/duo/chat/components/duo_chat_message/buttons_utils.js +9 -0
  61. package/src/components/experimental/duo/chat/components/duo_chat_message/constants.js +9 -0
  62. package/src/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js +9 -0
  63. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +9 -0
  64. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +9 -0
  65. package/src/components/experimental/duo/chat/components/duo_chat_message/insert_code_snippet_element.js +9 -0
  66. package/src/components/experimental/duo/chat/components/duo_chat_message/utils.js +9 -0
  67. package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.md +9 -0
  68. package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.vue +9 -0
  69. package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.md +9 -0
  70. package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue +9 -0
  71. package/src/components/experimental/duo/chat/constants.js +9 -0
  72. package/src/components/experimental/duo/chat/duo_chat.md +8 -0
  73. package/src/components/experimental/duo/chat/duo_chat.scss +9 -0
  74. package/src/components/experimental/duo/chat/duo_chat.vue +9 -0
  75. package/src/components/experimental/duo/chat/markdown_renderer.js +9 -0
  76. package/src/components/experimental/duo/chat/mock_data.js +9 -0
  77. package/src/components/experimental/duo/chat/variables.scss +9 -1
  78. package/src/components/experimental/duo/user_feedback/user_feedback.md +9 -0
  79. package/src/components/experimental/duo/user_feedback/user_feedback.vue +9 -0
  80. package/src/components/experimental/duo/user_feedback/user_feedback_modal.vue +6 -0
  81. package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.md +9 -0
  82. package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.vue +9 -0
  83. package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.md +9 -0
  84. package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.vue +9 -0
  85. package/src/vendor/bootstrap/scss/_reboot.scss +2 -5
  86. package/src/vendor/bootstrap-vue/src/components/button/MODIFICATIONS.md +16 -0
  87. package/src/vendor/bootstrap-vue/src/components/button/README.md +0 -39
  88. package/src/vendor/bootstrap-vue/src/components/button/button.js +0 -4
  89. package/src/vendor/bootstrap-vue/src/components/button/button.spec.js +0 -36
  90. package/src/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -1
  91. package/src/vendor/bootstrap-vue/src/components/form-checkbox/README.md +3 -174
  92. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox-group.spec.js +0 -117
  93. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox.spec.js +0 -409
  94. package/src/vendor/bootstrap-vue/src/components/form-radio/README.md +0 -129
  95. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio-group.spec.js +0 -112
  96. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio.spec.js +0 -365
  97. package/src/vendor/bootstrap-vue/src/components/nav/README.md +0 -20
  98. package/src/vendor/bootstrap-vue/src/components/nav/nav.js +7 -9
  99. package/src/vendor/bootstrap-vue/src/components/nav/nav.spec.js +0 -67
  100. package/src/vendor/bootstrap-vue/src/components/tabs/README.md +45 -187
  101. package/src/vendor/bootstrap-vue/src/components/tabs/tabs.js +6 -29
  102. package/src/vendor/bootstrap-vue/src/components/tabs/tabs.spec.js +0 -58
  103. package/src/vendor/bootstrap-vue/src/constants/env.js +0 -14
  104. package/src/vendor/bootstrap-vue/src/constants/key-codes.js +0 -1
  105. package/src/vendor/bootstrap-vue/src/index.js +0 -17
  106. package/src/vendor/bootstrap-vue/src/mixins/form-radio-check-group.js +3 -20
  107. package/src/vendor/bootstrap-vue/src/mixins/form-radio-check.js +19 -114
  108. package/src/vendor/bootstrap-vue/src/utils/config.spec.js +0 -18
  109. package/src/vendor/bootstrap-vue/src/utils/plugins.js +0 -33
  110. package/dist/vendor/bootstrap-vue/src/browser.js +0 -8
  111. package/dist/vendor/bootstrap-vue/src/components/index.js +0 -11
  112. package/dist/vendor/bootstrap-vue/src/constants/classes.js +0 -3
  113. package/src/vendor/bootstrap-vue/src/browser.js +0 -9
  114. package/src/vendor/bootstrap-vue/src/components/index.js +0 -11
  115. package/src/vendor/bootstrap-vue/src/constants/classes.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ # [102.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v102.0.0...v102.1.0) (2024-11-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add index.js back to the library ([c3e38b1](https://gitlab.com/gitlab-org/gitlab-ui/commit/c3e38b1776794f573bc1175e83c3b870ae5a3787))
7
+
8
+
9
+ ### Features
10
+
11
+ * **Bootstrap:** Remove reboot colors on body ([9e76796](https://gitlab.com/gitlab-org/gitlab-ui/commit/9e76796b74d37b39ece81789065b6beca59dd7d4))
12
+
13
+ # [102.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.16.0...v102.0.0) (2024-11-12)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **GlCheckbox:** always add a label, even for empty content ([4154c08](https://gitlab.com/gitlab-org/gitlab-ui/commit/4154c082e5935031f1f5670fc16ad3c87b736251))
19
+
20
+
21
+ ### Features
22
+
23
+ * **FormRadio,FormCheckbox:** Remove buttons style ([5ca17b0](https://gitlab.com/gitlab-org/gitlab-ui/commit/5ca17b0841d2d13c5a977cc674ef24a7273fa1d4))
24
+ * **GlButton:** Remove pill and squared properties ([7c61763](https://gitlab.com/gitlab-org/gitlab-ui/commit/7c617631e03f4e042caf95471d3d15a22856fac3))
25
+ * **GlFormRadio,GlFormCheckbox:** Remove plain style ([415542c](https://gitlab.com/gitlab-org/gitlab-ui/commit/415542c144bcd599428065c736db16233801526a))
26
+ * **GlNav,GlTabs:** Remove vertical and card designs ([8bd8b00](https://gitlab.com/gitlab-org/gitlab-ui/commit/8bd8b00821494e80aacffb5210b24c73fc9a608a))
27
+
28
+
29
+ ### BREAKING CHANGES
30
+
31
+ * **GlNav,GlTabs:** BootstrapVue's Nav and Tabs components support a vertical, and card
32
+ styles. These styles are now removed in GitLab UI.
33
+ * **GlFormRadio,GlFormCheckbox:** The GlFormRadio and GlFormCheckbox do not support the property 'plain'
34
+ anymore. Prefer overriding the CSS styles in case native browser styles
35
+ should be used instead.
36
+ * **FormRadio,FormCheckbox:** BootstrapVue's Radio Buttons and Checkboxes support a button style mode
37
+ which was never documented within our system. We do not support adding
38
+ the property 'button' on GlFormRadio and GlFormCheckbox.
39
+ * **GlButton:** The GlButton does not support the properties 'pill' and 'squared'
40
+ anymore.
41
+ Prefer using the styles with the usual border radius. When absolutely
42
+ necessary, apply GitLab UI Util CSS classes to override the border
43
+ radius
44
+
1
45
  # [101.16.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.15.0...v101.16.0) (2024-11-07)
2
46
 
3
47
 
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
3
+ *
4
+ * Please use the corresponding component in Duo-UI going forward.
5
+ * All future development and maintenance for Duo components should take place in Duo-UI.
6
+ *
7
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
8
+ */
9
+
1
10
  const CONTEXT_ITEM_CATEGORY_ISSUE = 'issue';
2
11
  const CONTEXT_ITEM_CATEGORY_MERGE_REQUEST = 'merge_request';
3
12
  const CONTEXT_ITEM_CATEGORY_FILE = 'file';
@@ -8,6 +8,14 @@ import { CONTEXT_ITEM_CATEGORY_LOCAL_GIT, LANGUAGE_IDENTIFIER_DIFF, LANGUAGE_IDE
8
8
  import GlAlert from '../../../../../../base/alert/alert';
9
9
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
10
10
 
11
+ /**
12
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
13
+ *
14
+ * Please use the corresponding component in Duo-UI going forward.
15
+ * All future development and maintenance for Duo components should take place in Duo-UI.
16
+ *
17
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
18
+ */
11
19
  var script = {
12
20
  name: 'GlDuoChatContextItemDetailsModal',
13
21
  components: {
@@ -93,6 +101,9 @@ var script = {
93
101
  if (this.contextItem.category !== CONTEXT_ITEM_CATEGORY_DEPENDENCY) {
94
102
  return null;
95
103
  }
104
+ if (!this.contextItem.content) {
105
+ return null;
106
+ }
96
107
  try {
97
108
  return JSON.parse(this.contextItem.content);
98
109
  } catch (error) {
@@ -7,6 +7,14 @@ import GlDuoChatContextItemMenuCategoryItems from './duo_chat_context_item_menu_
7
7
  import GlDuoChatContextItemMenuSearchItems from './duo_chat_context_item_menu_search_items';
8
8
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
9
 
10
+ /**
11
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
12
+ *
13
+ * Please use the corresponding component in Duo-UI going forward.
14
+ * All future development and maintenance for Duo components should take place in Duo-UI.
15
+ *
16
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
17
+ */
10
18
  const SEARCH_DEBOUNCE_MS = 30;
11
19
  var script = {
12
20
  name: 'GlDuoChatContextItemMenu',
@@ -3,6 +3,14 @@ import GlIcon from '../../../../../../base/icon/icon';
3
3
  import { categoriesValidator } from '../utils';
4
4
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
5
5
 
6
+ /**
7
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
8
+ *
9
+ * Please use the corresponding component in Duo-UI going forward.
10
+ * All future development and maintenance for Duo components should take place in Duo-UI.
11
+ *
12
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
13
+ */
6
14
  var script = {
7
15
  name: 'GlDuoChatContextItemMenuCategoryItems',
8
16
  components: {
@@ -5,6 +5,14 @@ import { categoryValidator, contextItemValidator, getContextItemSecondaryText, g
5
5
  import GlBadge from '../../../../../../base/badge/badge';
6
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
7
7
 
8
+ /**
9
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
10
+ *
11
+ * Please use the corresponding component in Duo-UI going forward.
12
+ * All future development and maintenance for Duo components should take place in Duo-UI.
13
+ *
14
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
15
+ */
8
16
  var script = {
9
17
  name: 'GlDuoChatContextItemMenuSearchItem',
10
18
  components: {
@@ -7,6 +7,14 @@ import GlDuoChatContextItemMenuSearchItemsLoading from './duo_chat_context_item_
7
7
  import GlDuoChatContextItemMenuSearchItem from './duo_chat_context_item_menu_search_item';
8
8
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
9
 
10
+ /**
11
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
12
+ *
13
+ * Please use the corresponding component in Duo-UI going forward.
14
+ * All future development and maintenance for Duo components should take place in Duo-UI.
15
+ *
16
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
17
+ */
10
18
  var script = {
11
19
  name: 'GlDuoChatContextItemMenuSearchItems',
12
20
  components: {
@@ -1,6 +1,14 @@
1
1
  import { translate } from '../../../../../../../utils/i18n';
2
2
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
3
 
4
+ /**
5
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
6
+ *
7
+ * Please use the corresponding component in Duo-UI going forward.
8
+ * All future development and maintenance for Duo components should take place in Duo-UI.
9
+ *
10
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
11
+ */
4
12
  var script = {
5
13
  name: 'GlDuoChatContextItemMenuSearchItemsLoading',
6
14
  props: {
@@ -8,6 +8,14 @@ import { formatMergeRequestId, formatIssueId, getContextItemIcon, getContextItem
8
8
  import GlBadge from '../../../../../../base/badge/badge';
9
9
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
10
10
 
11
+ /**
12
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
13
+ *
14
+ * Please use the corresponding component in Duo-UI going forward.
15
+ * All future development and maintenance for Duo components should take place in Duo-UI.
16
+ *
17
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
18
+ */
11
19
  var script = {
12
20
  name: 'DuoChatContextItemPopover',
13
21
  components: {
@@ -8,6 +8,14 @@ import GlDuoChatContextItemDetailsModal from '../duo_chat_context_item_details_m
8
8
  import { contextItemsValidator, getContextItemIcon } from '../utils';
9
9
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
10
10
 
11
+ /**
12
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
13
+ *
14
+ * Please use the corresponding component in Duo-UI going forward.
15
+ * All future development and maintenance for Duo components should take place in Duo-UI.
16
+ *
17
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
18
+ */
11
19
  var script = {
12
20
  name: 'GlDuoChatContextItemSelections',
13
21
  components: {
@@ -1,5 +1,13 @@
1
1
  import { CONTEXT_ITEM_CATEGORY_DEPENDENCY, CONTEXT_ITEM_CATEGORY_FILE, CONTEXT_ITEM_CATEGORY_LOCAL_GIT, CONTEXT_ITEM_CATEGORY_ISSUE, CONTEXT_ITEM_CATEGORY_MERGE_REQUEST } from './constants';
2
2
 
3
+ /**
4
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
5
+ *
6
+ * Please use the corresponding component in Duo-UI going forward.
7
+ * All future development and maintenance for Duo components should take place in Duo-UI.
8
+ *
9
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
10
+ */
3
11
  const MOCK_CATEGORIES = [{
4
12
  label: 'Files',
5
13
  value: CONTEXT_ITEM_CATEGORY_FILE,
@@ -1,6 +1,14 @@
1
1
  import { translate } from '../../../../../../utils/i18n';
2
2
  import { CONTEXT_ITEM_CATEGORY_LOCAL_GIT, CONTEXT_ITEM_LOCAL_GIT_COMMIT, CONTEXT_ITEM_LOCAL_GIT_DIFF, CONTEXT_ITEM_CATEGORY_FILE, CONTEXT_ITEM_CATEGORY_ISSUE, CONTEXT_ITEM_CATEGORY_MERGE_REQUEST } from './constants';
3
3
 
4
+ /**
5
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
6
+ *
7
+ * Please use the corresponding component in Duo-UI going forward.
8
+ * All future development and maintenance for Duo components should take place in Duo-UI.
9
+ *
10
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
11
+ */
4
12
  function categoryValidator(category) {
5
13
  return Boolean(category && category.value && category.label && category.icon);
6
14
  }
@@ -2,6 +2,14 @@ import GlDuoChatMessage from '../duo_chat_message/duo_chat_message';
2
2
  import { translate } from '../../../../../../utils/i18n';
3
3
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
4
4
 
5
+ /**
6
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
7
+ *
8
+ * Please use the corresponding component in Duo-UI going forward.
9
+ * All future development and maintenance for Duo components should take place in Duo-UI.
10
+ *
11
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
12
+ */
5
13
  const i18n = {
6
14
  CONVERSATION_NEW_CHAT: translate('GlDuoChatConversation.newChat', 'New chat')
7
15
  };
@@ -4,6 +4,14 @@ import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loa
4
4
  import { LOADING_TRANSITION_DURATION } from '../../constants';
5
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
6
6
 
7
+ /**
8
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
9
+ *
10
+ * Please use the corresponding component in Duo-UI going forward.
11
+ * All future development and maintenance for Duo components should take place in Duo-UI.
12
+ *
13
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
14
+ */
7
15
  const i18n = {
8
16
  LOADER_LOADING_MESSAGE: translate('GlDuoChatLoader.loaderLoadingMessage', '%{tool} is %{transition} an answer'),
9
17
  LOADER_LOADING_TRANSITIONS: [translate('GlDuoChatLoader.loaderLoadingTransitionsFinding', 'finding'), translate('GlDuoChatLoader.loaderLoadingTransitionsWorkingOn', 'working on'), translate('GlDuoChatLoader.loaderLoadingTransitionsGenerating', 'generating'), translate('GlDuoChatLoader.loaderLoadingTransitionsProducing', 'producing')],
@@ -1,5 +1,13 @@
1
1
  import iconsPath from '@gitlab/svgs/dist/icons.svg';
2
2
 
3
+ /**
4
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
5
+ *
6
+ * Please use the corresponding component in Duo-UI going forward.
7
+ * All future development and maintenance for Duo components should take place in Duo-UI.
8
+ *
9
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
10
+ */
3
11
  const createButton = function () {
4
12
  let title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Insert the code snippet';
5
13
  let iconId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'insert';
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
3
+ *
4
+ * Please use the corresponding component in Duo-UI going forward.
5
+ * All future development and maintenance for Duo components should take place in Duo-UI.
6
+ *
7
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
8
+ */
9
+
1
10
  const DUO_CODE_SCRIM_TOP_CLASS = 'scrim-top';
2
11
  const DUO_CODE_SCRIM_BOTTOM_CLASS = 'scrim-bottom';
3
12
  const DUO_CODE_SCRIM_OFFSET = 16;
@@ -1,5 +1,13 @@
1
1
  import { createButton } from './buttons_utils';
2
2
 
3
+ /**
4
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
5
+ *
6
+ * Please use the corresponding component in Duo-UI going forward.
7
+ * All future development and maintenance for Duo components should take place in Duo-UI.
8
+ *
9
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
10
+ */
3
11
  class CopyCodeElement extends HTMLElement {
4
12
  constructor() {
5
13
  super();
@@ -17,6 +17,14 @@ import { concatUntilEmpty } from './utils';
17
17
  import { DUO_CODE_SCRIM_BOTTOM_CLASS, DUO_CODE_SCRIM_OFFSET, DUO_CODE_SCRIM_TOP_CLASS } from './constants';
18
18
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
19
19
 
20
+ /**
21
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
22
+ *
23
+ * Please use the corresponding component in Duo-UI going forward.
24
+ * All future development and maintenance for Duo components should take place in Duo-UI.
25
+ *
26
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
27
+ */
20
28
  const i18n = {
21
29
  MODAL: {
22
30
  TITLE: translate('GlDuoChatMessage.modalTitle', 'Give feedback on GitLab Duo Chat'),
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
3
+ *
4
+ * Please use the corresponding component in Duo-UI going forward.
5
+ * All future development and maintenance for Duo components should take place in Duo-UI.
6
+ *
7
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
8
+ */
9
+
1
10
  const concatUntilEmpty = arr => {
2
11
  if (!arr) return '';
3
12
  let end = arr.findIndex(el => !el);
@@ -4,6 +4,14 @@ import GlLink from '../../../../../base/link/link';
4
4
  import { DOCUMENTATION_SOURCE_TYPES } from '../../constants';
5
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
6
6
 
7
+ /**
8
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
9
+ *
10
+ * Please use the corresponding component in Duo-UI going forward.
11
+ * All future development and maintenance for Duo components should take place in Duo-UI.
12
+ *
13
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
14
+ */
7
15
  const i18n = {
8
16
  MESSAGE_SOURCE: function () {
9
17
  let count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
@@ -1,6 +1,14 @@
1
1
  import GlButton from '../../../../../base/button/button';
2
2
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
3
 
4
+ /**
5
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
6
+ *
7
+ * Please use the corresponding component in Duo-UI going forward.
8
+ * All future development and maintenance for Duo components should take place in Duo-UI.
9
+ *
10
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
11
+ */
4
12
  var script = {
5
13
  name: 'GlDuoChatPredefinedPrompts',
6
14
  components: {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
3
+ *
4
+ * Please use the corresponding component in Duo-UI going forward.
5
+ * All future development and maintenance for Duo components should take place in Duo-UI.
6
+ *
7
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
8
+ */
9
+
1
10
  const CHAT_RESET_MESSAGE = '/reset';
2
11
  const CHAT_CLEAR_MESSAGE = '/clear';
3
12
  const CHAT_INCLUDE_MESSAGE = '/include';
@@ -18,6 +18,14 @@ import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_c
18
18
  import { CHAT_RESET_MESSAGE, CHAT_INCLUDE_MESSAGE, MESSAGE_MODEL_ROLES, CHAT_CLEAR_MESSAGE } from './constants';
19
19
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
20
20
 
21
+ /**
22
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
23
+ *
24
+ * Please use the corresponding component in Duo-UI going forward.
25
+ * All future development and maintenance for Duo components should take place in Duo-UI.
26
+ *
27
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
28
+ */
21
29
  const i18n = {
22
30
  CHAT_DEFAULT_TITLE: translate('GlDuoChat.chatDefaultTitle', 'GitLab Duo Chat'),
23
31
  CHAT_CLOSE_LABEL: translate('GlDuoChat.chatCloseLabel', 'Close the Code Explanation'),
@@ -1,7 +1,14 @@
1
1
  import { Marked } from 'marked';
2
2
  import markedBidi from 'marked-bidi';
3
3
 
4
- // eslint-disable-next-line no-restricted-imports
4
+ /**
5
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
6
+ *
7
+ * Please use the corresponding component in Duo-UI going forward.
8
+ * All future development and maintenance for Duo components should take place in Duo-UI.
9
+ *
10
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
11
+ */
5
12
  const duoMarked = new Marked([{
6
13
  async: false,
7
14
  breaks: false,
@@ -2,6 +2,14 @@ import { setStoryTimeout } from '../../../../utils/test_utils';
2
2
  import { DOCUMENTATION_SOURCE_TYPES, MESSAGE_MODEL_ROLES, CHAT_RESET_MESSAGE, CHAT_CLEAR_MESSAGE, CHAT_INCLUDE_MESSAGE } from './constants';
3
3
  import { getMockContextItems } from './components/duo_chat_context/mock_context_data';
4
4
 
5
+ /**
6
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
7
+ *
8
+ * Please use the corresponding component in Duo-UI going forward.
9
+ * All future development and maintenance for Duo components should take place in Duo-UI.
10
+ *
11
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
12
+ */
5
13
  const MOCK_SOURCES = [{
6
14
  title: 'GitLab Handbook',
7
15
  source_type: DOCUMENTATION_SOURCE_TYPES.HANDBOOK.value,
@@ -3,6 +3,14 @@ import GlButton from '../../../base/button/button';
3
3
  import FeedbackModal from './user_feedback_modal';
4
4
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
5
5
 
6
+ /**
7
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
8
+ *
9
+ * Please use the corresponding component in Duo-UI going forward.
10
+ * All future development and maintenance for Duo components should take place in Duo-UI.
11
+ *
12
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
13
+ */
6
14
  const i18n = {
7
15
  FEEDBACK_LINK_TEXT: 'Give feedback to improve this answer.',
8
16
  FEEDBACK_THANKS: 'Thank you for your feedback.'
@@ -5,6 +5,7 @@ import GlFormTextarea from '../../../base/form/form_textarea/form_textarea';
5
5
  import GlFormCheckboxGroup from '../../../base/form/form_checkbox/form_checkbox_group';
6
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
7
7
 
8
+ //
8
9
  const i18n = {
9
10
  MODAL: {
10
11
  TITLE: 'Give feedback on GitLab Duo',
@@ -5,6 +5,14 @@ import { GlTooltipDirective } from '../../../../../../directives/tooltip';
5
5
  import { translate } from '../../../../../../utils/i18n';
6
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
7
7
 
8
+ /**
9
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
10
+ *
11
+ * Please use the corresponding component in Duo-UI going forward.
12
+ * All future development and maintenance for Duo components should take place in Duo-UI.
13
+ *
14
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
15
+ */
8
16
  var script = {
9
17
  name: 'GlDuoWorkflowPanel',
10
18
  components: {
@@ -6,6 +6,14 @@ import GlFormInput from '../../../../../base/form/form_input/form_input';
6
6
  import { translate } from '../../../../../../utils/i18n';
7
7
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
8
8
 
9
+ /**
10
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
11
+ *
12
+ * Please use the corresponding component in Duo-UI going forward.
13
+ * All future development and maintenance for Duo components should take place in Duo-UI.
14
+ *
15
+ * For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
16
+ */
9
17
  var script = {
10
18
  name: 'GlDuoWorkflowPrompt',
11
19
  components: {