@26lights/orcha 0.28.4-dnd10 → 0.28.4-dnd11

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/orcha.es.js CHANGED
@@ -9365,14 +9365,13 @@ const y4 = {
9365
9365
  }, i = (r) => {
9366
9366
  e("updateActivity", r);
9367
9367
  }, l = (r) => {
9368
- if ("added" in r) {
9369
- const d = {
9368
+ if ("added" in r)
9369
+ e("updateActivity", {
9370
9370
  id: r.added.element.id,
9371
9371
  statusId: t.status.id,
9372
9372
  rank: Ot(t.list, 0, r.added.newIndex)
9373
- };
9374
- e("updateActivity", d), console.log({ event: r, list: t.list, plop: d });
9375
- } else if (!("removed" in r)) {
9373
+ });
9374
+ else if (!("removed" in r)) {
9376
9375
  if ("moved" in r) {
9377
9376
  const d = {
9378
9377
  id: r.moved.element.id,
@@ -9382,7 +9381,7 @@ const y4 = {
9382
9381
  r.moved.newIndex
9383
9382
  )
9384
9383
  };
9385
- e("updateActivity", d), console.log({ event: r, list: t.list, plop: d });
9384
+ console.log({ event: r, listRanks: t.list.map((u) => u.rank), plop: d }), e("updateActivity", d);
9386
9385
  }
9387
9386
  }
9388
9387
  }, c = Q(!1);