playbook_ui_docs 15.5.0.pre.alpha.draggablefix12557 → 15.5.0.pre.alpha.draggablefix12568

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8120ff5dc98536fe7b4203a0dcc1e2e77d2708fa81578ab3a382dfbf6e29f8c
4
- data.tar.gz: e4caecaf7b84d330c2059a1e9f55772cbb863edaa29261fda712555b57bcf3d8
3
+ metadata.gz: 7c5054ae451249ae29cb5b4b25df407d6ea285af4385f1916f7a98e5fad74465
4
+ data.tar.gz: 51252dafb687ca38440b1752924cbb1f77a3d7d193bbd63fdd39a61e80f9d998
5
5
  SHA512:
6
- metadata.gz: 3c87f8474a38971363870ac0baba4f19d1c25c036c3312f592738dd06a20b292ffc626e7b1f12051f28414b2b62fd2739a72fb4637c7774c9f8665fcb6beb6cd
7
- data.tar.gz: 4cb1b707b3698a37c05e45e480c478009ae55ff0e19c02c0cf730fcc260c3733cb2b0f5793f4199cbcddb577298914bd4dafdd0e4592f6583ecd170cdedba745
6
+ metadata.gz: c70d780d3f568966eff5050c646ca7c393393faf4e59cf3f32e0835f4006117bf92fbbb477c876b5caf151488781511b5414ce4f4b4b2b69e928b7daf6547e18
7
+ data.tar.gz: 2c39dfca92609f76dadd3b1b77d45782b4945ce89c5cf773e079fa3698ee4be41fc12deca19c64c8a971ae1643defb965724f7d89f59177f0ccf639d5e3dde3d
@@ -0,0 +1,20 @@
1
+ The multiple container functionality also supports customized dropzone styling as shown here.
2
+
3
+ In addition to this, the `onDrop` and `onDragEnd` event listeners provide several arguments to allow developers more context from the drag event.
4
+
5
+ The `onDrop` callback is triggered when an item is successfully dropped into a container. It provides the following arguments:
6
+
7
+ - `draggedItemId` - The ID of the item that was dragged
8
+ - `droppedContainer` - The container where the item was dropped
9
+ - `originalContainer` - The container where the drag started
10
+ - `item` - The complete item object with all properties (including the updated container)
11
+ - `itemAbove` - The item directly above the dropped item in the final position (null if at the top)
12
+ - `itemBelow` - The item directly below the dropped item in the final position (null if at the bottom)
13
+
14
+ The `onDragEnd` callback is triggered when a drag operation ends, whether it was dropped or cancelled. It provides the following arguments:
15
+
16
+ - `draggedItemId` - The ID of the item that was dragged
17
+ - `finalContainer` - The container where the item ended up (could be same as original if drag was cancelled)
18
+ - `originalContainer` - The container where the drag started
19
+ - `itemAbove` - The item directly above the dragged item in the final position (null if at the top)
20
+ - `itemBelow` - The item directly below the dragged item in the final position (null if at the bottom)
@@ -1,16 +1,16 @@
1
1
  examples:
2
2
  react:
3
3
  - draggable_default: Default
4
- - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
5
4
  - draggable_with_list: Draggable with List Kit
6
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
7
6
  - draggable_with_cards: Draggable with Cards
8
7
  - draggable_with_table: Draggable with Table
9
- - draggable_multiple_containers: Dragging Across Multiple Containers
10
8
  - draggable_drop_zones: Draggable Drop Zones
11
9
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
12
10
  - draggable_drop_zones_line: Draggable Drop Zones Line
13
11
  - draggable_event_listeners: Draggable Event Listeners
12
+ - draggable_multiple_containers: Dragging Across Multiple Containers
13
+ - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
14
14
 
15
15
  rails:
16
16
  - draggable_default: Default
@@ -18,8 +18,8 @@ examples:
18
18
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
19
  - draggable_with_cards: Draggable with Cards
20
20
  - draggable_with_table: Draggable with Table
21
- - draggable_multiple_containers: Dragging Across Multiple Containers
22
21
  - draggable_drop_zones: Draggable Drop Zones
23
22
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
24
23
  - draggable_drop_zones_line: Draggable Drop Zones Line
25
24
  - draggable_event_listeners: Draggable Event Listeners
25
+ - draggable_multiple_containers: Dragging Across Multiple Containers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.5.0.pre.alpha.draggablefix12557
4
+ version: 15.5.0.pre.alpha.draggablefix12568
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-11-21 00:00:00.000000000 Z
12
+ date: 2025-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -856,6 +856,7 @@ files:
856
856
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
857
857
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
858
858
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx
859
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md
859
860
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
860
861
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
861
862
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb