@classic-homes/gantt-core 0.3.4 → 0.3.5

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/dist/index.cjs CHANGED
@@ -1950,9 +1950,11 @@ function outdentOperations(tasks, id) {
1950
1950
  const below = siblings.slice(siblings.indexOf(id) + 1);
1951
1951
  return [
1952
1952
  { type: "update-task", id, patch: { parentId: grand ?? void 0 } },
1953
- ...below.map(
1954
- (s) => ({ type: "update-task", id: s, patch: { parentId: id } })
1955
- )
1953
+ ...below.map((s) => ({
1954
+ type: "update-task",
1955
+ id: s,
1956
+ patch: { parentId: id }
1957
+ }))
1956
1958
  ];
1957
1959
  }
1958
1960
  function insertTaskOperation(tasks, afterId, task) {
package/dist/index.js CHANGED
@@ -678,9 +678,11 @@ function outdentOperations(tasks, id) {
678
678
  const below = siblings.slice(siblings.indexOf(id) + 1);
679
679
  return [
680
680
  { type: "update-task", id, patch: { parentId: grand ?? void 0 } },
681
- ...below.map(
682
- (s) => ({ type: "update-task", id: s, patch: { parentId: id } })
683
- )
681
+ ...below.map((s) => ({
682
+ type: "update-task",
683
+ id: s,
684
+ patch: { parentId: id }
685
+ }))
684
686
  ];
685
687
  }
686
688
  function insertTaskOperation(tasks, afterId, task) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/gantt-core",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Framework-agnostic Gantt scheduling engine, calendars, layout and interaction math for Classic Theme",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",