@gitlab/ui 102.0.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 (89) hide show
  1. package/CHANGELOG.md +12 -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 +8 -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 +7 -0
  31. package/dist/index.css.map +1 -0
  32. package/dist/index.js +115 -0
  33. package/dist/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -2
  34. package/dist/vendor/bootstrap-vue/src/constants/env.js +1 -10
  35. package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +1 -2
  36. package/dist/vendor/bootstrap-vue/src/utils/plugins.js +1 -41
  37. package/package.json +2 -1
  38. package/src/components/experimental/duo/chat/components/duo_chat_context/constants.js +9 -0
  39. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.vue +9 -0
  40. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.md +12 -3
  41. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +9 -0
  42. 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
  43. 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
  44. 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
  45. 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
  46. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +9 -0
  47. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +9 -0
  48. package/src/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +9 -0
  49. package/src/components/experimental/duo/chat/components/duo_chat_context/utils.js +9 -0
  50. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.md +9 -0
  51. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.vue +9 -0
  52. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.md +9 -0
  53. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +9 -0
  54. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +9 -0
  55. package/src/components/experimental/duo/chat/components/duo_chat_message/buttons_utils.js +9 -0
  56. package/src/components/experimental/duo/chat/components/duo_chat_message/constants.js +9 -0
  57. package/src/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js +9 -0
  58. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +9 -0
  59. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +9 -0
  60. package/src/components/experimental/duo/chat/components/duo_chat_message/insert_code_snippet_element.js +9 -0
  61. package/src/components/experimental/duo/chat/components/duo_chat_message/utils.js +9 -0
  62. package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.md +9 -0
  63. package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.vue +9 -0
  64. package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.md +9 -0
  65. package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue +9 -0
  66. package/src/components/experimental/duo/chat/constants.js +9 -0
  67. package/src/components/experimental/duo/chat/duo_chat.md +8 -0
  68. package/src/components/experimental/duo/chat/duo_chat.scss +9 -0
  69. package/src/components/experimental/duo/chat/duo_chat.vue +9 -0
  70. package/src/components/experimental/duo/chat/markdown_renderer.js +9 -0
  71. package/src/components/experimental/duo/chat/mock_data.js +9 -0
  72. package/src/components/experimental/duo/chat/variables.scss +9 -1
  73. package/src/components/experimental/duo/user_feedback/user_feedback.md +9 -0
  74. package/src/components/experimental/duo/user_feedback/user_feedback.vue +9 -0
  75. package/src/components/experimental/duo/user_feedback/user_feedback_modal.vue +6 -0
  76. package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.md +9 -0
  77. package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.vue +9 -0
  78. package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.md +9 -0
  79. package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.vue +9 -0
  80. package/src/index.js +130 -0
  81. package/src/vendor/bootstrap/scss/_reboot.scss +2 -5
  82. package/src/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -1
  83. package/src/vendor/bootstrap-vue/src/constants/env.js +0 -14
  84. package/src/vendor/bootstrap-vue/src/constants/key-codes.js +0 -1
  85. package/src/vendor/bootstrap-vue/src/utils/plugins.js +0 -33
  86. package/dist/vendor/bootstrap-vue/src/browser.js +0 -8
  87. package/dist/vendor/bootstrap-vue/src/constants/classes.js +0 -3
  88. package/src/vendor/bootstrap-vue/src/browser.js +0 -9
  89. package/src/vendor/bootstrap-vue/src/constants/classes.js +0 -1
package/dist/index.js ADDED
@@ -0,0 +1,115 @@
1
+ export { default as GlDuoWorkflowPrompt } from './components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt';
2
+ export { default as GlDuoWorkflowPanel } from './components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel';
3
+ export { default as GlTableLite } from './components/base/table_lite/table_lite';
4
+ export { default as GlDropdownForm } from './components/base/dropdown/dropdown_form';
5
+ export { default as GlKeysetPagination } from './components/base/keyset_pagination/keyset_pagination';
6
+ export { default as GlInputGroupText } from './components/base/form/input_group_text/input_group_text';
7
+ export { default as GlFormCombobox } from './components/base/form/form_combobox/form_combobox';
8
+ export { default as GlTokenSelector } from './components/base/token_selector/token_selector';
9
+ export { default as GlNavItemDropdown } from './components/base/nav/nav_item_dropdown';
10
+ export { default as GlNav } from './components/base/nav/nav';
11
+ export { default as GlNavItem } from './components/base/nav/nav_item';
12
+ export { default as GlFormCheckboxTree } from './components/base/form/form_checkbox_tree/form_checkbox_tree';
13
+ export { default as GlMarkdown } from './components/base/markdown/markdown';
14
+ export { default as GlIntersectionObserver } from './components/utilities/intersection_observer/intersection_observer';
15
+ export { default as GlDeprecatedLink, default as GlLink } from './components/base/link/link';
16
+ export { default as GlIcon } from './components/base/icon/icon';
17
+ export { default as GlAnimatedChevronRightDownIcon } from './components/base/animated_icon/animated_chevron_right_down_icon';
18
+ export { default as GlAnimatedDuoChatIcon } from './components/base/animated_icon/animated_duo_chat_icon';
19
+ export { default as GlAnimatedLoaderIcon } from './components/base/animated_icon/animated_loader_icon';
20
+ export { default as GlAnimatedNotificationIcon } from './components/base/animated_icon/animated_notifications_icon';
21
+ export { default as GlAnimatedSidebarIcon } from './components/base/animated_icon/animated_sidebar_icon';
22
+ export { default as GlAnimatedSmileIcon } from './components/base/animated_icon/animated_smile_icon';
23
+ export { default as GlAnimatedSortIcon } from './components/base/animated_icon/animated_sort_icon';
24
+ export { default as GlAnimatedStarIcon } from './components/base/animated_icon/animated_star_icon';
25
+ export { default as GlAnimatedTodoIcon } from './components/base/animated_icon/animated_todo_icon';
26
+ export { default as GlAnimatedUploadIcon } from './components/base/animated_icon/animated_upload_icon';
27
+ export { default as GlLoadingIcon } from './components/base/loading_icon/loading_icon';
28
+ export { default as GlModal } from './components/base/modal/modal';
29
+ export { default as GlPagination } from './components/base/pagination/pagination';
30
+ export { default as GlPaginatedList } from './components/base/paginated_list/paginated_list';
31
+ export { default as GlPopover } from './components/base/popover/popover';
32
+ export { default as GlProgressBar } from './components/base/progress_bar/progress_bar';
33
+ export { default as GlToken } from './components/base/token/token';
34
+ export { default as GlBadge } from './components/base/badge/badge';
35
+ export { default as GlBanner } from './components/base/banner/banner';
36
+ export { default as GlButton } from './components/base/button/button';
37
+ export { default as GlTooltip } from './components/base/tooltip/tooltip';
38
+ export { default as GlToast } from './components/base/toast/toast';
39
+ export { default as GlDashboardSkeleton } from './components/regions/dashboard_skeleton/dashboard_skeleton';
40
+ export { default as GlEmptyState } from './components/regions/empty_state/empty_state';
41
+ export { default as GlForm } from './components/base/form/form';
42
+ export { default as GlFormCharacterCount } from './components/base/form/form_character_count/form_character_count';
43
+ export { default as GlFormDate } from './components/base/form/form_date/form_date';
44
+ export { default as GlFormInput } from './components/base/form/form_input/form_input';
45
+ export { default as GlFormInputGroup } from './components/base/form/form_input_group/form_input_group';
46
+ export { default as GlFormRadio } from './components/base/form/form_radio/form_radio';
47
+ export { default as GlFormRadioGroup } from './components/base/form/form_radio_group/form_radio_group';
48
+ export { default as GlFormSelect } from './components/base/form/form_select/form_select';
49
+ export { default as GlFormTextarea } from './components/base/form/form_textarea/form_textarea';
50
+ export { default as GlFormGroup } from './components/base/form/form_group/form_group';
51
+ export { default as GlFormFields } from './components/base/form/form_fields/form_fields';
52
+ export { default as GlSearchBoxByType } from './components/base/search_box_by_type/search_box_by_type';
53
+ export { default as GlSearchBoxByClick } from './components/base/search_box_by_click/search_box_by_click';
54
+ export { default as GlDropdownItem } from './components/base/dropdown/dropdown_item';
55
+ export { default as GlDropdownSectionHeader } from './components/base/dropdown/dropdown_section_header';
56
+ export { default as GlDropdownDivider } from './components/base/dropdown/dropdown_divider';
57
+ export { default as GlDropdownText } from './components/base/dropdown/dropdown_text';
58
+ export { default as GlDropdown } from './components/base/dropdown/dropdown';
59
+ export { default as GlCollapsibleListbox } from './components/base/new_dropdowns/listbox/listbox';
60
+ export { default as GlListboxItem } from './components/base/new_dropdowns/listbox/listbox_item';
61
+ export { default as GlDisclosureDropdown } from './components/base/new_dropdowns/disclosure/disclosure_dropdown';
62
+ export { default as GlDisclosureDropdownItem } from './components/base/new_dropdowns/disclosure/disclosure_dropdown_item';
63
+ export { default as GlDisclosureDropdownGroup } from './components/base/new_dropdowns/disclosure/disclosure_dropdown_group';
64
+ export { default as GlPath } from './components/base/path/path';
65
+ export { default as GlTable } from './components/base/table/table';
66
+ export { default as GlBreadcrumb } from './components/base/breadcrumb/breadcrumb';
67
+ export { default as GlScrollableTabs } from './components/base/tabs/tabs/scrollable_tabs';
68
+ export { default as GlTabs } from './components/base/tabs/tabs/tabs';
69
+ export { default as GlTab } from './components/base/tabs/tab/tab';
70
+ export { default as GlButtonGroup } from './components/base/button_group/button_group';
71
+ export { default as GlFormCheckbox } from './components/base/form/form_checkbox/form_checkbox';
72
+ export { default as GlFormCheckboxGroup } from './components/base/form/form_checkbox/form_checkbox_group';
73
+ export { default as GlAvatar } from './components/base/avatar/avatar';
74
+ export { default as GlAvatarsInline } from './components/base/avatars_inline/avatars_inline';
75
+ export { default as GlAvatarLabeled } from './components/base/avatar_labeled/avatar_labeled';
76
+ export { default as GlAvatarLink } from './components/base/avatar_link/avatar_link';
77
+ export { default as GlLabel } from './components/base/label/label';
78
+ export { default as GlDatepicker } from './components/base/datepicker/datepicker';
79
+ export { default as GlDaterangePicker } from './components/base/daterange_picker/daterange_picker';
80
+ export { default as GlToggle } from './components/base/toggle/toggle';
81
+ export { default as GlSorting } from './components/base/sorting/sorting';
82
+ export { default as GlInfiniteScroll } from './components/base/infinite_scroll/infinite_scroll';
83
+ export { default as GlAlert } from './components/base/alert/alert';
84
+ export { default as GlSegmentedControl } from './components/base/segmented_control/segmented_control';
85
+ export { default as GlSkeletonLoader } from './components/base/skeleton_loader/skeleton_loader';
86
+ export { default as GlDrawer } from './components/base/drawer/drawer';
87
+ export { default as GlCard } from './components/base/card/card';
88
+ export { default as GlFilteredSearchSuggestion } from './components/base/filtered_search/filtered_search_suggestion';
89
+ export { default as GlFilteredSearchSuggestionList } from './components/base/filtered_search/filtered_search_suggestion_list';
90
+ export { default as GlFilteredSearchTerm } from './components/base/filtered_search/filtered_search_term';
91
+ export { default as GlFilteredSearchToken } from './components/base/filtered_search/filtered_search_token';
92
+ export { default as GlFilteredSearchTokenSegment } from './components/base/filtered_search/filtered_search_token_segment';
93
+ export { default as GlFilteredSearch } from './components/base/filtered_search/filtered_search';
94
+ export { default as GlBroadcastMessage } from './components/base/broadcast_message/broadcast_message';
95
+ export { default as GlCollapse } from './components/base/collapse/collapse';
96
+ export { default as GlAccordion } from './components/base/accordion/accordion';
97
+ export { default as GlAccordionItem } from './components/base/accordion/accordion_item';
98
+ export { default as GlExperimentBadge } from './components/experimental/experiment_badge/experiment_badge';
99
+ export { default as GlDuoUserFeedback } from './components/experimental/duo/user_feedback/user_feedback';
100
+ export { default as GlDuoChat } from './components/experimental/duo/chat/duo_chat';
101
+ export { default as GlDuoChatContextItemMenu } from './components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu';
102
+ export { default as GlAnimatedNumber } from './components/utilities/animated_number/animated_number';
103
+ export { default as GlFriendlyWrap } from './components/utilities/friendly_wrap/friendly_wrap';
104
+ export { default as GlIntersperse } from './components/utilities/intersperse/intersperse';
105
+ export { default as GlSprintf } from './components/utilities/sprintf/sprintf';
106
+ export { default as GlTruncate } from './components/utilities/truncate/truncate';
107
+ export { default as GlTruncateText } from './components/utilities/truncate_text/truncate_text';
108
+ export { GlModalDirective } from './directives/modal';
109
+ export { GlTooltipDirective } from './directives/tooltip';
110
+ export { GlResizeObserverDirective } from './directives/resize_observer/resize_observer';
111
+ export { GlCollapseToggleDirective } from './directives/collapse_toggle';
112
+ export { SafeLinkDirective as GlSafeLinkDirective } from './directives/safe_link/safe_link';
113
+ export { SafeHtmlDirective as GlSafeHtmlDirective } from './directives/safe_html/safe_html';
114
+ export { OutsideDirective as GlOutsideDirective } from './directives/outside/outside';
115
+ export { HoverLoadDirective as GlHoverLoadDirective } from './directives/hover_load/hover_load';
@@ -1,6 +1,5 @@
1
1
  import { extend } from '../../vue';
2
2
  import { NAME_COLLAPSE } from '../../constants/components';
3
- import { CLASS_NAME_SHOW } from '../../constants/classes';
4
3
  import { EVENT_NAME_SHOW, EVENT_NAME_SHOWN, EVENT_NAME_HIDE, EVENT_NAME_HIDDEN } from '../../constants/events';
5
4
  import { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING } from '../../constants/props';
6
5
  import { SLOT_NAME_DEFAULT } from '../../constants/slots';
@@ -15,7 +14,7 @@ import { normalizeSlotMixin } from '../../mixins/normalize-slot';
15
14
  import { BVCollapse } from './helpers/bv-collapse';
16
15
 
17
16
  // --- Constants ---
18
-
17
+ const CLASS_NAME_SHOW = 'show';
19
18
  const ROOT_ACTION_EVENT_NAME_TOGGLE = getRootActionEventName(NAME_COLLAPSE, 'toggle');
20
19
  const ROOT_ACTION_EVENT_NAME_REQUEST_STATE = getRootActionEventName(NAME_COLLAPSE, 'request-state');
21
20
  const ROOT_EVENT_NAME_ACCORDION = getRootEventName(NAME_COLLAPSE, 'accordion');
@@ -9,7 +9,6 @@ const DOCUMENT = HAS_DOCUMENT_SUPPORT ? document : {};
9
9
  const NAVIGATOR = HAS_NAVIGATOR_SUPPORT ? navigator : {};
10
10
  const USER_AGENT = (NAVIGATOR.userAgent || '').toLowerCase();
11
11
  const IS_JSDOM = USER_AGENT.indexOf('jsdom') > 0;
12
- const IS_IE = /msie|trident/.test(USER_AGENT);
13
12
 
14
13
  // Determine if the browser supports the option passive for events
15
14
  const HAS_PASSIVE_EVENT_SUPPORT = (() => {
@@ -33,13 +32,5 @@ const HAS_PASSIVE_EVENT_SUPPORT = (() => {
33
32
  }
34
33
  return passiveEventSupported;
35
34
  })();
36
- const HAS_POINTER_EVENT_SUPPORT = IS_BROWSER && Boolean(WINDOW.PointerEvent || WINDOW.MSPointerEvent);
37
35
 
38
- /* istanbul ignore next: JSDOM only checks for 'IntersectionObserver' */
39
- const HAS_INTERACTION_OBSERVER_SUPPORT = IS_BROWSER && 'IntersectionObserver' in WINDOW && 'IntersectionObserverEntry' in WINDOW &&
40
- // Edge 15 and UC Browser lack support for `isIntersecting`
41
- // but we an use `intersectionRatio > 0` instead
42
- // 'isIntersecting' in window.IntersectionObserverEntry.prototype &&
43
- 'intersectionRatio' in WINDOW.IntersectionObserverEntry.prototype;
44
-
45
- export { DOCUMENT, HAS_DOCUMENT_SUPPORT, HAS_INTERACTION_OBSERVER_SUPPORT, HAS_MUTATION_OBSERVER_SUPPORT, HAS_NAVIGATOR_SUPPORT, HAS_PASSIVE_EVENT_SUPPORT, HAS_POINTER_EVENT_SUPPORT, HAS_WINDOW_SUPPORT, IS_BROWSER, IS_IE, IS_JSDOM, NAVIGATOR, USER_AGENT, WINDOW };
36
+ export { DOCUMENT, HAS_DOCUMENT_SUPPORT, HAS_MUTATION_OBSERVER_SUPPORT, HAS_NAVIGATOR_SUPPORT, HAS_PASSIVE_EVENT_SUPPORT, HAS_WINDOW_SUPPORT, IS_BROWSER, IS_JSDOM, NAVIGATOR, USER_AGENT, WINDOW };
@@ -4,9 +4,8 @@ const CODE_ENTER = 13;
4
4
  const CODE_ESC = 27;
5
5
  const CODE_HOME = 36;
6
6
  const CODE_LEFT = 37;
7
- const CODE_PAGEUP = 33;
8
7
  const CODE_RIGHT = 39;
9
8
  const CODE_SPACE = 32;
10
9
  const CODE_UP = 38;
11
10
 
12
- export { CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP };
11
+ export { CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_RIGHT, CODE_SPACE, CODE_UP };
@@ -47,32 +47,6 @@ const installFactory = function () {
47
47
  return install;
48
48
  };
49
49
 
50
- /**
51
- * Plugin install factory function (no plugin config option).
52
- * @param {object} { components, directives }
53
- * @returns {function} plugin install function
54
- */
55
- const installFactoryNoConfig = function () {
56
- let {
57
- components,
58
- directives,
59
- plugins
60
- } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
61
- const install = Vue => {
62
- if (install.installed) {
63
- /* istanbul ignore next */
64
- return;
65
- }
66
- install.installed = true;
67
- checkMultipleVue(Vue);
68
- registerComponents(Vue, components);
69
- registerDirectives(Vue, directives);
70
- registerPlugins(Vue, plugins);
71
- };
72
- install.installed = false;
73
- return install;
74
- };
75
-
76
50
  /**
77
51
  * Plugin object factory function.
78
52
  * @param {object} { components, directives, plugins }
@@ -87,20 +61,6 @@ const pluginFactory = function () {
87
61
  };
88
62
  };
89
63
 
90
- /**
91
- * Plugin object factory function (no config option).
92
- * @param {object} { components, directives, plugins }
93
- * @returns {object} plugin install object
94
- */
95
- const pluginFactoryNoConfig = function () {
96
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
97
- let extend = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
98
- return {
99
- ...extend,
100
- install: installFactoryNoConfig(options)
101
- };
102
- };
103
-
104
64
  /**
105
65
  * Load a group of plugins.
106
66
  * @param {object} Vue
@@ -180,4 +140,4 @@ const vueUse = VuePlugin => {
180
140
  }
181
141
  };
182
142
 
183
- export { checkMultipleVue, installFactory, installFactoryNoConfig, pluginFactory, pluginFactoryNoConfig, registerComponent, registerComponents, registerDirective, registerDirectives, registerPlugins, vueUse };
143
+ export { checkMultipleVue, installFactory, pluginFactory, registerComponent, registerComponents, registerDirective, registerDirectives, registerPlugins, vueUse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "102.0.0",
3
+ "version": "102.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -115,6 +115,7 @@
115
115
  "@jest/test-sequencer": "^29.7.0",
116
116
  "@rollup/plugin-commonjs": "^11.1.0",
117
117
  "@rollup/plugin-node-resolve": "^7.1.3",
118
+ "@rollup/plugin-replace": "^2.3.2",
118
119
  "@storybook/addon-a11y": "^7.6.20",
119
120
  "@storybook/addon-docs": "^7.6.20",
120
121
  "@storybook/addon-essentials": "^7.6.20",
@@ -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
  export const CONTEXT_ITEM_CATEGORY_ISSUE = 'issue';
2
11
  export const CONTEXT_ITEM_CATEGORY_MERGE_REQUEST = 'merge_request';
3
12
  export const CONTEXT_ITEM_CATEGORY_FILE = 'file';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import { nextTick } from 'vue';
3
12
  import { contextItemValidator } from '../utils';
4
13
  import GlModal from '../../../../../../base/modal/modal.vue';
@@ -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
  Allows selecting and removing context items for the conversation.
2
11
 
3
12
  **Note:**
@@ -12,15 +21,15 @@ The component expects items with specific display properties:
12
21
  export type AIContextItem = {
13
22
  id: string;
14
23
  category: 'file' | 'snippet' | 'issue' | 'merge_request' | 'dependency';
15
-
24
+
16
25
  content?: string; // some categories allow loading/displaying content in the details-modal
17
-
26
+
18
27
  metadata: {
19
28
  icon: string; // should be a valid gitlab-ui icon name
20
29
  title: string;
21
30
  secondaryText: string;
22
31
  subTypeLabel: string;
23
-
32
+
24
33
  // Additional properties some categories have to help differentiate results
25
34
  project?: string;
26
35
  repositoryName?: string;
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import debounce from 'lodash/debounce';
3
12
  import { translate } from '../../../../../../../utils/i18n';
4
13
  import GlCard from '../../../../../../base/card/card.vue';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import GlDropdownItem from '../../../../../../base/dropdown/dropdown_item.vue';
3
12
  import GlIcon from '../../../../../../base/icon/icon.vue';
4
13
  import { categoriesValidator } from '../utils';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import GlDuoChatContextItemPopover from '../duo_chat_context_item_popover/duo_chat_context_item_popover.vue';
3
12
  import GlTruncate from '../../../../../../utilities/truncate/truncate.vue';
4
13
  import GlIcon from '../../../../../../base/icon/icon.vue';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import GlDropdownItem from '../../../../../../base/dropdown/dropdown_item.vue';
3
12
  import GlFormInput from '../../../../../../base/form/form_input/form_input.vue';
4
13
  import GlAlert from '../../../../../../base/alert/alert.vue';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import { translate } from '../../../../../../../utils/i18n';
3
12
 
4
13
  export default {
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import GlAlert from '../../../../../../base/alert/alert.vue';
3
12
  import GlIcon from '../../../../../../base/icon/icon.vue';
4
13
  import GlPopover from '../../../../../../base/popover/popover.vue';
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import uniqueId from 'lodash/uniqueId';
3
12
  import GlIcon from '../../../../../../base/icon/icon.vue';
4
13
  import GlToken from '../../../../../../base/token/token.vue';
@@ -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
  import {
2
11
  CONTEXT_ITEM_CATEGORY_DEPENDENCY,
3
12
  CONTEXT_ITEM_CATEGORY_FILE,
@@ -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
  import { translate } from '../../../../../../utils/i18n';
2
11
  import {
3
12
  CONTEXT_ITEM_CATEGORY_FILE,
@@ -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
  A component that lists messages in a conversation, and presents an optional delimiter to
2
11
  mark the beginning of the conversation.
3
12
 
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import GlDuoChatMessage from '../duo_chat_message/duo_chat_message.vue';
3
12
  import { translate } from '../../../../../../utils/i18n';
4
13
 
@@ -1 +1,10 @@
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
  The Duo Chat loader. Is shown while waiting for the chat response.
@@ -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
  .duo-chat-loader {
2
11
  @apply gl-flex;
3
12
  @apply gl-text-gray-500;
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import { translate } from '../../../../../../utils/i18n';
3
12
  import GlSprintf from '../../../../../utilities/sprintf/sprintf.vue';
4
13
  import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon.vue';
@@ -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
  import iconsPath from '@gitlab/svgs/dist/icons.svg';
2
11
 
3
12
  export const createButton = (title = 'Insert the code snippet', iconId = '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
  export const DUO_CODE_SCRIM_TOP_CLASS = 'scrim-top';
2
11
  export const DUO_CODE_SCRIM_BOTTOM_CLASS = 'scrim-bottom';
3
12
  export const DUO_CODE_SCRIM_OFFSET = 16;
@@ -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
  import { createButton } from './buttons_utils';
2
11
 
3
12
  export class CopyCodeElement extends HTMLElement {
@@ -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
  @import '../../variables';
2
11
 
3
12
  .duo-chat-message {
@@ -1,4 +1,13 @@
1
1
  <script>
2
+ /**
3
+ * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
4
+ *
5
+ * Please use the corresponding component in Duo-UI going forward.
6
+ * All future development and maintenance for Duo components should take place in Duo-UI.
7
+ *
8
+ * 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.
9
+ */
10
+
2
11
  import throttle from 'lodash/throttle';
3
12
  import GlIcon from '../../../../../base/icon/icon.vue';
4
13
  import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon.vue';
@@ -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
  import { createButton } from './buttons_utils';
2
11
 
3
12
  const CODE_MARKDOWN_CLASS = 'js-markdown-code';
@@ -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
  export const concatUntilEmpty = (arr) => {
2
11
  if (!arr) return '';
3
12
 
@@ -1 +1,10 @@
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
  A simple component to list documentation sources for a documentation-related AI response messages.