@atlaskit/flag 15.0.4 → 15.0.6

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.
@@ -1,8 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  /* eslint-disable @repo/internal/styles/no-nested-styles */
4
-
5
3
  /** @jsx jsx */
4
+
6
5
  import { css, jsx } from '@emotion/react';
7
6
  import Button from '@atlaskit/button/custom-theme-button';
8
7
  import { UNSAFE_Inline as Inline } from '@atlaskit/ds-explorations';
@@ -35,22 +34,19 @@ var appearanceNormalButtonStyles = css({
35
34
  padding: '0 !important'
36
35
  }
37
36
  });
38
-
39
37
  var FlagActions = function FlagActions(props) {
40
38
  var _props$appearance = props.appearance,
41
- appearance = _props$appearance === void 0 ? DEFAULT_APPEARANCE : _props$appearance,
42
- _props$actions = props.actions,
43
- actions = _props$actions === void 0 ? [] : _props$actions,
44
- linkComponent = props.linkComponent,
45
- testId = props.testId;
46
-
39
+ appearance = _props$appearance === void 0 ? DEFAULT_APPEARANCE : _props$appearance,
40
+ _props$actions = props.actions,
41
+ actions = _props$actions === void 0 ? [] : _props$actions,
42
+ linkComponent = props.linkComponent,
43
+ testId = props.testId;
47
44
  if (!actions.length) {
48
45
  return null;
49
46
  }
50
-
51
47
  var isBold = appearance !== DEFAULT_APPEARANCE;
52
48
  return jsx(Inline, {
53
- gap: "scale.100",
49
+ gap: "space.100",
54
50
  flexWrap: "wrap",
55
51
  alignItems: "center",
56
52
  divider: isBold ? null : '·',
@@ -60,7 +56,6 @@ var FlagActions = function FlagActions(props) {
60
56
  testId: testId && "".concat(testId, "-actions")
61
57
  }, actions.map(function (action, index) {
62
58
  var _ref;
63
-
64
59
  return jsx(Button, {
65
60
  onClick: action.onClick,
66
61
  href: action.href,
@@ -74,7 +69,7 @@ var FlagActions = function FlagActions(props) {
74
69
  css: [buttonStyles, appearance === 'normal' && appearanceNormalButtonStyles]
75
70
  }, action.content);
76
71
  }));
77
- }; // eslint-disable-next-line @repo/internal/react/require-jsdoc
78
-
72
+ };
79
73
 
74
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
80
75
  export default FlagActions;
@@ -1,5 +1,4 @@
1
1
  import _typeof from "@babel/runtime/helpers/typeof";
2
-
3
2
  /** @jsx jsx */
4
3
  import { Children, createContext, useContext, useMemo } from 'react';
5
4
  import { css, jsx } from '@emotion/react';
@@ -17,15 +16,18 @@ var flagLeft = gridSize * 10;
17
16
  var defaultFlagGroupContext = {
18
17
  onDismissed: noop,
19
18
  isDismissAllowed: false
20
- }; // eslint-disable-next-line @repo/internal/react/require-jsdoc
19
+ };
21
20
 
22
- export var FlagGroupContext = /*#__PURE__*/createContext(defaultFlagGroupContext); // eslint-disable-next-line @repo/internal/react/require-jsdoc
21
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
22
+ export var FlagGroupContext = /*#__PURE__*/createContext(defaultFlagGroupContext);
23
23
 
24
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
24
25
  export function useFlagGroup() {
25
26
  return useContext(FlagGroupContext);
26
- } // transition: none is set on first-of-type to prevent a bug in Firefox
27
- // that causes a broken transition
27
+ }
28
28
 
29
+ // transition: none is set on first-of-type to prevent a bug in Firefox
30
+ // that causes a broken transition
29
31
  var baseStyles = css({
30
32
  width: flagWidth,
31
33
  bottom: 0,
@@ -50,9 +52,10 @@ var baseStyles = css({
50
52
  '&:nth-of-type(n + 4)': {
51
53
  visibility: 'hidden'
52
54
  }
53
- }); // Transform needed to push up while 1st flag is leaving
54
- // Exiting time should match the exiting time of motion so is halved
55
+ });
55
56
 
57
+ // Transform needed to push up while 1st flag is leaving
58
+ // Exiting time should match the exiting time of motion so is halved
56
59
  var dismissAllowedStyles = css({
57
60
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
58
61
  '&& + *': {
@@ -69,6 +72,7 @@ var flagGroupContainerStyles = css({
69
72
  left: 0
70
73
  }
71
74
  });
75
+
72
76
  /**
73
77
  * __Flag group__
74
78
  *
@@ -77,16 +81,15 @@ var flagGroupContainerStyles = css({
77
81
  * - [Examples](https://atlassian.design/components/flag/flag-group/examples)
78
82
  * - [Code](https://atlassian.design/components/flag/flag-group/code)
79
83
  */
80
-
81
84
  var FlagGroup = function FlagGroup(props) {
82
85
  var id = props.id,
83
- _props$label = props.label,
84
- label = _props$label === void 0 ? 'Flag notifications' : _props$label,
85
- _props$labelTag = props.labelTag,
86
- LabelTag = _props$labelTag === void 0 ? 'h2' : _props$labelTag,
87
- children = props.children,
88
- _props$onDismissed = props.onDismissed,
89
- onDismissed = _props$onDismissed === void 0 ? noop : _props$onDismissed;
86
+ _props$label = props.label,
87
+ label = _props$label === void 0 ? 'Flag notifications' : _props$label,
88
+ _props$labelTag = props.labelTag,
89
+ LabelTag = _props$labelTag === void 0 ? 'h2' : _props$labelTag,
90
+ children = props.children,
91
+ _props$onDismissed = props.onDismissed,
92
+ onDismissed = _props$onDismissed === void 0 ? noop : _props$onDismissed;
90
93
  var hasFlags = Array.isArray(children) ? children.length > 0 : Boolean(children);
91
94
  var dismissFlagContext = useMemo(function () {
92
95
  return {
@@ -94,7 +97,6 @@ var FlagGroup = function FlagGroup(props) {
94
97
  isDismissAllowed: true
95
98
  };
96
99
  }, [onDismissed]);
97
-
98
100
  var renderChildren = function renderChildren() {
99
101
  return children && _typeof(children) === 'object' ? Children.map(children, function (flag, index) {
100
102
  var isDismissAllowed = index === 0;
@@ -107,7 +109,7 @@ var FlagGroup = function FlagGroup(props) {
107
109
  }
108
110
  }, function (_ref) {
109
111
  var className = _ref.className,
110
- ref = _ref.ref;
112
+ ref = _ref.ref;
111
113
  return jsx(Box, {
112
114
  display: "block",
113
115
  position: "absolute",
@@ -115,13 +117,13 @@ var FlagGroup = function FlagGroup(props) {
115
117
  className: className,
116
118
  ref: ref
117
119
  }, jsx(FlagGroupContext.Provider, {
118
- value: // Only the first flag should be able to be dismissed.
120
+ value:
121
+ // Only the first flag should be able to be dismissed.
119
122
  isDismissAllowed ? dismissFlagContext : defaultFlagGroupContext
120
123
  }, flag));
121
124
  });
122
125
  }) : false;
123
126
  };
124
-
125
127
  return jsx(Portal, {
126
128
  zIndex: layers.flag()
127
129
  }, jsx(Box, {
@@ -133,5 +135,4 @@ var FlagGroup = function FlagGroup(props) {
133
135
  appear: false
134
136
  }, renderChildren())));
135
137
  };
136
-
137
138
  export default FlagGroup;
@@ -4,46 +4,37 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
6
6
  var _excluded = ["isAutoDismiss"];
7
-
8
7
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
-
10
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
-
12
9
  import React, { useCallback, useContext, useMemo, useState } from 'react';
13
10
  import AutoDismissFlag from './auto-dismiss-flag';
14
11
  import Flag from './flag';
15
12
  import FlagGroup from './flag-group';
16
13
  var FlagContext = /*#__PURE__*/React.createContext(null);
14
+
17
15
  /**
18
16
  * useFlags is used to access the `showFlags` function which can be used to programatically display flags.
19
17
  * - [Examples](https://atlassian.design/components/flag/flags-provider/examples#using-showflags)
20
18
  */
21
-
22
19
  export function useFlags() {
23
20
  var api = useContext(FlagContext);
24
-
25
21
  if (api == null) {
26
22
  throw new Error('Unable to find FlagProviderContext');
27
23
  }
28
-
29
24
  return api;
30
25
  }
31
-
32
26
  var getUniqueId = function () {
33
27
  var count = 0;
34
28
  return function () {
35
29
  return "flag-provider-unique-id:".concat(count++);
36
30
  };
37
31
  }();
38
-
39
32
  export function FlagsProvider(_ref) {
40
33
  var children = _ref.children;
41
-
42
34
  var _useState = useState([]),
43
- _useState2 = _slicedToArray(_useState, 2),
44
- flags = _useState2[0],
45
- setFlags = _useState2[1];
46
-
35
+ _useState2 = _slicedToArray(_useState, 2),
36
+ flags = _useState2[0],
37
+ setFlags = _useState2[1];
47
38
  var removeFlag = useCallback(function (id) {
48
39
  setFlags(function (current) {
49
40
  return current.slice(0).filter(function (flag) {
@@ -57,19 +48,18 @@ export function FlagsProvider(_ref) {
57
48
  var flag = _objectSpread(_objectSpread({}, value), {}, {
58
49
  id: value.id || getUniqueId()
59
50
  });
60
-
61
51
  setFlags(function (current) {
62
52
  var index = current.findIndex(function (value) {
63
53
  return value.id === flag.id;
64
- }); // If flag is not found add it
54
+ });
65
55
 
56
+ // If flag is not found add it
66
57
  if (index === -1) {
67
58
  return [flag].concat(_toConsumableArray(current));
68
- } // If flag already exists with the same id, then replace it
69
-
59
+ }
70
60
 
61
+ // If flag already exists with the same id, then replace it
71
62
  var shallow = _toConsumableArray(current);
72
-
73
63
  shallow[index] = flag;
74
64
  return shallow;
75
65
  });
@@ -85,8 +75,7 @@ export function FlagsProvider(_ref) {
85
75
  onDismissed: removeFlag
86
76
  }, flags.map(function (flag) {
87
77
  var isAutoDismiss = flag.isAutoDismiss,
88
- restProps = _objectWithoutProperties(flag, _excluded);
89
-
78
+ restProps = _objectWithoutProperties(flag, _excluded);
90
79
  var FlagType = isAutoDismiss ? AutoDismissFlag : Flag;
91
80
  return /*#__PURE__*/React.createElement(FlagType, _extends({}, restProps, {
92
81
  key: flag.id
package/dist/esm/flag.js CHANGED
@@ -1,11 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  /** @jsx jsx */
10
7
  import { useCallback, useEffect, useState } from 'react';
11
8
  import { jsx } from '@emotion/react';
@@ -21,8 +18,9 @@ import { Expander, DismissButton } from './internal';
21
18
  var analyticsAttributes = {
22
19
  componentName: 'flag',
23
20
  packageName: "@atlaskit/flag",
24
- packageVersion: "15.0.4"
21
+ packageVersion: "15.0.6"
25
22
  };
23
+
26
24
  /**
27
25
  * __Flag__
28
26
  *
@@ -33,42 +31,37 @@ var analyticsAttributes = {
33
31
  * - [Code](https://atlassian.design/components/flag/code)
34
32
  * - [Usage](https://atlassian.design/components/flag/usage)
35
33
  */
36
-
37
34
  var Flag = function Flag(props) {
38
35
  var _props$actions = props.actions,
39
- actions = _props$actions === void 0 ? [] : _props$actions,
40
- _props$appearance = props.appearance,
41
- appearance = _props$appearance === void 0 ? DEFAULT_APPEARANCE : _props$appearance,
42
- icon = props.icon,
43
- title = props.title,
44
- description = props.description,
45
- linkComponent = props.linkComponent,
46
- onMouseOver = props.onMouseOver,
47
- _props$onFocus = props.onFocus,
48
- onFocus = _props$onFocus === void 0 ? noop : _props$onFocus,
49
- onMouseOut = props.onMouseOut,
50
- _props$onBlur = props.onBlur,
51
- onBlur = _props$onBlur === void 0 ? noop : _props$onBlur,
52
- _props$onDismissed = props.onDismissed,
53
- onDismissedProp = _props$onDismissed === void 0 ? noop : _props$onDismissed,
54
- testId = props.testId,
55
- id = props.id,
56
- analyticsContext = props.analyticsContext;
57
-
36
+ actions = _props$actions === void 0 ? [] : _props$actions,
37
+ _props$appearance = props.appearance,
38
+ appearance = _props$appearance === void 0 ? DEFAULT_APPEARANCE : _props$appearance,
39
+ icon = props.icon,
40
+ title = props.title,
41
+ description = props.description,
42
+ linkComponent = props.linkComponent,
43
+ onMouseOver = props.onMouseOver,
44
+ _props$onFocus = props.onFocus,
45
+ onFocus = _props$onFocus === void 0 ? noop : _props$onFocus,
46
+ onMouseOut = props.onMouseOut,
47
+ _props$onBlur = props.onBlur,
48
+ onBlur = _props$onBlur === void 0 ? noop : _props$onBlur,
49
+ _props$onDismissed = props.onDismissed,
50
+ onDismissedProp = _props$onDismissed === void 0 ? noop : _props$onDismissed,
51
+ testId = props.testId,
52
+ id = props.id,
53
+ analyticsContext = props.analyticsContext;
58
54
  var _useFlagGroup = useFlagGroup(),
59
- onDismissedFromFlagGroup = _useFlagGroup.onDismissed,
60
- isDismissAllowed = _useFlagGroup.isDismissAllowed;
61
-
55
+ onDismissedFromFlagGroup = _useFlagGroup.onDismissed,
56
+ isDismissAllowed = _useFlagGroup.isDismissAllowed;
62
57
  var onDismissed = useCallback(function (id, analyticsEvent) {
63
58
  onDismissedProp(id, analyticsEvent);
64
59
  onDismissedFromFlagGroup(id, analyticsEvent);
65
60
  }, [onDismissedProp, onDismissedFromFlagGroup]);
66
-
67
61
  var _useState = useState(false),
68
- _useState2 = _slicedToArray(_useState, 2),
69
- isExpanded = _useState2[0],
70
- setIsExpanded = _useState2[1];
71
-
62
+ _useState2 = _slicedToArray(_useState, 2),
63
+ isExpanded = _useState2[0],
64
+ setIsExpanded = _useState2[1];
72
65
  var onDismissedAnalytics = usePlatformLeafEventHandler(_objectSpread({
73
66
  fn: onDismissed,
74
67
  action: 'dismissed',
@@ -115,7 +108,7 @@ var Flag = function Flag(props) {
115
108
  display: "block",
116
109
  backgroundColor: flagBackgroundColor[appearance],
117
110
  shadow: "overlay",
118
- padding: "scale.200",
111
+ padding: "space.200",
119
112
  borderRadius: "normal",
120
113
  overflow: "hidden",
121
114
  layer: "flag",
@@ -127,7 +120,7 @@ var Flag = function Flag(props) {
127
120
  tabIndex: 0,
128
121
  testId: testId
129
122
  }, autoDismissProps), jsx(Inline, {
130
- gap: "scale.200"
123
+ gap: "space.200"
131
124
  }, jsx(Box, {
132
125
  alignItems: "start",
133
126
  UNSAFE_style: {
@@ -135,14 +128,14 @@ var Flag = function Flag(props) {
135
128
  flexShrink: 0
136
129
  }
137
130
  }, icon), jsx(Stack, {
138
- gap: shouldRenderGap ? 'scale.100' : 'scale.0' // Gap exists even when not expanded due to Expander internals always being in the DOM
131
+ gap: shouldRenderGap ? 'space.100' : 'space.0' // Gap exists even when not expanded due to Expander internals always being in the DOM
139
132
  ,
140
133
  UNSAFE_style: {
141
134
  flexGrow: 1,
142
135
  transition: "gap 0.3s"
143
136
  }
144
137
  }, jsx(Inline, {
145
- gap: "scale.100",
138
+ gap: "space.100",
146
139
  justifyContent: "spaceBetween"
147
140
  }, jsx(Box, {
148
141
  display: "block",
@@ -151,10 +144,9 @@ var Flag = function Flag(props) {
151
144
  }
152
145
  }, jsx(Text, {
153
146
  color: textColor,
154
- fontWeight: "600",
147
+ fontWeight: "semibold",
155
148
  UNSAFE_style: {
156
149
  overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
157
-
158
150
  }
159
151
  }, title)), isDismissable ? !(isBold && !description && !actions.length) && jsx(DismissButton, {
160
152
  testId: testId,
@@ -173,8 +165,8 @@ var Flag = function Flag(props) {
173
165
  // height is defined as 5 lines maximum by design
174
166
  overflow: 'auto',
175
167
  overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
176
-
177
168
  },
169
+
178
170
  testId: testId && "".concat(testId, "-description")
179
171
  }, description), jsx(Actions, {
180
172
  actions: actions,
@@ -183,5 +175,4 @@ var Flag = function Flag(props) {
183
175
  testId: testId
184
176
  }))))));
185
177
  };
186
-
187
178
  export default Flag;
@@ -7,25 +7,22 @@ import ChevronDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-down';
7
7
  import ChevronUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-up';
8
8
  import CrossIcon from '@atlaskit/icon/glyph/cross';
9
9
  import { flagTextColorToken } from '../theme';
10
-
11
10
  var DismissButton = function DismissButton(_ref) {
12
11
  var appearance = _ref.appearance,
13
- onClick = _ref.onClick,
14
- isBold = _ref.isBold,
15
- isExpanded = _ref.isExpanded,
16
- testId = _ref.testId;
12
+ onClick = _ref.onClick,
13
+ isBold = _ref.isBold,
14
+ isExpanded = _ref.isExpanded,
15
+ testId = _ref.testId;
17
16
  var ButtonIcon = CrossIcon;
18
17
  var buttonLabel = 'Dismiss';
19
18
  var size = 'small';
20
19
  var buttonTestId = testId && "".concat(testId, "-dismiss");
21
-
22
20
  if (isBold) {
23
21
  ButtonIcon = isExpanded ? ChevronUpIcon : ChevronDownIcon;
24
22
  buttonLabel = isExpanded ? 'Collapse' : 'Expand';
25
23
  size = 'medium';
26
24
  buttonTestId = testId && "".concat(testId, "-toggle");
27
25
  }
28
-
29
26
  return jsx(FocusRing, null, jsx(Box, {
30
27
  as: "button",
31
28
  type: "button",
@@ -33,7 +30,7 @@ var DismissButton = function DismissButton(_ref) {
33
30
  alignItems: "center",
34
31
  borderStyle: "none",
35
32
  borderRadius: "normal",
36
- padding: "scale.0",
33
+ padding: "space.0",
37
34
  width: "size.200",
38
35
  height: "size.200",
39
36
  onClick: onClick,
@@ -51,5 +48,4 @@ var DismissButton = function DismissButton(_ref) {
51
48
  primaryColor: flagTextColorToken[appearance]
52
49
  })));
53
50
  };
54
-
55
51
  export default /*#__PURE__*/memo(DismissButton);
@@ -2,14 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { UNSAFE_Box as Box, UNSAFE_Stack as Stack } from '@atlaskit/ds-explorations';
4
4
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
5
-
6
5
  var Expander = function Expander(_ref) {
7
6
  var children = _ref.children,
8
- isExpanded = _ref.isExpanded,
9
- testId = _ref.testId;
7
+ isExpanded = _ref.isExpanded,
8
+ testId = _ref.testId;
10
9
  // Need to always render the ExpanderInternal otherwise the
11
10
  // reveal transition doesn't happen. We can't use CSS animation for
12
11
  // the the reveal because we don't know the height of the content.
12
+
13
13
  return /*#__PURE__*/React.createElement(Box, {
14
14
  UNSAFE_style: {
15
15
  minWidth: 0,
@@ -28,10 +28,10 @@ var Expander = function Expander(_ref) {
28
28
  width: '100%'
29
29
  }
30
30
  }, props), /*#__PURE__*/React.createElement(Stack, {
31
- gap: "scale.100"
31
+ gap: "space.100"
32
32
  }, children));
33
33
  })));
34
- }; // eslint-disable-next-line @repo/internal/react/require-jsdoc
35
-
34
+ };
36
35
 
36
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
37
37
  export default Expander;
package/dist/esm/theme.js CHANGED
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
+
2
3
  import { B100, B400, N0, N200, N30A, N40, N500, N700 } from '@atlaskit/theme/colors';
3
4
  export var flagBackgroundColor = {
4
5
  error: 'danger.bold',
@@ -14,8 +15,8 @@ export var flagIconColor = {
14
15
  success: "var(--ds-icon-inverse, ".concat(N0, ")"),
15
16
  warning: "var(--ds-icon-warning-inverse, ".concat(N700, ")")
16
17
  };
17
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
18
18
 
19
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
19
20
  export var flagTextColor = {
20
21
  error: 'inverse',
21
22
  info: 'inverse',
package/dist/esm/types.js CHANGED
@@ -1,4 +1,7 @@
1
1
  /* eslint-disable @repo/internal/react/consistent-types-definitions */
2
+
2
3
  // exported for testing - keep in sync from `type AppearanceTypes`
3
4
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
4
- export var AppearanceArray = ['error', 'info', 'normal', 'success', 'warning']; // CreateFlagsArg makes id optional so define this prop separately
5
+ export var AppearanceArray = ['error', 'info', 'normal', 'success', 'warning'];
6
+
7
+ // CreateFlagsArg makes id optional so define this prop separately
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.4",
3
+ "version": "15.0.6",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.4",
3
+ "version": "15.0.6",
4
4
  "description": "A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,14 +37,14 @@
37
37
  "dependencies": {
38
38
  "@atlaskit/analytics-next": "^8.0.0",
39
39
  "@atlaskit/button": "^16.5.0",
40
- "@atlaskit/ds-explorations": "^1.7.0",
40
+ "@atlaskit/ds-explorations": "^2.0.0",
41
41
  "@atlaskit/ds-lib": "^2.1.0",
42
42
  "@atlaskit/focus-ring": "^1.2.0",
43
43
  "@atlaskit/icon": "^21.11.0",
44
44
  "@atlaskit/motion": "^1.3.0",
45
45
  "@atlaskit/portal": "^4.0.0",
46
46
  "@atlaskit/theme": "^12.2.0",
47
- "@atlaskit/tokens": "^0.13.0",
47
+ "@atlaskit/tokens": "^1.0.0",
48
48
  "@atlaskit/visually-hidden": "^1.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1"