@gitlab/ui 106.1.0 → 106.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [106.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v106.1.0...v106.2.0) (2025-01-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlExperimentBadge:** Add story for beta ([5c63782](https://gitlab.com/gitlab-org/gitlab-ui/commit/5c63782fa999a4a2a4676c1109974f1bb8647f67))
7
+
1
8
  # [106.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v106.0.0...v106.1.0) (2025-01-07)
2
9
 
3
10
 
@@ -3,21 +3,23 @@ import GlBadge from '../../base/badge/badge';
3
3
  import GlLink from '../../base/link/link';
4
4
  import GlPopover from '../../base/popover/popover';
5
5
  import GlSprintf from '../../utilities/sprintf/sprintf';
6
- import { badgeTypes, badgeTypeValidator } from './constants';
6
+ import { badgeTypeValidator } from './constants';
7
7
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
8
8
 
9
9
  const i18n = {
10
10
  experiment: {
11
11
  BADGE: 'Experiment',
12
+ HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#experiment',
12
13
  POPOVER_TITLE: "What's an experiment?",
13
14
  POPOVER_CONTENT: 'An %{linkStart}experiment%{linkEnd} is not yet production-ready, but is released for initial testing and feedback during development.%{line-breakStart}Experiments:%{line-breakEnd} %{bullets}',
14
- POPOVER_BULLETS: ['Might be unstable or cause data loss.', 'Are not supported and might not be documented.', 'Could be changed or removed at any time.', 'Are subject to the GitLab Testing Agreement.']
15
+ POPOVER_BULLETS: ['Might be unstable or cause data loss.', 'Are not supported and might not be documented.', 'Could be changed or removed at any time.']
15
16
  },
16
17
  beta: {
17
18
  BADGE: 'Beta',
19
+ HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#beta',
18
20
  POPOVER_TITLE: "What's a beta?",
19
21
  POPOVER_CONTENT: "A %{linkStart}beta%{linkEnd} feature is not yet production-ready, but is ready for testing and unlikely to change significantly before it's released.%{line-breakStart}Beta features:%{line-breakEnd} %{bullets}",
20
- POPOVER_BULLETS: ['Have a low risk of data loss, but might still be unstable.', 'Are supported on a commercially-reasonable effort basis.', 'Have a near complete user experience.', 'Are subject to the GitLab Testing Agreement.']
22
+ POPOVER_BULLETS: ['Have a low risk of data loss, but might still be unstable.', 'Are supported on a commercially-reasonable effort basis.', 'Have a near complete user experience.']
21
23
  }
22
24
  };
23
25
  var script = {
@@ -29,14 +31,6 @@ var script = {
29
31
  GlLink
30
32
  },
31
33
  props: {
32
- /**
33
- * The URL of a page to provide more explanations on the experiment.
34
- */
35
- helpPageUrl: {
36
- type: String,
37
- required: false,
38
- default: ''
39
- },
40
34
  /**
41
35
  * The placement of the popover in relation to the button.
42
36
  */
@@ -46,12 +40,12 @@ var script = {
46
40
  default: 'bottom'
47
41
  },
48
42
  /**
49
- * The type of the badge.
43
+ * The type of the badge. Can be 'experiment' or 'beta'.
50
44
  */
51
45
  type: {
52
46
  type: String,
53
47
  required: false,
54
- default: badgeTypes[0],
48
+ default: 'experiment',
55
49
  validator: badgeTypeValidator
56
50
  }
57
51
  },
@@ -71,7 +65,7 @@ const __vue_script__ = script;
71
65
  /* template */
72
66
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-badge',{ref:"badge",staticClass:"gl-mx-4 hover:gl-cursor-pointer",attrs:{"id":_vm.triggerId,"href":"#","variant":"neutral"}},[_c('span',[_vm._v(_vm._s(_vm.activeType.BADGE))]),_vm._v(" "),_c('gl-popover',{attrs:{"triggers":"hover focus click","show-close-button":"","placement":_vm.popoverPlacement,"target":_vm.triggerId,"css-classes":['!gl-z-9999'],"title":_vm.activeType.POPOVER_TITLE}},[_c('gl-sprintf',{attrs:{"message":_vm.activeType.POPOVER_CONTENT},scopedSlots:_vm._u([{key:"link",fn:function(ref){
73
67
  var content = ref.content;
74
- return [(_vm.helpPageUrl)?_c('gl-link',{staticClass:"!gl-text-sm",attrs:{"href":_vm.helpPageUrl,"target":"_blank"}},[_vm._v("\n "+_vm._s(content)+"\n ")]):_c('span',[_vm._v(_vm._s(content))])]}},{key:"bullets",fn:function(){return [_c('ul',{staticClass:"gl-mb-0 gl-pl-5"},_vm._l((_vm.activeType.POPOVER_BULLETS),function(item,i){return _c('li',{key:("li-" + i)},[_vm._v("\n "+_vm._s(item)+"\n ")])}),0)]},proxy:true},{key:"line-break",fn:function(ref){
68
+ return [_c('gl-link',{staticClass:"!gl-text-sm",attrs:{"href":_vm.activeType.HELP_PAGE_URL,"target":"_blank"}},[_vm._v("\n "+_vm._s(content))])]}},{key:"bullets",fn:function(){return [_c('ul',{staticClass:"gl-mb-0 gl-pl-5"},_vm._l((_vm.activeType.POPOVER_BULLETS),function(item,i){return _c('li',{key:("li-" + i)},[_vm._v("\n "+_vm._s(item)+"\n ")])}),0)]},proxy:true},{key:"line-break",fn:function(ref){
75
69
  var content = ref.content;
76
70
  return [_c('span',{staticClass:"gl-mb-0 gl-mt-5 gl-block"},[_vm._v(_vm._s(content))])]}}])})],1)],1)};
77
71
  var __vue_staticRenderFns__ = [];