@dyedurham/search-and-file-widget 2.0.42 → 2.0.44

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/dnd-filing-shell.js +5 -19
  2. package/package.json +11 -11
@@ -84443,9 +84443,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84443
84443
  static generateAddressFormGroup(address) {
84444
84444
  const config2 = {};
84445
84445
  if (address) {
84446
- const street = this.resolveStreet(address);
84447
- const streetOnly = street.name;
84448
- const streetNumberOnly = street.number;
84446
+ const streetOnly = getAddressComponent(address, "Street Only");
84447
+ const streetNumberOnly = getAddressComponent(address, "Street Number Only");
84449
84448
  const { StreetName, StreetType: StreetType2, StreetDirection: StreetDirection2 } = parseStreetAddress(streetOnly);
84450
84449
  const streetType = StreetType2 ? mapStreetType(StreetType2) : "";
84451
84450
  const streetDirection = StreetDirection2 ? mapStreetDirection(StreetDirection2) : "";
@@ -84491,19 +84490,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84491
84490
  }
84492
84491
  return config2;
84493
84492
  }
84494
- static resolveStreet(address) {
84495
- const componentStreetName = getAddressComponent(address, "Street Only");
84496
- const componentStreetNumber = getAddressComponent(address, "Street Number Only");
84497
- if (componentStreetName || componentStreetNumber) {
84498
- return {
84499
- number: componentStreetNumber,
84500
- name: componentStreetName
84501
- };
84502
- }
84503
- const line = address.street?.trim() || address.display?.line1?.trim() || "";
84504
- const match = /^(\d[\w-]*)\s+(.+)$/.exec(line);
84505
- return match ? { number: match[1], name: match[2] } : { number: "", name: line };
84506
- }
84507
84493
  };
84508
84494
  }
84509
84495
  });
@@ -87950,9 +87936,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87950
87936
  }) : void 0,
87951
87937
  Directors: directors.map((d) => transformDirector(d, directorsDelta[d.participant._id], consentToProvideEmails)),
87952
87938
  Incorporators: incorporators.map((i) => transformIncorporator(i)),
87953
- // Cover letter is the Contact's: name, email and phone must all come from the same person.
87954
- // officerPhone is the incorporator/signatory's and is empty for a body corporate.
87955
- CoverLetter: createCoverLetter2(officialBusinessEmail, contactPerson, formatPhone(pickPhone(contactPerson)) || officerPhone),
87939
+ // Cover letter is the selected Contact's: name, email and phone all come from that person.
87940
+ // Never the incorporator/signatory's phone (officerPhone) — it is empty for a body corporate.
87941
+ CoverLetter: createCoverLetter2(officialBusinessEmail, contactPerson, formatPhone(pickPhone(contactPerson))),
87956
87942
  DirectorNumberType: isFixedDirectors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range
87957
87943
  }, isFixedDirectors ? { FixedNumberOfDirectors: minDirectors } : {
87958
87944
  MinimumNumberOfDirectors: minDirectors || 1,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.42",
4
- "description": "",
5
- "main": "dnd-filing-shell.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "",
10
- "license": "ISC"
11
- }
1
+ {
2
+ "name": "@dyedurham/search-and-file-widget",
3
+ "version": "2.0.44",
4
+ "description": "",
5
+ "main": "dnd-filing-shell.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }