@dyedurham/search-and-file-widget 2.1.26 → 2.1.27

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.
@@ -88968,7 +88968,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88968
88968
  annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
88969
88969
  directorChanges: {
88970
88970
  addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
88971
- editIds: directors.filter((d) => d[c.AffiliationType] === "Update" || !d[c.AffiliationType]).map((d) => d[c.Id]).filter(Boolean),
88971
+ editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
88972
88972
  ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
88973
88973
  }
88974
88974
  };
@@ -95500,13 +95500,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95500
95500
  ...outgoingDirectors
95501
95501
  ].map((affiliation) => [String(affiliation._id), affiliation]));
95502
95502
  const selected = deltaData.directorChanges;
95503
- const selectedIncomingIds = selected ? [.../* @__PURE__ */ new Set([...selected.addIds, ...selected.editIds])] : [];
95504
- const selectedIncoming = selectedIncomingIds.map((id) => byId.get(String(id))).filter(Boolean);
95505
- const incomingSource = selectedIncoming.length ? selectedIncoming : incomingDirectors;
95506
- const addSource = incomingSource.length ? incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) === void 0) : addedDirectors;
95507
- const matchedEditSource = incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) !== void 0);
95508
- const editSource = incomingSource.length ? matchedEditSource : editedDirectors;
95509
- const ceaseSource = selected?.ceaseIds.length ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
95503
+ const addSource = selected ? selected.addIds.map((id) => byId.get(String(id))).filter(Boolean) : incomingDirectors.length ? incomingDirectors : addedDirectors;
95504
+ const editSource = selected ? selected.editIds.map((id) => byId.get(String(id))).filter(Boolean) : editedDirectors;
95505
+ const ceaseSource = selected ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
95510
95506
  const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
95511
95507
  const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
95512
95508
  const editDirectors = editSource.map((director) => {
@@ -95593,7 +95589,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95593
95589
  return result;
95594
95590
  }
95595
95591
  function normaliseDirectorName(value) {
95596
- const name = value?.PersonName ?? value?.personName ?? value;
95592
+ const name = value?.PersonName ?? value?.personName ?? value?.participant?._profile ?? value;
95597
95593
  return [
95598
95594
  name?.FirstName ?? name?.firstName,
95599
95595
  name?.MiddleName ?? name?.middleName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.26",
3
+ "version": "2.1.27",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {