@foxglove/extension 2.54.0 → 2.55.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/stable.ts +14 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxglove/extension",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Foxglove Technologies",
package/src/stable.ts CHANGED
@@ -1683,7 +1683,15 @@ export type SettingsTreeNode = {
1683
1683
  * `children`. Explicit `order` values on children are ignored and should not be used for
1684
1684
  * reorderable children.
1685
1685
  */
1686
- childrenReorderable?: boolean;
1686
+ childrenReorderable?:
1687
+ | boolean
1688
+ | {
1689
+ /**
1690
+ * Stable id that allows children to be reordered across sibling parents that use the same
1691
+ * group. When omitted, reordering is limited to this node's own children.
1692
+ */
1693
+ group: string;
1694
+ };
1687
1695
 
1688
1696
  /**
1689
1697
  * An optional visibility status. If this is not undefined, the node
@@ -1728,6 +1736,11 @@ export type SettingsTreeAction =
1728
1736
  payload: {
1729
1737
  /** Path to the parent node whose children are being reordered. */
1730
1738
  path: readonly string[];
1739
+ /**
1740
+ * Path to the parent node the moved child came from. When omitted, it is the same as
1741
+ * `path`.
1742
+ */
1743
+ sourcePath?: readonly string[];
1731
1744
  /**
1732
1745
  * Key of the child being moved. If this key no longer exists under `path` (for example
1733
1746
  * because the list changed since the drag started), handlers should ignore the action.