Hitbox
An optional package that enables the attaching of interaction information to a drop target.2.2.2
Patch Changes
eb738ba92ec47, (opens new window) - Deprecated exports from the legacyclosest-edgeentry point. ImportattachClosestEdge,extractClosestEdge, andEdgefrom their dedicated entry points instead.
2.2.1
Patch Changes
cf6a13a455065, (opens new window) - Import closest-edge types directly from their existing definition module.
2.2.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
2.1.0
Minor Changes
29fd54df69593, (opens new window) - Imports from the package root are deprecated and will be removed in a future release. Migrate to dedicated entry-point imports to reduce upgrade friction. Recommended imports:import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/attach-closest-edge'import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge'import { attachInstruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/list-item/attach-instruction'import { extractInstruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/list-item/extract-instruction'import { attachInstruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item/attach-instruction'import { extractInstruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item/extract-instruction'import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge'import { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index'
2.0.1
Patch Changes
- Updated dependencies
2.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
1.2.0
Minor Changes
-
f8b3089961cdf, (opens new window) - ExtendStructuredContentSourceso*.docs.tsxfiles can describe packages whose exports are not all renderable React components. The container now accepts optionalpackage,hooks, andutilities(function / constant / type) keys alongside the existingcomponentskey. New per-kind schemas:hookDocsSourceSchema,utilityDocsSourceSchema, pluspackageMetadataSchemafor shared package-level metadata.All new fields are optional, so existing components-only
*.docs.tsxfiles continue to work unchanged — this is an additive, non-breaking extension.Pilots the new shape with
docs.tsxfiles for@atlaskit/analytics-next,@atlaskit/layering,@af/accessibility-testing,@af/react-unit-testing,@atlaskit/pragmatic-drag-and-drop-hitbox,@atlaskit/pragmatic-drag-and-drop-live-region,@atlaskit/feature-flag-client,@atlaskit/frontend-utilities, and@atlaskit/linking-common. The last two are non-ADS pilots that exercise the newhooksandutilitieskinds inhelpers/andlinking-platform/. These pilot files are explicitly marked as non-final in their file-level JSDoc.
1.1.0
Minor Changes
- #152796, (opens new window)
530aa01e75ebe, (opens new window) - Exposing newlist-itemhitbox which streamlines working with lists and nested structures. See documentation for API and usage information.
1.0.3
Patch Changes
- #84398, (opens new window)
77694db987fc, (opens new window) - Public release of Pragmatic drag and drop documentation
1.0.2
Patch Changes
- #83702, (opens new window)
4d9e25ab4eaa, (opens new window) - 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.jsondescriptionREADME.md- Website documentation
1.0.1
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
1.0.0
Major Changes
-
#70616, (opens new window)
42e57ea65fee, (opens new window) - This is our firstmajorrelease (1.0) for all Pragmatic drag and drop packages.For a detailed explanation of these changes, and how to upgrade (automatically) to
1.0please see our 1.0 upgrade guide, (opens new window)
Patch Changes
- Updated dependencies
0.12.1
Patch Changes
- Updated dependencies
0.12.0
Minor Changes
-
#42620, (opens new window)
0b832b288e8, (opens new window) - Moving our tree exports that are used in Confluence fromexperimentaltostable.- @atlaskit/pragmatic-drag-and-drop-hitbox/experimental/tree-item + @atlaskit/pragmatic-drag-and-drop-hitbox/tree-item
0.11.9
Patch Changes
- Updated dependencies
0.11.8
Patch Changes
- Updated dependencies
0.11.7
Patch Changes
- Updated dependencies
0.11.6
Patch Changes
- Updated dependencies
0.11.5
Patch Changes
- Updated dependencies
0.11.4
Patch Changes
- Updated dependencies
0.11.3
Patch Changes
- #34443, (opens new window)
61cb5313358, (opens new window) - Removing unused dependencies and dev dependencies
0.11.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
0.11.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
0.11.0
Minor Changes
- #33344, (opens new window)
9fd8556db17, (opens new window) - Internal folder name structure change
Patch Changes
- Updated dependencies
0.10.0
Minor Changes
-
#33262, (opens new window)
34ed7b2ec63, (opens new window) - 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-docsThe 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.
Patch Changes
- Updated dependencies
0.9.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
0.8.1
Patch Changes
- #32424, (opens new window)
2e01c9c74b5, (opens new window) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
0.8.0
Minor Changes
- #32145, (opens new window)
a7dc73c0a57, (opens new window) - Internal refactor: implemented a cheaper mechanism to enable memoization of tree item data
0.7.0
Minor Changes
-
#32051, (opens new window)
00434d087d7, (opens new window) - Tree item hitbox data is now memoized. This is helpful to reduce work for consumers who may take actions based on object reference changes.If you are using
reactand putting tree item hitbox instructions into state, react will now only re-render when the content of the instruction changes.
0.6.3
Patch Changes
- Updated dependencies
0.6.2
Patch Changes
- Updated dependencies
0.6.1
Patch Changes
- Updated dependencies
0.6.0
Minor Changes
- #31289, (opens new window)
179d953be18, (opens new window) - [ux] Tweaking the hitbox of "expanded" tree items to improve the experience when expanding tree items during a drag. Note: our tree item hitbox is still experimental
0.5.0
Minor Changes
-
#30953, (opens new window)
90901f5bbe0, (opens new window) - Replace default entry point ofundefinedwith{}.NOTE: Importing from the default entry point isn't supported. Please use individual entry points in order to always obtain minimum kbs.
Patch Changes
- Updated dependencies
0.4.1
Patch Changes
- Updated dependencies
0.4.0
Minor Changes
- #29945, (opens new window)
fe6772a3719, (opens new window) - 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
0.3.2
Patch Changes
- Updated dependencies
0.3.1
Patch Changes
- Updated dependencies
0.3.0
Minor Changes
-
#26934, (opens new window)
f004dadb4fc, (opens new window) -reorderWithEdgehas changed API in order to more accurately reflect the values that are being passed infunction reorderWithEdge<Value>(args: { list: Value[]; - edge: Edge | null; + // the reorder operation is based on what the closest edge of the target is + closestEdgeOfTarget: Edge | null; startIndex: number; - finalIndex: number + // we are reordering relative to the target + indexOfTarget: number; axis: 'vertical' | 'horizontal'; }): Value[];Adding new utility:
getReorderDestinationIndexWhen you are rendering drop indicators (eg lines) between items in a list, it can be difficult to know what the
indexthe dropped item should go into. The finalindexwill depend on what the closestEdgeis.getReorderDestinationIndexcan give you the finalindexfor a reordering operation, taking into account whichEdgeis closestimport { getReorderDestinationIndex } from '@atlaskit/drag-and-drop-hitbox/util/get-reorder-destination-index'; // Dragging A on the left of B // A should stay in the same spot expect( getReorderDestinationIndex({ // list: ['A', 'B', 'C'], // move A to left of B startIndex: 0, indexOfTarget: 1, closestEdgeOfTarget: 'left', axis: 'horizontal', }), // results in no change: ['A', 'B', 'C'] ).toEqual(0); // Dragging A on the right of B // A should go after B expect( getReorderDestinationIndex({ // list: ['A', 'B', 'C'], // move A to right of B startIndex: 0, indexOfTarget: 1, closestEdgeOfTarget: 'right', axis: 'horizontal', }), // A moved forward ['B', 'A', 'C'] ).toEqual(1);
0.2.7
Patch Changes
- Updated dependencies
0.2.6
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
0.2.5
Patch Changes
- Updated dependencies
0.2.4
Patch Changes
- Updated dependencies
0.2.3
Patch Changes
- Updated dependencies
0.2.2
Patch Changes
- Updated dependencies
0.2.1
Patch Changes
- Updated dependencies
0.2.0
Minor Changes
- #24613, (opens new window)
dcebdf9404e, (opens new window) - We have improved our naming consistency across our drag and drop packages.@atlaskit/drag-and-drop-hitbox/closest-edgehas been renamed to@atlaskit/drag-and-drop-hitbox/addon/closest-edge@atlaskit/drag-and-drop-hitbox/reorder-with-edgehas been renamed to@atlaskit/drag-and-drop-hitbox/util/reorder-with-edge
Patch Changes
- Updated dependencies
0.1.0
Minor Changes
- #24532, (opens new window)
73427c38077, (opens new window) - Initial release of@atlaskit/drag-and-droppackages 🎉
Patch Changes
- Updated dependencies
0.0.1
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5. - Updated dependencies