Pragmatic drag and drop
An optional Pragmatic drag and drop package containing react
components that provide a visual indication about what the user will achieve when the drop (eg lines).
An optional Pragmatic drag and drop package containing react components that provide a visual indication about what the user will achieve when the drop (eg lines)
An optional Pragmatic drag and drop package containing react
components that provide a visual indication about what the user will achieve when the drop (eg lines).
530aa01e75ebe
-
Adding new drop indicators border
, group
and list-item
to assist with more complex
experiences. See documentation for API and usage information.6903fb239a6ac
-
Exposing a <Border>
drop indicator component. Currently Border
is not documented while we
validate with internal usage.f135a8d1066c9
-
Updates the react
peer dependency range to include React 19. While we expect these packages to
work with React 19, we do not test against and there is a small risk of issues. If you have any
problems, please raise an issue on Github.b2d69a39e6687
-
Update @compiled/react
dependency for improved type checking support.#125185
62f176ec5174c
-
box-without-terminal
has been removed as it is now redundant. box-without-terminal
can now be
achieved with box
by leveraging type="no-terminal"
.
- import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box-without-terminal';
+ import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
function Item() {
- return <DropIndicator edge="bottom" />
+ return <DropIndicator edge="bottom" type="no-terminal" />
}
#125185
d2d78bed3e76f
-
This package is moving from @emotion/react
to Compiled for
styling.
Compiled is a styling solution with a tiny runtime (~260B
) that
you can use along side your existing styling solution(s). As long as your bundler supports CSS
imports (eg import './styles.css'
) then you shouldn't need to do anything!
More information for if you run into any difficulties.
This change has been released as a major
, as it would require changes for consumers who do not
have a bundler with CSS imports enabled.
#124834
c6ef61f6b00d1
-
More out of the box
The API of our box
drop indicator has been expanded to include type
(more control over the
terminal), appearance
(color control) and indent
(line shifting). See documentation for full
usage explanation and examples.
box-without-terminal
is deprecated
box-without-terminal
has been deprecated as it is now redundant. box-without-terminal
can now
be achieved with box
by leveraging type="no-terminal"
.
- import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box-without-terminal';
+ import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
function Item() {
- return <DropIndicator edge="bottom" />
+ return <DropIndicator edge="bottom" type="no-terminal" />
}
We will remove box-without-terminal
in the next major
release.
#119914
e77649a3345a0
-
New: Right to left (rtl) support
All drop indicators now correctly support
"right to left" (rtl
) rendering.
box
and tree-item
: terminals (circles) on lines are now rendered on right hand side of the
line for rtl
renderingtree-item
: indent
will now correctly respect rtl
rendering.Other
#120533
f1bec731e278f
-
Adds a sideEffects
field to ensure this package does not have Compiled styles tree-shaken in the
future to avoid an accidental regression.
This is related to https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
#117363
10a0f7f6c2027
-
This package's peerDependencies
have been adjusted for react
and/or react-dom
to 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
4660ec858a305
-
Update React
from v16 to v1858941fa1d332a
-
All react
unit tests will now run against react@16
and react@18
on CI.#92913
8f7e827e0978
-
Some Pragmatic drag and drop packages did not have "author"
and or "license"
attributes set in
their package.json
file. These missing attributes have now been added where required.
+ "author": "Atlassian Pty Ltd",
+ "license": "Apache-2.0",
All Pragmatic drag and drop packages were already licensed under Apache-2.0
(see LICENSE
files), but the "license"
attribute in some package.json
files was missing.
54e884fd8d96
-
Increasing react
peerDependency
range to include react@17
and react@18
.77694db987fc
-
Public release of Pragmatic drag and drop documentationa1cc31800621
-
Internal refactor: now relying on automatic fallback insertion for token()
. This change provides
an improved experience for consumers who don't have Atlassian Design tokens enabled.#83702
4d9e25ab4eaa
-
Updating the descriptions of Pragmatic drag and drop packages, so they each provide a consistent
description to various consumers, and so they are consistently formed amongst each other.
package.json
description
README.md
8d4e99057fe0
-
Upgrade Typescript from 4.9.5
to 5.4.2
#70616
8fbaead12358
-
As a part of our 1.0
release of Pragmatic drag and drop, we have renamed
@atlaskit/pragmatic-drag-and-drop-react-indicator
to
@atlaskit/pragmatic-drag-and-drop-react-drop-indicator
to improve naming consistency.
For a detailed explanation of these changes, and how to upgrade (automatically) to 1.0
please
see our
1.0 upgrade guide
842b8e893c33
-
[ux] Making small change so that the line and terminal have the same color
("color.border.selected"
). Previously, the line (unintentionally) had a slightly different shade
of blue.#42620
0e076ee05b0
- Moving
our tree exports that are used in Confluence from experimental
to stable
.
- @atlaskit/pragmatic-drag-and-drop-react-indicator/experimental/tree-item
+ @atlaskit/pragmatic-drag-and-drop-react-indicator/tree-item
e6b69f455c3
- Connect
yarn changeset to packages, upgrade adf-schema3ccb90e7480
- Changed
folder structure of package. There should be no visible changes.#37280
975218de587
- Adds a
terminal to the DropIndicator
in the /box
entrypoint. We now recommend most consumers use
lines with terminals.
A new entrypoint /box-without-terminal
has been added, which contains the old appearance.
61cb5313358
- Removing
unused dependencies and dev dependencies9d00501a414
- Ensure
legacy types are published for TS 4.5-4.841fae2c6f68
- Upgrade
Typescript from 4.5.5
to 4.9.5
9fd8556db17
- Internal
folder name structure change#33262
34ed7b2ec63
- We have
changed the name of our drag and drop packages to align on the single name of "Pragmatic drag and
drop"
- @atlaskit/drag-and-drop
+ @atlaskit/pragmatic-drag-and-drop
- @atlaskit/drag-and-drop-autoscroll
+ @atlaskit/pragmatic-drag-and-drop-autoscroll
- @atlaskit/drag-and-drop-hitbox
+ @atlaskit/pragmatic-drag-and-drop-hitbox
- @atlaskit/drag-and-drop-indicator
+ @atlaskit/pragmatic-drag-and-drop-react-indicator
# Note: `react` was added to this package name as our indicator package is designed for usage with `react`.
- @atlaskit/drag-and-drop-live-region
+ @atlaskit/pragmatic-drag-and-drop-live-region
- @atlaskit/drag-and-drop-react-beautiful-dnd-migration
+ @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
- @atlaskit/drag-and-drop-docs
+ @atlaskit/pragmatic-drag-and-drop-docs
The new @atlaskit/pragmatic-drag-and-drop*
packages will start their initial versions from where
the `@atlaskit/drag-and-drop*
packages left off. Doing this will make it easier to look back on
changelogs and see how the packages have progressed.
56507598609
- Skip
minor dependency bump2e01c9c74b5
- DUMMY
remove before merging to master; dupe adf-schema via adf-utilse2a4f1aeab0
- Changing
experimental tree item border radius (2px
) to match border radius of Confluence tree items
(3px
)#30953
90901f5bbe0
- Replace
default entry point of undefined
with {}
.
NOTE: Importing from the default entry point isn't supported. Please use individual entry points in order to always obtain minimum kbs.
fe6772a3719
- Dramatic
update to experimental tree-item outputs. These outputs should only be used right now by
Confluence Page Tree. Changes are being communicated face to face with Confluence team members#29562
2112070b91a
- We have
changed the API for our experimental tree drop indicator. Consumers should not be using the
experimental tree drop indicator in production before speaking with the Design System team.
This change makes the tree item drop indicator API and usage consistent with our stable box drop indicator
+ // The import path to the tree item drop indicator has changed
- import { DropIndicator } from '@atlaskit/drag-and-drop-indicator/tree';
+ import { DropIndicator } from '@atlaskit/drag-and-drop-indicator/tree-item';
- // Render prop API with className as public API
- <DropIndicator edge={edge}>({className}) => <div className={className} />
+ // Conditional rendering of an element
+ <div style={{position: 'relative'}}>{edge ? <DropIndicator edge={edge} /></div>}
The hasTerminal
prop has also been removed from the tree drop indicator as for trees the current
design is that all lines have a terminal on them.
6455cf006b3
- Builds
for this package now pass through a tokens babel plugin, removing runtime invocations of the
tokens() function and improving performance.#27976
ace261c5753
- For the
experimental tree drop indicator, we have changed the gap
and inset
from number
to string
to align with our Box
line indicator.
Note: consumers should not be using the experimental tree drop indicator in production. We are exposing this work in progress component for internal experimentation purposes.
#26749
9066b866ed1
- The
edge
prop on the box drop indicator @atlaskit/drag-and-drop-indicator/box
was previously
optional and is now required.
For the fastest possible applications, it is important that <DropIndicator>
is only doing work
when it needs to. Making edge
required forces consumers to only render the <DropIndicator>
when it is actually doing something. We are using the type system to ensure the fastest possible
usage
- <DropIndicator edge={closestEdge} />
+ { closestEdge && <DropIndicator edge={closestEdge} /> }
8cc2f888c83
- Upgrade
Typescript from 4.3.5
to 4.5.5
5b37b07dc94
- Moving
from @emotion/core@10
to @emotion/react@11
to line up @emotion
usage with the rest of the
Design System01232de241c
- The
gap
prop now takes a CSS string instead of a number.17950433a70
- Touching
package to release re-release previous version. The previous (now deprecated) version did not have
it's entry points built correctly#24613
e26c936c610
- We have
improved our naming consistency across our drag and drop packages.
@atlaskit/drag-and-drop-indicator
have now been shifted over to
@atlaskit/drag-and-drop-indicator/box
. @atlaskit/drag-and-drop-indicator
will no longer be
useable from the root entry point- import { DropIndicator } from '@atlaskit/drag-and-drop-indicator';
+ import { DropIndicator } from '@atlaskit/drag-and-drop-indicator/box';
73427c38077
- Initial
release of @atlaskit/drag-and-drop
packages 🎉8d4228767b0
- Upgrade
Typescript from 4.2.4
to 4.3.5
.