@atlaskit/flag 15.5.1 → 15.5.3

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 (37) hide show
  1. package/CHANGELOG.md +1018 -1006
  2. package/dist/cjs/auto-dismiss-flag.js +1 -1
  3. package/dist/cjs/flag-actions.js +3 -1
  4. package/dist/cjs/flag-group.js +3 -1
  5. package/dist/cjs/flag-provider.js +4 -2
  6. package/dist/cjs/flag.js +5 -2
  7. package/dist/cjs/internal/expander.js +2 -0
  8. package/dist/es2019/auto-dismiss-flag.js +1 -1
  9. package/dist/es2019/flag-actions.js +3 -1
  10. package/dist/es2019/flag-group.js +3 -1
  11. package/dist/es2019/flag-provider.js +4 -2
  12. package/dist/es2019/flag.js +5 -2
  13. package/dist/es2019/internal/expander.js +2 -0
  14. package/dist/esm/auto-dismiss-flag.js +1 -1
  15. package/dist/esm/flag-actions.js +3 -1
  16. package/dist/esm/flag-group.js +3 -1
  17. package/dist/esm/flag-provider.js +4 -2
  18. package/dist/esm/flag.js +5 -2
  19. package/dist/esm/internal/expander.js +2 -0
  20. package/dist/types/auto-dismiss-flag.d.ts +1 -1
  21. package/dist/types/constants.d.ts +1 -1
  22. package/dist/types/flag-actions.d.ts +1 -1
  23. package/dist/types/flag-group.d.ts +1 -1
  24. package/dist/types/flag-provider.d.ts +3 -2
  25. package/dist/types/flag.d.ts +1 -1
  26. package/dist/types/theme.d.ts +2 -2
  27. package/dist/types/types.d.ts +3 -3
  28. package/dist/types-ts4.5/auto-dismiss-flag.d.ts +1 -1
  29. package/dist/types-ts4.5/constants.d.ts +1 -1
  30. package/dist/types-ts4.5/flag-actions.d.ts +1 -1
  31. package/dist/types-ts4.5/flag-group.d.ts +1 -1
  32. package/dist/types-ts4.5/flag-provider.d.ts +3 -2
  33. package/dist/types-ts4.5/flag.d.ts +1 -1
  34. package/dist/types-ts4.5/theme.d.ts +2 -2
  35. package/dist/types-ts4.5/types.d.ts +3 -3
  36. package/extract-react-types/show-flag-args.tsx +1 -1
  37. package/package.json +9 -11
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  var packageName = "@atlaskit/flag";
18
- var packageVersion = "15.5.1";
18
+ var packageVersion = "15.5.3";
19
19
  var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
20
20
 
21
21
  /**
@@ -72,7 +72,9 @@ var FlagActions = function FlagActions(props) {
72
72
  component: linkComponent,
73
73
  spacing: "compact",
74
74
  testId: action.testId,
75
- key: index,
75
+ key: index
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
77
+ ,
76
78
  style: (_ref = {}, (0, _defineProperty2.default)(_ref, _constants.VAR_COLOR, _theme.actionTextColor[appearance]), (0, _defineProperty2.default)(_ref, _constants.VAR_BG_COLOR, _theme.actionBackgroundColor[appearance].default), (0, _defineProperty2.default)(_ref, _constants.VAR_BG_COLOR_HOVER, _theme.actionBackgroundColor[appearance].pressed), (0, _defineProperty2.default)(_ref, _constants.VAR_BG_COLOR_ACTIVE, _theme.actionBackgroundColor[appearance].active), _ref),
77
79
  css: [buttonStyles, appearance === _constants.DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
78
80
  }, action.content);
@@ -127,7 +127,9 @@ var FlagGroup = function FlagGroup(props) {
127
127
  var className = _ref.className,
128
128
  ref = _ref.ref;
129
129
  return (0, _react2.jsx)("div", {
130
- css: [baseStyles, isDismissAllowed && dismissAllowedStyles],
130
+ css: [baseStyles, isDismissAllowed && dismissAllowedStyles]
131
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
132
+ ,
131
133
  className: className,
132
134
  ref: ref
133
135
  }, (0, _react2.jsx)(FlagGroupContext.Provider, {
@@ -42,7 +42,8 @@ var getUniqueId = function () {
42
42
  };
43
43
  }();
44
44
  function FlagsProvider(_ref) {
45
- var children = _ref.children;
45
+ var children = _ref.children,
46
+ shouldRenderToParent = _ref.shouldRenderToParent;
46
47
  var _useState = (0, _react.useState)([]),
47
48
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
48
49
  flags = _useState2[0],
@@ -84,7 +85,8 @@ function FlagsProvider(_ref) {
84
85
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FlagContext.Provider, {
85
86
  value: api
86
87
  }, children), /*#__PURE__*/_react.default.createElement(_flagGroup.default, {
87
- onDismissed: removeFlag
88
+ onDismissed: removeFlag,
89
+ shouldRenderToParent: shouldRenderToParent
88
90
  }, flags.map(function (flag) {
89
91
  var isAutoDismiss = flag.isAutoDismiss,
90
92
  restProps = (0, _objectWithoutProperties2.default)(flag, _excluded);
package/dist/cjs/flag.js CHANGED
@@ -52,7 +52,7 @@ var flagWrapperStyles = (0, _react2.css)({
52
52
  var analyticsAttributes = {
53
53
  componentName: 'flag',
54
54
  packageName: "@atlaskit/flag",
55
- packageVersion: "15.5.1"
55
+ packageVersion: "15.5.3"
56
56
  };
57
57
  var transitionStyles = (0, _react2.css)({
58
58
  flexGrow: 1,
@@ -154,7 +154,9 @@ var Flag = function Flag(props) {
154
154
  alignBlock: "stretch",
155
155
  space: "space.200"
156
156
  }, (0, _react2.jsx)("div", {
157
- css: iconWrapperStyles,
157
+ css: iconWrapperStyles
158
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
159
+ ,
158
160
  style: (0, _defineProperty2.default)({}, CSS_VAR_ICON_COLOR, iconColor)
159
161
  }, icon), (0, _react2.jsx)("span", {
160
162
  css: transitionStyles
@@ -180,6 +182,7 @@ var Flag = function Flag(props) {
180
182
  isExpanded: !isBold || isExpanded,
181
183
  testId: testId
182
184
  }, description && (0, _react2.jsx)("div", {
185
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
183
186
  style: {
184
187
  color: _theme.flagTextColorToken[appearance]
185
188
  },
@@ -27,7 +27,9 @@ var Expander = function Expander(_ref) {
27
27
  xcss: containerStyles,
28
28
  style: {
29
29
  maxHeight: isExpanded ? 150 : 0,
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
30
31
  flex: '1 1 100%',
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
31
33
  minWidth: 0
32
34
  },
33
35
  "aria-hidden": !isExpanded,
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  const packageName = "@atlaskit/flag";
8
- const packageVersion = "15.5.1";
8
+ const packageVersion = "15.5.3";
9
9
  export const AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -62,7 +62,9 @@ const FlagActions = props => {
62
62
  component: linkComponent,
63
63
  spacing: "compact",
64
64
  testId: action.testId,
65
- key: index,
65
+ key: index
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
67
+ ,
66
68
  style: {
67
69
  [VAR_COLOR]: actionTextColor[appearance],
68
70
  [VAR_BG_COLOR]: actionBackgroundColor[appearance].default,
@@ -111,7 +111,9 @@ const FlagGroup = props => {
111
111
  className,
112
112
  ref
113
113
  }) => jsx("div", {
114
- css: [baseStyles, isDismissAllowed && dismissAllowedStyles],
114
+ css: [baseStyles, isDismissAllowed && dismissAllowedStyles]
115
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
+ ,
115
117
  className: className,
116
118
  ref: ref
117
119
  }, jsx(FlagGroupContext.Provider, {
@@ -21,7 +21,8 @@ const getUniqueId = (() => {
21
21
  return () => `flag-provider-unique-id:${count++}`;
22
22
  })();
23
23
  export function FlagsProvider({
24
- children
24
+ children,
25
+ shouldRenderToParent
25
26
  }) {
26
27
  const [flags, setFlags] = useState([]);
27
28
  const removeFlag = useCallback(id => {
@@ -56,7 +57,8 @@ export function FlagsProvider({
56
57
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FlagContext.Provider, {
57
58
  value: api
58
59
  }, children), /*#__PURE__*/React.createElement(FlagGroup, {
59
- onDismissed: removeFlag
60
+ onDismissed: removeFlag,
61
+ shouldRenderToParent: shouldRenderToParent
60
62
  }, flags.map(flag => {
61
63
  const {
62
64
  isAutoDismiss,
@@ -42,7 +42,7 @@ const flagWrapperStyles = css({
42
42
  const analyticsAttributes = {
43
43
  componentName: 'flag',
44
44
  packageName: "@atlaskit/flag",
45
- packageVersion: "15.5.1"
45
+ packageVersion: "15.5.3"
46
46
  };
47
47
  const transitionStyles = css({
48
48
  flexGrow: 1,
@@ -140,7 +140,9 @@ const Flag = props => {
140
140
  alignBlock: "stretch",
141
141
  space: "space.200"
142
142
  }, jsx("div", {
143
- css: iconWrapperStyles,
143
+ css: iconWrapperStyles
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
145
+ ,
144
146
  style: {
145
147
  [CSS_VAR_ICON_COLOR]: iconColor
146
148
  }
@@ -168,6 +170,7 @@ const Flag = props => {
168
170
  isExpanded: !isBold || isExpanded,
169
171
  testId: testId
170
172
  }, description && jsx("div", {
173
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
171
174
  style: {
172
175
  color: flagTextColorToken[appearance]
173
176
  },
@@ -21,7 +21,9 @@ const Expander = ({
21
21
  xcss: containerStyles,
22
22
  style: {
23
23
  maxHeight: isExpanded ? 150 : 0,
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
24
25
  flex: '1 1 100%',
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
25
27
  minWidth: 0
26
28
  },
27
29
  "aria-hidden": !isExpanded,
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  var packageName = "@atlaskit/flag";
8
- var packageVersion = "15.5.1";
8
+ var packageVersion = "15.5.3";
9
9
  export var AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -65,7 +65,9 @@ var FlagActions = function FlagActions(props) {
65
65
  component: linkComponent,
66
66
  spacing: "compact",
67
67
  testId: action.testId,
68
- key: index,
68
+ key: index
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
70
+ ,
69
71
  style: (_ref = {}, _defineProperty(_ref, VAR_COLOR, actionTextColor[appearance]), _defineProperty(_ref, VAR_BG_COLOR, actionBackgroundColor[appearance].default), _defineProperty(_ref, VAR_BG_COLOR_HOVER, actionBackgroundColor[appearance].pressed), _defineProperty(_ref, VAR_BG_COLOR_ACTIVE, actionBackgroundColor[appearance].active), _ref),
70
72
  css: [buttonStyles, appearance === DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
71
73
  }, action.content);
@@ -118,7 +118,9 @@ var FlagGroup = function FlagGroup(props) {
118
118
  var className = _ref.className,
119
119
  ref = _ref.ref;
120
120
  return jsx("div", {
121
- css: [baseStyles, isDismissAllowed && dismissAllowedStyles],
121
+ css: [baseStyles, isDismissAllowed && dismissAllowedStyles]
122
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
123
+ ,
122
124
  className: className,
123
125
  ref: ref
124
126
  }, jsx(FlagGroupContext.Provider, {
@@ -30,7 +30,8 @@ var getUniqueId = function () {
30
30
  };
31
31
  }();
32
32
  export function FlagsProvider(_ref) {
33
- var children = _ref.children;
33
+ var children = _ref.children,
34
+ shouldRenderToParent = _ref.shouldRenderToParent;
34
35
  var _useState = useState([]),
35
36
  _useState2 = _slicedToArray(_useState, 2),
36
37
  flags = _useState2[0],
@@ -72,7 +73,8 @@ export function FlagsProvider(_ref) {
72
73
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FlagContext.Provider, {
73
74
  value: api
74
75
  }, children), /*#__PURE__*/React.createElement(FlagGroup, {
75
- onDismissed: removeFlag
76
+ onDismissed: removeFlag,
77
+ shouldRenderToParent: shouldRenderToParent
76
78
  }, flags.map(function (flag) {
77
79
  var isAutoDismiss = flag.isAutoDismiss,
78
80
  restProps = _objectWithoutProperties(flag, _excluded);
package/dist/esm/flag.js CHANGED
@@ -46,7 +46,7 @@ var flagWrapperStyles = css({
46
46
  var analyticsAttributes = {
47
47
  componentName: 'flag',
48
48
  packageName: "@atlaskit/flag",
49
- packageVersion: "15.5.1"
49
+ packageVersion: "15.5.3"
50
50
  };
51
51
  var transitionStyles = css({
52
52
  flexGrow: 1,
@@ -148,7 +148,9 @@ var Flag = function Flag(props) {
148
148
  alignBlock: "stretch",
149
149
  space: "space.200"
150
150
  }, jsx("div", {
151
- css: iconWrapperStyles,
151
+ css: iconWrapperStyles
152
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
153
+ ,
152
154
  style: _defineProperty({}, CSS_VAR_ICON_COLOR, iconColor)
153
155
  }, icon), jsx("span", {
154
156
  css: transitionStyles
@@ -174,6 +176,7 @@ var Flag = function Flag(props) {
174
176
  isExpanded: !isBold || isExpanded,
175
177
  testId: testId
176
178
  }, description && jsx("div", {
179
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
177
180
  style: {
178
181
  color: flagTextColorToken[appearance]
179
182
  },
@@ -20,7 +20,9 @@ var Expander = function Expander(_ref) {
20
20
  xcss: containerStyles,
21
21
  style: {
22
22
  maxHeight: isExpanded ? 150 : 0,
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
23
24
  flex: '1 1 100%',
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
24
26
  minWidth: 0
25
27
  },
26
28
  "aria-hidden": !isExpanded,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AutoDismissFlagProps } from './types';
2
+ import { type AutoDismissFlagProps } from './types';
3
3
  export declare const AUTO_DISMISS_SECONDS = 8;
4
4
  /**
5
5
  * __Auto dismiss flag__
@@ -1,4 +1,4 @@
1
- import { AppearanceTypes } from './types';
1
+ import { type AppearanceTypes } from './types';
2
2
  export declare const DEFAULT_APPEARANCE: AppearanceTypes;
3
3
  export declare const VAR_COLOR = "--color";
4
4
  export declare const VAR_BG_COLOR = "--bg-color";
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ComponentType, FC } from 'react';
2
+ import { type ComponentType, type FC } from 'react';
3
3
  import type { CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  import type { ActionsType, AppearanceTypes } from './types';
5
5
  type FlagActionsProps = {
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { type ReactElement } from 'react';
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  type FlagGroupProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FlagPropsWithoutId } from './types';
2
+ import { type FlagPropsWithoutId } from './types';
3
3
  type FlagId = string | number;
4
4
  export type Combine<First, Second> = Omit<First, keyof Second> & Second;
5
5
  export interface CreateFlagArgs extends FlagPropsWithoutId {
@@ -26,8 +26,9 @@ export type FlagAPI = {
26
26
  * - [Examples](https://atlassian.design/components/flag/flags-provider/examples#using-showflags)
27
27
  */
28
28
  export declare function useFlags(): FlagAPI;
29
- export declare function FlagsProvider({ children }: {
29
+ export declare function FlagsProvider({ children, shouldRenderToParent, }: {
30
30
  children: React.ReactNode;
31
+ shouldRenderToParent?: boolean;
31
32
  }): JSX.Element;
32
33
  export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.ReactNode;
33
34
  export {};
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { type FC } from 'react';
3
3
  import type { FlagProps } from './types';
4
4
  /**
5
5
  * __Flag__
@@ -1,5 +1,5 @@
1
- import { BackgroundColor, TextProps } from '@atlaskit/primitives';
2
- import { AppearanceTypes } from './types';
1
+ import { type BackgroundColor, type TextProps } from '@atlaskit/primitives';
2
+ import { type AppearanceTypes } from './types';
3
3
  export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
4
4
  export declare const flagIconColor: Record<AppearanceTypes, string>;
5
5
  export declare const flagTextColor: Record<AppearanceTypes, TextProps['color']>;
@@ -1,6 +1,6 @@
1
- import { ComponentType, MouseEventHandler, ReactNode } from 'react';
2
- import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
1
+ import { type ComponentType, type MouseEventHandler, type ReactNode } from 'react';
2
+ import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  export type ActionType = {
5
5
  content: ReactNode;
6
6
  onClick?: (e: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AutoDismissFlagProps } from './types';
2
+ import { type AutoDismissFlagProps } from './types';
3
3
  export declare const AUTO_DISMISS_SECONDS = 8;
4
4
  /**
5
5
  * __Auto dismiss flag__
@@ -1,4 +1,4 @@
1
- import { AppearanceTypes } from './types';
1
+ import { type AppearanceTypes } from './types';
2
2
  export declare const DEFAULT_APPEARANCE: AppearanceTypes;
3
3
  export declare const VAR_COLOR = "--color";
4
4
  export declare const VAR_BG_COLOR = "--bg-color";
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ComponentType, FC } from 'react';
2
+ import { type ComponentType, type FC } from 'react';
3
3
  import type { CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  import type { ActionsType, AppearanceTypes } from './types';
5
5
  type FlagActionsProps = {
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { type ReactElement } from 'react';
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  type FlagGroupProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FlagPropsWithoutId } from './types';
2
+ import { type FlagPropsWithoutId } from './types';
3
3
  type FlagId = string | number;
4
4
  export type Combine<First, Second> = Omit<First, keyof Second> & Second;
5
5
  export interface CreateFlagArgs extends FlagPropsWithoutId {
@@ -26,8 +26,9 @@ export type FlagAPI = {
26
26
  * - [Examples](https://atlassian.design/components/flag/flags-provider/examples#using-showflags)
27
27
  */
28
28
  export declare function useFlags(): FlagAPI;
29
- export declare function FlagsProvider({ children }: {
29
+ export declare function FlagsProvider({ children, shouldRenderToParent, }: {
30
30
  children: React.ReactNode;
31
+ shouldRenderToParent?: boolean;
31
32
  }): JSX.Element;
32
33
  export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.ReactNode;
33
34
  export {};
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { type FC } from 'react';
3
3
  import type { FlagProps } from './types';
4
4
  /**
5
5
  * __Flag__
@@ -1,5 +1,5 @@
1
- import { BackgroundColor, TextProps } from '@atlaskit/primitives';
2
- import { AppearanceTypes } from './types';
1
+ import { type BackgroundColor, type TextProps } from '@atlaskit/primitives';
2
+ import { type AppearanceTypes } from './types';
3
3
  export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
4
4
  export declare const flagIconColor: Record<AppearanceTypes, string>;
5
5
  export declare const flagTextColor: Record<AppearanceTypes, TextProps['color']>;
@@ -1,6 +1,6 @@
1
- import { ComponentType, MouseEventHandler, ReactNode } from 'react';
2
- import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
1
+ import { type ComponentType, type MouseEventHandler, type ReactNode } from 'react';
2
+ import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
4
4
  export type ActionType = {
5
5
  content: ReactNode;
6
6
  onClick?: (e: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
@@ -1,4 +1,4 @@
1
- import { CreateFlagArgs } from '../src';
1
+ import { type CreateFlagArgs } from '../src';
2
2
 
3
3
  export default function ShowFlagArgs(props: CreateFlagArgs) {
4
4
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.5.1",
3
+ "version": "15.5.3",
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/"
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@atlaskit/analytics-next": "^9.3.0",
50
- "@atlaskit/button": "^17.14.0",
50
+ "@atlaskit/button": "^17.17.0",
51
51
  "@atlaskit/ds-lib": "^2.3.0",
52
- "@atlaskit/icon": "^22.1.0",
53
- "@atlaskit/motion": "^1.5.0",
54
- "@atlaskit/portal": "^4.4.0",
55
- "@atlaskit/primitives": "^6.0.0",
56
- "@atlaskit/theme": "^12.7.0",
57
- "@atlaskit/tokens": "^1.45.0",
52
+ "@atlaskit/icon": "^22.3.0",
53
+ "@atlaskit/motion": "^1.6.0",
54
+ "@atlaskit/portal": "^4.5.0",
55
+ "@atlaskit/primitives": "^7.0.0",
56
+ "@atlaskit/theme": "^12.9.0",
57
+ "@atlaskit/tokens": "^1.49.0",
58
58
  "@atlaskit/visually-hidden": "^1.3.0",
59
59
  "@babel/runtime": "^7.0.0",
60
60
  "@emotion/react": "^11.7.1"
@@ -68,7 +68,6 @@
68
68
  "@atlaskit/radio": "^6.3.0",
69
69
  "@atlaskit/ssr": "*",
70
70
  "@atlaskit/visual-regression": "*",
71
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
72
71
  "@emotion/jest": "^11.8.0",
73
72
  "@testing-library/react": "^12.1.5",
74
73
  "jest-emotion": "^10.0.32",
@@ -106,6 +105,5 @@
106
105
  ]
107
106
  }
108
107
  },
109
- "homepage": "https://atlassian.design/components/flag/",
110
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
108
+ "homepage": "https://atlassian.design/components/flag/"
111
109
  }