Toggle
A toggle is used to view or switch between enabled or disabled states.17.3.2
Patch Changes
- Updated dependencies
17.3.1
Patch Changes
- Updated dependencies
17.3.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
17.2.0
Minor Changes
-
d82e6f76528ab, (opens new window) - Add direct subpath package exports as part of the linking-platform, search, media, and design-system barrel-removal (de-barrel) migration.These packages now expose their individual modules via explicit
package.jsonexportssubpaths so that consumers can import directly from the leaf module (e.g.@atlaskit/pkg/thing) instead of the package barrel/index. This adds new public entry points without changing or removing any existing exports, so it is a backwards-compatible additive change.No runtime behaviour changes; this is an API-surface (entry-point) addition to support tree-shaking and to unblock removal of the barrel index files.
Patch Changes
- Updated dependencies
17.1.5
Patch Changes
95d4618be32ae, (opens new window) - Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is partial.- Updated dependencies
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
- Updated dependencies
17.1.0
Minor Changes
-
cd097a2111788, (opens new window) - Republish packages depending on@atlaskit/react-compiler-gatingso their published dependency reference is updated to the renamed@atlaskit/react-compiler-gatingscope.The earlier rename of
@atlassian/react-compiler-gatingto@atlaskit/react-compiler-gatingonly bumped the renamed package itself, so dependent packages were never republished and their published versions still referenced the old@atlassian/react-compiler-gatingname, which is not available in the public npm registry. This minor bump republishes all affected packages with the corrected dependency.
Patch Changes
- Updated dependencies
17.0.1
Patch Changes
ee28cf33718b0, (opens new window) - Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform gating.- Updated dependencies
17.0.0
Major Changes
-
f2dc9097319f0, (opens new window) - ### Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.Removes the
typesVersionsproperty anddist/types-ts4.5directory from the dist.Types are now exclusively via the
"types": "dist/types/index.d.ts"property.- "typesVersions": { - ">=4.5 <4.9": { - "*": [ - "dist/types-ts4.5/*", - "dist/types-ts4.5/index.d.ts" - ] - } - },
Patch Changes
- Updated dependencies
16.1.0
Minor Changes
1ae3a82b2561f, (opens new window) - Cleanup feature gate 'platform-toggle-fix-disabled-zindex'
16.0.0
Major Changes
-
d156157c9f0f9, (opens new window) - The feature gateplatform-toggle-atomic-styleshas been removed. Atomic styles are now always applied.The
data-checked,data-disabled, anddata-sizeattributes have been removed from the Toggle component's rendered output.
Patch Changes
- Updated dependencies
15.6.2
Patch Changes
- Updated dependencies
15.6.1
Patch Changes
65ac96a771383, (opens new window) - Fix disabled toggle handle zIndex rendering above overlapping elements like select menus, behind feature flag platform-toggle-fix-disabled-zindex
15.6.0
Minor Changes
7d6e9b5e6e7c6, (opens new window) - Autofix: add explicit package exports (barrel removal)
Patch Changes
- Updated dependencies
15.5.1
Patch Changes
- Updated dependencies
15.5.0
Minor Changes
2fda175ca9266, (opens new window) - Removeddata-checked,data-disabled, anddata-sizeattributes from the Toggle component's rendered output. These attributes are no longer set on the label element when theplatform-toggle-atomic-stylesfeature flag is enabled.
15.4.1
Patch Changes
- Updated dependencies
15.4.0
Minor Changes
bc599e912cf4b, (opens new window) - Removeddata-checked,data-disabled, anddata-sizeattributes from the Toggle component's rendered output. These attributes are no longer set on the label element when theplatform-toggle-atomic-stylesfeature flag is enabled.
15.3.0
Minor Changes
2fe4c35fe7ad6, (opens new window) - Internal refactor to toggle to eliminate nested CSS selectors in favor of an atomic-friendly styling approach using CSS custom properties. This change is behind theplatform-toggle-atomic-stylesfeature gate.
15.2.17
Patch Changes
02483200273ec, (opens new window) - Enrol all Design System UI packages into the React Compiler with platform gating via isReactCompilerActivePlatform.- Updated dependencies
15.2.16
Patch Changes
e2085d35701ca, (opens new window) - Internal changes to remove unnecessary token fallbacks and imports from@atlaskit/theme- Updated dependencies
15.2.15
Patch Changes
7aef1e49e90ea, (opens new window) - Removes redundant fallback color values via @atlaskit/theme- Updated dependencies
15.2.14
Patch Changes
- Updated dependencies
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
- Updated dependencies
15.2.7
Patch Changes
a48fdadce2137, (opens new window) - Minor internal typography changes.- Updated dependencies
15.2.6
Patch Changes
- Updated dependencies
15.2.5
Patch Changes
fc55da96999c2, (opens new window) - Clean up dead FG
15.2.4
Patch Changes
162f2dbd88f1b, (opens new window) - Fix icon shifting bug
15.2.3
Patch Changes
- Updated dependencies
15.2.2
Patch Changes
d14ea5f60b689, (opens new window) - chore: migrate platform UI & component libraries icon imports from migration paths to core
15.2.1
Patch Changes
- Updated dependencies
15.2.0
Minor Changes
b867e641d818d, (opens new window) - Updated border radius values behind a feature gateplatform-dst-shape-theme-default.
15.1.16
Patch Changes
a60a82196851a, (opens new window) - Internal refactors to remove unused variables. No functional or public changes.- Updated dependencies
15.1.15
Patch Changes
- Updated dependencies
15.1.14
Patch Changes
- Updated dependencies
15.1.13
Patch Changes
- Updated dependencies
15.1.12
Patch Changes
- Updated dependencies
15.1.11
Patch Changes
- Updated dependencies
15.1.10
Patch Changes
- Updated dependencies
15.1.9
Patch Changes
- Updated dependencies
15.1.8
Patch Changes
248faa32d4835, (opens new window) - Internal changes to how borders are applied.- Updated dependencies
15.1.7
Patch Changes
f0662cd7a143e, (opens new window) - Internal changes to how borders are applied.- Updated dependencies
15.1.6
Patch Changes
- Updated dependencies
15.1.5
Patch Changes
- Updated dependencies
15.1.4
Patch Changes
255837cfba315, (opens new window) - Internal changes to how border radius is applied.- 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
- #188921, (opens new window)
6be3eef87d2ed, (opens new window) - AddedisLoadingprop to handle async actions where the toggle's state is being fetched or updated asynchronously
Patch Changes
- Updated dependencies
15.0.13
Patch Changes
- Updated dependencies
15.0.12
Patch Changes
- #188952, (opens new window)
1a88e6e2601ae, (opens new window) - Migrated usage of renamed/deprecated icons - Updated dependencies
15.0.11
Patch Changes
- #187142, (opens new window)
ffd74c7e8e61d, (opens new window) - Refactors the focus-ring behaviour of toggle to be entirely css based rather than js. Allowing us to remove complex interaction logic. - Updated dependencies
15.0.10
Patch Changes
- Updated dependencies
15.0.9
Patch Changes
- Updated dependencies
15.0.8
Patch Changes
- Updated dependencies
15.0.7
Patch Changes
- Updated dependencies
15.0.6
Patch Changes
- Updated dependencies
15.0.5
Patch Changes
- Updated dependencies
15.0.4
Patch Changes
- #129972, (opens new window)
b2d69a39e6687, (opens new window) - Update@compiled/reactdependency for improved type checking support. - Updated dependencies
15.0.3
Patch Changes
- #127063, (opens new window)
c6eec021e060e, (opens new window) - Update dependencies and remove old codemods. - Updated dependencies
15.0.2
Patch Changes
- Updated dependencies
15.0.1
Patch Changes
- Updated dependencies
15.0.0
Major Changes
-
#117363, (opens new window)
10a0f7f6c2027, (opens new window) - This package'speerDependencieshave been adjusted forreactand/orreact-domto reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases.Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026, (opens new window)
Patch Changes
- Updated dependencies
14.2.0
Minor Changes
- #116138, (opens new window)
b50c5d5d65ae2, (opens new window) - Bump to the latest version of @compiled/react
Patch Changes
- Updated dependencies
14.1.3
Patch Changes
- Updated dependencies
14.1.2
Patch Changes
- Updated dependencies
14.1.1
Patch Changes
- Updated dependencies
14.1.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- Updated dependencies
14.0.3
Patch Changes
- #103999, (opens new window)
9f62ecec4d422, (opens new window) - Update dependencies.
14.0.2
Patch Changes
- Updated dependencies
14.0.1
Patch Changes
- #180314, (opens new window)
88b53688f1c39, (opens new window) - Fix bug where linked labels with single quotes in the ID would fail to be detected, leading to an invalid internal selector"
14.0.0
Major Changes
-
#174218, (opens new window)
37630216e4b54, (opens new window) - Migrated from@emotion/reactto@compiled/reactin 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/toggle, you will need to ensure that your bundler is configured to handle.cssimports correctly. Most bundlers come with built-in support for.cssimports, 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.cssimports.For more information on the migration, please refer to RFC-73 Migrating our components to Compiled CSS-in-JS, (opens new window).
13.4.10
Patch Changes
- #174437, (opens new window)
e59c6f1913cf9, (opens new window) - fix focus ring appearance logic on toggle component
13.4.9
Patch Changes
- Updated dependencies
13.4.8
Patch Changes
- #166026, (opens new window)
962b5e77810fb, (opens new window) - Adds side-effect config to support Compiled css extraction in third-party apps
13.4.7
Patch Changes
- Updated dependencies
13.4.6
Patch Changes
- Updated dependencies
13.4.5
Patch Changes
- Updated dependencies
13.4.4
Patch Changes
- #148281, (opens new window)
3c4de48168ffe, (opens new window) - Update the import path ofuseId*from@atlaskit/ds-lib - Updated dependencies
13.4.3
Patch Changes
- #147531, (opens new window)
8ae1e110621b7, (opens new window) - Internal changes to feature flag used to toggle new icons
13.4.2
Patch Changes
- Updated dependencies
13.4.1
Patch Changes
- #138350, (opens new window)
fc4679dc7666c, (opens new window) - Removereact-uidand use an ID generator that is compatible with React16 and React 18; Strict React 18 behind a flag.
13.4.0
Minor Changes
- #137781, (opens new window)
21bfb50836bad, (opens new window) - Migrated to use new iconography behind a feature flag.
Patch Changes
- Updated dependencies
13.3.1
Patch Changes
- Updated dependencies
13.3.0
Minor Changes
-
#127511, (opens new window)
db30e29344013, (opens new window) - Widening range ofreactandreact-dompeer dependencies from^16.8.0 || ^17.0.0 || ~18.2.0to 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/platformpackages.
Patch Changes
- Updated dependencies
13.2.1
Patch Changes
- Updated dependencies
13.2.0
Minor Changes
- #111016, (opens new window)
d131599730792, (opens new window) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.
Patch Changes
- Updated dependencies
13.1.0
Minor Changes
- #97269, (opens new window)
700d72e1ed10, (opens new window) - Add support for React 18 in non-strict mode.
13.0.5
Patch Changes
- #95215, (opens new window)
983787443cd4, (opens new window) - Internal changes to typography, no visual change.
13.0.4
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
13.0.3
Patch Changes
- #76716, (opens new window)
dc3f5a5cbfb3, (opens new window) - Improve labeling support for toggle'slabelprop.
13.0.2
Patch Changes
- #66257, (opens new window)
5d82e9131bc5, (opens new window) - Support aria-describedby on toggle
13.0.1
Patch Changes
- Updated dependencies
13.0.0
Major Changes
- #41881, (opens new window)
1de74609c13, (opens new window) - Removed all remaining legacy theming logic from the Tag, Toggle and Tooltip components.
12.6.11
Patch Changes
- #38731, (opens new window)
9af31f3c1ae, (opens new window) - Delete version.json
12.6.10
Patch Changes
- #38203, (opens new window)
aff17bcbf09, (opens new window) - This package is now onboarded onto the product push model.
12.6.9
Patch Changes
- #37302, (opens new window)
ad86a5a28ac, (opens new window) - [ux] correct fallback color of focused border in light and dark mode
12.6.8
Patch Changes
- #36936, (opens new window)
617f98ed199, (opens new window) - Use correct typing for emotion styles
12.6.7
Patch Changes
- #36754, (opens new window)
4ae083a7e66, (opens new window) - Use@af/accessibility-testingfor default jest-axe config and jest-axe import in accessibility testing.
12.6.6
Patch Changes
- #35441, (opens new window)
599bfe90ee3, (opens new window) - Internal change to use shape tokens. There is no expected visual change.
12.6.5
Patch Changes
- #34881, (opens new window)
774ed69ecef, (opens new window) - Internal changes to use space tokens for spacing values. There is no visual change.
12.6.4
Patch Changes
- #32935, (opens new window)
b1bdec7cce2, (opens new window) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
12.6.3
Patch Changes
- #33795, (opens new window)
10cd6daef6d, (opens new window) - [ux] update fallback of hover color to meet contrast requirement
12.6.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
12.6.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
12.6.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
12.5.8
Patch Changes
- Updated dependencies
12.5.7
Patch Changes
- Updated dependencies
12.5.6
Patch Changes
- Updated dependencies
12.5.5
Patch Changes
- Updated dependencies
12.5.4
Patch Changes
- #27393, (opens new window)
73237f2e62e, (opens new window) - [ux] Fix token usages on toggle icon and handle background.
12.5.3
Patch Changes
- Updated dependencies
12.5.2
Patch Changes
- #26303, (opens new window)
9827dcb82b8, (opens new window) - No-op change to introduce spacing tokens to design system components.
12.5.1
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
12.5.0
Minor Changes
- #24004, (opens new window)
0349cb94ca3, (opens new window) - Updates@emotion/coreto@emotion/react; v10 to v11. There is no expected behavior change.
Patch Changes
- Updated dependencies
12.4.10
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5.
12.4.9
Patch Changes
- #23381, (opens new window)
8202e37941b, (opens new window) - Internal code change turning on new linting rules. - Updated dependencies
12.4.8
Patch Changes
- Updated dependencies
12.4.7
Patch Changes
- #20650, (opens new window)
cb2392f6d33, (opens new window) - Upgrade to TypeScript 4.2.4
12.4.6
Patch Changes
- Updated dependencies
12.4.5
Patch Changes
- Updated dependencies
12.4.4
Patch Changes
- Updated dependencies
12.4.3
Patch Changes
- #16752, (opens new window)
cbf4b3928b4, (opens new window) - Internal changes to@atlaskit/toggleto support adoption of '@compiled/react'.
12.4.2
Patch Changes
19d72473dfb, (opens new window) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.- Updated dependencies
12.4.1
Patch Changes
- Updated dependencies
12.4.0
Minor Changes
-
#17576, (opens new window)
5f184bb7147, (opens new window) - Note: It is a re-release of the wronglypatchedversion11.4.1that should have been aminorrelease.[ux] Instrumented toggle 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
12.3.1
Minor Changes
WRONG RELEASE TYPE - DON'T USE
-
#15998, (opens new window)
fa8d020232e, (opens new window) - [ux] Instrumented toggle 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
12.3.0
Minor Changes
- #14319, (opens new window)
cf853e39278, (opens new window) - [ux] Fix toggle focus ring in windows high contrast mode
Patch Changes
- Updated dependencies
12.2.2
Patch Changes
- #12880, (opens new window)
378d1cef00f, (opens new window) - Bump@atlaskit/themeto version^11.3.0.
12.2.1
Patch Changes
- #12167, (opens new window)
d6f7ff383cf, (opens new window) - Updates to development dependencystorybook-addon-performance
12.2.0
Minor Changes
- #10569, (opens new window)
242d84dc481, (opens new window) - [ux] Fix toggle shape in windows high contrast mode
12.1.0
Minor Changes
- #10230, (opens new window)
ab26e3b8958, (opens new window) - Added label, checkIconLabel and crossIconLabel props. Label - text that is used as aria-label, checkIconLabel and crossIconLabel texts that are used as labels of icons
Patch Changes
- Updated dependencies
12.0.5
Patch Changes
- #9083, (opens new window)
7116601e1b2, (opens new window) - Internal typing refactored to be readable by extract-react-types. - Updated dependencies
12.0.4
Patch Changes
- #8644, (opens new window)
79c23df6340, (opens new window) - Use injected package name and version for analytics instead of version.json. - Updated dependencies
12.0.3
Patch Changes
- #7468, (opens new window)
1afc5c6e66, (opens new window) - The layout of toggle icons is not showing correctly, fixed it by explicitly set box-sizing to content-box
12.0.2
Patch Changes
- #6794, (opens new window)
8818ff41f2, (opens new window) - Fixed analytics event missing issue
12.0.1
Patch Changes
- #5857, (opens new window)
d3265f19be, (opens new window) - Transpile packages using babel rather than tsc
12.0.0
Major Changes
-
#5860, (opens new window)
da6f3ca7ff, (opens new window) - ### BriefThe ultimate goal of this major for toggle is to improve the component's performance, by both reducing static structure or avoiding unnecessary function calls.
Some big changes are made as following:
- merged stateful and stateless component
- replace
styled-componentstoemotionas styling library - restructure DOM element to reduce size
- using latest analytics-next
Stateful vs Stateless
We've merged
ToggleandToggleStatelessin this major, internally we distinguish those two different behaviours by props a user passed in. In React documents, it's recommended to usecontrolled componentsto implement forms here, (opens new window), while there are cases you might need a different approach instead, there is a detailed discussion, (opens new window) here that can help you to decide which way to go.When
defaultCheckedis passed in, that means you want it to bestatefuland the component will have astatereflectingcheckedoruncheckedall by itself. In contrast, ifdefaultCheckedis absent, it turns to a stateless component and you have to control it on you own, by usingisCheckedprop.When both are provided, it will always be a stateful component.
Upgrading with codemod
# You first need to have the latest toggle installed before you can run the codemod yarn upgrade @atlaskit/toggle@^12.0.0 # Run the codemod cli # Pass in a parser for your codebase npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel]
11.0.3
Patch Changes
- #5497, (opens new window)
5f58283e1f, (opens new window) - 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, (opens new window) Also addtypescripttodevDependenciesto denote version that the package was built with.
11.0.2
Patch Changes
- Updated dependencies
11.0.1
Patch Changes
- #5164, (opens new window)
2ac834240e, (opens new window) - Undo analytics-next file restructure to allow external ts definitions to continue working
11.0.0
Major Changes
- #4749, (opens new window)
6a46a07705, (opens new window) - isDefaultChecked prop renamed to defaultChecked in @atlaskit/toggle.
Patch Changes
- Updated dependencies
10.0.4
Patch Changes
- #4707, (opens new window)
6360c46009, (opens new window) - Reenable integration tests for Edge browser
10.0.3
Patch Changes
-
#3885, (opens new window)
6c525a8229, (opens new window) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.
10.0.2
Patch Changes
- #3293, (opens new window)
954cc87b62, (opens new window) - The readme and package information has been updated to point to the new design system website.
10.0.1
Patch Changes
- #3428, (opens new window)
db053b24d8, (opens new window) - Update all the theme imports to be tree-shakable
10.0.0
Major Changes
- #3335, (opens new window)
87f4720f27, (opens new window) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11. For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534, (opens new window)
Patch Changes
- Updated dependencies
9.0.0
Major Changes
-
#2763, (opens new window)
74b9e80533, (opens new window) - BREAKING - Thelabelprop has been removed. If wanting to pair your toggle with alabelelement make sure to use the freshly introducedidprop!Before:
<Toggle label="Allow pull requests" />After (we use Emotion here - but you can use any equivalent library):
/**
* @jsxRuntime classic
* @jsx jsx
*/
import { jsx } from '@emotion/core';
import { visuallyHidden } from '@atlaskit/theme/constants';
<label css={visuallyHidden()} htmlFor="my-toggle">Allow pull requests</label>
<Toggle id="my-toggle" />
This now also allows you to visually show a label (just omit the visually hidden mixin) - which for the most part you'll want to do. Read the design docs, (opens new window) for more inspiration.
Happy toggling!
Minor Changes
5ab389c082, (opens new window) - Adds anidprop for you to use with a pairing label element, for use like so:
import Toggle from '@atlaskit/toggle';
<label htmlFor="my-toggle">Do the thing</label>
<Toggle id="my-toggle" />
8.1.9
Patch Changes
- #2866, (opens new window)
54a9514fcf, (opens new window) - Build and supporting files will no longer be published to npm
8.1.8
Patch Changes
- Updated dependencies
8.1.7
Patch Changes
-
[patch]9e4b195732, (opens new window):
Change imports to comply with Atlassian conventions- Updated dependencies 6b8e60827e, (opens new window):
-
Updated dependencies 57c0487a02, (opens new window):
-
Updated dependencies fd41d77c29, (opens new window):
- @atlaskit/button@13.3.11
- @atlaskit/webdriver-runner@0.3.4
8.1.6
Patch Changes
- Updated dependencies 66dcced7a0, (opens new window):
- Updated dependencies 64fb94fb1e, (opens new window):
- Updated dependencies eea5e9bd8c, (opens new window):
- Updated dependencies 109c1a2c0a, (opens new window):
- Updated dependencies
c57bb32f6d, (opens new window):
- @atlaskit/docs@8.4.0
- @atlaskit/webdriver-runner@0.3.0
- @atlaskit/button@13.3.9
8.1.5
Patch Changes
- Updated dependencies
e3f01787dd, (opens new window):
- @atlaskit/webdriver-runner@0.2.0
- @atlaskit/button@13.3.8
8.1.4
Patch Changes
-
[patch]6548261c9a, (opens new window):
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a, (opens new window):
- @atlaskit/docs@8.3.2
- @atlaskit/visual-regression@0.1.9
- @atlaskit/analytics-next@6.3.5
- @atlaskit/button@13.3.7
- @atlaskit/theme@9.5.1
8.1.3
Patch Changes
-
[patch]6dccb16bfc, (opens new window):
Updated cross and check icon, removed Icon dependency
-
Updated dependencies 82747f2922, (opens new window):
-
Updated dependencies 4a223473c5, (opens new window):
- @atlaskit/theme@9.5.0
- @atlaskit/button@13.3.5
8.1.2
Patch Changes
-
[patch]35d2229b2a, (opens new window):
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
8.1.1
Patch Changes
-
[patch]a2d0043716, (opens new window):
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
8.1.0
Minor Changes
-
[minor]decb366d7a, (opens new window):
Adding an optional prop
testIdthat will set the attribute valuedata-testid. It will help products to write better integration and end to end tests.
8.0.5
Patch Changes
-
[patch]097b696613, (opens new window):
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
8.0.4
Patch Changes
-
[patch]ecca4d1dbb, (opens new window):
Upgraded Typescript to 3.3.x
8.0.3
Patch Changes
-
[patch]708028db86, (opens new window):
Change all the imports to theme in Core to use multi entry points
8.0.2
Patch Changes
-
[patch]de35ce8c67, (opens new window):
Updates component maintainers
8.0.1
Patch Changes
-
[patch]926b43142b, (opens new window):
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
withAnalyticsForSumTypePropsalias has been removed, please usewithAnalyticsEventsAnalyticsContextWrappedCompalias has been removed, please usewithAnalyticsContext
Breaking changes to TypeScript annotations
withAnalyticsEventsnow infers proptypes automatically, consumers no longer need to provide props as a generic type.withAnalyticsContextnow infers proptypes automatically, consumers no longer need to provide props as a generic type.- Type
WithAnalyticsEventPropshas been renamed toWithAnalyticsEventsPropsto match source code - Type
CreateUIAnalyticsEventSignaturehas been renamed toCreateUIAnalyticsEventto match source code - Type
UIAnalyticsEventHandlerSignaturehas been renamed toUIAnalyticsEventHandlerto match source code - Type
AnalyticsEventsPayloadhas been renamed toAnalyticsEventPayload - Type
ObjectTypehas been removed, please useRecord<string, any>or[key: string]: any - Type
UIAnalyticsEventInterfacehas been removed, please useUIAnalyticsEvent - Type
AnalyticsEventInterfacehas been removed, please useAnalyticsEvent - Type
CreateAndFireEventFunctionremoved and should now be inferred by TypeScript - Type
AnalyticsEventUpdaterremoved and should now be inferred by TypeScript
8.0.0
Major Changes
-
[major]7e9d653278, (opens new window):
Toggle has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.
7.0.4
Patch Changes
-
[patch]9f8ab1084b, (opens new window):
Consume analytics-next ts type definitions as an ambient declaration.
7.0.3
- Updated dependencies
06326ef3f7, (opens new window):
- @atlaskit/docs@8.1.3
- @atlaskit/button@13.0.9
- @atlaskit/icon@19.0.0
7.0.2
Patch Changes
-
[patch]4615439434, (opens new window):
index.ts will now be ignored when publishing to npm
7.0.1
- Updated dependencies
cfc3c8adb3, (opens new window):
- @atlaskit/docs@8.1.2
- @atlaskit/button@13.0.8
- @atlaskit/icon@18.0.0
7.0.0
- [major]7c17b35107, (opens new window):
- 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.
6.0.4
- Updated dependencies
9c0b4744be, (opens new window):
- @atlaskit/docs@7.0.3
- @atlaskit/button@12.0.3
- @atlaskit/icon@16.0.9
- @atlaskit/theme@8.1.7
6.0.3
- Updated dependencies
1e826b2966, (opens new window):
- @atlaskit/docs@7.0.2
- @atlaskit/analytics-next@4.0.3
- @atlaskit/icon@16.0.8
- @atlaskit/theme@8.1.6
- @atlaskit/button@12.0.0
6.0.2
- [patch]3ff7cfeeb7, (opens new window):
- Internal changes only. Toggle is now SSR-friendly.
6.0.1
- Updated dependencies
9d5cc39394, (opens new window):
- @atlaskit/docs@7.0.1
- @atlaskit/analytics-next@4.0.1
- @atlaskit/icon@16.0.5
- @atlaskit/theme@8.0.1
- @atlaskit/button@11.0.0
6.0.0
-
[major]76299208e6, (opens new window):
- 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
importandexportdeclarations.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, (opens new window) (for external) if you have any questions or queries about this.
5.0.15
- Updated dependencies
d7ef59d432, (opens new window):
- @atlaskit/docs@6.0.1
- @atlaskit/button@10.1.2
- @atlaskit/icon@16.0.0
5.0.14
- Updated dependencies 58b84fa, (opens new window):
- @atlaskit/analytics-next@3.1.2
- @atlaskit/button@10.1.1
- @atlaskit/icon@15.0.2
- @atlaskit/theme@7.0.1
- @atlaskit/docs@6.0.0
5.0.13
- Updated dependencies d13242d, (opens new window):
- @atlaskit/docs@5.2.3
- @atlaskit/button@10.0.4
- @atlaskit/icon@15.0.1
- @atlaskit/theme@7.0.0
5.0.12
- Updated dependencies ab9b69c, (opens new window):
- @atlaskit/docs@5.2.2
- @atlaskit/button@10.0.1
- @atlaskit/icon@15.0.0
5.0.11
- Updated dependencies 6998f11, (opens new window):
- @atlaskit/docs@5.2.1
- @atlaskit/analytics-next@3.1.1
- @atlaskit/icon@14.6.1
- @atlaskit/theme@6.2.1
- @atlaskit/button@10.0.0
5.0.10
- [patch] Adds missing implicit @babel/runtime dependency b71751b, (opens new window)
5.0.9
- [patch] Updated dependencies
65c6514, (opens new window)
- @atlaskit/docs@5.0.8
- @atlaskit/button@9.0.13
- @atlaskit/icon@14.0.0
5.0.8
- [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04, (opens new window)
5.0.6
- [patch] Updated dependencies
df22ad8, (opens new window)
- @atlaskit/theme@6.0.0
- @atlaskit/icon@13.2.5
- @atlaskit/button@9.0.6
- @atlaskit/docs@5.0.6
5.0.5
- [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html, (opens new window) for details a4bd557, (opens new window)
- [none] Updated dependencies
a4bd557, (opens new window)
- @atlaskit/analytics-next@3.0.4
- @atlaskit/button@9.0.5
- @atlaskit/theme@5.1.3
- @atlaskit/icon@13.2.4
5.0.4
- [patch] Updated dependencies
acd86a1, (opens new window)
- @atlaskit/icon@13.2.2
- @atlaskit/button@9.0.4
- @atlaskit/theme@5.1.2
- @atlaskit/analytics-next@3.0.3
- @atlaskit/docs@5.0.2
5.0.3
- [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies 7e331b5, (opens new window)
- [none] Updated dependencies
7e331b5, (opens new window)
- @atlaskit/analytics-next@3.0.2
- @atlaskit/button@9.0.3
- @atlaskit/theme@5.1.1
- @atlaskit/icon@13.2.1
5.0.2
- [patch] Fixed large toggle icon size and improved dark mode style 7c1166b, (opens new window)
- [none] Updated dependencies 7c1166b, (opens new window)
5.0.1
- [patch] Move analytics tests and replace elements to core 49d4ab4, (opens new window)
- [none] Updated dependencies
49d4ab4, (opens new window)
- @atlaskit/analytics-next@3.0.1
- @atlaskit/button@9.0.2
- @atlaskit/docs@5.0.1
5.0.0
- [major] Provides analytics for common component interations. See the Instrumented Components, (opens new window) section for more details. If you are using enzyme for testing you will have to use our forked version of the library, (opens new window). 563a7eb, (opens new window)
- [major] Updates to React ^16.4.0 7edb866, (opens new window)
- [major] Updated dependencies
563a7eb, (opens new window)
- @atlaskit/analytics-next@3.0.0
- @atlaskit/button@9.0.0
- @atlaskit/theme@5.0.0
- @atlaskit/docs@5.0.0
- @atlaskit/icon@13.0.0
- [major] Updated dependencies
7edb866, (opens new window)
- @atlaskit/analytics-next@3.0.0
- @atlaskit/button@9.0.0
- @atlaskit/theme@5.0.0
- @atlaskit/docs@5.0.0
- @atlaskit/icon@13.0.0
4.0.3
- [patch] Clean Changelogs - remove duplicates and empty entries e7756cd, (opens new window)
- [none] Updated dependencies
e7756cd, (opens new window)
- @atlaskit/button@8.1.2
- @atlaskit/theme@4.0.4
- @atlaskit/icon@12.1.2
4.0.2
- [none] Updated dependencies
9d20f54, (opens new window)
- @atlaskit/icon@12.1.0
- @atlaskit/docs@4.1.0
- @atlaskit/theme@4.0.2
- @atlaskit/button@8.1.0
4.0.1
- [patch] Update readme's 223cd67, (opens new window)
- [patch] Updated dependencies
223cd67, (opens new window)
- @atlaskit/icon@12.0.1
- @atlaskit/button@8.0.1
- @atlaskit/theme@4.0.1
- @atlaskit/docs@4.0.1
4.0.0
- [major] makes styled-components a peer dependency and upgrades version range from 1.4.6 - 3 to ^3.2.6 1e80619, (opens new window)
- [patch] Updated dependencies
1e80619, (opens new window)
- @atlaskit/icon@12.0.0
- @atlaskit/button@8.0.0
- @atlaskit/theme@4.0.0
- @atlaskit/docs@4.0.0
3.0.2
- [patch] Updated dependencies
d662caa, (opens new window)
- @atlaskit/icon@11.3.0
- @atlaskit/button@7.2.5
- @atlaskit/theme@3.2.2
- @atlaskit/docs@3.0.4
3.0.0
- [major] Bump to React 16.3. 4251858, (opens new window)
2.9.1
- [patch] Re-releasing due to potentially broken babel release 9ed0bba, (opens new window)
2.9.0
- [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30, (opens new window)
2.8.4
- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2, (opens new window) 1e57e5a, (opens new window)
2.8.3
- [patch] Packages Flow types for elements components 3111e74, (opens new window)
2.8.2
- [patch] Change incorrect type info ce915ea, (opens new window)
2.8.1
- [patch] Flatten examples for easier consumer use 145b632, (opens new window)
2.8.0
- [minor] Add React 16 support. 12ea6e4, (opens new window)
2.7.1
- [patch] Fix toggle icon alignment bafb82b, (opens new window)
2.7.0
- [minor] Adding flow types and moving to new repo c9f3246, (opens new window)
2.6.4 (2017-11-17)
- bug fix; bumping internal dependencies to latest version (a19b26d, (opens new window))
2.6.3 (2017-10-26)
- bug fix; fix to rebuild stories (793b2a7, (opens new window))
2.6.2 (2017-10-22)
- bug fix; update styled components dep and react peerDep (5539ada, (opens new window))
2.6.1 (2017-09-28)
- bug fix; active state is now properly applied (c1ee840, (opens new window))
- bug fix; use withTheme to get theme for icon color (1b554a1, (opens new window))
- bug fix; update toggle darkmode colors (e2e4727, (opens new window))
2.6.0 (2017-09-18)
- feature; add dark mode to toggle (ec57939, (opens new window))
2.5.0 (2017-09-13)
- feature; update dependencies for toggle (ae1a0ca, (opens new window))
2.4.3 (2017-08-11)
- bug fix; fix the theme-dependency (db90333, (opens new window))
2.4.2 (2017-07-27)
- fix; rename jsnext:main to jsnext:experimental:main temporarily (c7508e0, (opens new window))
2.4.1 (2017-07-25)
- fix; use class transform in loose mode in babel to improve load performance in apps (fde719a, (opens new window))
2.1.0 (2017-07-17)
- fix; rerelease, failed prepublish scripts (5fd82f8, (opens new window))
- feature; added ES module builds to dist and add jsnext:main to most ADG packages (ea76507, (opens new window))
2.0.5 (2017-07-13)
- fix; add prop-types as a dependency to avoid React 15.x warnings (92598eb, (opens new window))
2.0.4 (2017-05-18)
- fix; remove state from ToggleStateless (631252c, (opens new window))
2.0.3 (2017-04-27)
- fix; update legal copy to be more clear. Not all modules include ADG license. (f3a945e, (opens new window))
2.0.2 (2017-04-26)
- fix; update legal copy and fix broken links for component README on npm. New contribution and (0b3e454, (opens new window))
2.0.1 (2017-04-11)
- fix; update toggle readme story with new readme component (31f7e4a, (opens new window))
2.0.0 (2017-04-03)
- fix; refactor the toggle component to use styled-components (c735164, (opens new window))
- breaking; added peerDependency "styled-components”, removed dependency “classnames”
- ISSUES CLOSED: AK-2004
1.0.6 (2017-03-23)
- fix; Empty commit to release the component (49c08ee, (opens new window))
1.0.4 (2017-03-21)
- fix; maintainers for all the packages were added (261d00a, (opens new window))
1.0.3 (2017-02-16)
- fix; refactor stories to use // rather than http:// (a0826cf, (opens new window))
1.0.2 (2017-02-09)
- fix; avoiding binding render to this (40c9951, (opens new window))
1.0.1 (2017-02-07)
- fix; Updates package to use scoped ak packages (4923aa0, (opens new window))