Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atlaskit/flag

atlassian78kApache-2.017.1.4TypeScript support: included

A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.

atlaskit, react, ui

readme

Flag

A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.

Installation

yarn add @atlaskit/flag

Usage

Detailed docs and example usage can be found here.

changelog

@atlaskit/flag

17.1.4

Patch Changes

  • Updated dependencies

17.1.3

Patch Changes

  • Updated dependencies

17.1.2

Patch Changes

  • Updated dependencies

17.1.1

Patch Changes

  • #129972 b2d69a39e6687 - Update @compiled/react dependency for improved type checking support.
  • Updated dependencies

17.1.0

Minor Changes

  • #128153 00925dc5af2a6 - [ux] Flag description and actions now explicitly set the font style to use typography tokens, instead of relying on the CSS reset to be present. This change is behind the feature flag platform_ads_explicit_font_styles.

17.0.0

Major Changes

  • #124832 aa446a240d0bd - Migrated from @emotion/react to @compiled/react in order to improve performance, align with the rest of the Atlaskit techstack, and support React 18 Streaming SSR.

    Please note, in order to use this version of @atlaskit/flag, you will need to ensure that your bundler is configured to handle .css imports correctly. Most bundlers come with built-in support for .css imports, so you may not need to do anything. If you are using a different bundler, please refer to the documentation for that bundler to understand how to handle .css imports.

    For more information on the migration, please refer to RFC-73 Migrating our components to Compiled CSS-in-JS.

Patch Changes

  • Updated dependencies

16.2.1

Patch Changes

  • Updated dependencies

16.2.0

Minor Changes

  • #122900 d8df33a58ab3b - Updated flag dismiss and expand button to use new icons. This change is behind a feature flag and will be available in a later release.

16.1.3

Patch Changes

  • Updated dependencies

16.1.2

Patch Changes

  • Updated dependencies

16.1.1

Patch Changes

  • #119202 903841d1b85ba - Removes the explicit return type on withFlagsProvider to allow typescript to infer the real type. This allows consumers to have a better typescript experience and not have to cast the withFlagsProvider type in storybook.

16.1.0

Minor Changes

  • #118326 47ed83a62335a - We are testing improvements behind a feature flag. Flags with default icons, and support for icons with no spacing. If this fix is successful it will be available in a later release.

Patch Changes

  • Updated dependencies

16.0.0

Major Changes

Patch Changes

  • Updated dependencies

15.9.4

Patch Changes

  • Updated dependencies

15.9.3

Patch Changes

  • #114382 5033cb80b3765 - Updates internal animation logic to leverage static animation timing names, rather than arbitrary values.
  • Updated dependencies

15.9.2

Patch Changes

  • Updated dependencies

15.9.1

Patch Changes

  • Updated dependencies

15.9.0

Minor Changes

Patch Changes

  • Updated dependencies

15.8.15

Patch Changes

15.8.14

Patch Changes

  • Updated dependencies

15.8.13

Patch Changes

15.8.12

Patch Changes

  • Updated dependencies

15.8.11

Patch Changes

  • Updated dependencies

15.8.10

Patch Changes

  • #165531 57f451bda8919 - Adds side-effect config to support Compiled css extraction in third-party apps

15.8.9

Patch Changes

  • Updated dependencies

15.8.8

Patch Changes

  • #162319 2ac6ec33aa35a - Added aria-hidden to title and description when delayAnnouncement enabled to avoid duplicate announcement. Also removed condition for role alert

15.8.7

Patch Changes

  • Updated dependencies

15.8.6

Patch Changes

  • Updated dependencies

15.8.5

Patch Changes

15.8.4

Patch Changes

  • Updated dependencies

15.8.3

Patch Changes

  • Updated dependencies

15.8.2

Patch Changes

  • Updated dependencies

15.8.1

Patch Changes

  • Updated dependencies

15.8.0

Minor Changes

  • #127511 db30e29344013 - Widening range of react and react-dom peer dependencies from ^16.8.0 || ^17.0.0 || ~18.2.0 to the wider range of ^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).

    This change has been done to enable usage of `react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platform` packages.

Patch Changes

  • Updated dependencies

15.7.5

Patch Changes

  • Updated dependencies

15.7.4

Patch Changes

  • Updated dependencies

15.7.3

Patch Changes

  • Updated dependencies

15.7.2

Patch Changes

15.7.1

Patch Changes

  • Updated dependencies

15.7.0

Minor Changes

15.6.5

Patch Changes

  • Updated dependencies

15.6.4

Patch Changes

  • Updated dependencies

15.6.3

Patch Changes

  • Updated dependencies

15.6.2

Patch Changes

15.6.1

Patch Changes

  • Updated dependencies

15.6.0

Minor Changes

  • #111878 223959ef57c80 - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.

Patch Changes

  • Updated dependencies

15.5.3

Patch Changes

  • Updated dependencies

15.5.2

Patch Changes

  • #101206 e7b8d483e629 - Introduce a new prop shouldRenderToParent on FlagProvider to render flag group directly to parent instead of Portal

15.5.1

Patch Changes

  • Updated dependencies

15.5.0

Minor Changes

  • #96792 bbed9621a7a3 - HTML buttons used in flags have been replaced with the Pressable primitive.

15.4.1

Patch Changes

15.4.0

Minor Changes

15.3.0

Minor Changes

  • #85860 6c6d44b0293f - Add shouldRenderToParent prop on flag group to render directly in the parent so the flags can be acessed in aria-modal components

15.2.27

Patch Changes

15.2.26

Patch Changes

  • Updated dependencies

15.2.25

Patch Changes

  • Updated dependencies

15.2.24

Patch Changes

  • Updated dependencies

15.2.23

Patch Changes

  • Updated dependencies

15.2.22

Patch Changes

  • Updated dependencies

15.2.21

Patch Changes

  • Updated dependencies

15.2.20

Patch Changes

15.2.19

Patch Changes

  • Updated dependencies

15.2.18

Patch Changes

15.2.17

Patch Changes

15.2.16

Patch Changes

15.2.15

Patch Changes

  • #36754 4ae083a7e66 - Use @af/accessibility-testing for default jest-axe config and jest-axe import in accessibility testing.

15.2.14

Patch Changes

15.2.13

Patch Changes

  • Updated dependencies

15.2.12

Patch Changes

  • Updated dependencies

15.2.11

Patch Changes

  • Updated dependencies

15.2.10

Patch Changes

  • Updated dependencies

15.2.9

Patch Changes

  • Updated dependencies

15.2.8

Patch Changes

  • #35337 529814693a1 - Pin version of @atlaskit/primitives so it resolves to correct version

15.2.7

Patch Changes

  • #33833 b8b41649492 - Update how certain background colors are referenced by name. Internal changes only.
  • Updated dependencies

15.2.6

Patch Changes

  • #34922 779727e307a - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.

15.2.5

Patch Changes

  • Updated dependencies

15.2.4

Patch Changes

  • #34881 774ed69ecef - Internal changes to use space tokens for spacing values. There is no visual change.

15.2.3

Patch Changes

  • #33652 e7ea6832ad2 - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.

15.2.2

Patch Changes

15.2.1

Patch Changes

15.2.0

Minor Changes

Patch Changes

  • Updated dependencies

15.1.6

Patch Changes

15.1.5

Patch Changes

  • #32424 2e01c9c74b5 - DUMMY remove before merging to master; dupe adf-schema via adf-utils

15.1.4

Patch Changes

  • Updated dependencies

15.1.3

Patch Changes

  • Updated dependencies

15.1.2

Patch Changes

  • Updated dependencies

15.1.1

Patch Changes

  • Updated dependencies

15.1.0

Minor Changes

  • #31299 be1170b4b1f - Removes custom appearance styles for focus. Now uses color.border.focused token consistenly across all appearances..

Patch Changes

  • Updated dependencies

15.0.12

Patch Changes

  • Updated dependencies

15.0.11

Patch Changes

  • #31206 261420360ec - Upgrades component types to support React 18.
  • Updated dependencies

15.0.10

Patch Changes

  • #31338 74c1b81a476 - Replaces use of gridSize with space tokens. There is no expected visual change.

15.0.9

Patch Changes

  • #31242 cfe48bb7ece - Internal change only. Replace usages of Inline/Stack with stable version from @atlaskit/primitives.

15.0.8

Patch Changes

  • #31041 842bb999a85 - Internal change only. Replace usages of Inline/Stack with stable version from @atlaskit/primitives.

15.0.7

Patch Changes

  • Updated dependencies

15.0.6

Patch Changes

  • Updated dependencies

15.0.5

Patch Changes

  • #27891 eadbf13d8c0 - Updated usages of Text, Box, Stack, and Inline primitives to reflect their updated APIs. There are no visual or behaviour changes.
  • Updated dependencies

15.0.4

Patch Changes

  • #28064 b0f6dd0bc35 - Updated to use typography tokens. There is no expected behaviour or visual change.

15.0.3

Patch Changes

  • #28090 56a44cd0ae9 - - [ux] Updated Flag component colored background buttons to use correct tokens for better contrast
    • Made the button color type stricter and extracted local css variable names into constants

15.0.2

Patch Changes

  • Updated dependencies

15.0.1

Patch Changes

  • Updated dependencies

15.0.0

Major Changes

  • #26712 f7b2dbd6eba - BREAKING CHANGE: We have removed support for legacy light and dark themes. Previously, Flag used the useGlobalTheme hook to detect 'light' or 'dark' modes and apply suitable styles accordingly. This functionality has been removed in favor of supporting token-based light and dark themes as well as including fallbacks for non-token environments.

    Other changes include:

    • Flag shadow is now the same across normal and bold flags and has been made consistent with overlay shadows in other components.
    • Dismiss button is better aligned within the Flag and has a more consistent hit target.
    • Flag icon is better aligned with content.
    • Internal change to the way styles are applied.

Patch Changes

  • a1af6f8bb99 - Fixes a regression that could cause Flag description or actions to display incorrectly or not at all.
  • 373f54c8212 - Fixed an issue where Flag title or description could overflow its container if a single word exceeded the length of the container (for example, long filenames).
  • bbd4e296a68 - Fixes a regression that could cause Flag description or actions to display incorrectly or not at all.
  • Updated dependencies

14.7.3

Patch Changes

  • Updated dependencies

14.7.2

Patch Changes

  • #26408 9de88fa1e1e - Internal changes to include spacing tokens in component implementations.

14.7.1

Patch Changes

14.7.0

Minor Changes

  • #24004 d176305ad56 - Updates @emotion/core to @emotion/react; v10 to v11. There is no expected behavior change.

Patch Changes

  • Updated dependencies

14.6.4

Patch Changes

14.6.3

Patch Changes

  • #23381 8202e37941b - Internal code change turning on new linting rules.
  • Updated dependencies

14.6.2

Patch Changes

14.6.1

Patch Changes

  • #22642 45ebe7af434 - Moved to using declarative entrypoints internally. Public API is unchanged.
  • Updated dependencies

14.6.0

Minor Changes

  • #22029 379b0a864df - [ux] Remove truncation of titles and wrap text instead. Very slightly changed title text positioning.

Patch Changes

  • f16146d83ff - [ux] Fix cross icon positioning
  • Updated dependencies

14.5.9

Patch Changes

14.5.8

Patch Changes

  • Updated dependencies

14.5.7

Patch Changes

14.5.6

Patch Changes

  • Updated dependencies

14.5.5

Patch Changes

  • #19618 0739258f502 - [ux] Fixed token usages on backgrounds and action links.
  • Updated dependencies

14.5.4

Patch Changes

  • Updated dependencies

14.5.3

Patch Changes

  • Updated dependencies

14.5.2

Patch Changes

  • #16752 19d72473dfb - Internal changes to support adoption of '@compiled/react'.
  • 19d72473dfb - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
  • 19d72473dfb - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
  • 19d72473dfb - An a11y fix for the flag dismiss/toggle button such that it retains focus when toggled.
  • Updated dependencies

14.5.1

Patch Changes

  • Updated dependencies

14.5.0

Minor Changes

  • #17576 c04528ade6a - Note: It is a re-release of the wrongly patched version 14.4.2 that should have been a minor release.

    [ux] Instrumented flag with the new theming package, @atlaskit/tokens.

    New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.

Patch Changes

  • Updated dependencies

14.4.2

Minor Changes

WRONG RELEASE TYPE - DON'T USE

  • #15998 4567d73813c - Instrumented flag with the new theming package, @atlaskit/tokens.

    New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.

Patch Changes

  • f460cc7c411 - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
  • Updated dependencies

14.4.1

Patch Changes

  • Updated dependencies

14.4.0

Minor Changes

Patch Changes

  • Updated dependencies

14.3.4

Patch Changes

14.3.3

Patch Changes

  • #11649 bc7669cb402 - [ux] Fixed flag labels to be more accurately describe their elements.

14.3.2

Patch Changes

14.3.1

Patch Changes

  • #11113 1964787a3ce - [ux] fixes issue where flags wrapped in another component would fail to autodismiss after 8 seconds in FlagGroup
  • Updated dependencies

14.3.0

Minor Changes

14.2.4

Patch Changes

  • Updated dependencies

14.2.3

Patch Changes

14.2.2

Patch Changes

  • #8644 79c23df6340 - Use injected package name and version for analytics instead of version.json.
  • b11ea3f327e - [ux] Fix text not being able to be selected.
  • Updated dependencies

14.2.1

Patch Changes

  • #7762 952019cfd39 - Removed extraneous/unnecessary dependencies for design system components.

14.2.0

Minor Changes

  • #7882 6a9e722703e - You can now place an onDismissed prop on a Flag. This was removed as part of a major version upgrade and was previously a "private prop". It has been added back as there is a need for a Flag to know when it is being dimissed.

14.1.0

Minor Changes

14.0.8

Patch Changes

14.0.7

Patch Changes

  • #5497 5f58283e1f - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started Also add typescript to devDependencies to denote version that the package was built with.

14.0.6

Patch Changes

  • Updated dependencies

14.0.5

Patch Changes

  • #4749 83e32fa998 - Now uses useAnalyticsEventHandler in @atlaskit/analytics-next rather than its own version of the hook
  • 93b04d1161 - Fixed focus ring cut off issue on flag
  • Updated dependencies

14.0.4

Patch Changes

14.0.3

Patch Changes

  • #4538 c740579074 - The h2 for Flag Groups no longer causes scrollbars to be triggered when a flag displays.

14.0.2

Patch Changes

  • #3885 6c525a8229 - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0

    Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.

14.0.1

Patch Changes

  • #3293 954cc87b62 - The readme and package information has been updated to point to the new design system website.

14.0.0

Major Changes

  • #3428 807cd28fc0 - In this version we made flag dramatically faster, lighter and easier to use 🤩

    Changes

    In 13.0.0 we bring significant performance improvements as well as improving the experience of using flag.

    • Flag no longer has a peerDependency on styled-components@3. Internally flag is now using @emotion/core for styling
    • Change Flag and FlagGroup to use our standardized and performant @atlaskit/motion instead of react-transition-group. Along with this change exit animations are now 2x quicker than the entering animation as per the standardized animation practices in motion.
    • Add a FlagProvider wrapper for single page applications that allows you to show flags in a flag group imperatively by calling a function, showFlags that is stored in the context. Check the docs for more details
    • Removed the private props isDismissAllowed and onDismissed from FlagProps, in favour of accessing them from context that FlagGroup creates.
    • Made types more specific, onDismissed on FlagGroup is now defined as (id: number | string, analyticsEvent: UIAnalyticsEvent) => void

Patch Changes

  • db053b24d8 - Update all the theme imports to be tree-shakable

13.0.0

Major Changes

Patch Changes

  • Updated dependencies

12.4.5

Patch Changes

12.4.4

Patch Changes

  • #2866 54a9514fcf - Build and supporting files will no longer be published to npm

12.4.3

Patch Changes

12.4.2

Patch Changes

  • #2137 98f462e2aa - Bumping use the latest version of @atlaskit/spinner
  • Updated dependencies

12.4.1

Patch Changes

  • Updated dependencies

12.4.0

Minor Changes

  • #1868 958b2bf6f8 - FIX: Screen reader text won't be rendered when there is no flag FIX: FlagGroup screen reader text defaults to h2 tag now. Was previously h1. NEW: Customize screen reader text and the tag that renders the text

Patch Changes

  • Updated dependencies

12.3.11

Patch Changes

12.3.10

Patch Changes

12.3.9

Patch Changes

12.3.8

Patch Changes

12.3.7

Patch Changes

12.3.6

Patch Changes

12.3.5

Patch Changes

12.3.4

Patch Changes

  • [patch]d222c2b987:

    Theme has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided.

    Breaking

    ** getTokens props changes ** When defining the value function passed into a ThemeProvider, the getTokens parameter cannot be called without props; if no props are provided an empty object {} must be passed in:

    <CustomTheme.Provider
      value={t => ({ ...t(), backgroundColor: '#333'})}
    >

    becomes:

    <CustomTheme.Provider
      value={t => ({ ...t({}), backgroundColor: '#333'})}
    >

    ** Color palette changes ** Color palettes have been moved into their own file. Users will need to update imports from this:

    import { colors } from '@atlaskit/theme';
    
    colors.colorPalette('8');

    to this:

    import { colorPalette } from '@atlaskit/theme';
    
    colorPalette.colorPalette('8');

    or for multi entry-point users:

    import * as colors from '@atlaskit/theme/colors';
    
    colors.colorPalette('8');

    to this:

    import * as colorPalettes from '@atlaskit/theme/color-palette';
    
    colorPalettes.colorPalette('8');

12.3.3

Patch Changes

  • [patch]f86839ca4e:

    @atlaskit/portal had an issue in IE11 and this is fixed in 3.1.2

12.3.2

Patch Changes

  • [patch]35d2229b2a:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

12.3.1

Patch Changes

  • [patch]a2d0043716:

    Updated version of analytics-next to fix potential incompatibilities with TS 3.6

12.3.0

Minor Changes

  • [minor]33d2e11038:

    Adding an optional prop testId that will set the attribute value data-testid. It will help products to write better integration and end to end tests.

12.2.2

Patch Changes

  • [patch]2b158873d1:

    Add linting rule to prevent unsafe usage of setTimeout within React components.

12.2.1

Patch Changes

  • [patch]67a3a1ee02:

    Converts prop types to interfaces

12.2.0

Minor Changes

12.1.0

Minor Changes

  • [minor]3e0267e5dd:

    FlagGroup is centered on mobile

12.0.20

Patch Changes

  • [patch]097b696613:

    Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports

12.0.19

Patch Changes

12.0.18

Patch Changes

  • [patch]708028db86:

    Change all the imports to theme in Core to use multi entry points

12.0.17

Patch Changes

  • [patch]de35ce8c67:

    Updates component maintainers

12.0.16

Patch Changes

  • [patch]926b43142b:

    Analytics-next has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No behavioural changes.

    Breaking changes

    • withAnalyticsForSumTypeProps alias has been removed, please use withAnalyticsEvents
    • AnalyticsContextWrappedComp alias has been removed, please use withAnalyticsContext

    Breaking changes to TypeScript annotations

    • withAnalyticsEvents now infers proptypes automatically, consumers no longer need to provide props as a generic type.
    • withAnalyticsContext now infers proptypes automatically, consumers no longer need to provide props as a generic type.
    • Type WithAnalyticsEventProps has been renamed to WithAnalyticsEventsProps to match source code
    • Type CreateUIAnalyticsEventSignature has been renamed to CreateUIAnalyticsEvent to match source code
    • Type UIAnalyticsEventHandlerSignature has been renamed to UIAnalyticsEventHandler to match source code
    • Type AnalyticsEventsPayload has been renamed to AnalyticsEventPayload
    • Type ObjectType has been removed, please use Record<string, any> or [key: string]: any
    • Type UIAnalyticsEventInterface has been removed, please use UIAnalyticsEvent
    • Type AnalyticsEventInterface has been removed, please use AnalyticsEvent
    • Type CreateAndFireEventFunction removed and should now be inferred by TypeScript
    • Type AnalyticsEventUpdater removed and should now be inferred by TypeScript

12.0.15

Patch Changes

  • [patch]688f2957ca:

    Fixes various TypeScript errors which were previously failing silently

12.0.14

Patch Changes

  • [patch]9f8ab1084b:

    Consume analytics-next ts type definitions as an ambient declaration.

12.0.13

Patch Changes

  • [patch]bbff8a7d87:

    Fixes bug, missing version.json file

12.0.12

Patch Changes

  • [patch]18dfac7332:

    In this PR, we are:

    • Re-introducing dist build folders
    • Adding back cjs
    • Replacing es5 by cjs and es2015 by esm
    • Creating folders at the root for entry-points
    • Removing the generation of the entry-points at the root Please see this ticket or this page for further details

12.0.11

Patch Changes

  • [patch]d0db01b410:

    TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps of the returned component.

    Before:

    withAnalyticsEvents()(Button) as ComponentClass<Props>;

    After:

    withAnalyticsEvents<Props>()(Button);

12.0.10

12.0.9

Patch Changes

  • [patch]76b4718f7d:

    Fixing mounting and unmounting animations

12.0.8

Patch Changes

  • [patch]4615439434:

    index.ts will now be ignored when publishing to npm

12.0.7

Patch Changes

12.0.6

Patch Changes

  • [patch]9c80ef7539:

    The update to node 10 reveals that unknown type is breaking the extract react types. I had to replace unknown type by any

12.0.5

Patch Changes

  • [patch]ff649e1001:

    Widens type of title prop from string to ReactNode. This gives flexibility to pass i18n components as flag titles.

12.0.4

12.0.3

  • [patch]b0ef06c685:

    • This is just a safety release in case anything strange happened in in the previous one. See Pull Request #5942 for details

12.0.2

12.0.1

  • [patch]cdba81d4f2:

    • export the correct types so typescript usage works correctly

12.0.0

  • [major]238b65171f:

    • @atlaskit/flag has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.

11.0.1

  • [patch]dccab11ef4:

    • Fixed incorrect flag appearing after dismiss a previous one

11.0.0

  • [major]7c17b35107:

    • Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.

10.0.7

10.0.6

10.0.5

10.0.4

  • [patch]23672bbd2d:

    • Improvement: Align the flag actions with title and text for normal appearance flags

10.0.3

10.0.2

  • [patch]98e11001ff:

    • Removes duplicate babel-runtime dependency

10.0.1

10.0.0

  • [major]76299208e6:

    • Drop ES5 from all the flow modules

    Dropping CJS support in all @atlaskit packages

    As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain import and export declarations.

    The major reason for doing this is to allow us to support multiple entry points in packages, e.g:

    import colors from `@atlaskit/theme/colors`;

    Previously this was sort of possible for consumers by doing something like:

    import colors from `@atlaskit/theme/dist/esm/colors`;

    This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't actually supposed to be used. 2. We are unable to do this internally in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.

    To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.

    ES Modules are widely supported by all modern bundlers and can be worked around in node environments.

    We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.

    Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support (for external) if you have any questions or queries about this.

9.1.10

9.1.9

9.1.8

9.1.7

9.1.6

9.1.5

9.1.4

9.1.3

9.1.2

9.1.1

  • [patch] Adds missing implicit @babel/runtime dependency b71751b

9.1.0

  • [minor] Now the flag actions accept href and target 65af057
  • [patch] Updated the flag actions to accept the href and target as props 43ac1ec

9.0.13

  • [patch] Updated the flag to use atlaskit button d2084ad

9.0.12

  • [patch] Updated the flag actions use gridSize and fontSize properly 3e7da11

9.0.11

9.0.10

9.0.9

9.0.8

  • [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04

9.0.6

  • [patch] Updated flags to use atlaskit portal instead of Layer manger b9e6757
  • [none] Updated dependencies b9e6757

9.0.5

9.0.4

9.0.3

9.0.2

9.0.1

9.0.0

8.2.0

  • [minor] Reduce autodismiss flag duration from 15 seconds to 8 seconds 5f6ec84

8.1.5

8.1.4

  • [patch] Button should be a dev dependency 50ca31b
  • [none] Updated dependencies 50ca31b

8.1.3

8.1.2

8.1.1

8.1.0

8.0.1

8.0.0

7.0.3

7.0.0

  • [major] Bump to React 16.3. 4251858

6.5.3

  • [patch] Export the AppearanceTypes type d38fc10

6.5.2

  • [patch] Makes packages Flow types compatible with version 0.67 25daac0

6.5.1

  • [patch] Re-releasing due to potentially broken babel release 9ed0bba

6.5.0

  • [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30

6.4.6

  • [patch] adds aria-expanded value to expander button in flag 7de4577

6.4.5

  • [patch] updates Flag to closer match ADG spec 5392b60

6.4.4

6.4.2

  • [patch] Remove babel-plugin-react-flow-props-to-prop-types 06c1f08

6.4.1

  • [patch] Packages Flow types for elements components 3111e74

6.4.0

  • [minor] Update buttonIcon size depending if CrossIcon or ChevronIcon 16bf4e5

6.3.0

  • [minor] Update the expand button to medium size 05d8bd5

6.2.2

  • [patch] Migrate Navigation from Ak repo to ak mk 2 repo, Fixed flow typing inconsistencies in ak mk 2 bdeef5b

6.2.1

  • [patch] Resolved low hanging flow errors in field-base field-text comment icon item and website, $ 007de27

6.2.0

  • [minor] Add React 16 support. 12ea6e4

6.1.9

  • [patch] migrated flag to mk2 630489e

6.1.8 (2017-11-22)

  • bug fix; long messages in Flags start to wrap, not overflow content. (b69c45f)

6.1.7 (2017-11-15)

  • bug fix; fix flags within page components appearing behind navigation (issues closed: ak-1823) (08e397e)

6.1.6 (2017-11-13)

  • bug fix; update flag's react-transition-group dependency from v1 to v2 (issues closed: ak-3755) (32f3af3)

6.1.5 (2017-11-02)

  • bug fix; added missing dependencies (issues closed: ak-3782) (4dbc3ef)

6.1.4 (2017-10-26)

  • bug fix; fix to rebuild stories (793b2a7)

6.1.3 (2017-10-22)

  • bug fix; update styled component dependency and react peerDep (39f3286)

6.1.2 (2017-10-15)

  • bug fix; update dependencies for react 16 compatibility (fc47c94)

6.1.1 (2017-10-12)

  • bug fix; bumps version of Page (issues closed: ak-3680) (8713649)

6.1.0 (2017-08-17)

  • feature; adding new AutoDismissFlag component (issues closed: ak-2974 ak-1503) (9aa91c0)

6.0.0 (2017-08-16)

  • breaking; The Flag.id prop has been changed from optional to required. (91f8dc4)
  • breaking; FlagGroup no longer illegally reads Flag.props.key (91f8dc4)

5.0.1 (2017-08-15)

  • bug fix; flag transitions between appearances smoothly, hides expand icon if not needed (issues closed: ak-2973 ak-3155) (0766202)

5.0.0 (2017-08-11)

  • bug fix; fix the theme-dependency (db90333)
  • breaking; affects internal styled-components implementation (d14522a)
  • breaking; implement dark mode theme (d14522a)

4.0.0 (2017-08-11)

  • breaking; affects internal styled-components implementation (d14522a)
  • breaking; implement dark mode theme (d14522a)

3.4.4 (2017-08-04)

  • bug fix; moves babel-plugin-react-flow-props-to-prop-types to a devDependency (6378b88)

3.4.3 (2017-07-27)

  • fix; rename jsnext:main to jsnext:experimental:main temporarily (c7508e0)

3.4.2 (2017-07-25)

  • fix; use class transform in loose mode in babel to improve load performance in apps (fde719a)

3.1.0 (2017-07-17)

  • fix; rerelease, failed prepublish scripts (5fd82f8)

3.1.0 (2017-07-17)

  • fix; replace incorrect component description in Flag storybook (2c42255)
  • feature; added ES module builds to dist and add jsnext:main to most ADG packages (ea76507)

3.0.0 (2017-07-06)

  • fix; add TransitionGroup to FlagGroup to handle lifecycle animations (6dbb237)
  • breaking; Removed shouldDismiss prop from Flag. Just set a FlagGroup's children declaratively and animation will be handled automatically with TransitionGroup (you don't need to wait until the flag has animated out before updating your state).
  • ISSUES CLOSED: AK-2558

2.2.1 (2017-06-19)

  • fix; bump Flag icon dependency to 7.x (35bb4fa)

2.2.0 (2017-06-05)

  • fix; add prop-types as a dependency to avoid React 15.x warnings (92598eb)
  • feature; added new optional bold flags, controlled by the Flag.appearance prop (b78dca7)

2.1.2 (2017-05-12)

  • fix; flag dismiss button focus style and spacing now correct (c0130be)

2.1.1 (2017-05-11)

  • fix; bump modal-dialog dep, and change to a devDep (d16f887)

2.1.0 (2017-05-06)

  • feature; allow flags to be dismissed programatically via shouldDismiss prop (445dcb4)

2.0.4 (2017-05-02)

  • fix; change to dependency on util-shared-styles to correct version (a052c60)

2.0.3 (2017-04-27)

  • fix; update legal copy to be more clear. Not all modules include ADG license. (f3a945e)

2.0.2 (2017-04-26)

  • fix; update legal copy and fix broken links for component README on npm. New contribution and (0b3e454)

2.0.1 (2017-04-13)

  • fix; update flag stories to use new readme component (1c56c84)

2.0.0 (2017-04-04)

  • refactor the flag component to use styled-components (615208f)
  • breaking; added peerDependency "styled-components”, removed dependency “classnames”
  • ISSUES CLOSED: AK-2028

1.0.9 (2017-03-23)

  • fix; Empty commit to release the component (49c08ee)

1.0.6 (2017-03-21)

  • fix; accept JSX in description prop (c986abf)
  • fix; maintainers for all the packages were added (261d00a)

1.0.5 (2017-02-27)

  • fix; update flag's icon dependency to latest (e60c12a)

1.0.4 (2017-02-20)

  • fix; use correctly scoped package names in npm docs (91dbd2f)

1.0.3 (2017-02-10)

  • fix; Dummy commit to release components to registry (5bac43b)