apostrophe 4.2.0 → 4.2.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.1 (2024-04-29)
4
+
5
+ ### Fixes
6
+
7
+ * Fixes drag and drop regression in the page tree where pages were not able to be moved between parent and child.
8
+
3
9
  ## 4.2.0 (2024-04-18)
4
10
 
5
11
  * Typing a `/` in the title field of a page no longer confuses the slug field. Thanks to [Gauav Kumar](https://github.com/gkumar9891).
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <draggable
3
- v-bind="dragOptions"
4
3
  item-key="_id"
5
4
  class="apos-tree__list"
6
5
  tag="ol"
7
6
  :list="rows"
7
+ :options="dragOptions"
8
8
  @start="startDrag"
9
9
  @end="endDrag"
10
10
  >
@@ -208,7 +208,9 @@ export default {
208
208
  },
209
209
  dragOptions() {
210
210
  return {
211
- group: { name: this.treeId },
211
+ group: this.treeId,
212
+ fallbackOnBody: true,
213
+ swapThreshold: 0.65,
212
214
  dataListId: this.listId,
213
215
  disabled: !this.options.draggable,
214
216
  handle: '.apos-tree__row__icon--handle',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {